/* L2Naria Front. Palette = the header: #17110d dark, #b07a4a bronze, #f0c58a gold, #67b92b gem green. */

/* ------------------------------------------------------------ popup */

.nf-pop {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 16px;
	font-family: "Alegreya Sans", system-ui, sans-serif;
}

.nf-pop.is-open {
	display: flex;
}

.nf-pop__bd {
	position: absolute;
	inset: 0;
	background: radial-gradient(60% 60% at 50% 40%, rgba(120, 70, 30, .35), rgba(8, 6, 4, .9));
	backdrop-filter: blur(6px);
	opacity: 0;
	transition: opacity .4s;
}

.is-open .nf-pop__bd {
	opacity: 1;
}

.nf-pop__card {
	position: relative;
	width: min(620px, 100%);
	max-height: calc(100vh - 32px);
	overflow: auto;
	padding: 14px 14px 20px;
	background: linear-gradient(180deg, #261b14, #17110d);
	border: 2px solid #b07a4a;
	border-radius: 18px;
	box-shadow: 0 30px 80px rgba(0, 0, 0, .7), 0 0 0 1px #000, 0 0 46px rgba(176, 122, 74, .35);
	opacity: 0;
	transform: translateY(26px) scale(.94);
	transition: transform .55s cubic-bezier(.2, .9, .3, 1.2), opacity .4s;
}

.is-open .nf-pop__card {
	opacity: 1;
	transform: none;
	animation: nf-glow 3.2s ease-in-out infinite .6s;
}

@keyframes nf-glow {
	50% {
		box-shadow: 0 30px 80px rgba(0, 0, 0, .7), 0 0 0 1px #000, 0 0 66px rgba(240, 197, 138, .5);
	}
}

.nf-pop__fx {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
}

.nf-pop__card > :not(.nf-pop__fx) {
	position: relative;
}

.nf-pop__x {
	position: absolute !important;
	top: 22px;
	right: 22px;
	z-index: 3;
	display: block;
	box-sizing: border-box;
	width: 38px;
	height: 38px;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 1px solid rgba(240, 197, 138, .55);
	border-radius: 50%;
	background: rgba(0, 0, 0, .62);
	color: transparent;
	font-size: 0;
	line-height: 0;
	cursor: pointer;
	transition: transform .2s, background .2s;
}

.nf-pop__x::before,
.nf-pop__x::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 16px;
	height: 2px;
	margin: -1px 0 0 -8px;
	border-radius: 1px;
	background: #f6ead7;
	transform: rotate(45deg);
}

.nf-pop__x::after {
	transform: rotate(-45deg);
}

.nf-pop__x:hover {
	background: #a8693c;
	transform: rotate(90deg);
}

.nf-pop__banner {
	height: 230px;
	border-radius: 12px;
	background: #0e0b09 center / cover no-repeat;
	box-shadow: inset 0 -70px 60px -30px rgba(23, 17, 13, .9);
}

.nf-pop__info {
	margin: 14px 0;
	padding: 18px 16px;
	border: 1px solid rgba(176, 122, 74, .45);
	border-radius: 12px;
	background: rgba(0, 0, 0, .35);
	text-align: center;
}

.nf-badges,
.nf-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.nf-badges {
	justify-content: center;
	margin-bottom: 10px;
}

.nf-badges span,
.nf-tags i {
	padding: 3px 12px;
	border: 1px solid rgba(240, 197, 138, .4);
	border-radius: 999px;
	background: rgba(176, 122, 74, .3);
	color: #f0c58a;
	font-size: 12px;
	font-style: normal;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
}

.nf-badges .nf-new,
.nf-tags .nf-new {
	border-color: #67b92b;
	background: #3f8a1c;
	color: #fff;
}

.nf-pop__count {
	color: #f0c58a;
	font-family: Cinzel, serif;
	font-size: clamp(28px, 7vw, 40px);
	font-weight: 700;
	letter-spacing: 1px;
	text-shadow: 0 2px 14px rgba(240, 197, 138, .45);
}

.nf-pop__date {
	margin: 6px 0 12px;
	color: #cdb494;
	font-size: 16px;
}

.nf-pop__date b {
	color: #f6ead7;
}

.nf-pop__info ul {
	display: grid;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
	color: #f6ead7;
	font-size: 17px;
}

.nf-pop__info li::before {
	content: "";
	display: inline-block;
	width: 8px;
	height: 8px;
	margin-right: 10px;
	background: #67b92b;
	box-shadow: 0 0 8px #67b92b;
	transform: rotate(45deg);
}

