/*
 * Annuaire des membres (joueurs.php, partials/player_tile.php).
 *
 * Deux vues pour la meme liste :
 *  - Cartes : format portrait 192x245, celui des fonds de carte. Le fond
 *    choisi par le joueur remplit toute la carte, son cadre entoure
 *    l'avatar, et rien d'autre ne se pose sur l'avatar.
 *  - Lignes : un registre dense, colonnes fixes, le fond du joueur en
 *    tranche sur le bord droit de sa ligne.
 *
 * Reprend les couleurs du theme (tavern.css : --dp-*). Pas de Tailwind ici :
 * tailwind.css est precompile, une classe nouvelle n'y serait pas.
 */

/* Variables posees aussi sur la carte seule : account.php l'affiche hors de .gtp. */
.gtp,
.gtp-card,
.gtp-list {
	--gtp-line: color-mix(in srgb, var(--dp-parchment, #CDB397) 14%, transparent);
	--gtp-line-strong: color-mix(in srgb, var(--dp-parchment, #CDB397) 26%, transparent);
	--gtp-surface: color-mix(in srgb, var(--dp-bg-elevated, #141B2B) 82%, transparent);
	--gtp-teal: #2DD4BF;
	--gtp-admin: #FF9F43;
	--gtp-staff: #34D399;
}
.gtp {
	position: relative;
	z-index: 1;
	font-family: 'Poppins', sans-serif;
}

/* ------------------------------------------------------------ En-tete */

.gtp-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 18px;
}
.gtp-title {
	margin: 0;
	font-family: 'Baloo 2', 'Poppins', sans-serif;
	font-size: 30px;
	font-weight: 800;
	line-height: 1.1;
	color: var(--dp-text);
}
.gtp-lede {
	margin: 2px 0 0;
	font-size: 13px;
	color: var(--dp-text-muted);
}

/* -------------------------------------------------- Recherche + filtres */

.gtp-form {
	display: block;
}
.gtp-search {
	position: relative;
	display: flex;
	align-items: center;
	margin-bottom: 12px;
}
.gtp-search > i {
	position: absolute;
	left: 16px;
	color: var(--dp-text-faint);
	font-size: 14px;
	pointer-events: none;
}
.gtp-search input {
	width: 100%;
	height: 46px;
	padding: 0 48px 0 44px;
	border-radius: 14px;
	border: 1px solid var(--dp-border);
	background: var(--gtp-surface);
	color: var(--dp-text);
	font: inherit;
	font-size: 14px;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.gtp-search input::placeholder {
	color: var(--dp-text-faint);
}
.gtp-search input:focus {
	outline: none;
	border-color: color-mix(in srgb, var(--dp-accent) 55%, var(--dp-border));
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--dp-accent) 14%, transparent);
}
.gtp-search input::-webkit-search-cancel-button {
	filter: grayscale(1) brightness(1.6);
	cursor: pointer;
}
.gtp-kbd {
	position: absolute;
	right: 14px;
	min-width: 22px;
	padding: 1px 6px;
	border-radius: 6px;
	border: 1px solid var(--dp-border);
	color: var(--dp-text-faint);
	font: 600 11px/18px 'Poppins', sans-serif;
	text-align: center;
	pointer-events: none;
}
@media (hover: none) {
	.gtp-kbd {
		display: none;
	}
}
.gtp-search input:focus ~ .gtp-kbd,
.gtp-search input:not(:placeholder-shown) ~ .gtp-kbd {
	display: none;
}

.gtp-dynamic {
	transition: opacity 0.15s ease;
}
.gtp-dynamic.is-loading {
	opacity: 0.55;
	pointer-events: none;
}

.gtp-controls {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px 16px;
}
.gtp-chips {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
}
.gtp-chip {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	height: 32px;
	padding: 0 13px;
	border-radius: 10px;
	border: 1px solid var(--dp-border);
	background: var(--gtp-surface);
	color: var(--dp-text-muted);
	font-size: 12px;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
	transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}
.gtp-chip i {
	font-size: 11px;
	color: var(--gtp-accent, var(--dp-text-faint));
}
.gtp-chip-img {
	width: 16px;
	height: 16px;
	border-radius: 50%;
	object-fit: cover;
}
.gtp-chip:hover {
	color: var(--dp-text);
	border-color: var(--gtp-line-strong);
}
.gtp-chip.is-on {
	color: var(--dp-bg);
	background: var(--dp-parchment);
	border-color: var(--dp-parchment);
}
.gtp-chip.is-on i {
	color: inherit;
}
.gtp-chips-sep {
	width: 1px;
	height: 18px;
	margin: 0 4px;
	background: var(--dp-border);
}

.gtp-controls-end {
	display: flex;
	align-items: center;
	gap: 10px;
}
.gtp-sort {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 12px;
	color: var(--dp-text-faint);
}
.gtp-sort select {
	height: 32px;
	padding: 0 30px 0 11px;
	border-radius: 10px;
	border: 1px solid var(--dp-border);
	background: var(--gtp-surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%238A93AC' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 11px center;
	color: var(--dp-text);
	font: 600 12px 'Poppins', sans-serif;
	appearance: none;
	cursor: pointer;
}
.gtp-sort select:focus-visible {
	outline: 2px solid var(--dp-accent);
	outline-offset: 2px;
}

.gtp-views {
	display: inline-flex;
	padding: 3px;
	border-radius: 11px;
	border: 1px solid var(--dp-border);
	background: var(--gtp-surface);
}
.gtp-views a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 26px;
	padding: 0 10px;
	border-radius: 8px;
	color: var(--dp-text-faint);
	font-size: 12px;
	font-weight: 600;
	text-decoration: none;
	transition: color 0.15s ease, background-color 0.15s ease;
}
.gtp-views a:hover {
	color: var(--dp-text);
}
.gtp-views a.is-on {
	color: var(--dp-text);
	background: var(--dp-bg-elevated-2, #1C2438);
	box-shadow: inset 0 0 0 1px var(--gtp-line-strong);
}

/* Alphabet : une reglette, pas une rangee de boutons */
.gtp-alpha {
	display: flex;
	align-items: stretch;
	margin: 14px 0 0;
	border-top: 1px solid var(--gtp-line);
	border-bottom: 1px solid var(--gtp-line);
	overflow-x: auto;
	scrollbar-width: none;
}
.gtp-alpha::-webkit-scrollbar {
	display: none;
}
.gtp-alpha a,
.gtp-alpha span {
	flex: 1 0 auto;
	min-width: 26px;
	padding: 7px 4px;
	text-align: center;
	font: 700 12px/1 'Baloo 2', 'Poppins', sans-serif;
	letter-spacing: 0.02em;
	text-decoration: none;
	color: var(--dp-text-muted);
	position: relative;
}
.gtp-alpha .gtp-alpha-all {
	padding-left: 10px;
	padding-right: 12px;
	border-right: 1px solid var(--gtp-line);
	margin-right: 4px;
}
.gtp-alpha a:hover {
	color: var(--dp-text);
}
.gtp-alpha a.is-on {
	color: var(--dp-accent);
}
.gtp-alpha a.is-on::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: -1px;
	width: 14px;
	height: 2px;
	margin-left: -7px;
	border-radius: 2px;
	background: var(--dp-accent);
}
.gtp-alpha .gtp-alpha-all.is-on::after {
	width: 22px;
	margin-left: -11px;
}
.gtp-alpha .is-empty {
	color: color-mix(in srgb, var(--dp-text-faint) 40%, transparent);
}

.gtp-summary {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 8px;
	margin: 14px 0 16px;
	font-size: 13px;
	color: var(--dp-text-muted);
}
.gtp-summary strong {
	color: var(--dp-text);
	font-weight: 700;
}
.gtp-summary-page {
	margin-left: auto;
	color: var(--dp-text-faint);
	font-size: 12px;
}
.gtp-reset {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	margin-left: 4px;
	color: var(--dp-accent);
	font-weight: 600;
	font-size: 12px;
	text-decoration: none;
}
.gtp-reset:hover {
	color: var(--dp-text);
}

/* ------------------------------------------------- Infobulles legeres */

[data-tip]:where(.gtp-role, .gtp-badge, .gtp-card-meta, .gtp-row-teams) {
	position: relative;
}
@media (hover: hover) and (pointer: fine) {
	:is(.gtp-role, .gtp-badge, .gtp-card-meta, .gtp-row-teams)[data-tip]:hover::after {
		content: attr(data-tip);
		position: absolute;
		left: 50%;
		bottom: calc(100% + 8px);
		transform: translateX(-50%);
		z-index: 40;
		width: max-content;
		max-width: 220px;
		padding: 6px 9px;
		border-radius: 8px;
		border: 1px solid var(--dp-border);
		background: #0B0F17;
		color: var(--dp-text);
		font: 500 11px/1.35 'Poppins', sans-serif;
		letter-spacing: normal;
		text-transform: none;
		text-align: left;
		white-space: normal;
		box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.8);
		pointer-events: none;
	}
}

/* ------------------------------------------------------------- Avatar */

.gtp-av {
	--gtp-av: 68px;
	position: relative;
	display: block;
	flex: none;
	width: var(--gtp-av);
	height: var(--gtp-av);
	border-radius: 22%;
}
.gtp-av--md { --gtp-av: 76px; }
.gtp-av--sm { --gtp-av: 40px; }

/* Sans cadre image : un anneau fin de la couleur de la bordure choisie. */
.gtp-av:not(.has-frame) {
	padding: 2px;
	background: linear-gradient(160deg, var(--gtp-ring), color-mix(in srgb, var(--gtp-ring) 45%, transparent));
	box-shadow: 0 6px 18px -8px color-mix(in srgb, var(--gtp-ring) 70%, transparent);
}
.gtp-av:not(.has-frame) .gtp-av-photo {
	width: 100%;
	height: 100%;
	border-radius: 20%;
	border: 2px solid #0E1220;
}
.gtp-av-photo {
	display: flex;
	align-items: center;
	justify-content: center;
	object-fit: cover;
	max-width: none;
	background: #0B0F17;
}
.gtp-av-empty {
	color: var(--dp-text-faint);
	font-size: calc(var(--gtp-av) * 0.34);
}
/* Avec cadre image : le cadre deborde de 10 % de chaque cote (120 %), comme
   avant, donc les cadres deja envoyes tombent juste. La photo reste a 100 %
   (avant 106 %) : elle ne depasse plus au-dessus des cadres fins. */
.gtp-av.has-frame .gtp-av-photo {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border-radius: 8%;
}
.gtp-av-frame {
	/* Debord de 10 % arrondi au pixel : 10 % de 62 px tombait a 6,2 px, et le
	   cadre se decalait d'un pixel par rapport a la photo selon l'arrondi. */
	--gtp-av-bleed: round(calc(var(--gtp-av) * 0.1), 1px);
	position: absolute;
	top: -10%;
	left: -10%;
	width: 120%;
	height: 120%;
	top: calc(var(--gtp-av-bleed) * -1);
	left: calc(var(--gtp-av-bleed) * -1);
	width: calc(var(--gtp-av) + var(--gtp-av-bleed) * 2);
	height: calc(var(--gtp-av) + var(--gtp-av-bleed) * 2);
	max-width: none;
	pointer-events: none;
	user-select: none;
	filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.45));
}

/* -------------------------------------------- Grade, trophees, jeux... */

.gtp-name-text {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.gtp-role {
	flex: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	border-radius: 6px;
	font-size: 9px;
	color: var(--gtp-role-c);
	background: color-mix(in srgb, var(--gtp-role-c) 16%, transparent);
	box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--gtp-role-c) 45%, transparent);
	cursor: help;
}
.gtp-role--admin { --gtp-role-c: var(--gtp-admin); }
.gtp-role--staff { --gtp-role-c: var(--gtp-staff); }

