/* Leaderboard selector and Expert Circle, scoped to the contest leaderboard. */
.ccm-leaderboard *, .ccm-leaderboard *::before, .ccm-leaderboard *::after { box-sizing: border-box; }
.ccm-leaderboard .ccm-leaderboard-types {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px;
	max-width: 1480px;
	margin: 32px auto 24px;
}
.ccm-leaderboard .ccm-leaderboard-type {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 24px;
	min-width: 0;
	min-height: 114px;
	padding: 22px 28px;
	border: 2px solid #303934;
	border-radius: 14px;
	background: #080d09;
	color: #939b95;
	text-decoration: none;
	transition: border-color .15s ease, color .15s ease;
}
.ccm-leaderboard .ccm-leaderboard-type strong {
	display: block;
	color: #eee;
	font: italic 900 clamp(22px, 2.8vw, 38px)/1.15 Arial, sans-serif;
	letter-spacing: -.025em;
	text-transform: uppercase;
}
.ccm-leaderboard-type small { display: block; margin-top: 7px; color: #bfc2c0; font: 14px/1.4 Arial, sans-serif; }
.ccm-leaderboard-type-icon { flex: 0 0 40px; width: 40px; height: 40px; }
.ccm-leaderboard-type-icon svg { display: block; width: 100%; height: 100%; }
.ccm-leaderboard .ccm-leaderboard-type.is-active { border-color: var(--ccm-leaderboard-accent, #8b0000); color: var(--ccm-leaderboard-accent, #8b0000); }
.ccm-leaderboard .ccm-leaderboard-type:hover { border-color: #d7e0d9; }
.ccm-leaderboard .ccm-leaderboard-type:focus-visible, .ccm-leaderboard-panel:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.ccm-leaderboard .ccm-leaderboard-panel { max-width: 1480px; margin: 0 auto; }
.ccm-leaderboard [hidden] { display: none !important; }
.ccm-leaderboard .ccm-leaderboard-board { border: 1px solid #263029; border-radius: 16px; padding: 36px; background: #080d09; }
.ccm-expert-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.ccm-expert-card { min-width: 0; padding: 36px; border: 1px solid #263029; border-radius: 16px; background: linear-gradient(145deg, #0b120d, #060b08); }
.ccm-leaderboard .ccm-expert-title { margin: 0; color: #fff; font: italic 900 clamp(24px, 2.5vw, 38px)/1.13 Arial, sans-serif; letter-spacing: -.025em; text-transform: uppercase; }
.ccm-expert-intro { margin: 16px 0 34px; color: #bfc2c0; font-size: 20px; line-height: 1.5; }
.ccm-expert-tracker-heading { border-top: 1px solid #263029; padding-top: 28px; }
.ccm-expert-eyebrow { color: var(--ccm-leaderboard-accent, #8b0000); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.ccm-leaderboard .ccm-expert-tracker-heading h4 { margin: 12px 0; color: #fff; font: 700 clamp(22px, 2vw, 30px)/1.2 Arial, sans-serif; }
.ccm-expert-tracker-heading p { margin: 0; color: #bfc2c0; font-size: 18px; line-height: 1.6; }
.ccm-expert-profile { display: flex; align-items: center; gap: 18px; margin: 32px 0; }
.ccm-expert-avatar { display: flex; align-items: center; justify-content: center; flex: 0 0 64px; height: 64px; border: 1px solid var(--ccm-leaderboard-accent, #8b0000); border-radius: 50%; color: var(--ccm-leaderboard-accent, #8b0000); font-size: 22px; font-weight: 700; background: #111c13; }
.ccm-expert-profile strong { display: block; color: #fff; font-size: 20px; }
.ccm-expert-profile div > span { display: block; margin-top: 3px; color: #929c94; font-size: 14px; }
.ccm-expert-stats { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.ccm-expert-stats > div { min-width: 0; padding: 22px; border: 1px solid #303b32; border-radius: 12px; background: #101a12; }
.ccm-expert-stats span { display: block; color: #bfc2c0; font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }
.ccm-expert-stats strong { display: block; margin-top: 8px; color: var(--ccm-leaderboard-accent, #8b0000); font-size: clamp(30px, 3.6vw, 48px); font-weight: 800; line-height: 1.15; overflow-wrap: anywhere; }
.ccm-expert-tracker-note { margin: 24px 0 0; color: #929c94; font-size: 14px; line-height: 1.5; }
.ccm-expert-board-heading { display: flex; align-items: start; flex-wrap: wrap; gap: 14px; }
.ccm-expert-board-heading h3 { flex: 1 1 250px; }
.ccm-expert-badge { flex: 0 0 auto; padding: 7px 10px; border: 1px solid #303b32; border-radius: 30px; color: #bfc2c0; font-size: 9px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; }
.ccm-expert-podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; align-items: end; margin: 52px 0 28px; }
.ccm-expert-podium-player { --metal: #b4bdc1; --metal-dark: #4a5256; --metal-light: #e4ebed; min-width: 0; text-align: center; }
.ccm-expert-place-1 { --metal: #ddbc3c; --metal-dark: #8a6214; --metal-light: #fff1a3; grid-column: 2; grid-row: 1; }
.ccm-expert-place-2 { grid-column: 1; grid-row: 1; }
.ccm-expert-place-3 { --metal: #c38d48; --metal-dark: #65411d; --metal-light: #f6d59e; grid-column: 3; grid-row: 1; }
.ccm-expert-crown { display: block; width: 50px; height: 40px; margin: 0 auto 22px; color: var(--metal); filter: drop-shadow(0 2px 2px #000); }
.ccm-expert-place-1 .ccm-expert-crown { width: 60px; height: 48px; }
.ccm-expert-podium-score { position: relative; min-height: 175px; padding: 46px 8px 20px; border: 1px solid var(--metal-dark); border-radius: 14px 14px 0 0; background: linear-gradient(135deg, #ffffff09, transparent); }
.ccm-expert-place-1 .ccm-expert-podium-score { min-height: 235px; background: linear-gradient(135deg, #adba3a24, transparent); }
.ccm-expert-podium-avatar { display: flex; align-items: center; justify-content: center; position: absolute; left: 50%; top: -24px; width: 52px; height: 52px; transform: translateX(-50%); border: 2px solid var(--metal); border-radius: 50%; background: #080d09; color: #eee; font-size: 24px; }
.ccm-expert-podium-name { display: block; min-height: 44px; color: #eee; font-size: 16px; line-height: 1.35; overflow-wrap: anywhere; }
.ccm-expert-podium-points { display: block; margin: 10px 0 3px; color: var(--ccm-leaderboard-accent, #8b0000); font-size: clamp(22px, 3vw, 44px); font-weight: 800; line-height: 1.2; overflow-wrap: anywhere; }
.ccm-expert-podium-score small { color: #ddd; font-size: 10px; text-transform: uppercase; }
.ccm-expert-podium-step { padding: 12px 6px; border: 2px solid var(--metal-dark); border-top: 6px solid var(--metal-light); background: linear-gradient(110deg, var(--metal-dark), var(--metal), var(--metal-dark)); color: #fff; font-size: 32px; font-weight: 800; line-height: 1.2; text-shadow: 0 2px 2px #0008; }
.ccm-expert-place-1 .ccm-expert-podium-step { color: #201907; text-shadow: none; }
.ccm-leaderboard .ccm-expert-table { width: 100%; margin: 0; border: 0; border-collapse: collapse; background: transparent; color: #ddd; }
.ccm-leaderboard .ccm-expert-table tr, .ccm-leaderboard .ccm-expert-table th, .ccm-leaderboard .ccm-expert-table td { border: 0; border-bottom: 1px solid #263029; background: transparent; padding: 14px 8px; font: 600 14px/1.4 Arial, sans-serif; text-align: left; overflow-wrap: anywhere; }
.ccm-leaderboard .ccm-expert-table th { color: #bfc2c0; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.ccm-leaderboard .ccm-expert-table td:first-child { width: 15%; }
.ccm-leaderboard .ccm-expert-table th:last-child, .ccm-leaderboard .ccm-expert-table td:last-child { text-align: right; }
.ccm-leaderboard .ccm-expert-table td:last-child { color: var(--ccm-leaderboard-accent, #8b0000); }
.ccm-leaderboard .ccm-expert-table tr:last-child td { border-bottom: 0; }
.ccm-expert-update-status { margin: 16px 0 0; color: #bfc2c0; font-size: 13px; text-align: right; }
.ccm-leaderboard .screen-reader-text { position: absolute; overflow: hidden; width: 1px; height: 1px; padding: 0; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 1000px) {
	.ccm-expert-grid { grid-template-columns: minmax(0, 1fr); }
	.ccm-expert-card { padding: 28px; }
	.ccm-expert-podium-points { font-size: 36px; }
	.ccm-expert-board-heading h3 { flex-basis: auto; }
}
@media (max-width: 620px) {
	.ccm-leaderboard .ccm-leaderboard-types { grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 24px; }
	.ccm-leaderboard .ccm-leaderboard-type { min-height: 94px; justify-content: flex-start; gap: 18px; padding: 18px 22px; }
	.ccm-leaderboard .ccm-leaderboard-type strong { font-size: 26px; }
	.ccm-leaderboard-type small { font-size: 12px; }
	.ccm-leaderboard .ccm-leaderboard-board, .ccm-expert-card { padding: 24px 18px; }
	.ccm-expert-intro { font-size: 17px; }
	.ccm-expert-tracker-heading p { font-size: 16px; }
	.ccm-expert-stats > div { padding: 16px 12px; }
	.ccm-expert-stats strong { font-size: 32px; }
	.ccm-expert-podium { gap: 5px; margin-top: 40px; }
	.ccm-expert-podium-name { font-size: 12px; }
	.ccm-expert-podium-points { font-size: 26px; }
	.ccm-expert-podium-score { padding: 40px 4px 18px; }
	.ccm-expert-podium-avatar { width: 44px; height: 44px; top: -20px; font-size: 20px; }
	.ccm-expert-podium-step { font-size: 28px; }
	.ccm-leaderboard .ccm-expert-table th, .ccm-leaderboard .ccm-expert-table td { padding: 14px 4px; font-size: 12px; }
}
