@font-face {
	font-family: 'VNL';
	src: url('../src/font/VNL.ttf') format('truetype'),
		url('../assets/fonts/VNL.ttf') format('truetype'),
		url('../VNL.ttf') format('truetype');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

/* Base Styles - Gender-specific backgrounds */
body { 
	background: #1f2937;
	transition: background 0.5s ease;
	--vnl-font: 'VNL', 'Barlow Condensed', sans-serif;
	--lb-shell-bg: #12213f;
	--lb-content-bg: rgba(6, 18, 40, 0.88);
	--lb-head-bg: #0f1c38;
	--lb-search-bg: #1f2d49;
	--lb-search-border: rgba(148, 163, 184, 0.3);
	--lb-line: rgba(148, 163, 184, 0.16);
	--lb-line-strong: rgba(148, 163, 184, 0.25);
	--lb-text-main: #e2e8f0;
	--lb-text-muted: #94a3b8;
	--lb-hover: rgba(148, 163, 184, 0.08);
}

body.men {
	background: #1c69a5;
	--lb-shell-bg: #123866;
	--lb-content-bg: rgba(15, 53, 97, 0.9);
	--lb-head-bg: #0f2f57;
	--lb-search-bg: #1d4f86;
	--lb-search-border: rgba(125, 211, 252, 0.28);
	--lb-line: rgba(125, 211, 252, 0.17);
	--lb-line-strong: rgba(125, 211, 252, 0.3);
	--lb-text-main: #d9f3ff;
	--lb-text-muted: #9bc8df;
	--lb-hover: rgba(125, 211, 252, 0.1);
}

body.women {
	background: #7a3e3b;
	--lb-shell-bg: #3a1723;
	--lb-content-bg: rgba(52, 20, 31, 0.9);
	--lb-head-bg: #4a1f2d;
	--lb-search-bg: #5a2a39;
	--lb-search-border: rgba(251, 191, 201, 0.34);
	--lb-line: rgba(251, 191, 201, 0.18);
	--lb-line-strong: rgba(251, 191, 201, 0.3);
	--lb-text-main: #ffe7ec;
	--lb-text-muted: #e7b6c1;
	--lb-hover: rgba(251, 191, 201, 0.1);
}

.splash-screen {
	position: fixed;
	z-index: 9999;
	top: 0; left: 0; right: 0; bottom: 0;
	background: #7B3B36;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
}

.splash-content {
	text-align: center;
	color: #fff;
}

.splash-date {
	position: absolute;
	left: 32px;
	bottom: 32px;
	color: #fff;
	font-size: 1.2em;
	opacity: 0.8;
}

.persistent-date {
	position: fixed;
	left: 32px;
	bottom: 32px;
	color: #fff;
	font-size: 1.2em;
	opacity: 0.8;
	z-index: 10;
	pointer-events: none;
}

.globe-status {
	position: fixed;
	left: 22px;
	top: 22px;
	z-index: 20;
	display: grid;
	gap: 3px;
	color: rgba(255, 255, 255, 0.86);
	font-size: 11px;
	letter-spacing: 0.3px;
	line-height: 1.1;
	pointer-events: none;
	transition: opacity 0.46s ease, filter 0.46s ease;
}

body.country-card-open .globe-status {
	opacity: 0.18;
	filter: blur(3px);
}

.globe-status strong {
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.8px;
	text-transform: uppercase;
}

.globe-status span {
	color: rgba(255, 255, 255, 0.62);
}

.globe-guide {
	position: fixed;
	right: 22px;
	bottom: 82px;
	z-index: 20;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	max-width: min(620px, calc(100vw - 44px));
	padding: 9px 15px;
	border: 1px solid rgba(247, 208, 37, 0.45);
	border-radius: 999px;
	background: rgba(15, 54, 91, 0.72);
	box-shadow: 0 6px 18px rgba(4, 24, 48, 0.16);
	color: rgba(255, 255, 255, 0.92);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.15px;
	line-height: 1;
	pointer-events: none;
}

.globe-guide i {
	color: #f7d025;
	font-size: 13px;
}

.globe-guide small {
	color: rgba(255, 255, 255, 0.68);
	font-size: 10px;
	font-weight: 600;
}

.globe-guide-divider {
	width: 1px;
	height: 14px;
	background: rgba(255, 255, 255, 0.3);
}

body.globe-zoomed .globe-guide {
	display: none !important;
	opacity: 0;
	visibility: hidden;
}

body.country-card-open .globe-guide {
	display: none !important;
	opacity: 0;
	visibility: hidden;
}

.vnl-brand-mark {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 4px;
	color: #f7d025 !important;
	font-family: var(--vnl-font);
	font-size: 18px;
	letter-spacing: 1px;
}

.vnl-brand-mark img {
	width: 18px;
	height: 28px;
	object-fit: contain;
	filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.22));
}

.competition-status {
	display: grid;
	align-items: start;
	gap: 5px;
	margin-top: 3px;
	padding-left: 8px;
	border-left: 2px solid #f7d025;
	color: rgba(255, 255, 255, 0.78) !important;
}

.competition-status b {
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.35px;
}

.competition-status b.is-active {
	color: #f7d025;
}

.competition-context {
	display: flex;
	align-items: center;
	gap: 9px;
	margin-bottom: 12px;
	padding: 8px 10px;
	border: 1px solid rgba(28, 105, 165, 0.22);
	border-radius: 10px;
	background: #eaf3fa;
	color: #1c69a5;
}

.competition-context i {
	font-size: 15px;
	color: #e61556;
}

.competition-context span {
	display: grid;
	gap: 2px;
}

.competition-context small {
	font-size: 9px;
	font-weight: 800;
	letter-spacing: 0.65px;
	text-transform: uppercase;
	color: #7088a0;
}

.competition-context strong {
	font-size: 12px;
	line-height: 1.1;
}

#controlsSidebar {
	left: 50% !important;
	top: auto !important;
	right: auto !important;
	bottom: 22px !important;
	width: auto !important;
	height: auto !important;
	min-height: 0 !important;
	padding: 0 !important;
	gap: 8px !important;
	flex-direction: row !important;
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
	transform: translateX(-50%) !important;
	overflow: visible !important;
}

#controlsSidebar .gender-toggle {
	display: contents !important;
}

#controlsSidebar .controls-heading,
#controlsSidebar .sidebar-close-btn,
#controlsSidebar .flex-1,
#controlsSidebar .sidebar-version {
	display: none !important;
}

#controlsSidebar .gender-btn-icon,
#controlsSidebar .sidebar-item {
	width: 58px !important;
	min-width: 58px !important;
	max-width: 58px !important;
	flex: 0 0 58px !important;
	height: 58px !important;
	padding: 7px 3px !important;
	border: 1px solid rgba(255, 255, 255, 0.88) !important;
	border-radius: 17px !important;
	background: rgba(255, 255, 255, 0.9) !important;
	box-shadow: 0 8px 18px rgba(15, 23, 42, 0.16) !important;
	flex-direction: column !important;
	justify-content: center !important;
	gap: 4px !important;
	color: #6f879e !important;
	font-size: 17px !important;
	text-align: center !important;
}

#controlsSidebar .gender-btn-icon.active,
#controlsSidebar .gender-btn-icon:hover,
#controlsSidebar .sidebar-item:hover {
	background: #eaf3fa !important;
	color: #1c69a5 !important;
	transform: translateY(-3px);
}

#controlsSidebar #btnWomen.gender-btn-icon.active {
	background: #fff0f5 !important;
	color: #e61556 !important;
}

#controlsSidebar .sidebar-item i,
#controlsSidebar .gender-btn-icon i {
	width: auto !important;
	font-size: 18px !important;
}

#controlsSidebar .menu-label {
	font-size: 8px !important;
	font-weight: 800 !important;
	line-height: 1 !important;
	color: inherit !important;
}

.sidebar-toggle-btn {
	display: none !important;
}

@media (max-width: 768px) {
	.globe-status {
		left: 14px;
		top: 14px;
		font-size: 10px;
	}

	.globe-guide {
		top: 58px;
		max-width: calc(100vw - 24px);
		padding: 8px 11px;
		gap: 7px;
		font-size: 10px;
		white-space: nowrap;
	}

	.globe-guide small,
	.globe-guide-divider {
		display: none;
	}

	#controlsSidebar {
		left: 8px !important;
		right: 8px !important;
		bottom: max(10px, env(safe-area-inset-bottom)) !important;
		width: auto !important;
		justify-content: center;
		gap: 5px !important;
	}

	#controlsSidebar .gender-btn-icon,
	#controlsSidebar .sidebar-item {
		width: clamp(42px, 14vw, 58px) !important;
		min-width: 0 !important;
		max-width: none !important;
		flex: 1 1 0 !important;
		height: 52px !important;
		border-radius: 15px !important;
	}
}

#zoomInBtn, #zoomOutBtn {
	transition: opacity 0.3s;
}

.startup-overlay {
	position: fixed;
	inset: 0;
	z-index: 700;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 18px;
	background: radial-gradient(circle at 50% 35%, #1c4d91 0%, #113462 55%, #0b2548 100%);
	transition: opacity 0.6s ease, visibility 0.6s ease;
	overflow: hidden;
}

.startup-overlay::before {
	content: '';
	position: absolute;
	left: 50%;
	top: calc(50% - 98px);
	width: 56px;
	height: 56px;
	border-radius: 50%;
	border: 3px solid rgba(236, 245, 255, 0.95);
	background:
		radial-gradient(circle at 30% 30%, #ffffff 0 20%, #f1f5f9 21% 60%, #dbe7f5 61% 100%);
	box-shadow: 0 10px 18px rgba(2, 6, 23, 0.26);
	transform: translateX(-50%);
	animation: startupBallBounce 0.95s cubic-bezier(0.28, 0.84, 0.42, 1) infinite;
	z-index: 0;
	pointer-events: none;
}

.startup-overlay::after {
	content: '';
	position: absolute;
	left: 50%;
	top: calc(50% - 18px);
	width: 74px;
	height: 13px;
	border-radius: 999px;
	background: rgba(5, 17, 36, 0.33);
	transform: translateX(-50%);
	filter: blur(0.4px);
	animation: startupBallShadow 0.95s ease-in-out infinite;
	z-index: 0;
	pointer-events: none;
}

.startup-overlay.has-three-startup::before,
.startup-overlay.has-three-startup::after {
	opacity: 0;
	animation: none;
}

.startup-overlay.loaded {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}

.startup-scene {
	width: min(260px, 58vw);
	height: min(260px, 58vw);
	display: block;
	position: relative;
	z-index: 1;
}

.startup-copy {
	text-align: center;
	color: #f8fafc;
	width: min(360px, 85vw);
	position: relative;
	z-index: 1;
}

.startup-copy h2 {
	margin: 0;
	font-family: 'Barlow Condensed', sans-serif;
	font-size: clamp(24px, 5vw, 38px);
	letter-spacing: 1.2px;
	text-transform: uppercase;
	line-height: 1.02;
}

.startup-copy p {
	margin: 8px 0 12px;
	font-size: 13px;
	letter-spacing: 0.4px;
	color: rgba(226, 232, 240, 0.9);
}

.startup-progress {
	height: 6px;
	border-radius: 999px;
	background: rgba(148, 163, 184, 0.28);
	overflow: hidden;
}

.startup-progress span {
	display: block;
	height: 100%;
	width: 42%;
	border-radius: inherit;
	background: linear-gradient(90deg, #facc15 0%, #f59e0b 100%);
	animation: startupSweep 1.2s ease-in-out infinite;
}

.release-notes-modal {
	position: fixed;
	inset: 0;
	z-index: 680;
	background: rgba(2, 6, 23, 0.58);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	backdrop-filter: blur(4px);
}

.release-notes-shell {
	width: min(520px, calc(100vw - 22px));
	border-radius: 16px;
	border: 1px solid rgba(30, 64, 115, 0.22);
	background: linear-gradient(180deg, #f7fbff 0%, #edf5ff 100%);
	box-shadow: 0 12px 28px rgba(15, 23, 42, 0.22);
	overflow: hidden;
}

.release-notes-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 14px;
	border-bottom: 1px solid #d3e2f3;
}

.release-notes-head h3 {
	margin: 0;
	font-size: 19px;
	font-family: 'Barlow Condensed', sans-serif;
	letter-spacing: 0.3px;
	color: #123866;
}

.release-notes-close {
	width: 30px;
	height: 30px;
	border: 1px solid #c4d4ea;
	border-radius: 10px;
	background: #ffffff;
	color: #1e3a5f;
	cursor: pointer;
}

.release-notes-body {
	padding: 12px 14px 14px;
	color: #24466e;
	font-size: 13px;
	line-height: 1.45;
	display: grid;
	gap: 6px;
}

.release-notes-body p {
	margin: 0;
}

@keyframes startupSweep {
	0% { transform: translateX(-120%); }
	55% { transform: translateX(160%); }
	100% { transform: translateX(160%); }
}

@keyframes startupBallBounce {
	0%, 100% { transform: translateX(-50%) translateY(0) scale(1.02, 0.98); }
	18% { transform: translateX(-50%) translateY(-84px) scale(0.96, 1.05); }
	34% { transform: translateX(-50%) translateY(0) scale(1.08, 0.92); }
	48% { transform: translateX(-50%) translateY(-46px) scale(0.98, 1.02); }
	65% { transform: translateX(-50%) translateY(0) scale(1.04, 0.96); }
	80% { transform: translateX(-50%) translateY(-20px) scale(0.99, 1.01); }
}

@keyframes startupBallShadow {
	0%, 100% { transform: translateX(-50%) scaleX(1); opacity: 0.36; }
	18% { transform: translateX(-50%) scaleX(0.68); opacity: 0.18; }
	34% { transform: translateX(-50%) scaleX(1.08); opacity: 0.42; }
	48% { transform: translateX(-50%) scaleX(0.8); opacity: 0.22; }
	65% { transform: translateX(-50%) scaleX(1.04); opacity: 0.38; }
	80% { transform: translateX(-50%) scaleX(0.9); opacity: 0.3; }
}

#globe,
#globe svg {
	touch-action: none;
	-webkit-user-select: none;
	user-select: none;
}

/* Custom Scrollbar - Dark Theme */
::-webkit-scrollbar {
	width: 6px;
	height: 6px;
}

::-webkit-scrollbar-track {
	background: transparent;
}

::-webkit-scrollbar-thumb {
	background: #4b5563;
	border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
	background: #6b7280;
}

/* Firefox scrollbar */
* {
	scrollbar-width: thin;
	scrollbar-color: #4b5563 transparent;
}

/* SVG Container */
#globe > svg {
	width: min(900px, 88vw);
	height: min(600px, 76vh);
	background: transparent;
}

@media (max-width: 768px) {
	#globe {
		height: 100dvh;
		padding: 92px 0 94px;
		box-sizing: border-box;
	}

	#globe > svg {
		width: min(86vw, 420px);
		height: min(58dvh, 440px);
	}
}

