.lan-header-shell,
.lan-header-shell *,
.lan-navigation,
.lan-navigation * {
	box-sizing: border-box;
}

.lan-header-shell {
	position: absolute;
	top: 20px;
	left: 0;
	z-index: 9999;
	display: grid;
	grid-template-columns: minmax(260px, 320px) minmax(720px, 1fr) minmax(260px, 320px);
	align-items: center;
	gap: clamp(30px, 2.6vw, 42px);
	width: 100%;
	min-height: 132px;
	margin: 0 auto;
	padding: 0 20px 8px;
	font-family: inherit;
	pointer-events: none;
}

body.admin-bar .lan-header-shell {
	top: 52px;
}

.lan-header-logo {
	display: flex;
	align-items: center;
	min-width: 0;
	min-height: 132px;
	text-decoration: none;
	pointer-events: auto;
}

.lan-header-logo img {
	display: block;
	width: auto;
	max-width: 100%;
	height: 132px;
	max-height: 132px;
	object-fit: contain;
	object-position: left center;
	filter: drop-shadow(0 8px 14px rgba(88, 56, 168, 0.12));
}

.lan-navigation {
	width: 100%;
	margin: 0 auto;
	font-family: inherit;
	pointer-events: auto;
}

.lan-navigation--header {
	position: relative;
	overflow: visible;
	display: flex;
	align-items: center;
	min-height: 132px;
	padding: 14px 72px 16px;
	border: 0;
	border-radius: 0;
	background: var(--lan-menu-background, none) center / 100% 100% no-repeat;
}

.lan-navigation__list {
	display: grid;
	grid-template-columns: repeat(var(--lan-menu-count, 8), minmax(0, 1fr));
	gap: 0;
	align-items: center;
	width: 100%;
	margin: 0 auto;
	padding: 0;
	list-style: none;
}

.lan-navigation__item {
	min-width: 0;
}

.lan-navigation__link {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	gap: 5px;
	width: 100%;
	min-height: 92px;
	padding: 2px;
	border: 0;
	border-radius: 22px;
	background: transparent;
	color: #502b78;
	text-align: center;
	text-decoration: none;
	outline: none;
	transition: color 170ms ease;
}

.lan-navigation__link:hover,
.lan-navigation__link:focus-visible {
	color: #6232b0;
}

.lan-navigation__icon {
	display: grid;
	place-items: center;
	width: 50px;
	height: 50px;
}

.lan-navigation__icon img {
	display: block;
	width: 50px;
	height: 50px;
	object-fit: contain;
}

.lan-navigation__label {
	position: relative;
	display: block;
	max-width: 100%;
	overflow: visible;
	color: inherit;
	font-size: clamp(14px, 0.98vw, 17px);
	font-weight: 800;
	line-height: 1.1;
	white-space: nowrap;
	text-shadow: 0 1px 0 rgba(255, 245, 192, 0.78);
}

.lan-navigation__label::after {
	position: absolute;
	left: 50%;
	bottom: -18px;
	width: min(76px, 110%);
	height: 16px;
	background: url("../menu-underline.png") center / contain no-repeat;
	content: "";
	opacity: 0;
	transform: translateX(-50%);
	transition: opacity 170ms ease;
}

.lan-navigation__link:hover .lan-navigation__label::after,
.lan-navigation__link:focus-visible .lan-navigation__label::after,
.lan-navigation__item.is-active .lan-navigation__label::after {
	opacity: 1;
}

.lan-navigation__item.is-active .lan-navigation__label,
.lan-navigation__link:hover .lan-navigation__label,
.lan-navigation__link:focus-visible .lan-navigation__label {
	color: #572ca7;
}

.lan-header-profile {
	position: relative;
	justify-self: end;
	width: 308px;
	min-height: 78px;
	max-width: 100%;
	pointer-events: auto;
}

