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

:root {
  --bg: #06101f;
  --bg-2: #0a1630;
  --card: rgba(255,255,255,0.06);
  --line: rgba(255,255,255,0.1);
  --text: #eef3ff;
  --muted: #9cabcb;
  --cyan: #5eead4;
  --blue: #60a5fa;
  --shadow: 0 20px 50px rgba(0,0,0,0.35);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(96,165,250,0.16), transparent 28%),
    radial-gradient(circle at right top, rgba(94,234,212,0.10), transparent 24%),
    linear-gradient(180deg, #07101f 0%, #040814 100%);
  min-height: 100vh;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(4,8,18,0.82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 800;
  font-size: 1.2rem;
}

.brand-text small {
  display: block;
  color: var(--cyan);
  font-size: 0.85rem;
  margin-top: 2px;
}

.brand-logo {
  width: 52px;
  height: 52px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.nav-links a {
  min-width: 110px;
  text-align: center;
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
  color: var(--muted);
  transition: 0.25s ease;
  border: 1px solid transparent;
}

.nav-links a:hover {
  color: var(--text);
  background: rgba(255,255,255,0.06);
  border-color: var(--line);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.22);
}

.hero {
  padding: 72px 0 46px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 28px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(94,234,212,0.22);
  background: rgba(94,234,212,0.08);
  color: var(--cyan);
  border-radius: 999px;
  padding: 10px 14px;
  margin-bottom: 18px;
}

.eyebrow img {
  width: 18px;
  height: 18px;
}

.hero h1 {
  font-size: clamp(2.3rem, 4vw, 4.8rem);
  line-height: 1.04;
  margin-bottom: 16px;
}

.hero h1 span {
  color: var(--cyan);
}

.hero-copy p,
.section-head p,
.footer p,
.footer-copy,
.empty-state {
  color: var(--muted);
}

.hero-copy p {
  line-height: 1.8;
  font-size: 1.05rem;
  max-width: 680px;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  border: none;
  border-radius: 16px;
  padding: 14px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.btn img {
  width: 18px;
  height: 18px;
}

.btn:hover,
.page-btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: #07111f;
  box-shadow: var(--shadow);
}

.btn-secondary {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--line);
  color: var(--text);
}

.btn.small {
  padding: 12px 16px;
  width: 100%;
}

.hero-panel {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.03));
  border-radius: 28px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.badge {
  display: inline-block;
  padding: 8px 12px;
  background: rgba(96,165,250,0.12);
  border: 1px solid rgba(96,165,250,0.22);
  border-radius: 999px;
  color: var(--blue);
  margin-bottom: 16px;
  font-size: 0.9rem;
}

.hero-panel-top h2 {
  font-size: 2rem;
  margin-bottom: 8px;
}

.hero-panel-top p {
  color: var(--muted);
  margin-bottom: 20px;
}

.hero-panel-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.mini-card {
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.05);
  border-radius: 20px;
  padding: 18px;
}

.mini-card img {
  width: 28px;
  height: 28px;
  margin-bottom: 14px;
}

.mini-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.05rem;
}

.mini-card span {
  color: var(--muted);
  font-size: 0.95rem;
}

.downloads-section {
  padding: 32px 0 70px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.section-head h2 {
  font-size: clamp(1.6rem, 2.5vw, 2.5rem);
  margin-bottom: 8px;
}

.toolbar {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.search-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 280px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0 14px;
}

.search-wrap img {
  width: 18px;
  height: 18px;
}

.search-wrap input,
.toolbar select {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  color: var(--text);
  padding: 15px 0;
  font-size: 0.98rem;
}

.toolbar select {
  width: 240px;
  padding: 15px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,0.05);
}

.toolbar select option {
  color: #111827;
}

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

.game-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--card);
  box-shadow: var(--shadow);
  display: none;
  flex-direction: column;
}

.game-cover {
  min-height: 190px;
  display: grid;
  place-items: center;
  font-size: 2rem;
  font-weight: 900;
  text-align: center;
  letter-spacing: 1px;
  padding: 20px;
}

.game-cover.cs { background: linear-gradient(135deg, #f59e0b, #ef4444); }
.game-cover.vice { background: linear-gradient(135deg, #06b6d4, #2563eb); }
.game-cover.san { background: linear-gradient(135deg, #4ade80, #15803d); }
.game-cover.nfs { background: linear-gradient(135deg, #f472b6, #7c3aed); }
.game-cover.pes { background: linear-gradient(135deg, #fde047, #f97316); }
.game-cover.blur { background: linear-gradient(135deg, #c084fc, #2563eb); }
.game-cover.red { background: linear-gradient(135deg, #ef4444, #7f1d1d); }
.game-cover.gray { background: linear-gradient(135deg, #94a3b8, #334155); }
.game-cover.green { background: linear-gradient(135deg, #22c55e, #14532d); }
.game-cover.orange { background: linear-gradient(135deg, #f97316, #7c2d12); }
.game-cover.gold { background: linear-gradient(135deg, #facc15, #854d0e); }
.game-cover.pink { background: linear-gradient(135deg, #fb7185, #f97316); }
.game-cover.sky { background: linear-gradient(135deg, #38bdf8, #7c3aed); }
.game-cover.blue { background: linear-gradient(135deg, #60a5fa, #1d4ed8); }
.game-cover.dark { background: linear-gradient(135deg, #9ca3af, #111827); }
.game-cover.yellowred { background: linear-gradient(135deg, #facc15, #dc2626); }
.game-cover.aqua { background: linear-gradient(135deg, #38bdf8, #0f766e); }
.game-cover.purplepink { background: linear-gradient(135deg, #8b5cf6, #ec4899); }

.game-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}

.game-top h3 {
  margin-bottom: 10px;
}

.tag-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag-list span {
  border: 1px solid var(--line);
  color: var(--muted);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.78rem;
}

.game-body p {
  color: var(--muted);
  line-height: 1.7;
}

.game-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 0.9rem;
}

.empty-state {
  display: none;
  text-align: center;
  margin-top: 26px;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.page-btn {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.05);
  color: var(--text);
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.page-btn.active {
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: #07111f;
  box-shadow: var(--shadow);
}

.footer {
  border-top: 1px solid var(--line);
  padding: 34px 0;
  background: rgba(0,0,0,0.18);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.footer h3 {
  margin-bottom: 8px;
}

@media (max-width: 1100px) {
  .hero-grid,
  .games-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-copy,
  .hero-panel {
    grid-column: span 2;
  }
}

@media (max-width: 820px) {
  .nav-inner,
  .nav-links,
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero,
  .downloads-section {
    padding-top: 42px;
  }

  .games-grid,
  .hero-panel-grid {
    grid-template-columns: 1fr;
  }

  .toolbar {
    flex-direction: column;
  }

  .toolbar select,
  .search-wrap {
    width: 100%;
  }

  .nav-links a {
    width: 100%;
  }
}
