/* ================================
   ГРАВЦІ — публічний профіль (/player/{нік}) і рейтинг (/top)
   ================================ */
.pl-wrap {
	max-width: 960px;
	margin: 0 auto 50px;
}

.pl-back {
	display: inline-block;
	margin: 10px 0 16px;
	color: var(--muted);
	font-size: 14px;
	text-decoration: none;
}

.pl-back:hover {
	color: var(--accent);
}

/* ---------- Картка гравця ---------- */
.pl-card {
	display: grid;
	grid-template-columns: 220px minmax(0, 1fr);
	gap: 28px;
	align-items: center;
}

.pl-skin {
	position: relative;
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: 300px;
}

.pl-skin-glow {
	position: absolute;
	width: 180px;
	height: 180px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(167, 139, 250, 0.22) 0%, transparent 70%);
}

.pl-skin canvas {
	position: relative;
}

.pl-name {
	margin: 0;
	font-size: clamp(30px, 5vw, 44px);
	letter-spacing: -1px;
	overflow-wrap: anywhere;
}

.pl-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 4px;
}

.pl-badge {
	padding: 4px 12px;
	border-radius: 100px;
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.12);
	color: rgba(255, 255, 255, 0.75);
	font-size: 12px;
	font-weight: 800;
}

.pl-badge--team {
	background: rgba(167, 139, 250, 0.1);
	border-color: rgba(167, 139, 250, 0.35);
	color: #c4b5fd;
}

.pl-badge--prime {
	background: rgba(250, 204, 21, 0.08);
	border-color: rgba(250, 204, 21, 0.35);
	color: #fde68a;
}

.pl-status {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 16px 0 0;
	color: rgba(255, 255, 255, 0.7);
	font-size: 15px;
}

.pl-dot {
	flex: none;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #6b7280;
}

.pl-status.is-online {
	color: #86efac;
}

.pl-status.is-online .pl-dot {
	background: #22c55e;
	box-shadow: 0 0 10px #22c55e;
}

.pl-since {
	margin: 6px 0 0;
	color: var(--muted);
	font-size: 14px;
}

.pl-tiles {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	margin-top: 22px;
}

.pl-tile {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 14px 16px;
	border-radius: 14px;
	background: rgba(0, 0, 0, 0.2);
	border: 1px solid rgba(255, 255, 255, 0.07);
	text-decoration: none;
}

.pl-tile--link:hover {
	border-color: rgba(167, 139, 250, 0.4);
}

.pl-tile-value {
	color: #fff;
	font-size: 20px;
	font-weight: 800;
	white-space: nowrap;
}

.pl-tile-label {
	color: var(--muted);
	font-size: 12px;
}

.pl-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 18px;
}

.pl-copy {
	padding: 10px 16px;
	border-radius: 12px;
	background: rgba(167, 139, 250, 0.08);
	border: 1px solid rgba(167, 139, 250, 0.25);
	color: #c4b5fd;
	font: inherit;
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
}

.pl-copy:hover {
	background: rgba(167, 139, 250, 0.16);
}

/* ---------- По серверах ---------- */
.pl-servers {
	margin-top: 18px;
}

.pl-section-title {
	margin: 0 0 14px;
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--accent);
}