.lan-header-profile__button {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) 88px;
	align-items: center;
	gap: 8px;
	width: 100%;
	min-height: 76px;
	padding: 8px 8px 8px 18px;
	border: 3px solid rgba(255, 230, 125, 0.96);
	border-radius: 30px;
	background:
		radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.22) 0 16%, transparent 38%),
		linear-gradient(180deg, #8d5ed0 0%, #6f3eb8 54%, #55229a 100%);
	color: #ffffff;
	cursor: pointer;
	font: inherit;
	text-align: left;
	box-shadow:
		0 9px 18px rgba(47, 22, 80, 0.24),
		inset 0 3px 0 rgba(255, 255, 255, 0.2),
		inset 0 -5px 0 rgba(44, 16, 78, 0.18);
	transition: filter 170ms ease;
}

.lan-header-profile__button:hover,
.lan-header-profile__button:focus-visible,
.lan-header-profile.is-open .lan-header-profile__button {
	filter: brightness(1.05);
	outline: none;
}

.lan-header-profile__summary {
	display: flex;
	flex-direction: column;
	justify-content: center;
	width: 100%;
	min-width: 0;
}

.lan-header-profile__topline {
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
}

.lan-header-profile__text {
	overflow: hidden;
	max-width: 100%;
	color: #ffffff;
	font-size: 16px;
	font-weight: 900;
	line-height: 1.1;
	text-overflow: ellipsis;
	white-space: nowrap;
	text-shadow:
		0 1px 0 rgba(45, 18, 76, 0.6),
		0 2px 3px rgba(45, 18, 76, 0.22);
}

.lan-header-profile__level {
	display: flex;
	align-items: center;
	gap: 5px;
	margin-top: 4px;
	color: rgba(255, 255, 255, 0.9);
	font-size: 13px;
	font-weight: 800;
	line-height: 1;
}

.lan-header-profile__level-star {
	color: #ffdd36;
	font-size: 15px;
	text-shadow:
		0 0 1px #6f3a00,
		0 1px 0 rgba(72, 43, 0, 0.45);
}

.lan-header-profile__progress {
	display: block;
	width: 100%;
	height: 8px;
	overflow: hidden;
	margin-top: 8px;
	border: 1px solid rgba(255, 235, 150, 0.84);
	border-radius: 999px;
	background: rgba(42, 15, 74, 0.36);
	box-shadow: inset 0 1px 2px rgba(28, 8, 51, 0.24);
}

.lan-header-profile__progress-fill {
	display: block;
	height: 100%;
	border-radius: inherit;
	background: linear-gradient(90deg, #ffdc47 0%, #ff9f3f 100%);
	box-shadow: 0 0 8px rgba(255, 220, 71, 0.45);
}

.lan-header-profile__avatar {
	display: grid;
	place-items: center;
	width: 94px;
	height: 94px;
	overflow: hidden;
	margin: -18px -15px -18px 0;
	border: 6px solid rgba(255, 238, 153, 0.98);
	border-radius: 999px;
	background: #d9d9d9;
	color: #6c31b4;
	font-size: 28px;
	font-weight: 900;
	box-shadow:
		0 7px 14px rgba(37, 20, 57, 0.26),
		inset 0 0 0 2px rgba(255, 255, 255, 0.7);
}

.lan-header-profile__chevron {
	display: inline-block;
	width: 0;
	height: 0;
	border-right: 5px solid transparent;
	border-left: 5px solid transparent;
	border-top: 7px solid #ffffff;
	filter: drop-shadow(0 1px 1px rgba(48, 25, 72, 0.55));
}

.lan-header-profile.is-open .lan-header-profile__chevron {
	transform: rotate(180deg);
}

.lan-header-profile__menu {
	position: absolute;
	top: calc(100% + 4px);
	right: 18px;
	z-index: 2;
	display: grid;
	gap: 5px;
	width: min(220px, calc(100vw - 32px));
	padding: 10px;
	border: 2px solid rgba(255, 238, 153, 0.98);
	border-radius: 18px;
	background: rgba(92, 45, 158, 0.96);
	box-shadow: 0 12px 24px rgba(37, 20, 57, 0.24);
}

.lan-header-profile__menu[hidden] {
	display: none;
}

.lan-header-profile__menu a {
	display: block;
	padding: 9px 12px;
	border-radius: 12px;
	color: #ffffff;
	font-size: 14px;
	font-weight: 800;
	text-decoration: none;
}

.lan-header-profile__menu a:hover,
.lan-header-profile__menu a:focus-visible {
	background: rgba(255, 238, 153, 0.18);
	outline: none;
}

.lan-header-profile__avatar img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.lan-navigation:not(.lan-navigation--header) .lan-navigation__list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(86px, 1fr));
	gap: clamp(8px, 1.4vw, 16px);
	width: min(1180px, 100%);
}

