/**
 * Loaded after style.min.css (now aligned with m2world stock theme).
 * PW-only: hero + parchment column + inner-page overlap with the header.
 * Footer markup/CSS matches m2world — do not add footer overrides here.
 */

.pixarts-header {
	background-color: #110708;
	background-image: url("../img/header-bg.jpg");
	background-image: image-set(
		url("../img/header-bg.webp") type("image/webp"),
		url("../img/header-bg.jpg") type("image/jpeg")
	);
	background-repeat: no-repeat;
	background-position: center top;
	background-size: cover;
}

.wrapper > .pixarts-site-content {
	background-color: #f7f5f0;
	background-image: url("../img/content-bg.jpg");
	background-image: image-set(
		url("../img/content-bg.webp") type("image/webp"),
		url("../img/content-bg.jpg") type("image/jpeg")
	);
	background-repeat: no-repeat;
	background-position: center top;
	background-size: cover;
}

body.page-inner .wrapper > .pixarts-header {
	position: relative;
	z-index: 2;
}

body.page-inner .wrapper > .pixarts-site-content {
	position: relative;
	z-index: 1;
}

/*
 * Inner + download: main column can stack above the pulled-up footer in the overlap zone.
 * Only z-index — same stacking idea as before, without changing footer colors or clipping.
 */
body.page-inner .wrapper > .footer,
body.download-page .wrapper > .footer {
	position: relative;
	z-index: 2;
}

/* =============================================================
   Shared inner-page hero (rankings / itemshop / community / support)
   ============================================================= */

body.page-inner {
	background-color: #100707;
	background-position: center top;
	background-size: cover;
	background-repeat: no-repeat;
	background-image: url("../img/header-bg.jpg");
	background-image: image-set(
		url("../img/header-bg.webp") type("image/webp"),
		url("../img/header-bg.jpg") type("image/jpeg")
	);
	color: #463d3a;
}

body.page-inner .wrapper {
	width: 100%;
	max-width: 1920px;
	overflow-x: clip;
}

.inner-hero-header {
	min-width: 0 !important;
	height: 305px !important;
	padding-bottom: 0;
	background-image: url("../img/header-bg.jpg");
	background-image: image-set(
		url("../img/header-bg.webp") type("image/webp"),
		url("../img/header-bg.jpg") type("image/jpeg")
	);
	background-position: center top;
	background-size: cover;
	overflow: visible;
}

.inner-hero-header:after {
	content: "";
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	height: 150px;
	background: linear-gradient(180deg, rgba(16, 7, 7, 0) 0%, rgba(16, 7, 7, 0.78) 100%);
	z-index: 1;
	pointer-events: none;
}

body.page-inner .pixarts-nav {
	position: relative;
	z-index: 5;
	margin: 0 auto;
}

.inner-hero {
	position: relative;
	z-index: 2;
	padding-top: 42px;
	text-align: center;
}

.inner-title-line {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 20px;
}

.inner-title-line img {
	display: block;
	width: 156px;
	height: auto;
	object-fit: contain;
	opacity: 0.95;
}

.inner-title-line h1 {
	margin: 0;
	font-family: "aAbsoluteEmpire", "Open Sans", sans-serif;
	font-size: 38px;
	font-weight: 400;
	line-height: 0.96;
	text-transform: uppercase;
	color: #f0c080;
	text-shadow: 0 2px 0 #2a100c, 0 0 18px rgba(225, 98, 39, 0.45);
	letter-spacing: 1px;
}

.inner-title-line h1 span {
	display: block;
}

.inner-breadcrumb {
	margin-top: 14px;
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	color: rgba(236, 219, 184, 0.55);
}

.inner-breadcrumb a {
	color: rgba(236, 219, 184, 0.7);
	transition: color 0.2s;
}

.inner-breadcrumb a:hover {
	color: #f0c080;
}

.inner-breadcrumb a:after {
	content: ">";
	margin: 0 8px;
	color: rgba(236, 219, 184, 0.35);
}

/* lift content over the header gradient (only when content uses the standard site-content) */
body.page-inner .pixarts-site-content {
	position: relative;
	margin-top: -52px;
	padding-top: 70px;
	background-image: url("../img/content-bg.jpg");
	background-image: image-set(
		url("../img/content-bg.webp") type("image/webp"),
		url("../img/content-bg.jpg") type("image/jpeg")
	);
	background-position: center top;
	background-size: cover;
}

@media (max-width: 1024px) {
	.inner-hero-header {
		height: 330px !important;
	}
	.inner-hero {
		padding-top: 72px;
	}
}

@media (max-width: 768px) {
	.inner-hero-header {
		height: auto !important;
		min-height: 0 !important;
		padding-top: 0;
		padding-bottom: 0;
		margin-bottom: 0;
		box-shadow: none;
		border-bottom: 0;
		/* prevent any pseudo-element / background bleed below the hero */
		overflow: hidden;
	}
	/* hide the dark fade-out gradient on mobile — on desktop the content lifts
	   ~52px over it; on mobile that lift is too small to cover 150px of gradient. */
	.inner-hero-header:after {
		display: none;
	}
	.inner-hero {
		padding: 88px 12px 60px;
	}
	.inner-title-line {
		gap: 10px;
	}
	.inner-title-line img {
		width: 72px;
	}
	.inner-title-line h1 {
		font-size: 28px;
	}
	/* On mobile, the content-bg.jpg "cover" sized image shows a grey strip at the
	   top of its texture. Force a solid color instead. */
	body.page-inner .pixarts-site-content {
		/* Generous overlap with the hero + diagonal clip-path creates the same
		   seamless "emerging from the header" transition the homepage has. */
		margin-top: -28px;
		padding-top: 55px;
		box-shadow: none;
		border-top: 0;
		background-image: none;
		background-color: #f7f5f0;
		clip-path: polygon(0 28px, 100% 0, 100% 100%, 0 100%);
		position: relative;
		z-index: 1;
	}
	.wrapper > .pixarts-site-content {
		background-image: none;
		background-color: #f7f5f0;
	}
}

@media (max-width: 480px) {
	.inner-title-line img {
		width: 52px;
	}
	.inner-title-line h1 {
		font-size: 22px;
	}
}
