/* Global Leaderboard — matches design screenshots */
.glb-page {
	--glb-blue: #1870d5;
	--glb-blue-dark: #0a53a8;
	--glb-blue-soft: #e8f1fc;
	--glb-text: #1f2937;
	--glb-muted: #6b7280;
	--glb-border: #e8eaf0;
	--glb-surface: #f8f9fc;
	font-family: 'Roboto', Helvetica, Arial, sans-serif;
	color: var(--glb-text);
	background: linear-gradient(180deg, #f8fbff 0, #fff 240px);
	padding: 0 0 72px;
}
.glb-inner {
	max-width: 910px;
	margin: 0 auto;
	padding: 0 24px;
}
.glb-breadcrumb {
	width: 100%;
	margin: 0 0 34px;
	padding: 10px 0;
	font-size: 13px;
	color: var(--glb-muted);
	background: var(--glb-surface);
	border-bottom: 1px solid var(--glb-border);
}
.glb-breadcrumb-inner {
	display: flex;
	align-items: center;
	gap: 8px;
	width: 100%;
	max-width: 1170px;
	margin: 0 auto;
	box-sizing: border-box;
}
.glb-breadcrumb a {
	color: var(--glb-blue);
	text-decoration: none;
}
.glb-breadcrumb a:hover {
	text-decoration: underline;
}
.glb-hero {
	text-align: center;
	margin-bottom: 36px;
	animation: glb-fade-up .55s ease both;
}
.glb-trophy {
	width: 64px;
	height: 64px;
	margin: 0 auto 12px;
	animation: glb-trophy-float 3s ease-in-out infinite;
	filter: drop-shadow(0 8px 12px rgba(245, 166, 35, .2));
}
.glb-trophy svg {
	width: 100%;
	height: 100%;
	fill: none;
	stroke: #d97706;
	stroke-width: 3;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.glb-trophy .glb-trophy-cup {
	fill: #f5a623;
	stroke: #d97706;
}
.glb-trophy .glb-trophy-star {
	fill: #fff4d6;
	stroke: #fff4d6;
}
.glb-title-row {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	flex-wrap: wrap;
	margin-bottom: 8px;
}
.glb-title {
	margin: 0;
	font-size: 32px;
	font-weight: 900;
	letter-spacing: -0.02em;
}
.glb-live {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 10px;
	border-radius: 999px;
	background: #e8f8ef;
	color: #15803d;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.04em;
}
.glb-live-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #22c55e;
	box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
	animation: glb-live-pulse 1.4s ease-in-out infinite;
}
.glb-sub {
	margin: 0 auto;
	max-width: 460px;
	font-size: 16px;
	line-height: 1.6;
	color: #8b93a1;
}
.glb-filters {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 28px;
	animation: glb-fade-up .55s .08s ease both;
}
.glb-tabs {
	display: flex;
	flex-wrap: nowrap;
	gap: 2px;
	padding: 4px;
	background: var(--glb-surface);
	border: 1.5px solid var(--glb-border);
	border-radius: 12px;
	min-width: 0;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
}
.glb-tab {
	display: inline-flex;
	align-items: center;
	padding: 8px 11px;
	font-size: 13px;
	font-weight: 500;
	color: var(--glb-muted);
	text-decoration: none;
	border-radius: 8px;
	white-space: nowrap;
	flex-shrink: 0;
	transition: color .15s, background .15s, box-shadow .15s, transform .15s;
}
.glb-tab:hover {
	color: var(--glb-blue);
	background: #fff;
	text-decoration: none;
	transform: translateY(-1px);
}
.glb-tab.is-active {
	background: #fff;
	color: var(--glb-blue);
	font-weight: 700;
	box-shadow: 0 1px 5px rgba(15, 23, 42, .1);
}
.glb-period {
	display: inline-flex;
	flex-shrink: 0;
	padding: 4px;
	background: var(--glb-surface);
	border: 1.5px solid var(--glb-border);
	border-radius: 12px;
	gap: 2px;
}
.glb-period a {
	display: inline-flex;
	align-items: center;
	padding: 7px 14px;
	border-radius: 8px;
	font-size: 12px;
	font-weight: 600;
	color: #9ca3af;
	text-decoration: none;
}
.glb-period a:hover {
	color: var(--glb-text);
	text-decoration: none;
}
.glb-period a.is-active {
	background: #fff;
	color: var(--glb-text);
	box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
}
.glb-podium {
	display: grid;
	grid-template-columns: 1fr 1.12fr 1fr;
	gap: 12px;
	align-items: end;
	max-width: 760px;
	margin: 0 auto 22px;
	animation: glb-fade-up .55s .16s ease both;
}
.glb-podium-card {
	background: #fff;
	border: 1.5px solid var(--glb-border);
	border-radius: 14px;
	padding: 16px 12px 13px;
	text-align: center;
	position: relative;
	transition: transform .2s ease, box-shadow .2s ease;
}
.glb-podium-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 26px rgba(15, 23, 42, .09);
}
.glb-podium-card.is-first {
	border-color: #f5b942;
	box-shadow: 0 10px 28px rgba(245, 185, 66, 0.18);
	padding-top: 20px;
	padding-bottom: 16px;
}
.glb-medal {
	margin: 0 auto 12px;
	font-size: 28px;
	line-height: 1;
	filter: drop-shadow(0 4px 5px rgba(15, 23, 42, .14));
}
.glb-avatar {
	width: 46px;
	height: 46px;
	margin: 0 auto 8px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-size: 18px;
	font-weight: 700;
}
.glb-podium-card.is-first .glb-avatar {
	width: 54px;
	height: 54px;
	font-size: 21px;
}
.glb-name {
	margin: 0 0 4px;
	font-size: 16px;
	font-weight: 700;
}
.glb-points {
	margin: 0 0 4px;
	font-size: 22px;
	font-weight: 700;
	color: var(--glb-blue);
	font-variant-numeric: tabular-nums;
}
.glb-podium-card.is-first .glb-points {
	font-size: 26px;
}
.glb-meta {
	margin: 0 0 10px;
	font-size: 12px;
	color: #9ca3af;
}
.glb-streak {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 4px 10px;
	border-radius: 999px;
	background: #fff7e8;
	color: #b45309;
	font-size: 11px;
	font-weight: 600;
}
.glb-share {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 16px 18px;
	margin-bottom: 18px;
	background: var(--glb-blue-soft);
	border-radius: 14px;
	border: 1.5px solid #c7ddfa;
	animation: glb-fade-up .55s .22s ease both;
}
.glb-share-left {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	text-align: left;
}
.glb-share-icon {
	font-size: 22px;
	line-height: 1;
	margin-top: 2px;
}
.glb-share-title {
	margin: 0 0 2px;
	font-size: 14px;
	font-weight: 700;
	color: #1e3a5f;
}
.glb-share-sub {
	margin: 0;
	font-size: 12px;
	color: #64748b;
}
.glb-share-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	flex-shrink: 0;
	padding: 10px 16px;
	border: none;
	border-radius: 10px;
	background: var(--glb-blue);
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	font-family: inherit;
	text-decoration: none;
}
.glb-share-btn:hover {
	background: #0a53a8;
	color: #fff;
	text-decoration: none;
}
.glb-list {
	display: flex;
	flex-direction: column;
	gap: 6px;
	max-width: 760px;
    margin: 0 auto 22px;
	animation: glb-fade-up .55s .25s ease both;
}
.glb-row {
	display: grid;
	grid-template-columns: 40px 1fr auto;
	gap: 12px;
	align-items: center;
	padding: 14px 16px;
	background: #fff;
	border: 1.5px solid var(--glb-border);
	border-radius: 11px;
	transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.glb-row:hover {
	transform: translateX(3px);
	border-color: #d6e5f7;
	box-shadow: 0 3px 14px rgba(15, 23, 42, .07);
}
.glb-rank {
	font-size: 15px;
	font-weight: 600;
	color: #9ca3af;
	text-align: center;
}
.glb-player {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
}
.glb-player .glb-avatar {
	width: 40px;
	height: 40px;
	margin: 0;
	font-size: 15px;
	flex-shrink: 0;
}
.glb-player-text {
	min-width: 0;
}
.glb-player-name {
	margin: 0;
	font-size: 14px;
	font-weight: 700;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.glb-player-meta {
	margin: 2px 0 0;
	font-size: 12px;
	color: #9ca3af;
}
.glb-row-score {
	text-align: right;
}
.glb-row-score strong {
	display: block;
	font-size: 16px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}
.glb-row-score span {
	font-size: 11px;
	color: #9ca3af;
}
.glb-hidden-rank {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 16px;
	background: #f3f4f6;
	border: 1.5px dashed #d1d5db;
	border-radius: 11px;
}
.glb-hidden-left {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	text-align: left;
}
.glb-lock {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: #e5e7eb;
	color: #6b7280;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}
.glb-hidden-title {
	margin: 0 0 2px;
	font-size: 14px;
	font-weight: 700;
}
.glb-hidden-sub {
	margin: 0;
	font-size: 12px;
	color: var(--glb-muted);
	max-width: 360px;
}
.glb-hidden-right {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-shrink: 0;
}
.glb-hidden-pts {
	font-size: 18px;
	font-weight: 700;
	color: #f59e0b;
	white-space: nowrap;
}
.glb-claim-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 16px;
	border-radius: 10px;
	background: var(--glb-blue);
	color: #fff !important;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none !important;
	white-space: nowrap;
}
.glb-claim-btn:hover {
	background: #0a53a8;
	color: #fff !important;
}
.glb-empty {
	padding: 40px 20px;
	text-align: center;
	color: var(--glb-muted);
	font-size: 14px;
	background: #fff;
	border: 1.5px solid var(--glb-border);
	border-radius: 11px;
}
.glb-row.is-you {
	background: #eff6ff;
	border-color: var(--glb-blue);
}
.glb-podium-card.is-you {
	border-color: var(--glb-blue);
}
.glb-my-rank {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 16px;
	background: #eff6ff;
	border: 1.5px solid var(--glb-blue);
	border-radius: 11px;
}
.glb-how {
	margin-top: 40px;
	padding: 28px;
	background: var(--glb-surface);
	border: 1.5px solid var(--glb-border);
	border-radius: 14px;
	animation: glb-fade-up .55s .32s ease both;
}
.glb-how-title {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 22px;
	font-size: 17px;
	font-weight: 700;
	color: var(--glb-text);
}
.glb-how-title svg {
	width: 19px;
	height: 19px;
	fill: none;
	stroke: #707070;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.glb-how-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
}
.glb-how-item {
	display: flex;
	align-items: flex-start;
	gap: 13px;
}
.glb-how-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	flex: 0 0 38px;
	border-radius: 11px;
}
.glb-how-icon svg {
	width: 20px;
	height: 20px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.glb-how-icon.is-points { color: var(--glb-blue); background: #e8f1fc; }
.glb-how-icon.is-streak { color: #d97706; background: #fff4e0; }
.glb-how-icon.is-week { color: #4d8a24; background: #eff8e8; }
.glb-how-item strong {
	display: block;
	margin-bottom: 4px;
	font-size: 15px;
	color: var(--glb-text);
}
.glb-how-item p {
	margin: 0;
	font-size: 13px;
	line-height: 1.55;
	color: var(--glb-muted);
}
@keyframes glb-fade-up {
	from { opacity: 0; transform: translateY(12px); }
	to { opacity: 1; transform: translateY(0); }
}
@keyframes glb-trophy-float {
	0%, 100% { transform: translateY(0) rotate(-2deg); }
	50% { transform: translateY(-7px) rotate(2deg); }
}
@keyframes glb-live-pulse {
	0%, 100% { opacity: 1; transform: scale(1); }
	50% { opacity: .45; transform: scale(.78); }
}
@media (max-width: 767px) {
	.glb-inner { padding: 0 14px; }
	.glb-breadcrumb { margin-bottom: 26px; }
	.glb-breadcrumb-inner { padding: 0 14px; }
	.glb-title { font-size: 24px; }
	.glb-podium {
		grid-template-columns: 1fr;
	}
	.glb-podium-card.is-first { order: -1; }
	.glb-share {
		flex-direction: column;
		align-items: stretch;
		text-align: left;
	}
	.glb-share-btn { justify-content: center; }
	.glb-hidden-rank {
		flex-direction: column;
		align-items: stretch;
	}
	.glb-hidden-right {
		justify-content: space-between;
	}
	.glb-period a { padding: 7px 11px; }
	.glb-how { padding: 22px 18px; }
	.glb-how-grid { grid-template-columns: 1fr; gap: 20px; }
}
@media (prefers-reduced-motion: reduce) {
	.glb-page *, .glb-page *::before, .glb-page *::after {
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .01ms !important;
	}
}