.gtp-self {
	display: inline-flex;
	align-items: center;
	height: 16px;
	padding: 0 6px;
	border-radius: 5px;
	background: color-mix(in srgb, var(--gtp-teal) 16%, transparent);
	color: var(--gtp-teal);
	font: 700 9px/1 'Poppins', sans-serif;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.gtp-badge {
	flex: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	color: var(--gtp-badge);
	background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--gtp-badge) 30%, #0B0F17), #0B0F17 75%);
	box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--gtp-badge) 75%, transparent);
	font-size: 9px;
	cursor: help;
}
.gtp-badge img {
	width: 100%;
	height: 100%;
	border-radius: 50%;
	object-fit: cover;
}
.gtp-badge-more {
	font-size: 11px;
	font-weight: 600;
	color: var(--dp-text-faint);
}

.gtp-game {
	flex: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	border-radius: 6px;
	background: color-mix(in srgb, var(--gtp-accent) 18%, #0B0F17);
	color: var(--gtp-accent);
	font-size: 10px;
	overflow: hidden;
}
.gtp-game img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.gtp-char {
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
}
.gtp-char-portrait {
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 8px;
	overflow: hidden;
	background: color-mix(in srgb, var(--gtp-accent) 20%, #0B0F17);
	box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--gtp-accent) 45%, transparent);
	color: var(--dp-text-faint);
	font-size: 11px;
}
.gtp-char-portrait img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
/* Personnage choisi par le joueur (pas encore dans une equipe) : cadre en
   pointilles, pour ne pas le confondre avec un vrai membre de roster. */
