/* Mercenary Collection — Light Mercenary-themed Website */

@import url('https://fonts.googleapis.com/css2?family=Silkscreen:wght@400;700&display=swap');

:root {
	--sky-top: #4a9ad4;
	--sky-bottom: #8ec8e8;
	--ground: #3a8a3a;
	--bg-panel: rgba(255, 255, 255, 0.85);
	--bg-panel-hover: rgba(255, 255, 255, 0.95);
	--border: rgba(0, 0, 0, 0.12);
	--border-hover: rgba(0, 0, 0, 0.3);
	--text: #1a1a1a;
	--text-dim: #444444;
	--heading: #1a3a6a;
	--accent: #2a5a9a;
	--accent-bright: #1a4a8a;
	--white: #ffffff;
	--pixel-font: 'Silkscreen', 'Courier New', monospace;
}

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

html {
	scroll-behavior: smooth;
}

body {
	color: var(--text);
	font-family: var(--pixel-font);
	font-size: 13px;
	line-height: 1.7;
	min-height: 100vh;
	overflow-x: hidden;
	background: var(--ground);
	position: relative;
}

body::before {
	content: '';
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: -1;
	background:
		linear-gradient(
			to bottom,
			var(--sky-top) 0%,
			var(--sky-bottom) 50%,
			var(--sky-bottom) 55%,
			var(--ground) 55%,
			var(--ground) 100%
		);
	transform: rotate(-2deg) scale(1.1);
	transform-origin: center center;
}

body::after {
	content: '';
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	z-index: 9999;
	background: repeating-linear-gradient(
		to bottom,
		transparent 0px,
		transparent 3px,
		rgba(0, 0, 0, 0.03) 3px,
		rgba(0, 0, 0, 0.03) 6px
	);
}

.container {
	max-width: 960px;
	margin: 0 auto;
	padding: 0 28px;
	position: relative;
	z-index: 1;
}

/* Hero */
.hero {
	text-align: center;
	padding: 36px 0 8px;
}

.hero .logo {
	max-width: 480px;
	width: 100%;
	height: auto;
	margin-bottom: 10px;
	filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.3));
}

.hero .tagline {
	font-size: 10px;
	color: var(--white);
	text-shadow: 1px 1px 0px rgba(0, 0, 0, 0.3);
	letter-spacing: 1px;
	opacity: 0.9;
}

/* Sections */
section {
	padding: 16px 0;
}

h2 {
	font-size: 14px;
	color: var(--heading);
	margin-bottom: 12px;
	letter-spacing: 1px;
	background: var(--bg-panel);
	display: inline-block;
	padding: 6px 14px;
	border: 1px solid var(--border);
}

h2::before {
	content: '> ';
	color: var(--accent);
}

/* About */
.about-section {
	padding-top: 12px;
}

.about-text {
	background: var(--bg-panel);
	padding: 18px 24px;
	border: 1px solid var(--border);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	line-height: 1.7;
}

.about-text p {
	margin-bottom: 6px;
}

.about-text p:last-child {
	margin-bottom: 0;
}

.about-text strong {
	color: var(--heading);
	font-weight: 700;
}

.about-text ul {
	list-style: none;
	padding-left: 14px;
	margin-top: 2px;
	margin-bottom: 6px;
}

.about-text li {
	position: relative;
	padding-left: 12px;
	margin-bottom: 2px;
}

.about-text li::before {
	content: '-';
	position: absolute;
	left: 0;
	color: var(--accent);
}

.about-text a {
	color: var(--accent);
	text-decoration: none;
}

.about-text a:hover {
	text-decoration: underline;
}

.about-text .sign-off {
	margin-top: 8px;
	font-style: italic;
	color: var(--accent);
}

/* Downloads — single column */
.downloads {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.download-btn {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 8px 16px;
	min-height: 48px;
	background: var(--bg-panel);
	border: 1px solid var(--border);
	color: var(--text);
	text-decoration: none;
	font-size: 13px;
	overflow: visible;
	transition: background 0.15s, border-color 0.15s;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.download-btn:hover {
	background: var(--bg-panel-hover);
	border-color: var(--border-hover);
}

.download-btn .platform {
	color: var(--accent-bright);
	font-size: 12px;
	font-weight: 700;
	min-width: 100px;
}

.download-btn .filename {
	color: var(--text-dim);
	font-size: 11px;
	font-weight: 700;
}

.platform-icon {
	display: block;
	width: 32px;
	height: 32px;
	flex-shrink: 0;
	object-fit: contain;
}

/* Screenshots — centred 3x2 grid */
.screenshots {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px;
}

.screenshots img {
	width: 100%;
	height: auto;
	border: 2px solid rgba(0, 0, 0, 0.2);
	display: block;
	cursor: pointer;
	transition: border-color 0.2s, box-shadow 0.2s;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.screenshots img:hover {
	border-color: var(--accent);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

/* Lightbox overlay */
.lightbox {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.85);
	z-index: 10000;
	cursor: pointer;
	align-items: center;
	justify-content: center;
}

.lightbox.active {
	display: flex;
}

.lightbox img {
	max-width: 90vw;
	max-height: 90vh;
	box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

/* Contact — centred */
.contact-section {
	text-align: center;
}

.contact-text {
	margin-bottom: 10px;
	color: var(--white);
	text-shadow: 1px 1px 0px rgba(0, 0, 0, 0.2);
}

.contact-btn {
	display: inline-block;
	padding: 12px 28px;
	background: var(--bg-panel);
	border: 1px solid var(--border);
	color: var(--accent-bright);
	text-decoration: none;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 2px;
	transition: background 0.2s, border-color 0.2s;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.contact-btn:hover {
	background: var(--bg-panel-hover);
	border-color: var(--border-hover);
}

/* Footer */
.footer {
	padding: 16px 0;
	text-align: center;
	font-size: 8px;
	color: rgba(255, 255, 255, 0.3);
	text-shadow: 1px 1px 0px rgba(0, 0, 0, 0.1);
	letter-spacing: 1px;
}

/* Responsive */
@media (max-width: 640px) {
	.screenshots {
		grid-template-columns: repeat(2, 1fr);
	}

	.hero .logo {
		max-width: 300px;
	}

	.hero .tagline {
		font-size: 8px;
	}

	h2 {
		font-size: 11px;
	}
}
