/*
 * MU Vanguard template-owned WebEngine bridge.
 *
 * The main presentation remains in webengine.css. This final layer only
 * supplies shared compatibility rules and keeps the authored design compact.
 */
:root {
	--we-bg: #050b14;
	--we-surface: rgba(7, 18, 33, .94);
	--we-surface-alt: rgba(10, 27, 48, .82);
	--we-border: rgba(212, 175, 55, .24);
	--we-text: #edf3f9;
	--we-muted: #9ca9b8;
	--we-accent: #d4af37;
	--we-accent-strong: #f3e5ab;
	--we-success: #52e591;
	--we-danger: #ef5577;
}

/* Keep every authored hero image attached to its original top edge. */
.mv-home #home .bg-cover,
.mv-module-page {
	background-position: center top !important;
}

/*
 * The source design used xl:min-h-screen, which made the artwork grow to the
 * complete browser height. Keep its composition and top anchor, but cap the
 * visual header so the following WebEngine content remains discoverable.
 */
.mv-home #home.mv-home-hero {
	width: 100%;
	height: clamp(650px, 76vh, 820px);
	min-height: 0 !important;
	padding: 90px 0 28px;
	box-sizing: border-box;
}

.mv-home .mv-home-hero-content {
	max-height: 100%;
	margin-top: 0 !important;
	margin-bottom: 0 !important;
}

.mv-home .mv-home-hero-content > img {
	width: min(34vw, 380px) !important;
	max-width: 380px !important;
	margin-bottom: 12px !important;
}

.mv-home .mv-home-hero-content h1 {
	margin-bottom: 10px !important;
	font-size: clamp(30px, 3.6vw, 48px) !important;
	line-height: 1.08;
}

.mv-home .mv-home-hero-content > p {
	margin-bottom: 20px !important;
}

.mv-home .mv-home-hero-content > div.flex.flex-col {
	margin-bottom: 20px !important;
}

/* The news module replaces the former static "Actualizaciones Principales". */
.mv-home-news {
	position: relative;
	z-index: 10;
	padding: 64px 0 96px;
	background: #050b14;
}

.mv-home-news-inner {
	width: min(1280px, calc(100% - 32px));
	margin: 0 auto;
}

.mv-home-news-heading {
	margin-bottom: 42px;
	text-align: center;
}

.mv-home-news-heading h2 {
	margin: 0 0 16px;
	color: #fff;
	font: 700 clamp(30px, 4vw, 48px)/1.2 Cinzel, Georgia, serif;
}

.mv-home-news-heading h2 span {
	color: #d4af37;
}

.mv-home-news-heading::after {
	display: block;
	width: 96px;
	height: 4px;
	margin: 0 auto;
	border-radius: 99px;
	background: #d4af37;
	content: "";
}

.mv-home-news-module {
	border: 1px solid rgba(212, 175, 55, .2);
	border-radius: 5px;
	padding: 38px;
	background: linear-gradient(145deg, rgba(10, 22, 40, .96), rgba(3, 8, 15, .96));
	box-shadow: 0 28px 80px rgba(0, 0, 0, .42);
}

/* Rich news seeded from the original MU Vanguard home presentation. */
.mv-home-news-module .panel-news {
	margin: 0;
	border: 0;
	background: transparent;
	box-shadow: none;
}

.mv-home-news-module .panel-news:hover {
	transform: none;
}

.mv-home-news-module .panel-news .panel-heading {
	padding: 0 0 26px;
	border-bottom: 1px solid rgba(255, 255, 255, .09);
	background: transparent;
}

.mv-home-news-module .panel-news .panel-title {
	margin: 0;
	font: 700 clamp(26px, 3vw, 38px)/1.2 Cinzel, Georgia, serif;
}

.mv-home-news-module .panel-news .panel-title a {
	color: #fff;
}

.mv-home-news-module .panel-news .panel-body {
	padding: 30px 0 0;
}

.mv-home-news-module .panel-news .panel-footer {
	margin-top: 28px;
	padding-right: 0;
	padding-left: 0;
	background: transparent;
}

.mv-news-update-tabs {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 10px;
	margin: 0 0 34px;
	padding: 0;
	list-style: none;
}

.mv-news-update-tabs li {
	display: flex;
	min-height: 48px;
	align-items: center;
	justify-content: center;
	margin: 0;
	border: 1px solid rgba(255, 255, 255, .1);
	border-radius: 6px;
	padding: 9px 10px;
	color: #9ca9b8;
	font: 600 12px/1.25 Rajdhani, Inter, sans-serif;
	text-align: center;
}

.mv-news-update-tabs li:first-child {
	border: 2px solid #d4af37;
	background: rgba(212, 175, 55, .13);
	color: #fff;
}

