:root {
	--bg: #0e0e0e;
	--surface: #181818;
	--border: rgba(255, 255, 255, 0.08);
	--border-btn: rgba(255, 255, 255, 0.15);
	--accent: #a9c04e;
	--text: #ecedef;
	--text-dim: #92929c;
	--radius: 8px;
	--radius-lg: 14px;
	--ease: cubic-bezier(.25, .46, .45, .94);
}

*,
*::before,
*::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

body {
	min-height: 100dvh;
	font-family: "Trebuchet MS", "Lucida Grande", "Lucida Sans Unicode", sans-serif;
	color: var(--text);
	background: var(--bg);
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding: 2rem;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* Subtle warm ambient glow behind card */
body::before {
	content: "";
	position: fixed;
	inset: 0;
	background: radial-gradient(ellipse 60% 50% at 30% 20%, rgba(169, 192, 78, 0.03), transparent);
	pointer-events: none;
}

.page-wrap {
	width: 100%;
	max-width: 880px;
}

/* ── Card ── */
.card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	position: relative;
	overflow: hidden;
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.04),
		0 40px 80px -20px rgba(0, 0, 0, 0.55);
	animation: rise 550ms var(--ease) both;
}

.card-inner {
	position: relative;
	padding: 0 2.8rem 2.6rem;
}

@keyframes rise {
	from {
		opacity: 0;
		transform: translateY(18px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* ── Banner (key art + logo) ── */
.banner {
	position: relative;
	display: grid;
	place-items: center;
	aspect-ratio: 2 / 1;
}

.banner-art {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Darkens the art behind the logo and fades it into the card */
.banner::after {
	content: "";
	position: absolute;
	inset: 0;
	background:
		linear-gradient(to bottom, transparent 55%, var(--surface) 100%),
		radial-gradient(ellipse 50% 60% at center, rgba(14, 14, 14, 0.5), rgba(14, 14, 14, 0.12));
}

.banner h1 {
	position: relative;
	z-index: 1;
	width: 44%;
	line-height: 0;
}

.banner h1 img {
	width: 100%;
	height: auto;
}

/* ── Header ── */
header {
	margin-bottom: 1.8rem;
}

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	font-size: 0.7rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.22em;
	color: var(--text-dim);
	margin-bottom: 0.75rem;
}

.eyebrow-line {
	display: block;
	width: 26px;
	height: 2px;
	background: var(--accent);
	border-radius: 1px;
}

.subtitle {
	margin-top: 0.85rem;
	max-width: 50rem;
	font-size: 0.92rem;
	color: var(--text-dim);
	line-height: 1.7;
	margin-bottom: 1.4rem;
}

/* ── Sections ── */
.section {
	margin-top: 1.6rem;
}

.section-label {
	font-size: 0.68rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.18em;
	color: var(--text-dim);
	margin-bottom: 0.6rem;
}

/* ── Buttons ── */
.btn-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.55rem;
}

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.6rem 1.25rem;
	font-size: 0.8rem;
	font-weight: 500;
	font-family: inherit;
	border-radius: var(--radius);
	border: 1px solid var(--border-btn);
	background: transparent;
	color: var(--text);
	text-decoration: none;
	cursor: pointer;
	white-space: nowrap;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	transition: all 160ms var(--ease);
}

.btn svg {
	width: 1.15em;
	height: 1.15em;
	flex-shrink: 0;
	fill: currentColor;
	overflow: visible;
}

.btn:hover {
	background: var(--accent);
	border-color: var(--accent);
	color: var(--bg);
	transform: translateY(-1px);
	box-shadow: 0 4px 24px rgba(169, 192, 78, 0.22);
}

.btn:active {
	transform: translateY(1px);
	box-shadow: none;
}

.btn:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
}

.btn:focus:not(:focus-visible) {
	outline: none;
}

/* Main call to action */
.btn--primary {
	padding: 0.8rem 1.6rem;
	font-size: 0.85rem;
	font-weight: 700;
	background: var(--accent);
	border-color: var(--accent);
	color: var(--bg);
}

.btn--primary:hover {
	background: #bdd45f;
	border-color: #bdd45f;
}

/* ── Screenshot carousel ── */
.carousel-track {
	display: flex;
	gap: 0.65rem;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
	padding-bottom: 0.6rem;

	/* Styled scrollbar */
	scrollbar-width: thin;
	scrollbar-color: rgba(255,255,255,0.18) transparent;
}

.carousel-track::-webkit-scrollbar {
	height: 6px;
}

.carousel-track::-webkit-scrollbar-track {
	background: rgba(255,255,255,0.04);
	border-radius: 3px;
}

.carousel-track::-webkit-scrollbar-thumb {
	background: rgba(255,255,255,0.18);
	border-radius: 3px;
}

.carousel-track::-webkit-scrollbar-thumb:hover {
	background: rgba(255,255,255,0.3);
}

.shot {
	scroll-snap-align: start;
	flex: 0 0 auto;
	width: min(75%, 440px);
	padding: 0;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: none;
	overflow: hidden;
	cursor: pointer;
}

