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

body{
background:#0b1120;
color:white;
}

/* HEADER */

header{
display:flex;
justify-content:space-between;
align-items:center;
padding:18px 20px;
background:#020617;
flex-wrap:wrap;
gap:10px;
}

.logo{
font-size:20px;
font-weight:bold;
}

#search{
background:#1e293b;
border:none;
padding:10px;
border-radius:8px;
color:white;
}

/* FEATURED GAME */

.featured{
max-width:1200px;
margin:25px auto;
border-radius:12px;
overflow:hidden;
position:relative;
}

.featured img{
width:100%;
aspect-ratio:16/6;
object-fit:cover;
display:block;
}

.featured-text{
position:absolute;
bottom:20px;
left:20px;
background:rgba(0,0,0,0.5);
padding:15px;
border-radius:8px;
}

.play-btn{
background:#22c55e;
padding:8px 14px;
border-radius:6px;
color:white;
text-decoration:none;
display:inline-block;
margin-top:8px;
font-size:14px;
}

/* GAMES SECTION */

.games-section{
max-width:1200px;
margin:auto;
padding:20px;
}

/* GRID */

.games-grid{
display:grid;
grid-template-columns:repeat(auto-fill,200px);
justify-content:center;
gap:20px;
}

/* CARD */

.game-card{
width:200px;
height:220px;
background:#1e293b;
border-radius:12px;
overflow:hidden;
text-decoration:none;
color:white;
display:flex;
flex-direction:column;
transition:0.3s;
}

.game-card:hover{
transform:translateY(-6px);
box-shadow:0 10px 25px rgba(0,0,0,0.5);
}

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

.game-title{
flex:1;
display:flex;
align-items:center;
justify-content:center;
padding:10px;
text-align:center;
font-size:14px;
}

/* FOOTER */

footer{
text-align:center;
padding:25px;
background:#020617;
margin-top:40px;
}

/* MOBILE */

@media(max-width:768px){

header{
flex-direction:column;
align-items:flex-start;
}

#search{
width:100%;
}

/* Featured responsive */

.featured img{
aspect-ratio:16/9;
}

.featured-text{
position:absolute;
bottom:10px;
left:10px;
right:10px;
padding:10px;
}

/* Game grid */

.games-grid{
grid-template-columns:repeat(2,1fr);
}

.game-card{
width:100%;
height:200px;
}

.game-card img{
height:130px;
}

}