.gtp-char.is-pick .gtp-char-portrait {
	box-shadow: none;
	outline: 1px dashed color-mix(in srgb, var(--dp-text-muted) 70%, transparent);
	outline-offset: -1px;
}
.gtp-char-text {
	display: flex;
	flex-direction: column;
	min-width: 0;
	line-height: 1.2;
}
.gtp-char-name {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	color: var(--dp-text);
	font-size: 12px;
	font-weight: 600;
}
.gtp-char-sub {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	color: var(--dp-text-faint);
	font-size: 10.5px;
}
.gtp-char.is-empty .gtp-char-sub {
	font-style: italic;
}
.gtp-faint {
	color: var(--dp-text-faint);
}

/* ------------------------------------------------------------ Cartes */

.gtp-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(162px, 1fr));
	gap: 12px;
}

.gtp-card {
	--gtp-edge: var(--gtp-line);
	position: relative;
	display: flex;
	flex-direction: column;
	aspect-ratio: 192 / 245;
	min-height: 206px;
	border-radius: 16px;
	color: var(--dp-text);
	text-decoration: none;
	isolation: isolate;
	/* Zoom au survol tres court : la carte suit la souris sans trainer. */
	transition: transform 90ms ease-out, box-shadow 90ms ease-out;
	/* Calque graphique permanent : sans lui, le navigateur cree un calque au
	   debut du zoom (ou de l'animation d'arrivee) et le retire a la fin, et
	   l'avatar se recale d'environ 1 px a chaque fois : il "saute". */
	will-change: transform;
	backface-visibility: hidden;
	/* backwards (pas both) : une fois arrivee, l'animation ne bloque plus le
	   transform du survol. */
	animation: gtp-in 0.35s ease backwards;
	animation-delay: calc(var(--i, 0) * 22ms);
}

