/**
 * Jungle course leaderboard view styles.
 */

.jungle-lb {
	max-width: 680px;
	margin: 0 auto;
}

.jungle-lb__scene {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 14px;
	overflow: hidden;
	border: 1px solid #17331f;
}

.jungle-lb__list {
	margin-top: 12px;
	max-height: 300px;
	overflow-y: auto;
	display: grid;
	grid-template-columns: 1fr 1fr;
	grid-auto-flow: column;
	grid-template-rows: repeat( var( --jgl-rows, 5 ), auto );
	gap: 6px 14px;
	padding-right: 4px;
}

.jungle-lb__list .jgl-row {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 5px 9px;
	border-radius: 8px;
	background: #ffffff;
	border: 1px solid rgba( 0, 0, 0, 0.06 );
	font-size: 13px;
}

.jungle-lb__list .jgl-row--lead {
	background: #fff8e6;
	border-color: rgba( 224, 169, 59, 0.55 );
}

.jungle-lb__list .jgl-rownum {
	flex: 0 0 auto;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	color: #ffffff;
	font-weight: 700;
	font-size: 11px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.jungle-lb__list .jgl-rowname {
	flex: 1 1 auto;
	color: #1a1a2e;
	font-weight: 500;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.jungle-lb__list a.jgl-rowname {
	text-decoration: none;
	cursor: pointer;
}

.jungle-lb__list a.jgl-rowname:hover {
	text-decoration: underline;
}

.jungle-lb__list .jgl-rowscore {
	flex: 0 0 auto;
	color: #555555;
	font-weight: 600;
}

@media ( max-width: 480px ) {
	.jungle-lb__list {
		grid-template-columns: 1fr;
		grid-auto-flow: row;
		grid-template-rows: none;
	}
}
