/* Gaming Planet — tokens measured from the Enfold Gaming demo. */
@font-face {
	font-family: "Bangers";
	src: url("../fonts/bangers-400.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Lato";
	src: url("../fonts/lato-300.woff2") format("woff2");
	font-weight: 300;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Lato";
	src: url("../fonts/lato-400.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Lato";
	src: url("../fonts/lato-700.woff2") format("woff2");
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

:root {
	--night: #0d0f1f;
	--alt: #141626;
	--teal: #4ecac2;
	--white: #ffffff;
	--soft: rgba(255, 255, 255, 0.72);
	--line: rgba(255, 255, 255, 0.12);
	--display: "Bangers", "Impact", "Arial Black", sans-serif;
	--body: "Lato", "Helvetica Neue", Arial, sans-serif;
}

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

html {
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--night);
	color: var(--white);
	font-family: var(--body);
	font-size: 16px;
	line-height: 1.65;
	font-weight: 400;
	overflow-x: hidden;
}

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

a {
	color: var(--teal);
	text-decoration: none;
	transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
	color: var(--white);
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
}

.skip-link:focus {
	position: fixed;
	top: 8px;
	left: 8px;
	z-index: 999;
	width: auto;
	height: auto;
	clip: auto;
	padding: 8px 16px;
	background: var(--teal);
	color: var(--night);
	font-weight: 700;
}

.container {
	width: 100%;
	max-width: 1210px;
	margin: 0 auto;
	padding: 0 20px;
}

.narrow-center {
	max-width: 1040px;
	text-align: center;
}

/* Header */
.site-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 100;
	height: 62px;
	background: transparent;
}

.header-main {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 62px;
	max-width: 1210px;
	padding: 0 25px;
}

.brand {
	display: flex;
	align-items: center;
}

.brand img {
	height: 40px;
	width: auto;
	max-height: 40px;
}

.site-nav ul {
	display: flex;
	align-items: center;
	gap: 30px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-nav a {
	color: var(--white);
	font-size: 13px;
	font-weight: 400;
	letter-spacing: 0.4px;
	line-height: 62px;
	white-space: nowrap;
}

.site-nav a:hover,
.site-nav .current-menu-item > a {
	color: var(--teal);
}

.nav-toggle {
	display: none;
	width: 44px;
	height: 44px;
	padding: 10px;
	border: 0;
	background: transparent;
	cursor: pointer;
}

.nav-toggle span {
	display: block;
	width: 100%;
	height: 2px;
	margin: 5px 0;
	background: var(--white);
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-open .nav-toggle span:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

.nav-open .nav-toggle span:nth-child(2) {
	opacity: 0;
}

.nav-open .nav-toggle span:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

/* Type scale */
h1,
h2,
h3,
h4 {
	margin: 0 0 18px;
	font-family: var(--display);
	font-weight: 400;
	color: var(--white);
	letter-spacing: 0.5px;
}

h3 {
	font-size: 30px;
	line-height: 1.1;
}

h4 {
	font-size: 20px;
	line-height: 1.2;
}

p {
	margin: 0 0 18px;
	color: var(--white);
	font-family: var(--body);
	font-size: 16px;
	line-height: 1.65;
}

strong {
	font-weight: 700;
}

/* Sections */
.section {
	position: relative;
	padding: 100px 0;
}

.narrow-center h3 + .lead {
	max-width: 860px;
	margin-left: auto;
	margin-right: auto;
}

.lead {
	font-size: 16px;
	line-height: 1.65;
}

/* Hero */
.hero {
	position: relative;
	height: clamp(460px, 50vw, 720px);
	min-height: 460px;
	overflow: hidden;
	background: var(--night);
}

.hero-layer {
	position: absolute;
	pointer-events: none;
	background-repeat: no-repeat;
	background-position: center;
	background-size: 100% auto;
}

.hero-banner {
	inset: -20% 0 -20%;
	background-size: cover;
	background-position: center center;
}

.hero-asteroids {
	top: 50%;
	left: 2.5%;
	width: 92%;
	height: 105%;
	transform: translateY(-50%);
	background-size: 100% auto;
	opacity: 0.9;
	animation: asteroids-drift 26s ease-in-out infinite alternate;
}

.hero-ships {
	top: 2%;
	left: 9.5%;
	width: 82%;
	height: 99%;
	background-size: 100% auto;
	animation: ships-float 9s ease-in-out infinite alternate;
}

@keyframes asteroids-drift {
	from { transform: translate(-2.5%, -50%) scale(1); }
	to { transform: translate(2.5%, -52%) scale(1.03); }
}

@keyframes ships-float {
	from { transform: translateY(0); }
	to { transform: translateY(-12px); }
}

.hero-center {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding-top: 11%;
}

.hero-title {
	width: min(49.4%, 625px);
	margin-bottom: 22px;
}

.hero-play img {
	width: 142px;
	transition: transform 0.25s ease;
}

.hero-play:hover img {
	transform: scale(1.08);
}

/* Intro */
.intro-section {
	padding: 120px 0 110px;
}

.intro-line {
	font-family: var(--display);
	font-size: 30px;
	line-height: 1.1;
	margin-bottom: 46px;
}

.store-buttons {
	display: flex;
	justify-content: center;
	gap: 24px;
	margin-bottom: 40px;
	flex-wrap: wrap;
}

.store-buttons img {
	width: 276px;
	max-width: 42vw;
	transition: opacity 0.2s ease;
}

.store-buttons a:hover img {
	opacity: 0.8;
}

.intro-note {
	font-size: 8px;
	line-height: 1.4;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	color: var(--soft);
}

/* Gallery */
.gallery-band {
	position: relative;
	padding: 0 0 90px;
	background: var(--night);
	overflow: hidden;
}

.gallery-viewport {
	position: relative;
	height: 493px;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.gallery-track {
	position: relative;
	display: flex;
	align-items: center;
	gap: 36px;
	margin: 0;
	padding: 0;
	list-style: none;
	transition: transform 0.55s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.gallery-item {
	flex: 0 0 auto;
}

.gallery-item img {
	width: 607px;
	height: 380px;
	object-fit: cover;
	transition: transform 0.55s ease, box-shadow 0.55s ease;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.gallery-item.is-active img {
	transform: scale(1.3);
	z-index: 2;
	position: relative;
}

.gallery-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 5;
	width: 60px;
	height: 60px;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.92);
	color: var(--night);
	font-family: var(--body);
	font-size: 30px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s ease;
}

.gallery-arrow:hover {
	background: var(--teal);
}

.gallery-arrow.prev {
	left: 18px;
}

.gallery-arrow.next {
	right: 18px;
}

.gallery-dots {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 8px;
}

.gallery-dots a {
	width: 14px;
	height: 14px;
	border: 1px solid var(--teal);
	border-radius: 50%;
	color: var(--teal);
	font-size: 8px;
	line-height: 12px;
	text-align: center;
	transition: background 0.2s ease, color 0.2s ease;
}

.gallery-dots a.is-active {
	background: var(--teal);
	color: var(--night);
}

/* About + stats */
.about-section {
	background: var(--alt);
	padding: 120px 0 90px;
}

.stats-grid {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 22px;
	margin: 70px 0 16px;
}

.stat {
	text-align: center;
}

.stat-num {
	display: block;
	font-size: 40px;
	font-weight: 700;
	line-height: 1.1;
	color: var(--white);
}

.stat span {
	display: block;
	font-size: 15px;
	line-height: 1.3;
	color: var(--soft);
	margin-top: 4px;
}

.closing-note {
	font-size: 16px;
	margin: 0 auto;
	max-width: 720px;
}

/* Reviews */
.reviews-section {
	position: relative;
	padding: 110px 0;
	overflow: hidden;
	background: var(--night);
}

.reviews-bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	background-attachment: fixed;
}

.reviews-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.62);
}

.reviews-inner {
	position: relative;
	z-index: 2;
	text-align: center;
	max-width: 1165px;
}

.reviews-inner .lead {
	max-width: 900px;
	margin-left: auto;
	margin-right: auto;
}

.testimonials {
	position: relative;
	margin: 56px auto 0;
	max-width: 1050px;
	min-height: 186px;
}

.testimonial {
	position: absolute;
	inset: 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.4s ease;
	text-align: left;
	padding: 0 90px;
}

.testimonial.is-active {
	opacity: 1;
	visibility: visible;
	position: relative;
}

.testimonial-head {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 14px;
}

.testimonial-head img {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	object-fit: cover;
}

.testimonial-head strong {
	display: block;
	font-size: 19.2px;
	line-height: 1.3;
}

.testimonial-link {
	font-size: 12px;
	line-height: 1.3;
}

.testimonial blockquote {
	margin: 0;
	padding: 0;
	font-size: 16px;
	line-height: 1.65;
	color: var(--white);
	font-style: italic;
}

.testimonials .gallery-arrow {
	top: 30%;
	width: 46px;
	height: 46px;
}

.testimonials .t-prev {
	left: 0;
}

.testimonials .t-next {
	right: 0;
}

/* Latest update */
.latest-section {
	padding: 120px 0 90px;
}

.update-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 40px 130px;
	margin-top: 70px;
	text-align: left;
}

