:root {
	--bg-a: #1a1a2e;
	--bg-b: #13161f;
	--accent-a: #3b8ed0;
	--accent-b: #1f6aa5;
	--accent-c: #4fafef;
	--muted: #9ca3af;
	--glass-border: rgba(255, 255, 255, 0.04);
	--card-bg: rgba(255, 255, 255, 0.02);
	--white: #ffffff;
	--shadow: 0 12px 30px rgba(79, 175, 239, 0.12);
}
* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
	min-width: 0;
	min-height: 0;
}
html,
body {
	height: 100%;
	font-family: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: var(--white);
	-webkit-font-smoothing: antialiased;
	min-height: 100vh;
}

body {
	background: repeating-linear-gradient(
			45deg,
			rgba(20, 19, 41, 0.02),
			rgba(20, 19, 41, 0.4) 1px,
			transparent 1px,
			transparent 5px
		),
		var(--bg-a);
}
.container {
	max-width: 1100px;
	margin: 0 auto;
	padding: 10px;
}
.topbar {
	position: sticky;
	top: 0;
	z-index: 40;
	background: rgba(22, 33, 62, 0.45);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid rgba(255, 255, 255, 0.05);
	transition: all 0.25s ease;
}
.topbar-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
}
.brand {
	color: var(--white);
	font-weight: 700;
	font-size: 1.15rem;
	text-decoration: none;
}
.socials {
	display: flex;
	gap: 10px;
	align-items: center;
}
.social-btn {
	width: 40px;
	height: 40px;
	border-radius: 8px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid var(--glass-border);
	text-decoration: none;
	transition: all 0.18s;
}
.social-btn img {
	width: 20px;
	height: 20px;
	display: block;
}
.social-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(59, 142, 208, 0.16);
	border-color: rgba(255, 255, 255, 0.06);
}
.hero {
	padding: 3.25rem 0 2rem 0;
	text-align: center;
}
.hero-char {
	width: 48px;
	height: 48px;
	margin: 0 auto 1rem auto;
	display: block;
}
.hero-title {
	font-size: clamp(28px, 4vw, 40px);
	font-weight: 700;
	letter-spacing: -0.02em;
	margin-bottom: 0.6rem;
}
.hero-sub {
	color: var(--muted);
	font-size: clamp(14px, 2vw, 18px);
	max-width: 820px;
	margin: 0 auto;
}
.hero-actions {
	display: flex;
	justify-content: center;
	gap: 16px;
	margin-top: 24px;
}
.section {
	margin: 2.25rem 0;
}
.section-title {
	display: flex;
	align-items: center;
	gap: 12px;
	justify-content: center;
	font-weight: 600;
	font-size: 1.5rem;
}
hr {
	width: 25%;
	color: rgba(255, 255, 255, 0.445);
	margin: 10px auto;
}
.icon {
	background: linear-gradient(135deg, rgba(79, 175, 239, 0.08), rgba(59, 142, 208, 0.06));
	color: var(--accent-c);
	padding: 6px;
	border-radius: 8px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}
.carousel {
	display: flex;
	align-items: center;
	gap: 12px;
	position: relative;
	margin-top: 12px;
}
.carousel-viewport {
	overflow: hidden;
	flex: 1;
	padding-top: 22px;
	padding-bottom: 22px;
}
.carousel-track {
	display: flex;
	gap: 18px;
	list-style: none;
	transition: transform 0.32s ease;
	padding-left: 6px;
}
.game-card {
	flex: 0 0 320px;
	background: linear-gradient(180deg, var(--card-bg), rgba(255, 255, 255, 0.01));
	border: 1px solid var(--glass-border);
	border-radius: 12px;
	overflow: visible;
	display: flex;
	flex-direction: column;
	transition: transform 0.22s ease, box-shadow 0.22s ease;
	will-change: transform;
	cursor: default;
}
.game-card:hover {
	transform: translateY(-10px);
	z-index: 6;
}
.game-media {
	height: 200px;
	background: linear-gradient(135deg, rgba(255, 255, 255, 0.02), rgba(79, 175, 239, 0.03));
	display: flex;
	align-items: center;
	justify-content: center;
	border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}
