/*
 * Public tester profile presentation.
 * Uses the same dark design tokens, 4:3 game-card geometry and pagination
 * language as the canonical game collection pages, without depending on the
 * active theme's archive stylesheet.
 */

body.nmg-tester-profile-view .site-content {
	display: block;
}

body.nmg-tester-profile-view .content-area {
	width: 100%;
}

body.nmg-tester-profile-view .widget-area {
	display: none;
}

body.nmg-tester-profile-view .nmg-editorial-page {
	box-sizing: border-box;
	width: 100%;
	max-width: 1480px;
	margin: 0 auto;
	padding: 18px 20px 64px;
	color: var(--nmg-text, #f4f7fb);
}

body.nmg-tester-profile-view .nmg-editorial-page .site-main {
	width: 100%;
	min-width: 0;
}

body.nmg-tester-profile-view .nmg-breadcrumbs-wrap {
	margin: 0 0 clamp(18px, 3vw, 28px);
}

body.nmg-tester-profile-view .nmg-breadcrumbs {
	overflow: hidden;
	color: var(--nmg-muted, #8e9aad);
	font-size: .86rem;
	line-height: 1.4;
}

body.nmg-tester-profile-view .nmg-breadcrumbs__inner {
	display: flex;
	align-items: center;
	gap: 9px;
	min-width: 0;
	margin: 0;
	white-space: nowrap;
}

body.nmg-tester-profile-view .nmg-breadcrumbs a {
	flex: 0 0 auto;
	color: var(--nmg-text-soft, #c7d0df);
	font-weight: 600;
	text-decoration: none;
}

body.nmg-tester-profile-view .nmg-breadcrumbs a:hover,
body.nmg-tester-profile-view .nmg-breadcrumbs a:focus-visible {
	color: #fff;
}

body.nmg-tester-profile-view .nmg-breadcrumb-separator {
	flex: 0 0 auto;
	color: #5f6d82;
	font-size: 1.1em;
}

body.nmg-tester-profile-view .nmg-breadcrumbs__inner > :last-child {
	overflow: hidden;
	text-overflow: ellipsis;
}

body.nmg-tester-profile-view .nmg-editorial-profile {
	box-sizing: border-box;
	width: 100%;
	padding: clamp(22px, 4vw, 42px);
	border: 1px solid var(--nmg-border, rgba(142, 154, 173, .24));
	border-radius: 20px;
	background: var(--nmg-surface, #0d1929);
	box-shadow: 0 14px 38px rgba(0, 0, 0, .16);
	color: var(--nmg-text, #f4f7fb);
}

body.nmg-tester-profile-view .nmg-editorial-profile__header {
	display: flex;
	align-items: center;
	gap: 22px;
	margin: 0 0 26px;
}

body.nmg-tester-profile-view .nmg-editorial-profile__identity {
	min-width: 0;
}

body.nmg-tester-profile-view .nmg-editorial-profile__avatar {
	flex: 0 0 120px;
	display: block;
	width: 120px;
	height: 120px;
	margin: 0;
	border: 1px solid var(--nmg-border-strong, rgba(169, 200, 255, .38));
	border-radius: 50%;
	background: var(--nmg-surface-2, #132238);
	object-fit: cover;
	object-position: center;
}

body.nmg-tester-profile-view .nmg-editorial-profile__eyebrow {
	margin: 0 0 5px;
	color: var(--nmg-accent-soft-text, #a9c8ff);
	font-size: .78rem;
	font-weight: 750;
	letter-spacing: .055em;
	line-height: 1.35;
	text-transform: uppercase;
}

body.nmg-tester-profile-view .nmg-editorial-profile h1 {
	margin: 0;
	padding: 0;
	color: var(--nmg-text, #f4f7fb);
	font-size: clamp(1.9rem, 4vw, 2.75rem);
	font-weight: 750;
	line-height: 1.12;
	letter-spacing: -.025em;
}

body.nmg-tester-profile-view .nmg-editorial-profile__role {
	margin: 8px 0 0;
	color: var(--nmg-text-soft, #c7d0df);
	font-size: .98rem;
	line-height: 1.5;
}

body.nmg-tester-profile-view .nmg-editorial-profile__catalog-summary {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 5px 9px;
	margin: 8px 0 0;
	color: var(--nmg-muted, #8e9aad);
	font-size: .82rem;
	font-weight: 650;
	line-height: 1.4;
}

body.nmg-tester-profile-view .nmg-editorial-profile__body {
	max-width: 920px;
	color: var(--nmg-text-soft, #c7d0df);
	font-size: 1rem;
	line-height: 1.72;
}

body.nmg-tester-profile-view .nmg-editorial-profile__body h2 {
	margin: 30px 0 10px;
	padding: 0;
	color: var(--nmg-text, #f4f7fb);
	font-size: clamp(1.18rem, 2vw, 1.42rem);
	font-weight: 700;
	line-height: 1.25;
}

body.nmg-tester-profile-view .nmg-editorial-profile__body p {
	margin: 0 0 1rem;
	color: var(--nmg-text-soft, #c7d0df);
}

body.nmg-tester-profile-view .nmg-editorial-profile__body p:last-child {
	margin-bottom: 0;
}

body.nmg-tester-profile-view .nmg-editorial-profile__body .nmg-button {
	color: #fff;
	text-decoration: none;
}

body.nmg-tester-profile-view .nmg-editorial-games-section {
	width: 100%;
	min-width: 0;
	margin-top: clamp(30px, 4vw, 46px);
}

body.nmg-tester-profile-view .nmg-editorial-games-section__header {
	margin-bottom: 16px;
}

body.nmg-tester-profile-view .nmg-editorial-games-section__header h2 {
	margin: 0;
	color: var(--nmg-text, #f4f7fb);
	font-size: clamp(1.35rem, 2.4vw, 1.9rem);
	font-weight: 750;
	line-height: 1.2;
	letter-spacing: -.015em;
}

body.nmg-tester-profile-view .nmg-editorial-games-section__header p {
	margin: 6px 0 0;
	color: var(--nmg-muted, #8e9aad);
	font-size: .9rem;
}

body.nmg-tester-profile-view .nmg-tester-game-grid {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 14px;
	width: 100%;
	min-width: 0;
}

body.nmg-tester-profile-view .nmg-tester-game-grid .nmg-game-card {
	position: relative;
	overflow: hidden;
	min-width: 0;
	border: 1px solid var(--nmg-border, rgba(142, 154, 173, .24));
	border-radius: 11px;
	background: var(--nmg-surface, #0d1929);
	transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

body.nmg-tester-profile-view .nmg-tester-game-grid .nmg-game-card:hover,
body.nmg-tester-profile-view .nmg-tester-game-grid .nmg-game-card:focus-within {
	border-color: var(--nmg-border-strong, rgba(169, 200, 255, .45));
	background: var(--nmg-surface-2, #132238);
	transform: translateY(-2px);
}

body.nmg-tester-profile-view .nmg-tester-game-grid .nmg-game-card__link {
	display: block;
	color: inherit;
	text-decoration: none;
}

body.nmg-tester-profile-view .nmg-tester-game-grid .nmg-game-card__media {
	position: relative;
	overflow: hidden;
	aspect-ratio: 4 / 3;
	background: var(--nmg-surface-2, #132238);
}

body.nmg-tester-profile-view .nmg-tester-game-grid .nmg-game-card__image,
body.nmg-tester-profile-view .nmg-tester-game-grid .nmg-game-card__placeholder {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	object-fit: cover;
	object-position: center;
	transition: transform 220ms ease, filter 220ms ease;
}

body.nmg-tester-profile-view .nmg-tester-game-grid .nmg-game-card:hover .nmg-game-card__image,
body.nmg-tester-profile-view .nmg-tester-game-grid .nmg-game-card:focus-within .nmg-game-card__image {
	transform: scale(1.035);
	filter: brightness(.8);
}

body.nmg-tester-profile-view .nmg-tester-game-grid .nmg-game-card__title-layer {
	position: absolute;
	inset: auto 0 0;
	display: flex;
	align-items: flex-end;
	min-height: 66%;
	padding: 28px 11px 11px;
	background: linear-gradient(180deg, transparent 0%, rgba(3, 9, 17, .48) 36%, rgba(3, 9, 17, .96) 100%);
	opacity: 1;
	transform: none;
	pointer-events: none;
}

body.nmg-tester-profile-view .nmg-tester-game-grid .nmg-game-card__title {
	display: -webkit-box;
	overflow: hidden;
	margin: 0;
	padding: 0;
	color: #fff;
	font-size: .84rem;
	font-weight: 800;
	line-height: 1.2;
	text-shadow: 0 1px 3px rgba(0, 0, 0, .65);
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

body.nmg-tester-profile-view .nmg-pagination {
	width: 100%;
	margin: 28px 0 0;
	padding: 0;
	background: transparent;
}

body.nmg-tester-profile-view .nmg-pagination__list {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: center;
	gap: 7px;
	margin: 0;
	padding: 0;
	list-style: none;
}

body.nmg-tester-profile-view .nmg-pagination__link,
body.nmg-tester-profile-view .nmg-pagination__current,
body.nmg-tester-profile-view .nmg-pagination__dots {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	box-sizing: border-box;
	min-width: 42px;
	height: 42px;
	min-height: 42px;
	padding: 0 11px;
	border: 1px solid var(--nmg-border, rgba(142, 154, 173, .24));
	border-radius: var(--nmg-radius-sm, 9px);
	background: var(--nmg-surface, #0d1929);
	color: var(--nmg-text-soft, #c7d0df);
	font-size: .88rem;
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
}

body.nmg-tester-profile-view .nmg-pagination__current,
body.nmg-tester-profile-view .nmg-pagination__link:hover,
body.nmg-tester-profile-view .nmg-pagination__link:focus-visible {
	border-color: var(--nmg-accent, #6d5dfc);
	background: var(--nmg-accent-soft, rgba(109, 93, 252, .18));
	color: #fff;
}

body.nmg-tester-profile-view .nmg-pagination__dots {
	border-color: transparent;
	background: transparent;
	padding-inline: 3px;
}

body.nmg-tester-profile-view .nmg-pagination__icon {
	font-size: 1.15em;
	line-height: 1;
}

@media (max-width: 1180px) {
	body.nmg-tester-profile-view .nmg-tester-game-grid {
		grid-template-columns: repeat(5, minmax(0, 1fr));
	}
}

@media (max-width: 980px) {
	body.nmg-tester-profile-view .nmg-tester-game-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

@media (max-width: 782px) {
	body.nmg-tester-profile-view .nmg-editorial-page {
		padding-top: 12px;
	}

	body.nmg-tester-profile-view .nmg-tester-game-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 12px;
	}
}

@media (max-width: 640px) {
	body.nmg-tester-profile-view .nmg-editorial-page {
		padding-inline: 14px;
		padding-bottom: 48px;
	}

	body.nmg-tester-profile-view .nmg-editorial-profile {
		padding: 20px;
		border-radius: 16px;
	}

	body.nmg-tester-profile-view .nmg-editorial-profile__header {
		align-items: flex-start;
		gap: 15px;
		margin-bottom: 22px;
	}

	body.nmg-tester-profile-view .nmg-editorial-profile__avatar {
		flex-basis: 78px;
		width: 78px;
		height: 78px;
	}

	body.nmg-tester-profile-view .nmg-editorial-profile h1 {
		font-size: clamp(1.55rem, 8vw, 2rem);
	}

	body.nmg-tester-profile-view .nmg-editorial-profile__role {
		font-size: .88rem;
	}

	body.nmg-tester-profile-view .nmg-tester-game-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
	}

	body.nmg-tester-profile-view .nmg-pagination__list {
		gap: 6px;
	}

	body.nmg-tester-profile-view .nmg-pagination__link,
	body.nmg-tester-profile-view .nmg-pagination__current,
	body.nmg-tester-profile-view .nmg-pagination__dots {
		width: 40px;
		min-width: 40px;
		height: 40px;
		min-height: 40px;
		padding: 0;
	}

	body.nmg-tester-profile-view .nmg-pagination__label {
		display: none;
	}
}
