/*
Theme Name: Edenap Games
Theme URI: https://nekaj.net/
Author: Edenap Games
Description: A fast, modern classic WordPress theme for the Edenap Games catalog and SEO blog.
Version: 1.0.0
Text Domain: edenap-games
*/

:root {
	--eg-bg: #101414;
	--eg-bg-soft: #16201f;
	--eg-panel: #f8faf6;
	--eg-panel-strong: #ffffff;
	--eg-text: #111817;
	--eg-muted: #5c6864;
	--eg-line: rgba(17, 24, 23, 0.13);
	--eg-teal: #00a99d;
	--eg-lime: #c8f052;
	--eg-coral: #ff6b5f;
	--eg-gold: #f4b84a;
	--eg-shadow: 0 24px 70px rgba(8, 18, 16, 0.16);
	--eg-radius: 8px;
	--eg-wrap: min(1180px, calc(100vw - 40px));
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: #f4f7ef;
	color: var(--eg-text);
	font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 16px;
	line-height: 1.65;
	text-rendering: optimizeLegibility;
}

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

a {
	color: inherit;
	text-decoration-thickness: 0.08em;
	text-underline-offset: 0.18em;
}

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

.eg-wrap {
	width: var(--eg-wrap);
	margin: 0 auto;
}

.eg-site-header {
	position: sticky;
	top: 0;
	z-index: 20;
	background: rgba(244, 247, 239, 0.86);
	backdrop-filter: blur(18px);
	border-bottom: 1px solid rgba(17, 24, 23, 0.08);
}

.eg-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 72px;
	gap: 24px;
}

.eg-brand {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	font-weight: 900;
	font-size: 1rem;
	text-decoration: none;
}

.eg-brand-mark {
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border-radius: 8px;
	background: linear-gradient(135deg, var(--eg-lime), var(--eg-teal));
	color: #101414;
	font-weight: 1000;
	box-shadow: 0 12px 30px rgba(0, 169, 157, 0.28);
}

.eg-nav {
	display: flex;
	align-items: center;
	gap: 8px;
}

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

.eg-nav a {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding: 8px 12px;
	border-radius: 8px;
	color: #23302d;
	font-size: 0.94rem;
	font-weight: 750;
	text-decoration: none;
}

.eg-nav a:hover,
.eg-nav .current-menu-item > a {
	background: #ffffff;
	box-shadow: 0 10px 26px rgba(20, 31, 29, 0.08);
}

.eg-menu-toggle {
	display: none;
	width: 42px;
	height: 42px;
	border: 1px solid var(--eg-line);
	border-radius: 8px;
	background: #ffffff;
	color: var(--eg-text);
	font-weight: 900;
}

.eg-button,
.eg-store-button,
.wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 11px 18px;
	border: 0;
	border-radius: 8px;
	background: var(--eg-text);
	color: #ffffff;
	font-weight: 850;
	text-decoration: none;
	box-shadow: 0 14px 34px rgba(17, 24, 23, 0.16);
	transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.eg-button:hover,
.eg-store-button:hover,
.wp-block-button__link:hover {
	transform: translateY(-2px);
	box-shadow: 0 20px 44px rgba(17, 24, 23, 0.2);
}

.eg-button-secondary {
	background: #ffffff;
	color: var(--eg-text);
	border: 1px solid rgba(17, 24, 23, 0.1);
}

.eg-store-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	margin-top: 22px;
}

.eg-store-button {
	display: inline-flex;
	align-items: center;
	width: fit-content;
	min-height: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	line-height: 0;
}

.eg-store-badge {
	display: block;
	width: auto;
	height: 44px;
}

.eg-hero {
	position: relative;
	isolation: isolate;
	min-height: min(760px, calc(100vh - 72px));
	color: #ffffff;
	background:
		linear-gradient(90deg, rgba(16, 20, 20, 0.96), rgba(16, 20, 20, 0.72) 38%, rgba(16, 20, 20, 0.22) 74%),
		url("assets/images/hero-ai.png") center right / cover no-repeat,
		radial-gradient(circle at 80% 22%, rgba(200, 240, 82, 0.25), transparent 35%),
		var(--eg-bg);
	overflow: hidden;
}

.eg-hero::after {
	content: "";
	position: absolute;
	inset: auto 0 0;
	height: 140px;
	background: linear-gradient(180deg, transparent, #f4f7ef);
	z-index: -1;
}

.eg-hero-inner {
	display: grid;
	align-items: center;
	min-height: min(720px, calc(100vh - 88px));
	padding: 70px 0 130px;
}

.eg-kicker {
	display: inline-flex;
	align-items: center;
	width: fit-content;
	min-height: 32px;
	padding: 5px 10px;
	border: 1px solid rgba(255, 255, 255, 0.22);
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.08);
	color: #d9fff3;
	font-size: 0.78rem;
	font-weight: 900;
	text-transform: uppercase;
}

.eg-hero-copy {
	max-width: 650px;
}

.eg-hero h1,
.eg-page-hero h1 {
	margin: 18px 0 20px;
	font-size: clamp(3rem, 8vw, 7.4rem);
	line-height: 0.92;
	letter-spacing: 0;
}

.eg-hero p {
	max-width: 620px;
	margin: 0;
	color: rgba(255, 255, 255, 0.78);
	font-size: clamp(1.06rem, 2vw, 1.32rem);
}

.eg-hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 30px;
}

.eg-hero-actions .eg-button:first-child {
	background: var(--eg-lime);
	color: #101414;
}

.eg-hero-stats {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	width: min(620px, 100%);
	margin-top: 44px;
}

.eg-stat {
	padding: 16px;
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.08);
	backdrop-filter: blur(12px);
}

.eg-stat strong {
	display: block;
	font-size: 1.6rem;
	line-height: 1;
}

.eg-stat span {
	color: rgba(255, 255, 255, 0.68);
	font-size: 0.82rem;
	font-weight: 750;
}

.eg-section {
	padding: 86px 0;
}

.eg-section-dark {
	background: var(--eg-bg);
	color: #ffffff;
}

.eg-section-head {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 26px;
	margin-bottom: 34px;
}

.eg-section-head h2,
.eg-page-hero h1,
.eg-entry-content h1,
.eg-entry-content h2,
.eg-entry-content h3 {
	margin-top: 0;
	line-height: 1.05;
	letter-spacing: 0;
}

