/* Royal-Exodus — intro cinematográfico (layout estable + media local) */
:root {
	--re-intro-bg: #07040a;
	--re-intro-gold: #f0c75a;
	--re-intro-gold-deep: #b8860b;
	--re-intro-ember: #ff5a1f;
	--re-intro-ash: #c9b8a0;
}

.re-intro {
	position: fixed;
	inset: 0;
	z-index: 2147483000;
	background: var(--re-intro-bg);
	color: #f5ead6;
	overflow: hidden;
	isolation: isolate;
	opacity: 1;
	transition: opacity 0.7s ease;
}
.re-intro.is-leaving {
	opacity: 0;
	pointer-events: none;
}

.re-intro__letterbox {
	position: absolute;
	left: 0;
	right: 0;
	height: 4.5vh;
	min-height: 18px;
	max-height: 42px;
	background: #000;
	z-index: 30;
	pointer-events: none;
}
.re-intro__letterbox--top { top: 0; }
.re-intro__letterbox--bottom { bottom: 0; }

.re-intro__bg {
	position: absolute;
	inset: 0;
	background-position: center;
	background-size: cover;
	filter: brightness(0.22) saturate(0.8) contrast(1.05);
	transform: scale(1.06);
	animation: re-intro-kenburns 22s ease-out forwards;
	z-index: 0;
}
.re-intro__bg::after {
	content: "";
	position: absolute;
	inset: 0;
	background:
		radial-gradient(ellipse 65% 50% at 50% 45%, rgba(255, 90, 31, 0.18), transparent 65%),
		linear-gradient(180deg, rgba(7,4,10,.7) 0%, rgba(7,4,10,.25) 45%, rgba(7,4,10,.88) 100%);
}
@keyframes re-intro-kenburns {
	from { transform: scale(1.12); }
	to { transform: scale(1.04); }
}

.re-intro__vignette {
	position: absolute;
	inset: 0;
	z-index: 2;
	pointer-events: none;
	box-shadow: inset 0 0 100px 36px rgba(0,0,0,.8);
}

.re-intro__embers {
	position: absolute;
	inset: 0;
	z-index: 3;
	pointer-events: none;
	overflow: hidden;
}
.re-intro__ember {
	position: absolute;
	bottom: -8%;
	border-radius: 50%;
	background: radial-gradient(circle, #ffe29a 0%, var(--re-intro-ember) 50%, transparent 75%);
	opacity: 0;
	animation: re-intro-rise linear infinite;
}
@keyframes re-intro-rise {
	0% { transform: translateY(0) scale(.6); opacity: 0; }
	15% { opacity: .85; }
	100% { transform: translateY(-110vh) scale(1.3); opacity: 0; }
}

/* Escenario siempre centrado: los beats no empujan el layout */
.re-intro__stage {
	position: absolute;
	inset: 5.5vh 0;
	z-index: 10;
	display: flex;
	align-items: center;
	justify-content: center;
	pointer-events: none;
}

.re-intro__beat {
	position: absolute;
	left: 50%;
	top: 50%;
	width: min(920px, 94vw);
	text-align: center;
	opacity: 0;
	visibility: hidden;
	transform: translate(-50%, -46%) scale(0.97);
	filter: blur(4px);
	transition:
		opacity 0.75s ease,
		transform 0.75s cubic-bezier(0.22, 1, 0.36, 1),
		filter 0.75s ease,
		visibility 0.75s;
	pointer-events: none;
}
.re-intro__beat.is-on {
	opacity: 1;
	visibility: visible;
	transform: translate(-50%, -50%) scale(1);
	filter: blur(0);
	pointer-events: auto;
	z-index: 2;
}

.re-intro__whisper {
	font-family: "Spectral", Georgia, serif;
	font-style: italic;
	font-size: clamp(1rem, 2.4vw, 1.35rem);
	letter-spacing: 0.1em;
	color: var(--re-intro-ash);
	text-shadow: 0 2px 16px rgba(0,0,0,.85);
	margin: 0 0 1rem;
}

.re-intro__logo-wrap {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	max-width: min(560px, 88vw);
}
.re-intro__logo-aura {
	position: absolute;
	inset: 10% 15%;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(255,90,31,.4), transparent 70%);
	filter: blur(22px);
	z-index: -1;
	animation: re-intro-aura 2.8s ease-in-out infinite;
}
@keyframes re-intro-aura {
	0%,100% { opacity: .5; transform: scale(.94); }
	50% { opacity: 1; transform: scale(1.08); }
}
.re-intro__logo {
	display: block;
	width: auto;
	max-width: min(560px, 88vw);
	max-height: min(52vh, 420px);
	height: auto;
	object-fit: contain;
	background: transparent !important;
	filter:
		drop-shadow(0 0 16px rgba(255,90,31,.35))
		drop-shadow(0 10px 28px rgba(0,0,0,.7));
	animation: re-intro-logo-pulse 3s ease-in-out infinite;
}
@keyframes re-intro-logo-pulse {
	0%,100% { transform: scale(1); }
	50% { transform: scale(1.02); }
}