#globe {
	transition: transform 0.35s ease;
}

@media (min-width: 1025px) {
	body.country-card-open #globe {
		transform: translateX(-clamp(60px, 8vw, 130px));
	}
}

.zoom-btn {
	width: 52px;
	height: 52px;
	border-radius: 16px;
	border: 1px solid rgba(15, 23, 42, 0.22);
	background: rgba(255, 255, 255, 0.96);
	color: #1f2937;
	font-size: 20px;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16);
	transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	padding-bottom: 0;
}

.zoom-btn:hover {
	background: #ffffff;
	transform: translateY(-1px);
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}

.zoom-btn:active {
	transform: translateY(0);
}

.zoom-btn i {
	font-size: 18px;
	line-height: 1;
}

.info-fab {
	width: 54px;
	height: 54px;
	border-radius: 50%;
	border: none;
	background: rgba(255, 255, 255, 0.92);
	color: #334155;
	font-size: 30px;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 10px 22px rgba(2, 6, 23, 0.2);
	transition: transform 0.18s ease, color 0.18s ease;
	display: flex;
	align-items: center;
	justify-content: center;
}

.info-fab:hover {
	transform: translateY(-1px);
	background: #ffffff;
	color: #0f172a;
}

.info-fab:active {
	transform: translateY(0);
}

.info-shell {
	border-radius: 22px;
	box-shadow: 0 16px 36px rgba(2, 6, 23, 0.34);
}

.info-modal-body {
	display: grid;
	gap: 10px;
}

.info-line {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	color: #334155;
}

.info-line i {
	width: 16px;
	text-align: center;
	color: #475569;
}

/* Ocean - Dark Blue for visibility */
.sea {
	fill: #1e3a8a;
	filter: drop-shadow(0 8px 32px rgba(0, 0, 0, 0.4));
}

/* Graticule lines - Hidden */
.graticule {
	fill: none;
	stroke: none;
	display: none;
}

/* Land styles - Gray countries */
.land {
	fill: #9ca3af;
	stroke: #6b7280;
	stroke-width: 1px;
	pointer-events: none;
	transition: fill 0.3s ease, stroke 0.3s ease, stroke-width 0.3s ease;
}

.land.hover {
	fill: #d1d5db;
	stroke: #9ca3af;
	stroke-width: 2px;
}

.land.selected {
	fill: #fbbf24;
	stroke: none;
	stroke-width: 0;
}

/* Country interaction areas */
.country-area {
	fill: transparent;
	stroke: none;
	cursor: pointer;
	pointer-events: all;
}

/* Pins & Flags - Removed */
.pins,
.flags,
.volleyball-pin,
.flag-marker {
	display: none !important;
}

/* Show states for cards and sidebar */
.country-card.show {
	opacity: 1 !important;
	transform: scale(1) !important;
	pointer-events: all !important;
}

.info-sidebar.show {
	opacity: 1 !important;
	transform: translateX(0) !important;
	pointer-events: all !important;
}

.medals-card.show {
	opacity: 1 !important;
	transform: translateY(0) !important;
	pointer-events: all !important;
}

/* History content styling */
.history-content h4 {
	color: #fbbf24;
	font-size: 18px;
	font-weight: 600;
	margin: 20px 0 12px 0;
}

.history-content p {
	margin: 0 0 16px 0;
}

.history-content ul {
	margin: 12px 0;
	padding-left: 24px;
}

.history-content li {
	margin: 8px 0;
	color: rgba(255, 255, 255, 0.85);
}

/* Medal summary section */
.medal-summary {
	background: rgba(0, 0, 0, 0.2);
	border-radius: 16px;
	padding: 20px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	margin-top: 20px;
}

.medal-summary h4 {
	color: #ffd700;
	font-size: 18px;
	font-weight: 700;
	margin: 0 0 16px 0;
	text-align: center;
}

.medal-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 10px 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.medal-row:last-child {
	border-bottom: none;
}

.medal-label {
	color: rgba(255, 255, 255, 0.8);
	font-size: 14px;
	font-weight: 600;
}

.medal-count {
	font-size: 18px;
	font-weight: 700;
	color: #ffd700;
}

/* Medal items in medals card */
.medal-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 10px 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.medal-item:last-child {
	border-bottom: none;
}

.medal-tournament {
	color: rgba(255, 255, 255, 0.85);
	font-size: 14px;
	font-weight: 500;
}

.medal-counts {
	display: flex;
	gap: 12px;
	font-size: 13px;
}

.medal-counts span {
	font-weight: 600;
}

/* Banned country status */
.banned-status {
	background: rgba(220, 38, 38, 0.2);
	border: 1px solid rgba(239, 68, 68, 0.5);
	border-radius: 8px;
	padding: 12px;
	margin-top: 12px;
	text-align: center;
}

.banned-status .status-text {
	color: #fca5a5;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 1px;
	margin-bottom: 4px;
}

.banned-status .last-rank {
	color: rgba(255, 255, 255, 0.7);
	font-size: 13px;
}

/* Tooltip */
.tooltip {
	position: fixed;
	background: rgba(0, 0, 0, 0.9);
	color: #fff;
	padding: 10px 16px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 500;
	pointer-events: none;
	z-index: 1000;
	display: none;
	backdrop-filter: blur(8px);
	border: 1px solid rgba(255, 255, 255, 0.1);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.leaderboard-shell {
	position: relative;
	background-color: var(--lb-shell-bg);
	box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
	border-radius: 6px;
	overflow: hidden;
}

.leaderboard-content {
	padding: 8px;
	background-color: var(--lb-content-bg);
}

.leaderboard-shell::before {
	content: '';
	position: absolute;
	left: -165px;
	bottom: -175px;
	width: 340px;
	height: 340px;
	border-radius: 50%;
	border: 4px solid rgba(226, 232, 240, 0.14);
	background: transparent;
	pointer-events: none;
	opacity: 1;
}

.leaderboard-shell::after {
	content: '';
	position: absolute;
	left: -130px;
	bottom: -140px;
	width: 270px;
	height: 270px;
	border-radius: 50%;
	border-top: 3px solid rgba(226, 232, 240, 0.12);
	border-left: 3px solid rgba(226, 232, 240, 0.12);
	background: transparent;
	pointer-events: none;
}

.leaderboard-table-head {
	display: grid;
	grid-template-columns: 56px 1fr 76px;
	gap: 10px;
	padding: 8px 10px;
	margin: 0 4px 8px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.6px;
	text-transform: uppercase;
	color: var(--lb-text-muted);
	border-bottom: 1px solid var(--lb-line-strong);
}

.leaderboard-row {
	display: grid;
	grid-template-columns: 56px 1fr 76px;
	gap: 10px;
	align-items: center;
	padding: 9px 10px;
	margin: 0 4px;
	background: transparent;
	border: 0;
	border-bottom: 1px solid var(--lb-line);
	cursor: pointer;
	transition: background 0.2s ease;
}

.leaderboard-row:hover {
	background: var(--lb-hover);
}

.rank-pill {
	display: inline-block;
	min-width: 34px;
	padding-left: 8px;
	font-size: 13px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	border-left: 2px solid var(--lb-line-strong);
	color: var(--lb-text-main);
}

.rank-pill.top1 {
	border-left-color: #fbbf24;
	color: #fcd34d;
}

.rank-pill.top2 {
	border-left-color: #cbd5e1;
	color: #e2e8f0;
}

.rank-pill.top3 {
	border-left-color: #fdba74;
	color: #fdba74;
}

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

.team-flag {
	width: 26px;
	height: 18px;
	border-radius: 0;
	object-fit: cover;
	flex-shrink: 0;
	border: none;
}

.team-name {
	font-size: 13px;
	color: var(--lb-text-main);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.team-points {
	text-align: right;
	font-size: 13px;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	color: var(--lb-text-main);
}

.country-card {
	border-radius: 4px !important;
	display: flex;
	flex-direction: column;
}

.country-card .card-header {
	position: sticky;
	top: 0;
	z-index: 8;
	background: #ffffff;
	border-bottom-color: #e2e8f0;
}

.country-card .card-body {
	overflow-y: auto;
}

.country-card .close-btn {
	border-radius: 4px !important;
}

.country-card .country-flag {
	border-radius: 0 !important;
}

#titleWrap {
	transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

#titleWrap.zoom-hidden {
	opacity: 0;
	pointer-events: none;
}

body.country-card-open #zoomControlsWrap {
	opacity: 0;
	pointer-events: none;
}

#globe > svg {
	transition: opacity 0.46s ease, transform 0.46s ease;
}

body.country-card-open #activeCompetition {
	opacity: 0.18;
	filter: blur(3px);
}

#activeCompetition {
	transition: opacity 0.46s ease, filter 0.46s ease;
}

@media (max-width: 768px) {
	#titleWrap {
		padding: 0;
		left: 50% !important;
		transform: translateX(-50%) !important;
		top: 78px !important;
		bottom: auto !important;
		width: calc(100vw - 44px) !important;
		max-width: 320px;
	}

	#titleWrap h1 {
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
	}

	#titleWrap p {
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
	}

	#titleWrap.collapsed {
		width: auto !important;
		min-width: 56px;
		padding: 6px 10px;
		border-radius: 999px;
		background: rgba(0, 0, 0, 0.35);
		border: 1px solid rgba(255, 255, 255, 0.2);
		backdrop-filter: blur(6px);
	}

	#titleWrap.collapsed h1,
	#titleWrap.collapsed p {
		display: none;
	}

	#titleWrap.collapsed::after {
		content: 'Title';
		font-size: 11px;
		font-weight: 600;
		color: rgba(255, 255, 255, 0.9);
		letter-spacing: 0.3px;
	}
}

/* Responsive Design */
@media (max-width: 768px) {
	.country-card {
		left: 50% !important;
		transform: translate(-50%, -50%) scale(0.9) !important;
		width: calc(100% - 40px) !important;
		max-width: 340px !important;
	}
	
	.country-card.show {
		transform: translate(-50%, -50%) scale(1) !important;
	}
}



.medal-summary {
	background: rgba(0, 0, 0, 0.2);
	border-radius: 16px;
	padding: 20px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	margin-top: 20px;
}

.medal-summary h4 {
	color: #ffd700;
	font-size: 18px;
	font-weight: 700;
	margin: 0 0 16px 0;
	text-align: center;
}

.medal-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 10px 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.medal-row:last-child {
	border-bottom: none;
}

.medal-label {
	color: rgba(255, 255, 255, 0.8);
	font-size: 14px;
	font-weight: 600;
}

.medal-count {
	font-size: 18px;
	font-weight: 700;
	color: #ffd700;
}

/* Medals Summary Card - Bottom Left */
.medals-card {
	position: fixed;
	bottom: 30px;
	left: 30px;
	width: 320px;
	background: rgba(30, 30, 40, 0.92);
	backdrop-filter: blur(20px);
	border-radius: 16px;
	padding: 24px;
	border: 1px solid rgba(255, 255, 255, 0.15);
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
	z-index: 45;
	opacity: 0;
	transform: translateY(20px);
	pointer-events: none;
	transition: all 0.4s ease;
}

.medals-card.show {
	opacity: 1;
	transform: translateY(0);
	pointer-events: all;
}

.medals-card h3 {
	color: #ffd700;
	font-size: 18px;
	font-weight: 700;
	margin: 0 0 16px 0;
	text-align: center;
}

.medals-intro {
	color: rgba(255, 255, 255, 0.6);
	font-size: 13px;
	text-align: center;
	font-style: italic;
	margin: 0;
}

.medal-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 10px 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.medal-item:last-child {
	border-bottom: none;
}

.medal-tournament {
	color: rgba(255, 255, 255, 0.85);
	font-size: 14px;
	font-weight: 500;
}

.medal-counts {
	display: flex;
	gap: 12px;
	font-size: 13px;
}

.medal-counts span {
	font-weight: 600;
}

.banned-status {
	background: rgba(220, 38, 38, 0.2);
	border: 1px solid rgba(239, 68, 68, 0.5);
	border-radius: 8px;
	padding: 12px;
	margin-top: 12px;
	text-align: center;
}

.banned-status .status-text {
	color: #fca5a5;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 1px;
	margin-bottom: 4px;
}

.banned-status .last-rank {
	color: rgba(255, 255, 255, 0.7);
	font-size: 13px;
}

.stat-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 16px;
	background: rgba(255, 255, 255, 0.05);
	border-radius: 12px;
	transition: background 0.2s ease;
}

.stat-item:hover {
	background: rgba(255, 255, 255, 0.08);
}

.stat-label {
	font-size: 13px;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	opacity: 0.7;
}

