/*! © 2026 ObsidianMU (obsidianmu.net). Todos los derechos reservados. Código y diseño propios: prohibida su copia, venta o redistribución sin autorización. OBSMU-D781-0884-73E1 */
/* 12/11: "Sistemas del servidor" en la portada, al estilo "key updates" de MuDream:
   lista a la izquierda (ícono + nombre, el activo con barra dorada) y a la derecha el sistema elegido en grande:
   texto con título enorme y la captura del juego fundida a la izquierda. */
.hv .hv-feat { display: grid; grid-template-columns: 300px minmax(0, 1fr); min-height: 470px; padding: 0 !important; overflow: hidden; }
.hv-feat-list { display: flex; flex-direction: column; border-right: 1px solid var(--ob-line); background: rgb(0 0 0 / .18); }
.hv-feat-tab { position: relative; display: flex; flex: 0 0 auto; align-items: center; gap: 14px; min-height: 76px; padding: 12px 22px; border: 0; border-bottom: 1px solid rgb(255 255 255 / .05); background: none; color: #d8c8a8; font: 700 14.5px/1.3 var(--ob-sans); text-align: left; cursor: pointer; transition: background .2s, color .2s; }
.hv-feat-tab:last-child { border-bottom: 0; }
.hv-feat-tab .hv-ico { flex: none; filter: drop-shadow(0 2px 4px rgb(0 0 0 / .7)); opacity: .8; transition: opacity .2s, transform .25s; }
.hv-feat-tab:hover { background: linear-gradient(90deg, rgb(var(--ob-o) / .08), transparent); color: #fff; }
.hv-feat-tab.is-on { background: linear-gradient(90deg, rgb(var(--ob-o) / .18), rgb(var(--ob-o) / .03)); color: #ffd98a; }
.hv-feat-tab.is-on::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: linear-gradient(180deg, #ffd27a, #e08a2c); box-shadow: 0 0 12px rgb(var(--ob-o) / .8); }
.hv-feat-tab.is-on .hv-ico { opacity: 1; transform: scale(1.08); }
.hv-feat-tab:focus-visible { outline: 2px solid #ffcf7a; outline-offset: -2px; }
.hv-feat-panes { position: relative; min-width: 0; }
.hv-feat-pane { position: absolute; inset: 0; display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.6fr); align-items: center; }
.hv-feat-pane[hidden] { display: none; }
.hv-feat-pane.is-on { animation: hv-feat-in .45s cubic-bezier(.2, .7, .2, 1); }
@keyframes hv-feat-in { from { opacity: 0; transform: translateX(14px); } }
.hv-feat-txt { position: relative; z-index: 2; padding: 34px 10px 34px 42px; }
.hv-feat-txt .hv-ico { width: 56px; height: 56px; margin-bottom: 14px; filter: drop-shadow(0 4px 10px rgb(0 0 0 / .7)); }
.hv-feat-txt small { display: block; margin-bottom: 8px; color: rgb(var(--ob-gold)); font: 800 12px var(--ob-sans); letter-spacing: .14em; text-transform: uppercase; }
.hv-feat-txt h3 { margin: 0 0 18px; color: #fff; font: 900 38px/1.08 var(--ob-title, var(--ob-sans)) !important; letter-spacing: -.01em; text-shadow: 0 3px 0 rgb(0 0 0 / .6); }
.hv-feat-txt p { margin: 0; max-width: 420px; color: #d9cbb0; font: 15px/1.65 var(--ob-sans); }
.hv-feat-img { position: relative; height: 100%; margin: 0; overflow: hidden; }
.hv-feat-img img { width: 100%; height: 100%; object-fit: cover; object-position: 72% center; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22%); mask-image: linear-gradient(90deg, transparent 0, #000 22%); }
@media (max-width: 1100px) {
	.hv .hv-feat { grid-template-columns: 1fr; min-height: 0; }
	.hv-feat-list { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--ob-line); }
	.hv-feat-tab { flex: none; min-height: 60px; border-bottom: 0; border-right: 1px solid rgb(255 255 255 / .05); }
	.hv-feat-tab span { white-space: nowrap; }
	.hv-feat-tab.is-on::before { top: auto; right: 0; width: auto; height: 3px; }
	.hv-feat-pane { position: static; grid-template-columns: 1fr; }
	.hv-feat-txt { padding: 24px 20px 10px; }
	.hv-feat-txt h3 { font-size: 28px !important; }
	.hv-feat-img { height: auto; }
	.hv-feat-img img { height: auto; -webkit-mask-image: linear-gradient(0deg, #000 70%, transparent); mask-image: linear-gradient(0deg, #000 70%, transparent); }
}
@media (prefers-reduced-motion: reduce) { .hv-feat-pane.is-on { animation: none; } }

/* Video del menú F9: se recorta a la ventana del menú (en el video ocupa ~67 % del ancho, centrada) */
.hv-feat-video { background: #050403; }
.hv-feat-video video { position: absolute; left: 50%; top: 50%; width: 149%; height: auto; max-width: none; transform: translate(-50%, -47.8%); -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16%); mask-image: linear-gradient(90deg, transparent 0, #000 16%); }
@media (max-width: 1100px) { .hv-feat-video { aspect-ratio: 912 / 632; } .hv-feat-video video { -webkit-mask-image: none; mask-image: none; } }
/* Video del HUD de jefes: se muestra la pantalla entera, priorizando la parte de arriba (barra de vida y ranking de daño) */
.hv-feat-video video[data-start] { top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% top; transform: none; }

/* ===== 12/11 (2): video/imagen a todo el panel, texto encima a la izquierda y degradé que lo funde (como MuDream) ===== */
@media (min-width: 1101px) {
	.hv-feat-pane { display: block !important; }
	.hv-feat-pane[hidden] { display: none !important; }
	.hv-feat-img, .hv-feat-video { position: absolute !important; inset: 0 0 0 18% !important; height: auto !important; aspect-ratio: auto !important; overflow: hidden; background: #0b0806; }
	.hv-feat-img img, .hv-feat-video video, .hv-feat-video video[data-start] { position: absolute !important; inset: 0 !important; width: 100% !important; height: 100% !important; max-width: none; object-fit: cover !important; object-position: 85% 40% !important; transform: none !important; -webkit-mask-image: none !important; mask-image: none !important; }
	.hv-feat-video video[data-start] { object-position: 40% 0% !important; }
	/* Degradé: sólido a la izquierda (donde va el texto) y transparente hacia la derecha; viñeta arriba y abajo */
	.hv-feat-img::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
		background:
			linear-gradient(90deg, rgb(19 14 10) 0%, rgb(19 14 10 / .95) 20%, rgb(19 14 10 / .7) 36%, rgb(19 14 10 / 0) 62%),
			linear-gradient(0deg, rgb(19 14 10 / .85) 0%, rgb(19 14 10 / 0) 22%),
			linear-gradient(180deg, rgb(19 14 10 / .6) 0%, rgb(19 14 10 / 0) 16%),
			linear-gradient(270deg, rgb(19 14 10 / .5) 0%, rgb(19 14 10 / 0) 10%);
	}
	.hv-feat-txt { position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: center; width: 48%; height: 100%; padding: 40px 30px 40px 46px; box-sizing: border-box; }
	.hv-feat-txt h3 { text-shadow: 0 3px 12px rgb(0 0 0 / .9), 0 2px 0 rgb(0 0 0 / .6); }
	.hv-feat-txt p { text-shadow: 0 1px 6px rgb(0 0 0 / .95); }
}

/* 12/11 (3): sin marca vertical. El video ocupa todo el panel, sin fondo propio, y se desvanece con máscara
   (a la izquierda, donde va el texto, y abajo/arriba), así se funde con el fondo real del panel. */
@media (min-width: 1101px) {
	.hv-feat-img, .hv-feat-video { inset: 0 !important; background: none !important; }
	.hv-feat-img::after { display: none !important; }
	.hv-feat-img img, .hv-feat-video video, .hv-feat-video video[data-start] {
		-webkit-mask-image: linear-gradient(90deg, transparent 0%, transparent 24%, rgb(0 0 0 / .45) 40%, #000 64%), linear-gradient(0deg, transparent 0%, #000 24%, #000 86%, transparent 100%) !important;
		-webkit-mask-composite: source-in !important;
		mask-image: linear-gradient(90deg, transparent 0%, transparent 24%, rgb(0 0 0 / .45) 40%, #000 64%), linear-gradient(0deg, transparent 0%, #000 24%, #000 86%, transparent 100%) !important;
		mask-composite: intersect !important;
	}
	.hv-feat-txt { width: 46%; }
}
/* El texto queda en la franja oscura (sin pisar carteles del juego que aparecen en el video) */
@media (min-width: 1101px) { .hv-feat-txt { width: 42% !important; padding-right: 18px !important; } .hv-feat-txt h3 { font-size: 34px !important; } }

/* Varias fotos en un sistema (Jefes propios): se alternan con un fundido, 4,5 s cada una */
.hv-feat-slides img { opacity: 0; animation: hv-slide calc(var(--n) * 4.5s) infinite; animation-delay: calc(var(--k) * 4.5s); }
.hv-feat-slides img:first-child { opacity: 1; }
@keyframes hv-slide { 0% { opacity: 0; transform: scale(1.04); } 6% { opacity: 1; } 30% { opacity: 1; } 36% { opacity: 0; transform: scale(1); } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .hv-feat-slides img { animation: none; } .hv-feat-slides img:not(:first-child) { display: none; } }
@media (max-width: 1100px) { .hv-feat-slides { position: relative; aspect-ratio: 1360 / 676; } .hv-feat-slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; } }
/* En las fotos de jefes el monstruo está a la izquierda: la foto se corre a la derecha para que quede a la vista */
@media (min-width: 1101px) {
	.hv-feat-slides img { inset: 0 auto 0 30% !important; width: 100% !important; object-position: left center !important;
		-webkit-mask-image: linear-gradient(90deg, transparent 0%, rgb(0 0 0 / .35) 6%, #000 22%), linear-gradient(0deg, transparent 0%, #000 22%, #000 86%, transparent 100%) !important;
		mask-image: linear-gradient(90deg, transparent 0%, rgb(0 0 0 / .35) 6%, #000 22%), linear-gradient(0deg, transparent 0%, #000 22%, #000 86%, transparent 100%) !important; }
}

/* 12/11 (4): el degradé titilaba en los videos (Chrome redibuja mal una máscara aplicada directo a <video>).
   La máscara pasa al recuadro que contiene el video, que además se fuerza a su propia capa. */
@media (min-width: 1101px) {
	.hv-feat-video video, .hv-feat-video video[data-start] { -webkit-mask-image: none !important; mask-image: none !important; }
	.hv-feat-video {
		-webkit-mask-image: linear-gradient(90deg, transparent 0%, transparent 24%, rgb(0 0 0 / .45) 40%, #000 64%), linear-gradient(0deg, transparent 0%, #000 24%, #000 86%, transparent 100%);
		-webkit-mask-composite: source-in;
		mask-image: linear-gradient(90deg, transparent 0%, transparent 24%, rgb(0 0 0 / .45) 40%, #000 64%), linear-gradient(0deg, transparent 0%, #000 24%, #000 86%, transparent 100%);
		mask-composite: intersect;
		transform: translateZ(0); will-change: transform; isolation: isolate;
	}
}
/* Jefes: la foto un poco más a la izquierda y desde arriba, para que se vea la barra de vida del jefe */
@media (min-width: 1101px) {
	.hv-feat-slides img { inset: 0 auto 0 24% !important; object-position: left top !important;
		-webkit-mask-image: linear-gradient(90deg, transparent 0%, rgb(0 0 0 / .35) 6%, #000 22%), linear-gradient(0deg, transparent 0%, #000 20%, #000 92%, transparent 100%) !important;
		mask-image: linear-gradient(90deg, transparent 0%, rgb(0 0 0 / .35) 6%, #000 22%), linear-gradient(0deg, transparent 0%, #000 20%, #000 92%, transparent 100%) !important; }
	.hv-feat-slides { top: 14px !important; }
}

/* 12/11 (5): sin máscaras (titilaban con el video en reproducción). El panel pasa a fondo opaco y encima del
   video/foto va una capa del mismo color, sólida a la izquierda y transparente hacia la derecha, más viñeta arriba/abajo. */
@media (min-width: 1101px) {
	.hv .hv-feat { background: linear-gradient(180deg, rgb(24 17 11), rgb(12 9 6)) !important; }
	.hv-feat-video, .hv-feat-img, .hv-feat-slides { -webkit-mask-image: none !important; mask-image: none !important; transform: none !important; will-change: auto !important; }
	.hv-feat-img img, .hv-feat-video video, .hv-feat-video video[data-start], .hv-feat-slides img { -webkit-mask-image: none !important; mask-image: none !important; }
	.hv-feat-img::after { display: block !important; content: "" !important; position: absolute !important; inset: 0 !important; z-index: 2 !important; pointer-events: none;
		background:
			linear-gradient(90deg, rgb(18 13 9) 0%, rgb(18 13 9) 24%, rgb(18 13 9 / .6) 40%, rgb(18 13 9 / 0) 64%),
			linear-gradient(0deg, rgb(12 9 6) 0%, rgb(12 9 6 / 0) 24%),
			linear-gradient(180deg, rgb(24 17 11) 0%, rgb(24 17 11 / 0) 12%),
			linear-gradient(270deg, rgb(15 11 7 / .7) 0%, rgb(15 11 7 / 0) 8%) !important; }
	.hv-feat-txt { z-index: 3 !important; }
}