/* La face porte le fond et garde les coins arrondis ; la carte elle-meme
   reste sans overflow pour que les infobulles ne soient jamais rognees. */
.gtp-card-face {
	position: absolute;
	inset: 0;
	z-index: -1;
	overflow: hidden;
	border-radius: inherit;
	background:
		radial-gradient(120% 70% at 50% 18%, rgba(242, 137, 78, 0.10), transparent 60%),
		linear-gradient(180deg, #182033 0%, #10151F 100%);
	/* Double filet grave : rappelle le liseré d'une carte a jouer. */
	box-shadow:
		inset 0 0 0 1px var(--gtp-edge),
		inset 0 0 0 6px rgba(9, 12, 20, 0.55),
		inset 0 0 0 7px color-mix(in srgb, var(--dp-parchment) 9%, transparent);
}
.gtp-card-bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
}
.gtp-card.has-bg .gtp-card-face {
	box-shadow: inset 0 0 0 1px var(--gtp-edge);
}
/* Voile : le haut du fond reste visible, le bas s'assombrit pour le texte. */
.gtp-card-scrim {
	position: absolute;
	inset: 0;
	pointer-events: none;
}
.gtp-card.has-bg .gtp-card-scrim {
	background:
		linear-gradient(180deg, rgba(8, 10, 16, 0) 0%, rgba(8, 10, 16, 0) 30%, rgba(8, 10, 16, 0.42) 56%, rgba(8, 10, 16, 0.8) 100%);
}

/* Seul un trophee legendaire se remarque sur la grille : un liseré et une
   ombre de sa couleur. Teinter toutes les raretes rendait la grille bruyante. */