.game-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.game-media.placeholder {
	font-size: 2.5rem;
	color: var(--muted);
}
.game-info {
	padding: 16px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.game-title {
	font-size: 1.05rem;
	font-weight: 700;
}
.game-desc {
	color: var(--muted);
	font-size: 0.95rem;
	line-height: 1.4;
}
.launcher-section {
	margin-bottom: 4rem;
}
.launcher-card {
	position: relative;
	overflow: hidden;
	border-radius: 14px;
	padding: 26px;
	background: linear-gradient(135deg, rgba(79, 175, 239, 0.03), rgba(255, 255, 255, 0.01));
	border: 1px solid var(--glass-border);
	margin-top: 12px;
}

.launcher-card::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	background: url("assets/launcher-img.jpg") right bottom / contain no-repeat;
	--reveal: 40%;
	clip-path: polygon(calc(100% - var(--reveal)) 100%, calc(100% - var(--reveal) + 10%) 0, 100% 0, 100% 100%);
}
.launcher-card > * {
	position: relative;
	z-index: 1;
}

.launcher-title {
	font-size: 1.35rem;
	color: var(--accent-c);
	font-weight: 700;
	margin-bottom: 8px;
}
.launcher-sub {
	color: var(--muted);
	margin-bottom: 16px;
}
.launcher-actions {
	display: flex;
	gap: 12px;
	align-items: center;
}
.gallery-card {
	flex: 0 0 320px;
	background: var(--card-bg);
	border: 1px solid var(--glass-border);
	border-radius: 12px;
	overflow: hidden;
	cursor: pointer;
	transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.gallery-card:hover {
	transform: translateY(-10px);
	box-shadow: var(--shadow);
}

.gallery-card img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.gallery-media {
	height: 240px;
	background: rgba(255, 255, 255, 0.02);
}

.lightbox {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.96);
	backdrop-filter: blur(8px);
	align-items: center;
	justify-content: center;
	z-index: 1000;
	padding: 20px;
}

.lightbox.active {
	display: flex;
}

.lightbox img {
	max-width: 100%;
	max-height: 100%;
	border-radius: 12px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
}

.lightbox-close {
	position: absolute;
	top: 20px;
	right: 30px;
	font-size: 40px;
	color: white;
	cursor: pointer;
	background: none;
	border: none;
	opacity: 0.7;
}

.lightbox-close:hover {
	opacity: 1;
}

.carousel-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 48px;
	height: 48px;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid var(--glass-border);
	color: var(--white);
	font-size: 24px;
	font-weight: bold;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	z-index: 10;
	backdrop-filter: blur(10px);
	transition: all 0.22s ease;
	opacity: 0.7;
	user-select: none;
}

.carousel-nav:hover {
	opacity: 1;
	background: rgba(255, 255, 255, 0.12);
	border-color: rgba(255, 255, 255, 0.15);
	box-shadow: 0 8px 25px rgba(59, 142, 208, 0.2);
	transform: translateY(-50%) scale(1.08);
}

.carousel-nav.prev {
	left: -90px;
}

.carousel-nav.next {
	right: -90px;
}

.carousel-nav:disabled {
	opacity: 0.2;
	cursor: default;
	transform: translateY(-50%) scale(1);
	box-shadow: none;
}

