* {
	box-sizing: border-box;
}

:root {
	color-scheme: dark;
	--bg: #090b0d;
	--text: #fff6ea;
	--muted: #c9d3cf;
	--line: rgba(255, 255, 255, 0.18);
	--red: #f06a3c;
	--gold: #f0bd5f;
	--teal: #38c6bd;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: Arial, Helvetica, sans-serif;
	color: var(--text);
	background: var(--bg);
}

a {
	color: inherit;
	text-decoration: none;
}

img {
	display: block;
	max-width: 100%;
}

.topbar {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 10;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 16px max(24px, calc((100vw - 1120px) / 2));
	background: linear-gradient(180deg, rgba(6, 8, 10, 0.88), rgba(6, 8, 10, 0));
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-weight: 700;
	font-size: 16px;
}

.brand img {
	width: 36px;
	height: 36px;
	border-radius: 8px;
}

.language-menu {
	position: relative;
}

.language-toggle {
	min-height: 40px;
	padding: 0 14px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: rgba(8, 11, 13, 0.72);
	color: var(--text);
	font: inherit;
	font-size: 14px;
	cursor: pointer;
}

.language-toggle:hover {
	border-color: var(--gold);
}

.language-options {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	display: none;
	width: 220px;
	max-height: min(420px, calc(100vh - 90px));
	overflow: auto;
	padding: 8px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: rgba(9, 11, 13, 0.98);
	box-shadow: 0 18px 42px rgba(0, 0, 0, 0.42);
}

.language-menu.open .language-options {
	display: grid;
	gap: 4px;
}

.language-options a {
	display: flex;
	align-items: center;
	min-height: 38px;
	padding: 0 10px;
	border-radius: 6px;
	color: var(--muted);
	font-size: 14px;
}

.language-options a:hover,
.language-options a.active {
	background: rgba(240, 189, 95, 0.13);
	color: var(--text);
}

.hero {
	min-height: 76vh;
	display: flex;
	align-items: center;
	padding: 92px max(24px, calc((100vw - 1120px) / 2)) 58px;
	background:
		linear-gradient(90deg, rgba(5, 7, 9, 0.94) 0%, rgba(5, 7, 9, 0.74) 38%, rgba(5, 7, 9, 0.28) 72%, rgba(5, 7, 9, 0.82) 100%),
		linear-gradient(180deg, rgba(5, 7, 9, 0) 70%, var(--bg) 100%),
		url("images/wall.jpg") center center / cover no-repeat;
}

.hero-content {
	width: min(780px, 100%);
}

.hero-icon {
	width: 82px;
	height: 82px;
	border-radius: 20px;
	margin-bottom: 18px;
	box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
}

.eyebrow {
	margin: 0 0 12px;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: 0;
	text-transform: uppercase;
	color: var(--gold);
}

h1,
h2,
p {
	margin-top: 0;
}

h1 {
	margin-bottom: 16px;
	font-size: clamp(48px, 7vw, 82px);
	line-height: 0.98;
	letter-spacing: 0;
	text-shadow: 0 8px 28px rgba(0, 0, 0, 0.72);
}

h2 {
	margin-bottom: 20px;
	font-size: clamp(30px, 4vw, 48px);
	line-height: 1.05;
	letter-spacing: 0;
}

.hero-text {
	width: min(580px, 100%);
	margin-bottom: 20px;
	font-size: 19px;
	line-height: 1.5;
	color: var(--muted);
}

.store-links {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
}

.store-links a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 70px;
	transition: transform 160ms ease, filter 160ms ease;
}

.store-links a:hover {
	transform: translateY(-2px);
	filter: brightness(1.08);
}

.store-links img {
	height: 58px;
	width: auto;
}

.discord-link img {
	height: 56px;
}

.section {
	padding: 82px max(24px, calc((100vw - 1120px) / 2));
}

.section-inner {
	width: min(1120px, 100%);
	margin: 0 auto;
}

.game-section {
	background: linear-gradient(180deg, var(--bg), #101615);
}

.feature-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1px;
	border: 1px solid var(--line);
	background: var(--line);
}

.feature-grid div {
	min-height: 190px;
	padding: 28px;
	background: rgba(13, 18, 18, 0.95);
}

.feature-grid strong {
	display: block;
	margin-bottom: 12px;
	font-size: 20px;
	color: var(--text);
}