.stat-value {
	font-size: 28px;
	font-weight: 700;
	color: #ffd700;
	text-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

/* Responsive */
@media (max-width: 1200px) {
	.country-card {
		left: 20px;
		width: 300px;
	}
}

@media (max-width: 1024px) {
	.country-card {
		top: 110px !important;
		left: 50% !important;
		transform: translateX(-50%) scale(0.95) !important;
		width: min(92vw, 360px) !important;
		max-height: calc(100vh - 220px);
	}

	.country-card.show {
		transform: translateX(-50%) scale(1) !important;
	}
}

@media (max-width: 768px) {
	body {
		overflow: hidden;
	}

	#controlsWrap {
		flex-wrap: wrap;
	}

	#globe > svg {
		width: min(900px, 100vw);
		height: min(600px, 64vh);
	}

	#globe {
		transform: translateY(0);
	}

	.country-card {
		top: 128px !important;
		left: 50% !important;
		transform: translateX(-50%) scale(0.9) !important;
		width: calc(100% - 20px) !important;
		max-width: 360px !important;
	}

	.country-card.show {
		transform: translateX(-50%) scale(1) !important;
	}

	#leaderboardModal .leaderboard-item {
		padding-left: 14px;
		padding-right: 14px;
	}

	body.mobile-country-open #globe {
		transform: translateY(-210px);
	}

	body.mobile-country-open .country-card {
		top: auto !important;
		bottom: 22px;
		left: 50% !important;
		transform: translateX(-50%) scale(1) !important;
		max-height: 48vh;
		overflow: hidden;
	}

	body.mobile-country-open .vnl-status-popup {
		max-width: calc(100vw - 20px);
	}

	body.mobile-country-open .vnl-status-label {
		font-size: 13px;
	}

	body.mobile-country-open .vnl-status-subline {
		font-size: 10px;
	}

	body.mobile-country-open .vnl-status-trophy {
		width: 28px;
		height: 44px;
	}

	body.mobile-country-open .vnl-status-race {
		font-size: 52px;
	}

	body.mobile-country-open .vnl-status-flow {
		font-size: 18px;
	}

	body.mobile-country-open .vnl-inline-label {
		font-size: 18px;
	}

	body.mobile-country-open .vnl-inline-subline {
		font-size: 11px;
		white-space: normal;
	}

	body.mobile-country-open .vnl-inline-prev-label {
		font-size: 10px;
	}

	body.mobile-country-open #sidebarToggle,
	body.mobile-country-open #controlsSidebar,
	body.mobile-country-open #titleWrap {
		opacity: 0;
		pointer-events: none;
	}

	body.mobile-leaderboard-open #zoomControlsWrap,
	body.mobile-leaderboard-open #sidebarToggle,
	body.mobile-leaderboard-open #controlsSidebar {
		opacity: 0;
		pointer-events: none;
	}

	.leaderboard-content {
		padding: 6px;
	}

	.leaderboard-table-head {
		grid-template-columns: 52px 1fr 70px;
		padding: 8px 10px;
	}

	.leaderboard-row {
		grid-template-columns: 52px 1fr 70px;
		padding: 8px 8px;
		margin-bottom: 0;
	}

	.zoom-btn {
		width: 56px;
		height: 56px;
		font-size: 32px;
	}

	.info-fab {
		width: 58px;
		height: 58px;
		font-size: 34px;
	}

	.rank-pill {
		min-width: 32px;
		padding-left: 7px;
	}

	.team-name,
	.team-points {
		font-size: 12px;
	}

	body.mobile-info-open #zoomControlsWrap,
	body.mobile-info-open #titleWrap {
		opacity: 0;
		pointer-events: none;
	}
}

@media (max-width: 420px) {
	#globe > svg {
		height: min(600px, 60vh);
	}

	.country-card {
		top: 122px !important;
		width: calc(100% - 14px) !important;
	}

/* Exposed top navigation: no hamburger, sidebar shell, or title pill. */
#titleWrap,
#titleWrap.collapsed,
#titleWrap.collapsed::after,
.sidebar-toggle-btn {
	display: none !important;
}

#controlsSidebar,
#controlsSidebar.open {
	position: fixed !important;
	left: auto !important;
	top: 18px !important;
	right: 22px !important;
	bottom: auto !important;
	width: auto !important;
	max-width: calc(100vw - 44px);
	height: auto !important;
	min-height: 0 !important;
	display: flex !important;
	flex-direction: row !important;
	align-items: center !important;
	justify-content: flex-end !important;
	flex-wrap: wrap !important;
	gap: 7px !important;
	padding: 0 !important;
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
	backdrop-filter: none !important;
	transform: none !important;
	overflow: visible !important;
	z-index: 120;
}

#controlsSidebar .gender-toggle {
	display: contents !important;
}

#controlsSidebar .controls-heading,
#controlsSidebar .sidebar-close-btn,
#controlsSidebar .flex-1,
#controlsSidebar .sidebar-version {
	display: none !important;
}

#controlsSidebar .gender-btn-icon,
#controlsSidebar .sidebar-item {
	width: auto !important;
	min-width: 0 !important;
	max-width: none !important;
	flex: 0 0 auto !important;
	height: 40px !important;
	padding: 0 12px !important;
	gap: 7px !important;
	flex-direction: row !important;
	justify-content: center !important;
	border: 1px solid rgba(255, 255, 255, 0.62) !important;
	border-radius: 10px !important;
	background: rgba(255, 255, 255, 0.9) !important;
	box-shadow: 0 5px 14px rgba(15, 23, 42, 0.13) !important;
	backdrop-filter: blur(10px);
	color: #486b8e !important;
	font-size: 13px !important;
	font-weight: 700 !important;
	white-space: nowrap;
	transform: none !important;
}

#controlsSidebar .gender-btn-icon:hover,
#controlsSidebar .sidebar-item:hover,
#controlsSidebar .gender-btn-icon.active {
	background: #eaf3fa !important;
	color: #1c69a5 !important;
	border-color: #b9d4e8 !important;
}

#controlsSidebar #btnWomen.gender-btn-icon.active {
	background: #fff0f5 !important;
	color: #e61556 !important;
	border-color: #f1b5c9 !important;
}

#controlsSidebar .sidebar-item i,
#controlsSidebar .gender-btn-icon i {
	width: auto !important;
	font-size: 15px !important;
}

#controlsSidebar .menu-label {
	font-size: 12px !important;
	font-weight: 700 !important;
	line-height: 1 !important;
	color: inherit !important;
}

.zoom-dock {
	right: 22px !important;
	bottom: 20px !important;
	background: rgba(255, 255, 255, 0.9) !important;
	border-radius: 10px !important;
	box-shadow: 0 6px 16px rgba(15, 23, 42, 0.13) !important;
}

@media (max-width: 768px) {
	#controlsSidebar,
	#controlsSidebar.open {
		top: 12px !important;
		right: 10px !important;
		max-width: calc(100vw - 20px);
		gap: 5px !important;
	}

	#controlsSidebar .gender-btn-icon,
	#controlsSidebar .sidebar-item {
		height: 36px !important;
		padding: 0 8px !important;
		gap: 5px !important;
		border-radius: 8px !important;
	}

	#controlsSidebar .menu-label {
		font-size: 10px !important;
	}

	.zoom-dock {
		right: 10px !important;
		bottom: 12px !important;
	}
}

	.country-card .card-header {
		padding: 12px;
	}

	.country-card .card-body {
		padding: 12px;
	}

	.country-card .country-name {
		font-size: 15px;
	}

	.country-card .federation-name {
		font-size: 11px;
	}
}

.leaderboard-head {
	background-color: var(--lb-head-bg);
}

#leaderboardSearch {
	background-color: var(--lb-search-bg) !important;
	border-color: var(--lb-search-border) !important;
	color: var(--lb-text-main) !important;
}

#leaderboardSearch::placeholder {
	color: var(--lb-text-muted) !important;
}

/* Modern flat curved redesign */
.control-chip {
	background: rgba(255, 255, 255, 0.95);
	border: 1px solid rgba(28, 105, 165, 0.28);
	color: #194268;
	padding: 0 14px;
	border-radius: 12px;
	height: 50px;
	min-width: 136px;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.12px;
	cursor: pointer;
	transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	position: relative;
	overflow: hidden;
	box-shadow: 0 4px 12px rgba(15, 23, 42, 0.09);
}

.control-chip:hover {
	background: rgba(255, 255, 255, 0.95);
	border-color: rgba(28, 105, 165, 0.38);
	box-shadow: 0 4px 12px rgba(15, 23, 42, 0.09);
}

.control-chip::before {
	display: none;
}

.control-chip-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border-radius: 999px;
	background: rgba(28, 105, 165, 0.1);
	color: #1c69a5;
	box-shadow: inset 0 0 0 1px rgba(28, 105, 165, 0.24);
	flex-shrink: 0;
}

.control-chip-icon i {
	font-size: 12px;
	line-height: 1;
}

.control-chip-copy {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	line-height: 1;
	gap: 2px;
}

.control-chip-title {
	font-size: 13px;
	font-weight: 800;
	line-height: 1.05;
}

.control-chip-subtitle {
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.2px;
	color: #64748b;
	line-height: 1.05;
}

.control-chip-tour,
.control-chip-rank {
	animation: none;
}

.control-chip-rank .rank-ball,
.control-chip-rank .rank-hover-label {
	display: none;
}

#btnTournament.is-vnl .control-chip-title {
	font-family: var(--vnl-font);
	font-size: 18px;
	line-height: 0.9;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: #f7d025;
}

#btnTournament.is-vnl .control-chip-subtitle {
	font-size: 9px;
	letter-spacing: 0.7px;
	text-transform: uppercase;
}

/* Control Sidebar */
#controlsSidebar {
	display: flex;
	flex-direction: row;
	align-items: center;
	position: fixed;
	left: 50%;
	top: auto;
	bottom: 22px;
	height: auto;
	width: auto;
	gap: 8px;
	padding: 0;
	background: transparent;
	border: 0;
	box-shadow: none;
	z-index: 120;
	transform: translateX(-50%);
	transition: none;
	overflow: visible;
}

#controlsSidebar.open {
	transform: translateX(-50%);
}

.sidebar-item {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 12px !important;
	padding-left: 12px !important;
	text-align: left;
	height: 48px !important;
	border-radius: 8px !important;
	background: #f0f4f8 !important;
	color: #1c69a5 !important;
	border: 1px solid #e0e8f0 !important;
	transition: background 0.15s ease, border-color 0.15s ease;
	font-size: 14px;
	font-weight: 600;
}

.sidebar-item:hover {
	background: #e5ecf3 !important;
	border-color: #d0dce8 !important;
}

.sidebar-item i {
	font-size: 18px;
	flex-shrink: 0;
	width: 20px;
	text-align: center;
}

.sidebar-item.control-chip-compact,
.sidebar-item.control-chip-compact-icon,
.sidebar-item.info-fab-sidebar {
	width: 100% !important;
	height: 48px !important;
	border-radius: 10px !important;
	border: 1px solid rgba(28, 105, 165, 0.18) !important;
	background: rgba(28, 105, 165, 0.08) !important;
	color: #1c69a5 !important;
	font-size: 18px !important;
	box-shadow: none !important;
	padding: 0 12px !important;
	gap: 12px !important;
	justify-content: flex-start !important;
}

.menu-label {
	font-size: 14px;
	font-weight: 600;
	color: #1c69a5;
	white-space: nowrap;
	flex: 1;
	line-height: 1;
}

.tournament-active-chip {
	position: fixed;
	right: 16px;
	left: auto;
	top: 16px;
	z-index: 100;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 10px;
	max-width: calc(100vw - 92px);
	border-radius: 10px;
	background: #2437db;
	border: 1px solid rgba(255, 255, 255, 0.24);
	box-shadow: none;
	color: #fff;
	cursor: pointer;
}

.tournament-active-chip i {
	display: none !important;
}

.tournament-active-copy {
	display: flex;
	flex-direction: column;
	gap: 0;
	min-width: 0;
	flex: 1;
}

.tournament-active-title {
	font-family: var(--vnl-font);
	font-size: 26px;
	line-height: 0.9;
	letter-spacing: 1.1px;
	text-transform: uppercase;
	color: #ff6b6b;
	font-weight: 800;
}

.tournament-active-clear {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	margin-left: auto;
	flex-shrink: 0;
	border-radius: 0;
	border: none;
	background: transparent;
	color: #fff;
	font-size: 18px;
	font-weight: 800;
	line-height: 1;
	cursor: pointer;
	padding: 0;
}

.tournament-active-clear:hover {
	background: transparent;
	border-color: transparent;
}

.sidebar-toggle-btn {
	position: fixed;
	left: 16px;
	top: 16px;
	z-index: 100;
	width: 48px;
	height: 48px;
	border-radius: 8px;
	border: 1px solid rgba(28, 105, 165, 0.2);
	background: rgba(255, 255, 255, 0.92);
	color: #1c69a5;
	font-size: 20px;
	cursor: pointer;
	transition: all 0.2s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
	line-height: 1;
}

.sidebar-toggle-btn:hover {
	background: rgba(255, 255, 255, 0.96);
	border-color: rgba(28, 105, 165, 0.32);
	box-shadow: 0 2px 10px rgba(15, 23, 42, 0.1);
}

.sidebar-toggle-btn:active {
	transform: scale(0.95);
}

.sidebar-close-btn {
	position: absolute;
	top: 12px;
	right: 8px;
	width: 36px;
	height: 36px;
	border-radius: 6px;
	border: none;
	background: transparent;
	color: #1c69a5;
	font-size: 18px;
	cursor: pointer;
	transition: background 0.2s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	line-height: 1;
	z-index: 10;
}

.sidebar-close-btn:hover {
	background: rgba(28, 105, 165, 0.1);
}

.sidebar-close-btn:active {
	transform: scale(0.96);
}

