/* ==========================================================================
   VFC Live – Splash Screen
   Colours, font and sizes come from CSS variables set by the plugin settings.
   ========================================================================== */

.vfcs {
	--vfcs-primary: #C8202F;
	--vfcs-accent: #E8C21F;
	--vfcs-bg: #14060A;
	--vfcs-text: #FFFFFF;
	--vfcs-overlay: .65;
	--vfcs-title: 96px;
	--vfcs-crest: 132px;
	--vfcs-radius: 999px;
	--vfcs-font: 'Plus Jakarta Sans';
	--vfcs-ease: cubic-bezier(.22, 1, .36, 1);
	--vfcs-pop: cubic-bezier(.34, 1.56, .64, 1);

	position: relative;
	isolation: isolate;
	overflow: hidden;
	width: 100%;
	min-height: var(--vfcs-height, 100vh);
	min-height: var(--vfcs-height, 100svh);
	background: var(--vfcs-bg);
	color: var(--vfcs-text);
	font-family: var(--vfcs-font), -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
	-webkit-font-smoothing: antialiased;
	text-align: center;
	box-sizing: border-box;
}
.vfcs *, .vfcs *::before, .vfcs *::after { box-sizing: border-box; }

/* Inline (shortcode inside a normal page) – break out of the theme's container */
.vfcs--inline { margin: 0; }

/* Overlay mode */
.vfcs--overlay {
	position: fixed;
	inset: 0;
	z-index: 999999;
	min-height: 0;
	height: 100%;
}
html.vfcs-lock, html.vfcs-lock body { overflow: hidden !important; }
html.vfcs-seen .vfcs--overlay { display: none !important; }
.vfcs--overlay.vfcs--leaving {
	transition: transform .8s var(--vfcs-ease), opacity .8s ease;
	transform: translateY(-100%);
	opacity: .4;
}