.gtp-card[data-rarity="legendaire"] {
	--gtp-edge: color-mix(in srgb, var(--gtp-rarity) 55%, transparent);
	box-shadow: 0 12px 30px -16px color-mix(in srgb, var(--gtp-rarity) 85%, transparent);
}
.gtp-card.is-self {
	--gtp-edge: color-mix(in srgb, var(--gtp-teal) 70%, transparent);
}

.gtp-card-body {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 11% 10% 0;
	min-width: 0;
}
.gtp-card .gtp-av {
	--gtp-av: 62px;
	margin-bottom: 11px;
}
.gtp-card-name {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
	max-width: 100%;
	font-family: 'Baloo 2', 'Poppins', sans-serif;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.15;
	text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}
.gtp-card-meta {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	max-width: 100%;
	margin-top: 3px;
	color: color-mix(in srgb, var(--dp-parchment) 80%, var(--dp-text-muted));
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	white-space: nowrap;
}
.gtp-card-badges {
	display: flex;
	justify-content: center;
	gap: 5px;
	min-height: 22px;
	margin-top: 9px;
}
.gtp-card-foot {
	margin-top: auto;
	margin: auto 9% 9%;
	padding-top: 8px;
	border-top: 1px solid var(--gtp-line);
	min-width: 0;
}
.gtp-card-foot .gtp-char {
	justify-content: center;
}
.gtp-card-foot .gtp-char-text {
	max-width: calc(100% - 36px);
}
.gtp-card-foot .gtp-char.is-empty {
	min-height: 28px;
}

@media (hover: hover) and (pointer: fine) {
	/* Toute la carte vient vers l'ecran (fond, cadre, texte ensemble) et
	   passe au-dessus de ses voisines. */
	a.gtp-card:hover {
		z-index: 5;
		transform: scale(1.12);
		box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.85);
		--gtp-edge: color-mix(in srgb, var(--dp-accent) 55%, transparent);
	}
}
a.gtp-card:focus-visible {
	outline: 2px solid var(--dp-accent);
	outline-offset: 3px;
}

@keyframes gtp-in {
	from { opacity: 0; transform: translateY(6px); }
	to { opacity: 1; transform: none; }
}

/* ------------------------------------------------------------- Lignes */

.gtp-list {
	--gtp-cols: minmax(200px, 1.1fr) minmax(170px, 1fr) 84px 120px 96px 14px;
	border-radius: 14px;
	border: 1px solid var(--dp-border);
	background: color-mix(in srgb, var(--dp-bg) 70%, transparent);
	overflow: hidden;
}
.gtp-list-head,
.gtp-row {
	display: grid;
	grid-template-columns: var(--gtp-cols);
	align-items: center;
	column-gap: 16px;
	padding: 0 16px;
}
.gtp-list-head {
	height: 38px;
	border-bottom: 1px solid var(--dp-border);
	background: var(--gtp-surface);
	color: var(--dp-text-faint);
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}
.gtp-th-sort {
	color: inherit;
	text-decoration: none;
}
.gtp-th-sort:hover,
.gtp-th-sort.is-on {
	color: var(--dp-text);
}
.gtp-th-sort i {
	margin-left: 3px;
	color: var(--dp-accent);
}

.gtp-list-letter {
	padding: 8px 16px 2px;
	border-top: 1px solid var(--gtp-line);
}
.gtp-list-letter:first-of-type {
	border-top: 0;
}
.gtp-list-letter span {
	font: 800 13px/1 'Baloo 2', 'Poppins', sans-serif;
	color: var(--dp-parchment);
}

