Edit: I am using the natural logarithm in what follows.
I want to figure out how to show by hand that the maximum of $$\log(4)c+\log(3)a+\log(2)x$$ when $$a\geq 0, c\geq 0, x \geq 0, y \geq 0,$$ $$a+c+x+y=1,$$ $$(a+c)^2+(x+y)^2+2xc\leq 1-2\gamma,$$ where $\gamma$ is a fixed constant such that $4/25\leq \gamma \leq 1/4$, is $\frac{\log(6)}{2}+\frac{\sqrt{1-4\gamma}}{2}\log(3/2)$, which is given by $a=\frac{1+\sqrt{1-4\gamma}}{2}$, $x=1-a=\frac{1-\sqrt{1-4\gamma}}{2}$, $c=y=0$.
I have tried using Lagrange multipliers by changing the last constraint to an equality, but it becomes very messy and I get stuck.
I would also be happy if I could simply show that $\log(4)c+\log(3)a+\log(2)x \leq \frac{\log(6)}{2}+\frac{\sqrt{1-4\gamma}}{2}\log(3/2)$ for all such $a,c,x,y$. A method I have attempted is to use the concavity of $\log(x)$. The equation of the line that passes through $(2, \log(2))$ and $(3, \log(3))$ is $L(x)=\log(3/2)x-\log(9/8)$. Then by concavity of $\log(x)$ we have $\log(x)\leq L(x)$ for all integers $x$. Then
\begin{align*}&\log(4)c+\log(3)a+\log(2)x\\ &\leq L(4)c+L(3)a+L(2)x\\ &=\log(3/2) (4c+3a+2x+y)-\log(9/8)\\ &=\log(3/2)\left(\frac{5+3}{2}c+\frac{5+1}{2}a+\frac{5-1}{2}x+\frac{5-3}{2}y\right)-\log(9/8)\\ &=\log(3/2)\left(\frac{5+\sqrt{1-4\gamma}}{2}\right)-\log(9/8)+\log(3/2)\left(\frac{a-x+3(c-y)-\sqrt{1-4\gamma}}{2}\right)\\ &=\frac{\log(6)}{2}+\frac{\sqrt{1-4\gamma}}{2}\log(3/2)+\log(3/2)\left(\frac{a-x+3(c-y)-\sqrt{1-4\gamma}}{2}\right).\\ \end{align*} That means that to obtain the inequality I want, it would suffice to show that $a-x\leq 3(y-c)+\sqrt{1-4\gamma}$. However, I have not had success in proving this inequality. Any suggestions or help is immensely appreciated.
Another option would be to use perturbation techniques, but I do not have experience in this. Thank you for your help.

