/* =====================================================================
   GB CIATE — o segundo mundo.

   Só carrega dentro de /gbciate (SGVNG_World::is_gb). O design é o MESMO
   da 710: mesma pele clara, mesma tipografia, mesmos cartões. O que muda
   é o acento — o vermelho da 710 dá lugar ao azul da GB — e os blocos que
   só existem aqui: a abertura em vídeo, a garagem e a ficha do carro.
   ===================================================================== */

body.sg-world--gb {
	--blood: #2A2F63;
	--blood-lit: #3D46A0;
	--signal: #3D46A0;
}

/* ------------------------------------------------------- abertura em vídeo
   A home da GB: a mídia ocupa a tela inteira, sem texto por cima. O resto
   da loja vem embaixo, como na 710. */
.gbhero {
	position: relative;
	height: 100svh;
	min-height: 520px;
	overflow: clip;
	background: var(--plate-dark);
}

.gbhero__video,
.gbhero__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* o topo escurece de leve para a pílula preta não encostar na imagem */
.gbhero::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, .34) 0%, rgba(0, 0, 0, 0) 26%, rgba(0, 0, 0, 0) 74%, rgba(0, 0, 0, .34) 100%);
	pointer-events: none;
}

.gbhero__empty {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .2em;
	color: rgba(255, 255, 255, .34);
}

/* a seta que convida a rolar, como na home da 710 */
.gbhero__more {
	position: absolute;
	left: 50%;
	bottom: 26px;
	z-index: 1;
	transform: translateX(-50%);
	display: grid;
	justify-items: center;
	gap: 6px;
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .18em;
}

.gbhero__more i {
	display: block;
	width: 1px;
	height: 26px;
	background: rgba(255, 255, 255, .7);
}

/* ------------------------------------------------------------- seções */
.gbsec {
	padding: clamp(40px, 7vh, 72px) var(--pad) 0;
	display: grid;
	gap: 16px;
}

.gbsec__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	padding-bottom: 10px;
	border-bottom: 1px solid var(--line);
}

.gbsec__head h2 {
	margin: 0;
	font-size: clamp(20px, 2.2vw, 28px);
	font-weight: 800;
	letter-spacing: -.01em;
}

.gbsec__head a {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .08em;
	color: var(--grey);
}

.gbsec__head a:hover { color: var(--ink); }

.gbsec--talk {
	margin-top: clamp(40px, 7vh, 72px);
	padding-bottom: clamp(40px, 7vh, 72px);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	flex-wrap: wrap;
}

.gbsec--talk h2 {
	margin: 0 0 6px;
	font-size: clamp(20px, 2.2vw, 28px);
	font-weight: 800;
	letter-spacing: -.01em;
}

.gbsec--talk p { margin: 0; max-width: 480px; color: var(--grey-strong); }

/* -------------------------------------------------------------- garagem */
.gbgar {
	padding: var(--top) var(--pad) 60px;
	display: grid;
	gap: 14px;
}

.gbgar__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
}

.gbgar__head h1 {
	margin: 0;
	font-size: clamp(26px, 4vw, 44px);
	font-weight: 800;
	letter-spacing: -.02em;
	text-transform: uppercase;
}

.gbgar__note { font-size: 12px; color: var(--grey); }

.gbgar__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 14px;
}

.gbcar {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 10px;
	color: var(--ink);
}

.gbcar__shot {
	position: relative;
	aspect-ratio: 4 / 3;
	border-radius: 4px;
	overflow: hidden;
	background: var(--well);
}

.gbcar__shot img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 600ms var(--e-settle);
}

.gbcar:hover .gbcar__shot img { transform: scale(1.03); }

.gbcar__empty {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .2em;
	color: var(--dim);
}

.gbcar__flag {
	position: absolute;
	top: 12px;
	left: 12px;
	padding: 4px 8px;
	background: var(--blood);
	color: #fff;
	border-radius: 4px;
	font-size: 9px;
	font-weight: 800;
	letter-spacing: .1em;
}

.gbcar__flag--off { background: var(--ink); }

.gbcar__name { font-size: 14px; font-weight: 700; }
.gbcar__price { font-size: 12px; color: var(--grey); }

/* --------------------------------------------------- selos da garagem
   Dois estados, os dois com a foto em preto e branco: VENDIDO traz o
   carimbo SOLD OUT, e BUSTED é a tela do GTA — letra vermelha grande no
   meio, com o canto da foto escurecido. */
.gbcar--sold .gbcar__shot img,
.gbcar--busted .gbcar__shot img,
.gbsingle--sold .gbsingle__main img,
.gbsingle--sold .gbsingle__shot img,
.gbsingle--busted .gbsingle__main img,
.gbsingle--busted .gbsingle__shot img {
	filter: grayscale(1) contrast(1.08) brightness(.92);
}

.gbcar--busted .gbcar__shot img,
.gbsingle--busted .gbsingle__main img,
.gbsingle--busted .gbsingle__shot img {
	filter: grayscale(1) contrast(1.16) brightness(.8);
}