.lan-navigation:not(.lan-navigation--header) .lan-navigation__link {
	min-height: 118px;
	padding: 16px 10px 14px;
	border: 2px solid rgba(92, 137, 48, 0.12);
	border-radius: 30px;
	background: #ffffff;
	box-shadow: 0 8px 22px rgba(61, 99, 35, 0.1);
}

.lan-navigation:not(.lan-navigation--header) .lan-navigation__icon {
	width: 52px;
	height: 52px;
}

.lan-navigation:not(.lan-navigation--header) .lan-navigation__icon img {
	width: 42px;
	height: 42px;
}

.lan-navigation--icons-only .lan-navigation__label {
	display: none;
}

@media (max-width: 1180px) {
	.lan-header-shell {
		grid-template-columns: minmax(210px, 280px) 1fr minmax(78px, 90px);
		gap: 12px;
		width: 100%;
		padding-inline: 20px;
		padding-top: 0;
	}

	.lan-navigation--header {
		padding: 14px 64px 16px;
	}

	.lan-header-profile {
		width: 76px;
		min-height: 76px;
	}

	.lan-header-profile__button {
		grid-template-columns: 1fr;
		justify-items: center;
		min-height: 76px;
		padding: 4px;
		border-radius: 999px;
	}

	.lan-header-profile__summary,
	.lan-header-profile__chevron {
		display: none;
	}

	.lan-header-profile__avatar {
		margin: 0 auto;
		width: 64px;
		height: 64px;
		border-width: 4px;
	}

	.lan-header-profile__menu {
		right: 0;
	}
}

@media (max-width: 860px) {
	.lan-header-shell {
		grid-template-columns: 1fr auto;
		align-items: center;
	}

	.lan-header-logo img {
		height: 96px;
		max-height: 96px;
		width: auto;
	}

	.lan-navigation--header {
		grid-column: 1 / -1;
		order: 3;
		padding: 14px 58px 16px;
	}

	.lan-navigation__list,
	.lan-navigation:not(.lan-navigation--header) .lan-navigation__list {
		grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
	}
}

@media (max-width: 520px) {
	body.admin-bar .lan-header-shell {
		top: 66px;
	}

	.lan-header-shell {
		width: 100%;
		padding-inline: 20px;
		padding-top: 0;
	}

	.lan-header-logo img {
		height: 78px;
		max-height: 78px;
		width: auto;
	}

	.lan-navigation--header {
		padding: 14px 40px 16px;
	}

	.lan-navigation__list,
	.lan-navigation:not(.lan-navigation--header) .lan-navigation__list {
		grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
		gap: 8px;
	}

	.lan-navigation--header .lan-navigation__link {
		min-height: 76px;
		background: transparent;
	}
}

@media (prefers-reduced-motion: reduce) {
	.lan-navigation__link,
	.lan-navigation__icon,
	.lan-header-profile__button {
		transition: none;
	}

	.lan-navigation__link:hover,
	.lan-navigation__link:focus-visible {
		transform: none;
	}
}
