:root {
  --bg: #0f172a;
  --panel: #111827;
  --accent: #22d3ee;
  --accent-2: #a855f7;
  --text: #e5e7eb;
  --muted: #94a3b8;
  --border: #1f2937;
  --card-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  --radius: 16px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: radial-gradient(circle at 20% 20%, #132040, #0b1224 45%),
    radial-gradient(circle at 80% 30%, rgba(34, 211, 238, 0.14), transparent 45%),
    #0b1224;
  color: var(--text);
  min-height: 100vh;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px;
  position: sticky;
  top: 0;
  background: rgba(12, 18, 36, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 10;
}

.branding {
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  font-weight: 700;
  color: #0b1224;
  letter-spacing: 0.5px;
}

.nav-links a {
  color: var(--text);
  text-decoration: none;
  margin-left: 18px;
  padding: 8px 12px;
  border-radius: 12px;
  transition: background 0.2s ease, color 0.2s ease;
  font-weight: 600;
}

.nav-links a:hover {
  background: rgba(34, 211, 238, 0.12);
  color: #fff;
}

.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
}

.filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
  background: rgba(17, 24, 39, 0.8);
  border: 1px solid var(--border);
  padding: 16px;
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
}

.filter-group input,
.filter-group select {
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #0d162b;
  color: var(--text);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.game-card {
  background: rgba(17, 24, 39, 0.9);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.game-card:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 211, 238, 0.6);
}

.thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #111;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.thumb .status {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(0, 0, 0, 0.65);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.5px;
}

.card-content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.card-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pill {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  background: rgba(34, 211, 238, 0.12);
  color: var(--text);
  border: 1px solid rgba(34, 211, 238, 0.25);
}

.pill-mode {
  background: rgba(168, 85, 247, 0.12);
  border-color: rgba(168, 85, 247, 0.35);
}

h1 {
  margin: 0 0 4px;
}

h3 {
  margin: 0;
  font-size: 18px;
}

.description {
  color: var(--muted);
  line-height: 1.4;
  margin: 0;
}

.tech {
  font-size: 13px;
  color: #c7d2fe;
  margin: 0;
}

.button {
  display: inline-block;
  text-align: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #0b1224;
  text-decoration: none;
  padding: 12px;
  border-radius: 12px;
  font-weight: 700;
  margin-top: auto;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(168, 85, 247, 0.3);
}

.site-footer {
  max-width: 1200px;
  margin: 40px auto 0;
  padding: 24px;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  color: var(--muted);
}

.site-footer h4 {
  color: var(--text);
  margin-bottom: 6px;
}

.empty {
  color: var(--muted);
  grid-column: 1 / -1;
}

@media (max-width: 768px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .nav-links {
    width: 100%;
  }

  .nav-links a {
    margin-left: 0;
    margin-right: 8px;
  }
}
