@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: 'Poppins', Arial, sans-serif;
}

body {
	background: #080f0f;
	color: #ffffff;
	min-height: 100vh;
}

body::before {
	content: '';
	position: fixed;
	inset: 0;
	background-image: radial-gradient(rgba(255, 255, 255, 0.05) 5px, transparent 1px);
	background-size: 28px 28px;
	z-index: -1;
	pointer-events: none;
}

.navbar {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
	background: #111f1f;
	padding: 20px 0;
	position: fixed;
	top: 0;
	left: 0;
	width: 62px;
	height: 100vh;
	z-index: 9999;
	border-right: 2px solid #2a4a4a;
	box-shadow: 2px 0 12px rgba(0,0,0,0.5);
}

.nav-logo {
	width: 38px;
	height: 38px;
	object-fit: contain;
	border-radius: 8px;
	cursor: pointer;
	transition: transform 0.2s ease;
	flex-shrink: 0;
}

.nav-logo:hover {
	transform: scale(1.2);
}

.nav-btns {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
}

.nav-btn {
	text-decoration: none;
	display: flex;
	align-items: center;
	justify-content: center;
	background: transparent;
	color: #8ab0b0;
	border: none;
	padding: 8px;
	cursor: pointer;
	transition: color 0.2s ease, transform 0.2s ease;
}

.nav-btn i {
	font-size: 1.1rem;
}

.nav-btn:hover {
	color: #fff;
	transform: scale(1.25);
}

.nav-btn.active {
	color: #fff;
}

#content {
	margin-left: 62px;
	width: calc(100vw - 62px);
	min-height: 100vh;
	padding: 40px 20px;
	opacity: 1;
	transition: opacity 0.12s ease;
}

h1 {
	font-size: 2.5rem;
	color: #d0d0d0;
	margin-bottom: 10px;
}

p {
	font-size: 1.1rem;
	color: #7a7a7a;
}

/* game cards */
.games-grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 16px;
	padding: 20px;
}

.game-card {
	width: 160px;
	cursor: pointer;
	border-radius: 12px;
	overflow: hidden;
	background: #131f1f;
	border: 1px solid #1e3232;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.game-card:hover {
	transform: scale(1.06);
	box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5);
}

.game-card img {
	width: 100%;
	height: 160px;
	object-fit: cover;
	display: block;
}

.game-card-name {
	padding: 8px 10px;
	font-size: 0.8rem;
	color: #ccc;
	text-align: center;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* game sandbox overlay */
#game-overlay {
	position: fixed;
	top: 0;
	left: 62px;
	right: 0;
	bottom: 0;
	background: #080f0f;
	z-index: 5000;
	display: flex;
	flex-direction: column;
}

#game-overlay-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 18px;
	background: #0d1818;
	border-bottom: 1px solid #1e3232;
	flex-shrink: 0;
}

#game-overlay-title {
	font-size: 0.95rem;
	color: #ccc;
}

#game-overlay-close {
	background: transparent;
	border: none;
	color: #8ab0b0;
	font-size: 1.2rem;
	cursor: pointer;
	transition: color 0.2s ease, transform 0.2s ease;
}

#game-overlay-close:hover {
	color: #fff;
	transform: scale(1.2);
}

#game-frame {
	flex: 1;
	border: none;
	width: 100%;
}
