/* Home page only (<body class="home">), on top of style.css. Each game
   card wears a little of its own game's look. */
.home header, .home main, .home footer { max-width: 1040px; }

.home header { padding-top: 28px; }
.home header .name { font-size: 19px; letter-spacing: -0.01em; display: inline-flex; align-items: center; gap: 10px; }
.home header .name::before { /* a small studio mark */
	content: "";
	width: 22px;
	height: 22px;
	border-radius: 7px;
	background: conic-gradient(from 45deg, #e2b03c 0 25%, #2f6fd6 0 50%, #1f8a6a 0 75%, #d9542e 0);
}
.home nav a { color: var(--muted); text-decoration: none; font-weight: 500; }
.home nav a:hover { color: var(--text); }

/* ---- Hero ---- */
.intro { padding: 72px 0 56px; }
.intro h1 {
	font-size: clamp(48px, 9vw, 104px);
	line-height: .98;
	letter-spacing: -0.045em;
	font-weight: 800;
	margin: 0;
}
.intro h1 span { color: var(--accent); }
.intro .lead { max-width: 34ch; margin: 24px 0 0; font-size: clamp(19px, 2.2vw, 23px); }

/* ---- Game cards ---- */
.games { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.game {
	display: flex;
	flex-direction: column;
	border-radius: 24px;
	overflow: hidden;
	background: var(--surface);
	border: 1px solid var(--border);
	color: inherit;
	text-decoration: none;
	transition: transform .2s ease, box-shadow .2s ease;
}
.game:hover { transform: translateY(-3px); box-shadow: 0 24px 48px -24px rgba(20, 20, 30, .35); }
.game.wide { grid-column: 1 / -1; flex-direction: row; }
.game.wide .art { flex: 1.15; min-height: 380px; }
.game.wide .body { flex: 1; align-self: center; }

.game .art { position: relative; min-height: 280px; overflow: hidden; }
.game .body { padding: 26px 28px 28px; }
.game h2 { font-size: 30px; letter-spacing: -0.02em; margin: 10px 0 8px; }
.game p { margin: 0 0 18px; color: var(--muted); }
.game .go { font-weight: 600; color: var(--accent); }
.game .go::after { content: " →"; display: inline-block; transition: transform .2s ease; }
.game:hover .go::after { transform: translateX(4px); }

.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.chips li {
	margin: 0;
	font-size: 13px;
	font-weight: 600;
	padding: 3px 10px;
	border-radius: 999px;
	border: 1px solid var(--border);
	color: var(--muted);
}
.chips .live { color: #1f7a4d; border-color: rgba(31, 122, 77, .35); background: rgba(31, 122, 77, .08); }
.chips .dev { color: #9a6a12; border-color: rgba(154, 106, 18, .35); background: rgba(154, 106, 18, .08); }

/* Quiltz: linen and two phones */
.art.quiltz {
	background-color: #f4e6d2;
	background-image:
		repeating-linear-gradient(0deg, rgba(120, 80, 40, .05) 0 1px, transparent 1px 4px),
		repeating-linear-gradient(90deg, rgba(120, 80, 40, .05) 0 1px, transparent 1px 4px);
	display: flex;
	justify-content: center;
	align-items: center;
}
.art.quiltz::before {
	content: "";
	position: absolute;
	inset: 14px;
	border: 2px dashed #a8794f;
	border-radius: 14px;
	opacity: .5;
}
.art.quiltz { height: 400px; }
.art.quiltz img {
	position: relative;
	height: 80%;
	width: auto;
	border: 5px solid #fffaf1;
	border-radius: 18px;
	box-shadow: 0 18px 36px rgba(70, 40, 15, .3);
}
.art.quiltz img:first-child { transform: rotate(-5deg) translate(14px, -4px); z-index: 1; }
.art.quiltz img:last-child { transform: rotate(5deg) translate(-14px, 22px); }

/* StepQuest: a dusk path of footsteps to a tower */
.art.stepquest { background: linear-gradient(180deg, #2b2f6b 0%, #6b4a8c 55%, #e0866a 100%); }
.art.stepquest svg { position: absolute; inset: 0; width: 100%; height: 100%; }

/* Legacy: the generated world */
.art.legacy { background: #0b0f17; }
.art.legacy img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 45%; }
.art.legacy::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, transparent 55%, rgba(11, 15, 23, .55));
}

/* ---- About strip ---- */
.about {
	display: grid;
	grid-template-columns: 1fr 1.4fr;
	gap: 32px;
	margin: 72px 0 0;
	padding: 36px 0 0;
	border-top: 1px solid var(--border);
}
.about h2 { margin: 0; font-size: 28px; letter-spacing: -0.02em; }
.about p { margin: 0 0 12px; color: var(--muted); }

.home footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

@media (prefers-color-scheme: dark) {
	.chips .live { color: #6fd3a0; border-color: rgba(111, 211, 160, .3); background: rgba(111, 211, 160, .08); }
	.chips .dev { color: #f0c470; border-color: rgba(240, 196, 112, .3); background: rgba(240, 196, 112, .08); }
	.game:hover { box-shadow: 0 24px 48px -24px rgba(0, 0, 0, .7); }
}

@media (prefers-reduced-motion: reduce) {
	.game, .game .go::after { transition: none; }
	.game:hover { transform: none; }
}

@media (max-width: 760px) {
	.games { grid-template-columns: 1fr; }
	.game.wide { flex-direction: column; }
	.game.wide .art, .game.wide .body { flex: none; }
	.intro { padding: 48px 0 40px; }
	.about { grid-template-columns: 1fr; gap: 12px; }
	.art.quiltz { height: 340px; }
}
