/* ══ GAMES PAGE ══ */
.games-header {
  padding: 12px 24px 32px;
  max-width: 1100px;
  margin: 0 auto;
}
.games-header h1 {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 6px;
}
.games-header p {
  font-size: 14px;
  color: var(--text-secondary);
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 12px 24px 60px;
  max-width: 1100px;
  margin: 0 auto;
}

.game-card {
  background: var(--bg-primary);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s;
}
.game-card:hover {
  border-color: var(--border-strong);
}

.game-cover {
  width: 100%;
  height: 100%;
  background: var(--bg-secondary);
  overflow: hidden;

  display: flex;
  align-items: center;
  justify-content: center;
}
.game-cover img {
  width: auto;
  height: auto;
  max-width: 400px;
  max-height: 180px;

  image-rendering: pixelated;
  flex-shrink: 0;
}

.game-info {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.game-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.game-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}
.genre-tag {
  font-size: 11px;
  font-weight: 500;
  padding: 3px 9px;
  border-radius: 20px;
  background: var(--bg-secondary);
  border: 0.5px solid var(--border);
  color: var(--text-secondary);
  white-space: nowrap;
}
.date-tag {
  font-size: 11px;
  font-weight: 500;
  padding: 3px 9px;
  border-radius: 20px;
  background: #2f356a;
  border: 0.5px solid var(--border);
  color: var(--text-secondary);
  white-space: nowrap;
}

.btn-play, .btn-download, .btn-itch, .btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-strong);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  background: var(--bg-primary);
  transition: background 0.15s, transform 0.15s;
  margin-top: auto;
}
.btn:hover { background: var(--bg-secondary); transform: translateY(-1px); }
.btn-play:hover { background: #527f39; transform: translateY(-1px); }
.btn-download:hover { background: #2c549e; transform: translateY(-1px); }
.btn-itch:hover { background: #793a80; transform: translateY(-1px); }

.btn-disabled, .btn-play-inactive, .btn.disabled {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-strong);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  background: var(--bg-primary);
  margin-top: auto;
  opacity: 0.7;
  cursor: not-allowed;
  pointer-events: none;
}


.games-title,
.games-grid-title-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding: 6px 0;
  margin-bottom: 12px;
  text-align: center;
}

.games-title h2,
.games-grid-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.2;
  max-width: 1100px;
  width: 100%;
  padding: 0 24px;
}

.games-title p {
  margin: 6px 0 0;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.5;
}