:root {
	--bg-start: #fff7e8;
	--bg-mid: #ffe4c6;
	--bg-end: #ffd3b5;
	--surface: #fffdf8;
	--surface-strong: #ffffff;
	--text: #1f2430;
	--muted: #5f677a;
	--line: #e6d9ca;
	--accent: #ff7b36;
	--accent-strong: #d85d19;
	--card-shadow: 0 12px 28px rgba(71, 35, 11, 0.12);
	--radius: 16px;
}

* {
	box-sizing: border-box;
}

body {
	margin: 0 auto;
	max-width: 1800px;
	padding: 6px;
	align-items: center;
	color: var(--text);
	background:
		radial-gradient(circle at 12% 10%, rgba(255, 255, 255, 0.85) 0, rgba(255, 255, 255, 0) 35%),
		radial-gradient(circle at 88% 4%, rgba(255, 172, 115, 0.35) 0, rgba(255, 172, 115, 0) 30%),
		linear-gradient(145deg, var(--bg-start) 0%, var(--bg-mid) 48%, var(--bg-end) 100%);
	font-family: "Droid Sans", "Segoe UI", Arial, sans-serif;
	font-size: 16px;
}

h1,
h2,
h3,
h4 {
	font-family: "Yanone Kaffeesatz", "Trebuchet MS", sans-serif;
	font-weight: 700;
	letter-spacing: 0.3px;
	margin: 0;
}

h1 {
	font-size: clamp(2.1rem, 3.4vw, 3rem);
	margin: 8px 0 6px;
	text-transform: uppercase;
	color: #201312;
}

h2 {
	font-size: clamp(1.9rem, 3vw, 2.4rem);
	margin: 26px 0 14px;
}

h3 {
	font-size: clamp(1.5rem, 2.3vw, 1.9rem);
	margin: 24px 0 12px;
}

h4 {
	font-size: clamp(1.2rem, 1.8vw, 1.5rem);
	margin: 20px 0 10px;
}

a {
	color: #1f2b3f;
	font-weight: 700;
	transition: color 0.25s ease, background-color 0.25s ease, transform 0.25s ease;
}

a:hover {
	color: #111;
}

.nu a {
	text-decoration: none;
}

.b {
	margin: 10px 6px;
	padding: 6px;
	text-align: center;
}

.o {
	padding: 0;
	background: linear-gradient(180deg, var(--surface-strong), var(--surface));
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--card-shadow);
	overflow: hidden;
	animation: riseIn 0.55s ease both;
}

.topnav {
	margin: 4px 6px 12px;
	padding: 8px;
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	text-align: center;
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.55);
	backdrop-filter: blur(6px);
	border: 1px solid rgba(255, 255, 255, 0.8);
}

.topnav a,
.topnav .button {
	text-decoration: none;
	font-family: "Yanone Kaffeesatz", sans-serif;
	font-size: 1.45rem;
	font-weight: 700;
	line-height: 1;
	white-space: nowrap;
	padding: 10px 14px;
	border-radius: 999px;
	background: #fff3e4;
	border: 1px solid #f0c8a9;
}

.topnav a:hover,
.topnav .button:hover {
	background: #ffe2ca;
	transform: translateY(-1px);
}

.selectedbutton {
	background-color: #fff;
}

.pag {
	margin-top: 14px;
}

.pag a {
	font-family: "Yanone Kaffeesatz", sans-serif;
	font-size: 1.5rem;
	font-weight: 700;
	text-decoration: none;
}

.gl {
	display: grid;
	gap: 12px;
	grid-template-columns: 1fr;
}

.gt {
	min-height: 120px;
	text-decoration: none;
	font-weight: 400;
	display: flex;
	justify-content: flex-start;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
	background: linear-gradient(130deg, #ffffff 0%, #fff8ee 100%);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
	animation: riseIn 0.55s ease both;
}

.gt:hover {
	transform: translateY(-3px);
	box-shadow: 0 14px 32px rgba(71, 35, 11, 0.16);
}

.gt img {
	width: 120px;
	height: 120px;
	flex-grow: 0;
	flex-shrink: 0;
	object-fit: cover;
	border-right: 1px solid #efdfcf;
}

.gt .t {
	padding: 10px 10px 8px;
	min-height: 120px;
	flex-grow: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
}

.gt .t b {
	width: 100%;
	margin-bottom: 4px;
	font-family: "Yanone Kaffeesatz", sans-serif;
	font-size: clamp(1.4rem, 2vw, 1.75rem);
	line-height: 1.05;
	color: #1c1f2a;
}

.gt .t span {
	width: 100%;
	color: var(--muted);
	font-size: 0.96rem;
	line-height: 1.35;
}

#gla {
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 0;
	grid-row: span 2;
	order: 3;
	overflow: hidden;
	min-height: 280px;
}

#bha {
	display: flex;
	justify-content: center;
	align-items: center;
	overflow: hidden;
	min-height: 90px;
}

.recent-games-container {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin: 12px 0;
}

.recent-label {
	font-family: "Yanone Kaffeesatz", sans-serif;
	font-weight: 700;
	font-size: 1.6rem;
}

.recent-games-grid {
	display: flex;
	gap: 10px;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	flex-wrap: wrap;
	min-height: 62px;
}

.recent-game {
	width: 60px;
	height: 60px;
	display: inline-block;
	transition: transform 0.2s ease, filter 0.2s ease;
}

.recent-game:hover {
	transform: scale(1.1);
	filter: saturate(1.1);
}

.recent-game img {
	width: 100%;
	height: 100%;
	border-radius: 10px;
	border: 1px solid #f2d8c2;
}

.gl > .gt:nth-child(1) { animation-delay: 0.04s; }
.gl > .gt:nth-child(2) { animation-delay: 0.08s; }
.gl > .gt:nth-child(3) { animation-delay: 0.12s; }
.gl > .gt:nth-child(4) { animation-delay: 0.16s; }
.gl > .gt:nth-child(5) { animation-delay: 0.2s; }
.gl > .gt:nth-child(6) { animation-delay: 0.24s; }

@keyframes riseIn {
	from {
		opacity: 0;
		transform: translateY(8px) scale(0.99);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

@media only screen and (min-width: 750px) {
	body {
		padding: 0 1.5%;
	}

	.gl {
		grid-template-columns: 1fr 1fr;
	}

	#gla {
		order: 2;
	}
}

@media only screen and (min-width: 1172px) {
	.gl {
		grid-template-columns: 1fr 1fr 1fr;
	}

	#gla {
		order: 3;
	}
}

@media only screen and (min-width: 1524px) {
	.gl {
		grid-template-columns: 1fr 1fr 1fr 1fr;
	}

	#gla {
		order: 4;
	}
}

@media (max-width: 520px) {
	.topnav a,
	.topnav .button {
		font-size: 1.2rem;
		padding: 9px 12px;
	}

	.gt {
		min-height: 108px;
	}

	.gt img {
		width: 108px;
		height: 108px;
	}

	.gt .t {
		min-height: 108px;
		padding: 8px;
	}

	.gt .t span {
		font-size: 0.9rem;
	}
}