/* TGCC Games Hub — namespaced. Colours match the live Learning Centre kit
   (kit.css on thegreatclimatecon.com) and the membership / podcast pages. */
.tgcc-games-hub{
	--tgcc-bg:#0b0814;
	--tgcc-panel:#150e1f;
	--tgcc-panel2:#1d1430;
	--tgcc-line:rgba(255,255,255,.09);
	--tgcc-txt:#f3f1f6;
	--tgcc-mut:#b3aac4;
	--tgcc-purple:#8e43f0;
	--tgcc-purple2:#6300e2;
	--tgcc-sky:#5ec8ff;
	--tgcc-red:#e53935;
	--tgcc-coral:#ff6b61;
	--tgcc-green:#3ddc84;
	--tgcc-gold:#ffb020;
	--tgcc-lilac:#c79bff;
	--tgcc-lead:#ddd6e8;
	position:relative;
	display:block;
	width:100%;
	margin:0;
	padding:56px 0 48px;
	background:var(--tgcc-bg);
	color:var(--tgcc-txt);
	font-family:Montserrat,Arial,Helvetica,sans-serif;
	font-size:16px;
	line-height:1.5;
	text-align:left;
	-webkit-font-smoothing:antialiased;
	overflow-x:clip;
	box-sizing:border-box;
}
.tgcc-games-hub *,
.tgcc-games-hub *:before,
.tgcc-games-hub *:after{box-sizing:border-box}
.tgcc-games-hub a{color:inherit;text-decoration:none}
.tgcc-games-hub a:focus-visible,
.tgcc-games-hub button:focus-visible{outline:2px solid var(--tgcc-sky);outline-offset:3px}
.tgcc-hub-bg{
	position:absolute;inset:0;pointer-events:none;
	background:
		radial-gradient(800px 480px at 85% 12%,rgba(255,107,97,.20),transparent 60%),
		radial-gradient(800px 520px at 8% 88%,rgba(142,67,240,.32),transparent 60%);
}
.tgcc-hub-wrap{position:relative;max-width:1240px;margin:0 auto;padding:0 28px}