.re-intro__story {
	max-width: 34rem;
	margin: 0.6rem auto 0;
	font-family: "Spectral", Georgia, serif;
	font-size: clamp(0.95rem, 2vw, 1.1rem);
	line-height: 1.5;
	color: rgba(232,220,200,.92);
	text-shadow: 0 2px 12px rgba(0,0,0,.7);
}
.re-intro__features {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.45rem 0.75rem;
	margin: 1rem 0 0;
	padding: 0;
	list-style: none;
}
.re-intro__features li {
	font-family: "Cinzel", serif;
	font-size: 0.68rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: rgba(245,234,214,.85);
	padding: 0.3rem 0.55rem;
	border-bottom: 1px solid rgba(240,199,90,.28);
}

/* Cinemática */
.re-intro__cine {
	width: min(880px, 94vw);
	margin: 0 auto;
	border: 1px solid rgba(240,199,90,.35);
	border-radius: 4px;
	overflow: hidden;
	background: #000;
	box-shadow: 0 18px 50px rgba(0,0,0,.55), 0 0 40px rgba(255,90,31,.12);
	opacity: 0;
	transform: translateY(16px) scale(.97);
	transition: opacity .7s ease, transform .7s cubic-bezier(.22,1,.36,1);
}
.re-intro__cine.is-on {
	opacity: 1;
	transform: translateY(0) scale(1);
}
.re-intro__cine-stage {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	background: #050308;
	overflow: hidden;
}
.re-intro__cine-frame {
	position: absolute;
	inset: 0;
	opacity: 0;
	transition: opacity .7s ease;
	pointer-events: none;
	background: #050308;
}
.re-intro__cine-frame.is-active {
	opacity: 1;
	z-index: 2;
}
.re-intro__cine-frame img,
.re-intro__cine-frame video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	background: #050308;
}
.re-intro__cine-frame.is-logo {
	display: flex;
	align-items: center;
	justify-content: center;
	background: radial-gradient(ellipse 55% 50% at 50% 45%, rgba(255,90,31,.22), #07040a 70%);
}
.re-intro__cine-frame.is-logo img {
	width: min(55%, 340px);
	height: auto;
	object-fit: contain;
	background: transparent !important;
}
.re-intro__cine-stage::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 4;
	pointer-events: none;
	background: linear-gradient(180deg, rgba(0,0,0,.3) 0%, transparent 25%, transparent 60%, rgba(0,0,0,.72) 100%);
}
.re-intro__cine-caption {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 5;
	padding: 0.55rem 0.9rem 0.7rem;
	font-family: "Cinzel", serif;
	font-size: clamp(0.72rem, 1.6vw, 0.9rem);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--re-intro-gold);
	text-shadow: 0 2px 10px rgba(0,0,0,.95);
	opacity: 0;
	transform: translateY(6px);
	transition: opacity .35s ease, transform .35s ease;
}
.re-intro__cine-caption.is-flash {
	opacity: 1;
	transform: translateY(0);
}
.re-intro__cine-dots {
	display: flex;
	justify-content: center;
	gap: 0.35rem;
	padding: 0.5rem;
	background: #0c0907;
	border-top: 1px solid rgba(240,199,90,.2);
}
.re-intro__cine-dot {
	width: 7px;
	height: 7px;
	padding: 0;
	border-radius: 50%;
	border: 1px solid rgba(240,199,90,.45);
	background: transparent;
	cursor: pointer;
}
.re-intro__cine-dot.is-active {
	background: var(--re-intro-gold);
	box-shadow: 0 0 8px rgba(255,90,31,.5);
}