.gbcar--sold .gbcar__name,
.gbcar--sold .gbcar__price { color: var(--grey); }

/* o escurecido das bordas, que é o que dá o ar de tela de jogo */
.gbcar--busted .gbcar__shot::after,
.gbsingle--busted .gbsingle__main::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: radial-gradient(68% 60% at 50% 50%, rgba(0, 0, 0, 0) 32%, rgba(0, 0, 0, .72) 100%);
	pointer-events: none;
}

.stamp {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 2;
	transform: translate(-50%, -50%) rotate(-7deg);
	padding: 10px 18px;
	border: 3px solid #fff;
	border-radius: 4px;
	color: #fff;
	font-size: clamp(16px, 2.4vw, 30px);
	font-weight: 800;
	font-style: italic;
	letter-spacing: .06em;
	line-height: 1;
	white-space: nowrap;
	text-shadow: 0 2px 10px rgba(0, 0, 0, .45);
	box-shadow: 0 2px 14px rgba(0, 0, 0, .35);
	pointer-events: none;
}

.stamp--sm { padding: 6px 12px; border-width: 2px; font-size: 15px; }

/* BUSTED: sem caixa, letra vermelha no meio da foto */
.stamp--busted {
	padding: 0;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	/* a letra alta e apertada é o que lembra a tela do jogo */
	transform: translate(-50%, -50%) scaleY(1.14);
	color: #E01B24;
	font-size: clamp(34px, 6.4vw, 92px);
	font-weight: 900;
	font-style: normal;
	letter-spacing: -.015em;
	text-transform: uppercase;
	text-shadow:
		0 3px 0 rgba(0, 0, 0, .72),
		0 0 38px rgba(0, 0, 0, .6);
}

.stamp--busted.stamp--sm { font-size: clamp(28px, 3.4vw, 46px); }

/* --------------------------------------------------------- carro aberto */
.gbsingle {
	padding: var(--top) var(--pad) 60px;
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
	gap: 20px;
	align-items: start;
}

.gbsingle__gallery { display: grid; gap: 10px; }

.gbsingle__main {
	position: relative;
	aspect-ratio: 16 / 10;
	border-radius: 4px;
	overflow: hidden;
	background: var(--well);
}

.gbsingle__main img { width: 100%; height: 100%; object-fit: cover; }

/* Galeria do carro: a capa grande e o resto em duas colunas, para muitas
   fotos não virarem uma página sem fim. */
.gbsingle__more { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.gbsingle__more:has(> :only-child) { grid-template-columns: minmax(0, 1fr); }

.gbsingle__shot {
	position: relative;
	margin: 0;
	border-radius: 4px;
	overflow: hidden;
	background: var(--well);
}

.gbsingle__shot img { display: block; width: 100%; height: auto; }

.gbsingle__info { display: grid; gap: 16px; }

.gbsingle__info h1 {
	margin: 0;
	font-size: clamp(24px, 3vw, 34px);
	font-weight: 800;
	line-height: 1.04;
	letter-spacing: -.01em;
}

.gbsingle__price { font-size: 16px; font-weight: 700; color: var(--blood); }

.gbspec { display: grid; }

.gbspec div {
	display: flex;
	justify-content: space-between;
	gap: 14px;
	padding: 10px 0;
	border-top: 1px solid var(--line);
	font-size: 12px;
}

.gbspec div:last-child { border-bottom: 1px solid var(--line); }
.gbspec span { color: var(--grey); }
.gbspec b { font-weight: 700; }

.gbsingle__cta {
	height: 56px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	background: var(--black);
	color: #fff;
	border-radius: 4px;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .1em;
	transition: background-color 150ms var(--e-standard);
}

.gbsingle__cta:hover { background: var(--blood); }
.gbsingle__cta svg { width: 17px; height: 17px; }
.gbsingle__cta[aria-disabled="true"] { background: var(--chip); color: var(--grey); pointer-events: none; }

.gbsingle__note { font-size: 12px; line-height: 1.5; color: var(--grey); text-box: none; }

@media (max-width: 900px) {
	.gbsingle { grid-template-columns: minmax(0, 1fr); }
	.gbsingle__more { grid-template-columns: minmax(0, 1fr); }
}

/* ------------------------------------------------- ficha da peça (PDP) */
.gbficha { display: grid; }

.gbficha div {
	display: flex;
	justify-content: space-between;
	gap: 14px;
	padding: 9px 0;
	border-top: 1px solid var(--line);
	font-size: 12px;
}

.gbficha div:last-child { border-bottom: 1px solid var(--line); }
.gbficha span { color: var(--grey); }
.gbficha b { font-weight: 700; }

.gbunica {
	align-self: flex-start;
	padding: 4px 9px;
	background: var(--blood);
	color: #fff;
	border-radius: 4px;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: .1em;
}