$\frac{\log(6)}{2}+\frac{\sqrt{1-4\gamma}}{2}\log(3/2)$ is not the maximum of $$f(c,a,x):=\log(4)c+\log(3)a+\log(2)x$$
For example, for $\gamma=4/25$, we have $$f(4/5,0,0)=\frac{\log(256)}{5}\color{red}{\gt}\frac{\log(162)}{5}=\frac{\log(6)}{2}+\frac{\sqrt{1-4(4/25)}}{2}\log(3/2)$$
In the following, let us prove that the maximum of $\log(4)c+\log(3)a+\log(2)x$ is $$\begin{cases}\log(2)(1+\sqrt{1-4\gamma})&\text{if $\ 4/25\le \gamma\lt\frac{\log(2)\log(4/3)}{(\log(8/3))^2}$} \\\\\frac{\log(6)}{2}+\frac{\sqrt{1-4\gamma}}{2}\log(3/2)&\text{if $\ \frac{\log(2)\log(4/3)}{(\log(8/3))^2}\le\gamma\le 1/4$}\end{cases}$$
We want to find the maximum of $f(c,a,x)$ under the condition that $$a\geq 0, c\geq 0, x \geq 0, 1-a-c-x \geq 0,$$ $$(a+c)^2+(1-a-c)^2+2xc\leq 1-2\gamma,4/25\leq \gamma \leq 1/4$$
Case 1 : $c=0$
We want to find the maximum of $f(0,a,x)$ under the condition that $$0\le x\le 1-a,\frac{1-\sqrt{1-4\gamma}}{2}\le a\le\frac{1+\sqrt{1-4\gamma}}{2}, 4/25\leq \gamma \leq 1/4$$
Therefore, we get $$\begin{align}f(0,a,x)&\le f(0,a,1-a) \\\\&=\log(3/2)a+\log(2) \\\\&\le\log(3/2)\frac{1+\sqrt{1-4\gamma}}{2}+\log(2) \\\\&=\frac{\log(6)}{2}+\frac{\sqrt{1-4\gamma}}{2}\log(3/2)\end{align}$$
Case 2 : $c\gt 0$
We want to find the maximum of $f(c,a,x)$ under the condition that $$a\ge 0, c\gt 0, 0\le 1-a-c,$$ $$0\le x\leq \min\bigg(1-a-c,\frac{1-2\gamma-(a+c)^2-(1-a-c)^2}{2c}\bigg),$$ $$0\le \frac{1-2\gamma-(a+c)^2-(1-a-c)^2}{2c}, 4/25\leq \gamma \leq 1/4$$ Note here that $$\min\bigg(1-a-c,\frac{1-2\gamma-(a+c)^2-(1-a-c)^2}{2c}\bigg)=\begin{cases}1-a-c&\text{if $\ a(1-a-c)\ge \gamma$} \\\\\frac{1-2\gamma-(a+c)^2-(1-a-c)^2}{2c}&\text{if $\ a(1-a-c)\lt \gamma$}\end{cases}$$
Case 2-1 : $a(1-a-c)\ge \gamma$
We have $0\le x\leq 1-a-c$ from which we obtain $$f(c,a,x)\le f(c,a,1-a-c)=\log(2)c+\log(3/2)a+\log(2):=g(c,a)$$
Suppose that $a=0$. Then, there is no $\gamma$ such that $0\ge\gamma$ and $4/25\leq \gamma \leq 1/4$. So, $a\gt 0$.
So, we want to find the maximum of $g(c,a)$ under the condition that $$0\lt c\le 1-a-\frac{\gamma}{a},\frac{1-\sqrt{1-4\gamma}}{2}\lt a\lt\frac{1+\sqrt{1-4\gamma}}{2}, 4/25\leq \gamma \leq 1/4$$ so $$g(c,a)\le g\bigg(1-a-\frac{\gamma}{a},a\bigg)=-\log(2)\frac{\gamma}{a}-\log(4/3)a+\log(4):=h(a)$$ We want to find the maximum of $h(a)$ under the condition that $$\frac{1-\sqrt{1-4\gamma}}{2}\lt a\lt\frac{1+\sqrt{1-4\gamma}}{2}, 4/25\leq \gamma \leq 1/4$$
We see that $h'(a)$ is decreasing with $$h'(a)=0\iff a=\sqrt{\frac{\log(2)}{\log(4/3)}\gamma}$$
If $4/25\le \gamma\lt \frac{\log(2)\log(4/3)}{(\log(8/3))^2}$, then $$\frac{1-\sqrt{1-4\gamma}}{2}\lt \sqrt{\frac{\log(2)}{\log(4/3)}\gamma}\lt \frac{1+\sqrt{1-4\gamma}}{2}$$ from which we have $$h(a)\le h\bigg(\sqrt{\frac{\log(2)}{\log(4/3)}\gamma}\bigg)=\log(4)-2\sqrt{\log(2)\log(4/3)\gamma}$$
If $\frac{\log(2)\log(4/3)}{(\log(8/3))^2}\le\gamma\le\frac 14$, then $$\frac{1+\sqrt{1-4\gamma}}{2}\le \sqrt{\frac{\log(2)}{\log(4/3)}\gamma}$$ So, $h'(a)$ is positive in $\frac{1-\sqrt{1-4\gamma}}{2}\lt a\lt\frac{1+\sqrt{1-4\gamma}}{2}$, so $h(a)$ is increasing from which we have $$h(a)\lt h\bigg(\frac{1+\sqrt{1-4\gamma}}{2}\bigg)=\frac{\log(6)}{2}+\frac{\sqrt{1-4\gamma}}{2}\log(3/2)$$
Case 2-2 : $a(1-a-c)\lt \gamma$
We have $$0\le x\leq \frac{1-2\gamma-(a+c)^2-(1-a-c)^2}{2c}$$ from which we obtain $$\begin{align}f(c,a,x)&\le f\bigg(c,a,\frac{1-2\gamma-(a+c)^2-(1-a-c)^2}{2c}\bigg) \\\\&=\log(2)c+\log(3/4)a+\log(2)\frac{-\gamma-a^2+a+c}{c}:=j(c,a)\end{align}$$ where $$\frac{\partial j}{\partial c}=\log(2)\frac{c^2+\gamma+a^2-a}{c^2}$$
We want to maximize $j(c,a)$ under the condition that $$0\le a\lt \frac{1+\sqrt{1-4\gamma}}{2}, 0\lt c\le 1-a,\frac{a-a^2-\gamma}{a}\lt c$$ $$\frac{1-2a-\sqrt{1-4\gamma}}{2}\le c\le \frac{1-2a+\sqrt{1-4\gamma}}{2}, 4/25\leq \gamma \leq 1/4$$
Case 2-2-1 : $\frac{1-\sqrt{1-4\gamma}}{2}\lt a\lt\frac{1+\sqrt{1-4\gamma}}{2}$
Then, we have
$$\sqrt{a-a^2-\gamma}\ge\frac{a-a^2-\gamma}{a}$$
$$\small\frac{1-2a-\sqrt{1-4\gamma}}{2}\le 0\le \frac{a-a^2-\gamma}{a}\lt \frac{1-2a+\sqrt{1-4\gamma}}{2}\lt 1-a$$
So, we want to maximize $j(c,a)$ under the condition that $$\frac{1-\sqrt{1-4\gamma}}{2}\lt a\le\frac{1+\sqrt{1-4\gamma}}{2},\frac{a-a^2-\gamma}{a}\lt c\le \frac{1-2a+\sqrt{1-4\gamma}}{2}, 4/25\leq \gamma \leq 1/4$$
Using that $$\frac{\partial j}{\partial c}=\log(2)\frac{c^2+\gamma+a^2-a}{c^2}\ge 0\iff c\ge \sqrt{a-a^2-\gamma}$$ we have $$\begin{align}j(c,a)&\le\max\bigg(j\bigg(\frac{a-a^2-\gamma}{a},a\bigg),j\bigg(\frac{1-2a+\sqrt{1-4\gamma}}{2},a\bigg)\bigg) \\\\&=\begin{cases}j\bigg(\frac{a-a^2-\gamma}{a},a\bigg)&\text{if $\ a\ge\frac{1+\sqrt{1-4\gamma}}{4}$} \\\\j\bigg(\frac{1-2a+\sqrt{1-4\gamma}}{2},a\bigg)&\text{if $\ a\lt\frac{1+\sqrt{1-4\gamma}}{4}$}\end{cases}\end{align}$$
Case 2-2-1-1 : $\frac{1+\sqrt{1-4\gamma}}{4}\le\frac{1-\sqrt{1-4\gamma}}{2}\ (\le a)$ which holds only when $2/9\le\gamma\le 1/4$
$$\begin{align}j(c,a)&\le j\bigg(\frac{a-a^2-\gamma}{a},a\bigg) \\\\&=h(a) \\\\&\lt h\bigg(\frac{1+\sqrt{1-4\gamma}}{2}\bigg) \\\\&=\frac{\log(6)}{2}+\frac{\sqrt{1-4\gamma}}{2}\log(3/2)\end{align}$$
Case 2-2-1-2 : $\frac{1-\sqrt{1-4\gamma}}{2}\lt\frac{1+\sqrt{1-4\gamma}}{4}\lt\frac{1+\sqrt{1-4\gamma}}{2}$ which holds only when $4/25\le\gamma\lt 2/9$
Case 2-2-1-2-1 : $\frac{1-\sqrt{1-4\gamma}}{2}\lt a\le\frac{1+\sqrt{1-4\gamma}}{4}$
$$\begin{align}j(c,a)&\le j\bigg(\frac{1-2a+\sqrt{1-4\gamma}}{2},a\bigg) \\\\&=\log(2)(1+\sqrt{1-4\gamma})-\log(4/3)a \\\\&\lt \log(2)(1+\sqrt{1-4\gamma})-\log(4/3)\frac{1-\sqrt{1-4\gamma}}{2} \\\\&=\frac{\log(3)}{2}+\frac{\sqrt{1-4\gamma}}{2}\log(16/3)\end{align}$$
Case 2-2-1-2-2 : $\frac{1+\sqrt{1-4\gamma}}{4}\lt a\lt\frac{1+\sqrt{1-4\gamma}}{2}$
$$\begin{align}j(c,a)&\le j\bigg(\frac{1-2a+\sqrt{1-4\gamma}}{2},a\bigg) \\\\&=\log(2)(1+\sqrt{1-4\gamma})-\log(4/3)a \\\\&\lt\log(2)(1+\sqrt{1-4\gamma})-\log(4/3)\frac{1+\sqrt{1-4\gamma}}{4} \\\\&=\frac{\log(12)}{4}+\frac{\sqrt{1-4\gamma}}{4}\log(12)\end{align}$$
Case 2-2-2 : $0\le a\le \frac{1-\sqrt{1-4\gamma}}{2}$
Since $\frac{\partial j}{\partial c}=\log(2)\frac{c^2+\gamma+a^2-a}{c^2}\gt 0$, we see that $j(c,a)$ is increasing on $c$. We have
$$\small\frac{a-a^2-\gamma}{a}\le 0\le \frac{1-2a-\sqrt{1-4\gamma}}{2}\le \frac{1-2a+\sqrt{1-4\gamma}}{2}\le 1-a$$
So, we want to maximize $j(c,a)$ under the condition that $$0\le a\le \frac{1-\sqrt{1-4\gamma}}{2}, \frac{1-2a-\sqrt{1-4\gamma}}{2}\le c\le \frac{1-2a+\sqrt{1-4\gamma}}{2}, 4/25\leq \gamma \leq 1/4$$
Hence, we get $$\begin{align}j(c,a)&\le j\bigg(\frac{1-2a+\sqrt{1-4\gamma}}{2},a\bigg) \\\\&=\log(2)(1+\sqrt{1-4\gamma})-\log(4/3)a \\\\&\le\log(2)(1+\sqrt{1-4\gamma})\end{align}$$
Conclusion : The maximum of $\log(4)c+\log(3)a+\log(2)x$ is $$\begin{cases}\log(2)(1+\sqrt{1-4\gamma})&\text{if $\ 4/25\le \gamma\lt\frac{\log(2)\log(4/3)}{(\log(8/3))^2}$} \\\\\frac{\log(6)}{2}+\frac{\sqrt{1-4\gamma}}{2}\log(3/2)&\text{if $\ \frac{\log(2)\log(4/3)}{(\log(8/3))^2}\le\gamma\le 1/4$}\end{cases}$$