/*
 * Theme shell — custom inner page templates removed.
 * Header/footer use Tailwind-style utilities when the Tailwind CDN script is enqueued.
 */

html {
	scroll-behavior: smooth;
	overflow-x: hidden;
}

@supports (overflow: clip) {
	html {
		overflow-x: clip;
	}
}

body {
	min-width: 0;
	overflow-x: hidden;
}

@supports (overflow: clip) {
	body {
		overflow-x: clip;
	}
}

.lv-site-header {
	background: linear-gradient(180deg, rgba(46, 8, 84, 0.96) 0%, rgba(26, 10, 46, 0.98) 100%) !important;
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	border-bottom: none !important;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.lv-site-header #lv-nav-desktop,
.lv-site-header #lv-nav-desktop a {
	color: #ffffff !important;
	font-weight: 700;
	text-shadow: 0 1px 1px rgba(0, 0, 0, 0.35);
}

.lv-site-header #lv-nav-desktop a:hover,
.lv-site-header #lv-nav-desktop a:focus-visible {
	color: #fff000 !important;
}

.lv-site-header #lv-nav-desktop .current-menu-item > a,
.lv-site-header #lv-nav-desktop .current_page_item > a,
.lv-site-header #lv-nav-desktop .current-menu-ancestor > a {
	color: #ffd700 !important;
}

.lv-site-header #nav-toggle {
	color: #f8fafc !important;
	border: none !important;
	background: rgba(255, 255, 255, 0.08);
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.lv-mobile-nav {
	background: rgba(5, 5, 32, 0.98) !important;
	border-top: none !important;
	box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.25);
	max-height: min(70vh, 24rem);
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior: contain;
}

.lv-mobile-nav a {
	color: #f1f5f9 !important;
	font-weight: 700;
	text-shadow: 0 1px 1px rgba(0, 0, 0, 0.35);
	display: flex;
	align-items: center;
	min-height: 2.75rem;
	padding-top: 0.5rem;
	padding-bottom: 0.5rem;
	-webkit-tap-highlight-color: rgba(255, 215, 0, 0.12);
}

.lv-mobile-nav a:hover,
.lv-mobile-nav a:focus-visible {
	color: #fff000 !important;
}

#main-content .lv-faq-accordion .faq-panel[hidden] {
	display: none !important;
}

#main-content .lv-faq-accordion .faq-panel:not([hidden]) {
	display: block !important;
}

/* Inner pages: align with home visual language */
#main-content.page {
	position: relative;
	width: 100%;
	margin: 0 auto;
	padding: 4.5rem 0 5rem;
	font-family: "Plus Jakarta Sans", sans-serif;
	color: #e8e8ed;
	background: linear-gradient(180deg, #2e0854 0%, #1a0a2e 42%, #050520 100%);
}

#main-content.page::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -2;
	pointer-events: none;
	background-image:
		linear-gradient(to right, rgba(255, 215, 0, 0.03) 1px, transparent 1px),
		linear-gradient(to bottom, rgba(255, 215, 0, 0.03) 1px, transparent 1px);
	background-size: 40px 40px;
	opacity: 0.35;
	mask-image: linear-gradient(180deg, #000 0%, #000 75%, transparent 100%);
}

#main-content.page::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	background:
		radial-gradient(circle at 12% 10%, rgba(255, 215, 0, 0.12), transparent 36%),
		radial-gradient(circle at 88% 18%, rgba(230, 0, 0, 0.1), transparent 32%),
		radial-gradient(circle at 50% 92%, rgba(0, 168, 89, 0.08), transparent 40%);
}

#main-content.page section {
	position: relative;
	margin-top: 1.15rem;
	padding: 1.55rem 1.65rem;
	border-radius: 1.1rem;
	background: rgba(26, 10, 46, 0.72);
	backdrop-filter: blur(30px) saturate(180%);
	-webkit-backdrop-filter: blur(30px) saturate(180%);
	max-width: 74rem;
	margin-left: auto;
	margin-right: auto;
	border: none;
	box-shadow: 0 20px 48px rgba(0, 0, 0, 0.35);
	transition: transform 0.45s ease, box-shadow 0.45s ease;
}

#main-content.page section:hover {
	transform: translateY(-2px);
	box-shadow: 0 28px 56px rgba(0, 0, 0, 0.42);
}

#main-content.page .hero {
	margin-top: 0;
	padding-top: 2.1rem;
	padding-bottom: 1.6rem;
	background: linear-gradient(125deg, rgba(46, 8, 84, 0.45) 0%, rgba(26, 10, 46, 0.35) 100%);
}

#main-content.page h1,
#main-content.page h2,
#main-content.page h3 {
	font-family: "Space Grotesk", sans-serif;
	color: #f8fafc;
}

#main-content.page h1 {
	font-size: clamp(2.2rem, 5vw, 4rem);
	line-height: 1.02;
	letter-spacing: -0.02em;
	margin-bottom: 0.9rem;
	max-width: 22ch;
}

#main-content.page h2 {
	font-size: clamp(1.5rem, 2.9vw, 2.25rem);
	line-height: 1.1;
	margin-bottom: 0.7rem;
}

#main-content.page h3 {
	font-size: clamp(1.12rem, 2.2vw, 1.45rem);
	margin-bottom: 0.5rem;
}

#main-content.page p,
#main-content.page li,
#main-content.page blockquote {
	color: #cbd5e1;
	line-height: 1.78;
	font-size: 1.035rem;
}

#main-content.page p + p,
#main-content.page article + article,
#main-content.page blockquote + blockquote {
	margin-top: 1rem;
}

