* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	background: #0b0d10;
	background-image: radial-gradient(circle at 20% 20%, #1a1f26 0%, #0b0d10 80%);
	min-height: 100vh;
	font-family: 'Inter', sans-serif;
	color: #eef2f5;
	padding: 2rem 1.5rem 4rem;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.gallery-wrapper {
	max-width: 1400px;
	width: 100%;
}

.header {
	display: flex;
	flex-direction: column;
	align-items: center;
	margin-bottom: 2.5rem;
	text-align: center;
}

.logo-link {
	display: inline-block;
	transition: transform 0.3s ease, filter 0.3s ease;
	cursor: pointer;
	text-decoration: none;
}

.logo-link:hover {
	transform: scale(1.02);
	filter: brightness(1.05);
}

.logo {
	max-width: 300px;
	width: 100%;
	height: auto;
	filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.6));
	display: block;
}

.header-sub {
	font-size: 1.05rem;
	font-weight: 400;
	color: #aabbcc;
	margin-top: 0.5rem;
	background: rgba(255, 255, 255, 0.04);
	padding: 0.6rem 1.6rem;
	border-radius: 40px;
	backdrop-filter: blur(4px);
	border: 1px solid rgba(255, 255, 255, 0.06);
	display: inline-flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	justify-content: center;
}

.header-sub i {
	margin-right: 4px;
	color: #6d8cff;
}

.discord-link {
	color: #8ea4ff;
	font-weight: 600;
	text-decoration: none;
	transition: color 0.2s, text-shadow 0.2s;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.discord-link:hover {
	color: #b8c9ff;
	text-shadow: 0 0 20px rgba(109, 140, 255, 0.3);
}

.discord-link i {
	font-size: 1.1rem;
	color: #8ea4ff;
	transition: color 0.2s;
}

.discord-link:hover i {
	color: #b8c9ff;
}

.stats {
	margin: 1.5rem 0 2rem;
	font-size: 0.95rem;
	color: #a0b3c9;
	background: rgba(20, 28, 38, 0.7);
	backdrop-filter: blur(6px);
	padding: 0.5rem 1.5rem;
	border-radius: 40px;
	border: 1px solid rgba(255, 255, 255, 0.05);
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.stats i {
	color: #6d8cff;
}

.stats span {
	font-weight: 600;
	color: #d6e2f0;
}

.refresh-btn {
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.08);
	color: #8ea4ff;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.2s ease;
	font-size: 0.8rem;
	padding: 0;
	margin: 0;
	flex-shrink: 0;
}

.refresh-btn:hover {
	background: rgba(109, 140, 255, 0.15);
	border-color: rgba(109, 140, 255, 0.3);
	transform: rotate(45deg);
}

.refresh-btn:active {
	transform: rotate(90deg) scale(0.9);
}

.refresh-btn i {
	color: #8ea4ff;
	font-size: 0.75rem;
}

.grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 1.8rem;
	margin-top: 0.5rem;
}

.screenshot-card {
	position: relative;
	background: #161c24;
	border-radius: 20px;
	overflow: hidden;
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.6), 0 2px 8px rgba(0, 0, 0, 0.3);
	transition: transform 0.25s ease, box-shadow 0.3s ease;
	border: 1px solid rgba(255, 255, 255, 0.04);
	aspect-ratio: 1 / 1;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}

.screenshot-card:hover {
	transform: translateY(-6px) scale(1.01);
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(109, 140, 255, 0.15);
	border-color: rgba(109, 140, 255, 0.2);
}

.screenshot-card img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.4s ease, filter 0.3s ease;
	background: #0f131a;
}

.screenshot-card:hover img {
	transform: scale(1.03);
	filter: brightness(1.08);
}

.screenshot-card::after {
	content: "\f06e";
	font-family: "Font Awesome 6 Free";
	font-weight: 900;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%) scale(0.7);
	color: rgba(255, 255, 255, 0.7);
	font-size: 2.8rem;
	opacity: 0;
	transition: opacity 0.3s ease, transform 0.3s ease;
	pointer-events: none;
	text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
	background: rgba(0, 0, 0, 0.2);
	border-radius: 60px;
	padding: 0.4rem 0.8rem;
	backdrop-filter: blur(2px);
}

