/* ==========================================================================
   Aqua Manga — Profile · Leaderboard · Levels   (v3, mobile-first)
   Ink surfaces, one accent (aqua), gold only for 1st place / VIP / legendary.
   Display face: Bricolage Grotesque (names, numbers, headings). Body: theme font.
   Spacing 4px grid · radii 12 / 18 / 24 · motion: one curve, transform+opacity only.
   ========================================================================== */
.mcp-profile,
.mcp-leaderboard,
.agx {
	--x-bg: #0b0d11;
	--x-s1: #12151b;           /* surface */
	--x-s2: #181c24;           /* raised / hover */
	--x-s3: #212631;           /* tracks */
	--x-line: rgba(255, 255, 255, .06);
	--x-line-2: rgba(255, 255, 255, .11);
	--x-hi: inset 0 1px 0 rgba(255, 255, 255, .045);   /* top light edge on surfaces */
	--x-text: #eef1f5;
	--x-text-2: #aab3c0;
	--x-muted: #737d8c;
	--x-acc: #48cae4;
	--x-acc-ink: #03151b;
	--x-acc-soft: rgba(72, 202, 228, .1);
	--x-gold: #f0b94e;
	--x-gold-ink: #2a1b00;
	--x-r1: 12px;
	--x-r2: 18px;
	--x-r3: 24px;
	--x-display: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
	--x-out: cubic-bezier(.22, 1, .36, 1);       /* settle, no overshoot */
	--x-press: cubic-bezier(.3, 0, .5, 1);
}
.mcpx-i { display: block; flex: 0 0 auto; }
.mcp-profile b, .mcp-leaderboard b { font-variant-numeric: tabular-nums; }

/* Shared motion -------------------------------------------------------- */
@keyframes mcpxRise { from { opacity: 0; transform: translate3d(0, 12px, 0); } }
@keyframes mcpxFade { from { opacity: 0; } }
@keyframes mcpxRing { from { stroke-dashoffset: 100; } }
.mcpx-rise { animation: mcpxRise .7s var(--x-out) both; animation-delay: calc(var(--d, 0) * 60ms); }

