/* Виджет уровня — чёрный + золото (DEV-META / GameX) */

.lvl-meta-widget.meta-profile__level-card {
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	flex: 0 0 auto;
	display: flex;
	flex-direction: column;
	gap: 0;
	padding: 0;
	border-radius: 12px;
	border: 1px solid rgba(255, 208, 96, 0.2);
	background:
		radial-gradient(circle at 0% 0%, rgba(255, 170, 51, 0.12) 0%, rgba(255, 170, 51, 0) 40%),
		linear-gradient(180deg, rgba(18, 18, 24, 0.98) 0%, rgba(8, 8, 12, 0.99) 100%);
	box-shadow:
		0 12px 32px rgba(0, 0, 0, 0.45),
		inset 0 1px 0 rgba(255, 255, 255, 0.04);
	color: #f4f7ff;
	overflow: hidden;
}

.lvl-meta-widget.meta-profile__level-card::before {
	content: '';
	display: block;
	height: 3px;
	background: linear-gradient(90deg, #ffcf4f 0%, #f0a800 50%, rgba(240, 168, 0, 0.2) 100%);
}

.lvl-meta-widget__head {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 14px 10px;
	border-bottom: 1px solid rgba(255, 208, 96, 0.1);
}

.lvl-meta-widget__head-accent {
	flex: 0 0 auto;
	width: 4px;
	height: 22px;
	border-radius: 4px;
	background: linear-gradient(180deg, #ffcf4f 0%, #f0a800 100%);
	box-shadow: 0 0 10px rgba(255, 186, 69, 0.5);
}

.lvl-meta-widget__head-text {
	font-size: 12px;
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #f4f7ff;
}

.lvl-meta-widget__head-gold {
	color: #ffd776;
	text-shadow: 0 0 14px rgba(255, 186, 69, 0.35);
}

.lvl-meta-widget__body {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 14px 16px 16px;
}

.lvl-meta-widget .meta-profile__level-ring {
	position: relative;
	width: 108px;
	height: 108px;
	flex: 0 0 auto;
}

.lvl-meta-widget .meta-profile__level-ring-svg {
	display: block;
	width: 100%;
	height: 100%;
	transform: rotate(-90deg);
}

.lvl-meta-widget .meta-profile__level-ring-bg {
	stroke: rgba(255, 255, 255, 0.06);
	stroke-width: 9;
	fill: none;
}

.lvl-meta-widget .meta-profile__level-ring-fg {
	stroke: #ffcf4f;
	stroke-width: 9;
	stroke-linecap: round;
	fill: none;
	transform-origin: 50% 50%;
	filter: drop-shadow(0 0 8px rgba(255, 207, 79, 0.55));
	transition: stroke-dashoffset 0.35s ease;
}

.lvl-meta-widget .meta-profile__level-center {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	pointer-events: none;
}

.lvl-meta-widget .meta-profile__level-num {
	font-size: 28px;
	font-weight: 900;
	line-height: 1;
	letter-spacing: -0.02em;
	color: #fff;
	text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.lvl-meta-widget .meta-profile__level-label {
	margin-top: 4px;
	font-size: 9px;
	font-weight: 800;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: #ffd776;
}

.lvl-meta-widget .meta-profile__xp {
	flex: 1 1 auto;
	min-width: 0;
}

.lvl-meta-widget .meta-profile__xp-values {
	font-size: 14px;
	font-weight: 800;
	color: #fff;
	margin-bottom: 8px;
	white-space: nowrap;
}

.lvl-meta-widget .meta-profile__xp-muted {
	font-weight: 600;
	color: rgba(255, 215, 118, 0.55);
}

.lvl-meta-widget .meta-profile__xp-bar {
	height: 9px;
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.45);
	border: 1px solid rgba(255, 208, 96, 0.12);
	box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.4);
	overflow: hidden;
}

.lvl-meta-widget .meta-profile__xp-fill {
	display: block;
	height: 100%;
	border-radius: inherit;
	background: linear-gradient(90deg, #ffcf4f 0%, #f0a800 100%);
	box-shadow: 0 0 14px rgba(255, 207, 79, 0.45);
	transition: width 0.35s ease;
}

.lvl-meta-widget .meta-profile__xp-caption {
	margin-top: 8px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.04em;
	color: rgba(193, 196, 216, 0.78);
	line-height: 1.4;
}

@media (max-width: 479.98px) {
	.lvl-meta-widget__body {
		flex-direction: column;
		align-items: stretch;
		text-align: center;
	}

	.lvl-meta-widget .meta-profile__level-ring {
		margin: 0 auto;
	}
}