.screenshot-card:hover::after {
	opacity: 1;
	transform: translate(-50%, -50%) scale(1);
}

.popup-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.85);
	backdrop-filter: blur(10px);
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 1000;
	padding: 2rem;
	animation: fadeIn 0.25s ease;
}

.popup-overlay.active {
	display: flex;
}

.popup-content {
	position: relative;
	max-width: 90vw;
	max-height: 90vh;
	border-radius: 24px;
	overflow: hidden;
	box-shadow: 0 30px 60px rgba(0, 0, 0, 0.9);
	border: 1px solid rgba(255, 255, 255, 0.08);
	background: #0f131a;
	animation: scaleIn 0.3s ease;
}

.popup-content img {
	display: block;
	max-width: 100%;
	max-height: 85vh;
	width: auto;
	height: auto;
	object-fit: contain;
}

.popup-close {
	position: absolute;
	top: 16px;
	right: 20px;
	background: rgba(0, 0, 0, 0.6);
	backdrop-filter: blur(8px);
	border: 1px solid rgba(255, 255, 255, 0.1);
	color: #fff;
	font-size: 24px;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background 0.2s, border-color 0.2s;
	z-index: 10;
	font-family: 'Inter', sans-serif;
	line-height: 1;
	padding: 0;
	margin: 0;
	user-select: none;
	flex-shrink: 0;
}

.popup-close:hover {
	background: rgba(255, 70, 70, 0.25);
	border-color: rgba(255, 100, 100, 0.3);
}

.popup-close:active {
	transform: scale(0.92);
}

.popup-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(0, 0, 0, 0.5);
	backdrop-filter: blur(8px);
	border: 1px solid rgba(255, 255, 255, 0.08);
	color: #fff;
	font-size: 1.8rem;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background 0.2s, border-color 0.2s;
	z-index: 10;
	user-select: none;
}

.popup-nav:hover {
	background: rgba(109, 140, 255, 0.25);
	border-color: rgba(109, 140, 255, 0.3);
}

.popup-nav.prev {
	left: 20px;
}

.popup-nav.next {
	right: 20px;
}

@keyframes fadeIn {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

@keyframes scaleIn {
	from {
		transform: scale(0.92);
		opacity: 0;
	}

	to {
		transform: scale(1);
		opacity: 1;
	}
}

.empty-state {
	grid-column: 1 / -1;
	text-align: center;
	padding: 4rem 2rem;
	background: rgba(20, 28, 38, 0.4);
	border-radius: 40px;
	backdrop-filter: blur(4px);
	border: 1px dashed rgba(255, 255, 255, 0.08);
}

.empty-state i {
	font-size: 3.5rem;
	color: #3b4b5e;
	margin-bottom: 1rem;
}

.empty-state h3 {
	font-weight: 500;
	color: #b0c6dd;
	margin-bottom: 0.5rem;
}

.empty-state p {
	color: #6a7f98;
	font-size: 0.95rem;
}

.footer-note {
	margin-top: 3.5rem;
	font-size: 0.85rem;
	color: #3d5066;
	display: flex;
	align-items: center;
	gap: 6px;
	border-top: 1px solid rgba(255, 255, 255, 0.04);
	padding-top: 2rem;
	width: 100%;
	justify-content: center;
}

.footer-note i {
	color: #4d6a8a;
}

.footer-note a {
	color: #6d8cff;
	text-decoration: none;
	font-weight: 500;
	transition: color 0.2s;
}

.footer-note a:hover {
	color: #9bb3ff;
	text-decoration: underline;
}

@media (max-width: 680px) {
	body {
		padding: 1rem 0.8rem 3rem;
	}

	.grid {
		gap: 1.2rem;
		grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	}

	.logo {
		max-width: 200px;
	}

	.screenshot-card::after {
		font-size: 2rem;
	}

	.popup-nav {
		width: 40px;
		height: 40px;
		font-size: 1.2rem;
	}

	.popup-nav.prev {
		left: 10px;
	}

	.popup-nav.next {
		right: 10px;
	}

	.popup-close {
		width: 40px;
		height: 40px;
		font-size: 20px;
		top: 12px;
		right: 14px;
	}
}

@media (max-width: 440px) {
	.grid {
		gap: 0.8rem;
		grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
	}
}