/* Full-bleed when the hub sits in a narrow theme column; no double-offset in Elementor full-width. */
.tgcc-games-hub-body{background:var(--tgcc-bg,#0b0814)}
body.tgcc-games-hub-body .site-content,
body.tgcc-games-hub-body .entry-content,
body.tgcc-games-hub-body .page-content,
body.tgcc-games-hub-body .site-main{
	background:transparent;
	padding-left:0;
	padding-right:0;
	max-width:none;
}
.elementor-section.elementor-section-full_width .tgcc-games-hub,
.elementor-element.e-con-full .tgcc-games-hub{width:100%;max-width:100%;margin:0}

.tgcc-hub-head{max-width:none;width:100%;margin:0 0 40px;display:flex;flex-direction:column;align-items:flex-start}
.tgcc-hub-brand{
	display:flex;align-items:center;gap:12px;
	font-weight:800;font-size:18px;color:#fff;margin:0;
	min-width:0;
}
.tgcc-hub-brand img{width:42px;height:42px;border-radius:10px;display:block}
.tgcc-hub-brand small{
	display:block;font-size:10px;letter-spacing:3px;color:var(--tgcc-coral);
	font-weight:700;text-transform:uppercase;line-height:1.4;
}
.tgcc-hub-eyebrow{
	display:inline-block;margin:0 0 16px;padding:6px 14px;
	border:1px solid var(--tgcc-coral);border-radius:999px;
	color:var(--tgcc-coral);font-size:12px;font-weight:800;
	letter-spacing:2px;text-transform:uppercase;line-height:1.5;
}
.tgcc-hub-title{
	margin:0 0 16px;font-size:52px;line-height:1.06;font-weight:900;
	letter-spacing:-1.2px;color:#fff;padding:0;text-transform:none;
}
.tgcc-hub-grad{
	background:linear-gradient(90deg,var(--tgcc-coral),var(--tgcc-purple));
	-webkit-background-clip:text;background-clip:text;
	color:transparent;-webkit-text-fill-color:transparent;
}
.tgcc-hub-lead{
	margin:0;font-size:18px;line-height:1.65;color:var(--tgcc-lead);max-width:640px;
}

/* Grid */
.tgcc-hub-grid{
	display:grid;
	grid-template-columns:repeat(2,minmax(0,1fr));
	gap:22px;
}
.tgcc-hub-card{
	--c:var(--tgcc-purple);
	position:relative;
	display:flex;flex-direction:column;
	border-radius:20px;padding:18px 18px 20px;
	border:1.5px solid var(--c);
	background:linear-gradient(135deg,#1a1222,#0e0a17 70%);
	background:linear-gradient(135deg,color-mix(in srgb,var(--c) 14%,#0b0814),#0e0a17 70%);
	box-shadow:0 18px 50px rgba(0,0,0,.35);
	color:#fff;
	transition:transform .2s,box-shadow .2s;
	overflow:hidden;
	min-width:0;
}
.tgcc-hub-card--green{--c:var(--tgcc-green)}
.tgcc-hub-card--gold{--c:var(--tgcc-gold)}
.tgcc-hub-card--coral{--c:var(--tgcc-coral)}
.tgcc-hub-card--purple{--c:#b57bff}
.tgcc-games-hub--open .tgcc-hub-card:hover{
	transform:translateY(-4px);
	box-shadow:0 22px 56px color-mix(in srgb,var(--c) 22%,transparent);
}
.tgcc-hub-card__media{
	position:relative;border-radius:12px;overflow:hidden;
	aspect-ratio:16/9;background:#0e0a17;
	box-shadow:0 14px 34px rgba(0,0,0,.55);
}
.tgcc-hub-card__media img{
	display:block;width:100%;height:100%;object-fit:cover;border:0;
}
.tgcc-hub-badge{
	position:absolute;top:12px;right:12px;
	padding:5px 11px;border-radius:999px;
	background:linear-gradient(135deg,var(--tgcc-coral),var(--tgcc-red));
	color:#fff;font-size:11px;font-weight:800;letter-spacing:1.4px;
	text-transform:uppercase;box-shadow:0 8px 20px rgba(229,57,53,.4);
}
.tgcc-hub-card__body{display:flex;flex-direction:column;flex:1;padding:16px 4px 0}
.tgcc-hub-card__title{
	margin:0 0 8px;font-size:22px;font-weight:900;line-height:1.2;
	letter-spacing:-.3px;color:#fff;text-transform:none;padding:0;
}
.tgcc-hub-card__hook{
	margin:0 0 16px;color:#cfc8da;font-size:14px;line-height:1.55;flex:1;
}
.tgcc-hub-card__meta{
	display:flex;align-items:center;justify-content:space-between;gap:12px;
	margin-top:auto;
}
.tgcc-hub-time{
	display:inline-flex;align-items:center;gap:6px;
	color:var(--tgcc-mut);font-size:13px;font-weight:700;
}
.tgcc-hub-time svg{flex:0 0 auto;opacity:.85}

/* Play / locked pill — purple CTA matches --tgcc-lc-cta on membership-levels-new */
.tgcc-hub-play{
	appearance:none;-webkit-appearance:none;
	display:inline-flex;align-items:center;justify-content:center;
	padding:11px 22px;border:0;border-radius:12px;cursor:pointer;
	font-family:inherit;font-size:14px;font-weight:800;line-height:1.2;color:#fff;
	background:linear-gradient(135deg,var(--tgcc-purple),var(--tgcc-purple2));
	box-shadow:0 10px 30px rgba(142,67,240,.45);
	transition:transform .15s,box-shadow .15s;
}
.tgcc-hub-play:hover{transform:translateY(-2px)}
.tgcc-hub-play--locked{
	cursor:default;opacity:.7;box-shadow:none;
	background:rgba(255,255,255,.08);color:#d8d2e4;
}
.tgcc-hub-btn{
	display:inline-flex;align-items:center;justify-content:center;gap:8px;
	padding:16px 26px;border-radius:12px;font-weight:800;font-size:15px;
	line-height:1.2;color:#fff;border:0;cursor:pointer;
	transition:transform .15s;
}
.tgcc-hub-btn:hover{transform:translateY(-2px);color:#fff}
.tgcc-hub-btn--coral{
	background:linear-gradient(135deg,var(--tgcc-coral),var(--tgcc-red));
	box-shadow:0 12px 32px rgba(229,57,53,.4);
}
.tgcc-hub-btn--purple{
	background:linear-gradient(135deg,var(--tgcc-purple),var(--tgcc-purple2));
	box-shadow:0 12px 32px rgba(142,67,240,.45);
}

/* Locked preview */
.tgcc-hub-lockwrap{position:relative;border-radius:24px}
.tgcc-games-hub--locked .tgcc-hub-grid--preview{
	filter:blur(9px) saturate(.88);
	transform:scale(1.01);
	pointer-events:none;user-select:none;
}
.tgcc-hub-gate{
	position:absolute;inset:0;
	display:flex;align-items:center;justify-content:center;
	padding:28px 20px;
	background:rgba(11,8,20,.38);
	border-radius:24px;
}
.tgcc-hub-gate__card{
	width:min(460px,100%);
	background:var(--tgcc-panel);
	border:1px solid rgba(255,255,255,.12);
	border-radius:22px;
	padding:36px 32px 32px;
	text-align:center;
	box-shadow:0 24px 60px rgba(0,0,0,.45);
}
.tgcc-hub-gate__icon{
	display:inline-flex;align-items:center;justify-content:center;
	width:72px;height:72px;margin:0 auto 16px;
	border-radius:50%;
	background:rgba(142,67,240,.16);
	color:var(--tgcc-lilac);
	border:1px solid rgba(142,67,240,.35);
}
.tgcc-hub-gate__card h3{
	margin:0 0 10px;font-size:26px;font-weight:900;letter-spacing:-.4px;
	color:#fff;padding:0;text-transform:none;
}
.tgcc-hub-gate__card p{margin:0 0 22px;color:var(--tgcc-mut);font-size:15px;line-height:1.6}
.tgcc-hub-gate__card .tgcc-hub-btn{width:100%}
.tgcc-hub-gate__login{margin:16px 0 0!important;font-size:14px!important;font-weight:600}
.tgcc-hub-gate__login a{
	color:#fff;font-weight:800;
	text-decoration:underline;text-underline-offset:3px;
}
.tgcc-hub-gate__login a:hover{color:var(--tgcc-coral)}

.tgcc-hub-foot{
	margin:34px 0 0;text-align:center;color:var(--tgcc-mut);
	font-size:13px;font-weight:600;letter-spacing:.2px;
}
.tgcc-hub-live{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}

/* Play overlay */
.tgcc-hub-overlay{
	position:fixed;inset:0;z-index:100000;
	display:flex;flex-direction:column;
	background:var(--tgcc-bg);
}
.tgcc-hub-overlay[hidden]{display:none!important}
.admin-bar .tgcc-hub-overlay{top:32px}
.tgcc-hub-overlay__bar{
	display:flex;align-items:center;gap:16px;
	height:64px;padding:0 18px;
	background:rgba(11,8,20,.92);
	-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);
	border-bottom:1px solid var(--tgcc-line);
	flex:0 0 auto;
}
.tgcc-hub-overlay__close{
	appearance:none;border:1px solid rgba(255,255,255,.16);
	background:transparent;color:#d8d2e4;
	font-family:inherit;font-size:13px;font-weight:700;
	padding:9px 14px;border-radius:999px;cursor:pointer;
	display:inline-flex;align-items:center;gap:6px;white-space:nowrap;
}
.tgcc-hub-overlay__close:hover{border-color:var(--tgcc-coral);color:#fff}
.tgcc-hub-overlay__title{
	flex:1;min-width:0;font-size:16px;font-weight:800;color:#fff;
	white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.tgcc-hub-overlay__brand{
	color:var(--tgcc-mut);font-size:12px;font-weight:700;
	letter-spacing:.4px;white-space:nowrap;
}
.tgcc-hub-overlay__stage{
	flex:1;overflow:auto;padding:16px 18px 28px;
	background:
		radial-gradient(700px 360px at 90% 0,rgba(142,67,240,.16),transparent 60%),
		var(--tgcc-bg);
}
body.tgcc-hub-noscroll{overflow:hidden}

@media (max-width:782px){
	.admin-bar .tgcc-hub-overlay{top:46px}
}
@media (max-width:900px){
	.tgcc-hub-title{font-size:40px;letter-spacing:-.8px}
}
@media (max-width:720px){
	.tgcc-games-hub{padding:36px 0 40px}
	.tgcc-hub-wrap{padding:0 18px}
	.tgcc-hub-title{font-size:32px;letter-spacing:-.6px}
	.tgcc-hub-lead{font-size:16px}
	.tgcc-hub-eyebrow{letter-spacing:1.1px;font-size:11px;white-space:normal;text-align:center}
	.tgcc-hub-grid{grid-template-columns:1fr;gap:16px}
	.tgcc-hub-card{padding:14px 14px 16px}
	.tgcc-hub-card__title{font-size:20px}
	.tgcc-games-hub--locked .tgcc-hub-lockwrap{
		max-height:640px;overflow:hidden;border-radius:22px;
	}
	.tgcc-games-hub--locked .tgcc-hub-lockwrap:after{
		content:"";position:absolute;left:0;right:0;bottom:0;height:90px;
		background:linear-gradient(transparent,var(--tgcc-bg));
		pointer-events:none;border-radius:0 0 22px 22px;
	}
	.tgcc-hub-gate{padding:18px 14px}
	.tgcc-hub-gate__card{padding:28px 20px 24px}
	.tgcc-hub-gate__card h3{font-size:22px}
	.tgcc-hub-overlay__brand{display:none}
	.tgcc-hub-overlay__stage{padding:10px 10px 20px}
	.tgcc-hub-card__meta{flex-wrap:wrap}
}
@media (max-width:420px){
	.tgcc-hub-title{font-size:28px}
	.tgcc-hub-brand{font-size:16px}
}

/* CO2 Points chip sits on the logo row. Number is filled by JS from REST. */
.tgcc-hub-brandrow{
	display:flex;align-items:center;justify-content:space-between;gap:16px;
	width:100%;margin:0 0 22px;
}
.tgcc-hub-points{
	display:flex;align-items:center;flex:0 0 auto;
}
.tgcc-games-hub .tgcc-pts{
	display:inline-flex;align-items:center;gap:7px;
	min-height:38px;padding:4px 12px 4px 4px;border-radius:999px;
	background:#fff;border:1.5px solid #ffcf5a;
	box-shadow:0 8px 22px rgba(255,176,32,.28);
	font:800 15px/1 Montserrat,"Segoe UI",Roboto,Arial,sans-serif;color:#1f2a44;
}
.tgcc-games-hub .tgcc-pts i{
	display:inline-flex;align-items:center;justify-content:center;
	width:26px;height:26px;border-radius:50%;
	background:radial-gradient(circle at 35% 30%,#ffe58a,#ffb020 70%);
	color:#7a4b00;font:900 8.5px/1 Montserrat,Arial,sans-serif;font-style:normal;
}
.tgcc-games-hub .tgcc-pts-col{display:flex;flex-direction:column;align-items:flex-start;gap:1px;line-height:1.05}
.tgcc-games-hub .tgcc-pts-col small{font-size:9px;font-weight:800;color:#8a6a1a;text-transform:uppercase;letter-spacing:.04em}
.tgcc-games-hub .tgcc-pts-col b{font-size:15px;font-weight:800}
@media (max-width:720px){
	.tgcc-hub-head{margin:0 0 28px}
	.tgcc-hub-brandrow{margin:0 0 16px;gap:12px}
}
@media (max-width:420px){
	.tgcc-hub-brandrow{gap:10px;margin:0 0 14px}
	.tgcc-hub-brand{gap:10px}
	.tgcc-hub-brand img{width:36px;height:36px}
	.tgcc-games-hub .tgcc-pts{min-height:34px;padding:3px 10px 3px 3px}
	.tgcc-games-hub .tgcc-pts i{width:22px;height:22px;font-size:7.5px}
	.tgcc-games-hub .tgcc-pts-col small{font-size:8px}
	.tgcc-games-hub .tgcc-pts-col b{font-size:13px}
}

/* Play is now a real link to the game's own URL (2.6.0) */
.tgcc-games-hub a.tgcc-hub-play{color:#fff;text-decoration:none}