.update-item img {
	width: 239px;
	height: 239px;
	object-fit: contain;
	margin-bottom: 22px;
}

.update-item p {
	color: var(--soft);
}

/* Credits */
.credits-section {
	position: relative;
	padding: 170px 0 150px;
	background: url("../img/bg2.jpg") center / cover no-repeat;
	overflow: hidden;
}

.credits-overlay {
	position: absolute;
	inset: 0;
	background-color: rgba(13, 15, 31, 0.78);
	background-image: url("../img/polygon.png");
	background-repeat: repeat;
	background-size: 500px 500px;
}

.credits-inner {
	position: relative;
	z-index: 2;
}

.follow-title {
	margin-top: 54px;
}

.credits-social {
	display: flex;
	justify-content: center;
	gap: 26px;
	margin-top: 26px;
}

.credits-social a,
.footer-social a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border: 1px solid var(--line);
	border-radius: 50%;
	color: var(--white);
}

.credits-social svg,
.footer-social svg {
	width: 18px;
	height: 18px;
	fill: currentColor;
}

.credits-social a:hover,
.footer-social a:hover {
	color: var(--teal);
	border-color: var(--teal);
}

/* Footer */
.site-footer {
	background: var(--night);
	border-top: 1px solid var(--line);
}

.footer-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	min-height: 57px;
	font-size: 11px;
	color: #eeeeee;
}

