:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --text: #18202c;
  --muted: #556275;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --border: #e2e8f0;
  --radius: 14px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

.top-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
  flex-wrap: wrap;
}

.brand {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text);
  text-decoration: none;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 16px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
}

.nav-link:hover {
  background: var(--bg);
}

.nav-link.active {
  background: #e8f0fe;
  color: var(--primary);
}

.support-btn {
  background: #fef3c7;
  color: #92400e;
}

.hero {
  padding: 48px 0 24px;
}

.hero h1 {
  margin: 0 0 10px;
  font-size: clamp(1.75rem, 3vw, 2.4rem);
}

.hero p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  padding: 16px 0 56px;
}

.game-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-decoration: none;
  color: var(--text);
  min-height: 200px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.game-card:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.game-card h2 {
  margin: 0 0 8px;
  font-size: 1.4rem;
}

.game-card p {
  margin: 0 0 20px;
  color: var(--muted);
}

.card-cta {
  font-weight: 700;
  color: var(--primary);
}

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 20px 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}