.pl-bars {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.pl-bars li {
	display: grid;
	grid-template-columns: 140px minmax(0, 1fr) auto;
	align-items: center;
	gap: 14px;
	font-size: 14px;
}

.pl-bar-name {
	color: #fff;
	font-weight: 700;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.pl-bar-track {
	height: 8px;
	border-radius: 100px;
	background: rgba(255, 255, 255, 0.06);
	overflow: hidden;
}

.pl-bar-fill {
	display: block;
	height: 100%;
	border-radius: inherit;
	background: linear-gradient(90deg, var(--accent-deep), var(--accent));
}

.pl-bar-time {
	color: var(--muted);
	white-space: nowrap;
}

/* ---------- Рейтинг ---------- */
.tp-filters {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin: 0 0 12px;
}

.tp-filters--servers {
	margin-bottom: 22px;
}

.tp-pill {
	padding: 8px 16px;
	border-radius: 100px;
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid rgba(255, 255, 255, 0.08);
	color: var(--muted);
	font-size: 13.5px;
	font-weight: 600;
	text-decoration: none;
	transition: all 0.2s;
}

.tp-pill:hover {
	color: #fff;
	border-color: rgba(255, 255, 255, 0.18);
}

.tp-pill.active {
	color: var(--accent);
	background: rgba(167, 139, 250, 0.08);
	border-color: rgba(167, 139, 250, 0.3);
}

.tp-card {
	padding: 10px;
}

.tp-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.tp-row {
	display: grid;
	grid-template-columns: 44px 40px minmax(0, 1fr) auto;
	align-items: center;
	gap: 14px;
	padding: 10px 14px;
	border-radius: 12px;
}

.tp-row + .tp-row {
	margin-top: 2px;
}

.tp-row:hover {
	background: rgba(255, 255, 255, 0.03);
}

.tp-row.is-medal {
	background: rgba(167, 139, 250, 0.05);
}

.tp-row.is-me {
	background: rgba(74, 222, 128, 0.07);
	box-shadow: inset 0 0 0 1px rgba(74, 222, 128, 0.25);
}

.tp-row--gap {
	display: block;
	padding: 2px 14px;
	color: var(--muted);
	text-align: center;
}

.tp-place {
	color: var(--muted);
	font-size: 15px;
	font-weight: 800;
	text-align: center;
}

.tp-row.is-medal .tp-place {
	font-size: 22px;
}

.tp-head {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 10px;
	overflow: hidden;
	background: rgba(167, 139, 250, 0.1);
}

.tp-head::before {
	content: attr(data-letter);
	color: #c4b5fd;
	font-weight: 800;
}

.tp-head img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	image-rendering: pixelated;
}

.tp-name {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	color: #fff;
	font-weight: 700;
	text-decoration: none;
}

.tp-name:hover {
	color: var(--accent);
}

.tp-name small {
	color: var(--muted);
	font-weight: 600;
}

.tp-time {
	color: rgba(255, 255, 255, 0.75);
	font-size: 14px;
	white-space: nowrap;
}

.tp-empty {
	padding: 30px 10px;
	text-align: center;
	color: var(--muted);
}

.tp-note {
	margin: 14px 0 0;
	text-align: center;
	color: var(--muted);
	font-size: 13px;
}

/* ---------- Телефон ---------- */
@media (max-width: 700px) {
	.pl-card {
		grid-template-columns: minmax(0, 1fr);
		gap: 6px;
		text-align: center;
	}

	.pl-skin {
		min-height: 260px;
	}

	.pl-badges,
	.pl-status,
	.pl-actions {
		justify-content: center;
	}

	.pl-tiles {
		gap: 8px;
	}

	.pl-tile {
		padding: 12px 6px;
	}

	.pl-tile-value {
		font-size: 15px;
		white-space: normal;
		line-height: 1.25;
	}

	.pl-status {
		display: block;
	}

	.pl-dot {
		display: inline-block;
		margin-right: 6px;
		vertical-align: middle;
	}

	.pl-bars li {
		grid-template-columns: minmax(0, 1fr) auto;
		gap: 6px 10px;
	}

	.pl-bar-track {
		grid-column: 1 / -1;
		grid-row: 2;
	}

	.tp-card {
		padding: 6px;
	}

	.tp-row {
		grid-template-columns: 24px 30px minmax(0, 1fr) auto;
		gap: 8px;
		padding: 8px 6px;
	}

	.tp-row.is-medal .tp-place {
		font-size: 18px;
	}

	.tp-head {
		width: 30px;
		height: 30px;
		border-radius: 8px;
	}

	.tp-name {
		font-size: 15px;
	}

	.tp-time {
		font-size: 12.5px;
	}
}