/* Sidebar backdrop */
.sidebar-backdrop {
	position: fixed;
	left: 0;
	top: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.2);
	backdrop-filter: none;
	z-index: 90;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s ease;
}

.sidebar-backdrop.show {
	opacity: 1;
	pointer-events: all;
}

.gender-toggle {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	height: auto;
	padding: 0;
	border-radius: 0;
	background: transparent;
	border: none;
	box-shadow: none;
	width: 100%;
}

.gender-btn-icon {
	width: 100%;
	height: 48px;
	border-radius: 8px;
	border: 1px solid #e0e8f0;
	background: #f0f4f8;
	color: #94a3b8;
	font-size: 18px;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
	display: flex;
	align-items: center;
	justify-content: flex-start;
	padding: 0 12px;
	gap: 12px;
	line-height: 1;
	box-shadow: none;
}

.gender-btn-icon:hover {
	background: #e5ecf3;
	border-color: #d0dce8;
	color: #1f446b;
}

.gender-btn-icon.active {
	font-weight: 800;
	background: #e5ecf3;
	color: #1c69a5;
	border-color: #bfd4e8;
}

#btnWomen.gender-btn-icon.active {
	background: #fde8ed;
	color: #e61556;
	border-color: #f5c5d5;
}

#btnMen.gender-btn-icon.active {
	background: #e5ecf3;
	color: #1c69a5;
	border-color: #bfd4e8;
}

/* Compact control buttons - icon only */
.control-chip-compact {
	width: 48px;
	height: 48px;
	border-radius: 12px;
	border: 1px solid rgba(28, 105, 165, 0.28);
	background: rgba(255, 255, 255, 0.94);
	color: #1c69a5;
	font-size: 20px;
	cursor: pointer;
	transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	box-shadow: 0 4px 12px rgba(15, 23, 42, 0.09);
	line-height: 1;
}

.control-chip-compact:hover {
	background: rgba(255, 255, 255, 0.98);
	border-color: rgba(28, 105, 165, 0.48);
	box-shadow: 0 6px 16px rgba(15, 23, 42, 0.12);
}

.control-chip-compact:active {
	transform: scale(0.96);
}

/* Calculator icon button */
.control-chip-compact-icon {
	width: 48px;
	height: 48px;
	border-radius: 12px;
	border: 1px solid rgba(28, 105, 165, 0.28);
	background: rgba(255, 255, 255, 0.94);
	color: #1c69a5;
	font-size: 20px;
	cursor: pointer;
	transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	box-shadow: 0 4px 12px rgba(15, 23, 42, 0.09);
	line-height: 1;
}

.control-chip-compact-icon:hover {
	background: rgba(255, 255, 255, 0.98);
	border-color: rgba(28, 105, 165, 0.48);
	box-shadow: 0 6px 16px rgba(15, 23, 42, 0.12);
}

.control-chip-compact-icon:active {
	transform: scale(0.96);
}

/* Info button in sidebar */
.info-fab-sidebar {
	width: 48px;
	height: 48px;
	border-radius: 12px;
	border: 1px solid rgba(28, 105, 165, 0.28);
	background: rgba(255, 255, 255, 0.94);
	color: #1c69a5;
	font-size: 20px;
	cursor: pointer;
	transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	box-shadow: 0 4px 12px rgba(15, 23, 42, 0.09);
	line-height: 1;
	margin-top: auto;
}

.info-fab-sidebar:hover {
	background: rgba(255, 255, 255, 0.98);
	border-color: rgba(28, 105, 165, 0.48);
	box-shadow: 0 6px 16px rgba(15, 23, 42, 0.12);
}

.info-fab-sidebar:active {
	transform: scale(0.96);
}

/* Version badge */
.sidebar-version {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 48px;
	border-radius: 8px;
	border: 1px solid #e0e8f0;
	background: #f0f4f8;
	font-size: 11px;
	font-weight: 700;
	color: #64748b;
	box-shadow: none;
	margin-top: 8px;
	letter-spacing: 0.5px;
	text-transform: uppercase;
}

.sidebar-version .version-text {
	line-height: 1;
}

#controlsSidebar {
	position: fixed;
	left: 16px;
	top: 16px;
	width: min(410px, calc(100vw - 32px));
	height: auto;
	min-height: 0;
	padding: 12px;
	gap: 8px;
	align-items: stretch;
	flex-direction: row;
	flex-wrap: wrap;
	background: rgba(255, 255, 255, 0.96);
	border: 1px solid rgba(28, 105, 165, 0.2);
	border-radius: 16px;
	box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16);
	transform: none;
	transition: none;
	overflow: visible;
}

#controlsSidebar.open {
	transform: none;
}

.controls-heading {
	display: grid;
	gap: 1px;
	width: 100%;
	padding: 1px 3px 5px;
}

.controls-kicker {
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 1.2px;
	line-height: 1;
	text-transform: uppercase;
	color: #e61556;
}

.controls-title {
	font-family: var(--vnl-font);
	font-size: 21px;
	line-height: 1;
	letter-spacing: 0.3px;
	color: #173b63;
}

#controlsSidebar .gender-toggle {
	width: auto;
	flex: 1 1 148px;
	flex-direction: row;
	gap: 5px;
}

#controlsSidebar .gender-btn-icon,
#controlsSidebar .sidebar-item {
		width: auto !important;
		min-width: 0;
		flex: 1 1 0;
		height: 42px !important;
		justify-content: center !important;
		padding: 0 10px !important;
		gap: 7px !important;
		border-radius: 10px !important;
	}

#controlsSidebar .gender-btn-icon {
		font-size: 16px;
}

#controlsSidebar .sidebar-item {
		font-size: 15px !important;
	}

#controlsSidebar .menu-label {
		font-size: 12px;
	}

#controlsSidebar .flex-1,
#controlsSidebar .sidebar-version,
#controlsSidebar .sidebar-close-btn {
	display: none;
}

.zoom-dock {
	position: fixed;
	right: 16px;
	bottom: 18px;
	z-index: 100;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 7px 8px 7px 12px;
	border: 1px solid rgba(28, 105, 165, 0.2);
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.96);
	box-shadow: 0 10px 24px rgba(15, 23, 42, 0.16);
}

.zoom-label {
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.6px;
	text-transform: uppercase;
	color: #58718c;
}

.zoom-actions {
	display: flex;
	align-items: center;
	gap: 5px;
}

.zoom-btn {
	width: 34px;
	height: 34px;
	border-radius: 9px;
	border: 1px solid rgba(28, 105, 165, 0.18);
	background: #edf5fb;
	color: #1c69a5;
	box-shadow: none;
	font-size: 15px;
}

.zoom-btn:hover {
	background: #e2eff8;
	transform: none;
	box-shadow: none;
}

.zoom-readout {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 25px;
	color: #7b93aa;
	font-size: 13px;
}

@media (max-width: 768px) {
	#controlsSidebar {
		left: 10px;
		top: 10px;
		width: calc(100vw - 20px);
		padding: 10px;
		border-radius: 14px;
	}

	#controlsSidebar .sidebar-item,
	#controlsSidebar .gender-btn-icon {
		flex: 1 1 calc(25% - 8px);
		padding: 0 6px !important;
	}

	#controlsSidebar .menu-label {
		font-size: 11px;
	}

	.zoom-dock {
		right: 10px;
		bottom: 12px;
		padding: 6px;
	}

	.zoom-label {
		display: none;
	}
}

@media (max-width: 420px) {
	#controlsSidebar .sidebar-item,
	#controlsSidebar .gender-btn-icon {
		width: calc(50% - 5px) !important;
		flex: 0 0 calc(50% - 5px) !important;
	}

	#controlsSidebar .gender-toggle {
		flex: 0 0 100%;
	}
}

@media (max-width: 768px) {
	#controlsSidebar {
		left: 0;
		top: auto;
		bottom: 0;
		width: 100%;
		padding: 8px 8px max(8px, env(safe-area-inset-bottom));
		gap: 4px;
		flex-wrap: nowrap;
		align-items: stretch;
		border-radius: 18px 18px 0 0;
		border-bottom: 0;
		box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.16);
	}

	#controlsSidebar .controls-heading {
		display: none;
	}

	#controlsSidebar .gender-toggle {
		display: contents;
	}

	#controlsSidebar .gender-btn-icon,
	#controlsSidebar .sidebar-item {
		width: auto !important;
		min-width: 0;
		flex: 1 1 0 !important;
		height: 48px !important;
		padding: 4px 2px !important;
		flex-direction: column;
		gap: 3px !important;
		border: 0 !important;
		background: transparent !important;
		color: #8aa0b8 !important;
		box-shadow: none !important;
	}

	#controlsSidebar .gender-btn-icon.active,
	#controlsSidebar .sidebar-item:active,
	#controlsSidebar .sidebar-item:hover {
		background: #edf5fb !important;
		color: #1c69a5 !important;
	}

	#controlsSidebar #btnWomen.gender-btn-icon.active {
		background: #fff0f5 !important;
		color: #e61556 !important;
	}

	#controlsSidebar .sidebar-item i,
	#controlsSidebar .gender-btn-icon i {
		width: auto;
		font-size: 17px;
	}

	#controlsSidebar .menu-label {
		font-size: 9px;
		font-weight: 800;
		line-height: 1;
	}

	.zoom-dock {
		bottom: 72px;
	}
}

.info-notes-btn {
	margin: 6px 0 6px;
	padding: 6px 10px;
	border: 1px solid #cbd5e1;
	border-radius: 10px;
	background: #f8fafc;
	color: #1f3b63;
	font-size: 12px;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.2s ease, border-color 0.2s ease;
}

.info-notes-btn:hover {
	background: #eef5ff;
	border-color: #93b4dc;
}

.leaderboard-shell {
	border: none !important;
	background-color: var(--lb-shell-bg);
	border-radius: 22px;
}

.leaderboard-shell::before,
.leaderboard-shell::after {
	display: none;
}

.leaderboard-head {
	background-color: #4a1f2d;
}

.lb-close-btn {
	width: 34px;
	height: 34px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.12);
	color: #f8fafc;
	cursor: pointer;
	transition: background 0.2s ease;
}

.lb-close-btn:hover {
	background: rgba(255, 255, 255, 0.2);
}

.mm-close-btn {
	width: 34px;
	height: 34px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: 8px;
	background: #f3f4f6;
	color: #6b7280;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease;
}

.mm-close-btn:hover {
	background: #e5e7eb;
	color: #374151;
}

#leaderboardSearch {
	background-color: rgba(255, 255, 255, 0.12) !important;
	border-color: rgba(255, 255, 255, 0.2) !important;
	color: #fef2f2 !important;
}

#leaderboardSearch:focus {
	border-color: rgba(255, 255, 255, 0.55) !important;
	box-shadow: none !important;
}

.leaderboard-content {
	padding: 10px;
	background: rgba(41, 14, 24, 0.94);
}

.leaderboard-table-head,
.leaderboard-row {
	grid-template-columns: 64px 1fr 80px;
	border-bottom-color: rgba(255, 233, 238, 0.14);
}

.leaderboard-row {
	border-radius: 12px;
	margin-bottom: 4px;
	padding: 10px 12px;
}

.leaderboard-row:hover {
	background: rgba(255, 255, 255, 0.09);
}

.rank-pill {
	border-left-width: 3px;
	font-size: 14px;
}