.gtp-row {
	position: relative;
	min-height: 58px;
	color: var(--dp-text);
	text-decoration: none;
	isolation: isolate;
	border-top: 1px solid color-mix(in srgb, var(--dp-border) 55%, transparent);
	transition: background-color 0.15s ease;
	/* Meme raison que .gtp-card : pas de recalage de 1 px de l'avatar a la
	   fin de l'animation d'arrivee. */
	will-change: transform;
	animation: gtp-in 0.3s ease backwards;
	animation-delay: calc(var(--i, 0) * 14ms);
}
.gtp-list-letter + .gtp-row {
	border-top: 0;
}
/* Tranche : le fond du joueur, fondu vers la gauche. */
.gtp-row-strip {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	width: 34%;
	z-index: -1;
	/* Agrandi : on montre le coeur de l'image, pas ses bords decoratifs. */
	background-size: 150% auto;
	background-position: 50% 42%;
	opacity: 0.42;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 85%);
	mask-image: linear-gradient(90deg, transparent, #000 85%);
	transition: opacity 0.2s ease;
}
.gtp-row-cell {
	display: flex;
	align-items: center;
	gap: 6px;
	min-width: 0;
}
.gtp-row-who {
	gap: 12px;
}
.gtp-row-id {
	display: flex;
	flex-direction: column;
	min-width: 0;
}
.gtp-row-name {
	display: flex;
	align-items: center;
	gap: 6px;
	min-width: 0;
	font-family: 'Baloo 2', 'Poppins', sans-serif;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.2;
}
.gtp-row-sub {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	color: var(--dp-text-faint);
	font-size: 11px;
}
.gtp-row-teams {
	font-size: 12px;
	font-weight: 600;
	color: var(--dp-text-muted);
}
.gtp-row-badges {
	gap: 4px;
}
.gtp-row-seen {
	color: var(--dp-text-muted);
	font-size: 12px;
	white-space: nowrap;
}
.gtp-row-go {
	color: var(--dp-text-faint);
	font-size: 10px;
	transition: transform 0.15s ease, color 0.15s ease;
}
.gtp-row.is-self .gtp-row-name .gtp-name-text {
	color: var(--gtp-teal);
}
.gtp-row[data-rarity="legendaire"] .gtp-av {
	filter: drop-shadow(0 0 6px color-mix(in srgb, var(--gtp-rarity) 55%, transparent));
}
@media (hover: hover) and (pointer: fine) {
	.gtp-row:hover {
		background: color-mix(in srgb, var(--dp-bg-elevated-2, #1C2438) 75%, transparent);
	}
	.gtp-row:hover .gtp-row-strip {
		opacity: 0.65;
	}
	.gtp-row:hover .gtp-row-go {
		color: var(--dp-accent);
		transform: translateX(2px);
	}
}
.gtp-row:focus-visible {
	outline: 2px solid var(--dp-accent);
	outline-offset: -2px;
}

/* -------------------------------------------------------- Pagination */

.gtp-pager {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 4px;
	margin: 26px 0 8px;
}
.gtp-pager a,
.gtp-pager-gap {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 34px;
	height: 34px;
	padding: 0 8px;
	border-radius: 10px;
	color: var(--dp-text-muted);
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
}
.gtp-pager a:hover {
	color: var(--dp-text);
	background: var(--gtp-surface);
}
.gtp-pager a.is-on {
	color: var(--dp-bg);
	background: var(--dp-parchment);
}
.gtp-pager-step {
	border: 1px solid var(--dp-border);
}
.gtp-pager-gap {
	min-width: 18px;
	color: var(--dp-text-faint);
}

/* ------------------------------------------------------- Petits ecrans */

@media (max-width: 1100px) {
	.gtp-list {
		--gtp-cols: minmax(170px, 1.4fr) minmax(140px, 1.2fr) 80px 104px 14px;
	}
	.gtp-list .gtp-row-seen {
		display: none;
	}
}
@media (max-width: 760px) {
	.gtp-head .gtp-lede {
		display: none;
	}
	.gtp-controls {
		align-items: stretch;
	}
	.gtp-chips {
		flex-wrap: nowrap;
		overflow-x: auto;
		margin: 0 -16px;
		padding: 0 16px 2px;
		scrollbar-width: none;
	}
	.gtp-chips::-webkit-scrollbar {
		display: none;
	}
	.gtp-controls-end {
		width: 100%;
		justify-content: space-between;
	}
	.gtp-views a span {
		display: none;
	}
	.gtp-list {
		--gtp-cols: minmax(0, 1fr) auto 14px;
	}
	.gtp-list-head {
		display: none;
	}
	.gtp-list .gtp-row-char,
	.gtp-list .gtp-row-teams {
		display: none;
	}
	.gtp-row {
		padding: 0 12px;
		column-gap: 10px;
	}
	.gtp-grid {
		grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
		gap: 10px;
	}
	.gtp-card-name {
		font-size: 15px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.gtp-card,
	.gtp-row {
		animation: none;
	}
	.gtp-card {
		transition: none;
	}
}