.footer-copy {
	font-size: 11px;
	color: #eeeeee;
}

.footer-legal {
	display: flex;
	gap: 22px;
	margin-left: auto;
}

.footer-legal a {
	color: #eeeeee;
	font-size: 11px;
}

.footer-social {
	display: flex;
	gap: 8px;
}

.footer-social a {
	width: 30px;
	height: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #eeeeee;
}

.footer-social svg {
	width: 14px;
	height: 14px;
	fill: currentColor;
}

.fallback-section {
	padding: 160px 0 120px;
	min-height: 60vh;
}

/* Mobile nav */
@media (max-width: 900px) {
	.nav-toggle {
		display: block;
		order: 3;
	}

	.site-nav {
		position: fixed;
		top: 62px;
		left: 0;
		right: 0;
		background: rgba(13, 15, 31, 0.98);
		border-top: 1px solid var(--line);
		transform: translateY(-8px);
		opacity: 0;
		visibility: hidden;
		transition: opacity 0.25s ease, transform 0.25s ease;
	}

	.nav-open .site-nav {
		opacity: 1;
		visibility: visible;
		transform: none;
	}

	.site-nav ul {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		padding: 10px 24px 20px;
	}

	.site-nav a {
		display: block;
		line-height: 44px;
		border-bottom: 1px solid var(--line);
	}

	.stats-grid {
		grid-template-columns: repeat(3, 1fr);
	}

	.update-grid {
		grid-template-columns: 1fr;
		gap: 46px;
	}

	.update-item img {
		margin-left: auto;
		margin-right: auto;
	}
}

@media (max-width: 720px) {
	.hero {
		height: 84vw;
		min-height: 380px;
	}

	.hero-center {
		padding-top: 30%;
	}

	.hero-play img {
		width: 92px;
	}

	.section {
		padding: 70px 0;
	}

	h3 {
		font-size: 24px;
	}

	.intro-line {
		font-size: 24px;
	}

	.gallery-viewport {
		height: 320px;
	}

	.gallery-item img {
		width: 380px;
		height: 238px;
	}

	.gallery-arrow {
		width: 44px;
		height: 44px;
		font-size: 24px;
	}

	.gallery-arrow.prev {
		left: 8px;
	}

	.gallery-arrow.next {
		right: 8px;
	}

	.stats-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 30px;
	}

	.testimonial {
		padding: 0 40px;
	}

	.testimonials .t-prev {
		left: 0;
	}

	.testimonials .t-next {
		right: 0;
	}

	.testimonials .gallery-arrow {
		width: 36px;
		height: 36px;
		font-size: 20px;
	}

	.footer-inner {
		flex-direction: column;
		justify-content: center;
		padding: 16px 20px;
		gap: 10px;
	}

	.footer-legal {
		margin-left: 0;
	}
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
	.hero-asteroids,
	.hero-ships {
		animation: none;
	}

	html {
		scroll-behavior: auto;
	}
}