/* Full-screen canvas page */
body.vfcs-canvas { margin: 0; padding: 0; background: var(--vfcs-bg, #14060A); }
body.vfcs-canvas .vfcs { min-height: 100vh; min-height: 100svh; }
body.vfcs-canvas.admin-bar .vfcs { min-height: calc(100svh - 32px); }

/* --------------------------------------------------------------------------
   Background layers
   ----------------------------------------------------------------------- */
.vfcs__bg {
	position: absolute;
	inset: 0;
	z-index: -4;
	overflow: hidden;
}
.vfcs__bg img {
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: 52% 40%;
	transform-origin: 55% 45%;
	animation: vfcs-bg-in 2.6s var(--vfcs-ease) .2s both, vfcs-kenburns 22s ease-in-out 2.8s infinite alternate;
}

.vfcs__shade {
	position: absolute;
	inset: 0;
	z-index: -3;
	opacity: var(--vfcs-overlay);
	background:
		radial-gradient(75% 26% at 50% 60%, color-mix(in srgb, var(--vfcs-bg) 55%, transparent) 0%, transparent 100%),
		linear-gradient(180deg,
			color-mix(in srgb, var(--vfcs-primary) 30%, transparent) 0%,
			transparent 22%,
			transparent 55%,
			color-mix(in srgb, var(--vfcs-bg) 55%, transparent) 78%,
			color-mix(in srgb, var(--vfcs-bg) 90%, transparent) 100%);
}

/* Diagonal club stripes – a nod to the ultras' drum */
.vfcs__stripes {
	position: absolute;
	z-index: -2;
	width: 160%;
	height: 120px;
	left: -30%;
	top: 56%;
	transform: rotate(-12deg);
	background: repeating-linear-gradient(90deg,
		color-mix(in srgb, var(--vfcs-primary) 70%, transparent) 0 46px,
		rgba(255, 255, 255, .10) 46px 92px);
	opacity: .16;
	mask-image: linear-gradient(90deg, transparent, #000 25%, #000 75%, transparent);
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 25%, #000 75%, transparent);
	animation: vfcs-stripes-in 1.4s var(--vfcs-ease) 1s both;
}

/* Intro curtain: two diagonal panels sweep away to reveal the photo */
.vfcs__wipe {
	position: absolute;
	inset: 0;
	z-index: 5;
	pointer-events: none;
}
.vfcs__wipe span {
	position: absolute;
	inset: -20% -40%;
	transform: skewX(-14deg);
	background: var(--vfcs-primary);
	animation: vfcs-wipe 1s var(--vfcs-ease) .15s both;
}
.vfcs__wipe span + span {
	background: var(--vfcs-bg);
	animation-delay: 0s;
	animation-duration: .9s;
}

/* --------------------------------------------------------------------------
   Layout
   ----------------------------------------------------------------------- */
.vfcs__inner {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	min-height: inherit;
	height: 100%;
	max-width: 760px;
	margin: 0 auto;
	padding:
		max(20px, env(safe-area-inset-top))
		max(20px, env(safe-area-inset-right))
		max(22px, env(safe-area-inset-bottom))
		max(20px, env(safe-area-inset-left));
}
.vfcs--overlay .vfcs__inner { min-height: 100%; }

.vfcs__top {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	position: relative;
	min-height: 0;
}

.vfcs__center {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 24px 0;
}

.vfcs__bottom {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 18px;
}

/* --------------------------------------------------------------------------
   Skip (overlay only)
   ----------------------------------------------------------------------- */

.vfcs__skip {
	position: absolute;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	appearance: none;
	border: 0;
	background: transparent;
	color: inherit;
	opacity: .75;
	font: 600 13px/1 var(--vfcs-font), sans-serif;
	padding: 10px 4px;
	cursor: pointer;
	animation: vfcs-fade .6s ease 2.2s both;
}
.vfcs__skip:hover, .vfcs__skip:focus-visible { opacity: 1; text-decoration: underline; }

/* --------------------------------------------------------------------------
   Crest graphic
   ----------------------------------------------------------------------- */
.vfcs__crest-wrap {
	position: relative;
	width: var(--vfcs-crest);
	aspect-ratio: 895 / 1102;
	margin-bottom: clamp(18px, 4vh, 34px);
	display: grid;
	place-items: center;
}
.vfcs__crest {
	position: relative;
	z-index: 2;
	width: 100%;
	height: auto;
	max-width: none;
	filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .45));
	animation: vfcs-crest-in 1.1s var(--vfcs-pop) .65s both, vfcs-float 6s ease-in-out 2s infinite;
}
.vfcs__ring {
	position: absolute;
	z-index: 1;
	left: 50%;
	top: 55%;
	width: 150%;
	aspect-ratio: 1;
	border-radius: 50%;
	border: 1.5px solid color-mix(in srgb, var(--vfcs-accent) 70%, transparent);
	transform: translate(-50%, -50%) scale(.6);
	opacity: 0;
	animation: vfcs-ring 3.2s ease-out 1.3s infinite;
}
.vfcs__ring--2 { animation-delay: 2.9s; }

/* --------------------------------------------------------------------------
   Title
   ----------------------------------------------------------------------- */
.vfcs__title {
	margin: 0;
	padding: 0;
	font-family: inherit;
	font-size: clamp(54px, 17vw, var(--vfcs-title));
	font-weight: 800;
	line-height: .95;
	letter-spacing: -.035em;
	text-transform: uppercase;
	color: var(--vfcs-text);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: .12em .22em;
	text-shadow: 0 2px 4px rgba(0, 0, 0, .25), 0 8px 34px rgba(0, 0, 0, .45);
}
.vfcs__word { display: inline-flex; white-space: nowrap; }
.vfcs__ch {
	display: inline-block;
	animation: vfcs-letter .9s var(--vfcs-ease) both;
	animation-delay: calc(1.1s + var(--i) * 55ms);
}
.vfcs__tag {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: .14em;
	padding: .08em .2em .1em .16em;
	background: var(--vfcs-primary);
	border-radius: .14em;
	transform: skewX(-8deg);
	text-shadow: none;
	box-shadow: 0 14px 40px color-mix(in srgb, var(--vfcs-primary) 55%, transparent);
	animation: vfcs-tag 0.8s var(--vfcs-pop) both;
	animation-delay: calc(1.05s + var(--i) * 55ms);
}
.vfcs__tag > .vfcs__word { transform: skewX(8deg); }
.vfcs__tag-dot {
	width: .16em;
	height: .16em;
	border-radius: 50%;
	background: #fff;
	transform: skewX(8deg);
	animation: vfcs-blink 1.2s steps(2, jump-none) 2.2s infinite;
}

.vfcs__tagline {
	margin: clamp(16px, 2.6vh, 24px) auto 0;
	max-width: 30ch;
	font-size: clamp(15px, 4vw, 18px);
	line-height: 1.5;
	font-weight: 500;
	opacity: .95;
	text-shadow: 0 1px 3px rgba(0, 0, 0, .5), 0 4px 18px rgba(0, 0, 0, .45);
	animation: vfcs-rise .9s var(--vfcs-ease) 1.55s both;
}

/* --------------------------------------------------------------------------
   Call to action
   ----------------------------------------------------------------------- */
.vfcs__cta {
	position: relative;
	overflow: hidden;
	display: inline-flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	width: 100%;
	max-width: 380px;
	min-height: 60px;
	padding: 8px 8px 8px 28px;
	border-radius: var(--vfcs-radius);
	background: #fff;
	color: var(--vfcs-bg) !important;
	text-decoration: none !important;
	font-size: 16px;
	font-weight: 800;
	letter-spacing: .01em;
	box-shadow: 0 18px 44px rgba(0, 0, 0, .35), 0 0 0 0 color-mix(in srgb, var(--vfcs-primary) 60%, transparent);
	animation: vfcs-cta-in .9s var(--vfcs-pop) 1.8s both, vfcs-glow 2.6s ease-in-out 3s infinite;
	transition: transform .25s var(--vfcs-ease), background-color .25s ease;
	-webkit-tap-highlight-color: transparent;
}
.vfcs__cta::before { /* shimmer */
	content: "";
	position: absolute;
	inset: 0;
	width: 40%;
	background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .0) 20%, color-mix(in srgb, var(--vfcs-accent) 45%, transparent) 50%, transparent 80%);
	transform: translateX(-150%) skewX(-20deg);
	animation: vfcs-shimmer 3.4s ease-in-out 2.8s infinite;
	pointer-events: none;
}
.vfcs__cta:hover { transform: translateY(-2px); }
.vfcs__cta:active { transform: scale(.98); }
.vfcs__cta:focus-visible { outline: 3px solid var(--vfcs-accent); outline-offset: 4px; }
.vfcs__cta-label { position: relative; z-index: 1; }
.vfcs__cta-icon {
	position: relative;
	z-index: 1;
	flex: none;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: min(var(--vfcs-radius), 14px);
	background: var(--vfcs-primary);
	color: #fff;
	transition: transform .3s var(--vfcs-ease);
}
.vfcs__cta:hover .vfcs__cta-icon { transform: translateX(4px); }
.vfcs__cta-icon svg { animation: vfcs-nudge 1.8s ease-in-out 3s infinite; }

