:root {
  --bg: #090b10;
  --panel: #11141b;
  --text: #f5f5f5;
  --muted: #a8a8a8;
  --accent: #ff2b2b;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
}

.container {
  width: min(1200px, 92vw);
  margin-inline: auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(13, 15, 20, 0.96);
  border-bottom: 1px solid #1d232e;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 1.25rem;
}

.brand img {
  width: 156px;
  max-width: 40vw;
}

.main-nav,
.auth-links {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

a {
  color: var(--muted);
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

a:hover { color: var(--text); }

.btn-outline {
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 0.35rem 0.65rem;
}

.hero {
  position: relative;
  min-height: 78vh;
  display: grid;
  place-items: center;
  text-align: center;
  background: center / cover no-repeat url("../assets/images/wallpaper1.png");
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center, rgba(24, 28, 36, 0.15), rgba(6, 8, 12, 0.85)),
    repeating-radial-gradient(circle at center, transparent 0, transparent 2px, rgba(255, 255, 255, 0.03) 3px);
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1.2rem;
}

.hero-content img {
  width: min(500px, 62vw);
  justify-self: center;
}

.hero-content h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  text-shadow: 0 10px 35px rgba(0, 0, 0, 0.75);
}

.hero-cta {
  justify-self: center;
  border: 1px solid #a6adb7;
  color: var(--text);
  padding: 0.85rem 1.5rem;
}

.games {
  background: #090a0e;
  padding: 2rem 0 4rem;
}

.filter-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 0.5rem;
  margin-bottom: 1.7rem;
}

.filter-bar button {
  background: #151922;
  border: 1px solid #252d3b;
  color: #b9b9b9;
  min-height: 52px;
  text-transform: uppercase;
  font-weight: 600;
  cursor: pointer;
}

.filter-bar .active {
  background: #ff3a20;
  border-color: #ff3a20;
  color: #fff;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.35rem;
}

.game-card {
  background: #12151d;
  border: 1px solid #1f2531;
}

.game-card img {
  width: 100%;
  display: block;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.game-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem;
  background: #07090d;
}

.game-meta span {
  font-size: 0.75rem;
  color: #e5e5e5;
}

.site-footer {
  border-top: 1px solid #1f2025;
  background: #050608;
  color: #9a9a9a;
}

.footer-top {
  border-bottom: 1px solid #1d1d1f;
  padding: 1.25rem 0;
  color: #ff2f2f;
  font-size: 0.9rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.5rem 0 2.5rem;
}

.clock-wrap {
  display: flex;
  gap: 2rem;
}

.clock {
  color: #ff2f2f;
  font-size: 3rem;
  line-height: 1;
  font-weight: 700;
}

.date { margin: 0.2rem 0 0; }

@media (max-width: 900px) {
  .nav-wrap { flex-wrap: wrap; justify-content: center; padding: 0.7rem 0; }
  .main-nav, .auth-links { flex-wrap: wrap; justify-content: center; }
  .filter-bar { grid-template-columns: repeat(2, minmax(120px, 1fr)); }
  .footer-bottom { flex-direction: column; }
}