#main-content.page article {
	padding: 0.35rem 0;
}

#main-content.page article + article {
	border-top: none;
	padding-top: 1.15rem;
	margin-top: 0.5rem;
}

#main-content.page ul,
#main-content.page ol {
	padding-left: 1.3rem;
}

#main-content.page .kicker {
	text-transform: uppercase;
	letter-spacing: 0.12em;
	font-size: 0.75rem;
	color: #ffd700;
	font-weight: 600;
}

#main-content.page .hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.9rem;
	margin-top: 1.2rem;
}

#main-content.page .btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.74rem 1.45rem;
	text-decoration: none;
	font-weight: 600;
	clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
	transition: all 0.45s ease;
}

#main-content.page .btn-primary {
	background: linear-gradient(105deg, #ffd700 0%, #fff000 50%, #ffd700 100%);
	color: #1a0a2e;
	box-shadow: 0 16px 36px rgba(255, 215, 0, 0.28);
}

#main-content.page .btn-primary:hover {
	clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 100%, 12px 100%);
	box-shadow: 0 20px 46px rgba(255, 215, 0, 0.38);
}

#main-content.page .btn-secondary {
	background: rgba(5, 5, 32, 0.65);
	color: #f8fafc;
	border: none;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

#main-content.page .btn-secondary:hover {
	color: #fff000;
	box-shadow: 0 8px 28px rgba(255, 215, 0, 0.1);
}

#main-content.page blockquote {
	margin: 0;
	padding: 1.15rem 1.2rem;
	border-radius: 0.9rem;
	background: rgba(5, 5, 32, 0.55);
	border: none;
	box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
}

#main-content.page cite {
	display: block;
	margin-top: 0.5rem;
	color: #94a3b8;
	font-weight: 600;
	font-style: normal;
}

@media (max-width: 768px) {
	#main-content.page {
		padding: 3.15rem 0 3.65rem;
	}

	#main-content.page section {
		padding: 1.2rem 1rem;
		max-width: calc(100% - 2rem);
		border-radius: 0.9rem;
	}

	#main-content.page h1 {
		max-width: none;
	}

	#main-content.page section:hover {
		transform: none;
		box-shadow: 0 20px 48px rgba(0, 0, 0, 0.3);
	}
}

#main-content.page .page-media-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.8rem;
	margin-top: 1rem;
}

#main-content.page .page-media-grid--games {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

#main-content.page .page-media-grid--portraits {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

#main-content.page .page-media-item {
	border-radius: 0.8rem;
	overflow: hidden;
	background: rgba(5, 5, 32, 0.5);
	border: none;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

#main-content.page .page-media-item img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

#main-content.page .page-media-grid--games .page-media-item {
	aspect-ratio: 4 / 3;
}

#main-content.page .page-media-grid--portraits .page-media-item {
	aspect-ratio: 3 / 4;
}

@media (min-width: 768px) {
	#main-content.page .page-media-grid--games {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	#main-content.page .page-media-grid--portraits {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

@media (min-width: 1200px) {
	#main-content.page .page-media-grid--games {
		grid-template-columns: repeat(5, minmax(0, 1fr));
	}
}

/* ------------------------------------------------------------------
   Site-wide mobile: safe areas, content constraints, touch targets
   ------------------------------------------------------------------ */
body.lv-menu-open {
	overflow: hidden;
}

#main-content {
	min-width: 0;
	max-width: 100%;
}

/* iOS / notched devices: header & footer respect safe area */
.lv-site-header > div.mx-auto {
	padding-left: max(1rem, env(safe-area-inset-left, 0px));
	padding-right: max(1rem, env(safe-area-inset-right, 0px));
}

#colophon .max-w-7xl {
	padding-bottom: max(0.5rem, env(safe-area-inset-bottom, 0px));
}

.lv-site-header #nav-toggle {
	min-width: 2.75rem;
	min-height: 2.75rem;
	-webkit-tap-highlight-color: rgba(255, 215, 0, 0.12);
}

/* Inner page text: long URLs & words */
#main-content.page p,
#main-content.page li {
	overflow-wrap: break-word;
	word-break: break-word;
}

#main-content.page a {
	overflow-wrap: anywhere;
}

/* Single / archive: article body */
.lv-single-article,
.lv-single-prose {
	min-width: 0;
}

.lv-single-breadcrumb a {
	overflow-wrap: anywhere;
	word-break: break-word;
}

.lv-single-breadcrumb span {
	overflow-wrap: anywhere;
}

.lv-single-prose :where(.wp-block-table) {
	width: 100%;
	max-width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior-x: contain;
}

.lv-single-prose :where(.wp-block-table table) {
	width: 100%;
	min-width: min(20rem, 100%);
}

.lv-single-prose :where(pre) {
	max-width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	white-space: pre-wrap;
	word-break: break-word;
}

.lv-single-prose :where(iframe, video) {
	max-width: 100%;
}

/* Pagination: allow horizontal scroll on very small screens without breaking layout */
.lv-pagination-shell .page-numbers,
.lv-pagination-shell .nav-links {
	max-width: 100%;
}

.lv-pagination-shell .nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.35rem 0.25rem;
}

@media (max-width: 380px) {
	#main-content.page section {
		padding: 1.05rem 0.85rem;
	}

	#main-content.page p,
	#main-content.page li,
	#main-content.page blockquote {
		font-size: 1rem;
	}
}

.lv-footer-menu a {
	display: inline-flex;
	min-height: 2.75rem;
	align-items: center;
	padding: 0.35rem 0;
	-webkit-tap-highlight-color: rgba(255, 215, 0, 0.1);
}