.vfcs__cta-progress {
	position: absolute;
	left: 0;
	bottom: 0;
	height: 3px;
	width: 100%;
	background: var(--vfcs-primary);
	transform-origin: left;
	transform: scaleX(0);
	animation: vfcs-progress var(--vfcs-auto) linear 2.6s both;
}
.vfcs.is-paused .vfcs__cta-progress { animation-play-state: paused; }

/* --------------------------------------------------------------------------
   Ticker + footer
   ----------------------------------------------------------------------- */
.vfcs__ticker {
	width: 100%;
	overflow: hidden;
	mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
	animation: vfcs-fade .8s ease 2.1s both;
}
.vfcs__ticker-track {
	display: inline-flex;
	align-items: center;
	gap: 16px;
	white-space: nowrap;
	animation: vfcs-marquee 26s linear infinite;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .18em;
	text-transform: uppercase;
	opacity: .7;
}
.vfcs__ticker-track i {
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: var(--vfcs-accent);
	flex: none;
}

.vfcs__footer {
	margin: 0;
	font-size: 11px;
	font-weight: 500;
	letter-spacing: .04em;
	opacity: .5;
	animation: vfcs-fade .8s ease 2.3s both;
}

/* --------------------------------------------------------------------------
   Larger screens
   ----------------------------------------------------------------------- */
