

/* ==========================================
   Activity Leaderboard - Two Column Final
========================================== */

.activity-leaderboard-wrap {
	margin: 18px 0 22px;
}

.activity-leaderboard-box {
	display: grid;
	grid-template-columns: 255px 1fr;
	gap: 16px;
	align-items: start;
	padding: 18px;
	border: 2px solid #ececec;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.activity-left-panel {
	min-width: 0;
}

.activity-right-panel {
	min-width: 0;
}

.activity-leaderboard-head {
	margin-bottom: 12px;
}

.activity-leaderboard-head h3 {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 4px;
	font-size: 21px;
	font-weight: 800;
	line-height: 1.3;
	color: #111;
	letter-spacing: -0.03em;
}

.activity-leaderboard-head p {
	margin: 0;
	font-size: 12px;
	line-height: 1.5;
	color: #666;
}

.activity-trophy {
	font-size: 20px;
	line-height: 1;
}

.activity-summary-card {
	padding: 15px;
	border: 1px solid #e8e8e8;
	border-radius: 14px;
	background: #fafafa;
}

.activity-meta-box {
	margin-bottom: 13px;
	padding-bottom: 13px;
	border-bottom: 1px solid #e7e7e7;
}

.meta-row + .meta-row {
	margin-top: 10px;
}

.meta-label {
	display: block;
	margin-bottom: 4px;
	font-size: 12px;
	font-weight: 700;
	color: #777;
}

.meta-row strong {
	display: block;
	font-size: 13px;
	font-weight: 800;
	color: #222;
	line-height: 1.5;
}

.summary-block {
	margin-bottom: 13px;
}

.summary-label {
	display: block;
	margin-bottom: 8px;
	font-size: 13px;
	font-weight: 700;
	color: #555;
}

.summary-rank-row strong {
	display: block;
	margin-bottom: 6px;
	font-size: 30px;
	font-weight: 900;
	line-height: 1;
	letter-spacing: -0.04em;
	color: #5b2be0;
}

.summary-rank-row em {
	display: block;
	font-style: normal;
	font-size: 12px;
	line-height: 1.5;
	color: #444;
}

.summary-note {
	padding-top: 11px;
	border-top: 1px solid #e8e8e8;
	font-size: 12px;
	line-height: 1.6;
	color: #666;
	word-break: keep-all;
}

.activity-table-card {
	border: 1px solid #e8e8e8;
	border-radius: 14px;
	background: #fff;
	overflow: hidden;
}

.activity-table-scroll {
	max-height: 360px;
	overflow-y: auto;
}

.activity-table {
	width: 100%;
	border-collapse: collapse;
}

.activity-table thead th {
	position: sticky;
	top: 0;
	z-index: 2;
	padding: 12px 14px;
	background: #fafafa;
	border-bottom: 1px solid #ececec;
	font-size: 13px;
	font-weight: 700;
	color: #555;
	text-align: center;
}

.activity-table tbody td {
	padding: 11px 14px;
	border-bottom: 1px solid #f0f0f0;
	font-size: 14px;
	font-weight: 600;
	color: #111;
	text-align: center;
	vertical-align: middle;
	line-height: 1.4;
}

.activity-table tbody tr:last-child td {
	border-bottom: 0;
}

.rank-cell {
	width: 70px;
}

.name-cell {
	text-align: left !important;
	font-weight: 700 !important;
}

.activity-score {
	width: 90px;
	font-weight: 800 !important;
	color: #4b21e6 !important;
}

.rank-medal {
	display: inline-block;
	font-size: 18px;
	line-height: 1;
}

.rank-num {
	font-size: 14px;
	font-weight: 700;
	color: #111;
}

.activity-empty {
	padding: 24px 12px !important;
	font-size: 13px !important;
	color: #888 !important;
	text-align: center !important;
}

.activity-table-scroll::-webkit-scrollbar {
	width: 8px;
}

.activity-table-scroll::-webkit-scrollbar-thumb {
	background: #d7d7d7;
	border-radius: 20px;
}

.activity-table-scroll::-webkit-scrollbar-track {
	background: #f5f5f5;
}

@media (max-width: 991px) {
	.activity-leaderboard-box {
		grid-template-columns: 1fr;
	}

	.activity-table-scroll {
		max-height: 320px;
	}
}

@media (max-width: 768px) {
	.activity-leaderboard-wrap {
		margin: 14px 0 18px;
	}

	.activity-leaderboard-box {
		padding: 14px;
		border-radius: 14px;
	}

	.activity-leaderboard-head h3 {
		font-size: 18px;
	}

	.activity-leaderboard-head p {
		font-size: 12px;
	}

	.activity-summary-card {
		padding: 14px;
	}

	.summary-rank-row strong {
		font-size: 28px;
	}

	.activity-table-scroll {
		max-height: 300px;
	}

	.activity-table thead th {
		padding: 10px 8px;
		font-size: 12px;
	}

	.activity-table tbody td {
		padding: 10px 8px;
		font-size: 13px;
	}

	.rank-medal {
		font-size: 16px;
	}
}