/* Shared buttons ------------------------------------------------------- */
.mcpx-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 40px; padding: 0 18px;
	border-radius: 99px; border: 0; font-family: inherit; font-weight: 650; font-size: 14px; line-height: 1; letter-spacing: -.005em;
	text-decoration: none !important; cursor: pointer; -webkit-tap-highlight-color: transparent;
	background: var(--x-acc); color: var(--x-acc-ink) !important;
	transition: transform .18s var(--x-press), background-color .2s var(--x-out), box-shadow .2s var(--x-out);
}
.mcpx-btn:hover { background: #6dd5ea; }
.mcpx-btn:active { transform: scale(.96); }
.mcpx-btn:focus-visible, .mcpx-pill:focus-visible, .mcpx-guide-toggle:focus-visible,
.mcp-leaderboard .mcp-lb-tab:focus-visible, .mcpx-lblist a:focus-visible, .mcpx-lbpod__card:focus-visible { outline: 2px solid var(--x-acc); outline-offset: 2px; }
.mcpx-btn--ghost { background: rgba(255, 255, 255, .07); color: var(--x-text) !important; box-shadow: inset 0 0 0 1px var(--x-line-2); }
.mcpx-btn--ghost:hover { background: rgba(255, 255, 255, .11); }
.mcpx-btn:disabled { opacity: .55; cursor: progress; }
.mcpx-follow span { display: inline-flex; align-items: center; gap: 6px; }
.mcpx-follow .mcpx-follow__on { display: none; }
.mcpx-follow.is-following { background: transparent; color: var(--x-text) !important; box-shadow: inset 0 0 0 1px var(--x-line-2); }
.mcpx-follow.is-following .mcpx-follow__on { display: inline-flex; }
.mcpx-follow.is-following .mcpx-follow__off { display: none; }

.mcpx-pill {
	display: inline-flex; align-items: center; gap: 4px; height: 30px; padding: 0 12px; border-radius: 99px;
	font-family: inherit; font-weight: 600; font-size: 12.5px; line-height: 1; white-space: nowrap; cursor: pointer; text-decoration: none !important;
	border: 0; background: rgba(255, 255, 255, .05); color: var(--x-text-2) !important;
	transition: background-color .2s var(--x-out), color .2s var(--x-out), transform .18s var(--x-press);
}
.mcpx-pill:hover, .mcpx-pill.is-open { background: var(--x-acc-soft); color: var(--x-acc) !important; }
.mcpx-pill:active { transform: scale(.96); }

/* ==========================================================================
   PROFILE
   ========================================================================== */
.mcp-profile { max-width: 1080px !important; padding: 0 !important; background: transparent !important; border: 0 !important; color: var(--x-text); }
.mcp-profile .mcp-profile-layout > * { order: 2 !important; }
.mcp-profile .mcp-profile-layout > .mcpx-hero { order: 1 !important; }
.mcp-profile .mcp-profile-layout > .mcpx-grid { order: 3 !important; }

/* Hero: cover banner + avatar ring overlapping its lower edge */
.mcp-profile .mcpx-hero {
	--band: 128px;
	position: relative !important; isolation: isolate; overflow: visible !important;
	margin: 0 0 20px !important; padding: calc(var(--band) - 52px) 0 0 !important;
	border: 0 !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important;
	animation: mcpxFade .6s var(--x-out) both;
}
.mcpx-hero__bg {
	position: absolute; left: -24px; right: -24px; top: -24px; height: calc(var(--band) + 48px); z-index: -2;
	background: var(--mcpx-banner, linear-gradient(115deg, #0e3440 0%, #11202b 45%, #151a24 100%)) center 30% / cover no-repeat;
	filter: blur(14px) saturate(1.25) brightness(.8);
	clip-path: inset(24px round var(--x-r3));
}
.mcp-profile .mcpx-hero::before {
	content: ""; position: absolute; left: 0; right: 0; top: 0; height: var(--band); z-index: -1; border-radius: var(--x-r3);
	background:
		radial-gradient(120% 90% at 0% 0%, rgba(72, 202, 228, .22), transparent 60%),
		linear-gradient(180deg, rgba(11, 13, 17, 0) 30%, rgba(11, 13, 17, .75) 100%);
	box-shadow: inset 0 0 0 1px var(--x-line);
}
.mcpx-hero__inner {
	display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "av act" "id id";
	align-items: end; gap: 14px 12px; padding: 0 4px;
}
.mcp-profile .mcpx-avatar { grid-area: av; position: relative; }
.mcp-profile .mcpx-avatar,
.mcp-profile .mcpx-avatar .mcp-profile-avatar { width: 92px !important; height: 92px !important; min-width: 92px !important; max-width: 92px !important; }
.mcp-profile .mcpx-avatar .mcp-profile-avatar { border: 0 !important; border-radius: 50% !important; box-shadow: 0 0 0 4px var(--x-bg) !important; }
.mcp-profile .mcpx-avatar.mcp-profile-avatar--vip .mcp-profile-avatar { box-shadow: 0 0 0 4px var(--x-bg) !important; }

/* XP ring around the avatar */
.mcpx-ring { position: absolute; inset: -9px; width: calc(100% + 18px); height: calc(100% + 18px); pointer-events: none; transform: rotate(-90deg); }
.mcpx-ring circle { fill: none; stroke-width: 3.2; stroke-linecap: round; }
.mcpx-ring__track { stroke: rgba(255, 255, 255, .09); }
.mcpx-ring__fill { stroke: var(--x-acc); stroke-dasharray: 100 100; animation: mcpxRing 1.4s var(--x-out) .2s both; filter: drop-shadow(0 0 4px rgba(72, 202, 228, .55)); }
.mcp-profile-avatar--vip .mcpx-ring__fill { stroke: var(--x-gold); filter: drop-shadow(0 0 4px rgba(240, 185, 78, .5)); }
.mcpx-ring__lv {
	position: absolute; left: 50%; bottom: -14px; transform: translateX(-50%); z-index: 2;
	padding: 4px 9px; border-radius: 99px; white-space: nowrap;
	font: 700 11.5px/1 var(--x-display); letter-spacing: .01em;
	background: var(--x-acc); color: var(--x-acc-ink); box-shadow: 0 0 0 3px var(--x-bg);
}
.mcp-profile-avatar--vip .mcpx-ring__lv { background: var(--x-gold); color: var(--x-gold-ink); }
.mcp-profile .mcp-profile-avatar-edit { z-index: 3; }

.mcpx-actions { grid-area: act; justify-self: end; display: flex; gap: 8px; padding-bottom: 4px; }
.mcpx-actions .mcpx-btn { height: 38px; padding: 0 16px; font-size: 13.5px; }

.mcpx-id { grid-area: id; min-width: 0; padding-top: 8px; }
.mcp-profile .mcpx-name {
	display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px;
	margin: 0 0 8px !important; font-family: var(--x-display) !important; font-size: 30px !important; line-height: 1.04 !important;
	font-weight: 700 !important; letter-spacing: -.03em !important; color: #fff !important; overflow-wrap: anywhere;
}
.mcp-profile .mcpx-name .mcp-vip-badge { font-family: inherit; font-size: 11px !important; padding: 4px 8px !important; margin: 0 !important; letter-spacing: .04em; }
.mcpx-id { display: flex; flex-direction: column; }
.mcpx-id .mcpx-name { order: 1; }
.mcpx-id .mcpx-chips { order: 2; }
.mcpx-id .mcpx-xp { order: 3; }
.mcpx-id .mcpx-bio { order: 4; }
.mcpx-id .mcpx-meta { order: 5; }
.mcpx-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-bottom: 10px; font-size: 13px; line-height: 1.2; }
.mcpx-chips .mcpx-lv { display: none; }
.mcpx-title { color: var(--x-acc); font-weight: 650; }
.mcpx-handle { color: var(--x-muted); }
.mcpx-chips .mcp-rank-badge { font-size: 10.5px !important; padding: 4px 7px !important; margin: 0 !important; line-height: 1 !important; }
.mcpx-xp { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.mcpx-xp__bar { flex: 1; max-width: 220px; height: 4px; border-radius: 99px; background: var(--x-s3); overflow: hidden; }
.mcpx-xp__bar span { display: block; height: 100%; border-radius: inherit; background: var(--x-acc); transform-origin: left; animation: mcpxGrow 1.1s var(--x-out) .2s both; }
@keyframes mcpxGrow { from { transform: scaleX(0); } }
.mcpx-xp__num { color: var(--x-muted); font-size: 12px; white-space: nowrap; }
.mcpx-xp__num b { color: var(--x-text); font-weight: 650; }
.mcpx-bio { margin: 0 0 12px !important; color: var(--x-text-2); font-size: 14.5px; line-height: 1.55; max-width: 62ch; text-wrap: pretty; }
.mcpx-bio.is-empty { display: none; }
.mcpx-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; color: var(--x-muted); font-size: 13px; }
.mcpx-meta b { color: var(--x-text); font-weight: 700; }

/* Body */
.mcpx-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin: 0 0 16px; }
.mcpx-col { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.mcpx-col > * { animation: mcpxRise .7s var(--x-out) both; }
.mcpx-col:first-child > :nth-child(1) { animation-delay: .08s; }
.mcpx-col:first-child > :nth-child(2) { animation-delay: .14s; }
.mcpx-col:last-child > :nth-child(1) { animation-delay: .2s; }
.mcpx-col:last-child > :nth-child(2) { animation-delay: .26s; }

/* Stats: one surface, hairline cells (no icon tiles) */
.mcpx-stats {
	display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px;
	background: var(--x-line); border-radius: var(--x-r2); overflow: hidden; box-shadow: 0 0 0 1px var(--x-line);
}
.mcpx-stat { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 14px 12px 13px; background: var(--x-s1); }
.mcpx-stat__ico { position: absolute; top: 14px; left: 12px; color: var(--t, var(--x-muted)); }
.mcpx-stat__ico .mcpx-i { width: 12px; height: 12px; }
.mcpx-tone--aqua { --t: #48cae4; } .mcpx-tone--green { --t: #5fd39a; } .mcpx-tone--orange { --t: #f59e5b; }
.mcpx-tone--violet { --t: #a596f5; } .mcpx-tone--rose { --t: #f2829a; } .mcpx-tone--slate { --t: #8a96a8; }
.mcpx-stat__val { order: 2; font: 700 22px/1.05 var(--x-display); letter-spacing: -.025em; color: #fff; font-variant-numeric: tabular-nums; }
.mcpx-stat__lbl { order: 1; min-height: 2.4em; margin-bottom: 6px; text-indent: 17px; font-size: 11.5px; line-height: 1.2; color: var(--x-muted); text-wrap: balance; }

/* Aura strip */
.mcpx-aura {
	display: grid; grid-template-columns: 1.2fr 1fr 1fr; align-items: stretch;
	padding: 0; border-radius: var(--x-r2); background: var(--x-s1); box-shadow: var(--x-hi), 0 0 0 1px var(--x-line);
}
.mcpx-aura__item { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 6px; padding: 14px 14px 13px; min-width: 0; }
.mcpx-aura__item + .mcpx-aura__item { box-shadow: inset 1px 0 0 var(--x-line); }
.mcpx-aura__item span { display: flex; align-items: flex-start; gap: 6px; font-size: 11.5px; line-height: 1.25; color: var(--x-muted); }
.mcpx-aura__item span .mcpx-i { margin-top: 1px; }
.mcpx-aura__item span .mcpx-i { width: 13px; height: 13px; }
.mcpx-aura__item b { font: 700 20px/1 var(--x-display); letter-spacing: -.02em; color: #fff; }
.mcpx-aura__item:first-child b { color: var(--x-acc); font-size: 24px; }
.mcpx-aura__item:first-child span .mcpx-i { color: var(--x-acc); }
.mcpx-aura__item.is-neg b { color: #f87171; }

/* Cards */
.mcpx-card { padding: 18px 16px; border-radius: var(--x-r2); background: var(--x-s1); box-shadow: var(--x-hi), 0 0 0 1px var(--x-line); border: 0; }
.mcpx-card__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.mcpx-card__head h2 { margin: 0 !important; font-family: var(--x-display) !important; font-size: 18px !important; font-weight: 700 !important; color: #fff !important; letter-spacing: -.02em; }
.mcpx-empty { margin: 0; color: var(--x-muted); font-size: 14px; line-height: 1.5; }

/* Achievements: horizontal shelf on phones */
.mcpx-showcase {
	display: flex; gap: 6px; margin: 0 -16px; padding: 4px 16px 6px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
	-webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent);
	        mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent);
	scroll-padding-left: 16px;
}
.mcpx-showcase::-webkit-scrollbar { display: none; }
.mcpx-ach { flex: 0 0 92px; white-space: normal !important; scroll-snap-align: start; display: flex; flex-direction: column; align-items: center; text-align: center; min-width: 0; }
.mcpx-ach__ico {
	--r: #8794a8;
	position: relative; width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 10px;
	color: var(--r); background: radial-gradient(circle at 50% 30%, color-mix(in srgb, var(--r) 20%, var(--x-s2)), var(--x-s2) 72%);
	box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--r) 65%, transparent), 0 0 0 4px var(--x-s1), 0 0 0 5px color-mix(in srgb, var(--r) 20%, transparent);
	transition: transform .35s var(--x-out);
}
.mcpx-ach:hover .mcpx-ach__ico { transform: translateY(-2px) rotate(-4deg); }
.mcpx-ach--rare .mcpx-ach__ico, .mcpx-ach__ico.mcpx-ach--rare { --r: #4cc3f0; }
.mcpx-ach--epic .mcpx-ach__ico, .mcpx-ach__ico.mcpx-ach--epic { --r: #a596f5; }
.mcpx-ach--legendary .mcpx-ach__ico, .mcpx-ach__ico.mcpx-ach--legendary { --r: var(--x-gold); box-shadow: inset 0 0 0 1.5px var(--x-gold), 0 0 0 4px var(--x-s1), 0 0 0 5px rgba(240, 185, 78, .3), 0 6px 22px rgba(240, 185, 78, .22); }
.mcpx-ach__name { max-width: 100%; overflow-wrap: anywhere; font-size: 12px; font-weight: 600; color: var(--x-text); line-height: 1.25; text-wrap: balance; }
.mcpx-ach__rar { margin-top: 4px; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--x-muted); }
.mcpx-ach--rare .mcpx-ach__rar { color: #4cc3f0; } .mcpx-ach--epic .mcpx-ach__rar { color: #a596f5; } .mcpx-ach--legendary .mcpx-ach__rar { color: var(--x-gold); }
.mcpx-achall { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 16px; padding-top: 16px; box-shadow: inset 0 1px 0 var(--x-line); animation: mcpxRise .45s var(--x-out) both; }
.mcpx-achall[hidden] { display: none; }
.mcpx-achrow { display: flex; gap: 12px; align-items: center; min-width: 0; }
.mcpx-achrow .mcpx-ach__ico { width: 40px; height: 40px; flex: 0 0 40px; margin: 0; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--r) 65%, transparent); }
.mcpx-achrow.is-locked .mcpx-ach__ico { --r: #4b5563 !important; box-shadow: inset 0 0 0 1.5px #343b47 !important; }
.mcpx-achrow__txt { display: flex; flex-direction: column; gap: 5px; min-width: 0; flex: 1; font-size: 13px; color: var(--x-text); }
.mcpx-achrow.is-locked .mcpx-achrow__txt b { color: var(--x-text-2); }
.mcpx-achrow__txt em { font-style: normal; font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin-left: 4px; }
.mcpx-rar--common { color: var(--x-muted); } .mcpx-rar--rare { color: #4cc3f0; } .mcpx-rar--epic { color: #a596f5; } .mcpx-rar--legendary { color: var(--x-gold); }
.mcpx-achrow__bar { height: 3px; border-radius: 9px; background: var(--x-s3); overflow: hidden; }
.mcpx-achrow__bar span { display: block; height: 100%; background: var(--x-acc); }
.mcpx-achrow__txt small { color: var(--x-muted); font-size: 11px; }

/* Activity: a quiet timeline */
.mcpx-act { list-style: none !important; margin: 0 !important; padding: 0 !important; position: relative; }
.mcpx-act li { position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 0; margin: 0 !important; }
.mcpx-act li::before { content: ""; position: absolute; left: 13px; top: 0; bottom: 0; width: 1px; background: var(--x-line-2); }
.mcpx-act li:first-child::before { top: 50%; }
.mcpx-act li:last-child::before { bottom: 50%; }
.mcpx-act__ico {
	position: relative; z-index: 1; width: 27px; height: 27px; flex: 0 0 27px; display: grid; place-items: center; border-radius: 50%;
	color: var(--x-acc); background: var(--x-s1); box-shadow: inset 0 0 0 1px var(--x-line-2);
}
.mcpx-act__ico .mcpx-i { width: 13px; height: 13px; }
.mcpx-act__ico--liked { color: #f2829a; }
.mcpx-act__ico--login, .mcpx-act__ico--streak7 { color: #f59e5b; }
.mcpx-act__ico--levelup { color: var(--x-gold-ink); background: var(--x-gold); box-shadow: none; }
.mcpx-act__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; color: var(--x-text); font-size: 14px; font-weight: 550; }
.mcpx-act__txt small { color: var(--x-muted); font-size: 12px; font-weight: 400; }
.mcpx-act__xp { font: 700 14px/1 var(--x-display); color: var(--x-acc); white-space: nowrap; letter-spacing: -.01em; }

@media (min-width: 720px) {
	.mcp-profile .mcpx-hero { --band: 184px; padding-top: calc(var(--band) - 64px) !important; margin-bottom: 28px !important; }
	.mcpx-hero__inner { padding: 0 24px; gap: 18px 16px; }
	.mcp-profile .mcpx-avatar,
	.mcp-profile .mcpx-avatar .mcp-profile-avatar { width: 124px !important; height: 124px !important; min-width: 124px !important; max-width: 124px !important; }
	.mcpx-ring { inset: -11px; width: calc(100% + 22px); height: calc(100% + 22px); }
	.mcpx-ring__lv { font-size: 12.5px; padding: 5px 11px; }
	.mcp-profile .mcpx-name { font-size: 42px !important; }
	.mcpx-actions .mcpx-btn { height: 40px; padding: 0 18px; }
	.mcpx-stat { padding: 18px 16px 16px; }
	.mcpx-stat__val { font-size: 26px; }
	.mcpx-card { padding: 22px 20px; }
	.mcpx-showcase { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px 8px; margin: 0; padding: 0; overflow: visible; -webkit-mask-image: none; mask-image: none; }
	.mcpx-achall { grid-template-columns: 1fr 1fr; gap: 14px 20px; }
}
@media (min-width: 1000px) {
	.mcpx-grid { grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 16px; }
	.mcpx-col { gap: 16px; }
	.mcpx-aura { grid-template-columns: 1fr; }
	.mcpx-aura__item { flex-direction: row-reverse; justify-content: space-between; align-items: center; padding: 14px 16px; }
	.mcpx-aura__item + .mcpx-aura__item { box-shadow: inset 0 1px 0 var(--x-line); }
	.mcpx-aura__item span { font-size: 13px; align-items: center; }
}

/* ==========================================================================
   LEADERBOARD shell (Aura + Levels share one system)
   ========================================================================== */
.mcp-leaderboard {
	max-width: 1080px !important; padding: 0 !important; background: transparent !important; border: 0 !important; box-shadow: none !important;
	color: var(--x-text); font-family: inherit !important;
}
.mcp-leaderboard .mcp-lb-header {
	position: relative; isolation: isolate; text-align: left !important; overflow: visible;
	margin: 0 0 22px !important; padding: 8px 4px 0 !important; border: 0 !important; background: transparent !important; box-shadow: none !important;
	animation: mcpxRise .7s var(--x-out) both;
}
.mcp-leaderboard .mcp-lb-header::before {
	content: ""; position: absolute; z-index: -1; top: -40px; left: -20%; width: 120%; height: 220px; pointer-events: none;
	background: radial-gradient(50% 60% at 18% 40%, rgba(72, 202, 228, .14), transparent 70%);
}
.mcp-lb-eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 12px; font-weight: 600; letter-spacing: .02em; color: var(--x-acc); }
.mcp-lb-eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--x-acc); box-shadow: 0 0 0 4px var(--x-acc-soft); }
.mcp-leaderboard .mcp-lb-title {
	margin: 0 0 8px !important; font-family: var(--x-display) !important; font-size: 40px !important; font-weight: 700 !important;
	letter-spacing: -.04em !important; line-height: .98 !important;
	background: none !important; color: #fff !important; -webkit-text-fill-color: #fff !important; text-shadow: none !important;
}
.mcp-leaderboard .mcp-lb-subtitle { margin: 0 !important; font-size: 14.5px !important; line-height: 1.5 !important; color: var(--x-text-2) !important; max-width: 46ch; text-wrap: pretty; }

/* Segmented control with a sliding thumb (JS sets --i / --n) */
.mcp-leaderboard .mcp-lb-tabs {
	--n: 3; --i: 0;
	position: relative; display: flex !important; width: 100% !important; max-width: 440px; gap: 0 !important;
	margin: 0 0 18px !important; padding: 4px !important; border-radius: 99px !important;
	background: var(--x-s1) !important; border: 0 !important; box-shadow: inset 0 0 0 1px var(--x-line) !important;
}
.mcp-leaderboard .mcp-lb-tabs::before {
	content: ""; position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px) / var(--n)); border-radius: 99px;
	background: var(--x-acc); box-shadow: 0 4px 14px rgba(72, 202, 228, .25);
	transform: translateX(calc(var(--i) * 100%)); transition: transform .45s var(--x-out);
}
.mcp-leaderboard .mcp-lb-tab {
	position: relative; z-index: 1; flex: 1 1 0 !important; display: inline-flex !important; align-items: center; justify-content: center; gap: 6px;
	height: 38px; min-width: 0; padding: 0 8px !important; margin: 0 !important; border: 0 !important; border-radius: 99px !important;
	font-family: inherit !important; font-size: 13.5px !important; font-weight: 650 !important; white-space: nowrap;
	color: var(--x-text-2) !important; background: transparent !important; box-shadow: none !important;
	transition: color .3s var(--x-out); -webkit-tap-highlight-color: transparent;
}
.mcp-leaderboard .mcp-lb-tab:hover { color: #fff !important; }
.mcp-leaderboard .mcp-lb-tab.is-active { color: var(--x-acc-ink) !important; background: transparent !important; }
.mcp-leaderboard .mcp-lb-tab-icon { display: none; }
.mcp-leaderboard .mcp-lb-panel.is-active { animation: mcpxFade .35s var(--x-out) both; }
.mcp-leaderboard .mcp-lb-season-note { margin: 0 0 16px !important; padding: 0 4px; text-align: left !important; font-size: 13px !important; color: var(--x-muted) !important; letter-spacing: 0 !important; text-transform: none !important; }

/* Hall of fame */
.mcp-leaderboard .mcp-lb-hof { margin: 0 0 22px !important; padding: 16px !important; border-radius: var(--x-r2) !important; background: var(--x-s1) !important; border: 0 !important; box-shadow: var(--x-hi), 0 0 0 1px var(--x-line) !important; animation: mcpxRise .7s var(--x-out) .06s both; }
.mcp-leaderboard .mcp-lb-hof-title { display: flex !important; align-items: center; gap: 8px; justify-content: flex-start !important; margin: 0 0 12px !important; font-family: var(--x-display) !important; font-size: 16px !important; font-weight: 700 !important; letter-spacing: -.01em !important; text-transform: none !important; color: var(--x-gold) !important; }
.mcp-leaderboard .mcp-lb-hof-row { display: grid !important; grid-template-columns: 1fr; gap: 1px !important; background: var(--x-line); border-radius: var(--x-r1); overflow: hidden; }
.mcp-leaderboard .mcp-lb-hof-card { display: flex !important; flex-direction: row !important; align-items: center; gap: 10px; text-align: left !important; max-width: none !important; padding: 11px 12px !important; border-radius: 0 !important; background: var(--x-s2) !important; border: 0 !important; box-shadow: none !important; }
.mcp-leaderboard .mcp-lb-hof-medal { order: 4; margin-left: auto; font-size: 10.5px !important; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--x-muted); }
.mcp-leaderboard .mcp-lb-hof-rank-1 .mcp-lb-hof-medal { color: var(--x-gold); }
.mcp-leaderboard .mcp-lb-hof-avatar { width: 36px !important; height: 36px !important; border-radius: 50% !important; }
.mcp-leaderboard .mcp-lb-hof-name { flex: 1; min-width: 0; font-size: 14px !important; font-weight: 650 !important; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mcp-leaderboard .mcp-lb-hof-name a { color: #fff !important; }
.mcp-leaderboard .mcp-lb-hof-aura { order: 3; font: 700 14px/1 var(--x-display) !important; color: #fff !important; white-space: nowrap; }
.mcp-leaderboard .mcp-lb-hof-aura small { color: var(--x-muted); font-family: inherit; font-weight: 500; }

/* Stat micro-cell */
.mcpx-st { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.mcpx-st small { font-size: 10.5px; font-weight: 600; letter-spacing: .04em; color: var(--x-muted); }
.mcpx-st b { font: 700 15px/1 var(--x-display); letter-spacing: -.015em; color: #fff; }

/* Podium — stepped plinths: avatar & name stand on a block whose height is the place */
.mcpx-lbpod { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; align-items: end; margin: 26px 0 18px; }
.mcpx-lbpod__card {
	position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; min-width: 0;
	padding: 0 !important; background: transparent !important; border: 0 !important; border-radius: 0; box-shadow: none !important;
	text-decoration: none !important; color: var(--x-text) !important; -webkit-tap-highlight-color: transparent;
	animation: mcpxRise .8s var(--x-out) both;
}
.mcpx-lbpod__card--1 { animation-delay: .05s; }
.mcpx-lbpod__card--2 { animation-delay: .15s; }
.mcpx-lbpod__card--3 { animation-delay: .22s; }
.mcpx-lbpod__av { order: 1; position: relative; margin-bottom: 10px; transition: transform .4s var(--x-out); }
.mcpx-lbpod__card:hover .mcpx-lbpod__av { transform: translateY(-3px); }
.mcpx-lbpod__card:active .mcpx-lbpod__av { transform: scale(.96); }
.mcpx-lbpod__av img, .mcpx-lbpod__img { display: block; width: 58px !important; height: 58px !important; border-radius: 50% !important; object-fit: cover; box-shadow: 0 0 0 3px var(--x-bg), 0 0 0 4.5px var(--x-line-2); }
.mcpx-lbpod__card--1 .mcpx-lbpod__av img { width: 76px !important; height: 76px !important; box-shadow: 0 0 0 3px var(--x-bg), 0 0 0 5px var(--x-gold), 0 10px 34px rgba(240, 185, 78, .28); }
.mcpx-lbpod__card--1 .mcpx-lbpod__av::before {
	content: ""; position: absolute; left: 50%; top: -18px; width: 22px; height: 16px; transform: translateX(-50%);
	background: var(--x-gold); -webkit-mask: var(--mcpx-crown) center / contain no-repeat; mask: var(--mcpx-crown) center / contain no-repeat;
	--mcpx-crown: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 18'%3E%3Cpath d='M2 15h20l1.5-11-6 4.5L12 1 6.5 8.5.5 4z'/%3E%3C/svg%3E");
}
.mcpx-lbpod__name { order: 2; display: block; max-width: 100%; padding: 0 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--x-display); font-weight: 650; font-size: 14px; letter-spacing: -.015em; color: #fff; }
.mcpx-lbpod__name .mcp-vip-badge, .mcpx-lbpod__name .mcp-champion-badge { display: none; }
.mcpx-lbpod__lv { order: 3; display: flex; flex-direction: column; gap: 1px; margin-top: 3px; font-size: 11.5px; color: var(--x-muted); max-width: 100%; }
.mcpx-lbpod__lv b { color: var(--x-acc); font-weight: 650; }
.mcpx-lbpod__lv i { display: none; }
.mcpx-lbpod__card--1 .mcpx-lbpod__lv b { color: var(--x-gold); }
.mcpx-lbpod__rank { order: 3; margin-top: 6px; }
.mcpx-lbpod__rank .mcp-rank-badge { font-size: 9.5px !important; padding: 3px 6px !important; margin: 0 !important; line-height: 1 !important; }

/* the plinth = place (top) + stats (bottom) */
.mcpx-lbpod__place {
	order: 4; position: static !important; transform: none !important; display: flex; align-items: center; justify-content: center; gap: 4px;
	width: 100%; margin-top: 12px; padding: 14px 0 0; border-radius: var(--x-r2) var(--x-r2) 0 0;
	font: 700 22px/1 var(--x-display) !important; letter-spacing: -.03em; text-transform: none !important;
	color: var(--x-text-2) !important; background: linear-gradient(180deg, var(--x-s2), var(--x-s1)) !important;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07);
}
.mcpx-lbpod__place .mcpx-i { display: none; }
.mcpx-lbpod__stats {
	order: 5; display: flex; flex-direction: column; justify-content: flex-start; align-items: center; gap: 8px;
	width: 100%; min-height: 64px; margin: 0; padding: 10px 6px 14px; border: 0 !important; border-radius: 0 0 var(--x-r1) var(--x-r1);
	background: var(--x-s1);
}
.mcpx-lbpod__stats .mcpx-st { align-items: center; }
.mcpx-lbpod__stats .mcpx-st:not(:first-child) { display: none; }
.mcpx-lbpod__card--1 .mcpx-lbpod__place { color: var(--x-gold) !important; font-size: 28px !important; padding-top: 18px; background: linear-gradient(180deg, rgba(240, 185, 78, .2), rgba(240, 185, 78, .04) 80%), var(--x-s1) !important; box-shadow: inset 0 1px 0 rgba(240, 185, 78, .45); }
.mcpx-lbpod__card--1 .mcpx-lbpod__stats { min-height: 104px; background: linear-gradient(180deg, rgba(240, 185, 78, .04), transparent), var(--x-s1); }
.mcpx-lbpod__card--3 .mcpx-lbpod__place { color: #d79a63 !important; }
.mcpx-lbpod__card--3 .mcpx-lbpod__stats { min-height: 44px; }
.mcpx-lbpod__card--1 .mcpx-lbpod__stats .mcpx-st b { color: var(--x-gold); font-size: 18px; }

/* List bar + guide toggle */
.mcpx-lbbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 0 0 12px; padding: 0 4px; }
.mcpx-lbbar__count { font-size: 12.5px; color: var(--x-muted); }
.mcpx-guide-toggle {
	display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 10px 0 14px; border-radius: 99px;
	border: 0; background: var(--x-acc-soft); color: var(--x-acc); font-family: inherit; font-weight: 650; font-size: 13px; line-height: 1; cursor: pointer;
	transition: background-color .2s var(--x-out), transform .18s var(--x-press); -webkit-tap-highlight-color: transparent;
}
.mcpx-guide-toggle:hover { background: rgba(72, 202, 228, .16); }
.mcpx-guide-toggle:active { transform: scale(.96); }
.mcpx-guide-toggle .mcpx-i { transition: transform .4s var(--x-out); }
.mcpx-guide-toggle[aria-expanded="true"] .mcpx-i { transform: rotate(180deg); }

/* Ranked list */
.mcpx-lblist { list-style: none !important; margin: 0 !important; padding: 4px !important; border: 0 !important; border-radius: var(--x-r2); background: var(--x-s1); box-shadow: var(--x-hi), 0 0 0 1px var(--x-line); }
.mcpx-lblist li { margin: 0 !important; animation: mcpxRise .6s var(--x-out) both; }
.mcpx-lblist li:nth-child(1) { animation-delay: .24s; } .mcpx-lblist li:nth-child(2) { animation-delay: .28s; }
.mcpx-lblist li:nth-child(3) { animation-delay: .32s; } .mcpx-lblist li:nth-child(4) { animation-delay: .36s; }
.mcpx-lblist li:nth-child(5) { animation-delay: .4s; }  .mcpx-lblist li:nth-child(n+6) { animation-delay: .44s; }
.mcpx-lblist li + li { border-top: 0; }
.mcpx-lblist a {
	display: flex; align-items: center; gap: 10px; padding: 10px 10px; border-radius: 14px;
	text-decoration: none !important; color: var(--x-text) !important; -webkit-tap-highlight-color: transparent;
	transition: background-color .2s var(--x-out), transform .18s var(--x-press);
}
.mcpx-lblist a:hover { background: var(--x-s2); }
.mcpx-lblist a:active { transform: scale(.985); background: var(--x-s2); }
.mcpx-lblist__pos { width: 24px; flex: 0 0 24px; text-align: center; font: 650 14px/1 var(--x-display); color: var(--x-muted); font-variant-numeric: tabular-nums; }
.mcpx-lblist__img { width: 38px !important; height: 38px !important; border-radius: 50% !important; object-fit: cover; flex: 0 0 38px; }
.mcpx-lblist__who { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; }
.mcpx-lblist__who b { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #fff; font-size: 14px; font-weight: 650; }
.mcpx-lblist__who .mcp-vip-badge { font-size: 9.5px !important; padding: 2px 6px !important; margin: 0 !important; }
.mcpx-lblist__who small { flex-basis: 100%; color: var(--x-muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mcpx-lblist__who .mcp-rank-badge { font-size: 9.5px !important; padding: 2px 6px !important; margin: 0 !important; line-height: 1 !important; display: inline-block; }
.mcpx-lblist__nums { display: flex; gap: 14px; }
.mcpx-lblist__nums .mcpx-st { align-items: flex-end; text-align: right; }
.mcpx-lblist__nums .mcpx-st:last-child { display: none; }
.mcpx-hide-sm { display: none; }

/* XP guide — a readable list, values lead */
.mcpx-guide { margin: 0 0 16px; padding: 18px 16px 16px; border-radius: var(--x-r2); background: var(--x-s1); box-shadow: var(--x-hi), 0 0 0 1px var(--x-line); animation: mcpxRise .5s var(--x-out) both; }
.mcpx-guide[hidden] { display: none; }
.mcpx-guide__head { margin-bottom: 10px; }
.mcpx-guide__tag { font-size: 12px; font-weight: 600; color: var(--x-gold); }
.mcpx-guide h3 { margin: 4px 0 4px !important; font-family: var(--x-display) !important; font-size: 22px !important; font-weight: 700 !important; letter-spacing: -.03em; color: #fff !important; }
.mcpx-guide__head p { margin: 0 !important; color: var(--x-muted); font-size: 13.5px; line-height: 1.5; }
.mcpx-guide__grid { display: grid; grid-template-columns: 1fr; }
.mcpx-guide__card { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border: 0; background: transparent; box-shadow: inset 0 -1px 0 var(--x-line); }
.mcpx-guide__ico { width: 36px; height: 36px; flex: 0 0 36px; display: grid; place-items: center; border-radius: 50%; color: var(--x-acc); background: var(--x-acc-soft); }
.mcpx-guide__body { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 4px; }
.mcpx-guide__title { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.mcpx-guide__title b { color: #fff; font-size: 14.5px; font-weight: 650; }
.mcpx-guide__xp { font: 700 15px/1 var(--x-display); color: var(--x-gold); white-space: nowrap; }
.mcpx-guide__card p { margin: 0 !important; color: var(--x-text-2); font-size: 13.5px; line-height: 1.5; }
.mcpx-guide__note { font-size: 12px; color: var(--x-muted); }
.mcpx-guide__rules { list-style: none !important; margin: 6px 0 0 !important; padding: 0 !important; display: grid; gap: 10px; }
.mcpx-guide__rules li { display: flex; gap: 10px; align-items: flex-start; margin: 0 !important; font-size: 13px; line-height: 1.5; color: var(--x-text-2); }
.mcpx-guide__rules .mcpx-i { color: var(--x-acc); margin-top: 2px; }

@media (min-width: 720px) {
	.mcp-leaderboard .mcp-lb-header { margin-bottom: 28px !important; padding-top: 20px !important; }
	.mcp-leaderboard .mcp-lb-title { font-size: 60px !important; }
	.mcp-leaderboard .mcp-lb-subtitle { font-size: 16px !important; }
	.mcp-leaderboard .mcp-lb-tab-icon { display: inline-flex; }
	.mcp-leaderboard .mcp-lb-hof-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.mcpx-lbpod { gap: 12px; margin: 34px auto 24px; max-width: 720px; }
	.mcpx-lbpod__av img, .mcpx-lbpod__img { width: 80px !important; height: 80px !important; }
	.mcpx-lbpod__card--1 .mcpx-lbpod__av img { width: 104px !important; height: 104px !important; }
	.mcpx-lbpod__name { font-size: 17px; }
	.mcpx-lbpod__name .mcp-vip-badge { display: inline-flex; font-size: 10px !important; padding: 3px 6px !important; margin: 0 0 0 4px !important; vertical-align: 2px; }
	.mcpx-lbpod__lv { flex-direction: row; justify-content: center; gap: 6px; font-size: 12.5px; }
	.mcpx-lbpod__lv i { display: inline; font-style: normal; opacity: .5; }
	.mcpx-lbpod__place { font-size: 28px !important; padding-top: 18px; }
	.mcpx-lbpod__card--1 .mcpx-lbpod__place { font-size: 36px !important; }
	.mcpx-lbpod__stats { flex-direction: row; justify-content: center; gap: 22px; min-height: 84px; padding: 14px 10px 18px; }
	.mcpx-lbpod__stats .mcpx-st:not(:first-child) { display: flex; }
	.mcpx-lbpod__card--1 .mcpx-lbpod__stats { min-height: 128px; }
	.mcpx-lbpod__card--3 .mcpx-lbpod__stats { min-height: 60px; }
	.mcpx-lblist { padding: 6px !important; }
	.mcpx-lblist a { gap: 14px; padding: 12px 14px; }
	.mcpx-lblist__img { width: 42px !important; height: 42px !important; flex-basis: 42px; }
	.mcpx-lblist__nums { gap: 28px; }
	.mcpx-lblist__nums .mcpx-st { min-width: 64px; }
	.mcpx-lblist__nums .mcpx-st:last-child, .mcpx-hide-sm { display: flex; }
	.mcpx-guide { padding: 26px 24px 22px; }
	.mcpx-guide h3 { font-size: 28px !important; }
	.mcpx-guide__grid { grid-template-columns: 1fr 1fr; column-gap: 32px; }
	.mcpx-guide__rules { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 24px; margin-top: 16px !important; }
}
@media (max-width: 359px) {
	.mcpx-lblist__nums .mcpx-st:nth-child(2) { display: none; }
	.mcp-leaderboard .mcp-lb-tab { font-size: 12.5px !important; }
}

@media (prefers-reduced-motion: reduce) {
	.mcp-profile *, .mcp-leaderboard * { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
}

/* ── Custom profile banner (3:1) ─────────────────────────────────────── */
.mcp-profile { container-type: inline-size; }
@supports (width: 1cqw) {
	.mcp-profile .mcpx-hero.has-banner { --band: calc(100cqw / 3); }
	@media (min-width: 720px) { .mcp-profile .mcpx-hero.has-banner { --band: clamp(184px, calc(100cqw / 4.2), 260px); } }
}
.mcpx-hero.has-banner .mcpx-hero__bg { filter: none; }
.mcp-profile .mcpx-hero.has-banner::before {
	background: linear-gradient(180deg, rgba(11, 13, 17, 0) 55%, rgba(11, 13, 17, .55) 100%);
}
.mcpx-hero.is-uploading .mcpx-hero__bg { opacity: .55; transition: opacity .3s var(--x-out); }
.mcpx-bn { position: absolute; top: 10px; right: 10px; z-index: 2; display: flex; gap: 6px; }
.mcpx-bn__btn {
	display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 99px; border: 0; margin: 0;
	font: 600 12.5px/1 inherit; font-family: inherit; color: #fff !important; cursor: pointer;
	background: rgba(8, 10, 14, .55); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14);
	-webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
	transition: transform .18s var(--x-press), background-color .2s var(--x-out); -webkit-tap-highlight-color: transparent;
}
.mcpx-bn__btn:hover { background: rgba(8, 10, 14, .72); }
.mcpx-bn__btn:active { transform: scale(.96); }
.mcpx-bn__btn:focus-within, .mcpx-bn__btn:focus-visible { outline: 2px solid var(--x-acc); outline-offset: 2px; }
.mcpx-bn__btn--icon { width: 32px; padding: 0; justify-content: center; }
.mcpx-bn__btn.is-locked { cursor: default; color: var(--x-text-2) !important; }
.mcpx-bn__btn.is-locked:active { transform: none; }
.mcpx-hero.is-uploading .mcpx-bn__btn { pointer-events: none; opacity: .6; }
@media (max-width: 719px) { .mcpx-bn__btn span { font-size: 12px; } }
@media (prefers-reduced-transparency: reduce) { .mcpx-bn__btn { background: #0b0d11; -webkit-backdrop-filter: none; backdrop-filter: none; } }
.mcp-profile .mcpx-avatar .mcp-profile-avatar-edit {
	position: absolute !important; right: -2px !important; bottom: 6px !important; top: auto !important; left: auto !important;
	width: 30px !important; height: 30px !important; padding: 0 !important; display: grid !important; place-items: center !important;
	border: 0 !important; border-radius: 50% !important; background: #181c24 !important; color: #fff !important;
	box-shadow: 0 0 0 3px var(--x-bg), inset 0 0 0 1px rgba(255, 255, 255, .14) !important; font-size: 13px !important; line-height: 1 !important;
	transition: transform .18s var(--x-press) !important;
}
.mcp-profile .mcpx-avatar .mcp-profile-avatar-edit:active { transform: scale(.94); }

/* Aura rank guide: shown on This month / All-time, hidden on Levels (it has its own) */
.mcp-leaderboard[data-tab="levels"] .mcpx-lbbar--aura,
.mcp-leaderboard[data-tab="levels"] #mcpx-aura-guide { display: none !important; }
.mcpx-lbbar--aura { margin-top: -4px; }
#mcpx-aura-guide .mcpx-guide__xp { color: var(--x-acc); }

/* ==========================================================================
   v3.1 — art hero, "your rank" bar, show more, theme wrapper fix
   ========================================================================== */
/* theme puts a lighter panel behind full-width community pages — remove it */
body.aqua-fullwidth .c-blog-post { background: transparent !important; box-shadow: none !important; border: 0 !important; }

/* Hero with artwork */
.mcp-leaderboard .mcp-lb-header.has-art {
	display: flex; flex-direction: column; justify-content: flex-end; min-height: 300px; overflow: hidden;
	margin: 0 0 22px !important; padding: 22px 20px 22px !important; border-radius: var(--x-r3);
	background: #070a10 !important; box-shadow: inset 0 0 0 1px var(--x-line), 0 20px 60px -30px rgba(72, 202, 228, .35) !important;
	animation: mcpxFade .8s var(--x-out) both;
}
.mcp-leaderboard .mcp-lb-header.has-art::before {
	top: 0; left: 0; width: 100%; height: 100%; z-index: -2; border-radius: inherit;
	background: var(--lb-art) 72% 30% / cover no-repeat;
	transform: scale(1.04); animation: mcpxArt 1.6s var(--x-out) both;
}
@keyframes mcpxArt { from { transform: scale(1.12); opacity: .4; } }
.mcp-leaderboard .mcp-lb-header.has-art::after {
	content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
	background:
		linear-gradient(180deg, rgba(5, 8, 12, 0) 20%, rgba(5, 8, 12, .55) 62%, rgba(5, 8, 12, .92) 100%),
		linear-gradient(90deg, rgba(5, 8, 12, .55) 0%, rgba(5, 8, 12, 0) 60%);
}
.mcp-leaderboard .mcp-lb-header.has-art .mcp-lb-eyebrow { align-self: flex-start; padding: 5px 10px 5px 8px; border-radius: 99px; background: rgba(5, 8, 12, .5); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.mcp-leaderboard .mcp-lb-header.has-art .mcp-lb-title { font-size: 44px !important; text-shadow: 0 2px 24px rgba(0, 0, 0, .5) !important; }
.mcp-leaderboard .mcp-lb-header.has-art .mcp-lb-subtitle { color: #d6dde6 !important; max-width: 34ch; }
@media (min-width: 720px) {
	.mcp-leaderboard .mcp-lb-header.has-art { min-height: 380px; padding: 40px 40px 36px !important; }
	.mcp-leaderboard .mcp-lb-header.has-art .mcp-lb-title { font-size: 72px !important; }
	.mcp-leaderboard .mcp-lb-header.has-art::before { background-position: 70% 35%; }
}

/* Show more */
.mcpx-lblist li.is-extra { display: none; }
.mcpx-lblist.is-expanded li.is-extra { display: block; animation: mcpxRise .45s var(--x-out) both; }
.mcpx-more {
	display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; height: 44px; margin: 10px 0 0;
	border: 0; border-radius: 14px; cursor: pointer; font-family: inherit; font-size: 13.5px; font-weight: 650;
	background: var(--x-s1); color: var(--x-text-2); box-shadow: inset 0 0 0 1px var(--x-line);
	transition: background-color .2s var(--x-out), color .2s var(--x-out), transform .18s var(--x-press);
}
.mcpx-more:hover { background: var(--x-s2); color: #fff; }
.mcpx-more:active { transform: scale(.98); }

/* Your row in the list */
.mcpx-lblist li.is-me a { background: var(--x-acc-soft); box-shadow: inset 0 0 0 1px rgba(72, 202, 228, .28); }
.mcpx-lblist li.is-me .mcpx-lblist__pos { color: var(--x-acc); }
.mcpx-lblist li.is-flash a { animation: mcpxFlash 1.4s var(--x-out); }
@keyframes mcpxFlash { 0%, 30% { box-shadow: inset 0 0 0 2px var(--x-acc); } }

/* Sticky "your rank" bar — sits above the theme's floating mobile dock */
.mcpx-me {
	position: sticky; bottom: calc(92px + env(safe-area-inset-bottom)); z-index: 5;
	display: flex; align-items: center; gap: 12px; margin: 16px 0 0; padding: 10px 10px 10px 12px; border-radius: 18px;
	text-decoration: none !important; color: var(--x-text) !important;
	background: rgba(18, 21, 27, .86); -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3);
	box-shadow: inset 0 0 0 1px rgba(72, 202, 228, .3), 0 14px 40px -12px rgba(0, 0, 0, .7);
	animation: mcpxRise .6s var(--x-out) .35s both; -webkit-tap-highlight-color: transparent;
	transition: transform .18s var(--x-press);
}
a.mcpx-me:active { transform: scale(.985); }
.mcpx-me.is-first { box-shadow: inset 0 0 0 1px rgba(240, 185, 78, .45), 0 14px 40px -12px rgba(0, 0, 0, .7); }
.mcpx-me__img { width: 36px !important; height: 36px !important; flex: 0 0 36px; border-radius: 50% !important; object-fit: cover; }
.mcpx-me__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mcpx-me__txt b { font: 700 15px/1.15 var(--x-display); letter-spacing: -.015em; color: #fff; }
.mcpx-me__txt small { font-size: 12px; color: var(--x-text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mcpx-me__val { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; padding-right: 4px; }
.mcpx-me__val b { font: 700 17px/1 var(--x-display); color: var(--x-acc); }
.mcpx-me.is-first .mcpx-me__val b { color: var(--x-gold); }
.mcpx-me__val small { font-size: 10.5px; color: var(--x-muted); }
.mcpx-me__cta { height: 36px; padding: 0 16px; font-size: 13px; flex: 0 0 auto; }
.mcpx-me--guest { padding-left: 16px; }
@media (min-width: 768px) { .mcpx-me { bottom: 16px; max-width: 560px; margin-left: auto; margin-right: auto; } }
@media (prefers-reduced-transparency: reduce) { .mcpx-me { background: #12151b; -webkit-backdrop-filter: none; backdrop-filter: none; } }

/* ── Profile v3.1: gutter, default art banner, tabs ─────────────────── */
@media (max-width: 767px) {
	.mcp-profile { padding: 0 14px !important; }
}
.mcpx-hero.has-banner.is-default .mcpx-hero__bg { background-position: center 40%; }
.mcp-profile .mcp-profile-tabs-wrap {
	position: sticky; top: 66px; z-index: 4; margin: 4px 0 14px !important; padding: 0 !important;
	background: transparent !important; border: 0 !important; box-shadow: none !important;
}
.mcp-profile .mcp-profile-tabs {
	display: flex !important; gap: 0 !important; width: 100%; max-width: 480px; margin: 0 !important; padding: 4px !important;
	border: 0 !important; border-radius: 99px !important; overflow: visible !important;
	background: rgba(18, 21, 27, .9) !important; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
	box-shadow: inset 0 0 0 1px var(--x-line), 0 10px 30px -18px rgba(0, 0, 0, .8) !important;
}
.mcp-profile .mcp-profile-tab {
	flex: 1 1 0 !important; height: 40px; min-width: 0; margin: 0 !important; padding: 0 8px !important; border: 0 !important; border-radius: 99px !important;
	background: transparent !important; color: var(--x-text-2) !important; box-shadow: none !important;
	font-family: inherit !important; font-size: 13.5px !important; font-weight: 650 !important; cursor: pointer;
	transition: background-color .3s var(--x-out), color .3s var(--x-out), transform .18s var(--x-press); -webkit-tap-highlight-color: transparent;
}
.mcp-profile .mcp-profile-tab::after, .mcp-profile .mcp-profile-tab::before { display: none !important; }
.mcp-profile .mcp-profile-tab:active { transform: scale(.96); }
.mcp-profile .mcp-profile-tab.is-active { background: var(--x-acc) !important; color: var(--x-acc-ink) !important; box-shadow: 0 4px 14px rgba(72, 202, 228, .25) !important; }
.mcp-profile .mcp-profile-tab-inner { display: inline-flex !important; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; }
.mcp-profile .mcp-profile-tab-inner svg, .mcp-profile .mcp-profile-tab-icon { width: 15px !important; height: 15px !important; flex: 0 0 auto; }
.mcp-profile .mcp-profile-tab-label { overflow: hidden; text-overflow: ellipsis; }
.mcp-profile .mcp-profile-panel-profile .mcpx-grid { margin-top: 0; }
.mcp-profile .mcp-profile-panel.is-active { animation: mcpxFade .35s var(--x-out) both; }
/* Library blocks speak the same type */
.mcp-profile .mcp-profile-block-title {
	font-family: var(--x-display) !important; font-size: 18px !important; font-weight: 700 !important; letter-spacing: -.02em !important;
	text-transform: none !important; color: #fff !important;
}
@media (max-width: 440px) { .mcp-profile .mcp-profile-tab-inner svg, .mcp-profile .mcp-profile-tab-icon { display: none !important; } }
/* beat the legacy profile.css !important tab rules */
.mcp-profile .mcp-profile-tabs-wrap { display: block !important; width: 100% !important; overflow: visible !important; border-radius: 0 !important; }
.mcp-profile .mcp-profile-tabs-wrap .mcp-profile-tab {
	width: auto !important; max-width: none !important; flex: 1 1 0 !important; height: 40px !important; min-height: 40px !important;
	padding: 0 8px !important; font-size: 13.5px !important; font-weight: 650 !important; border-radius: 99px !important; color: var(--x-text-2) !important;
}
.mcp-profile .mcp-profile-tabs-wrap .mcp-profile-tab.is-active { background: var(--x-acc) !important; color: var(--x-acc-ink) !important; }
.mcp-profile .mcp-profile-tabs-wrap .mcp-profile-tab .mcp-profile-tab-inner { background: transparent !important; padding: 0 !important; }
.mcp-profile .mcp-profile-tabs-wrap .mcp-profile-tab.is-active .mcp-profile-tab-icon,
.mcp-profile .mcp-profile-tabs-wrap .mcp-profile-tab.is-active svg { color: var(--x-acc-ink) !important; opacity: 1 !important; }
.mcpx-lbbar--aura { justify-content: flex-end; margin-bottom: 8px; }
.mcpx-lbbar--aura .mcpx-lbbar__count { display: none; }
@media (min-width: 720px) { .mcp-leaderboard .mcp-lb-header.has-art::before { background-position: 72% 18%; } }
@media (min-width: 768px) { .mcp-profile .mcp-profile-tabs-wrap { top: 74px; } }
/* sticky needs the theme wrapper to clip instead of hide (theme polish.css does this too) */
.wrap { overflow: clip !important; }
html body.aqua-fullwidth { overflow-x: clip; overflow-y: visible; }

/* Aura = fire. Red flame beside the Aura number, with a slow flicker. */
.mcpx-aura__item--fire b { display: inline-flex; align-items: flex-end; gap: 6px; }
.mcp-profile .mcpx-aura__item--fire b, .mcpx-aura__item.mcpx-aura__item--fire:first-child b {
	color: #fff !important;
	background: linear-gradient(180deg, #ffd8a8 0%, #ff6a3d 55%, #ff2d4a 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.mcpx-fire { flex: 0 0 auto; margin-bottom: -1px; overflow: visible; filter: drop-shadow(0 0 6px rgba(255, 60, 40, .55)); }
.mcpx-fire__outer { transform-origin: 50% 100%; animation: mcpxFlame 1.6s ease-in-out infinite alternate; }
.mcpx-fire__inner { transform-origin: 50% 100%; animation: mcpxFlame 1.1s ease-in-out infinite alternate-reverse; }
@keyframes mcpxFlame {
	0%   { transform: scale(1, 1) skewX(0deg); }
	50%  { transform: scale(.96, 1.06) skewX(-2deg); }
	100% { transform: scale(1.03, .97) skewX(2deg); }
}
.mcpx-aura__item--fire { position: relative; }
.mcpx-aura__item--fire::before {
	content: ""; position: absolute; left: 6px; bottom: 6px; width: 70px; height: 40px; pointer-events: none; border-radius: 50%;
	background: radial-gradient(closest-side, rgba(255, 60, 40, .22), transparent); filter: blur(4px);
}
.mcpx-aura__item--fire span { color: #ff8a6b !important; }
.mcpx-aura__item--fire.is-neg b { background: none; -webkit-text-fill-color: #f87171; }
@media (prefers-reduced-motion: reduce) { .mcpx-fire__outer, .mcpx-fire__inner { animation: none; } }

/* ==========================================================================
   v3.2 — pills & colour: every stat is its own tinted card (profile + boards)
   ========================================================================== */
:root {
	--mcpx-ic-fire: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 30'%3E%3Cpath d='M12 29c6 0 10-4 10-10 0-4.6-2.6-7.6-4.8-9.8-.6 3-2.2 4.6-3.9 4.6 0-5.2-2-9.6-5.6-12.8.3 5.4-2.6 8.5-4.9 11.1C1.2 14.9 2 29 12 29z'/%3E%3C/svg%3E");
	--mcpx-ic-bolt: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M13.5 2 4 14h7l-1.5 8L20 10h-7z'/%3E%3C/svg%3E");
	--mcpx-ic-chat: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M21 12a8.5 8.5 0 0 1-12.4 7.6L3 21l1.4-5.4A8.5 8.5 0 1 1 21 12z'/%3E%3C/svg%3E");
	--mcpx-ic-up: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3 4 12h5v9h6v-9h5z'/%3E%3C/svg%3E");
}

/* ── Profile: stat cards ── */
.mcp-profile .mcpx-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; background: none; box-shadow: none; border-radius: 0; overflow: visible; }
@media (min-width: 560px) { .mcp-profile .mcpx-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.mcp-profile .mcpx-stat {
	padding: 14px 14px 13px; border-radius: 18px; overflow: hidden;
	background: radial-gradient(120% 90% at 0% 0%, color-mix(in srgb, var(--t) 15%, transparent), transparent 62%), var(--x-s1);
	box-shadow: var(--x-hi), inset 0 0 0 1px color-mix(in srgb, var(--t) 20%, rgba(255, 255, 255, .05));
	transition: transform .3s var(--x-out), box-shadow .3s var(--x-out);
}
@media (hover: hover) { .mcp-profile .mcpx-stat:hover { transform: translateY(-2px); box-shadow: var(--x-hi), inset 0 0 0 1px color-mix(in srgb, var(--t) 40%, transparent); } }
.mcp-profile .mcpx-stat__ico {
	position: static; order: 0; width: 34px; height: 34px; margin: 0 0 12px; display: grid; place-items: center; border-radius: 11px; opacity: 1;
	color: var(--t); background: color-mix(in srgb, var(--t) 16%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--t) 25%, transparent);
}
.mcp-profile .mcpx-stat__ico .mcpx-i { width: 17px; height: 17px; }
.mcp-profile .mcpx-stat__val { order: 1; font-size: 24px; }
.mcp-profile .mcpx-stat__lbl { order: 2; min-height: 0; margin: 4px 0 0; text-indent: 0; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mcp-profile .mcpx-stat.mcpx-tone--slate {
	background: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1.2px) 0 0 / 11px 11px, var(--x-s1);
}
.mcp-profile .mcpx-stat.mcpx-tone--orange .mcpx-stat__val { color: #ffb37a; }

/* ── Profile: Aura / month / bookmarks as three pills ── */
.mcp-profile .mcpx-aura { grid-template-columns: 1.2fr 1fr 1fr; gap: 10px; padding: 0; background: none; box-shadow: none; }
.mcp-profile .mcpx-aura__item, .mcp-profile .mcpx-aura__item + .mcpx-aura__item {
	--t: #48cae4; padding: 14px 14px 13px; border-radius: 18px;
	background: radial-gradient(120% 90% at 0% 0%, color-mix(in srgb, var(--t) 15%, transparent), transparent 62%), var(--x-s1);
	box-shadow: var(--x-hi), inset 0 0 0 1px color-mix(in srgb, var(--t) 22%, rgba(255, 255, 255, .05));
}
.mcp-profile .mcpx-aura__item:nth-child(1) { --t: #ff3d3d; }
.mcp-profile .mcpx-aura__item:nth-child(2) { --t: #48cae4; }
.mcp-profile .mcpx-aura__item:nth-child(3) { --t: #f0b94e; }
.mcp-profile .mcpx-aura__item:nth-child(2) span .mcpx-i, .mcp-profile .mcpx-aura__item:nth-child(3) span .mcpx-i { color: var(--t); }
.mcp-profile .mcpx-aura__item:nth-child(3) b { color: #ffd88a; }
.mcp-profile .mcpx-aura__item:nth-child(2) b { color: #8be3f3; }
@media (min-width: 1000px) {
	.mcp-profile .mcpx-aura { grid-template-columns: 1fr; gap: 10px; }
}

/* ── Profile: followers / following / joined as pills ── */
.mcp-profile .mcpx-meta { gap: 8px; }
.mcp-profile .mcpx-meta > span {
	display: inline-flex; align-items: center; gap: 5px; padding: 7px 12px; border-radius: 99px; font-size: 12.5px;
	background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px var(--x-line);
}
.mcp-profile .mcpx-meta > span:nth-child(1) b { color: var(--x-acc); }

/* ── Boards: coloured stat labels with tiny glyphs ── */
.mcpx-st small { display: inline-flex; align-items: center; gap: 4px; }
.mcpx-st--xp small, .mcpx-st--aura small, .mcpx-st--total-aura small, .mcpx-st--this-month small,
.mcpx-st--comments small, .mcpx-st--streak small, .mcpx-st--level small { letter-spacing: .02em; }
.mcpx-st small::before { content: none; width: 10px; height: 11px; background: currentColor; -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
.mcpx-st--xp small { color: #f5c451; --i: var(--mcpx-ic-bolt); }
.mcpx-st--aura small, .mcpx-st--total-aura small, .mcpx-st--this-month small { color: #ff7a5c; --i: var(--mcpx-ic-fire); }
.mcpx-st--streak small { color: #ffa152; --i: var(--mcpx-ic-fire); }
.mcpx-st--comments small { color: #a596f5; --i: var(--mcpx-ic-chat); }
.mcpx-st--level small { color: var(--x-acc); --i: var(--mcpx-ic-up); }
.mcpx-st--xp small::before, .mcpx-st--aura small::before, .mcpx-st--total-aura small::before, .mcpx-st--this-month small::before,
.mcpx-st--streak small::before, .mcpx-st--comments small::before, .mcpx-st--level small::before { content: ""; }

/* ── Boards: every row is its own card with a #rank pill ── */
.mcp-leaderboard .mcpx-lblist { display: grid; gap: 8px; padding: 0 !important; background: none; box-shadow: none; border-radius: 0; }
.mcp-leaderboard .mcpx-lblist a {
	padding: 11px 12px; border-radius: 16px; background: var(--x-s1);
	box-shadow: var(--x-hi), inset 0 0 0 1px var(--x-line);
}
.mcp-leaderboard .mcpx-lblist a:hover { background: var(--x-s2); }
.mcp-leaderboard .mcpx-lblist__pos {
	width: auto; min-width: 36px; flex: 0 0 auto; height: 26px; padding: 0 8px; display: grid; place-items: center; border-radius: 99px;
	font-size: 12.5px; color: var(--x-text-2); background: rgba(255, 255, 255, .06);
}
.mcp-leaderboard .mcpx-lblist__pos::before { content: "#"; opacity: .55; margin-right: 1px; }
.mcp-leaderboard .mcpx-lblist li:nth-child(-n+7) .mcpx-lblist__pos { color: var(--x-acc); background: var(--x-acc-soft); }
.mcp-leaderboard .mcpx-lblist li.is-me a { background: linear-gradient(90deg, rgba(72, 202, 228, .12), rgba(72, 202, 228, .03)), var(--x-s1); }
.mcp-leaderboard .mcpx-lblist__img { box-shadow: 0 0 0 2px var(--x-s1), 0 0 0 3px var(--x-line-2); }

/* podium plinth stats pick up the same colours */
.mcpx-lbpod__card--2 .mcpx-lbpod__place { box-shadow: inset 0 1px 0 rgba(200, 214, 230, .35); background: linear-gradient(180deg, rgba(200, 214, 230, .12), rgba(200, 214, 230, .02) 80%), var(--x-s1) !important; }
.mcpx-lbpod__card--3 .mcpx-lbpod__place { box-shadow: inset 0 1px 0 rgba(215, 154, 99, .4); background: linear-gradient(180deg, rgba(215, 154, 99, .16), rgba(215, 154, 99, .02) 80%), var(--x-s1) !important; }

/* your-rank bar tinted per board */
.mcpx-me--month .mcpx-me__val b, .mcpx-me--all .mcpx-me__val b { color: #ff7a5c; }
.mcpx-me--levels .mcpx-me__val b { color: #f5c451; }
.mcp-leaderboard .mcpx-lblist__pos { display: inline-flex !important; align-items: center; justify-content: center; white-space: nowrap; }

/* ==========================================================================
   v4 colour discipline — neutral surfaces, colour only where it means something
   aqua = brand / you · ember = Aura & fire · gold = XP / 1st place
   ========================================================================== */
.mcp-profile, .mcp-leaderboard { --x-ember: #f2704f; --x-ember-soft: rgba(242, 112, 79, .12); --x-gold: #e6b35a; }

/* stat cards: one neutral surface, quiet icon chips */
.mcp-profile .mcpx-stat, .mcp-profile .mcpx-stat.mcpx-tone--slate {
	background: var(--x-s1); box-shadow: var(--x-hi), inset 0 0 0 1px rgba(255, 255, 255, .055);
}
@media (hover: hover) { .mcp-profile .mcpx-stat:hover { box-shadow: var(--x-hi), inset 0 0 0 1px rgba(255, 255, 255, .11); } }
.mcp-profile .mcpx-stat__ico { color: var(--x-text-2); background: rgba(255, 255, 255, .045); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
.mcp-profile .mcpx-stat.mcpx-tone--orange .mcpx-stat__ico { color: var(--x-ember); background: var(--x-ember-soft); box-shadow: none; }
.mcp-profile .mcpx-stat.mcpx-tone--orange .mcpx-stat__val { color: #fff; }
.mcp-profile .mcpx-stat.mcpx-tone--aqua .mcpx-stat__ico { color: var(--x-acc); background: var(--x-acc-soft); box-shadow: none; }

/* aura pills: only Aura carries colour */
.mcp-profile .mcpx-aura__item, .mcp-profile .mcpx-aura__item + .mcpx-aura__item {
	background: var(--x-s1); box-shadow: var(--x-hi), inset 0 0 0 1px rgba(255, 255, 255, .055);
}
.mcp-profile .mcpx-aura__item:nth-child(1) {
	background: linear-gradient(180deg, rgba(242, 112, 79, .08), rgba(242, 112, 79, 0) 70%), var(--x-s1);
	box-shadow: var(--x-hi), inset 0 0 0 1px rgba(242, 112, 79, .22);
}
.mcp-profile .mcpx-aura__item--fire::before { background: radial-gradient(closest-side, rgba(242, 112, 79, .14), transparent); }
.mcp-profile .mcpx-aura__item--fire b, .mcpx-aura__item.mcpx-aura__item--fire:first-child b {
	background: none !important; -webkit-text-fill-color: currentColor !important; color: #ff8d6e !important;
}
.mcpx-aura__item--fire span { color: rgba(255, 141, 110, .85) !important; }
.mcpx-fire { filter: drop-shadow(0 0 5px rgba(242, 112, 79, .4)); }
.mcp-profile .mcpx-aura__item:nth-child(2) b, .mcp-profile .mcpx-aura__item:nth-child(3) b { color: #fff; }
.mcp-profile .mcpx-aura__item:nth-child(2) span .mcpx-i, .mcp-profile .mcpx-aura__item:nth-child(3) span .mcpx-i { color: var(--x-muted); }

/* meta pills stay neutral */
.mcp-profile .mcpx-meta > span:nth-child(1) b { color: #fff; }

/* boards: colour only XP (gold) and Aura (ember); other labels stay muted */
.mcpx-st--streak small, .mcpx-st--comments small, .mcpx-st--level small { color: var(--x-muted); }
.mcpx-st--aura small, .mcpx-st--total-aura small, .mcpx-st--this-month small { color: var(--x-ember); }
.mcpx-st--xp small { color: var(--x-gold); }
.mcpx-st--comments small::before, .mcpx-st--level small::before { content: none; }
.mcp-leaderboard .mcpx-lblist li:nth-child(-n+7) .mcpx-lblist__pos { color: var(--x-text-2); background: rgba(255, 255, 255, .06); }
.mcp-leaderboard .mcpx-lblist li.is-me .mcpx-lblist__pos { color: var(--x-acc); background: var(--x-acc-soft); }
.mcp-leaderboard .mcpx-lblist li.is-me a { background: var(--x-s1); box-shadow: var(--x-hi), inset 0 0 0 1px rgba(72, 202, 228, .35); }
.mcpx-me--month .mcpx-me__val b, .mcpx-me--all .mcpx-me__val b { color: #ff8d6e; }
.mcpx-me--levels .mcpx-me__val b { color: var(--x-gold); }
/* podium: gold for 1st, quiet metal for 2nd/3rd */
.mcpx-lbpod__card--2 .mcpx-lbpod__place { background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, 0) 80%), var(--x-s1) !important; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14); }
.mcpx-lbpod__card--3 .mcpx-lbpod__place { background: linear-gradient(180deg, rgba(205, 140, 90, .08), rgba(205, 140, 90, 0) 80%), var(--x-s1) !important; box-shadow: inset 0 1px 0 rgba(205, 140, 90, .25); }
.mcpx-lbpod__card--3 .mcpx-lbpod__place { color: #c99066 !important; }

/* ==========================================================================
   v4.1 mobile hardening — nothing may push past the screen, even with
   Android "large text" turned on (text grows, the viewport doesn't)
   ========================================================================== */
.mcp-profile { --mcp-p-accent: #48cae4; }
.mcp-leaderboard .mcpx-lblist { grid-template-columns: minmax(0, 1fr); }
.mcp-leaderboard .mcpx-lblist > li { min-width: 0; }
.mcp-leaderboard .mcpx-lblist a { min-width: 0; }
.mcpx-lblist__nums { flex: 0 0 auto; min-width: 0; }
.mcpx-lblist__nums .mcpx-st small { white-space: nowrap; }
@media (max-width: 420px) {
	/* "This month" is long — the icon alone says Aura there */
	.mcpx-lblist__nums .mcpx-st--this-month small { font-size: 0; gap: 0; }
	.mcpx-lblist__nums .mcpx-st--this-month small::before { width: 11px; height: 12px; }
	.mcpx-lbpod__stats .mcpx-st--this-month small { font-size: 0; }
	.mcpx-lbpod__stats .mcpx-st--this-month small::before { width: 12px; height: 13px; }
	.mcpx-lblist__img { width: 34px !important; height: 34px !important; flex-basis: 34px; }
	.mcp-leaderboard .mcpx-lblist a { gap: 8px; padding: 10px; }
	.mcp-leaderboard .mcpx-lblist__pos { min-width: 32px; padding: 0 6px; }
}
/* achievements pill: shorten instead of overflowing */
.mcpx-card__head { flex-wrap: wrap; }
.mcpx-card__head .mcpx-pill { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 420px) { .mcpx-ach-toggle { font-size: 0 !important; } .mcpx-ach-toggle::after { content: "All achievements"; font-size: 12.5px; } }
/* profile tabs: count becomes a small badge, hidden on narrow phones */
.mcp-tab-count { display: inline-block; margin-left: 6px; padding: 2px 7px; border-radius: 99px; font: 700 11px/1.3 var(--x-display); background: rgba(255, 255, 255, .08); }
.mcp-profile-tab.is-active .mcp-tab-count { background: rgba(3, 21, 27, .14); }
@media (max-width: 400px) { .mcp-tab-count { display: none; } }
/* comments sort switch on brand colour (was purple) */
.mcp-profile .mcp-profile-sort-btn.is-active { background: var(--x-acc) !important; color: var(--x-acc-ink) !important; box-shadow: 0 4px 14px rgba(72, 202, 228, .25) !important; }
.mcp-profile .mcp-profile-sort { border-radius: 99px; }
.mcp-profile .mcp-profile-sort-btn { border-radius: 99px !important; }
/* text never forces width */
.mcp-profile .mcpx-name { font-size: clamp(24px, 8vw, 30px) !important; }
.mcp-profile .mcpx-chips, .mcp-profile .mcpx-meta { min-width: 0; }
.mcp-profile .mcpx-xp__num { white-space: normal; }
.mcpx-me__txt small { white-space: normal; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; }
.mcp-edit-bio-btn, .mcp-profile-bookmarks-loadmore:hover { color: var(--x-acc-ink) !important; }
