.rme-ranking {
	--rme-bg: #ffffff;
	--rme-ink: #18202b;
	--rme-muted: #6b7280;
	--rme-line: #e7eaf0;
	--rme-soft: #f7f8fb;
	--rme-accent: #16a085;
	--rme-accent-strong: #0f766e;
	background: var(--rme-bg);
	border: 1px solid var(--rme-line);
	border-radius: 18px;
	box-shadow: 0 18px 45px rgba(24, 32, 43, 0.08);
	color: var(--rme-ink);
	font-family: inherit;
	margin: 24px 0;
	overflow: hidden;
	padding: 24px;
}

.rme-header {
	align-items: center;
	display: flex;
	gap: 18px;
	justify-content: space-between;
	margin-bottom: 22px;
}

.rme-kicker {
	color: var(--rme-accent-strong);
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0;
	margin: 0 0 6px;
	text-transform: uppercase;
}

.rme-slider-hint {
	display: none;
	text-align: center;
}

.rme-layout-slider .rme-slider-hint {
	display: block;
	margin: 2px 0 16px;
}

.rme-header h2 {
	font-size: clamp(1.45rem, 2vw, 2rem);
	line-height: 1.12;
	margin: 0;
}

.rme-summary {
	background: var(--rme-soft);
	border: 1px solid var(--rme-line);
	border-radius: 14px;
	min-width: 190px;
	padding: 14px 16px;
	text-align: right;
}

.rme-summary strong,
.rme-summary span,
.rme-summary time {
	display: block;
}

.rme-summary strong {
	font-size: 1.55rem;
	line-height: 1;
}

.rme-summary span,
.rme-summary time {
	color: var(--rme-muted);
	font-size: 0.86rem;
	margin-top: 4px;
}

.rme-list,
.rme-rest-grid {
	display: grid;
	gap: 14px;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.rme-card {
	background: #fff;
	border: 1px solid var(--rme-line);
	border-radius: 14px;
	display: grid;
	gap: 12px;
	min-width: 0;
	padding: 16px;
	position: relative;
}

.rme-rank {
	align-items: center;
	background: var(--rme-soft);
	border-radius: 999px;
	color: var(--rme-muted);
	display: inline-flex;
	font-size: 0.78rem;
	font-weight: 800;
	height: 26px;
	justify-content: center;
	justify-self: start;
	min-width: 42px;
	padding: 0 10px;
}

.rme-team {
	align-items: center;
	display: flex;
	gap: 10px;
	min-width: 0;
}

.rme-flag {
	font-size: 1.65rem;
	line-height: 1;
}

.rme-name {
	font-size: 1.05rem;
	font-weight: 800;
	line-height: 1.2;
	min-width: 0;
	overflow-wrap: anywhere;
}

.rme-metrics {
	align-items: end;
	display: flex;
	gap: 10px;
	justify-content: space-between;
}

.rme-metrics strong {
	font-size: 1.3rem;
	line-height: 1;
}

.rme-metrics span {
	color: var(--rme-muted);
	font-size: 0.86rem;
	text-align: right;
}

.rme-progress {
	background: #edf1f5;
	border-radius: 999px;
	height: 8px;
	overflow: hidden;
}

.rme-progress span {
	background: linear-gradient(90deg, var(--rme-accent), #35c48d);
	border-radius: inherit;
	display: block;
	height: 100%;
	min-width: 4px;
}

.rme-rest {
	margin-top: 14px;
}

.rme-toggle {
	background: var(--rme-ink);
	border: 0;
	border-radius: 999px;
	color: #fff;
	cursor: pointer;
	display: inline-flex;
	font-weight: 800;
	margin-top: 18px;
	padding: 12px 18px;
}

.rme-toggle .rme-hide-text,
.rme-toggle[aria-expanded="true"] .rme-show-text {
	display: none;
}

.rme-toggle[aria-expanded="true"] .rme-hide-text {
	display: inline;
}

.rme-layout-slider .rme-list,
.rme-layout-slider .rme-rest-grid {
	display: flex;
	gap: 14px;
	overflow-x: auto;
	padding: 2px 2px 18px;
	scrollbar-color: var(--rme-accent) #e4e8ef;
	scrollbar-width: thin;
	scroll-snap-type: x proximity;
}

.rme-layout-slider .rme-list::-webkit-scrollbar,
.rme-layout-slider .rme-rest-grid::-webkit-scrollbar {
	height: 10px;
}

.rme-layout-slider .rme-list::-webkit-scrollbar-track,
.rme-layout-slider .rme-rest-grid::-webkit-scrollbar-track {
	background: #e4e8ef;
	border-radius: 999px;
}

.rme-layout-slider .rme-list::-webkit-scrollbar-thumb,
.rme-layout-slider .rme-rest-grid::-webkit-scrollbar-thumb {
	background: var(--rme-accent);
	border: 2px solid #e4e8ef;
	border-radius: 999px;
}

.rme-layout-slider .rme-card {
	flex: 0 0 285px;
	scroll-snap-align: start;
}

.rme-notice {
	background: #fff8e5;
	border: 1px solid #f4d27a;
	border-radius: 10px;
	color: #6d4b00;
	margin: 20px 0;
	padding: 14px 16px;
}

@media (max-width: 900px) {
	.rme-list,
	.rme-rest-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.rme-ranking {
		border-radius: 14px;
		padding: 18px;
	}

	.rme-header {
		align-items: stretch;
		flex-direction: column;
	}

	.rme-summary {
		text-align: left;
	}

	.rme-list,
	.rme-rest-grid {
		grid-template-columns: 1fr;
	}

	.rme-layout-slider .rme-card {
		flex-basis: 82%;
	}
}