@media (min-width: 768px) {
	.vfcs__inner { padding: 32px 40px 32px; }
	.vfcs__crest-wrap { width: calc(var(--vfcs-crest) * 1.15); }
	.vfcs__tagline { max-width: 38ch; }
	.vfcs__stripes { height: 150px; }
}
@media (max-height: 640px) {
	.vfcs__crest-wrap { width: calc(var(--vfcs-crest) * .72); margin-bottom: 14px; }
	.vfcs__title { font-size: clamp(46px, 14vw, var(--vfcs-title)); }
	.vfcs__center { padding: 12px 0; }
	.vfcs__bottom { gap: 12px; }
}

/* --------------------------------------------------------------------------
   Keyframes
   ----------------------------------------------------------------------- */
@keyframes vfcs-wipe {
	from { transform: skewX(-14deg) translateX(0); }
	to   { transform: skewX(-14deg) translateX(-130%); }
}
@keyframes vfcs-bg-in {
	from { transform: scale(1.18); opacity: .4; }
	to   { transform: scale(1.04); opacity: 1; }
}
@keyframes vfcs-kenburns {
	from { transform: scale(1.04) translate(0, 0); }
	to   { transform: scale(1.12) translate(-1.5%, -1%); }
}
@keyframes vfcs-crest-in {
	0%   { opacity: 0; transform: translateY(30px) scale(.4) rotate(-10deg); }
	100% { opacity: 1; transform: none; }
}
@keyframes vfcs-float {
	0%, 100% { transform: translateY(0); }
	50%      { transform: translateY(-7px); }
}
@keyframes vfcs-ring {
	0%   { opacity: 0; transform: translate(-50%, -50%) scale(.55); }
	15%  { opacity: .9; }
	100% { opacity: 0; transform: translate(-50%, -50%) scale(1.35); }
}
@keyframes vfcs-spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes vfcs-letter {
	from { opacity: 0; transform: translateY(.55em) rotate(6deg); }
	to   { opacity: 1; transform: none; }
}
@keyframes vfcs-tag {
	from { opacity: 0; transform: skewX(-8deg) scale(.6); }
	to   { opacity: 1; transform: skewX(-8deg) scale(1); }
}
@keyframes vfcs-blink { 0% { opacity: 1; } 100% { opacity: .15; } }
@keyframes vfcs-drop {
	from { opacity: 0; transform: translateY(-16px); }
	to   { opacity: 1; transform: none; }
}
@keyframes vfcs-rise {
	from { opacity: 0; transform: translateY(18px); }
	to   { opacity: .95; transform: none; }
}
@keyframes vfcs-fade { from { opacity: 0; } }
@keyframes vfcs-cta-in {
	from { opacity: 0; transform: translateY(26px) scale(.92); }
	to   { opacity: 1; transform: none; }
}
@keyframes vfcs-glow {
	0%, 100% { box-shadow: 0 18px 44px rgba(0, 0, 0, .35), 0 0 0 0 color-mix(in srgb, var(--vfcs-primary) 55%, transparent); }
	50%      { box-shadow: 0 18px 44px rgba(0, 0, 0, .35), 0 0 0 10px color-mix(in srgb, var(--vfcs-primary) 0%, transparent); }
}
@keyframes vfcs-shimmer {
	0%, 55% { transform: translateX(-150%) skewX(-20deg); }
	100%    { transform: translateX(350%) skewX(-20deg); }
}
@keyframes vfcs-nudge {
	0%, 60%, 100% { transform: none; }
	75%           { transform: translateX(3px); }
}
@keyframes vfcs-progress { to { transform: scaleX(1); } }
@keyframes vfcs-ping {
	0%   { transform: scale(1); opacity: .9; }
	100% { transform: scale(2.6); opacity: 0; }
}
@keyframes vfcs-marquee { to { transform: translateX(-50%); } }
@keyframes vfcs-stripes-in {
	from { opacity: 0; transform: rotate(-12deg) translateX(30%); }
	to   { opacity: .16; transform: rotate(-12deg); }
}

/* Animations switched off in settings, or visitor prefers reduced motion */
.vfcs--static *, .vfcs--static *::before, .vfcs--static *::after { animation: none !important; }
.vfcs--static .vfcs__wipe { display: none; }
.vfcs--static .vfcs__ring { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
	.vfcs *, .vfcs *::before, .vfcs *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; }
	.vfcs__wipe { display: none; }
	.vfcs__ring { display: none; }
}