.country-card {
	border-radius: 22px !important;
	box-shadow: 0 26px 58px rgba(15, 23, 42, 0.3);
	border: 1px solid #d6e0ec !important;
	background: linear-gradient(180deg, #f9fbff 0%, #f2f7ff 100%) !important;
	backdrop-filter: blur(4px);
}

.country-card .card-header {
	background: linear-gradient(180deg, #f7fbff 0%, #eef5ff 100%);
	border-bottom: 1px solid #d9e4f1;
	padding: 16px;
}

.country-card .card-body {
	padding: 16px;
	background: linear-gradient(180deg, #f4f8ff 0%, #ecf2fa 100%);
}

.country-card .country-flag {
	border-radius: 6px !important;
}

@media (min-width: 1025px) {
	.country-card {
		left: auto !important;
		right: 28px !important;
		top: 50% !important;
		max-height: calc(100vh - 120px) !important;
		transform: translateY(-50%) scale(0.9) !important;
	}

	.country-card.show {
		transform: translateY(-50%) scale(1) !important;
	}
}

.country-card .close-btn {
	background: rgba(248, 250, 252, 0.92);
	color: #334155;
	border: 1px solid rgba(148, 163, 184, 0.38);
	border-radius: 10px !important;
	width: 30px;
	height: 30px;
	position: absolute;
	top: 8px;
	right: 8px;
	z-index: 22;
	padding: 0;
	line-height: 1;
	backdrop-filter: blur(2px);
	box-shadow: 0 2px 8px rgba(15, 23, 42, 0.14);
}

.country-card .close-btn i {
	font-size: 13px;
	line-height: 1;
	transform: translateY(-0.5px);
}

.country-card .close-btn:hover {
	background: rgba(255, 255, 255, 0.98);
	color: #0f172a;
}

.matches-shell {
	background: transparent;
	border: 0;
	border-radius: 0;
	padding: 0;
}

.match-row {
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: center;
	gap: 10px;
	padding: 8px 0;
	border-bottom: 1px solid #dde5ef;
}

.match-row:last-child {
	border-bottom: 0;
}

.match-vs {
	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: 0.6px;
	color: #94a3b8;
	font-weight: 700;
}

.match-opponent {
	font-size: 13px;
	color: #1e293b;
	font-weight: 700;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.match-score {
	font-size: 16px;
	font-variant-numeric: tabular-nums;
	color: #334155;
	font-weight: 700;
}

.match-badge {
	width: 24px;
	height: 24px;
	border-radius: 8px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 11px;
	font-weight: 800;
	color: #ffffff;
}

.match-badge.win { background: #22c55e; }
.match-badge.loss { background: #ef4444; }

.points-trend-shell {
	border: 1px solid #c9d5e3;
	border-radius: 12px;
	background: transparent;
	overflow: visible;
	position: relative;
}

.points-trend-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 8px 12px;
	border-bottom: 1px solid #c9d5e3;
	background: transparent;
}

.points-trend-title {
	font-size: 12px;
	font-weight: 700;
	color: #4f627c;
}

.points-trend-value {
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.1px;
}

.points-trend-chart-wrap {
	padding: 8px;
	background: transparent;
}

.vnl-inline-banner {
	margin-top: 10px;
	padding: 10px 11px;
	border-radius: 14px;
	border: 1px solid rgba(148, 163, 184, 0.38);
	background: linear-gradient(180deg, #224a86 0%, #173a72 100%);
	color: #e2edf9;
	display: grid;
	gap: 8px;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.vnl-inline-banner .vnl-status-flow {
	font-size: 11px;
	font-weight: 900;
	letter-spacing: 0.95px;
	opacity: 0.96;
}

.vnl-inline-main {
	display: flex;
	align-items: center;
	gap: 10px;
}

.vnl-inline-trophy {
	width: 30px;
	height: 44px;
	object-fit: contain;
	display: block;
	flex-shrink: 0;
	filter: drop-shadow(0 4px 8px rgba(15, 23, 42, 0.38));
}

.vnl-inline-copy {
	min-width: 0;
	display: grid;
	gap: 3px;
}

.vnl-inline-line {
	display: flex;
	align-items: center;
	gap: 8px;
}

.vnl-inline-label {
	font-family: var(--vnl-font);
	font-size: 20px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0.6px;
	text-transform: uppercase;
	color: #f2f8ff;
}

.vnl-inline-subline {
	font-size: 12px;
	line-height: 1.25;
	font-weight: 700;
	color: rgba(230, 240, 255, 0.94);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.vnl-inline-prev {
	display: grid;
	gap: 5px;
}

.vnl-inline-prev-label {
	font-size: 11px;
	font-weight: 700;
	line-height: 1.2;
	color: rgba(219, 232, 250, 0.94);
}

.vnl-inline-banner.is-newcomer {
	border-color: rgba(52, 211, 153, 0.45);
	background: linear-gradient(180deg, #157c66 0%, #106452 100%);
}

.vnl-inline-banner.is-relegated {
	border-color: rgba(248, 113, 113, 0.5);
	background: linear-gradient(180deg, #9f2330 0%, #7f1825 100%);
}

.vnl-inline-banner.is-champion {
	border-color: rgba(250, 204, 21, 0.56);
	background: linear-gradient(180deg, #966207 0%, #744904 100%);
}

.vnl-inline-banner.is-active {
	border-color: rgba(125, 211, 252, 0.44);
	background: linear-gradient(180deg, #1f4d90 0%, #173d74 100%);
}

.vnl-status-popup {
	position: fixed;
	z-index: 85;
	opacity: 0;
	pointer-events: none;
	transform: translateY(6px) scale(0.97);
	transition: opacity 0.24s ease, transform 0.24s ease;
	will-change: transform, opacity;
	max-width: calc(100vw - 24px);
}

.vnl-status-popup.show {
	opacity: 1;
	transform: translateY(0) scale(1);
}

.vnl-status-popup-inner {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 14px;
	border-radius: 12px;
	border: 1px solid rgba(25, 45, 75, 0.26);
	background: linear-gradient(180deg, rgba(16, 47, 91, 0.95) 0%, rgba(10, 33, 69, 0.97) 100%);
	box-shadow: 0 8px 24px rgba(2, 6, 23, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
	backdrop-filter: blur(8px);
	position: relative;
	overflow: hidden;
}

.vnl-status-popup-inner > *:not(.vnl-status-race) {
	position: relative;
	z-index: 1;
}

.vnl-status-race {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	font-family: var(--vnl-font);
	font-size: 74px;
	line-height: 1;
	font-weight: 700;
	letter-spacing: 2px;
	opacity: 0.1;
	white-space: nowrap;
	pointer-events: none;
	user-select: none;
	text-transform: uppercase;
}

.vnl-status-race.forward {
	color: #bbf7d0;
	animation: vnlRaceForward 3s ease-in-out 1 forwards;
}

.vnl-status-race.backward {
	color: #fecaca;
	animation: vnlRaceBackward 3s ease-in-out 1 forwards;
}

@keyframes vnlRaceForward {
	0% { transform: translateX(-44%); }
	100% { transform: translateX(2%); }
}

@keyframes vnlRaceBackward {
	0% { transform: translateX(2%); }
	100% { transform: translateX(-44%); }
}

.vnl-status-canvas {
	width: 52px;
	height: 52px;
	display: block;
	flex-shrink: 0;
}

.vnl-status-copy {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.vnl-status-line {
	display: flex;
	align-items: center;
	gap: 7px;
	min-width: 0;
}

.vnl-status-trophy {
	width: 34px;
	height: 56px;
	object-fit: contain;
	display: block;
	flex-shrink: 0;
	filter: drop-shadow(0 4px 10px rgba(15, 23, 42, 0.45));
}

.vnl-status-label {
	font-family: var(--vnl-font);
	font-size: 23px;
	line-height: 1;
	font-weight: 700;
	letter-spacing: 0.6px;
	text-transform: uppercase;
	color: #e2f0ff;
}

.vnl-status-flow {
	font-family: var(--vnl-font);
	font-size: 22px;
	font-weight: 900;
	letter-spacing: 1.2px;
	line-height: 1;
	white-space: nowrap;
	opacity: 0.96;
}

.vnl-status-flow.forward {
	color: #bbf7d0;
	animation: vnlFlowForward 3s ease-in-out 1 forwards;
}

.vnl-status-flow.backward {
	color: #fecaca;
	animation: vnlFlowBackward 3s ease-in-out 1 forwards;
}

@keyframes vnlFlowForward {
	0% { transform: translateX(-3px); opacity: 0.42; }
	50% { opacity: 1; }
	100% { transform: translateX(3px); opacity: 0.42; }
}

@keyframes vnlFlowBackward {
	0% { transform: translateX(3px); opacity: 0.42; }
	50% { opacity: 1; }
	100% { transform: translateX(-3px); opacity: 0.42; }
}

.vnl-status-subline {
	font-size: 12px;
	line-height: 1.3;
	font-weight: 700;
	letter-spacing: 0.2px;
	color: rgba(235, 243, 255, 0.95);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.vnl-status-history {
	display: grid;
	gap: 3px;
}

.vnl-history-medals {
	display: inline-flex;
	gap: 6px;
	flex-wrap: wrap;
}

.vnl-medal-chip {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 2px 8px;
	border-radius: 999px;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.25px;
	border: 1px solid transparent;
	transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.vnl-medal-chip.is-earned {
	transform: translateY(-1px);
	box-shadow: 0 5px 12px rgba(15, 23, 42, 0.22);
}

.vnl-medal-chip.is-zero {
	opacity: 0.55;
	filter: saturate(0.78);
}

.vnl-medal-chip[title],
.vnl-history-winners[title],
.vnl-card-history-note[title] {
	cursor: help;
}

.vnl-medal-chip.gold {
	background: #fde68a;
	border-color: #facc15;
	color: #713f12;
}

.vnl-medal-chip.silver {
	background: #e2e8f0;
	border-color: #cbd5e1;
	color: #334155;
}

.vnl-medal-chip.bronze {
	background: #f3d0b5;
	border-color: #d6ab8a;
	color: #78350f;
}

.vnl-history-winners {
	font-size: 11px;
	font-weight: 600;
	line-height: 1.25;
	color: rgba(230, 240, 255, 0.9);
}

.vnl-status-history.champion-only {
	gap: 0;
}

.vnl-status-history.champion-only .vnl-history-medals {
	justify-content: flex-start;
}

.vnl-card-history {
	margin-bottom: 10px;
	padding: 10px 11px;
	border-radius: 12px;
	border: 1px solid #d4deeb;
	background: linear-gradient(180deg, #f8fbff 0%, #eff6ff 100%);
	display: grid;
	gap: 6px;
}

.vnl-card-history-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px;
}

.vnl-card-history-label {
	font-family: 'Barlow Condensed', sans-serif;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.35px;
	text-transform: uppercase;
	color: #1f3d64;
}

.vnl-card-history-note {
	margin: 0;
	font-size: 11px;
	line-height: 1.2;
	font-weight: 600;
	color: #60758f;
}

.vnl-status-popup.is-active .vnl-status-popup-inner {
	border-color: rgba(96, 165, 250, 0.46);
	background: linear-gradient(180deg, rgba(25, 70, 132, 0.94) 0%, rgba(12, 40, 83, 0.96) 100%);
}

.vnl-status-popup.is-newcomer .vnl-status-popup-inner {
	border-color: rgba(74, 222, 128, 0.5);
	background: linear-gradient(180deg, rgba(18, 107, 84, 0.92) 0%, rgba(7, 78, 58, 0.95) 100%);
}

.vnl-status-popup.is-relegated .vnl-status-popup-inner {
	border-color: rgba(248, 113, 113, 0.56);
	background: linear-gradient(180deg, rgba(125, 22, 29, 0.94) 0%, rgba(94, 18, 26, 0.96) 100%);
}

.vnl-status-popup.is-champion .vnl-status-popup-inner {
	border-color: rgba(250, 204, 21, 0.7);
	background: linear-gradient(180deg, rgba(133, 82, 6, 0.95) 0%, rgba(105, 64, 2, 0.96) 100%);
	box-shadow: 0 8px 16px rgba(115, 79, 6, 0.24);
}

.vnl-status-popup.is-champion .vnl-status-label {
	color: #ffefb3;
}

.vnl-status-popup.is-gold .vnl-status-popup-inner {
	border-color: rgba(250, 204, 21, 0.58);
	background: linear-gradient(180deg, rgba(126, 88, 16, 0.92) 0%, rgba(100, 67, 8, 0.95) 100%);
}

.vnl-status-popup.is-silver .vnl-status-popup-inner {
	border-color: rgba(203, 213, 225, 0.66);
	background: linear-gradient(180deg, rgba(88, 101, 122, 0.92) 0%, rgba(70, 83, 103, 0.94) 100%);
}

.vnl-status-popup.is-bronze .vnl-status-popup-inner {
	border-color: rgba(201, 136, 99, 0.7);
	background: linear-gradient(180deg, rgba(128, 78, 48, 0.92) 0%, rgba(106, 62, 34, 0.94) 100%);
}

.country-card.vnl-champion-card {
	border-color: #f2c94c !important;
	box-shadow: 0 16px 30px rgba(15, 23, 42, 0.22), 0 0 0 1px rgba(245, 196, 53, 0.32) !important;
	background: linear-gradient(180deg, #f9fbff 0%, #edf4fc 100%) !important;
}

.country-card.vnl-active-card {
	border-color: #fb923c !important;
	box-shadow: 0 14px 28px rgba(154, 52, 18, 0.22) !important;
	background: linear-gradient(180deg, #fff7f1 0%, #ffe8da 100%) !important;
}

.country-card.vnl-active-card .card-header {
	background: linear-gradient(180deg, #fff1e8 0%, #ffdcca 100%);
	border-bottom-color: #f7b38a;
}

.country-card.vnl-active-card .card-body {
	background: linear-gradient(180deg, #fff6ef 0%, #ffe8dd 100%);
}

.country-card.vnl-active-card .country-name {
	color: #9a3412;
}

.card-top-vnl-banner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 10px 46px 10px 12px;
	border-bottom: 1px solid rgba(251, 146, 60, 0.45);
	background: linear-gradient(180deg, #9f2d18 0%, #6f1d1b 100%);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
	animation: vnlTopBannerIn 0.28s ease-out both;
}

.card-top-vnl-banner.is-active {
	border-bottom-color: rgba(253, 186, 116, 0.58);
	background: linear-gradient(180deg, #ea580c 0%, #b91c1c 100%);
}

.card-top-vnl-banner.is-newcomer {
	border-bottom-color: rgba(74, 222, 128, 0.55);
	background: linear-gradient(180deg, #157c66 0%, #106452 100%);
}

.card-top-vnl-banner.is-relegated {
	border-bottom-color: rgba(248, 113, 113, 0.62);
	background: linear-gradient(180deg, #c0262d 0%, #7f1d1d 100%);
}

.card-top-vnl-banner.is-champion {
	border-bottom-color: rgba(245, 196, 53, 0.62);
	background: linear-gradient(180deg, #b45309 0%, #9a3412 100%);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 0 0 1px rgba(245, 196, 53, 0.24);
}

.card-top-vnl-trophy {
	width: 30px;
	height: 54px;
	object-fit: contain;
	flex-shrink: 0;
	filter: drop-shadow(0 4px 10px rgba(15, 23, 42, 0.42));
}

.card-top-vnl-banner.is-champion .card-top-vnl-trophy {
	animation: none;
}

.card-top-vnl-copy {
	display: grid;
	gap: 2px;
	min-width: 0;
	flex: 1;
}

.card-top-vnl-label {
	font-family: var(--vnl-font);
	font-size: 26px;
	line-height: 1;
	font-weight: 700;
	letter-spacing: 0.65px;
	text-transform: uppercase;
	color: #f3f9ff;
}

.card-top-vnl-subline {
	font-size: 13px;
	line-height: 1.2;
	font-weight: 700;
	color: rgba(236, 246, 255, 0.92);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.card-top-vnl-banner.is-champion .card-top-vnl-label {
	color: #fff4ca;
}

.card-top-vnl-banner.is-champion .card-top-vnl-subline {
	color: #fff2d2;
}

.card-top-vnl-led {
	position: relative;
	flex-shrink: 0;
	width: 122px;
	height: 30px;
	margin-left: 6px;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.2);
	background-color: rgba(2, 6, 23, 0.18);
	overflow: hidden;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
	opacity: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	padding: 0 10px;
	transition: opacity 0.46s ease, width 0.46s ease, margin-left 0.46s ease, border-color 0.36s ease, background-color 0.36s ease, box-shadow 0.36s ease;
}

.card-top-vnl-led > span {
	display: block;
	width: 25px;
	height: 16px;
	background: linear-gradient(90deg, #bbf7d0 0%, #34d399 100%);
	clip-path: polygon(0 10%, 62% 10%, 62% 0, 82% 0, 82% 10%, 100% 10%, 74% 50%, 100% 90%, 82% 90%, 82% 100%, 62% 100%, 62% 90%, 0 90%, 28% 50%);
	filter: drop-shadow(0 0 5px rgba(167, 243, 208, 0.58));
}

.card-top-vnl-led.right > span {
	background: linear-gradient(90deg, #bbf7d0 0%, #34d399 100%);
	filter: drop-shadow(0 0 5px rgba(167, 243, 208, 0.65));
}

.card-top-vnl-led.left {
	flex-direction: row-reverse;
}

.card-top-vnl-led.left > span {
	background: linear-gradient(90deg, #fecaca 0%, #ef4444 100%);
	filter: drop-shadow(0 0 5px rgba(254, 202, 202, 0.62));
}

.card-top-vnl-led.gold > span {
	background: linear-gradient(90deg, #fff0a6 0%, #facc15 45%, #f59e0b 100%);
	filter: drop-shadow(0 0 6px rgba(250, 204, 21, 0.75));
}

.card-top-vnl-led.is-static,
.country-card.vnl-preview-static .card-top-vnl-led {
	width: 0;
	margin-left: 0;
	opacity: 0;
	border-color: transparent;
	background-color: transparent;
	box-shadow: none;
	pointer-events: none;
}

.card-top-vnl-led.is-static > span,
.country-card.vnl-preview-static .card-top-vnl-led > span {
	opacity: 0 !important;
}

.card-top-vnl-medals {
	margin-top: 2px;
}

.card-top-vnl-medals .vnl-medal-chip {
	font-size: 12px;
	padding: 3px 11px;
	box-shadow: 0 4px 10px rgba(15, 23, 42, 0.25);
}

.country-card.vnl-champion-card .card-header {
	background: linear-gradient(180deg, #fffaf0 0%, #fef3c7 100%);
	border-bottom-color: #f5d486;
}

.country-card.vnl-champion-card .card-body {
	background: linear-gradient(180deg, #fffdf8 0%, #fff7e1 100%);
}

.country-card.vnl-champion-card .country-name {
	color: #7a4a04;
}

.country-card.vnl-champion-card .close-btn {
	background: rgba(248, 250, 252, 0.92);
	color: #334155;
}

.country-card.vnl-champion-card .close-btn:hover {
	background: rgba(255, 255, 255, 0.98);
	color: #0f172a;
}

.country-card.vnl-champion-card.world-rank-gold-card {
	border-color: #f7c83e !important;
	box-shadow: 0 18px 34px rgba(15, 23, 42, 0.22), 0 0 0 2px rgba(255, 221, 104, 0.56), 0 0 22px rgba(245, 196, 53, 0.32) !important;
	background: linear-gradient(180deg, #f9fbff 0%, #edf4fc 100%) !important;
	animation: none;
}

.country-card.vnl-champion-card.world-rank-gold-card .card-header {
	background: linear-gradient(180deg, #fffaf0 0%, #fef3c7 100%);
	border-bottom-color: #f5d486;
}

.country-card.vnl-champion-card.world-rank-gold-card .card-body {
	background: linear-gradient(180deg, #fffdf8 0%, #fff7e1 100%);
}

.country-card.vnl-newcomer-card {
	border-color: #55d9ac !important;
	box-shadow: 0 14px 28px rgba(9, 111, 84, 0.18) !important;
	background: linear-gradient(180deg, #ecfff6 0%, #dff7ee 100%) !important;
}

.country-card.vnl-newcomer-card .card-header {
	background: linear-gradient(180deg, #edfff7 0%, #d8f5e9 100%);
	border-bottom-color: #8ce3c2;
}

.country-card.vnl-newcomer-card .country-name {
	color: #0b5f47;
}

.country-card.vnl-relegated-card,
.country-card.vnl-past-relegated-card {
	border-color: #ef6f7f !important;
	box-shadow: 0 14px 28px rgba(153, 27, 27, 0.2) !important;
	background: linear-gradient(180deg, #fff1f2 0%, #ffe0e4 100%) !important;
}

.country-card.vnl-relegated-card .card-header,
.country-card.vnl-past-relegated-card .card-header {
	background: linear-gradient(180deg, #fff1f3 0%, #ffdbe0 100%);
	border-bottom-color: #f6a5b0;
}

.country-card.vnl-relegated-card .country-name,
.country-card.vnl-past-relegated-card .country-name {
	color: #991b1b;
}

.country-card.vnl-body-led-newcomer .card-body,
.country-card.vnl-body-led-relegated .card-body,
.country-card.vnl-body-led-champion .card-body {
	position: relative;
	overflow: hidden;
	isolation: isolate;
}

.country-card.vnl-body-led-newcomer .card-body > *,
.country-card.vnl-body-led-relegated .card-body > *,
.country-card.vnl-body-led-champion .card-body > * {
	position: relative;
	z-index: 1;
}

.country-card.vnl-body-led-newcomer .card-body::before,
.country-card.vnl-body-led-relegated .card-body::before,
.country-card.vnl-body-led-champion .card-body::before {
	content: '';
	position: absolute;
	top: 12px;
	bottom: 12px;
	width: 174px;
	pointer-events: none;
	z-index: 0;
	opacity: 0;
	clip-path: polygon(0 0, 58% 0, 100% 50%, 58% 100%, 0 100%, 34% 50%);
	background-size: 12px 12px, 100% 100%;
	background-repeat: repeat, no-repeat;
}

.country-card.vnl-body-led-newcomer .card-body::before {
	left: -196px;
	background-image:
		radial-gradient(circle, rgba(167, 243, 208, 0.95) 2px, transparent 2.3px),
		linear-gradient(90deg, rgba(16, 100, 82, 0.12) 0%, rgba(16, 100, 82, 0.02) 100%);
	filter: drop-shadow(0 0 9px rgba(16, 185, 129, 0.45));
	animation: vnlSingleBodyChevronRight 3s ease-in-out 1 forwards;
}

.country-card.vnl-body-led-relegated .card-body::before {
	left: calc(100% + 20px);
	transform: scaleX(-1);
	background-image:
		radial-gradient(circle, rgba(254, 202, 202, 0.95) 2px, transparent 2.3px),
		linear-gradient(270deg, rgba(127, 29, 29, 0.2) 0%, rgba(127, 29, 29, 0.03) 100%);
	filter: drop-shadow(0 0 9px rgba(248, 113, 113, 0.5));
	animation: vnlSingleBodyChevronLeft 3s ease-in-out 1 forwards;
}

.country-card.vnl-body-led-champion .card-body::before {
	left: 12px;
	right: 12px;
	width: auto;
	clip-path: none;
	border-radius: 16px;
	transform: none;
	background-image:
		url('../src/assets/img/vnl.png'),
		radial-gradient(circle at 50% 50%, rgba(250, 204, 21, 0.28) 0%, rgba(245, 158, 11, 0.12) 48%, rgba(245, 158, 11, 0.04) 72%, transparent 100%),
		linear-gradient(90deg, rgba(133, 82, 6, 0.1) 0%, rgba(133, 82, 6, 0.02) 100%);
	background-repeat: no-repeat, no-repeat, no-repeat;
	background-position: center 54%, center center, center center;
	background-size: 46% auto, 100% 100%, 100% 100%;
	filter: drop-shadow(0 0 10px rgba(250, 204, 21, 0.42));
	opacity: 0.36;
	animation: none;
}

.country-card.vnl-body-led-newcomer .team-status-panel.inactive,
.country-card.vnl-body-led-relegated .team-status-panel.inactive,
.country-card.vnl-body-led-champion .team-status-panel.inactive {
	animation: none;
}

.team-status-panel {
	display: grid;
	grid-template-columns: 38px 1fr;
	gap: 10px;
	padding: 12px;
	border-radius: 14px;
	border: 1px solid #dbe3ee;
	background: #f8fbff;
}

.team-status-panel .team-status-icon {
	width: 38px;
	height: 38px;
	border-radius: 10px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 16px;
}

.team-status-panel .team-status-copy h4 {
	margin: 0;
	font-size: 14px;
	line-height: 1.25;
	font-weight: 800;
}

.team-status-panel .team-status-copy p {
	margin: 4px 0 0;
	font-size: 12px;
	line-height: 1.4;
	color: #475569;
}

.team-status-panel.banned {
	background: #fff1f2;
	border-color: #fca5a5;
	position: relative;
	overflow: hidden;
	animation: bannedPulse 2.2s ease-in-out infinite;
}

.team-status-panel.banned::before {
	content: '';
	position: absolute;
	inset: 0;
	background: repeating-linear-gradient(-45deg, rgba(153, 27, 27, 0.08) 0 8px, rgba(255, 241, 242, 0) 8px 16px);
	animation: bannedStripeMove 2.8s linear infinite;
	pointer-events: none;
}

.team-status-panel.banned::after {
	content: 'BANNED';
	position: absolute;
	right: -32px;
	top: 7px;
	transform: rotate(26deg);
	font-size: 9px;
	font-weight: 900;
	letter-spacing: 0.7px;
	background: #991b1b;
	color: #fff1f2;
	padding: 3px 34px;
	box-shadow: 0 4px 8px rgba(127, 29, 29, 0.25);
	pointer-events: none;
}

.team-status-panel.banned .team-status-icon {
	background: #991b1b;
	color: #fff1f2;
	animation: bannedShake 1.6s ease-in-out infinite;
}

.team-status-panel.inactive {
	background: #f8fafc;
	border-color: #cbd5e1;
}

.team-status-panel.inactive .team-status-icon {
	background: #334155;
	color: #e2e8f0;
}

.team-status-panel.inactive .team-status-copy h4 {
	color: #1e293b;
}

.inactive-404 {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 2px 8px;
	margin-right: 6px;
	border-radius: 999px;
	background: #1e293b;
	color: #f8fafc;
	font-size: 10px;
	letter-spacing: 0.8px;
	font-weight: 900;
	vertical-align: middle;
}

@media (max-width: 768px) {
	.card-top-vnl-label {
		font-size: 22px;
	}

	.card-top-vnl-subline {
		font-size: 12px;
	}
}

@keyframes bannedStripeMove {
	0% { transform: translateX(0); }
	100% { transform: translateX(24px); }
}

@keyframes bannedPulse {
	0%, 100% { box-shadow: 0 0 0 rgba(153, 27, 27, 0); }
	50% { box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.16); }
}

@keyframes bannedShake {
	0%, 100% { transform: rotate(0deg); }
	25% { transform: rotate(-8deg); }
	75% { transform: rotate(8deg); }
}

@keyframes vnlBannerPulse {
	0%, 100% { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16); }
	50% { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 0 0 1px rgba(255, 255, 255, 0.06); }
}

@keyframes vnlTopBannerIn {
	0% {
		opacity: 0;
		transform: translateY(-8px) scale(0.985);
	}
	100% {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

@keyframes vnlSingleChevronTrackRight {
	0% { left: -50px; opacity: 0; }
	18% { opacity: 0.66; }
	70% { opacity: 0.66; }
	100% { left: 122px; opacity: 0; }
}

@keyframes vnlSingleChevronTrackLeft {
	0% { left: 122px; opacity: 0; transform: scaleX(-1); }
	18% { opacity: 0.66; transform: scaleX(-1); }
	70% { opacity: 0.66; transform: scaleX(-1); }
	100% { left: -50px; opacity: 0; transform: scaleX(-1); }
}

@keyframes vnlSingleBodyChevronRight {
	0% { left: -196px; opacity: 0; }
	12% { opacity: 0.34; }
	68% { opacity: 0.34; }
	100% { left: calc(100% + 24px); opacity: 0; }
}

@keyframes vnlSingleBodyChevronLeft {
	0% { left: calc(100% + 20px); opacity: 0; transform: scaleX(-1); }
	12% { opacity: 0.34; transform: scaleX(-1); }
	68% { opacity: 0.34; transform: scaleX(-1); }
	100% { left: -196px; opacity: 0; transform: scaleX(-1); }
}

@keyframes vnlGoldChevronGlow {
	0%, 100% { filter: drop-shadow(0 0 7px rgba(250, 204, 21, 0.66)); }
	50% { filter: drop-shadow(0 0 14px rgba(250, 204, 21, 0.92)); }
}

@keyframes vnlChampionOverlayIn {
	0% {
		opacity: 0;
		filter: drop-shadow(0 0 0 rgba(250, 204, 21, 0));
	}
	100% {
		opacity: 0.58;
		filter: drop-shadow(0 0 10px rgba(250, 204, 21, 0.42));
	}
}

@keyframes vnlChampionOverlayPulse {
	0%, 100% {
		opacity: 0.52;
		filter: drop-shadow(0 0 8px rgba(250, 204, 21, 0.34));
	}
	50% {
		opacity: 0.68;
		filter: drop-shadow(0 0 16px rgba(250, 204, 21, 0.62));
	}
}

@keyframes vnlTrophyGlow {
	0%, 100% { transform: translateY(0); filter: drop-shadow(0 5px 12px rgba(15, 23, 42, 0.42)) drop-shadow(0 0 6px rgba(250, 204, 21, 0.18)); }
	50% { transform: translateY(-1px); filter: drop-shadow(0 6px 14px rgba(15, 23, 42, 0.46)) drop-shadow(0 0 14px rgba(250, 204, 21, 0.52)); }
}

@keyframes vnlInactiveSignal {
	0%, 100% { box-shadow: 0 0 0 0 rgba(100, 116, 139, 0.14); }
	50% { box-shadow: 0 0 0 3px rgba(100, 116, 139, 0.22); }
}

@keyframes vnlGoldAura {
	0%, 100% {
		box-shadow: 0 20px 40px rgba(133, 95, 15, 0.4), 0 0 0 2px rgba(255, 221, 104, 0.58), 0 0 18px rgba(245, 196, 53, 0.3);
	}
	50% {
		box-shadow: 0 24px 44px rgba(133, 95, 15, 0.48), 0 0 0 2px rgba(255, 221, 104, 0.7), 0 0 28px rgba(245, 196, 53, 0.5);
	}
}

.country-card.world-rank-gold-card {
	border-color: #efc35f !important;
	box-shadow: 0 16px 30px rgba(122, 90, 20, 0.28), 0 0 0 2px rgba(250, 216, 123, 0.58) !important;
	background: linear-gradient(180deg, #fffdf5 0%, #fff4d8 100%) !important;
}

.country-card.world-rank-gold-card .card-header {
	background: linear-gradient(180deg, #fff8e8 0%, #ffefc7 100%) !important;
	border-bottom-color: rgba(226, 174, 67, 0.45) !important;
}

.country-card.world-rank-gold-card .card-body {
	background: linear-gradient(180deg, #fffdf5 0%, #fff8e7 100%) !important;
}

.country-card.world-rank-gold-card .country-name {
	color: #80500a;
}

.country-card.world-rank-silver-card {
	border-color: #cdd6e1 !important;
	box-shadow: 0 10px 22px rgba(100, 116, 139, 0.16) !important;
	background: linear-gradient(180deg, #f7fafc 0%, #edf2f7 100%) !important;
}

.country-card.world-rank-bronze-card {
	border-color: #d5b39a !important;
	box-shadow: 0 10px 22px rgba(124, 81, 53, 0.16) !important;
	background: linear-gradient(180deg, #fdf2ec 0%, #f5e4d7 100%) !important;
}

.country-card.world-rank-gold-card .card-header,
.country-card.world-rank-silver-card .card-header,
.country-card.world-rank-bronze-card .card-header {
	border-bottom-color: rgba(148, 163, 184, 0.24);
}

.leaderboard-row.rank-gold {
	background: rgba(250, 204, 21, 0.14);
	border-color: rgba(250, 204, 21, 0.34);
}

.leaderboard-row.rank-silver {
	background: rgba(203, 213, 225, 0.2);
	border-color: rgba(148, 163, 184, 0.34);
}

.leaderboard-row.rank-bronze {
	background: rgba(214, 166, 133, 0.2);
	border-color: rgba(180, 116, 84, 0.34);
}

.team-vnl-badge.champion {
	background: #facc15;
	color: #713f12;
}

body.country-card-open #controlsSidebar {
	opacity: 0;
	pointer-events: none;
}

@media (min-width: 769px) {
	#sidebarToggle {
		left: 16px !important;
		top: 16px !important;
	}

	#controlsSidebar {
		width: auto;
		padding: 0;
	}

	#controlsSidebar .gender-toggle {
		gap: 8px;
		width: 100%;
	}

	.gender-btn-icon {
		width: 100%;
		height: 48px;
	}

	.control-chip-compact {
		width: 100%;
		height: 48px;
	}

	.control-chip-compact-icon {
		width: 100%;
		height: 48px;
	}

	.info-fab-sidebar {
		width: 100%;
		height: 48px;
	}

	.sidebar-version {
		width: 100%;
		height: 48px;
	}

	.sidebar-item {
		width: 58px;
	}
}

.upcoming-subnote {
	font-size: 11px;
	color: #64748b;
	margin-bottom: 6px;
}

.upcoming-row {
	display: flex;
	justify-content: space-between;
	gap: 10px;
	font-size: 13px;
	color: #1e293b;
	padding: 4px 0;
}

@media (max-width: 768px) {
	#sidebarToggle {
		left: 12px !important;
		top: 12px !important;
		width: 40px;
		height: 40px;
		font-size: 16px;
	}

	#controlsSidebar {
		left: 8px;
		top: auto;
		bottom: 10px;
		width: calc(100vw - 16px);
		height: auto;
		padding: 0;
		gap: 5px;
		flex-direction: row;
		background: transparent;
		border: 0;
		box-shadow: none;
		transform: none;
	}

	#controlsSidebar > button.sidebar-item,
	#controlsSidebar > a.sidebar-item {
		width: auto;
		height: 52px;
		flex: 1 1 0;
		font-size: 13px;
		padding: 4px !important;
		justify-content: center;
		flex-direction: column;
		gap: 3px !important;
	}

	.gender-toggle {
		gap: 6px;
		width: auto;
		display: contents;
	}

	.gender-toggle .gender-btn-icon {
		width: auto;
		height: 52px;
		flex: 1 1 0;
		font-size: 14px;
		padding: 4px !important;
		justify-content: center;
		flex-direction: column;
		gap: 3px !important;
	}

	.info-fab-sidebar {
		width: 100%;
		height: 44px;
		font-size: 16px;
	}

	.sidebar-version {
		width: 100%;
		height: 44px;
		font-size: 10px;
	}

	.menu-label {
		font-size: 8px;
		line-height: 1;
	}

	.tournament-active-chip {
		right: 12px;
		left: auto;
		top: 12px;
		max-width: calc(100vw - 76px);
		padding: 6px 8px;
		border-radius: 12px;
	}

	.tournament-active-title {
		font-size: 20px;
		letter-spacing: 0.9px;
	}

	.tournament-active-clear {
		width: 20px;
		height: 20px;
		font-size: 16px;
	}

	.leaderboard-shell {
		width: calc(100vw - 10px) !important;
		border-radius: 18px;
	}

	.leaderboard-table-head,
	.leaderboard-row {
		grid-template-columns: 56px 1fr 74px;
	}

	.country-card {
		width: calc(100% - 16px) !important;
		max-width: 370px !important;
		max-height: min(56vh, 430px);
		border-radius: 20px !important;
	}

	body.mobile-country-open .country-card {
		bottom: 10px;
	}
}

@media (max-width: 420px) {
	#controlsWrap {
		top: 68px !important;
		width: calc(100vw - 8px) !important;
		gap: 6px;
	}

	#controlsWrap > button.control-chip {
		flex: 1 1 100%;
		min-width: 100%;
		height: 46px;
	}

	.control-chip-title {
		font-size: 12px;
	}

	#btnTournament.is-vnl .control-chip-title {
		font-size: 17px;
	}

	#btnTournament .control-chip-subtitle {
		display: none;
	}
}

/* Final leaderboard + tournament theme overrides */
body.men {
	--rank-theme-main: #0c2530;
	--rank-theme-sub: #102b36;
	--rank-theme-soft: rgba(255, 255, 255, 0.1);
	--rank-theme-strong: #67e8f9;
}

body.women {
	--rank-theme-main: #4a1f2d;
	--rank-theme-sub: #3a1723;
	--rank-theme-soft: rgba(255, 255, 255, 0.1);
	--rank-theme-strong: #f9a8d4;
}

.leaderboard-head,
.leaderboard-search-wrap {
	background: var(--rank-theme-main);
}

.leaderboard-search-wrap {
	border-top: 1px solid var(--rank-theme-soft);
	border-bottom: 1px solid var(--rank-theme-soft);
}

#leaderboardSearch {
	background: var(--rank-theme-soft) !important;
	border: 1px solid var(--rank-theme-soft) !important;
	color: var(--lb-text-main) !important;
	outline: none;
}

#leaderboardSearch:hover {
	border-color: var(--rank-theme-soft) !important;
	box-shadow: none !important;
}

#leaderboardSearch:focus {
	border-color: var(--rank-theme-strong) !important;
	box-shadow: none !important;
}

.leaderboard-content {
	background: var(--rank-theme-sub) !important;
}

.leaderboard-tour-banner {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	padding: 9px 12px;
	margin: 0 4px 8px;
	border-radius: 12px;
	font-size: 12px;
	font-weight: 700;
	background: var(--rank-theme-soft);
	color: #f8fafc;
}

.leaderboard-tour-sub {
	font-size: 11px;
	font-weight: 600;
	opacity: 0.9;
}

.leaderboard-row {
	border: 1px solid transparent;
}

.leaderboard-row:hover {
	background: rgba(255, 255, 255, 0.06);
	border-color: transparent;
}

.vnl-team-row {
	background: rgba(250, 204, 21, 0.1);
	border-color: rgba(250, 204, 21, 0.35);
}

.vnl-team-row:hover {
	background: rgba(250, 204, 21, 0.15);
	border-color: rgba(250, 204, 21, 0.38);
}

.vnl-newcomer-row {
	background: rgba(52, 211, 153, 0.12);
	border-color: rgba(52, 211, 153, 0.35);
}

.vnl-newcomer-row:hover {
	background: rgba(52, 211, 153, 0.16);
	border-color: rgba(52, 211, 153, 0.4);
}

.vnl-relegated-row {
	background: rgba(248, 113, 113, 0.1);
	border-color: rgba(248, 113, 113, 0.35);
}

.vnl-relegated-row:hover {
	background: rgba(248, 113, 113, 0.14);
	border-color: rgba(248, 113, 113, 0.4);
}

.team-vnl-badge {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 4px 12px;
	border-radius: 8px;
	font-size: 11px;
	font-weight: 700;
	font-family: var(--vnl-font);
	text-transform: uppercase;
	letter-spacing: 1px;
	background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
	color: #78350f;
	margin-left: 6px;
	box-shadow: 0 2px 8px rgba(251, 191, 36, 0.3);
	border: 1px solid rgba(251, 191, 36, 0.5);
}

.team-vnl-badge.newcomer {
	background: linear-gradient(135deg, #6ee7b7 0%, #34d399 100%);
	color: #064e3b;
	box-shadow: 0 2px 8px rgba(52, 211, 153, 0.3);
	border-color: rgba(52, 211, 153, 0.5);
}

.team-vnl-badge.relegated {
	background: linear-gradient(135deg, #fca5a5 0%, #f87171 100%);
	color: #5f0f0f;
	box-shadow: 0 2px 8px rgba(248, 113, 113, 0.3);
	border-color: rgba(248, 113, 113, 0.5);
}

.team-vnl-badge i {
	font-size: 10px;
}

.tournament-shell {
	background: #ffffff;
	border-radius: 16px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
	border: 1px solid #e5e7eb;
	overflow: hidden;
}

.tournament-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 16px;
	background: #f9fafb;
	border-bottom: 1px solid #e5e7eb;
	color: #1f2937;
}

.tournament-content {
	padding: 14px 16px;
	color: #1f2937;
	background: #ffffff;
}

.tournament-picker-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}

.tournament-picker-grid .tournament-select-btn:nth-child(5) {
	grid-column: 1 / -1;
}

.tournament-select-btn {
	border: 1px solid #d7e0ea;
	background: #f8fbff;
	color: #22496d;
	border-radius: 12px;
	padding: 14px 10px;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.2px;
	min-height: 86px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 5px;
	cursor: pointer;
	transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
	position: relative;
	overflow: hidden;
}

.tournament-select-btn i {
	font-size: 18px;
	color: #1c69a5;
}

.tournament-select-btn:hover {
	background: #f2f7fc;
	border-color: #bed1e4;
}

.tournament-select-btn.selected {
	background: #e8f3fb;
	color: #17466d;
	border-color: #7ba8cb;
	box-shadow: 0 6px 16px rgba(28, 105, 165, 0.14);
}

.tournament-select-title {
	font-size: 15px;
	font-weight: 800;
	line-height: 1.05;
}

.tournament-select-title-vnl {
	font-family: var(--vnl-font);
	font-size: 36px;
	line-height: 0.85;
	letter-spacing: 1.35px;
	text-transform: uppercase;
}

.tournament-select-subtitle {
	font-size: 11px;
	font-weight: 600;
	line-height: 1.1;
	color: #64748b;
	text-align: center;
}

.tournament-select-btn[data-tournament-select='vnl'] {
	background: #fff2f7;
	border-color: #f4b5cb;
}

.tournament-select-btn[data-tournament-select='vnl'].selected {
	background: linear-gradient(160deg, #e61556 0%, #b30f43 100%);
	border-color: #9c0d3a;
	color: #ffffff;
	box-shadow: 0 10px 22px rgba(182, 19, 71, 0.35);
}

.tournament-select-btn[data-tournament-select='vnl'].selected i {
	color: #f7d025;
}

.tournament-select-btn[data-tournament-select='vnl'].selected .tournament-select-title-vnl {
	color: #f7d025;
}

.tournament-select-btn[data-tournament-select='vnl'].selected .tournament-select-subtitle {
	color: rgba(255, 255, 255, 0.9);
}

.tournament-select-btn[disabled],
.tournament-select-btn.is-under-construction {
	cursor: not-allowed;
	opacity: 0.82;
	filter: saturate(0.7);
	pointer-events: none;
	padding-top: 14px;
	border-style: dashed;
}

.tournament-select-btn.is-under-construction::before,
.tournament-select-btn[disabled]::before {
	content: '';
	position: absolute;
	inset: 5px;
	border-radius: 9px;
	border: 1px dashed #d4a574;
	pointer-events: none;
}

.tournament-construction-tape {
	position: absolute;
	top: 50%;
	left: -16%;
	right: -16%;
	transform: translateY(-50%) rotate(-8deg);
	padding: 4px 8px;
	font-size: 10px;
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: 0.8px;
	text-align: center;
	white-space: normal;
	color: #1f2937;
	background: #facc15;
	border-top: 1px dashed rgba(17, 24, 39, 0.45);
	border-bottom: 1px dashed rgba(17, 24, 39, 0.45);
	border-radius: 2px;
	box-shadow: 0 4px 10px rgba(15, 23, 42, 0.24);
	pointer-events: none;
}

.tournament-picker-note {
	margin: 12px 2px 2px;
	font-size: 12px;
	color: #64748b;
}

.tournament-picker-meta {
	margin: 8px 2px 0;
	font-size: 12px;
	color: #1c69a5;
	font-weight: 700;
}

.tournament-team-row h4 {
	margin: 10px 0 0;
	font-size: 21px;
	font-weight: 800;
	letter-spacing: 0.2px;
}

.tournament-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 10px;
	border-radius: 999px;
	background: #facc15;
	color: #111827;
	font-size: 11px;
	font-weight: 800;
}

.tournament-list {
	margin-top: 12px;
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.09);
	border: 1px solid rgba(206, 224, 245, 0.2);
	padding: 10px 12px;
}

.tournament-item {
	display: flex;
	justify-content: space-between;
	gap: 10px;
	padding: 8px 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
	font-size: 14px;
}

.tournament-item:last-child {
	border-bottom: 0;
}

.tournament-transition {
	margin-top: 10px;
	border-radius: 12px;
	padding: 8px 10px;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.14);
}

.tournament-transition-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
	font-size: 13px;
	padding: 4px 0;
	color: #e2e8f0;
}

.tournament-transition-row strong {
	color: #facc15;
	font-weight: 800;
}

.tournament-actions {
	padding: 0 16px 16px;
	background: #f9fafb;
	border-top: 1px solid #e5e7eb;
}

.tournament-btn {
	width: 100%;
	border: 0;
	border-radius: 10px;
	padding: 11px 12px;
	font-weight: 700;
	font-size: 14px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	background: #f3f4f6;
	color: #374151;
	cursor: pointer;
	transition: background 0.2s ease;
	border: 1px solid #d1d5db;
}

.tournament-btn:hover {
	background: #e5e7eb;
}

@media (max-width: 768px) {
	.country-card .close-btn {
		width: 28px;
		height: 28px;
		top: 7px;
		right: 7px;
		border-radius: 9px !important;
	}

	.country-card .close-btn i {
		font-size: 12px;
	}

	.card-top-vnl-banner {
		padding-right: 42px;
	}

	#tournamentModal {
		align-items: center !important;
		padding: 10px !important;
	}

	.tournament-shell {
		width: min(96vw, 430px) !important;
		border-radius: 18px;
	}

	.tournament-content {
		padding: 12px 14px;
	}

	.tournament-select-btn {
		min-height: 72px;
		padding: 12px 8px;
		font-size: 13px;
	}

	.tournament-select-title-vnl {
		font-size: 30px;
	}

	.tournament-construction-tape {
		left: -22%;
		right: -22%;
		transform: translateY(-50%) rotate(-7deg);
		font-size: 8px;
		letter-spacing: 0.65px;
	}

	body.mobile-tournament-open #zoomControlsWrap,
	body.mobile-tournament-open #titleWrap,
	body.mobile-tournament-open #sidebarToggle,
	body.mobile-tournament-open #controlsSidebar {
		opacity: 0;
		pointer-events: none;
	}
}

/* Tournament button state */
.control-chip.active {
	background: linear-gradient(160deg, #e61556 0%, #b30f43 100%);
	color: #ffffff;
	border-color: #9c0d3a;
	box-shadow: 0 8px 18px rgba(182, 19, 71, 0.32);
}

.control-chip.active .control-chip-icon {
	background: rgba(247, 208, 37, 0.16);
	color: #f7d025;
	box-shadow: inset 0 0 0 1px rgba(247, 208, 37, 0.3);
}

/* VNL mode overrides */
body.tournament-vnl {
	background: #8a2343;
	--rank-theme-main: #8a2343;
	--rank-theme-sub: #6e1a35;
	--rank-theme-soft: rgba(255, 255, 255, 0.16);
	--rank-theme-strong: #f7d025;
}

body.tournament-vnl #globe {
	position: relative;
	background: radial-gradient(circle at 36% 24%, #bf3764 0%, #8a2343 45%, #6e1a35 100%);
}

body.tournament-vnl.men {
	background: #1c69a5;
	--rank-theme-main: #1c69a5;
	--rank-theme-sub: #165485;
	--rank-theme-soft: rgba(255, 255, 255, 0.16);
	--rank-theme-strong: #f7d025;
}

body.tournament-vnl.men #globe {
	background: radial-gradient(circle at 36% 24%, #2d7fba 0%, #1c69a5 45%, #165485 100%);
}

body.tournament-vnl .sea {
	fill: #1e3a8a;
}

body.tournament-vnl .land.selected {
	fill: #f7d025;
}

body.tournament-vnl .leaderboard-content,
body.tournament-vnl .leaderboard-table-head,
body.tournament-vnl .leaderboard-row,
body.tournament-vnl .team-name,
body.tournament-vnl .team-points,
body.tournament-vnl #leaderboardTitle {
	font-family: 'Barlow Condensed', sans-serif;
	letter-spacing: 0.2px;
}

/* Final exposed navigation layout. */
#titleWrap,
#titleWrap.collapsed,
#titleWrap.collapsed::after,
.sidebar-toggle-btn {
	display: none !important;
}

#controlsSidebar {
	position: fixed !important;
	left: auto !important;
	top: 18px !important;
	right: 22px !important;
	bottom: auto !important;
	width: auto !important;
	height: auto !important;
	max-width: calc(100vw - 44px);
	display: flex !important;
	flex-direction: row !important;
	align-items: center !important;
	justify-content: flex-end !important;
	flex-wrap: wrap !important;
	gap: 7px !important;
	padding: 0 !important;
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
	transform: none !important;
	overflow: visible !important;
	z-index: 120;
}

#controlsSidebar .gender-toggle,
#controlsSidebar .controls-heading,
#controlsSidebar .sidebar-close-btn,
#controlsSidebar .flex-1,
#controlsSidebar .sidebar-version {
	display: contents !important;
}

#controlsSidebar .controls-heading,
#controlsSidebar .sidebar-close-btn,
#controlsSidebar .flex-1,
#controlsSidebar .sidebar-version {
	display: none !important;
}

#controlsSidebar .gender-btn-icon,
#controlsSidebar .sidebar-item {
	width: auto !important;
	min-width: 0 !important;
	max-width: none !important;
	flex: 0 0 auto !important;
	height: 40px !important;
	padding: 0 12px !important;
	gap: 7px !important;
	flex-direction: row !important;
	justify-content: center !important;
	border: 1px solid rgba(255, 255, 255, 0.72) !important;
	border-radius: 10px !important;
	background: rgba(255, 255, 255, 0.9) !important;
	box-shadow: 0 5px 14px rgba(15, 23, 42, 0.13) !important;
	color: #486b8e !important;
	font-size: 13px !important;
	font-weight: 700 !important;
	white-space: nowrap;
	transform: none !important;
}

#controlsSidebar .gender-btn-icon:hover,
#controlsSidebar .sidebar-item:hover,
#controlsSidebar .gender-btn-icon.active {
	background: #eaf3fa !important;
	color: #1c69a5 !important;
	border-color: #b9d4e8 !important;
}

#controlsSidebar #btnWomen.gender-btn-icon.active {
	background: #fff0f5 !important;
	color: #e61556 !important;
	border-color: #f1b5c9 !important;
}

#controlsSidebar .sidebar-item i,
#controlsSidebar .gender-btn-icon i {
	width: auto !important;
	font-size: 15px !important;
}

#controlsSidebar .menu-label {
	font-size: 12px !important;
	font-weight: 700 !important;
	line-height: 1 !important;
	color: inherit !important;
}

.zoom-dock {
	right: 22px !important;
	bottom: 20px !important;
	background: rgba(255, 255, 255, 0.9) !important;
	border-radius: 10px !important;
	box-shadow: 0 6px 16px rgba(15, 23, 42, 0.13) !important;
}

@media (max-width: 768px) {
	#controlsSidebar {
		top: auto !important;
		left: 10px !important;
		right: auto !important;
		bottom: max(10px, env(safe-area-inset-bottom)) !important;
		transform: none !important;
		max-width: calc(100vw - 20px);
		gap: 5px !important;
	}

	.globe-status {
		left: 50%;
		top: 12px;
		z-index: 121;
		text-align: center;
		transform: translateX(-50%);
	}

	.globe-status strong {
		font-size: 16px;
		letter-spacing: 0.9px;
	}

	.globe-status span {
		font-size: 12px;
	}

	.globe-guide {
		top: auto !important;
		position: fixed !important;
		left: 50% !important;
		right: auto !important;
		bottom: auto !important;
		top: 112px !important;
		transform: translateX(-50%);
		max-width: calc(100vw - 20px);
		width: max-content;
		height: auto;
		min-height: 0;
		padding: 8px 12px;
		font-size: 10px;
	}

	#globe {
		height: 100dvh;
		padding: 150px 0 92px;
		box-sizing: border-box;
	}

	#globe > svg {
		width: min(88vw, 520px);
		height: min(64dvh, 520px);
	}

	#controlsSidebar .gender-btn-icon,
	#controlsSidebar .sidebar-item {
		height: 36px !important;
		padding: 0 8px !important;
		gap: 5px !important;
		border-radius: 8px !important;
	}

	#controlsSidebar .menu-label {
		display: none !important;
	}

	.zoom-dock {
		right: 10px !important;
		bottom: max(10px, env(safe-area-inset-bottom)) !important;
		gap: 4px !important;
		padding: 0 !important;
		border-radius: 8px !important;
	}

	.zoom-label {
		display: none !important;
	}

	.zoom-actions {
		gap: 4px !important;
	}

	.zoom-btn {
		width: 36px !important;
		height: 36px !important;
		border-radius: 8px !important;
		font-size: 16px !important;
	}
}

@media (max-width: 420px) {
	#controlsSidebar {
		left: 10px !important;
		right: auto !important;
		top: auto !important;
		bottom: max(10px, env(safe-area-inset-bottom)) !important;
		justify-content: flex-start !important;
	}

	.globe-guide {
		top: 112px !important;
		position: fixed !important;
		left: 50% !important;
		right: auto !important;
		bottom: auto !important;
		transform: translateX(-50%);
		max-width: calc(100vw - 20px);
		width: max-content;
		height: auto;
		min-height: 0;
	}

	#globe {
		padding-top: 150px;
	}

	#controlsSidebar .gender-btn-icon,
	#controlsSidebar .sidebar-item {
		padding-left: 6px !important;
		padding-right: 6px !important;
	}

	#controlsSidebar .menu-label {
		display: none !important;
	}
}

.competition-item {
	display: grid;
	gap: 1px;
	padding: 4px 0;
}

.competition-item b {
	font-size: 11px;
	font-weight: 800;
	color: #f7d025;
}

.competition-item small {
	font-size: 9px;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.58);
}

.competition-empty,
.competition-loading {
	font-size: 10px;
	color: rgba(255, 255, 255, 0.58);
}

.competition-heading {
	font-size: 9px;
	font-weight: 900;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.58);
}

/* Compact navigation dock: flat, tactile, and tied to the VNL palette. */
#controlsSidebar .gender-btn-icon,
#controlsSidebar .sidebar-item {
	border: 1px solid rgba(28, 105, 165, 0.36) !important;
	border-radius: 6px !important;
	background: rgba(255, 255, 255, 0.96) !important;
	box-shadow: 0 2px 0 rgba(28, 105, 165, 0.18) !important;
	color: #1c69a5 !important;
	transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease !important;
}

#controlsSidebar .gender-btn-icon:hover,
#controlsSidebar .sidebar-item:hover {
	background: #f7d025 !important;
	border-color: #d3ac00 !important;
	color: #163f63 !important;
	box-shadow: 0 2px 0 rgba(138, 104, 0, 0.25) !important;
}

#controlsSidebar .gender-btn-icon.active {
	background: #1c69a5 !important;
	border-color: #1c69a5 !important;
	color: #fff !important;
}

#controlsSidebar #btnWomen.gender-btn-icon.active {
	background: #e61556 !important;
	border-color: #e61556 !important;
	color: #fff !important;
}