.eg-section-head h2 {
	max-width: 760px;
	margin-bottom: 0;
	font-size: clamp(2rem, 5vw, 4.7rem);
}

.eg-section-head p {
	max-width: 420px;
	margin: 0;
	color: var(--eg-muted);
}

.eg-section-dark .eg-section-head p {
	color: rgba(255, 255, 255, 0.65);
}

.eg-game-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
}

.eg-game-card {
	position: relative;
	display: flex;
	flex-direction: column;
	min-height: 100%;
	padding: 18px;
	border: 1px solid rgba(17, 24, 23, 0.08);
	border-radius: 8px;
	background: #ffffff;
	box-shadow: 0 18px 48px rgba(17, 24, 23, 0.08);
	overflow: hidden;
}

.eg-section-dark .eg-game-card {
	background: #f8faf6;
	color: var(--eg-text);
}

.eg-game-card::before {
	content: "";
	position: absolute;
	inset: 0 0 auto;
	height: 5px;
	background: linear-gradient(90deg, var(--eg-teal), var(--eg-lime), var(--eg-coral));
}

.eg-game-card-media {
	display: flex;
	align-items: center;
	gap: 14px;
	min-height: 82px;
}

.eg-game-icon {
	flex: 0 0 auto;
	width: 74px;
	height: 74px;
	border-radius: 18px;
	object-fit: cover;
	box-shadow: 0 14px 26px rgba(17, 24, 23, 0.22);
}

.eg-game-card h3 {
	margin: 16px 0 8px;
	font-size: 1.28rem;
	line-height: 1.1;
}

.eg-game-card p {
	margin: 0;
	color: var(--eg-muted);
	font-size: 0.96rem;
}

.eg-game-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
	margin-top: 14px;
}

.eg-pill {
	display: inline-flex;
	align-items: center;
	min-height: 28px;
	padding: 4px 9px;
	border-radius: 8px;
	background: #edf2e7;
	color: #33413e;
	font-size: 0.77rem;
	font-weight: 850;
}

.eg-card-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: auto;
	padding-top: 18px;
}

.eg-card-link {
	display: inline-flex;
	align-items: center;
	min-height: 42px;
	color: var(--eg-text);
	font-weight: 900;
	text-decoration: none;
}

.eg-card-link:hover {
	color: #071111;
}

.eg-feature-band {
	background:
		radial-gradient(circle at 10% 15%, rgba(255, 107, 95, 0.16), transparent 24%),
		radial-gradient(circle at 88% 12%, rgba(200, 240, 82, 0.2), transparent 28%),
		#ffffff;
}

.eg-feature-list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
}

.eg-feature {
	padding: 26px;
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.72);
	border: 1px solid rgba(17, 24, 23, 0.09);
	box-shadow: var(--eg-shadow);
}

.eg-feature strong {
	display: block;
	margin-bottom: 8px;
	font-size: 1.2rem;
}

.eg-feature p {
	margin: 0;
	color: var(--eg-muted);
}

.eg-post-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
}

.eg-post-card {
	padding: 22px;
	border: 1px solid rgba(17, 24, 23, 0.09);
	border-radius: 8px;
	background: #ffffff;
	box-shadow: 0 18px 48px rgba(17, 24, 23, 0.07);
}

.eg-post-card time {
	color: var(--eg-muted);
	font-size: 0.82rem;
	font-weight: 850;
	text-transform: uppercase;
}

.eg-post-card h3 {
	margin: 10px 0 10px;
	font-size: 1.22rem;
	line-height: 1.18;
}

.eg-post-card h3 a {
	text-decoration: none;
}

.eg-post-card p {
	margin: 0;
	color: var(--eg-muted);
}

