/**
 * Imperiox header hero — logo, online box, sparks
 * Ported from kingmus6.com (WebEngine 1.2.6)
 */

body.has-imperiox-nav {
	background: #000 url(../img/bg_main_season20_hd.png) center top no-repeat !important;
}

@media only screen and (min-width: 2000px) {
	body.has-imperiox-nav {
		background: #000 url(../img/bg_main_season20_hd.png) center top no-repeat !important;
	}
}

.imperiox-header {
	min-height: 520px;
	position: relative;
}

.imperiox-header .logo {
	position: absolute;
	top: 175px;
	left: 0;
	width: 100%;
}

.imperiox-header .logo-inner {
	display: flex;
	align-items: flex-start;
	width: 1200px;
	max-width: 100%;
	margin: 0 auto;
	padding: 0 25px;
}

/* King 1.2.6: col-md-8 logo + col-md-2 online box (~75% from left = news panel center) */
.imperiox-header .logo-main-col {
	flex: 0 0 66.666667%;
	max-width: 66.666667%;
	padding-left: 10px;
	margin-top: -95px;
	min-width: 0;
}

.imperiox-header .logo-main-col img {
	max-width: 100%;
	height: auto;
}

.imperiox-header .logo-main-col a:hover img {
	filter: brightness(120%);
}

/* Fire glow on logo */
.imperiox-header .bright {
	filter: drop-shadow(0 0 4px rgba(255, 140, 0, 0.5))
		drop-shadow(0 0 10px rgba(255, 120, 0, 0.4))
		drop-shadow(0 0 18px rgba(255, 100, 0, 0.3));
	animation: imperiox-fireSoft 3.5s ease-in-out infinite alternate;
}

@keyframes imperiox-fireSoft {
	from {
		filter: drop-shadow(0 0 3px rgba(255, 120, 0, 0.35))
			drop-shadow(0 0 8px rgba(255, 110, 0, 0.3))
			drop-shadow(0 0 14px rgba(255, 90, 0, 0.25));
	}
	to {
		filter: drop-shadow(0 0 6px rgba(255, 160, 40, 0.55))
			drop-shadow(0 0 14px rgba(255, 140, 20, 0.45))
			drop-shadow(0 0 24px rgba(255, 120, 0, 0.4));
	}
}

/* Online users box — col-md-2 width, aligned with news panel below */
.imperiox-header .tableBlock-server {
	flex: 0 0 16.666667%;
	max-width: 16.666667%;
	margin-top: 10px;
	color: #fff;
	line-height: 1.2;
	display: flex;
	justify-content: center;
	align-items: center;
}

.imperiox-header .online {
	position: relative;
	top: -10px;
	bottom: 45px;
	transition: transform 0.3s, filter 0.3s;
	filter: brightness(1);
	cursor: default;
	transform: scale(0.55);
	transform-origin: top center;
}

.imperiox-header .online.only:hover {
	transform: scale(0.75);
	filter: brightness(130%);
}

.imperiox-header .online table.simple {
	width: 280px;
	margin: 0;
}

.imperiox-header .online table.simple td {
	padding: 0;
	text-align: center;
	border: none;
}

.imperiox-header .online-count-number {
	font-family: 'Open Sans', sans-serif;
	font-size: 40px;
	font-weight: bold;
	margin: 0 0 -7px;
	color: #ffd250;
	text-shadow: 1px 1px #000, 0 0 30px #ffd250;
	line-height: 1.1;
}

.imperiox-header .online-count-label {
	font-family: 'Open Sans', sans-serif;
	font-size: 14px;
	color: #fff;
}

.imperiox-header .header-cta-btn {
	display: inline-block;
	border-radius: 10px;
	cursor: pointer;
	border: 3px solid #6d6d6d;
	padding: 5px 45px;
	height: 45px;
	line-height: 33px;
	background: rgba(0, 0, 0, 0.3);
	box-shadow: 0 0 10px #111;
	margin: 0;
	font-size: 22px;
	font-weight: bold;
	font-style: italic;
	font-family: 'Open Sans', sans-serif;
	color: #fbac3f;
	text-decoration: none;
	transition: filter 0.3s, border-color 0.3s;
}

.imperiox-header .header-cta-btn:hover {
	filter: brightness(120%);
	border-color: #fbac3f;
	color: #fbac3f;
	text-decoration: none;
}

.imperiox-header .header-cta-spacer {
	display: block;
	height: 12px;
}

/* Spark particles */
.imperiox-header .sparks,
.imperiox-header .sparks > div {
	position: absolute;
}

.imperiox-header .sparks {
	width: 100%;
	bottom: 400px;
	right: 45%;
}

.imperiox-header .sparks .spark_1 {
	background: url(../img/spark_1.png) no-repeat;
	width: 764px;
	height: 313px;
	right: 0;
	bottom: -120px;
	transform: scale(0.6);
	animation: imperiox-spark-1 4s linear infinite;
	animation-delay: 1s;
}

.imperiox-header .sparks .spark_2 {
	background: url(../img/spark_2.png) no-repeat;
	width: 149px;
	height: 335px;
	right: 230px;
	bottom: -320px;
	transform: scale(0.6);
	animation: imperiox-spark-1 4s linear infinite;
	animation-delay: 2s;
}

.imperiox-header .sparks .spark_3 {
	background: url(../img/spark_3.png) no-repeat;
	width: 128px;
	height: 165px;
	right: 280px;
	bottom: -140px;
	transform: scale(0.6);
	animation: imperiox-spark-3 4s linear infinite;
	animation-delay: 2s;
}

.imperiox-header .sparks .spark-big {
	background: url(../img/spark_4.png) no-repeat;
	width: 794px;
	height: 176px;
	right: 0;
	bottom: -180px;
	transform: scale(0.6);
	animation: imperiox-spark-5 4s linear infinite;
}

@keyframes imperiox-spark-1 {
	0% {
		bottom: -320px;
		transform: scale(0.6);
		opacity: 1;
	}
	25% {
		bottom: -240px;
		transform: scale(0.7);
		opacity: 1;
	}
	50% {
		bottom: -160px;
		transform: scale(0.8);
		opacity: 1;
	}
	75% {
		bottom: -80px;
		transform: scale(0.9);
		opacity: 0.5;
	}
	100% {
		bottom: 0;
		transform: scale(1);
		opacity: 0;
	}
}

@keyframes imperiox-spark-3 {
	0% {
		bottom: -140px;
		transform: scale(0.6);
		opacity: 1;
	}
	25% {
		bottom: -80px;
		transform: scale(0.7);
		opacity: 1;
	}
	50% {
		bottom: -20px;
		transform: scale(0.8);
		opacity: 1;
	}
	75% {
		bottom: 40px;
		transform: scale(0.9);
		opacity: 0.5;
	}
	100% {
		bottom: 100px;
		transform: scale(1);
		opacity: 0;
	}
}

@keyframes imperiox-spark-5 {
	0% {
		bottom: -180px;
		transform: scale(0.6);
		opacity: 1;
	}
	25% {
		bottom: -120px;
		transform: scale(0.7);
		opacity: 1;
	}
	50% {
		bottom: -60px;
		transform: scale(0.8);
		opacity: 1;
	}
	75% {
		bottom: 0;
		transform: scale(0.9);
		opacity: 0.5;
	}
	100% {
		bottom: 60px;
		transform: scale(1);
		opacity: 0;
	}
}
