/* Виджет уровня — чёрное стекло (smoked glass), жёлтый акцент #ffcc00 */

.lvl-meta-widget.meta-profile__level-card {
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 14px 18px;
	border-radius: 14px;
	/* Почти чёрный слой + blur: не «серый пластик», а тёмное стекло */
	background: linear-gradient(
		155deg,
		rgba(18, 18, 20, 0.62) 0%,
		rgba(0, 0, 0, 0.58) 100%
	);
	border: 1px solid rgba(255, 255, 255, 0.06);
	backdrop-filter: blur(14px) saturate(120%);
	-webkit-backdrop-filter: blur(14px) saturate(120%);
	box-shadow:
		0 16px 48px rgba(0, 0, 0, 0.55),
		inset 0 1px 0 rgba(255, 255, 255, 0.035);
	color: #e8ecf3;
}

.lvl-meta-widget .meta-profile__level-ring {
	position: relative;
	width: 112px;
	height: 112px;
	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.05);
	stroke-width: 10;
	fill: none;
}

.lvl-meta-widget .meta-profile__level-ring-fg {
	stroke: #ffcc00;
	stroke-width: 10;
	stroke-linecap: round;
	fill: none;
	transform-origin: 50% 50%;
	filter: drop-shadow(0 0 6px rgba(255, 204, 0, 0.45));
	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: 26px;
	font-weight: 800;
	line-height: 1;
	letter-spacing: -0.02em;
	color: #fff;
}

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

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

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

.lvl-meta-widget .meta-profile__xp-muted {
	font-weight: 600;
	color: #8b95a8;
}

.lvl-meta-widget .meta-profile__xp-bar {
	height: 8px;
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.35);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
	overflow: hidden;
}

.lvl-meta-widget .meta-profile__xp-fill {
	display: block;
	height: 100%;
	border-radius: inherit;
	background: linear-gradient(90deg, #ffcc00 0%, #ff9f1a 100%);
	box-shadow: 0 0 12px rgba(255, 204, 0, 0.35);
	transition: width 0.35s ease;
}

.lvl-meta-widget .meta-profile__xp-caption {
	margin-top: 8px;
	font-size: 12px;
	font-weight: 500;
	color: #9aa3b2;
	line-height: 1.4;
}

/* Светлая тема — то же стекло, что и раньше, в тон светлому UI */
body.lightStyle .lvl-meta-widget.meta-profile__level-card,
body:not(.darkStyle) .lvl-meta-widget.meta-profile__level-card {
	background: rgba(255, 255, 255, 0.55);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	border-color: rgba(255, 255, 255, 0.45);
	box-shadow:
		0 8px 32px rgba(15, 23, 42, 0.1),
		inset 0 1px 0 rgba(255, 255, 255, 0.75);
	color: #0f172a;
}

body.lightStyle .lvl-meta-widget .meta-profile__level-ring-bg,
body:not(.darkStyle) .lvl-meta-widget .meta-profile__level-ring-bg {
	stroke: rgba(15, 23, 42, 0.12);
}

body.lightStyle .lvl-meta-widget .meta-profile__level-num,
body:not(.darkStyle) .lvl-meta-widget .meta-profile__level-num {
	color: #0f172a;
}

body.lightStyle .lvl-meta-widget .meta-profile__level-label,
body:not(.darkStyle) .lvl-meta-widget .meta-profile__level-label {
	color: #b45309;
}

body.lightStyle .lvl-meta-widget .meta-profile__xp-values,
body:not(.darkStyle) .lvl-meta-widget .meta-profile__xp-values {
	color: #0f172a;
}

body.lightStyle .lvl-meta-widget .meta-profile__xp-muted,
body:not(.darkStyle) .lvl-meta-widget .meta-profile__xp-muted {
	color: #64748b;
}

body.lightStyle .lvl-meta-widget .meta-profile__xp-bar,
body:not(.darkStyle) .lvl-meta-widget .meta-profile__xp-bar {
	background: rgba(15, 23, 42, 0.08);
}

body.lightStyle .lvl-meta-widget .meta-profile__xp-caption,
body:not(.darkStyle) .lvl-meta-widget .meta-profile__xp-caption {
	color: #64748b;
}