.eg-page-hero {
	padding: 76px 0 46px;
	background:
		radial-gradient(circle at 86% 20%, rgba(0, 169, 157, 0.18), transparent 28%),
		linear-gradient(180deg, #ffffff, #f4f7ef);
}

.eg-page-hero p {
	max-width: 700px;
	margin: 0;
	color: var(--eg-muted);
	font-size: 1.14rem;
}

.eg-main {
	min-height: 54vh;
}

.eg-content {
	width: min(820px, calc(100vw - 40px));
	margin: 0 auto;
	padding: 54px 0 90px;
}

.eg-entry-content {
	font-size: 1.06rem;
}

.eg-entry-content > * + * {
	margin-top: 1.15em;
}

.eg-entry-content a {
	color: #007e76;
	font-weight: 750;
}

.eg-game-single {
	padding: 64px 0 90px;
}

.eg-game-hero {
	display: grid;
	grid-template-columns: 0.8fr 1.2fr;
	gap: 42px;
	align-items: center;
}

.eg-game-icon-large {
	width: min(260px, 58vw);
	border-radius: 36px;
	box-shadow: 0 30px 90px rgba(17, 24, 23, 0.28);
}

.eg-game-hero h1 {
	margin: 12px 0 16px;
	font-size: clamp(2.6rem, 7vw, 6rem);
	line-height: 0.95;
	letter-spacing: 0;
}

.eg-game-hero p {
	margin: 0;
	color: var(--eg-muted);
	font-size: 1.16rem;
}

.eg-game-details {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	margin: 38px 0;
}

.eg-detail {
	padding: 16px;
	border-radius: 8px;
	background: #ffffff;
	border: 1px solid rgba(17, 24, 23, 0.09);
}

.eg-detail span {
	display: block;
	color: var(--eg-muted);
	font-size: 0.78rem;
	font-weight: 900;
	text-transform: uppercase;
}

.eg-detail strong {
	display: block;
	margin-top: 4px;
	font-size: 1rem;
}

.eg-site-footer {
	padding: 54px 0 34px;
	background: #0d1211;
	color: #ffffff;
}

.eg-footer-grid {
	display: grid;
	grid-template-columns: 1.2fr 0.8fr 0.8fr;
	gap: 30px;
}

.eg-site-footer a {
	color: rgba(255, 255, 255, 0.82);
	text-decoration: none;
}

.eg-site-footer a:hover {
	color: var(--eg-lime);
}

.eg-footer-title {
	margin: 0 0 12px;
	font-size: 1rem;
}

.eg-footer-text {
	margin: 0;
	color: rgba(255, 255, 255, 0.62);
}

.eg-footer-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.eg-footer-list li + li {
	margin-top: 7px;
}

.eg-copyright {
	margin-top: 34px;
	padding-top: 20px;
	border-top: 1px solid rgba(255, 255, 255, 0.11);
	color: rgba(255, 255, 255, 0.52);
	font-size: 0.88rem;
}

@media (max-width: 920px) {
	:root {
		--eg-wrap: min(100vw - 28px, 760px);
	}

	.eg-menu-toggle {
		display: inline-grid;
		place-items: center;
	}

	.eg-nav {
		position: absolute;
		top: 72px;
		left: 14px;
		right: 14px;
		display: none;
		padding: 10px;
		border-radius: 8px;
		background: #ffffff;
		box-shadow: var(--eg-shadow);
	}

	.eg-nav.is-open {
		display: block;
	}

	.eg-nav ul {
		display: grid;
		gap: 2px;
	}

	.eg-nav a {
		width: 100%;
	}

	.eg-hero {
		min-height: auto;
		background:
			linear-gradient(180deg, rgba(16, 20, 20, 0.92), rgba(16, 20, 20, 0.78) 58%, rgba(16, 20, 20, 0.48)),
			url("assets/images/hero-ai.png") center bottom / cover no-repeat,
			var(--eg-bg);
	}

	.eg-hero-inner {
		min-height: 680px;
		padding: 58px 0 110px;
	}

	.eg-hero-stats,
	.eg-game-grid,
	.eg-feature-list,
	.eg-post-grid,
	.eg-game-details,
	.eg-footer-grid {
		grid-template-columns: 1fr;
	}

	.eg-section-head {
		display: block;
	}

	.eg-section-head p {
		margin-top: 14px;
	}

	.eg-game-hero {
		grid-template-columns: 1fr;
		gap: 28px;
	}
}

@media (max-width: 560px) {
	body {
		font-size: 15px;
	}

	.eg-header-inner {
		min-height: 66px;
	}

	.eg-nav {
		top: 66px;
	}

	.eg-hero h1,
	.eg-page-hero h1,
	.eg-game-hero h1 {
		font-size: clamp(2.7rem, 15vw, 4.2rem);
	}

	.eg-hero-actions,
	.eg-store-row {
		display: grid;
	}

	.eg-button,
	.eg-store-button {
		width: 100%;
	}

	.eg-section {
		padding: 62px 0;
	}

	.eg-game-card {
		padding: 16px;
	}
}

/*
 * Premium arcade redesign overrides.
 */
:root {
	--eg-ink: #090d0d;
	--eg-ink-2: #111717;
	--eg-cream: #f7f8ef;
	--eg-glow-teal: rgba(0, 220, 204, 0.34);
	--eg-glow-lime: rgba(200, 240, 82, 0.36);
	--eg-glow-coral: rgba(255, 107, 95, 0.3);
}

body {
	background:
		linear-gradient(180deg, #f9fbf2 0, #eef4e5 46%, #f9fbf2 100%);
}

.eg-site-header {
	background: rgba(249, 251, 242, 0.78);
	border-bottom-color: rgba(9, 13, 13, 0.12);
}

.eg-header-inner {
	min-height: 76px;
}

.eg-brand {
	font-size: 1.04rem;
}

.eg-brand-mark {
	position: relative;
	overflow: hidden;
	background: linear-gradient(135deg, #ffe15a, var(--eg-lime) 46%, #00dccc);
	box-shadow: 0 14px 34px rgba(0, 169, 157, 0.34);
}

.eg-brand-mark::after {
	content: "";
	position: absolute;
	inset: -30% 40% 45% -30%;
	background: rgba(255, 255, 255, 0.55);
	transform: rotate(-18deg);
}

.eg-nav a {
	color: #17211f;
	font-weight: 850;
}

.eg-nav a:hover,
.eg-nav .current-menu-item > a {
	background: #101414;
	color: #ffffff;
}

.eg-button,
.eg-store-button,
.wp-block-button__link {
	border: 1px solid rgba(255, 255, 255, 0.12);
	background:
		linear-gradient(135deg, rgba(255, 255, 255, 0.12), transparent),
		#111817;
	box-shadow:
		0 18px 42px rgba(17, 24, 23, 0.2),
		0 0 0 1px rgba(17, 24, 23, 0.05);
}

.eg-button:hover,
.eg-store-button:hover,
.wp-block-button__link:hover {
	transform: translateY(-3px);
	box-shadow:
		0 24px 58px rgba(17, 24, 23, 0.25),
		0 0 26px rgba(0, 220, 204, 0.18);
}

.eg-button-secondary {
	background: rgba(255, 255, 255, 0.93);
	color: var(--eg-text);
	border-color: rgba(17, 24, 23, 0.08);
}

.eg-hero {
	min-height: min(820px, calc(100vh - 76px));
	background:
		linear-gradient(90deg, rgba(3, 8, 24, 0.98), rgba(3, 8, 24, 0.88) 31%, rgba(3, 8, 24, 0.52) 58%, rgba(3, 8, 24, 0.12)),
		linear-gradient(180deg, rgba(0, 0, 0, 0.2), transparent 52%, rgba(249, 251, 242, 0.36)),
		url("assets/images/hero-characters.webp") center bottom / cover no-repeat,
		#0738aa;
}

.eg-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
	background-size: 44px 44px;
	mask-image: linear-gradient(90deg, #000, transparent 72%);
}

.eg-hero::after {
	height: 180px;
	background:
		linear-gradient(180deg, transparent, rgba(249, 251, 242, 0.75) 54%, #f9fbf2),
		linear-gradient(90deg, rgba(200, 240, 82, 0.18), rgba(0, 220, 204, 0.12), transparent);
}

.eg-hero-inner {
	min-height: min(760px, calc(100vh - 90px));
	padding: 72px 0 150px;
}

.eg-hero-copy {
	max-width: 760px;
	animation: eg-rise 520ms ease-out both;
}

.eg-kicker {
	border-color: rgba(200, 240, 82, 0.32);
	background:
		linear-gradient(135deg, rgba(200, 240, 82, 0.18), rgba(0, 220, 204, 0.08)),
		rgba(255, 255, 255, 0.08);
	color: #edffd0;
	box-shadow: 0 0 34px rgba(200, 240, 82, 0.12);
}

.eg-hero h1 {
	max-width: 730px;
	font-size: clamp(3.2rem, 7.4vw, 7rem);
	text-wrap: balance;
}

.eg-hero p {
	max-width: 660px;
	color: rgba(255, 255, 255, 0.82);
}

.eg-hero-actions .eg-button:first-child {
	background:
		linear-gradient(135deg, #fff07a, var(--eg-lime) 42%, #00dccc);
	color: #09100f;
	border-color: rgba(255, 255, 255, 0.28);
}

.eg-hero-stats {
	width: min(720px, 100%);
	margin-top: 38px;
}

.eg-stat {
	background:
		linear-gradient(180deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.05)),
		rgba(10, 16, 16, 0.44);
	border-color: rgba(255, 255, 255, 0.2);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.eg-stat strong {
	color: #f5ffd6;
}

.eg-section {
	position: relative;
}

.eg-featured-games {
	margin-top: -68px;
	padding-top: 0;
	z-index: 2;
}

.eg-featured-grid {
	display: grid;
	grid-template-columns: 1.15fr 0.92fr 0.92fr;
	gap: 18px;
	align-items: stretch;
}

.eg-featured-grid .eg-game-card:first-child {
	min-height: 460px;
	background:
		linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(244, 248, 236, 0.94)),
		radial-gradient(circle at 84% 10%, rgba(200, 240, 82, 0.42), transparent 28%);
}

.eg-featured-grid .eg-game-card:first-child .eg-game-icon {
	width: 106px;
	height: 106px;
	border-radius: 24px;
}

.eg-featured-grid .eg-game-card:first-child h3 {
	font-size: clamp(2rem, 4vw, 3.2rem);
}

.eg-all-games {
	background:
		radial-gradient(circle at 10% 12%, rgba(0, 220, 204, 0.16), transparent 24%),
		radial-gradient(circle at 84% 18%, rgba(255, 107, 95, 0.16), transparent 26%),
		linear-gradient(180deg, #0a0f0f, #111817 48%, #0d1211);
}

.eg-game-grid {
	gap: 20px;
}

.eg-game-card {
	isolation: isolate;
	padding: 20px;
	border-color: rgba(17, 24, 23, 0.1);
	background:
		linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 249, 239, 0.96));
	box-shadow:
		0 18px 52px rgba(17, 24, 23, 0.11),
		0 0 0 1px rgba(255, 255, 255, 0.7) inset;
	transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.eg-game-card:hover {
	transform: translateY(-5px);
	border-color: rgba(0, 169, 157, 0.24);
	box-shadow:
		0 28px 70px rgba(17, 24, 23, 0.17),
		0 0 38px rgba(0, 220, 204, 0.12);
}

.eg-section-dark .eg-game-card {
	background:
		linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(240, 245, 232, 0.94));
}

.eg-game-card::before {
	height: 6px;
	background: linear-gradient(90deg, #00dccc, var(--eg-lime), var(--eg-gold), var(--eg-coral));
}

.eg-game-card::after {
	content: "";
	position: absolute;
	inset: 6px 0 auto auto;
	width: 120px;
	height: 120px;
	z-index: -1;
	background: radial-gradient(circle, rgba(0, 220, 204, 0.15), transparent 66%);
}

.eg-game-card-media {
	align-items: flex-start;
	min-height: 96px;
}

.eg-game-icon {
	width: 88px;
	height: 88px;
	border-radius: 22px;
	box-shadow:
		0 16px 34px rgba(17, 24, 23, 0.26),
		0 0 0 4px rgba(255, 255, 255, 0.92);
}

.eg-game-card-label {
	display: inline-flex;
	align-items: center;
	min-height: 24px;
	padding: 3px 8px;
	border-radius: 8px;
	background: #101414;
	color: #f4ffd3;
	font-size: 0.72rem;
	font-weight: 900;
	text-transform: uppercase;
}

.eg-game-card h3 {
	margin-top: 18px;
	font-size: 1.46rem;
}

.eg-game-card p {
	color: #52615d;
}

.eg-game-card .eg-store-row {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
	margin-top: 18px;
}

.eg-game-card .eg-store-button {
	min-height: 42px;
	padding: 9px 10px;
	font-size: 0.82rem;
	box-shadow: none;
}

.eg-game-card .eg-store-button:only-child {
	grid-column: 1 / -1;
}

.eg-card-footer {
	border-top: 1px solid rgba(17, 24, 23, 0.09);
}

.eg-card-arrow {
	display: inline-grid;
	place-items: center;
	flex: 0 0 auto;
	width: 42px;
	height: 42px;
	border: 1px solid rgba(7, 17, 17, 0.12);
	border-radius: 999px;
	background:
		linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(201, 255, 61, 0.26)),
		#eef6e6;
	color: #071111;
	box-shadow:
		0 10px 28px rgba(6, 11, 21, 0.08),
		0 0 0 5px rgba(201, 255, 61, 0.08);
	font-size: 1.15rem;
	font-weight: 900;
	transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.eg-card-footer:hover .eg-card-arrow {
	transform: translateX(3px);
	background:
		linear-gradient(135deg, var(--eg-acid), var(--eg-neon)),
		#c9ff3d;
	box-shadow:
		0 14px 34px rgba(6, 11, 21, 0.14),
		0 0 0 6px rgba(40, 245, 208, 0.12);
}

.eg-feature-band {
	background:
		radial-gradient(circle at 12% 10%, rgba(255, 107, 95, 0.16), transparent 24%),
		radial-gradient(circle at 86% 16%, rgba(0, 220, 204, 0.16), transparent 28%),
		linear-gradient(180deg, #f9fbf2, #ffffff);
}

.eg-feature {
	background:
		linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(247, 250, 241, 0.82));
	border-color: rgba(17, 24, 23, 0.08);
}

.eg-post-card {
	transition: transform 180ms ease, box-shadow 180ms ease;
}

.eg-post-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 24px 56px rgba(17, 24, 23, 0.13);
}

.eg-page-hero {
	background:
		radial-gradient(circle at 82% 18%, rgba(255, 107, 95, 0.18), transparent 24%),
		radial-gradient(circle at 18% 12%, rgba(0, 220, 204, 0.18), transparent 28%),
		linear-gradient(180deg, #ffffff, #f7faef);
}

.eg-game-single {
	background:
		radial-gradient(circle at 8% 8%, rgba(0, 220, 204, 0.14), transparent 24%),
		radial-gradient(circle at 90% 12%, rgba(200, 240, 82, 0.16), transparent 24%),
		linear-gradient(180deg, #f9fbf2, #eef4e5);
}

.eg-game-hero {
	position: relative;
	padding: 44px;
	border-radius: 8px;
	background:
		linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(246, 249, 239, 0.78)),
		radial-gradient(circle at 80% 16%, rgba(255, 107, 95, 0.18), transparent 28%);
	border: 1px solid rgba(17, 24, 23, 0.08);
	box-shadow: 0 28px 80px rgba(17, 24, 23, 0.13);
	overflow: hidden;
}

.eg-game-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(17, 24, 23, 0.04) 1px, transparent 1px),
		linear-gradient(90deg, rgba(17, 24, 23, 0.04) 1px, transparent 1px);
	background-size: 38px 38px;
	pointer-events: none;
}

.eg-game-hero > * {
	position: relative;
}

.eg-game-icon-large {
	width: min(310px, 62vw);
	border-radius: 42px;
	box-shadow:
		0 30px 90px rgba(17, 24, 23, 0.32),
		0 0 0 8px rgba(255, 255, 255, 0.86);
}

.eg-game-details {
	margin-top: 24px;
}

.eg-detail {
	background: rgba(255, 255, 255, 0.84);
	box-shadow: 0 16px 42px rgba(17, 24, 23, 0.07);
}

@keyframes eg-rise {
	from {
		opacity: 0;
		transform: translateY(14px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	.eg-hero-copy,
	.eg-game-card,
	.eg-post-card,
	.eg-button,
	.eg-store-button {
		animation: none;
		transition: none;
	}
}

@media (max-width: 1020px) {
	.eg-featured-grid {
		grid-template-columns: 1fr;
	}

	.eg-featured-grid .eg-game-card:first-child {
		min-height: auto;
	}
}

@media (max-width: 920px) {
	.eg-hero {
		background:
			linear-gradient(180deg, rgba(3, 8, 24, 0.94), rgba(3, 8, 24, 0.82) 47%, rgba(3, 8, 24, 0.42)),
			linear-gradient(90deg, rgba(3, 8, 24, 0.65), transparent),
			url("assets/images/hero-characters.webp") 56% bottom / cover no-repeat,
			#0738aa;
	}

	.eg-featured-games {
		margin-top: -46px;
	}

	.eg-game-hero {
		padding: 28px;
	}
}

@media (max-width: 560px) {
	.eg-header-inner {
		min-height: 68px;
	}

	.eg-hero-inner {
		min-height: 700px;
		padding: 50px 0 100px;
	}

	.eg-hero h1 {
		font-size: clamp(2.7rem, 13.5vw, 4rem);
	}

	.eg-game-card .eg-store-row {
		grid-template-columns: 1fr;
	}

	.eg-game-icon {
		width: 78px;
		height: 78px;
		border-radius: 20px;
	}

	.eg-game-hero {
		padding: 20px;
	}
}

/*
 * Stunning Edenap redesign pass.
 */
:root {
	--eg-deep: #060b15;
	--eg-blue: #082c8e;
	--eg-neon: #28f5d0;
	--eg-acid: #c9ff3d;
	--eg-sun: #ffd34d;
	--eg-pink: #ff4f83;
	--eg-surface: #fbfff2;
}

body {
	background:
		radial-gradient(circle at 12% 2%, rgba(40, 245, 208, 0.12), transparent 28rem),
		radial-gradient(circle at 90% 8%, rgba(255, 79, 131, 0.11), transparent 30rem),
		linear-gradient(180deg, #fbfff2 0, #edf6e6 42%, #fbfff2 100%);
}

.eg-site-header {
	background: rgba(251, 255, 242, 0.74);
	box-shadow: 0 18px 60px rgba(6, 11, 21, 0.08);
}

.eg-brand-mark {
	background: conic-gradient(from 210deg, var(--eg-sun), var(--eg-acid), var(--eg-neon), var(--eg-sun));
	color: #071111;
}

.eg-hero {
	min-height: min(860px, calc(100vh - 76px));
	background:
		linear-gradient(90deg, rgba(6, 11, 21, 0.98), rgba(6, 11, 21, 0.9) 28%, rgba(6, 11, 21, 0.45) 57%, rgba(6, 11, 21, 0.06)),
		radial-gradient(circle at 24% 30%, rgba(40, 245, 208, 0.18), transparent 28%),
		url("assets/images/hero-stunning.webp") center right / cover no-repeat,
		var(--eg-deep);
}

.eg-hero::before {
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
	background-size: 36px 36px;
	mask-image: linear-gradient(90deg, #000, rgba(0, 0, 0, 0.55), transparent 76%);
}

.eg-hero::after {
	height: 220px;
	background:
		linear-gradient(180deg, transparent 0, rgba(251, 255, 242, 0.72) 56%, #fbfff2 100%),
		linear-gradient(90deg, rgba(201, 255, 61, 0.22), rgba(40, 245, 208, 0.14), transparent);
}

.eg-hero-inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 34px;
	align-items: center;
	max-width: 780px;
	min-height: min(800px, calc(100vh - 88px));
	padding: 72px 0 150px;
}

.eg-hero-copy {
	max-width: 720px;
}

.eg-hero h1 {
	max-width: 700px;
	font-size: clamp(3.4rem, 7.2vw, 7.2rem);
	line-height: 0.89;
	text-shadow: 0 16px 56px rgba(0, 0, 0, 0.48);
}

.eg-hero p {
	max-width: 610px;
	margin-bottom: 0;
	font-size: clamp(1.06rem, 1.55vw, 1.28rem);
	color: rgba(255, 255, 255, 0.82);
}

.eg-kicker,
.eg-section-tag {
	display: inline-flex;
	align-items: center;
	width: fit-content;
	min-height: 32px;
	padding: 5px 11px;
	border-radius: 8px;
	border: 1px solid rgba(201, 255, 61, 0.34);
	background: rgba(201, 255, 61, 0.12);
	color: #efffd1;
	font-size: 0.76rem;
	font-weight: 950;
	text-transform: uppercase;
}

.eg-section-tag {
	margin-bottom: 14px;
	background: rgba(8, 44, 142, 0.08);
	border-color: rgba(8, 44, 142, 0.12);
	color: #0c2f76;
}

.eg-section-dark .eg-section-tag,
.eg-all-games .eg-section-tag {
	background: rgba(40, 245, 208, 0.11);
	border-color: rgba(40, 245, 208, 0.26);
	color: #cffff5;
}

.eg-hero-actions .eg-button:first-child {
	background: linear-gradient(135deg, #fff16b, var(--eg-acid) 45%, var(--eg-neon));
	box-shadow:
		0 20px 54px rgba(40, 245, 208, 0.22),
		0 0 0 1px rgba(255, 255, 255, 0.28) inset;
}

.eg-hero-panel {
	align-self: end;
	display: grid;
	gap: 12px;
	width: min(100%, 380px);
	margin-left: auto;
	padding: 14px;
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 8px;
	background:
		linear-gradient(180deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.06)),
		rgba(6, 11, 21, 0.4);
	backdrop-filter: blur(14px);
	box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
	animation: eg-rise 620ms 120ms ease-out both;
}

.eg-hero-chip {
	display: grid;
	grid-template-columns: 54px 1fr;
	align-items: center;
	gap: 12px;
	min-height: 68px;
	padding: 8px;
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.88);
	color: #111817;
	text-decoration: none;
	font-weight: 950;
	box-shadow: inset 0 0 0 1px rgba(17, 24, 23, 0.08);
	transition: transform 160ms ease, background-color 160ms ease;
}

.eg-hero-chip:hover {
	transform: translateX(-4px);
	background: #ffffff;
}

.eg-hero-chip img {
	width: 54px;
	height: 54px;
	border-radius: 14px;
	object-fit: cover;
	box-shadow: 0 10px 22px rgba(6, 11, 21, 0.24);
}

.eg-stat {
	border-color: rgba(255, 255, 255, 0.22);
	background: rgba(6, 11, 21, 0.46);
}

.eg-stat strong {
	color: var(--eg-acid);
}

.eg-featured-games {
	margin-top: -76px;
}

.eg-section-head {
	align-items: start;
}

.eg-section-head h2 {
	text-wrap: balance;
}

.eg-featured-grid {
	grid-template-columns: 1.1fr 0.95fr 0.95fr;
	gap: 22px;
}

.eg-game-card {
	background:
		linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 250, 234, 0.96)),
		radial-gradient(circle at 84% 16%, rgba(40, 245, 208, 0.22), transparent 28%);
	box-shadow:
		0 24px 70px rgba(6, 11, 21, 0.13),
		0 0 0 1px rgba(255, 255, 255, 0.78) inset;
}

.eg-game-card::before {
	background: linear-gradient(90deg, var(--eg-neon), var(--eg-acid), var(--eg-sun), var(--eg-pink));
}

.eg-game-card:hover {
	transform: translateY(-7px);
	box-shadow:
		0 34px 88px rgba(6, 11, 21, 0.2),
		0 0 42px rgba(40, 245, 208, 0.14);
}

.eg-featured-grid .eg-game-card:first-child {
	min-height: 500px;
	background:
		linear-gradient(160deg, rgba(255, 255, 255, 0.98), rgba(239, 250, 225, 0.95)),
		radial-gradient(circle at 76% 8%, rgba(201, 255, 61, 0.38), transparent 28%);
}

.eg-featured-grid .eg-game-card:first-child h3 {
	font-size: clamp(2.2rem, 4vw, 3.7rem);
}

.eg-game-icon {
	width: 92px;
	height: 92px;
}

.eg-game-card-label {
	background: linear-gradient(135deg, #071111, #10242a);
	color: #eaffe2;
}

.eg-store-button {
	background:
		linear-gradient(135deg, rgba(255, 255, 255, 0.16), transparent),
		#071111;
}

.eg-game-card .eg-store-button {
	min-height: 46px;
}

.eg-worlds {
	padding-top: 54px;
	background:
		radial-gradient(circle at 9% 0%, rgba(255, 79, 131, 0.13), transparent 28rem),
		linear-gradient(180deg, #fbfff2, #f3faec);
}

.eg-world-grid {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 14px;
}

.eg-world {
	position: relative;
	min-height: 210px;
	padding: 22px;
	border-radius: 8px;
	overflow: hidden;
	color: #ffffff;
	background: #0c1421;
	box-shadow: 0 22px 60px rgba(6, 11, 21, 0.16);
}

.eg-world::after {
	content: "";
	position: absolute;
	inset: auto -20% -38% 18%;
	height: 150px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.18);
	filter: blur(22px);
}

.eg-world strong,
.eg-world span {
	position: relative;
	z-index: 1;
	display: block;
}

.eg-world strong {
	max-width: 11ch;
	font-size: 1.35rem;
	line-height: 1.05;
}

.eg-world span {
	margin-top: 68px;
	color: rgba(255, 255, 255, 0.78);
	font-size: 0.93rem;
	font-weight: 700;
}

.eg-world-zombie { background: linear-gradient(145deg, #173924, #0b1b13); }
.eg-world-fantasy { background: linear-gradient(145deg, #633617, #17100d); }
.eg-world-idle { background: linear-gradient(145deg, #0b6d84, #091821); }
.eg-world-merge { background: linear-gradient(145deg, #6c1550, #170914); }
.eg-world-story { background: linear-gradient(145deg, #263a8f, #0b1028); }

.eg-all-games {
	background:
		radial-gradient(circle at 10% 5%, rgba(40, 245, 208, 0.18), transparent 24%),
		radial-gradient(circle at 90% 10%, rgba(255, 79, 131, 0.16), transparent 26%),
		linear-gradient(180deg, #071111, #0e1820 52%, #080d12);
}

.eg-feature-band {
	background:
		linear-gradient(90deg, rgba(6, 11, 21, 0.88), rgba(6, 11, 21, 0.1)),
		url("assets/images/hero-characters.webp") center 46% / cover no-repeat,
		#0b2d84;
	color: #ffffff;
}

.eg-feature-band .eg-section-head p {
	color: rgba(255, 255, 255, 0.74);
}

.eg-feature-band .eg-section-tag {
	background: rgba(255, 255, 255, 0.11);
	color: #efffd1;
	border-color: rgba(255, 255, 255, 0.22);
}

.eg-feature {
	background: rgba(255, 255, 255, 0.9);
	color: #111817;
	backdrop-filter: blur(10px);
}

.eg-post-card {
	background:
		linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(242, 248, 235, 0.95));
}

.eg-page-hero {
	background:
		radial-gradient(circle at 84% 4%, rgba(40, 245, 208, 0.18), transparent 24rem),
		radial-gradient(circle at 18% 0%, rgba(255, 79, 131, 0.12), transparent 28rem),
		linear-gradient(180deg, #ffffff, #f4faeb);
}

.eg-game-hero {
	background:
		linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(241, 250, 229, 0.9)),
		radial-gradient(circle at 86% 8%, rgba(255, 211, 77, 0.28), transparent 24%);
	box-shadow: 0 30px 90px rgba(6, 11, 21, 0.16);
}

@media (max-width: 1100px) {
	.eg-hero-inner {
		grid-template-columns: 1fr;
		max-width: 780px;
	}

	.eg-hero-panel {
		width: min(620px, 100%);
		margin: 8px 0 0;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		align-self: start;
	}

	.eg-world-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 920px) {
	.eg-hero {
		background:
			linear-gradient(180deg, rgba(6, 11, 21, 0.96), rgba(6, 11, 21, 0.78) 44%, rgba(6, 11, 21, 0.36)),
			url("assets/images/hero-stunning.webp") 66% bottom / cover no-repeat,
			var(--eg-deep);
	}

	.eg-hero-inner {
		min-height: auto;
		padding: 54px 0 120px;
	}

	.eg-featured-grid {
		grid-template-columns: 1fr;
	}

	.eg-featured-grid .eg-game-card:first-child {
		min-height: auto;
	}
}

@media (max-width: 640px) {
	.eg-hero {
		background:
			linear-gradient(180deg, rgba(6, 11, 21, 0.98), rgba(6, 11, 21, 0.78) 42%, rgba(6, 11, 21, 0.5)),
			url("assets/images/hero-stunning.webp") 72% bottom / cover no-repeat,
			var(--eg-deep);
	}

	.eg-hero-inner {
		padding: 38px 0 88px;
	}

	.eg-hero h1 {
		font-size: clamp(3rem, 15vw, 4.5rem);
	}

	.eg-hero-panel {
		display: none;
	}

	.eg-hero-stats {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 7px;
		margin-top: 24px;
	}

	.eg-stat {
		padding: 10px 7px;
	}

	.eg-stat strong {
		font-size: 1.12rem;
	}

	.eg-stat span {
		font-size: 0.68rem;
		line-height: 1.15;
	}

	.eg-world-grid {
		grid-template-columns: 1fr;
	}

	.eg-world {
		min-height: 166px;
	}

	.eg-world span {
		margin-top: 42px;
	}
}

/* Premium game detail redesign. */
.eg-game-single-premium {
	background:
		radial-gradient(circle at 12% 18%, rgba(40, 245, 208, 0.1), transparent 28rem),
		radial-gradient(circle at 86% 20%, rgba(255, 211, 77, 0.12), transparent 26rem),
		linear-gradient(180deg, #f5faee 0%, #ffffff 62%, #f7fbef 100%);
	overflow: hidden;
}

.eg-game-page-hero {
	position: relative;
	min-height: min(720px, calc(100vh - 60px));
	color: #ffffff;
	background:
		linear-gradient(90deg, rgba(6, 11, 21, 0.94) 0%, rgba(6, 11, 21, 0.78) 36%, rgba(6, 11, 21, 0.24) 72%, rgba(6, 11, 21, 0.54) 100%),
		var(--eg-game-hero-image, url("assets/images/hero-stunning.webp")),
		linear-gradient(135deg, #071111, #16242f);
	background-position: center;
	background-size: cover;
}

.eg-game-page-hero::after {
	content: "";
	position: absolute;
	inset: auto 0 0;
	height: 130px;
	background: linear-gradient(180deg, transparent, rgba(245, 250, 238, 0.92) 78%, #f5faee 100%);
	pointer-events: none;
}

.eg-game-page-hero-art {
	position: absolute;
	inset: 0;
	background:
		radial-gradient(circle at 72% 18%, rgba(201, 255, 61, 0.22), transparent 18rem),
		radial-gradient(circle at 88% 64%, rgba(255, 79, 131, 0.2), transparent 20rem),
		linear-gradient(180deg, transparent 0%, rgba(6, 11, 21, 0.22) 100%);
	mix-blend-mode: screen;
	pointer-events: none;
}

.eg-game-page-hero-inner {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: minmax(0, 1fr) 360px;
	gap: clamp(28px, 5vw, 76px);
	align-items: end;
	min-height: min(720px, calc(100vh - 60px));
	padding: clamp(62px, 9vw, 124px) 0 clamp(60px, 8vw, 104px);
}

.eg-game-hero-copy {
	max-width: 760px;
}

.eg-back-link {
	display: inline-flex;
	align-items: center;
	min-height: 38px;
	margin-bottom: 18px;
	padding: 0 14px;
	border: 1px solid rgba(255, 255, 255, 0.24);
	border-radius: 999px;
	color: rgba(255, 255, 255, 0.86);
	font-size: 0.88rem;
	font-weight: 900;
	text-decoration: none;
	background: rgba(255, 255, 255, 0.09);
}

.eg-game-hero-copy h1 {
	max-width: 10ch;
	margin: 14px 0 18px;
	color: #ffffff;
	font-size: clamp(3.6rem, 10vw, 8.6rem);
	line-height: 0.86;
	text-wrap: balance;
	text-shadow: 0 18px 54px rgba(0, 0, 0, 0.42);
}

.eg-game-hero-copy p {
	max-width: 650px;
	color: rgba(255, 255, 255, 0.84);
	font-size: clamp(1.05rem, 2vw, 1.32rem);
	font-weight: 750;
	line-height: 1.55;
}

.eg-game-hero-copy .eg-store-row {
	margin-top: 28px;
}

.eg-store-name-note {
	margin: 14px 0 0;
	color: rgba(255, 255, 255, 0.7);
	font-size: 0.92rem;
}

.eg-game-install-panel {
	display: grid;
	gap: 18px;
	padding: 22px;
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 8px;
	background:
		linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.08)),
		rgba(7, 17, 17, 0.72);
	box-shadow: 0 30px 90px rgba(0, 0, 0, 0.35);
	backdrop-filter: blur(18px);
}

.eg-game-icon-xl {
	width: 132px;
	height: 132px;
	border-radius: 28px;
	box-shadow:
		0 22px 52px rgba(0, 0, 0, 0.38),
		0 0 0 1px rgba(255, 255, 255, 0.2) inset;
}

.eg-game-install-panel strong {
	display: block;
	color: #ffffff;
	font-size: 1.65rem;
	line-height: 1.05;
}

.eg-game-install-panel span {
	color: rgba(255, 255, 255, 0.72);
	font-weight: 850;
}

.eg-game-mini-meta {
	display: grid;
	gap: 10px;
	padding-top: 16px;
	border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.eg-game-mini-meta span {
	display: block;
	color: #efffd1;
	font-size: 0.9rem;
}

.eg-game-body {
	position: relative;
	z-index: 2;
	margin-top: -28px;
	padding: 32px 0 82px;
	background:
		radial-gradient(circle at 10% 0%, rgba(40, 245, 208, 0.1), transparent 24rem),
		linear-gradient(180deg, #f5faee 0%, #ffffff 58%, #f7fbef 100%);
}

.eg-game-story-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 340px;
	gap: 28px;
	align-items: start;
}

.eg-game-story {
	border: 1px solid rgba(6, 11, 21, 0.08);
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.94);
	box-shadow: 0 24px 70px rgba(6, 11, 21, 0.12);
}

.eg-game-details-premium {
	position: sticky;
	top: 96px;
	grid-template-columns: 1fr;
	margin: 0;
	padding: 18px;
	border: 1px solid rgba(6, 11, 21, 0.08);
	border-radius: 8px;
	background:
		linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(243, 250, 233, 0.94));
	box-shadow: 0 24px 70px rgba(6, 11, 21, 0.11);
}

.eg-game-media-section,
.eg-game-video-section {
	margin-top: 62px;
}

.eg-game-media-section .eg-section-head {
	max-width: 780px;
	margin-bottom: 24px;
}

.eg-game-media-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
}

.eg-game-shot {
	position: relative;
	min-height: 230px;
	margin: 0;
	border-radius: 8px;
	overflow: hidden;
	background: #071111;
	box-shadow: 0 22px 58px rgba(6, 11, 21, 0.15);
}

.eg-game-shot-featured {
	grid-column: span 2;
	grid-row: span 2;
	min-height: 476px;
}

.eg-game-shot img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transform: scale(1.001);
	transition: transform 180ms ease, filter 180ms ease;
}

.eg-game-shot:hover img {
	transform: scale(1.035);
	filter: saturate(1.08);
}

.eg-game-video {
	aspect-ratio: 16 / 9;
	border-radius: 8px;
	overflow: hidden;
	background: #071111;
	box-shadow: 0 26px 70px rgba(6, 11, 21, 0.16);
}

.eg-game-video iframe {
	width: 100%;
	height: 100%;
	border: 0;
}

@media (max-width: 980px) {
	.eg-game-page-hero {
		min-height: auto;
		background:
			linear-gradient(180deg, rgba(6, 11, 21, 0.95) 0%, rgba(6, 11, 21, 0.7) 58%, rgba(6, 11, 21, 0.5) 100%),
			var(--eg-game-hero-image, url("assets/images/hero-stunning.webp")),
			linear-gradient(135deg, #071111, #16242f);
		background-position: center top;
		background-size: cover;
	}

	.eg-game-page-hero-inner {
		grid-template-columns: 1fr;
		min-height: auto;
		padding: 56px 0 116px;
	}

	.eg-game-install-panel {
		grid-template-columns: auto 1fr;
		align-items: center;
		width: min(520px, 100%);
	}

	.eg-game-mini-meta {
		grid-column: 1 / -1;
	}

	.eg-game-story-grid {
		grid-template-columns: 1fr;
	}

	.eg-game-details-premium {
		position: static;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.eg-game-media-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.eg-game-page-hero-inner {
		padding: 26px 0 58px;
	}

	.eg-game-hero-copy h1 {
		max-width: 9ch;
		margin: 9px 0 12px;
		font-size: clamp(2.95rem, 15vw, 4.45rem);
		line-height: 0.9;
	}

	.eg-game-hero-copy p {
		font-size: 1rem;
		line-height: 1.42;
	}

	.eg-game-hero-copy .eg-store-row {
		margin-top: 18px;
	}

	.eg-store-name-note {
		margin-top: 10px;
		font-size: 0.86rem;
	}

	.eg-game-install-panel {
		grid-template-columns: auto 1fr;
		gap: 12px;
		padding: 14px;
	}

	.eg-game-icon-xl {
		width: 78px;
		height: 78px;
		border-radius: 18px;
	}

	.eg-game-install-panel strong {
		font-size: 1.22rem;
	}

	.eg-game-mini-meta {
		display: none;
	}

	.eg-game-body {
		margin-top: -18px;
		padding-top: 22px;
	}

	.eg-game-story {
		padding: 24px;
	}

	.eg-game-details-premium {
		grid-template-columns: 1fr;
	}

	.eg-game-media-grid {
		display: flex;
		gap: 14px;
		margin-inline: calc(var(--eg-space) * -1);
		padding: 0 var(--eg-space) 10px;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
	}

	.eg-game-shot,
	.eg-game-shot-featured {
		flex: 0 0 82%;
		min-height: 250px;
		scroll-snap-align: start;
	}
}

@media (prefers-reduced-motion: reduce) {
	.eg-game-shot img {
		transition: none;
	}

	.eg-game-shot:hover img {
		transform: none;
	}
}

/* Official store badge pass. */
.eg-store-button,
.eg-store-button:hover,
.eg-game-card .eg-store-button {
	width: fit-content;
	min-height: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	transform: none;
	line-height: 0;
}

.eg-store-badge {
	display: block;
	width: auto;
	height: 44px;
}

.eg-store-badge-google-play {
	height: 66px;
}

.eg-store-badge-app-store {
	height: 44px;
}

.eg-game-card h3,
.eg-featured-grid .eg-game-card:first-child h3 {
	min-height: 3.22rem;
	margin: 18px 0 8px;
	font-size: 1.46rem;
	line-height: 1.1;
}

.eg-game-card .eg-store-row {
	grid-template-columns: repeat(2, max-content);
	align-items: center;
	gap: 8px;
	margin-top: auto;
	padding-top: 24px;
}

.eg-game-card .eg-store-row + .eg-card-footer {
	margin-top: 18px;
}

.eg-game-card .eg-store-button:only-child {
	grid-column: auto;
}

.eg-game-hero-copy .eg-store-row {
	gap: 12px;
}

@media (max-width: 560px) {
	.eg-store-row,
	.eg-game-card .eg-store-row {
		grid-template-columns: 1fr;
		justify-items: start;
	}

	.eg-store-badge {
		height: 40px;
	}

	.eg-store-badge-google-play {
		height: 60px;
	}
}
