@font-face {
	font-family: 'Nunito';
	src: url('/clientcss/NunitoSans-Bold.ttf') format('truetype');
	font-weight: 700;
	font-display: swap;
}
@font-face {
	font-family: 'Typeaway';
	src: url('/clientcss/TypeawayIsland.ttf') format('truetype');
	font-display: swap;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body.theme-hearth {
	margin: 0;
	background: #1b2030;
	color: #f2e9d8;
	font-family: 'Open Sans', system-ui, -apple-system, Segoe UI, sans-serif;
	background-image: radial-gradient(ellipse 1200px 600px at 50% -10%, rgba(232, 154, 60, 0.12), transparent 60%);
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

/* Top bar — logo centered */
.topbar {
	padding: 2rem 1.5rem 1rem;
	display: flex;
	justify-content: center;
	align-items: center;
}
.topbar .brand {
	width: clamp(220px, 35vw, 320px);
	height: auto;
	display: block;
}

/* Hero */
.hero {
	max-width: 560px;
	margin: 1.5rem auto 3.5rem;
	padding: 0 1.5rem;
	text-align: center;
}
.hero .display {
	font-family: 'Typeaway', 'Nunito', serif;
	font-size: clamp(2.5rem, 6vw, 3.5rem);
	font-weight: normal;
	line-height: 1.05;
	margin: 0 0 1rem;
	color: #f2e9d8;
}
.hero .lede {
	color: #c8c0ad;
	font-size: 1.05rem;
	max-width: 480px;
	margin: 0 auto 2rem;
	line-height: 1.5;
}

/* Sign-in panel — the visual anchor */
.signin-panel {
	background: linear-gradient(180deg, rgba(41, 47, 61, 0.85) 0%, rgba(41, 47, 61, 0.6) 100%);
	border: 1px solid rgba(232, 154, 60, 0.28);
	border-radius: 16px;
	padding: 1.75rem 2rem 1.5rem;
	max-width: 440px;
	margin: 0 auto;
	box-shadow:
		0 0 80px rgba(232, 154, 60, 0.12),
		0 12px 32px rgba(0, 0, 0, 0.35);
	position: relative;
}
.signin-panel::before {
	content: "";
	position: absolute;
	inset: -1px;
	border-radius: 16px;
	padding: 1px;
	background: linear-gradient(180deg, rgba(232, 154, 60, 0.45), rgba(232, 154, 60, 0));
	-webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
	-webkit-mask-composite: xor;
	mask-composite: exclude;
	pointer-events: none;
}
.signin-label {
	font-family: 'Nunito', sans-serif;
	font-weight: 700;
	letter-spacing: 0.18em;
	font-size: 0.75rem;
	color: #e89a3c;
	text-transform: uppercase;
	margin: 0 0 1.25rem;
}
.signin-panel .g_id_signin {
	display: flex;
	justify-content: center;
}
.signin-panel .hint {
	color: #8a8472;
	font-size: 0.8rem;
	max-width: 360px;
	margin: 1.25rem auto 0;
	line-height: 1.5;
}
.signin-panel .hint kbd {
	background: #1b2030;
	border: 1px solid #3a4256;
	border-radius: 3px;
	padding: 1px 5px;
	font-size: 0.8em;
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	color: #f2e9d8;
}

/* Games section — quieter so it doesn't outshine the sign-in */
.games {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 1.25rem;
	max-width: 880px;
	width: 100%;
	margin: 0 auto;
	padding: 0 1.5rem 4rem;
}
.games-heading {
	grid-column: 1 / -1;
	font-family: 'Nunito', sans-serif;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.25em;
	text-transform: uppercase;
	color: #7a8290;
	margin: 0 0 0.5rem;
	text-align: center;
}
.game-card {
	display: block;
	background: rgba(41, 47, 61, 0.55);
	border-radius: 12px;
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
	border: 1px solid rgba(255, 255, 255, 0.04);
	opacity: 0.92;
}
.game-card:hover,
.game-card:focus-visible {
	transform: translateY(-3px);
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
	outline: none;
	border-color: rgba(232, 154, 60, 0.4);
	opacity: 1;
}
.game-card .cover {
	aspect-ratio: 460 / 215;
	background-size: cover;
	background-position: center;
	background-color: #0c0d11;
}
.game-card .body {
	padding: 1rem 1.25rem 1.25rem;
}
.game-card h3 {
	font-family: 'Nunito', sans-serif;
	margin: 0 0 0.25rem;
	font-size: 1.15rem;
	color: #f2e9d8;
}
.game-card p {
	color: #a8a193;
	margin: 0 0 0.75rem;
	font-size: 0.9rem;
}
.game-card .cta {
	color: #e89a3c;
	font-weight: 600;
	font-size: 0.85rem;
}

/* Footer */
.foot {
	text-align: center;
	color: #7a8290;
	padding: 2rem 1.5rem;
	font-size: 0.85rem;
	margin-top: auto;
}

/* Small-screen tightening */
@media (max-width: 600px) {
	.topbar { padding: 1.25rem 1.25rem 0.75rem; }
	.hero { margin: 1rem auto 2.5rem; }
	.signin-panel { padding: 1.5rem 1.25rem 1.25rem; }
	.games { gap: 1rem; padding-bottom: 2.5rem; }
}