#controlsSidebar .sidebar-item:active,
#controlsSidebar .gender-btn-icon:active {
	box-shadow: none !important;
	transform: translateY(2px) !important;
}

@media (max-width: 768px) {
	#controlsSidebar .gender-btn-icon,
	#controlsSidebar .sidebar-item {
		width: 38px !important;
		min-width: 38px !important;
		max-width: 38px !important;
		flex: 0 0 38px !important;
		height: 36px !important;
		padding: 0 !important;
		gap: 0 !important;
		border-radius: 9px !important;
	}

	#controlsSidebar .menu-label {
		position: absolute;
		left: 50%;
		top: calc(100% + 5px);
		z-index: 2;
		padding: 3px 5px;
		border-radius: 5px;
		background: rgba(15, 54, 91, 0.92);
		color: #ffffff !important;
		font-size: 9px !important;
		white-space: nowrap;
		opacity: 0;
		pointer-events: none;
		transform: translate(-50%, -3px);
		transition: opacity 0.16s ease, transform 0.16s ease;
	}

	#controlsSidebar .gender-btn-icon:hover .menu-label,
	#controlsSidebar .gender-btn-icon:focus-visible .menu-label,
	#controlsSidebar .sidebar-item:hover .menu-label,
	#controlsSidebar .sidebar-item:focus-visible .menu-label {
		opacity: 1;
		transform: translate(-50%, 0);
	}

	#controlsSidebar .gender-btn-icon i,
	#controlsSidebar .sidebar-item i {
		font-size: 15px !important;
	}

	#zoomControlsWrap {
		gap: 4px;
		padding: 5px;
	}

	#zoomControlsWrap .zoom-btn {
		width: 34px;
		height: 34px;
		border-radius: 8px;
	}

	#zoomControlsWrap .zoom-readout {
		width: 22px;
	}
}