.feature-grid p,
.community-section p {
	margin-bottom: 0;
	font-size: 17px;
	line-height: 1.6;
	color: var(--muted);
}

.community-section {
	background: linear-gradient(90deg, rgba(13, 19, 18, 0.96), rgba(26, 26, 18, 0.9));
}

.split {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 36px;
}

.community-button {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	min-width: 220px;
	justify-content: center;
	padding: 18px 22px;
	border: 1px solid rgba(56, 198, 189, 0.55);
	border-radius: 8px;
	background: rgba(56, 198, 189, 0.12);
	font-weight: 700;
	color: var(--text);
}

.community-button img {
	height: 42px;
	width: auto;
}

.legal-section {
	background: #0b0d10;
}

.legal-links {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.legal-links a {
	display: inline-flex;
	align-items: center;
	min-height: 48px;
	padding: 0 18px;
	border: 1px solid var(--line);
	border-radius: 8px;
	color: var(--muted);
}

.legal-links a:hover {
	border-color: var(--gold);
	color: var(--text);
}

.footer {
	display: flex;
	justify-content: space-between;
	gap: 20px;
	padding: 26px max(24px, calc((100vw - 1120px) / 2));
	border-top: 1px solid var(--line);
	color: rgba(255, 246, 234, 0.68);
	font-size: 14px;
	background: #08090b;
}

.document-hero {
	min-height: 360px;
	display: flex;
	align-items: flex-end;
	padding: 118px max(24px, calc((100vw - 1120px) / 2)) 56px;
	background:
		linear-gradient(90deg, rgba(5, 7, 9, 0.95), rgba(5, 7, 9, 0.62)),
		linear-gradient(180deg, rgba(5, 7, 9, 0) 65%, var(--bg) 100%),
		url("images/wall.jpg") center center / cover no-repeat;
}

.document-hero-inner {
	width: min(900px, 100%);
}

.document-hero h1 {
	font-size: clamp(38px, 6vw, 68px);
}

.document-shell {
	padding: 64px max(24px, calc((100vw - 920px) / 2)) 86px;
	background: linear-gradient(180deg, var(--bg), #101615);
}

.document-content {
	width: min(920px, 100%);
	margin: 0 auto;
	padding: 38px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: rgba(13, 18, 18, 0.94);
}

.document-content h2 {
	margin-top: 38px;
	font-size: 28px;
}

.document-content h2:first-child {
	margin-top: 0;
}

.document-content p,
.document-content li {
	font-size: 17px;
	line-height: 1.72;
	color: var(--muted);
}

.document-content ul,
.document-content ol {
	padding-left: 22px;
}

.document-content a {
	color: var(--gold);
	text-decoration: underline;
	text-underline-offset: 3px;
}

@media (max-width: 760px) {
	.topbar {
		position: absolute;
		padding: 14px 18px;
	}

	.language-toggle {
		max-width: 172px;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}

	.hero {
		min-height: 78vh;
		padding: 88px 20px 48px;
		background:
			linear-gradient(180deg, rgba(5, 7, 9, 0.76), rgba(5, 7, 9, 0.4) 42%, rgba(5, 7, 9, 0.94) 100%),
			url("images/wall.jpg") 37% center / cover no-repeat;
	}

	.hero-icon {
		width: 82px;
		height: 82px;
	}

	h1 {
		font-size: 44px;
	}

	.hero-text {
		font-size: 17px;
	}

	.store-links {
		align-items: flex-start;
		flex-direction: column;
		gap: 6px;
	}

	.store-links a {
		min-height: 58px;
	}

	.store-links img,
	.discord-link img {
		height: 54px;
	}

	.section {
		padding: 58px 20px;
	}

	.feature-grid {
		grid-template-columns: 1fr;
	}

	.feature-grid div {
		min-height: auto;
		padding: 24px;
	}

	.split {
		grid-template-columns: 1fr;
	}

	.community-button {
		width: 100%;
	}

	.footer {
		flex-direction: column;
		padding: 24px 20px;
	}

	.document-hero {
		min-height: 320px;
		padding: 92px 20px 42px;
	}

	.document-shell {
		padding: 38px 20px 58px;
	}

	.document-content {
		padding: 24px;
	}

	.document-content h2 {
		font-size: 24px;
	}
}
