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

:root {
--background: #0b0d12;
--card: #131722;
--card-hover: #191e2b;
--text: #ffffff;
--muted: #9299aa;
--border: #252b38;
--accent: #6c63ff;
--accent-hover: #7b73ff;
}

body {
min-height: 100vh;
background: var(--background);
color: var(--text);
font-family: Arial, Helvetica, sans-serif;
transition: background 0.2s, color 0.2s;
}

/* NAVBAR */

.navbar {
height: 70px;
display: flex;
align-items: center;
gap: 25px;
padding: 0 5%;
border-bottom: 1px solid var(--border);
background: rgba(11, 13, 18, 0.92);
position: sticky;
top: 0;
z-index: 100;
backdrop-filter: blur(12px);
}

.logo {
display: flex;
align-items: center;
gap: 10px;
font-size: 20px;
font-weight: bold;
white-space: nowrap;
}

.logo svg {
width: 25px;
color: var(--accent);
}

/* SEARCH */

.search-container {
max-width: 500px;
width: 100%;
margin: auto;
position: relative;
}

.search-container svg {
position: absolute;
left: 15px;
top: 50%;
transform: translateY(-50%);
width: 18px;
color: var(--muted);
}

.search-container input {
width: 100%;
height: 42px;
padding: 0 15px 0 45px;
border-radius: 10px;
border: 1px solid var(--border);
background: var(--card);
color: var(--text);
outline: none;
}

.search-container input:focus {
border-color: var(--accent);
}

/* BUTTONS */

button {
font-family: inherit;
}

.icon-button {
width: 42px;
height: 42px;
border: 1px solid var(--border);
border-radius: 10px;
background: var(--card);
color: var(--text);
cursor: pointer;
}

.icon-button:hover {
background: var(--card-hover);
}

/* HERO */

.hero {
max-width: 1200px;
margin: 45px auto 25px;
padding: 70px 55px;
border: 1px solid var(--border);
border-radius: 20px;
background:
radial-gradient(
circle at 80% 20%,
rgba(108, 99, 255, 0.25),
transparent 35%
),
var(--card);
}

.small-title {
color: var(--accent);
font-size: 12px;
font-weight: bold;
letter-spacing: 2px;
margin-bottom: 8px;
}

.hero h1 {
font-size: clamp(42px, 7vw, 72px);
margin-bottom: 15px;
}

.hero-text {
color: var(--muted);
font-size: 18px;
margin-bottom: 30px;
}

.play-button {
display: inline-flex;
align-items: center;
gap: 9px;
border: none;
border-radius: 10px;
padding: 13px 20px;
background: var(--accent);
color: white;
font-weight: bold;
cursor: pointer;
}

.play-button:hover {
background: var(--accent-hover);
}

/* CATEGORIES */

.categories {
max-width: 1200px;
margin: 25px auto;
display: flex;
gap: 10px;
flex-wrap: wrap;
}

.category {
padding: 9px 17px;
border-radius: 999px;
border: 1px solid var(--border);
background: var(--card);
color: var(--muted);
cursor: pointer;
}

.category:hover {
color: var(--text);
}

.category.active {
background: var(--accent);
border-color: var(--accent);
color: white;
}

/* GAME SECTION */

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

.section-header {
display: flex;
align-items: end;
justify-content: space-between;
margin-bottom: 20px;
}

.section-header h2 {
font-size: 30px;
}

#gameCount {
color: var(--muted);
}

/* GAME GRID */

.games-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 18px;
}

.game-card {
overflow: hidden;
border: 1px solid var(--border);
border-radius: 15px;
background: var(--card);
transition: transform 0.2s, border-color 0.2s;
}

.game-card:hover {
transform: translateY(-4px);
border-color: #3a4254;
}

/* GAME IMAGE */

.game-image {
height: 170px;
display: flex;
align-items: center;
justify-content: center;
font-size: 42px;
font-weight: bold;
}

.game-2048 {
background: linear-gradient(135deg, #4d3b22, #a77939);
}

.game-snake {
background: linear-gradient(135deg, #153d2b, #278653);
}

.game-clicker {
background: linear-gradient(135deg, #25234d, #635bdb);
}

/* GAME INFO */

.game-info {
display: flex;
justify-content: space-between;
align-items: center;
padding: 16px;
}

.game-info h3 {
margin-bottom: 5px;
}

.game-info p {
color: var(--muted);
font-size: 13px;
}

.favorite {
border: none;
background: transparent;
color: var(--muted);
cursor: pointer;
}

.favorite:hover {
color: #ffd166;
}

.favorite.active {
color: #ffd166;
}

/* PLAY */

.game-button {
margin: 0 16px 16px;
height: 40px;
display: flex;
align-items: center;
justify-content: center;
gap: 8px;
border-radius: 8px;
background: #202635;
color: white;
text-decoration: none;
font-weight: bold;
}

.game-button:hover {
background: var(--accent);
}

/* NO RESULTS */

.no-results {
display: none;
text-align: center;
padding: 70px 20px;
color: var(--muted);
}

.no-results svg {
width: 45px;
margin-bottom: 15px;
}

.no-results h3 {
color: var(--text);
margin-bottom: 8px;
}

/* FOOTER */

footer {
text-align: center;
padding: 40px;
color: var(--muted);
border-top: 1px solid var(--border);
}

/* LIGHT MODE */

body.light {
--background: #f5f6fa;
--card: #ffffff;
--card-hover: #f0f1f5;
--text: #151821;
--muted: #626979;
--border: #dfe2e8;
}

/* MOBILE */

@media (max-width: 800px) {

```
.navbar {
    padding: 0 15px;
    gap: 10px;
}

.logo span {
    display: none;
}

.hero {
    margin: 20px 15px;
    padding: 50px 25px;
}

.categories,
.games-section {
    margin-left: 15px;
    margin-right: 15px;
}

.games-grid {
    grid-template-columns: 1fr;
}
```

}