.nf-pop__btn {
	display: block;
	overflow: hidden;
	padding: 17px 20px;
	background: linear-gradient(180deg, #e8b987, #a8693c 60%, #8a4f26);
	clip-path: polygon(18px 0, calc(100% - 18px) 0, 100% 50%, calc(100% - 18px) 100%, 18px 100%, 0 50%);
	color: #2a1507;
	font-family: Cinzel, serif;
	font-size: 20px;
	font-weight: 700;
	letter-spacing: 3px;
	text-align: center;
	text-decoration: none;
	text-transform: uppercase;
	transition: filter .2s, transform .2s;
}

.nf-pop__btn:hover {
	filter: brightness(1.1);
	transform: translateY(-1px);
}

.nf-pop__btn::after {
	content: "";
	position: absolute;
	top: 0;
	left: -60%;
	width: 40%;
	height: 100%;
	background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent);
	transform: skewX(-20deg);
	animation: nf-shine 3.4s ease-in-out infinite;
}

@keyframes nf-shine {
	0%,
	55% {
		left: -60%;
	}

	100% {
		left: 130%;
	}
}

@media (max-width: 520px) {
	.nf-pop__banner {
		height: 150px;
	}

	.nf-pop__btn {
		font-size: 17px;
	}
}

/* ------------------------------------------------------------ hero sides (inside .brxe-oloxlp, which is position: relative) */

.nf-side {
	position: absolute;
	top: 50%;
	z-index: 2;
	display: grid;
	gap: 12px;
	transform: translateY(-50%);
	font-family: "Alegreya Sans", system-ui, sans-serif;
}

.nf-side--l {
	left: 0;
	width: clamp(250px, 20vw, 310px);
}

.nf-side--r {
	right: 0;
	width: 350px;
}

@media (min-width: 1280px) {
	/* room for both columns plus a gap, so the centre never sits under them */
	.brxe-oloxlp.nf-has-sides {
		padding-right: 410px !important;
		padding-left: calc(clamp(250px, 20vw, 310px) + 60px) !important;
	}
}

@media (max-width: 1279px) {
	/* no room beside the centre: the cards and the widget stack under it */
	.nf-side {
		position: static;
		width: 100%;
		max-width: 420px;
		margin: 22px auto 0;
		transform: none;
	}

	.nf-side--l,
	.nf-side--r {
		width: 100%;
	}
}

.nf-card {
	border: 1px solid rgba(176, 122, 74, .6);
	border-radius: 14px;
	background: linear-gradient(180deg, rgba(38, 27, 20, .9), rgba(23, 17, 13, .92));
	box-shadow: 0 14px 34px rgba(23, 17, 13, .45), inset 0 1px 0 rgba(255, 220, 170, .08);
	backdrop-filter: blur(6px);
}

.nf-card {
	display: grid;
	gap: 5px;
	padding: 14px 16px;
	color: #f6ead7;
	text-decoration: none;
	transition: transform .2s, border-color .2s, box-shadow .2s;
}

.nf-card:hover {
	border-color: #f0c58a;
	box-shadow: 0 18px 40px rgba(23, 17, 13, .55), 0 0 22px rgba(240, 197, 138, .25);
	transform: translateY(-2px);
}

.nf-card--hot {
	border-color: #f0c58a;
	box-shadow: 0 14px 34px rgba(23, 17, 13, .45), 0 0 26px rgba(240, 197, 138, .28);
}

.nf-card strong {
	font-family: Cinzel, serif;
	font-size: 19px;
	font-weight: 700;
	letter-spacing: .6px;
}

.nf-card em {
	color: #d9c3a4;
	font-size: 15px;
	font-style: normal;
}

.nf-tags i {
	padding: 1px 9px;
	font-size: 10px;
}

.nf-pill {
	justify-self: start;
	margin-top: 4px;
	padding: 3px 12px;
	border: 1px solid rgba(103, 185, 43, .55);
	border-radius: 999px;
	background: rgba(63, 138, 28, .25);
	color: #b9ee8a;
	font-family: Cinzel, serif;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: .5px;
}

.nf-dc {
	overflow: hidden;
	border: 1px solid rgba(176, 122, 74, .6);
	border-radius: 14px;
	background: #17110d;
	box-shadow: 0 14px 34px rgba(23, 17, 13, .45), 0 0 22px rgba(176, 122, 74, .25);
}

.nf-dc {
	/* desktop: JS sets --nf-h to the height of the cards column */
	height: var(--nf-h, 500px);
}

.nf-dc iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}
