* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

::-webkit-scrollbar {
	width: 10px;
}

::-webkit-scrollbar-track {
	background: rgba(15, 23, 42, 0.4);
	border-radius: 5px;
}

::-webkit-scrollbar-thumb {
	background: rgba(59, 130, 246, 0.5);
	border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
	background: rgba(59, 130, 246, 0.7);
}

html, body {
	height: 100%;
	overflow: hidden;
}

body {
	background: radial-gradient(ellipse at top, #1a2744 0%, #0a0f1c 50%, #000000 100%);
	color: #e6eef6;
	font-family: 'Segoe UI', system-ui, -apple-system, Roboto, 'Helvetica Neue', Arial, sans-serif;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
}

.particles {
	position: fixed;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	z-index: 1;
	pointer-events: none;
	overflow: hidden;
}

.particle {
	position: absolute;
	border-radius: 50%;
	pointer-events: none;
}

@keyframes float {
	0% {
		transform: translateY(100vh) scale(0) rotate(0deg);
		opacity: 0;
	}
	5% {
		opacity: 1;
	}
	95% {
		opacity: 1;
	}
	100% {
		transform: translateY(-10vh) scale(1) rotate(360deg);
		opacity: 0;
	}
}

@keyframes pulse {
	0%, 100% {
		transform: scale(1);
		opacity: 0.3;
	}
	50% {
		transform: scale(1.2);
		opacity: 0.6;
	}
}

#start-screen {
	text-align: center;
	animation: fadeIn 0.6s ease-out;
	position: relative;
	z-index: 10;
	width: 100%;
}

.container {
	max-width: 600px;
	margin: 0 auto;
	padding: 40px;
}

.logo-section {
	position: relative;
	margin-bottom: 60px;
}

.title {
	font-size: 82px;
	font-weight: 900;
	color: #fff;
	margin-bottom: 8px;
	text-shadow: 0 0 20px rgba(59, 130, 246, 0.8),
				 0 0 40px rgba(59, 130, 246, 0.5),
				 0 4px 12px rgba(0, 0, 0, 0.8);
	letter-spacing: 8px;
	animation: titleGlow 3s ease-in-out infinite, slideDown 0.8s ease-out;
	position: relative;
	z-index: 2;
}

.title-glow {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 400px;
	height: 100px;
	background: radial-gradient(ellipse, rgba(59, 130, 246, 0.4) 0%, transparent 70%);
	filter: blur(30px);
	animation: pulse 2s ease-in-out infinite;
	z-index: 1;
}

@keyframes titleGlow {
	0%, 100% {
		text-shadow: 0 0 20px rgba(59, 130, 246, 0.8),
					 0 0 40px rgba(59, 130, 246, 0.5),
					 0 4px 12px rgba(0, 0, 0, 0.8);
	}
	50% {
		text-shadow: 0 0 30px rgba(59, 130, 246, 1),
					 0 0 60px rgba(59, 130, 246, 0.7),
					 0 4px 12px rgba(0, 0, 0, 0.8);
	}
}

@keyframes pulse {
	0%, 100% {
		opacity: 0.6;
		transform: translate(-50%, -50%) scale(1);
	}
	50% {
		opacity: 1;
		transform: translate(-50%, -50%) scale(1.1);
	}
}

.subtitle {
	font-size: 18px;
	color: #94a3b8;
	margin-bottom: 12px;
	animation: slideDown 0.8s ease-out 0.1s both;
	text-transform: uppercase;
	letter-spacing: 3px;
	font-weight: 600;
}

.menu-buttons {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin-bottom: 40px;
}

.menu-btn {
	background: rgba(15, 23, 42, 0.6);
	color: white;
	border: 2px solid rgba(59, 130, 246, 0.3);
	border-radius: 12px;
	padding: 16px 32px;
	font-size: 18px;
	font-weight: 700;
	cursor: pointer;
	transition: all 0.3s ease;
	text-transform: uppercase;
	letter-spacing: 2px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	position: relative;
	overflow: hidden;
	backdrop-filter: blur(10px);
}

.menu-btn::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
	transition: left 0.5s ease;
}

.menu-btn:hover::before {
	left: 100%;
}

.menu-btn .btn-icon {
	font-size: 22px;
	transition: transform 0.3s ease;
}

.menu-btn:hover .btn-icon {
	transform: scale(1.2);
}