/* YouTube PvP: ocultar cromo / títulos / acceso */
.re-intro__yt-wrap {
	position: relative;
	width: 100%;
	height: 100%;
	overflow: hidden;
	background: #000;
}
.re-intro__yt-wrap iframe {
	position: absolute;
	/* zoom para recortar barra de YouTube / título */
	top: -12%;
	left: -4%;
	width: 108%;
	height: 124%;
	border: 0;
	pointer-events: none;
}
.re-intro__yt-mask-top,
.re-intro__yt-mask-bottom,
.re-intro__yt-mask-brand {
	position: absolute;
	z-index: 6;
	pointer-events: none;
}
.re-intro__yt-mask-top {
	left: 0; right: 0; top: 0;
	height: 18%;
	background: linear-gradient(180deg, #050308 0%, rgba(5,3,8,.92) 55%, transparent 100%);
}
.re-intro__yt-mask-bottom {
	left: 0; right: 0; bottom: 0;
	height: 22%;
	background: linear-gradient(0deg, #050308 0%, rgba(5,3,8,.9) 50%, transparent 100%);
}
.re-intro__yt-mask-brand {
	right: 0; bottom: 10%;
	width: 28%;
	height: 16%;
	background: linear-gradient(270deg, #050308 30%, transparent 100%);
}

.re-intro__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.7rem;
	margin-top: 1rem;
}
.re-intro__btn {
	appearance: none;
	border: 1px solid rgba(240,199,90,.65);
	cursor: pointer;
	font-family: "Cinzel", serif;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	font-size: 0.75rem;
	padding: 0.8rem 1.3rem;
	border-radius: 2px;
	transition: transform .2s ease, box-shadow .2s ease;
}
.re-intro__btn--enter {
	color: #1a1004;
	background: linear-gradient(180deg, #ffe08a, var(--re-intro-gold) 45%, var(--re-intro-gold-deep));
	box-shadow: 0 0 22px rgba(240,199,90,.35);
}
.re-intro__btn--enter:hover { transform: translateY(-2px); }
.re-intro__btn--skip {
	color: rgba(245,234,214,.85);
	background: rgba(12,8,6,.55);
	border-color: rgba(201,184,160,.35);
}

.re-intro__skip-fixed {
	position: absolute;
	top: calc(4.5vh + 8px);
	right: 12px;
	z-index: 40;
	font-family: "Cinzel", serif;
	font-size: 0.65rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: rgba(245,234,214,.75);
	background: rgba(0,0,0,.4);
	border: 1px solid rgba(255,255,255,.12);
	padding: 0.4rem 0.7rem;
	cursor: pointer;
	border-radius: 2px;
	pointer-events: auto;
}
.re-intro__progress {
	position: absolute;
	left: 12%;
	right: 12%;
	bottom: calc(4.5vh + 8px);
	height: 2px;
	z-index: 35;
	background: rgba(255,255,255,.08);
}
.re-intro__progress > span {
	display: block;
	height: 100%;
	width: 0;
	background: linear-gradient(90deg, var(--re-intro-ember), var(--re-intro-gold));
	transition: width .3s linear;
}

body.re-intro-lock { overflow: hidden !important; }

@media (max-width: 640px) {
	.re-intro__logo { max-height: 40vh; }
	.re-intro__features li { font-size: .6rem; }
}