.shot img {
	display: block;
	width: 100%;
	height: auto;
	transition: opacity 200ms var(--ease), transform 200ms var(--ease);
}

.shot:hover img {
	opacity: 0.85;
	transform: scale(1.015);
}

.shot:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: -2px;
}

/* ── What's in the game ── */
.features {
	list-style: none;
	display: grid;
	grid-template-columns: 1fr 1fr;
	column-gap: 2rem;
}

.features li {
	padding: 0.75rem 0;
	border-top: 1px solid var(--border);
	line-height: 1.55;
}

.features strong {
	display: block;
	font-size: 0.9rem;
	font-weight: 600;
}

.features span {
	display: block;
	font-size: 0.82rem;
	color: var(--text-dim);
}

/* Arrow buttons (used in lightbox) */
.carousel-btn {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, 0.2);
	background: rgba(14, 14, 14, 0.7);
	color: var(--text);
	font-size: 1.3rem;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	transition: background-color 160ms var(--ease), border-color 160ms var(--ease), color 160ms var(--ease);
	z-index: 1001;
}

.carousel-btn:hover {
	background: var(--accent);
	color: var(--bg);
	border-color: var(--accent);
}

.carousel-btn--prev {
	left: 1.2rem;
}

.carousel-btn--next {
	right: 1.2rem;
}

/* ── Lightbox ── */
.lightbox {
	position: fixed;
	inset: 0;
	z-index: 1000;
	background: rgba(0, 0, 0, 0.88);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	transition: opacity 220ms var(--ease), visibility 220ms var(--ease);
}

.lightbox.is-open {
	opacity: 1;
	visibility: visible;
	transition: opacity 220ms var(--ease); /* visible at once, so it can take focus */
}

.lightbox img {
	max-width: min(92vw, 1200px);
	max-height: 88vh;
	border-radius: var(--radius);
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
	object-fit: contain;
	transform: scale(0.92);
	transition: transform 250ms var(--ease);
}

.lightbox.is-open img {
	transform: scale(1);
}

.lightbox-close {
	position: absolute;
	top: 1.2rem;
	right: 1.4rem;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, 0.2);
	background: rgba(14, 14, 14, 0.7);
	color: var(--text);
	font-size: 1.4rem;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	transition: background-color 160ms var(--ease), border-color 160ms var(--ease), color 160ms var(--ease);
	z-index: 1001;
}

.lightbox-close:hover {
	background: var(--accent);
	color: var(--bg);
	border-color: var(--accent);
}

/* ── Footer ── */
footer {
	margin-top: 2.2rem;
	padding-top: 1rem;
	border-top: 1px solid var(--border);
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 0.8rem;
	font-size: 0.73rem;
	color: var(--text-dim);
}

.footer-link {
	color: var(--text-dim);
	text-decoration: none;
	border-bottom: 1px solid transparent;
	transition: color 160ms var(--ease), border-color 160ms var(--ease);
}

.footer-link:hover {
	color: var(--accent);
	border-bottom-color: var(--accent);
}

.lang-switcher {
	display: inline-flex;
	align-items: center;
}

.lang-select {
	appearance: none;
	-webkit-appearance: none;
	background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%2392929c' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 0.55rem center;
	border: 1px solid var(--border-btn);
	color: var(--text);
	padding: 0.28rem 1.7rem 0.28rem 0.55rem;
	border-radius: 6px;
	font-size: 0.78rem;
	font-family: inherit;
	cursor: pointer;
	transition: border-color 160ms var(--ease);
}

.lang-select:hover,
.lang-select:focus {
	border-color: var(--accent);
	outline: none;
}

/* ── Badge (Discord online count) ── */
.badge {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.15rem 0.55rem;
	font-size: 0.65rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: none;
	color: var(--text-dim);
	background: rgba(255, 255, 255, 0.06);
	border-radius: 20px;
}

.badge-dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #23a559;
}

/* ── Responsive ── */
@media (max-width: 700px) {
	body {
		padding: 1rem;
	}

	.card-inner {
		padding: 0 1.4rem 1.8rem;
	}

	.banner {
		aspect-ratio: 16 / 10;
	}

	.banner h1 {
		width: 58%;
	}

	/* Swipe replaces the arrows */
	.carousel-btn {
		display: none;
	}

	footer {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.45rem;
	}
}

@media (max-width: 560px) {
	.features {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 480px) {
	body {
		padding: 0.5rem;
	}

	.card {
		border-radius: 10px;
	}

	.card-inner {
		padding: 0 1rem 1.2rem;
	}

	.subtitle {
		font-size: 0.85rem;
	}

	.shot {
		width: min(82%, 300px);
	}

	.btn-row {
		flex-direction: column;
	}

	.btn {
		width: 100%;
		min-height: 44px;
		white-space: normal;
		text-align: center;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation: none !important;
		transition: none !important;
		scroll-behavior: auto !important;
	}
}