.play-btn {
	background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
	border: 2px solid #3b82f6;
	box-shadow: 0 8px 24px rgba(37, 99, 235, 0.4),
				0 0 40px rgba(59, 130, 246, 0.2);
	animation: slideUp 0.8s ease-out 0.2s both, playBtnPulse 2s ease-in-out 1.5s infinite;
	font-size: 24px;
	padding: 20px 40px;
}

@keyframes playBtnPulse {
	0%, 100% {
		box-shadow: 0 8px 24px rgba(37, 99, 235, 0.4), 0 0 40px rgba(59, 130, 246, 0.2);
	}
	50% {
		box-shadow: 0 8px 32px rgba(37, 99, 235, 0.6), 0 0 60px rgba(59, 130, 246, 0.4);
	}
}

.play-btn:hover {
	transform: translateY(-3px);
	box-shadow: 0 12px 32px rgba(37, 99, 235, 0.6),
				0 0 60px rgba(59, 130, 246, 0.4);
	background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
	border-color: #60a5fa;
}

.play-btn:active {
	transform: translateY(-1px);
}

.secondary-btn {
	animation: slideUp 0.8s ease-out both;
}

.secondary-btn:nth-child(2) { animation-delay: 0.25s; }
.secondary-btn:nth-child(3) { animation-delay: 0.35s; }
.secondary-btn:nth-child(4) { animation-delay: 0.45s; }
.secondary-btn:nth-child(5) { animation-delay: 0.55s; }

.secondary-btn:hover {
	background: rgba(30, 41, 59, 0.8);
	border-color: rgba(59, 130, 246, 0.6);
	transform: translateX(5px);
	box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
}

.secondary-btn:active {
	transform: translateX(3px);
}

.game-stats {
	display: flex;
	justify-content: space-around;
	gap: 24px;
	animation: fadeIn 1s ease-out 0.6s both;
}

.stat-item {
	flex: 1;
	padding: 20px;
	background: rgba(15, 23, 42, 0.4);
	border: 1px solid rgba(59, 130, 246, 0.2);
	border-radius: 12px;
	backdrop-filter: blur(10px);
	transition: all 0.3s ease;
}

.stat-item:hover {
	background: rgba(15, 23, 42, 0.6);
	border-color: rgba(59, 130, 246, 0.4);
	transform: translateY(-2px);
}

.stat-label {
	display: block;
	font-size: 11px;
	color: #64748b;
	font-weight: 700;
	letter-spacing: 1px;
	margin-bottom: 8px;
}

.stat-value {
	display: block;
	font-size: 24px;
	color: #3b82f6;
	font-weight: 900;
	text-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

.modal {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.85);
	backdrop-filter: blur(8px);
	z-index: 1000;
	align-items: center;
	justify-content: center;
	animation: fadeIn 0.3s ease-out;
}

.modal.active {
	display: flex;
}

.modal-content {
	background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
	border: 2px solid rgba(59, 130, 246, 0.3);
	border-radius: 16px;
	padding: 40px;
	max-width: 600px;
	width: 90%;
	max-height: 85vh;
	overflow-y: auto;
	overflow-x: hidden;
	position: relative;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5),
				0 0 100px rgba(59, 130, 246, 0.2);
	animation: modalSlide 0.4s ease-out;
}