.mv-news-update-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(360px, .95fr);
	gap: 46px;
	align-items: start;
}

.mv-news-update-copy p {
	margin: 0 0 22px;
	color: #d1d7df;
	font: 400 17px/1.75 Inter, Arial, sans-serif;
}

.mv-news-update-copy h4 {
	margin: 30px 0 15px;
	color: #d4af37;
	font: 700 15px/1.3 Cinzel, Georgia, serif;
	text-transform: uppercase;
}

.mv-news-update-copy ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.mv-news-update-copy li {
	position: relative;
	margin: 0 0 12px;
	padding-left: 20px;
	color: #d1d7df;
	font: 400 16px/1.55 Inter, Arial, sans-serif;
}

.mv-news-update-copy li::before {
	position: absolute;
	top: .58em;
	left: 0;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #d4af37;
	content: "";
}

.mv-news-update-media {
	overflow: hidden;
	margin: 0;
	border: 1px solid rgba(255, 255, 255, .12);
	border-radius: 14px;
	aspect-ratio: 16 / 9;
	background: #000;
}

.mv-news-update-media video {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/*
 * WebEngine emits the character location and level as sibling elements.
 * Make them share the same grid row so the level badge is contained by the
 * capsule without changing modules/usercp/myaccount.php.
 */
.page-usercp.subpage-myaccount .mv-module-shell .row.text-center > .col-xs-3 {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 58px;
	align-items: stretch;
}

.page-usercp.subpage-myaccount .mv-module-shell .myaccount-character-name,
.page-usercp.subpage-myaccount .mv-module-shell .myaccount-character-block {
	grid-column: 1 / -1;
}

.page-usercp.subpage-myaccount .mv-module-shell .myaccount-character-block-location {
	grid-row: 3;
	grid-column: 1 / -1;
	width: 100%;
	min-width: 0;
	margin-top: 7px;
	padding: 8px 66px 8px 8px !important;
	box-sizing: border-box;
	overflow: hidden;
}

.page-usercp.subpage-myaccount .mv-module-shell .myaccount-character-block-level {
	position: static !important;
	grid-row: 3;
	grid-column: 2;
	z-index: 1;
	display: flex !important;
	align-items: center;
	justify-content: center;
	min-width: 0;
	margin: 7px 0 0;
	border-left: 1px solid rgba(212, 175, 55, .18);
	padding: 7px 6px;
	box-sizing: border-box;
	text-align: center;
}

/* Legacy character modules may emit large source textures. */
.mv-module-shell table .tables-character-class-img,
.mv-module-shell table img[src*="/character-avatars/"],
.mv-module-shell table img[src*="\\character-avatars\\"] {
	width: 64px !important;
	height: 64px !important;
	max-width: 64px !important;
	max-height: 64px !important;
	object-fit: contain;
}

.mv-empty-state {
	padding: 46px 24px;
	border: 1px solid rgba(212, 175, 55, .2);
	background: rgba(5, 11, 20, .54);
	text-align: center;
}

.mv-empty-state h2 {
	margin: 12px 0 8px;
	color: #f3e5ab;
	font-family: Cinzel, Georgia, serif;
}

.mv-empty-state p {
	max-width: 620px;
	margin: 0 auto;
	color: #9ca9b8;
}

.mv-usercp-promos {
	display: grid;
	gap: 10px;
	padding: 0 10px 10px;
}

.mv-usercp-promo {
	display: block;
	overflow: hidden;
	border: 1px solid rgba(212, 175, 55, .18);
	border-radius: 3px;
}

.mv-usercp-promo img {
	display: block;
	width: 100%;
	height: auto;
	transition: filter .2s ease, transform .2s ease;
}

.mv-usercp-promo:hover img {
	filter: brightness(1.08);
	transform: scale(1.015);
}

@media (max-width: 760px) {
	.mv-home #home.mv-home-hero {
		height: auto;
		min-height: 680px !important;
		padding: 104px 0 42px;
	}

	.mv-home .mv-home-hero-content > img {
		width: min(78vw, 360px) !important;
	}

	.mv-home-news {
		padding: 52px 0 68px;
	}

	.mv-home-news-module {
		padding: 24px 16px;
	}

	.mv-news-update-tabs {
		display: flex;
		overflow-x: auto;
		padding-bottom: 8px;
	}

	.mv-news-update-tabs li {
		min-width: 150px;
	}

	.mv-news-update-layout {
		grid-template-columns: 1fr;
		gap: 30px;
	}

}

@media (max-width: 900px) {
	.page-usercp.subpage-myaccount .mv-module-shell .row.text-center > .col-xs-3 {
		width: 50%;
	}
}

@media (max-width: 520px) {
	.page-usercp.subpage-myaccount .mv-module-shell .row.text-center > .col-xs-3 {
		width: 100%;
	}
}
