/* NICHO Games · Kit E · Lilás: base de todas as telas (topo, rodapé, etiquetas, cards e títulos).
   Visual "adesivo": fundo lilás claro, roxo e amarelo, Archivo Black nos títulos e contorno preto com sombra dura deslocada. */

:root {
	--nx-ink: #111014;
	--nx-text: #111014;
	--nx-muted: #4B4A55;
	--nx-line: #111014;
	--nx-soft: color-mix(in oklab, var(--nx-accent) 10%, #FFFFFF);
	--nx-img: color-mix(in oklab, var(--nx-accent) 14%, #FFFFFF);
	--nx-bg: color-mix(in oklab, var(--nx-accent) 9%, #FFFFFF);
	--nx-sol: #FFD23F;
	/* Amarelo do adesivo, do selo e da categoria; rosa e lilás das etiquetas. */
	--nx-amarelo: #FFD23F;
	--nx-rosa: #FF5DA2;
	--nx-lilas: color-mix(in oklab, var(--nx-accent) 38%, #FFFFFF);
	/* Contorno preto e sombra dura deslocada (estilo adesivo). */
	--nx-contorno: 2.5px solid #111014;
	--nx-dark: #111014;
	--nx-sombra: 5px 5px 0 #111014;
	--nx-sombra-forte: 8px 8px 0 #111014;
	--nx-sombra-leve: 3px 3px 0 #111014;
	--nx-sombra-escura: 0 10px 28px -10px rgba(0, 0, 0, 0.6);
	--nx-font-title: 'Archivo Black', 'DM Sans', Arial, sans-serif;
	--nx-font-text: 'DM Sans', Arial, sans-serif;
	--nx-font-brand: 'Space Grotesk', Inter, Arial, sans-serif;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

body {
	margin: 0;
	background: var(--nx-bg);
	color: var(--nx-text);
	font-family: var(--nx-font-text);
	font-size: 16px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}

img {
	max-width: 100%;
	height: auto;
}

a {
	color: var(--nx-ink);
}

a:hover {
	color: var(--nx-accent);
}

.nx-wrap {
	width: 100%;
	max-width: 1296px;
	margin: 0 auto;
	padding: 0 24px;
}

[hidden] {
	display: none !important;
}

.nx-sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.nx-skip {
	position: absolute;
	inset-inline-start: -9999px;
	top: 8px;
	z-index: 100;
	padding: 10px 14px;
	border-radius: 8px;
	background: #FFFFFF;
	font-weight: 700;
}

.nx-skip:focus {
	inset-inline-start: 8px;
}

/* Botão em pílula: azul cheio (nx-btn) ou branco com sombra (nx-btn--claro). */
.nx-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 46px;
	padding: 0 23px;
	flex-shrink: 0;
	background: var(--nx-accent);
	color: var(--nx-on-accent, #FFFFFF);
	font-size: 15px;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
}

.nx-btn:hover {
	background: var(--nx-accent-hover, var(--nx-accent));
	color: var(--nx-on-accent-hover, #FFFFFF);
}

/* Chip em pílula (buscas populares, filtros, paginação). */
.nx-chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
}

.nx-chip:hover {
	color: var(--nx-accent);
}

/* Rótulo pequeno em caixa alta, azul, em cima dos títulos. */
.nx-eyebrow {
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

/* -------------------------------------------------------------------------- */
/* TOPO                                                                       */
/* -------------------------------------------------------------------------- */

.nx-header {
	position: relative;
	z-index: 40;
	font-family: var(--nx-font-text);
}

.nx-header__bar {
	display: flex;
	align-items: center;
	color: var(--nx-header-ink, var(--nx-ink));
}

.nx-logo {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 5px;
	flex-shrink: 0;
	letter-spacing: -0.01em;
	line-height: 1;
	color: inherit;
	text-decoration: none;
	white-space: nowrap;
}

.nx-logo:hover {
	color: inherit;
}

.nx-logo img {
	display: block;
	max-height: 44px;
	width: auto;
}

.nx-logo__name {
	display: flex;
	align-items: baseline;
}

.nx-logo__b {
	color: var(--nx-accent);
}

.nx-logo__by {
	font-family: var(--nx-font-brand);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.01em;
	opacity: 0.72;
}

.nx-nav {
	display: flex;
	align-items: center;
	flex-grow: 1;
	min-width: 0;
}

.nx-nav a {
	display: flex;
	align-items: center;
	font-size: 15px;
	font-weight: 700;
	color: inherit;
	text-decoration: none;
	white-space: nowrap;
}

.nx-nav a:hover {
	color: inherit;
}

.nx-header__acoes {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-shrink: 0;
}

/* Lupa: abre a busca embaixo da barra (script.js). */
.nx-header__lupa {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #FFFFFF;
	box-shadow: var(--nx-sombra-leve);
	color: var(--nx-ink);
	cursor: pointer;
}

.nx-header__lupa:hover {
	color: var(--nx-accent);
}

.nx-header__jogos {
	height: 44px;
	padding: 0 22px;
}

.nx-header__busca {
	position: absolute;
	display: none;
}

.nx-header__busca.is-open {
	display: block;
}

.nx-header__search {
	display: flex;
	align-items: center;
	gap: 10px;
	max-width: 640px;
	height: 52px;
	margin: 0 auto;
	padding: 0 6px 0 20px;
	border-radius: 26px;
	background: #FFFFFF;
	box-shadow: var(--nx-sombra);
	color: var(--nx-muted);
}

.nx-header__search input {
	flex-grow: 1;
	min-width: 0;
	height: 100%;
	border: 0;
	outline: 0;
	background: transparent;
	color: var(--nx-ink);
	font-family: inherit;
	font-size: 16px;
}

.nx-header__search button {
	height: 40px;
	padding: 0 20px;
	border: 0;
	border-radius: 20px;
	background: var(--nx-accent);
	color: var(--nx-on-accent, #FFFFFF);
	font-family: inherit;
	font-size: 15px;
	font-weight: 800;
	cursor: pointer;
}

.nx-header__menu {
	display: none;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #FFFFFF;
	box-shadow: var(--nx-sombra-leve);
	color: var(--nx-ink);
	cursor: pointer;
}

/* -------------------------------------------------------------------------- */
/* PEÇAS                                                                      */
/* -------------------------------------------------------------------------- */

/* Etiqueta da categoria (cor fixa por categoria: rocket_games_tag()). */
.nx-tag {
	display: inline-flex;
	align-self: flex-start;
	align-items: center;
	background: var(--nx-accent);
	text-transform: uppercase;
	white-space: nowrap;
}

/* Imagem do post: quadro azul-claro enquanto não tem foto. */
.nx-thumb {
	position: relative;
	display: block;
	overflow: hidden;
	border-radius: 16px;
	background: var(--nx-img);
}

.nx-thumb__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.nx-thumb--tint {
	background: var(--nx-img);
}

/* Título de seção: rótulo azul em cima + título grande, e o botão "ver todos" à direita. */
.nx-section__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
}

.nx-section__titulos {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.nx-h2 {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0;
	font-family: var(--nx-font-title);
	font-size: 40px;
	font-weight: 600;
	letter-spacing: -0.01em;
	line-height: 1.1;
	color: var(--nx-ink);
	text-wrap: balance;
}

.nx-h3 {
	margin: 0;
	font-family: var(--nx-font-title);
	font-size: 24px;
	font-weight: 600;
	letter-spacing: -0.01em;
	line-height: 1.1;
	color: var(--nx-ink);
}

/* Barrinha antiga dos títulos: o visual novo não usa. */
.nx-h2__bar {
	display: none;
}

.nx-more {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 14px;
	font-weight: 800;
	color: var(--nx-ink);
	text-decoration: none;
	white-space: nowrap;
}

/* Cards de post: caixa branca com sombra, imagem em cima. */
.nx-grid {
	display: grid;
	gap: 24px;
}

.nx-grid--3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.nx-grid--4 {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.nx-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	overflow: hidden;
	border-radius: 24px;
	background: #FFFFFF;
	box-shadow: var(--nx-sombra);
	text-decoration: none;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.nx-card__media {
	position: relative;
	display: block;
}

.nx-card .nx-thumb {
	border-radius: 0;
}

.nx-card__img {
	height: 180px;
}

.nx-card__body {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 18px 20px 22px;
}

.nx-card__title {
	font-family: var(--nx-font-text);
	font-size: 18px;
	line-height: 1.25;
	color: var(--nx-ink);
}

.nx-card:hover .nx-card__title {
	color: var(--nx-accent);
}

.nx-card__meta {
	font-size: 13px;
	color: var(--nx-muted);
}

/* Nota do review em círculo sobre a imagem. */
.nx-score {
	position: absolute;
	left: 12px;
	bottom: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	font-family: var(--nx-font-title);
	font-weight: 700;
}

/* Lista numerada (Mais lidos, na home e na categoria). */
.nx-ranking {
	display: flex;
	flex-direction: column;
	padding: 24px 26px;
	border-radius: 24px;
	background: #FFFFFF;
	box-shadow: var(--nx-sombra);
}

.nx-ranking__title {
	margin: 0 0 6px;
	font-family: var(--nx-font-title);
	font-size: 24px;
	font-weight: 600;
	letter-spacing: -0.01em;
	line-height: 1.1;
	color: var(--nx-ink);
}

.nx-ranking ol {
	margin: 0;
	padding: 0;
	list-style: none;
}

.nx-ranking li {
	display: flex;
	gap: 16px;
	padding: 16px 0;
}

.nx-ranking__num {
	width: 34px;
	flex-shrink: 0;
	font-family: var(--nx-font-title);
	font-size: 30px;
	line-height: 1;
}

.nx-ranking__body {
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-width: 0;
}

.nx-ranking__body a {
	font-size: 16px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--nx-ink);
	text-decoration: none;
}

.nx-ranking__body a:hover {
	color: var(--nx-accent);
}

/* Anúncio */
.nx-ad {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	margin: 48px auto 0;
	padding: 0 24px;
	text-align: center;
}

.nx-ad__label {
	font-size: 11px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--nx-muted);
}

/* Rede de sites (home e categoria): faixa escura do app com os sites da empresa. */
.nx-rede {
	display: flex;
	align-items: center;
	gap: 24px;
	margin: 72px 0 80px;
	padding: 28px 32px;
	background: radial-gradient(60% 120% at 100% 50%, #2A1466, #0A0A0D 70%);
	color: #FFFFFF;
}

.nx-rede__icon {
	display: block;
	width: 56px;
	height: 56px;
	flex-shrink: 0;
	overflow: hidden;
	border-radius: 15px;
}

.nx-rede__icon img {
	display: block;
	width: 100%;
	height: 100%;
}

.nx-rede__texto {
	display: flex;
	flex-direction: column;
	gap: 6px;
	flex-grow: 1;
	min-width: 0;
}

.nx-rede__label {
	font: 600 11px/1 'IBM Plex Mono', monospace;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #22D3EE;
}

.nx-rede__titulo {
	font: 700 22px/1.2 var(--nx-font-brand);
}

.nx-rede__sites {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 6px;
}

.nx-rede__sites a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 34px;
	padding: 0 12px;
	border-radius: 17px;
	background: rgba(255, 255, 255, 0.08);
	font-size: 13px;
	font-weight: 600;
	color: #FFFFFF;
	text-decoration: none;
}

.nx-rede__sites a:hover {
	background: rgba(255, 255, 255, 0.16);
	color: #FFFFFF;
}

.nx-rede__dot {
	width: 8px;
	height: 8px;
	border-radius: 4px;
}

.nx-rede__dot--1 { background: #C6F432; }
.nx-rede__dot--2 { background: #E5243B; }
.nx-rede__dot--3 { background: #FFC93C; }
.nx-rede__dot--4 { background: #22D3EE; }

/* Botão roxo do app (bloco do app e rede). */
.nx-btn-app {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	height: 48px;
	padding: 0 22px;
	flex-shrink: 0;
	border-radius: 16px;
	background: linear-gradient(180deg, #7C3AED, #6D28D9);
	box-shadow: 0 4px 0 #3B1683;
	font: 700 15px/1 var(--nx-font-brand);
	color: #FFFFFF;
	text-decoration: none;
	white-space: nowrap;
}

.nx-btn-app:hover {
	color: #FFFFFF;
	filter: brightness(1.08);
}

/* -------------------------------------------------------------------------- */
/* RODAPÉ                                                                     */
/* -------------------------------------------------------------------------- */

.nx-footer {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 36px;
	padding: 52px max(24px, calc((100% - 1248px) / 2)) 32px;
	background: var(--nx-footer-bg, var(--nx-dark));
	color: var(--nx-footer-ink, #FFFFFF);
	font-family: var(--nx-font-text);
}

.nx-footer__top {
	display: grid;
	grid-template-columns: 4fr 7fr;
	column-gap: 64px;
	align-items: start;
}

.nx-footer__brand {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.nx-logo--footer {
	font-size: 28px;
}

.nx-footer__brand p {
	margin: 0;
	max-width: 360px;
	font-size: 15px;
	line-height: 1.55;
	color: #A9B8C6;
}

.nx-footer__cols {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}

.nx-footer__col {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.nx-footer__head {
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #A9B8C6;
}

.nx-footer__col a {
	font-size: 15px;
	color: inherit;
	text-decoration: none;
}

.nx-footer__bottom {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding-top: 20px;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
	font-size: 13px;
	line-height: 1.6;
	color: #A9B8C6;
}

.nx-footer__bottom p {
	margin: 0;
	max-width: 1100px;
}

.nx-footer__co {
	color: #FFFFFF;
	font-weight: 600;
}

/* -------------------------------------------------------------------------- */
/* TELAS MENORES                                                              */
/* -------------------------------------------------------------------------- */

@media (max-width: 1100px) {
	.nx-header__bar {
		gap: 16px;
		height: 72px;
	}

	.nx-header__acoes {
		margin-left: auto;
	}

	.nx-header__menu {
		display: flex;
	}

	/* Menu aberto pelo botão (script.js): lista embaixo da barra. */
	.nx-nav {
		position: absolute;
		z-index: 50;
		display: none;
		flex-direction: column;
		align-items: stretch;
		gap: 4px;
		padding: 12px 24px 18px;
	}

	.nx-nav.is-open {
		display: flex;
	}

	.nx-nav a {
		height: 46px;
		padding: 0 18px;
		border-radius: 23px;
	}

	.nx-grid--4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.nx-footer__top {
		grid-template-columns: 1fr;
		row-gap: 32px;
	}

	.nx-rede {
		flex-wrap: wrap;
	}
}

@media (max-width: 640px) {
	/* Título de seção e botão "ver todos": quebram em duas linhas em vez de apertar. */
	.nx-section__head {
		flex-direction: column;
		align-items: flex-start;
		row-gap: 14px;
	}

	.nx-header__jogos {
		gap: 6px;
	}

	.nx-logo img {
		max-height: 36px;
	}

	.nx-nav {
		top: 64px;
	}

	.nx-h2 {
		font-size: 30px;
	}

	.nx-grid--3,
	.nx-grid--4 {
		grid-template-columns: 1fr;
	}

	.nx-rede {
		margin: 48px 0 56px;
		padding: 24px 20px;
	}

	.nx-btn-app {
		width: 100%;
		justify-content: center;
	}

	.nx-footer {
		padding-top: 36px;
	}

	.nx-footer__top {
		justify-items: center;
		text-align: center;
	}

	.nx-footer__brand {
		align-items: center;
		width: 100%;
	}

	.nx-footer .nx-logo {
		align-items: center;
		margin-left: auto;
		margin-right: auto;
	}

	.nx-footer__cols {
		width: 100%;
		grid-template-columns: 1fr 1fr;
		justify-items: center;
		text-align: center;
	}

	.nx-footer__cols > :last-child:nth-child(odd) {
		grid-column: 1 / -1;
	}

	.nx-footer__col {
		align-items: center;
	}

	.nx-footer__bottom {
		align-items: center;
		text-align: center;
	}
}

/* -------------------------------------------------------------------------- */
/* MINI JOGOS (capas) E APP                                                   */
/* -------------------------------------------------------------------------- */

.nx-jogo-capa {
	position: relative;
	display: block;
	aspect-ratio: 1;
	overflow: hidden;
	background: #3B1683;
	text-decoration: none;
}

/* A arte da capa vem mais para cima (no app sobra lugar para o nome embaixo): desce e cresce um pouco para ficar no meio do quadro. */
.nx-capa {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transform: translateY(6%) scale(1.12);
}

/* Capa da API: já vem com o nome escrito embaixo, então aparece inteira (sem descer nem crescer, para o nome não ser cortado).
   Com o nome escrito em cima da capa (lateral da categoria), a arte local fica no alto mesmo. */
.nx-capa--api {
	transform: none;
}

/* Card de mini jogo (parts/jogo-card.php): capa + nome + "Categoria · tempo". */
.nx-jogo-card {
	display: flex;
	flex-direction: column;
	gap: 10px;
	min-width: 0;
}

.nx-jogo-card__text {
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.nx-jogo-card__text a {
	font-family: var(--nx-font-title);
	font-size: 16px;
	font-weight: 700;
	line-height: 1.2;
	color: var(--nx-ink);
	text-decoration: none;
}

.nx-jogo-card__text span {
	font-size: 13px;
	line-height: 1.3;
	color: var(--nx-muted);
}

.nx-ouro {
	position: absolute;
	top: 8px;
	left: 8px;
	display: flex;
	align-items: center;
	gap: 4px;
	height: 22px;
	padding: 0 8px;
	border-radius: 8px;
	background: rgba(10, 10, 13, 0.72);
	color: #FFC93C;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

/* Mini jogos na lateral da categoria: caixa branca, 4 capas e o botão. */
.nx-jogos-lado {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 22px;
	border-radius: 24px;
	background: #FFFFFF;
	box-shadow: var(--nx-sombra);
}

.nx-jogos-lado__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.nx-jogos-lado__head .nx-h3 {
	font-size: 22px;
}

.nx-jogos-lado__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

.nx-jogos-lado .nx-capa {
	transform: none;
}

.nx-jogos-lado__todos {
	width: 100%;
	height: 44px;
}

/* Bloco do app antes do rodapé */
.nx-app {
	display: flex;
	justify-content: center;
	padding: 56px 24px 64px;
	font-family: var(--nx-font-title);
}

.nx-app__box {
	display: flex;
	align-items: center;
	gap: 28px;
	width: 100%;
	max-width: 1140px;
	padding: 32px 40px;
	border-radius: 24px;
	background: #171122;
}

.nx-app__icon img,
.nx-home-app__icone img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.nx-app__icon {
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 84px;
	height: 84px;
	flex-shrink: 0;
	border-radius: 24px;
	background: linear-gradient(150deg, #2A2A38, #101017);
	border: 0;
	box-shadow: var(--nx-sombra-escura);
	color: #C4B5FD;
}

.nx-app__text {
	display: flex;
	flex-direction: column;
	gap: 8px;
	flex-grow: 1;
	min-width: 0;
}

.nx-app__label {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #C4B5FD;
}

.nx-app__text strong {
	font-family: var(--nx-font-brand);
	font-size: 30px;
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.15;
	color: #FFFFFF;
}

.nx-app__text span:last-child {
	font-size: 17px;
	line-height: 1.5;
	color: #D8D0EC;
}

.nx-app__btn {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 56px;
	padding: 0 30px;
	flex-shrink: 0;
	border-radius: 14px;
	background: linear-gradient(90deg, #7C3AED, #6D28D9);
	color: #FFFFFF;
	font-family: var(--nx-font-brand);
	font-size: 16px;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
}

.nx-app__btn:hover {
	color: #FFFFFF;
	filter: brightness(1.1);
}

@media (max-width: 760px) {
	.nx-app {
		padding: 40px 16px 48px;
	}

	.nx-app__box {
		flex-direction: column;
		align-items: flex-start;
		gap: 18px;
		padding: 24px;
	}

	.nx-app__icon img,
.nx-home-app__icone img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.nx-app__icon {
	overflow: hidden;
		width: 64px;
		height: 64px;
		border-radius: 18px;
	}

	.nx-app__text strong {
		font-size: 24px;
	}

	.nx-app__text span:last-child {
		font-size: 16px;
	}

	.nx-app__btn {
		width: 100%;
	}
}

/* -------------------------------------------------------------------------- */
/* BUSCA: sugestões de artigos enquanto digita (shared/assets/js/comum.js)    */
/* -------------------------------------------------------------------------- */

.nx-suggest-host {
	position: relative;
}

.nx-suggest {
	position: absolute;
	z-index: 60;
	display: flex;
	flex-direction: column;
	max-height: min(420px, 70vh);
	overflow-y: auto;
	padding: 6px;
	border-radius: 16px;
	background: #FFFFFF;
	box-shadow: 0 18px 44px -10px rgba(20, 16, 40, 0.32);
	font-family: var(--nx-font-text);
	text-align: left;
}

.nx-suggest[hidden] {
	display: none;
}

.nx-suggest__item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 12px;
	border-radius: 12px;
	color: var(--nx-ink);
	text-decoration: none;
}

.nx-suggest__item:hover,
.nx-suggest__item.is-active,
.nx-suggest__all:hover,
.nx-suggest__all.is-active {
	background: color-mix(in oklab, var(--nx-accent) 10%, #FFFFFF);
	color: var(--nx-ink);
}

.nx-suggest__img {
	flex-shrink: 0;
	width: 44px;
	height: 44px;
	border-radius: 10px;
	object-fit: cover;
	background: var(--nx-img);
}

.nx-suggest__text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.nx-suggest__title {
	display: -webkit-box;
	overflow: hidden;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.35;
}

.nx-suggest__title mark {
	padding: 0 1px;
	border-radius: 3px;
	background: color-mix(in oklab, var(--nx-accent) 16%, #FFFFFF);
	color: var(--nx-accent-ink, var(--nx-accent));
	font-weight: 800;
}

.nx-suggest__cat {
	font-size: 12px;
	font-weight: 600;
	color: var(--nx-muted);
}

.nx-suggest__empty {
	padding: 12px;
	font-size: 14px;
	color: var(--nx-muted);
}

.nx-suggest__all {
	margin-top: 4px;
	padding: 12px;
	border-radius: 12px;
	font-size: 14px;
	font-weight: 700;
	color: var(--nx-accent-ink, var(--nx-accent));
	text-decoration: none;
}

/* Busca do topo é estreita: a lista abre mais larga, alinhada à direita do campo. */
.nx-header__search .nx-suggest {
	left: auto !important;
	right: 0;
	width: 360px !important;
	max-width: calc(100vw - 32px);
}

/* -------------------------------------------------------------------------- */
/* MINI JOGOS: capa em destaque ao passar o mouse (cresce um pouco e brilha)   */
/* -------------------------------------------------------------------------- */

.nx-jogo-capa,
.nx-jogo-lado__capa,
.nx-jogo-parecidos__capa,
.nx-bloco-jogos__capa {
	transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.25s ease;
	will-change: transform;
}

/* Brilho na borda de baixo da capa (aparece no hover). */
.nx-jogo-capa::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	border-radius: inherit;
	background: linear-gradient(160deg, rgba(255, 255, 255, 0.22), transparent 45%);
	opacity: 0;
	transition: opacity 0.25s ease;
	pointer-events: none;
}

@media (hover: hover) {
	.nx-jogo-capa:hover,
a:hover > .nx-jogo-lado__capa,
.nx-jogo-parecidos__capa:hover,
a:hover > .nx-bloco-jogos__capa {
		/* Cresce pouco e sem subir: não passa por cima do título nem do nome dos jogos. */
		transform: scale(1.03);
		box-shadow:
			0 18px 36px -12px rgba(20, 16, 40, 0.45),
			0 0 0 3px color-mix(in oklab, var(--nx-accent) 70%, #FFFFFF),
			0 0 28px -4px color-mix(in oklab, var(--nx-accent) 60%, transparent);
	}

	.nx-jogo-capa:hover::before {
		opacity: 1;
	}

	/* Nome do jogo na cor de destaque junto com a capa. */
	.nx-jogo-card:hover .nx-jogo-card__text a {
		color: var(--nx-accent);
	}
}

@media (prefers-reduced-motion: reduce) {
	.nx-jogo-capa,
.nx-capa,
.nx-jogo-lado__capa,
.nx-jogo-parecidos__capa,
.nx-bloco-jogos__capa {
		transition: none;
	}
}

/* -------------------------------------------------------------------------- */
/* BOTÕES DOS BLOCOS DO TEMA no texto (CTA, CTA lista, App...): antes vinham do CSS global, que não carrega no nicho */
/* -------------------------------------------------------------------------- */

:is(.nx-artigo__content, .nx-pagina__texto) .button,
:is(.nx-artigo__content, .nx-pagina__texto) .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-height: 52px;
	padding: 0 24px;
	border: 0;
	border-radius: 999px;
	background: var(--nx-accent);
	box-shadow: 0 8px 22px -8px color-mix(in oklab, var(--nx-accent) 60%, transparent);
	color: var(--nx-btn-text, var(--nx-on-accent, #FFFFFF)) !important;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.3;
	text-decoration: none;
	transition: background 0.15s, box-shadow 0.2s, transform 0.2s;
}

:is(.nx-artigo__content, .nx-pagina__texto) .button:hover,
:is(.nx-artigo__content, .nx-pagina__texto) .wp-block-button__link:hover {
	background: var(--nx-accent-hover);
	box-shadow: 0 12px 28px -8px color-mix(in oklab, var(--nx-accent) 70%, transparent);
	color: var(--nx-btn-text, var(--nx-on-accent-hover, #FFFFFF)) !important;
	transform: translateY(-1px);
}

/* Ícone dos blocos de CTA na cor do texto do botão. */
:is(.nx-artigo__content, .nx-pagina__texto) .button svg {
	flex-shrink: 0;
	fill: currentColor;
}

/* -------------------------------------------------------------------------- */
/* SELETORES: lista própria no lugar da lista do navegador (shared/assets/js/comum.js) */
/* -------------------------------------------------------------------------- */

.nx-select {
	position: relative;
	display: block;
	width: 100%;
	font-size: 16px;
	font-weight: 600;
	letter-spacing: 0;
	text-transform: none;
}

/* O select original guarda o tamanho e o fundo do campo; o texto e a seta dele somem. */
.nx-select__nativo {
	width: 100%;
	-webkit-appearance: none;
	appearance: none;
	color: transparent !important;
	pointer-events: none;
}

.nx-select__btn {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	width: 100%;
	padding: 0 14px;
	border: 0;
	border-radius: inherit;
	background: transparent;
	color: var(--nx-ink);
	font: inherit;
	text-align: left;
	cursor: pointer;
}

.nx-select__btn::after {
	content: '';
	width: 8px;
	height: 8px;
	flex-shrink: 0;
	margin-top: -4px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
	transition: transform 0.2s ease;
}

.nx-select.is-open .nx-select__btn::after {
	margin-top: 4px;
	transform: rotate(-135deg);
}

.nx-select__btn:focus-visible {
	outline: 2px solid var(--nx-accent);
	outline-offset: 2px;
}

.nx-select__lista {
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	right: 0;
	z-index: 60;
	display: none;
	max-height: 280px;
	margin: 0;
	padding: 6px;
	overflow-y: auto;
	list-style: none;
	border-radius: 8px;
	background: var(--nx-surface, #FFFFFF);
	box-shadow: var(--nx-sombra-forte);
}

.nx-select.is-open .nx-select__lista {
	display: block;
}

/* Aberto: fica por cima do que vem depois na página. */
.nx-select.is-open {
	z-index: 100;
}

.nx-hero:has(.nx-select.is-open),
form:has(.nx-select.is-open) {
	position: relative;
	z-index: 100;
}

.nx-select__lista li {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 10px 12px;
	border-radius: 6px;
	color: var(--nx-ink);
	font-size: 15px;
	font-weight: 500;
	cursor: pointer;
}

.nx-select__lista li.is-active {
	background: color-mix(in oklab, var(--nx-accent) 12%, var(--nx-surface, #FFFFFF));
}

.nx-select__lista li[aria-selected="true"] {
	color: var(--nx-accent-ink, var(--nx-accent));
	font-weight: 700;
}

.nx-select__lista li[aria-selected="true"]::after {
	content: '';
	width: 5px;
	height: 10px;
	margin-top: -3px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
}

/* -------------------------------------------------------------------------- */
/* KIT E · LILÁS: ajustes do visual do E sobre a base                          */
/* -------------------------------------------------------------------------- */

/* Topo: cartão branco solto, com contorno e sombra dura. */
.nx-header {
	padding: 20px max(24px, calc((100% - 1296px) / 2)) 0;
}

.nx-header__bar {
	gap: 28px;
	height: 76px;
	padding: 0 24px;
	border: var(--nx-contorno);
	border-radius: 18px;
	background: var(--nx-header-bg, #FFFFFF);
	box-shadow: var(--nx-sombra);
}

.nx-logo {
	font-family: var(--nx-font-title);
	font-size: 24px;
	font-weight: 400;
}

.nx-nav {
	justify-content: flex-start;
	gap: 4px;
}

.nx-nav a {
	height: 40px;
	padding: 0 14px;
	border: 2px solid transparent;
	border-radius: 10px;
}

/* Com a "Cor do topo" de Definições, o fundo sai da cor do texto do topo (--nx-header-hover): fundo claro com texto claro some. */
.nx-nav a:hover {
	background: var(--nx-header-hover, var(--nx-soft));
}

.nx-nav a[aria-current="page"] {
	border-color: #111014;
	background: var(--nx-amarelo);
	color: #111014;
}

.nx-header__lupa,
.nx-header__menu {
	border: var(--nx-contorno);
	border-radius: 12px;
	background: #FFFFFF;
	box-shadow: none;
}

.nx-header__busca {
	top: calc(100% + 12px);
	left: max(24px, calc((100% - 1296px) / 2));
	right: max(24px, calc((100% - 1296px) / 2));
	padding: 16px;
	border: var(--nx-contorno);
	border-radius: 18px;
	background: #FFFFFF;
	box-shadow: var(--nx-sombra);
}

.nx-header__search,
.nx-hero__search,
.nx-list-head__search {
	border: var(--nx-contorno);
	border-radius: 14px;
	box-shadow: var(--nx-sombra);
}

.nx-header__search button,
.nx-hero__search button,
.nx-list-head__search button {
	border: var(--nx-contorno);
	border-radius: 12px;
	font-family: var(--nx-font-title);
	font-weight: 400;
}

/* Botões: roxo com contorno e sombra dura; o "claro" é branco. */
.nx-btn {
	border: var(--nx-contorno);
	border-radius: 12px;
	box-shadow: var(--nx-sombra-leve);
	font-family: var(--nx-font-title);
	font-weight: 400;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.nx-btn:hover {
	transform: translate(-1px, -1px);
	box-shadow: 4px 4px 0 #111014;
}

.nx-btn--claro {
	background: var(--nx-accent);
	color: var(--nx-on-accent, #FFFFFF);
	box-shadow: var(--nx-sombra-leve);
}

.nx-btn--claro:hover {
	background: var(--nx-accent);
	color: var(--nx-on-accent, #FFFFFF);
	box-shadow: 4px 4px 0 #111014;
}

.nx-chip {
	height: 38px;
	padding: 0 14px;
	border: 2px solid #111014;
	border-radius: 10px;
	background: #FFFFFF;
	box-shadow: 2px 2px 0 #111014;
	color: #111014;
}

.nx-chip.is-active,
.nx-chip[aria-current="page"] {
	background: var(--nx-amarelo);
	color: #111014;
}

.nx-eyebrow {
	font-family: var(--nx-font-title);
	font-size: 12px;
	font-weight: 400;
	color: var(--nx-accent);
}

.nx-h2,
.nx-h3,
.nx-ranking__title {
	font-weight: 400;
	letter-spacing: -0.01em;
}

.nx-ranking__num {
	font-weight: 400;
	color: #111014;
}

.nx-ranking li + li {
	box-shadow: inset 0 2px 0 #111014;
}

/* Etiquetas: cor viva, contorno preto e caixa alta. */
.nx-tag {
	height: 24px;
	padding: 0 9px;
	border: 2px solid #111014;
	border-radius: 7px;
	font-family: var(--nx-font-title);
	font-size: 11px;
	font-weight: 400;
	letter-spacing: 0.04em;
	color: #111014;
}

.nx-tag--1 { background: var(--nx-lilas); color: #111014; }
.nx-tag--2 { background: var(--nx-rosa); color: #111014; }
.nx-tag--3 { background: var(--nx-amarelo); color: #111014; }
.nx-tag--4 { background: #7EE8C8; color: #111014; }
.nx-tag--5 { background: #FFA65D; color: #111014; }
.nx-tag--6 { background: #8FD3FF; color: #111014; }
.nx-tag--7 { background: #FFFFFF; color: #111014; }

/* Cards: brancos com contorno e sombra dura. */
.nx-card,
.nx-ranking,
.nx-jogos-lado {
	border: var(--nx-contorno);
	border-radius: 16px;
	background: #FFFFFF;
	box-shadow: var(--nx-sombra);
}

.nx-card:hover {
	box-shadow: 7px 7px 0 #111014;
	transform: translate(-2px, -2px);
}

.nx-card .nx-thumb {
	border-bottom: var(--nx-contorno);
}

.nx-card__title {
	font-weight: 700;
}

.nx-jogo-capa {
	border: var(--nx-contorno);
	border-radius: 12px;
	box-shadow: var(--nx-sombra-leve);
}

.nx-score {
	box-shadow: 0 0 0 2.5px #111014;
	background: var(--nx-amarelo);
	color: #111014;
}

.nx-rede {
	border: var(--nx-contorno);
	border-radius: 20px;
	box-shadow: 6px 6px 0 #111014;
}

.nx-footer__brand p,
.nx-footer__head,
.nx-footer__bottom {
	color: #B6B3C4;
}

.nx-footer__col a:hover {
	color: var(--nx-amarelo);
}

@media (max-width: 1100px) {
	.nx-nav {
		top: calc(100% + 10px);
		left: 0;
		right: 0;
		border: var(--nx-contorno);
		border-radius: 18px;
		background: var(--nx-header-bg, #FFFFFF); /* os links têm a cor do texto do topo */
		box-shadow: var(--nx-sombra);
	}
}

@media (max-width: 640px) {
	.nx-header {
		padding: 12px 12px 0;
	}

	.nx-header__bar {
		height: 64px;
		border-radius: 14px;
	}

	.nx-header__busca {
		left: 12px;
		right: 12px;
	}
}
/* Celular: botão "Jogar agora" compacto para o menu (☰) caber na barra. */
@media (max-width: 640px) {
	.nx-header__acoes {
		gap: 6px;
	}

	.nx-header__jogos {
		height: 40px;
		padding: 0 10px;
		font-size: 13px;
	}

	.nx-header__jogos svg {
		display: none;
	}

	.nx-header__lupa,
	.nx-header__menu {
		width: 40px;
		height: 40px;
	}

	.nx-logo {
		font-size: 19px;
	}
}

@media (max-width: 640px) {
	.nx-header__bar {
		gap: 10px;
		padding: 0 12px;
	}
}

/* Celular: conteúdo mais perto das laterais da tela. */
@media (max-width: 640px) {
	.nx-wrap {
		padding-left: 14px;
		padding-right: 14px;
	}
}