@keyframes modalSlide {
	from {
		opacity: 0;
		transform: translateY(-50px) scale(0.9);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

.modal-content h2 {
	color: #fff;
	font-size: 32px;
	margin-bottom: 28px;
	text-align: center;
	text-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
	letter-spacing: 2px;
}

.close-btn {
	position: absolute;
	top: 15px;
	right: 15px;
	background: rgba(239, 68, 68, 0.2);
	border: 2px solid rgba(239, 68, 68, 0.3);
	color: #fff;
	font-size: 32px;
	width: 45px;
	height: 45px;
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s ease;
	line-height: 1;
	padding: 0;
}

.close-btn:hover {
	background: rgba(239, 68, 68, 0.4);
	border-color: rgba(239, 68, 68, 0.6);
	transform: rotate(90deg);
}

.modal-body {
	color: #cbd5e1;
	line-height: 1.8;
}

.control-group {
	margin-bottom: 28px;
	padding: 20px;
	background: rgba(15, 23, 42, 0.4);
	border-radius: 12px;
	border: 1px solid rgba(59, 130, 246, 0.2);
}

.control-group h3 {
	color: #3b82f6;
	font-size: 18px;
	margin-bottom: 16px;
	letter-spacing: 1px;
}

.control-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px;
	margin-bottom: 8px;
	background: rgba(30, 41, 59, 0.3);
	border-radius: 8px;
}

.key {
	background: linear-gradient(135deg, #334155 0%, #1e293b 100%);
	padding: 8px 16px;
	border-radius: 6px;
	font-weight: 700;
	font-size: 14px;
	border: 2px solid rgba(59, 130, 246, 0.3);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
	min-width: 100px;
	text-align: center;
}

.desc {
	color: #e2e8f0;
	font-size: 15px;
}

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

.enemy-type {
	padding: 10px;
	background: rgba(30, 41, 59, 0.3);
	border-radius: 8px;
	display: flex;
	align-items: center;
	gap: 10px;
}

.enemy-square { color: #ff6b6b; font-size: 20px; }
.enemy-circle { color: #22d3ee; font-size: 20px; }
.enemy-pentagon { color: #a78bfa; font-size: 20px; }
.enemy-shooter { color: #f59e0b; font-size: 20px; }

.setting-group {
	margin-bottom: 28px;
	padding: 20px;
	background: rgba(15, 23, 42, 0.4);
	border-radius: 12px;
	border: 1px solid rgba(59, 130, 246, 0.2);
}

.setting-group label {
	display: block;
	color: #3b82f6;
	font-size: 16px;
	font-weight: 700;
	margin-bottom: 12px;
	letter-spacing: 1px;
}

.slider-container {
	display: flex;
	align-items: center;
	gap: 16px;
}

input[type="range"] {
	flex: 1;
	height: 8px;
	border-radius: 4px;
	background: rgba(30, 41, 59, 0.6);
	outline: none;
	-webkit-appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(59, 130, 246, 0.5);
	transition: all 0.2s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
	transform: scale(1.2);
	box-shadow: 0 4px 12px rgba(59, 130, 246, 0.7);
}

input[type="range"]::-moz-range-thumb {
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
	cursor: pointer;
	border: none;
	box-shadow: 0 2px 8px rgba(59, 130, 246, 0.5);
	transition: all 0.2s ease;
}

input[type="range"]::-moz-range-thumb:hover {
	transform: scale(1.2);
	box-shadow: 0 4px 12px rgba(59, 130, 246, 0.7);
}

.volume-value {
	font-weight: 700;
	color: #3b82f6;
	min-width: 50px;
	text-align: right;
}

.toggle-group {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	cursor: pointer;
	gap: 16px;
	padding: 12px;
	background: rgba(30, 41, 59, 0.3);
	border-radius: 8px;
}

.toggle input[type="checkbox"] {
	display: none;
}

.toggle-button {
	display: flex;
	gap: 0;
	border-radius: 6px;
	overflow: hidden;
	border: 2px solid rgba(59, 130, 246, 0.2);
	flex-shrink: 0;
	height: 32px;
}

.toggle-off,
.toggle-on {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 14px;
	font-size: 13px;
	font-weight: 700;
	letterSpacing: 0.5px;
	transition: all 0.2s ease;
	user-select: none;
	min-width: 45px;
}

.toggle-off {
	background: rgba(239, 68, 68, 0.3);
	color: #ef4444;
	border-right: 1px solid rgba(59, 130, 246, 0.2);
}

.toggle-on {
	background: rgba(30, 41, 59, 0.6);
	color: #64748b;
}

.toggle input[type="checkbox"]:checked ~ .toggle-button .toggle-off {
	background: rgba(30, 41, 59, 0.6);
	color: #64748b;
}

.toggle input[type="checkbox"]:checked ~ .toggle-button .toggle-on {
	background: rgba(59, 130, 246, 0.4);
	color: #3b82f6;
	box-shadow: 0 0 15px rgba(59, 130, 246, 0.4);
}

.toggle-label {
	color: #e2e8f0;
	font-weight: 600;
	font-size: 15px;
	user-select: none;
}

.credits-body {
	text-align: center;
}

.credit-section {
	margin-bottom: 32px;
	padding: 20px;
	background: rgba(15, 23, 42, 0.4);
	border-radius: 12px;
	border: 1px solid rgba(59, 130, 246, 0.2);
}

.credit-section h3 {
	color: #3b82f6;
	font-size: 18px;
	margin-bottom: 12px;
	letter-spacing: 1px;
}

.credit-section p {
	color: #cbd5e1;
	margin: 6px 0;
	font-size: 15px;
}

.credit-section.special {
	background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(147, 51, 234, 0.2) 100%);
	border-color: rgba(59, 130, 246, 0.4);
}

.credit-section.special p {
	color: #fff;
	font-size: 20px;
	font-weight: 700;
	text-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

@keyframes fadeIn {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

@keyframes slideDown {
	from {
		opacity: 0;
		transform: translateY(-30px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes slideUp {
	from {
		opacity: 0;
		transform: translateY(30px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.auth-form {
	display: flex;
	flex-direction: column;
	gap: 20px;
	max-width: 400px;
	margin: 0 auto;
}

.form-group {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.form-group label {
	font-size: 0.9rem;
	color: rgba(255, 255, 255, 0.7);
	letter-spacing: 1px;
}

.form-group input {
	padding: 12px 16px;
	background: rgba(15, 23, 42, 0.6);
	border: 2px solid rgba(59, 130, 246, 0.3);
	border-radius: 8px;
	color: white;
	font-size: 1rem;
	transition: all 0.3s ease;
	outline: none;
}

.form-group input:focus {
	border-color: rgba(59, 130, 246, 0.8);
	background: rgba(15, 23, 42, 0.8);
	box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

.auth-error {
	min-height: 20px;
	padding: 10px;
	background: rgba(239, 68, 68, 0.1);
	border: 1px solid rgba(239, 68, 68, 0.3);
	border-radius: 6px;
	color: #ef4444;
	font-size: 0.9rem;
	display: none;
}

.auth-error.show {
	display: block;
}

.auth-submit-btn {
	padding: 14px;
	background: linear-gradient(135deg, #3b82f6, #8b5cf6);
	border: none;
	border-radius: 8px;
	color: white;
	font-size: 1.1rem;
	font-weight: bold;
	letter-spacing: 2px;
	cursor: pointer;
	transition: all 0.3s ease;
	margin-top: 10px;
}

.auth-submit-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 30px rgba(59, 130, 246, 0.4);
}

.auth-switch {
	text-align: center;
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding-top: 10px;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-switch-text {
	color: rgba(255, 255, 255, 0.6);
	font-size: 0.9rem;
}

.auth-switch-btn {
	background: none;
	border: none;
	color: #3b82f6;
	font-size: 1rem;
	font-weight: bold;
	cursor: pointer;
	transition: color 0.3s ease;
}

.auth-switch-btn:hover {
	color: #60a5fa;
	text-decoration: underline;
}

.user-status {
	margin: 20px 0;
	display: flex;
	justify-content: center;
	align-items: center;
	animation: slideUp 0.8s ease-out 0.6s both;
}

.user-info {
	display: flex;
	align-items: center;
	gap: 15px;
	padding: 12px 25px;
	background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(59, 130, 246, 0.2));
	border: 2px solid rgba(16, 185, 129, 0.5);
	border-radius: 12px;
}

.username-display {
	color: white;
	font-size: 1.1rem;
	font-weight: bold;
	letter-spacing: 1px;
}

.username-display .clickable-username:hover {
	color: #3b82f6;
	text-shadow: 0 0 10px rgba(59, 130, 246, 0.7);
}

.logout-btn {
	padding: 8px 20px;
	background: rgba(239, 68, 68, 0.2);
	border: 2px solid rgba(239, 68, 68, 0.5);
	border-radius: 8px;
	color: white;
	font-size: 0.9rem;
	font-weight: bold;
	letter-spacing: 1px;
	cursor: pointer;
	transition: all 0.3s ease;
}

.logout-btn:hover {
	background: rgba(239, 68, 68, 0.4);
	border-color: rgba(239, 68, 68, 0.8);
	box-shadow: 0 5px 15px rgba(239, 68, 68, 0.3);
}

.leaderboard-body {
	min-height: 500px;
	position: relative;
}

.loading-spinner {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	height: 400px;
	gap: 20px;
}

.spinner {
	width: 40px;
	height: 40px;
	border: 4px solid rgba(59, 130, 246, 0.3);
	border-top: 4px solid #3b82f6;
	border-radius: 50%;
	animation: spin 1s linear infinite;
}

@keyframes spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

.leaderboard-error {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	height: 400px;
	gap: 20px;
	color: #ef4444;
}

.retry-btn {
	padding: 10px 20px;
	background: rgba(59, 130, 246, 0.2);
	border: 2px solid rgba(59, 130, 246, 0.5);
	border-radius: 8px;
	color: white;
	font-weight: bold;
	cursor: pointer;
	transition: all 0.3s ease;
}

.retry-btn:hover {
	background: rgba(59, 130, 246, 0.4);
	border-color: rgba(59, 130, 246, 0.8);
}

.leaderboard-tabs {
	display: flex;
	gap: 10px;
	margin-bottom: 20px;
	border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.tab-btn {
	padding: 12px 24px;
	background: transparent;
	border: none;
	border-bottom: 2px solid transparent;
	color: rgba(255, 255, 255, 0.6);
	font-weight: bold;
	font-size: 1rem;
	letter-spacing: 1px;
	cursor: pointer;
	transition: all 0.3s ease;
}

.tab-btn:hover {
	color: rgba(255, 255, 255, 0.8);
}

.tab-btn.active {
	color: white;
	border-bottom-color: #3b82f6;
}

.leaderboard-list {
	max-height: 400px;
	overflow-y: auto;
	overflow-x: hidden;
}

.leaderboard-entry {
	display: flex;
	align-items: center;
	padding: 15px 20px;
	margin: 8px 0;
	background: rgba(30, 41, 59, 0.6);
	border-radius: 10px;
	border-left: 4px solid transparent;
	transition: all 0.3s ease;
}

.leaderboard-entry:hover {
	background: rgba(30, 41, 59, 0.8);
	transform: translateX(5px);
}

.leaderboard-entry.top-1 {
	border-left-color: #ffd700;
	background: rgba(255, 215, 0, 0.1);
}

.leaderboard-entry.top-2 {
	border-left-color: #c0c0c0;
	background: rgba(192, 192, 192, 0.1);
}

.leaderboard-entry.top-3 {
	border-left-color: #cd7f32;
	background: rgba(205, 127, 50, 0.1);
}

.rank {
	font-weight: bold;
	font-size: 1.2rem;
	min-width: 40px;
	text-align: center;
}

.rank.gold { color: #ffd700; }
.rank.silver { color: #c0c0c0; }
.rank.bronze { color: #cd7f32; }

.player-info {
	flex: 1;
	margin-left: 20px;
}

.player-name {
	font-weight: bold;
	font-size: 1.1rem;
	color: white;
	margin-bottom: 4px;
}

.player-name .clickable-username {
	transition: all 0.2s ease;
	border-bottom: 1px solid transparent;
}

.player-name .clickable-username:hover {
	border-bottom-color: #3b82f6;
}

.player-stats {
	font-size: 0.9rem;
	color: rgba(255, 255, 255, 0.7);
}

.stat-value {
	font-weight: bold;
	color: #3b82f6;
}

.no-data {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	height: 300px;
	color: rgba(255, 255, 255, 0.6);
	font-size: 1.1rem;
}

.no-data .icon {
	font-size: 3rem;
	margin-bottom: 15px;
	opacity: 0.5;
}

.server-offline-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.9);
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 10000;
	backdrop-filter: blur(10px);
}

.server-offline-overlay.active {
	display: flex;
}

.server-offline-content {
	background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.95));
	border: 2px solid rgba(239, 68, 68, 0.5);
	border-radius: 16px;
	padding: 40px;
	text-align: center;
	max-width: 500px;
	width: 90%;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
	animation: slideInDown 0.5s ease-out;
}

@keyframes slideInDown {
	0% {
		opacity: 0;
		transform: translateY(-50px) scale(0.9);
	}
	100% {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

.server-icon {
	font-size: 64px;
	margin-bottom: 20px;
	animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
	0%, 100% {
		opacity: 1;
		transform: scale(1);
	}
	50% {
		opacity: 0.7;
		transform: scale(1.05);
	}
}

.server-offline-content h2 {
	color: #ef4444;
	font-size: 32px;
	margin: 0 0 16px 0;
	letter-spacing: 2px;
	text-shadow: 0 2px 10px rgba(239, 68, 68, 0.3);
}

.server-offline-content p {
	color: rgba(255, 255, 255, 0.8);
	font-size: 18px;
	margin: 16px 0;
	line-height: 1.6;
}

.retry-connection-btn {
	background: linear-gradient(135deg, #ef4444, #dc2626);
	border: none;
	border-radius: 12px;
	color: white;
	font-size: 18px;
	font-weight: bold;
	letter-spacing: 2px;
	padding: 16px 32px;
	cursor: pointer;
	transition: all 0.3s ease;
	margin: 24px 0 16px 0;
	text-transform: uppercase;
}

.retry-connection-btn:hover {
	background: linear-gradient(135deg, #f87171, #ef4444);
	transform: translateY(-2px);
	box-shadow: 0 10px 30px rgba(239, 68, 68, 0.4);
}

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

.server-details {
	margin-top: 20px;
	padding-top: 20px;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.server-details p {
	font-size: 14px;
	color: rgba(255, 255, 255, 0.6);
	margin: 8px 0;
}

.profile-modal-content {
	max-width: 600px;
	width: 90%;
}

.profile-header {
	display: flex;
	align-items: center;
	gap: 0px !important;
	padding: 24px;
	background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(30, 41, 59, 0.3) 100%);
	border-bottom: 2px solid rgba(59, 130, 246, 0.2);
	border-radius: 12px 12px 0 0;
	margin: -24px -24px 0 -24px;
}

.profile-avatar {
	width: 80px;
	height: 80px;
	font-size: 48px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #3b82f6, #2563eb);
	border-radius: 50%;
	box-shadow: 0 8px 24px rgba(59, 130, 246, 0.3);
	flex-shrink: 0;
	margin-right: 0;
}

.profile-info {
	flex: 1;
	margin: 0 !important;
	padding: 0 !important;
	text-align: left;
}

.profile-username {
	margin: 0 !important;
	margin-bottom: 8px !important;
	margin-left: 20px !important;
	font-size: 28px;
	color: #fff;
	text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
	text-align: left !important;
}

.profile-badges {
	display: flex;
	gap: 8px;
	align-items: center;
	min-height: 24px;
	margin-left: 16px !important;
	justify-content: flex-start;
}

.profile-badge {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 4px 12px;
	background: rgba(59, 130, 246, 0.2);
	border: 1px solid rgba(59, 130, 246, 0.3);
	border-radius: 12px;
	font-size: 12px;
	font-weight: 600;
	color: #3b82f6;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.profile-body {
	padding: 24px;
}

.profile-loading,
.profile-error {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 40px 20px;
	text-align: center;
}

.profile-loading .spinner {
	width: 48px;
	height: 48px;
	border: 4px solid rgba(59, 130, 246, 0.2);
	border-top-color: #3b82f6;
	border-radius: 50%;
	animation: spin 1s linear infinite;
	margin-bottom: 16px;
}

.profile-error p {
	color: #ef4444;
	font-size: 18px;
	margin-bottom: 16px;
}

.profile-stats-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 16px;
}

.profile-stat-card {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 20px;
	background: rgba(15, 23, 42, 0.4);
	border: 1px solid rgba(59, 130, 246, 0.2);
	border-radius: 12px;
	transition: all 0.3s ease;
}

.profile-stat-card:hover {
	background: rgba(15, 23, 42, 0.6);
	border-color: rgba(59, 130, 246, 0.4);
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(59, 130, 246, 0.2);
}

.stat-icon {
	font-size: 36px;
	filter: drop-shadow(0 2px 8px rgba(59, 130, 246, 0.3));
}

.stat-info {
	flex: 1;
}

.stat-label {
	font-size: 11px;
	color: rgba(255, 255, 255, 0.6);
	font-weight: 600;
	letter-spacing: 1px;
	margin-bottom: 4px;
}

.stat-value {
	font-size: 28px;
	font-weight: bold;
	color: #3b82f6;
	text-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.clickable-username {
	cursor: pointer;
	transition: all 0.2s ease;
	display: inline-block;
}

.clickable-username:hover {
	color: #3b82f6;
	text-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
	transform: translateX(2px);
}
/* Game Mode Selection */
.gamemode-body {
	padding: 20px 0;
}

.gamemode-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
	margin-top: 20px;
}

.gamemode-card {
	background: linear-gradient(135deg, rgba(30, 41, 59, 0.8) 0%, rgba(15, 23, 42, 0.9) 100%);
	border: 2px solid rgba(59, 130, 246, 0.3);
	border-radius: 16px;
	padding: 32px 24px;
	cursor: pointer;
	transition: all 0.3s ease;
	text-align: center;
	position: relative;
	overflow: hidden;
}

.gamemode-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
	opacity: 0;
	transition: opacity 0.3s ease;
}

.gamemode-card:hover::before {
	opacity: 1;
}

.gamemode-card:hover {
	border-color: rgba(59, 130, 246, 0.6);
	box-shadow: 0 8px 32px rgba(59, 130, 246, 0.3), 0 0 60px rgba(59, 130, 246, 0.15);
	transform: translateY(-4px);
}

.gamemode-card:active {
	transform: translateY(-2px) scale(0.98);
}

.gamemode-icon {
	font-size: 64px;
	margin-bottom: 16px;
	filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.gamemode-card h3 {
	color: #fff;
	font-size: 24px;
	margin-bottom: 12px;
	letter-spacing: 1px;
	text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.gamemode-card p {
	color: rgba(203, 213, 225, 0.9);
	font-size: 14px;
	line-height: 1.6;
	margin-bottom: 16px;
	min-height: 60px;
}

.gamemode-badge {
	display: inline-block;
	padding: 6px 16px;
	background: rgba(34, 197, 94, 0.2);
	border: 1px solid rgba(34, 197, 94, 0.4);
	border-radius: 20px;
	color: #22c55e;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
}

.gamemode-badge.multiplayer-badge {
	background: rgba(168, 85, 247, 0.2);
	border-color: rgba(168, 85, 247, 0.4);
	color: #a855f7;
}

@media (max-width: 768px) {
	.gamemode-grid {
		grid-template-columns: 1fr;
		gap: 16px;
	}
	
	.gamemode-card {
		padding: 24px 20px;
	}
	
	.gamemode-icon {
		font-size: 48px;
		margin-bottom: 12px;
	}
	
	.gamemode-card h3 {
		font-size: 20px;
	}
	
	.gamemode-card p {
		font-size: 13px;
		min-height: auto;
	}
}

/* Mods modal upload and list styling */
.mod-upload {
	display: flex;
	flex-direction: row;
	gap: 12px;
	align-items: center;
	color: #cbd5e1;
}
.mod-upload label {
	font-size: 14px;
	color: #e2e8f0;
	margin: 0;
}
.mod-upload input[type="file"] { display: inline-block; margin-left: 8px; }
.mod-upload .btn { margin-left: 8px; }
.mod-upload #mod-url-input { padding: 8px 10px; border-radius: 6px; border: 1px solid rgba(255,255,255,0.08); background: rgba(15,23,42,0.45); color: #fff; }
.mod-upload #mod-file-input { display: inline-block; }
.mod-upload #mod-upload-status { font-size: 13px; color: #93c5fd; margin-top: 6px; }

#mods-list { margin-top: 12px; color: #e6eef8; }
.mod-entry { padding: 12px 14px; border-radius: 10px; background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01)); border: 1px solid rgba(255,255,255,0.04); margin-bottom: 10px; }
.mod-entry-header { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.mod-entry h4 { margin: 0; font-size: 18px; color: #fff; }
.mod-id { font-size: 12px; color: #94a3b8; margin-left: 8px; }
.mod-entry p { margin: 8px 0 0 0; color: #cbd5e1; }
.mod-entry-actions { margin-top: 10px; display:flex; gap:8px; }
.mod-entry .btn { background: #10b981; color: #fff; border: none; padding: 8px 12px; border-radius: 8px; cursor: pointer; }
.mod-entry .btn:hover { filter:brightness(0.95); transform: translateY(-1px); }

.mods-header .security-warning { background:#fff7ed; border:2px solid #f59e0b; color:#92400e; padding:12px 16px; border-radius:8px; font-weight:600; margin-bottom:12px; }
.mods-counts { margin-top:10px; color:#e6eef8; font-weight:600; }
.mods-empty-state { padding:28px; border-radius:12px; background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01)); color:#e6eef8; text-align:center; font-size:16px; opacity:0.95; }
