* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html, body {
	width: 100%;
	height: 100%;
}

body {
	font-family: 'Noto Sans', sans-serif;
	background: #0d0d0d;
	color: #fff;
	line-height: 1.6;
}

/* Header */
.header {
	background: #1a1a1a;
	border-bottom: 1px solid #333;
	padding: 16px 0;
	position: sticky;
	top: 0;
	z-index: 100;
}

.header-container {
	max-width: 750px;
	margin: 0 auto;
	padding: 0 16px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 0;
	flex-wrap: wrap;
}

.logo-area {
	display: flex;
	align-items: center;
	gap: 12px;
	white-space: nowrap;
}

.logo-badge {
	width: 40px;
	height: 40px;
	background: linear-gradient(135deg, #00a86b 0%, #008a54 100%);
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 22px;
	color: #fff;
	box-shadow: 0 2px 8px rgba(0, 168, 107, 0.3);
}

.logo-text {
	font-size: 18px;
	font-weight: 700;
	letter-spacing: 1px;
	color: #fff;
}

.search-area {
	flex: 1;
	max-width: 350px;
	position: relative;
	min-width: 200px;
}

.search-input {
	width: 100%;
	padding: 10px 16px 10px 40px;
	background: #2a2a2a;
	border: 1px solid #333;
	border-radius: 6px;
	color: #fff;
	font-size: 14px;
	transition: all 0.3s ease;
}

.search-input::placeholder {
	color: #888;
}

.search-input:focus {
	outline: none;
	border-color: #00a86b;
	background: #252525;
}

.search-icon {
	position: absolute;
	left: 14px;
	top: 50%;
	transform: translateY(-50%);
	color: #666;
	font-size: 14px;
}

.auth-buttons {
	display: flex;
	align-items: center;
	gap: 12px;
	white-space: nowrap;
}

.btn-signup,
.btn-login {
	padding: 8px 20px;
	border: 0;
	background: transparent;
	color: #fff;
	font-size: 14px;
	cursor: pointer;
	border-radius: 6px;
	transition: all 0.3s ease;
	font-weight: 500;
}

.btn-signup {
	color: #00a86b;
}

.btn-signup:hover {
	background: rgba(0, 168, 107, 0.1);
}

.btn-login {
	background: #fff;
	color: #000;
}

.btn-login:hover {
	opacity: 0.9;
}

/* Navigation Tabs */
.nav-tabs {
	max-width: 750px;
	margin: 0 auto;
	padding: 0 16px;
	display: flex;
	gap: 24px;
	border-bottom: 1px solid #333;
}

.tab {
	padding: 12px 0;
	color: #888;
	text-decoration: none;
	font-size: 14px;
	border-bottom: 2px solid transparent;
	transition: all 0.3s ease;
	cursor: pointer;
}

.tab:hover {
	color: #fff;
}

.tab.active {
	color: #fff;
	border-bottom-color: #00a86b;
}

/* Game Container */
.game-container {
	max-width: 750px;
	margin: 0 auto;
	padding: 40px 24px;
}

.games-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 24px;
	grid-auto-flow: dense;
}

@media (max-width: 1200px) {
	.games-grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 20px;
	}
}

@media (max-width: 900px) {
	.games-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 18px;
	}
}

@media (max-width: 600px) {
	.games-grid {
		grid-template-columns: 1fr;
		gap: 16px;
	}
}

/* Game Card */
.game-card {
	background: #1a1a1a;
	border-radius: 12px;
	overflow: hidden;
	transition: all 0.3s ease;
	cursor: pointer;
	border: 1px solid #2a2a2a;
	display: flex;
	flex-direction: column;
	height: 100%;
}

.game-card:hover {
	transform: translateY(-10px);
	box-shadow: 0 15px 35px rgba(0, 168, 107, 0.25);
	border-color: #00a86b;
}

.game-image {
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #0d0d0d;
	position: relative;
}

.game-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.game-card:hover .game-image img {
	transform: scale(1.08);
}

.game-info {
	padding: 16px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	flex: 1;
	justify-content: space-between;
}

.game-title {
	font-size: 14px;
	font-weight: 600;
	color: #fff;
	line-height: 1.3;
	text-align: center;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	min-height: 20px;
}

.btn-download {
	width: 100%;
	padding: 10px 12px;
	background: linear-gradient(135deg, #00a86b 0%, #008a54 100%);
	border: 0;
	color: #fff;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	white-space: nowrap;
}

.btn-download:hover {
	background: linear-gradient(135deg, #00c876 0%, #00a86b 100%);
	transform: scale(1.02);
	box-shadow: 0 4px 12px rgba(0, 168, 107, 0.3);
}

.btn-download:active {
	transform: scale(0.98);
}

/* Scrollbar */
::-webkit-scrollbar {
	width: 8px;
	height: 8px;
}

::-webkit-scrollbar-track {
	background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
	background: #333;
	border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
	background: #00a86b;
}

/* Responsive Header */
@media (max-width: 900px) {
	.header-container {
		gap: 10px;
		padding: 12px 16px;
	}

	.logo-text {
		font-size: 16px;
	}

	.search-area {
		max-width: 280px;
		min-width: auto;
		order: 3;
		flex-basis: 100%;
		margin-top: 4px;
	}

	.auth-buttons {
		gap: 8px;
	}

	.btn-signup,
	.btn-login {
		padding: 6px 16px;
		font-size: 13px;
	}
}

@media (max-width: 600px) {
	.header-container {
		gap: 8px;
		padding: 10px 16px;
	}

	.logo-area {
		gap: 8px;
	}

	.logo-badge {
		width: 36px;
		height: 36px;
		font-size: 18px;
	}

	.logo-text {
		font-size: 14px;
	}

	.search-area {
		flex-basis: 100%;
		order: 3;
		margin-top: 6px;
		max-width: 100%;
	}

	.search-input {
		font-size: 12px;
		padding: 8px 14px 8px 36px;
	}

	.search-icon {
		left: 12px;
		font-size: 12px;
	}

	.auth-buttons {
		gap: 6px;
		flex-basis: auto;
	}

	.btn-signup,
	.btn-login {
		padding: 6px 14px;
		font-size: 12px;
	}

	.nav-tabs {
		gap: 16px;
		font-size: 12px;
	}

	.tab {
		padding: 10px 0;
	}

	.game-container {
		padding: 24px 12px;
	}
}

/* Animations */
@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.game-card {
	animation: fadeIn 0.3s ease-out;
}