@media (max-width: 880px) {
	.gallery-card {
		flex: 0 0 280px;
	}
}
@media (max-width: 520px) {
	.gallery-card {
		flex: 0 0 240px;
	}
}
.btn {
	padding: 12px 18px;
	border-radius: 10px;
	border: none;
	font-weight: 700;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: all 0.22s;
}
.btn-launcher {
	background: linear-gradient(135deg, var(--accent-a) 0%, var(--accent-b) 100%);
	color: var(--white);
	text-decoration: none;
}
.btn-launcher:hover {
	transform: translateY(-2px);
	transition: 0.2s;
}
.btn-disabled {
	background: #4a4a4a;
	color: var(--white);
	cursor: default;
	opacity: 0.72;
}
.btn-patreon {
	background-color: #f96854;
	color: var(--white);
	text-decoration: none;
}
.btn-patreon:hover {
	transform: translateY(-2.5px);
	transition: 0.2s;
}
.btn-kofi {
	background-color: #ff6433;
	color: var(--white);
	text-decoration: none;
}
.btn-kofi:hover {
	transform: translateY(-2.5px);
	transition: 0.2s;
}
.btn-icon {
	width: 24px;
	height: 24px;
	margin-right: 8px;
	vertical-align: middle;
}
.muted {
	color: var(--muted);
	margin-top: 12px;
}
.content {
	padding-bottom: 10px;
}
.site-footer {
	background: var(--bg-b);
	color: var(--muted);
	text-align: center;
	padding: 18px 0;
	position: relative;
	z-index: 10;
}
.site-footer p {
	font-size: 0.85rem;
	margin: 0;
	color: var(--muted);
}
.age-modal {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 1000;
	align-items: center;
	justify-content: center;
}
.modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.6);
	backdrop-filter: blur(8px);
}
.modal-content {
	position: relative;
	background: var(--bg-b);
	padding: 32px;
	border-radius: 12px;
	max-width: 400px;
	text-align: center;
	border: 1px solid var(--glass-border);
	z-index: 1;
}
.modal-content h2 {
	color: var(--accent-c);
	font-size: 1.5rem;
	margin-bottom: 12px;
}
.modal-content p {
	color: var(--muted);
	margin-bottom: 24px;
}
.modal-actions {
	display: flex;
	gap: 12px;
	justify-content: center;
}
.btn-primary {
	background: linear-gradient(135deg, var(--accent-a) 0%, var(--accent-b) 100%);
	color: var(--white);
}
.btn-primary:hover {
	transform: translateY(-2px);
}
.btn-secondary {
	background: linear-gradient(135deg, #6b7280, #4b5563);
	color: var(--white);
}
.btn-secondary:hover {
	transform: translateY(-2px);
}

.game-info {
	padding: 16px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.game-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 5px;
	margin-bottom: 4px;
}

.game-title {
	margin: 0;
	font-size: 1.05rem;
	font-weight: 700;
}

.game-tags {
	display: flex;
	gap: 5px;
	flex-shrink: 0;
	margin-right: 15px;
}

.tag {
	font-size: 0.68rem;
	font-weight: 700;
	padding: 4px 9px;
	border-radius: 999px;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	line-height: 1;
}

.tag-rpgm {
	background: rgba(59, 142, 208, 0.25);
	color: #6eb8f1;
	border: 1px solid rgba(59, 142, 208, 0.4);
}

.tag-adult {
	background: rgba(255, 85, 85, 0.22);
	color: #ff7b7b;
	border: 1px solid rgba(255, 85, 85, 0.4);
}

@media (max-width: 840px) {
	.hero-actions,
	.launcher-actions {
		flex-direction: column;
		align-items: center;
	}
	.hero-actions .btn,
	.launcher-actions .btn {
		width: 100%;
		max-width: 320px;
	}
	.launcher-card::after {
		--reveal: 0%;
	}
}

@media (max-width: 640px) {
	.topbar-inner {
		flex-direction: column;
		gap: 12px;
		padding: 8px 0;
	}
	.brand {
		order: -1;
	}
	.socials {
		order: 1;
		justify-content: center;
	}

	.hero {
		padding: 2rem 0 1.5rem;
	}
	.hero-title {
		font-size: 1.8rem;
	}
	.hero-sub {
		padding: 0 12px;
		font-size: 1rem;
	}

	.game-card,
	.gallery-card {
		flex: 0 0 calc(100vw - 48px);
		max-width: none;
	}
	.gallery-media {
		height: 220px;
	}

	.carousel-nav {
		display: none !important;
	}

	.carousel-track {
		scroll-snap-type: x mandatory;
		-webkit-overflow-scrolling: touch;
		overflow-x: auto;
		scrollbar-width: none;
	}
	.carousel-track::-webkit-scrollbar {
		display: none;
	}

	.game-card,
	.gallery-card {
		scroll-snap-align: center;
	}
}

@media (max-width: 480px) {
	.hero-title {
		font-size: 1.65rem;
	}
	.game-media {
		height: 180px;
	}
	.modal-actions {
		flex-direction: column;
	}
	.modal-actions .btn {
		width: 100%;
	}
}
