/* =============================================================
   Profile v3 — 3D achievement medals, 3D stat icons and the shared
   Lv / title badges. Loads after xp.css and lb-v3.css.
   ============================================================= */

/* Badges row under the avatar */
.mcp-profile .mcpx-chips { gap: 6px 8px; }
.mcp-profile .mcpx-chips .mcpl-tb { height: 22px; font-size: 11px; padding: 0 8px 0 5px; }
.mcp-profile .mcpx-chips .mcpl-tb .mcpl-fx { width: 15px; height: 15px; }
.mcp-profile .mcpx-name .mcp-vip-badge { display: none !important; } /* VIP now shows as the gold badge above */

/* Stat cards: 3D icon instead of the line glyph */
.mcp-profile .mcpx-stat__ico .mcpx-fx { width: 22px; height: 22px; display: block; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .35)); }

/* ── Achievement medals ─────────────────────────────────────── */
.mcp-profile .mcpx-ach__ico .mcpx-fx { position: relative; z-index: 1; display: block; width: 34px; height: 34px; filter: drop-shadow(0 3px 5px rgba(0, 0, 0, .45)); transition: transform .35s cubic-bezier(.22, 1, .36, 1); }
.mcp-profile .mcpx-ach:hover .mcpx-ach__ico .mcpx-fx { transform: scale(1.08); }
.mcp-profile .mcpx-ach__ico {
	width: 66px; height: 66px; overflow: visible;
	background: radial-gradient(circle at 50% 28%, color-mix(in srgb, var(--r) 34%, #1a1f27), #12161c 74%);
}
/* metallic rim per rarity */
.mcp-profile .mcpx-ach__ico::before {
	content: ""; position: absolute; inset: -3px; border-radius: 50%; z-index: 0; pointer-events: none;
	background: conic-gradient(from 200deg, color-mix(in srgb, var(--r) 90%, #fff), color-mix(in srgb, var(--r) 40%, #000) 35%, color-mix(in srgb, var(--r) 95%, #fff) 60%, color-mix(in srgb, var(--r) 45%, #000) 85%, color-mix(in srgb, var(--r) 90%, #fff));
	-webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px));
	mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px));
}
.mcp-profile .mcpx-ach--legendary .mcpx-ach__ico,
.mcp-profile .mcpx-ach__ico.mcpx-ach--legendary { --r: #f0b94e; box-shadow: 0 0 0 4px #12161c, 0 8px 26px rgba(240, 185, 78, .35); }
.mcp-profile .mcpx-ach--legendary .mcpx-ach__ico::after {
	content: ""; position: absolute; inset: -10px; border-radius: 50%; z-index: -1; pointer-events: none;
	background: radial-gradient(closest-side, rgba(240, 185, 78, .28), transparent);
}
.mcp-profile .mcpx-ach__rar {
	display: inline-flex; align-items: center; height: 18px; padding: 0 7px; border-radius: 99px; margin-top: 6px;
	background: rgba(255, 255, 255, .06);
}
.mcp-profile .mcpx-ach--rare .mcpx-ach__rar { background: rgba(76, 195, 240, .12); }
.mcp-profile .mcpx-ach--epic .mcpx-ach__rar { background: rgba(165, 150, 245, .14); }
.mcp-profile .mcpx-ach--legendary .mcpx-ach__rar { background: linear-gradient(135deg, #fbe39a, #d49a3a); color: #2a1800 !important; }

/* All-achievements list */
.mcp-profile .mcpx-achrow .mcpx-ach__ico { width: 46px; height: 46px; flex: 0 0 46px; box-shadow: none; }
.mcp-profile .mcpx-achrow .mcpx-ach__ico .mcpx-fx { width: 26px; height: 26px; }
.mcp-profile .mcpx-achrow.is-locked .mcpx-ach__ico .mcpx-fx { filter: grayscale(1) brightness(.7); opacity: .55; }
.mcp-profile .mcpx-achrow.is-locked .mcpx-ach__ico::before { opacity: .35; }
.mcp-profile .mcpx-lockfx { position: absolute; right: -4px; bottom: -4px; z-index: 2; width: 18px; height: 18px; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .6)); }
.mcp-profile .mcpx-achrow:not(.is-locked) .mcpx-achrow__bar span { background: linear-gradient(90deg, #5fd39a, #48cae4); }
