/* GrassGames home (index) — layout replaces legacy nested tables */

.gg-home {
	box-sizing: border-box;
	max-width: 1140px;
	margin: 0 auto;
	padding: 0.75rem 1rem 2.5rem;
	font-family: Helvetica, Arial, sans-serif;
	color: #222;
	text-align: center;
}

.gg-home *,
.gg-home *::before,
.gg-home *::after {
	box-sizing: border-box;
}

.gg-home__intro {
	margin: 0 auto 1rem;
	max-width: 42rem;
	line-height: 1.5;
}

/* Fade line: thin strip, capped width. */
.gg-home__rule {
	display: block;
	width: min(100%, 40rem);
	max-width: 100%;
	height: 3px;
	margin: 1.75rem auto 1.85rem;
	object-fit: cover;
	object-position: center;
	border: 0;
	padding: 0;
}

/* Side art + link list: grid keeps one row on desktop (no flex-wrap split). */
.gg-home__quick {
	display: grid;
	width: 100%;
	max-width: 1080px;
	margin: 1.25rem auto 2rem;
	gap: 0.75rem 1rem;
	align-items: center;
	justify-content: center;
}

.gg-home__quick-flank {
	width: 136px;
	max-width: 100%;
	height: auto;
	object-fit: contain;
	display: block;
}

@media (min-width: 768px) {
	/* Equal side bands so the link block sits visually centered between the art. */
	.gg-home__quick {
		grid-template-columns: 1fr auto 1fr;
		grid-template-areas: "flankL core flankR";
		column-gap: 2rem;
		padding-inline: 0.75rem;
	}

	/* Extra space vs. right art (paddle asset has more built-in padding). */
	.gg-home__quick-flank--left {
		grid-area: flankL;
		justify-self: end;
		align-self: center;
		margin-inline-end: 1rem;
	}

	.gg-home__quick-core {
		grid-area: core;
		justify-self: center;
		width: auto;
		max-width: min(40rem, 100%);
		min-width: 0;
	}

	.gg-home__quick-flank--right {
		grid-area: flankR;
		justify-self: start;
		align-self: center;
	}
}

@media (max-width: 767px) {
	.gg-home__quick {
		display: block;
		max-width: 26rem;
		margin-left: auto;
		margin-right: auto;
	}

	.gg-home__quick-flank {
		display: none;
	}

	.gg-home__quick-core {
		width: 100%;
		max-width: none;
		margin-inline: 0;
	}
}

.gg-home__quick-core {
	text-align: start;
	max-width: 40rem;
	margin-inline: auto;
}

/* One row per game: star + link (all viewports). Wide: two columns of rows. */
.gg-home__game-list {
	list-style: none;
	margin: 0;
	padding: 0;
	width: 100%;
	text-align: start;
	font-size: 1rem;
	line-height: 1.35;
}

.gg-home__game-list li {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 0.45rem;
	margin: 0.12rem 0;
	padding: 0;
}

.gg-home__game-list a {
	flex: 1 1 auto;
	min-width: 0;
	overflow-wrap: break-word;
	text-align: left;
}

.gg-home__star {
	width: 24px;
	height: 24px;
	display: block;
	object-fit: contain;
	flex-shrink: 0;
}

@media (min-width: 768px) {
	.gg-home__star {
		width: 28px;
		height: 28px;
	}

	.gg-home__game-list {
		display: grid;
		grid-template-columns: max-content max-content;
		column-gap: 1.25rem;
		row-gap: 0.08rem;
		align-items: center;
		width: max-content;
		max-width: 100%;
		margin-inline: auto;
	}

	.gg-home__game-list li.gg-home__game-list__full {
		grid-column: 1 / -1;
		max-width: 26rem;
		justify-self: center;
		width: 100%;
	}
}

.gg-home__section-spacer {
	margin: 2.5rem 0;
}

.gg-home__section-spacer .gg-home__rule {
	margin: 1.75rem auto 1.85rem;
}

.gg-home__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.75rem;
	margin: 0 auto;
	max-width: 36rem;
	width: 100%;
}

.gg-home__card {
	border: 1px solid rgba(45, 42, 30, 0.12);
	border-radius: 12px;
	background: linear-gradient(180deg, rgb(252, 251, 246) 0%, rgb(238, 236, 224) 100%);
	text-align: center;
	overflow: hidden;
	box-shadow:
		0 2px 4px rgba(0, 0, 0, 0.04),
		0 8px 24px rgba(0, 0, 0, 0.08);
}

.gg-home__card-body {
	padding: 1rem 1.15rem 1.1rem;
	line-height: 1.5;
}

.gg-home__card-body strong {
	display: block;
	margin-bottom: 0.45rem;
	font-size: 1.45rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	color: #1a1a16;
	line-height: 1.2;
}

.gg-home__card-desc {
	margin-top: 1.2rem;
	margin-bottom: 0.65rem;
	text-align: center;
}

.gg-home__card-body .gg-home__quote {
	text-align: left;
	margin: 0 0 0.45rem;
}

.gg-home__card-desc .gg-home__quote:first-child {
	margin-top: 0;
}

.gg-home__card-body .gg-home__quote-by {
	text-align: right;
	margin: 0 0 0.35rem;
}

.gg-home__card-cta {
	display: inline-block;
	margin-top: 0.15rem;
}

.gg-home__card-media {
	margin: 0;
	padding: 0;
	background: #ddd;
	line-height: 0;
}

.gg-home__card-media img {
	width: 100%;
	max-width: 500px;
	height: auto;
	vertical-align: middle;
	display: inline-block;
}

@media (min-width: 880px) {
	.gg-home__card--wide {
		grid-column: 1 / -1;
		max-width: 500px;
		width: 100%;
		justify-self: center;
	}
}

.gg-home__footer {
	margin-top: 2.5rem;
	padding-top: 1rem;
}

.gg-home__brand-logo {
	display: block;
	height: auto;
	margin-left: auto;
	margin-right: auto;
}

.gg-home__brand-logo--top {
	width: 120px;
	max-width: 38vw;
	margin-top: 0.25rem;
	margin-bottom: 0.75rem;
}

.gg-home__brand-logo--footer {
	width: 88px;
	max-width: 28vw;
	margin-top: 0.5rem;
	margin-bottom: 0.35rem;
}

.gg-home__footer-copy {
	font-size: 0.95rem;
	color: #333;
}
