/* REZO212 member cards + badges (v2.14). Liquid chrome: a polished metal rim and sheen that follows the pointer,
   around a dark card (the same in both themes, like the guide's prompt boxes). Badges are medallions: a chrome rim
   with the space's colour inside (Hub pink, Lab blue, Academy lime, the three colours for the plan-wide ones);
   they pop in one after the other and catch the light once. */
.mcard-ov { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: max(16px, env(safe-area-inset-top, 0px)) 16px max(16px, env(safe-area-inset-bottom, 0px));
  background: rgba(6, 7, 10, .62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity .25s; perspective: 1200px; overflow-y: auto; }
.mcard-ov.open { opacity: 1; }
.mcard {
  --chrome: linear-gradient(125deg, #f4f6fa 0%, #9ca5b5 14%, #ffffff 27%, #5f6778 44%, #dfe4ec 58%, #7d8698 74%, #f6f8fb 88%, #a7afbe 100%);
  --mx: 30%; --my: 0%;
  position: relative; width: min(400px, 100%); padding: 22px 22px 18px; border-radius: 28px; color: #f1f2f4;
  background: radial-gradient(120% 70% at var(--mx) -10%, rgba(255, 255, 255, .10), transparent 55%), linear-gradient(180deg, #1b1e25, #121419 60%);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .75), 0 0 0 1px rgba(255, 255, 255, .06) inset;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s cubic-bezier(.2, .8, .2, 1);
  animation: mc-in .55s cubic-bezier(.2, .9, .25, 1.05) both; font-family: var(--body, system-ui);
}
/* the chrome rim: a 2px band of polished metal, its highlight sliding with the pointer */
.mcard::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 2px; pointer-events: none;
  background: var(--chrome); background-size: 220% 220%; background-position: var(--mx) var(--my);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
@keyframes mc-in { from { opacity: 0; transform: translateY(18px) rotateX(14deg) scale(.96); } }
.mcard.mc-load { min-height: 300px; } .mcard.mc-load .skel { height: 260px; border-radius: 18px; }
.mc-top { display: flex; align-items: center; gap: 14px; }
.mc-av { position: relative; flex: none; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--chrome); background-size: 200% 200%; background-position: var(--mx) var(--my); }
.mc-av::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; padding: 2px; background: conic-gradient(var(--lime, #d6ff3d) 0 120deg, var(--blue, #2e4bff) 0 240deg, var(--pink, #ff3d8b) 0);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.mc-av span { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: #15171c; font: 800 24px/1 var(--display, system-ui); color: #fff; }
.mc-id { min-width: 0; flex: 1; }
.mc-id h2 { margin: 0; font: 800 22px/1.1 var(--display, system-ui); letter-spacing: -.02em; color: #fff; overflow-wrap: anywhere; }
.mc-id p { margin: 6px 0 0; display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; }
.mc-tier { padding: 3px 9px; border-radius: 999px; font: 600 11px/1.3 var(--mono, monospace); letter-spacing: .04em; text-transform: uppercase; background: #f1f2f4; color: #0f1013; }
.mc-tier.t-prime { background: var(--lime, #d6ff3d); } .mc-tier.t-team { background: var(--pink, #ff3d8b); }
.mc-tier.t-ultra { background: linear-gradient(90deg, var(--lime, #d6ff3d) 0 33.4%, var(--blue, #2e4bff) 0 66.7%, var(--pink, #ff3d8b) 0); color: #0f1013; text-shadow: none; box-shadow: inset 0 0 0 999px rgba(255, 255, 255, .55); }
.mc-since { font-size: 12.5px; color: #a4a9b4; }
.mc-x { flex: none; align-self: flex-start; width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .08); color: #fff; cursor: pointer; font-size: 13px; }
.mc-x:hover { background: rgba(255, 255, 255, .16); }
.mc-bio { margin: 14px 0 0; font-size: 14px; line-height: 1.5; color: #d4d7de; }
.mc-rank { margin-top: 16px; padding: 12px 14px; border-radius: 16px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
.mc-rk { display: flex; align-items: baseline; gap: 10px; }
.mc-rk b { font: 800 17px/1 var(--display, system-ui); color: #fff; }
.mc-lv { padding: 3px 8px; border-radius: 8px; font: 700 11px/1.2 var(--mono, monospace); background: var(--lime, #d6ff3d); color: #0f1013; }
.mc-pts { margin-inline-start: auto; font: 500 12px/1 var(--mono, monospace); color: #a4a9b4; }
.mc-bar { margin-top: 10px; height: 8px; border-radius: 999px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.mc-bar i { display: block; height: 100%; width: var(--p); border-radius: inherit; background: var(--lime, #d6ff3d); animation: mc-bar 1s .25s cubic-bezier(.2, .8, .2, 1) both; transform-origin: left; }
html[dir="rtl"] .mc-bar i { transform-origin: right; }
@keyframes mc-bar { from { transform: scaleX(0); } }
.mc-next { display: block; margin-top: 7px; font-size: 12px; color: #a4a9b4; }
.mc-stats { margin-top: 12px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.mc-stats div { padding: 10px 6px; border-radius: 14px; text-align: center; background: rgba(255, 255, 255, .04); }
.mc-stats b { display: block; font: 800 19px/1 var(--display, system-ui); color: #fff; }
.mc-stats span { display: block; margin-top: 5px; font-size: 11.5px; color: #a4a9b4; }
.mc-bh { margin-top: 16px; display: flex; justify-content: space-between; }
.mc-bh .k, .mc-tip .k { font: 500 11px/1 var(--mono, monospace); letter-spacing: .08em; text-transform: uppercase; color: #a4a9b4; }
.mc-badges { margin-top: 10px; display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 10px 6px; }
.mc-none { grid-column: 1 / -1; margin: 4px 0; font-size: 13.5px; color: #a4a9b4; }
.mc-tip { min-height: 1.4em; margin: 12px 0 0; font-size: 13px; line-height: 1.45; color: #d4d7de; }
.mc-tip b { color: #fff; }

/* a badge: chrome rim, colour inside, icon; pops in and catches the light once */
.bdx { --c: #f1f2f4; --ic: #0f1013; display: grid; justify-items: center; gap: 6px; padding: 4px 2px; border: 0; background: none; color: inherit; cursor: pointer; font: inherit;
  animation: bdx-in .5s var(--d, 0ms) cubic-bezier(.2, .9, .3, 1.4) both; -webkit-tap-highlight-color: transparent; }
.bdx.sp-hub { --c: var(--pink, #ff3d8b); }
.bdx.sp-lab { --c: var(--blue, #2e4bff); --ic: #fff; }
.bdx.sp-academy { --c: var(--lime, #d6ff3d); }
.bdx.sp-all { --c: conic-gradient(from 200deg, var(--lime, #d6ff3d) 0 120deg, var(--blue, #2e4bff) 0 240deg, var(--pink, #ff3d8b) 0); --ic: #fff; }
.bdx-m { position: relative; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; overflow: hidden;
  background: linear-gradient(125deg, #f4f6fa, #8d96a7 30%, #ffffff 50%, #646c7d 72%, #e3e7ee); box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .7);
  transition: transform .35s cubic-bezier(.2, .9, .3, 1.4); }
.bdx-in { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--c); box-shadow: inset 0 2px 4px rgba(0, 0, 0, .25), inset 0 -2px 4px rgba(255, 255, 255, .25); }
.bdx-in svg { width: 21px; height: 21px; fill: none; stroke: var(--ic); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sp-all .bdx-in svg { filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .45)); }
.bdx-m::after { content: ""; position: absolute; inset: -40%; background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, .75) 50%, transparent 60%); transform: translateX(-120%);
  animation: bdx-shine 1.1s calc(var(--d, 0ms) + .35s) ease-out both; pointer-events: none; }
.bdx-n { max-width: 84px; font-size: 11.5px; line-height: 1.25; text-align: center; color: #d4d7de; }
.bdx:hover .bdx-m, .bdx:focus-visible .bdx-m, .bdx.sel .bdx-m { transform: translateY(-3px) rotate(-8deg) scale(1.06); }
.bdx:hover .bdx-m::after { animation: bdx-shine .9s ease-out; }
.bdx.sel .bdx-n { color: #fff; }
.bdx:focus-visible { outline: 2px solid #fff; outline-offset: 2px; border-radius: 12px; }
.bdx.locked { animation-name: bdx-in-l; }
.bdx.locked .bdx-m { background: #2a2d35; box-shadow: none; }
.bdx.locked .bdx-in { background: #1c1f26; box-shadow: none; }
.bdx.locked .bdx-in svg { stroke: #5c6270; filter: none; }
.bdx.locked .bdx-m::after { display: none; }
.bdx.locked .bdx-n { color: #6f7583; }
.bdx.fresh .bdx-m { box-shadow: 0 0 0 3px rgba(255, 255, 255, .9), 0 0 24px 4px rgba(255, 255, 255, .25); }
@keyframes bdx-in { from { opacity: 0; transform: translateY(10px) scale(.6); } }
@keyframes bdx-in-l { from { opacity: 0; } }
@keyframes bdx-shine { to { transform: translateX(120%); } }

/* inline: the member's own card on a page (Account) */
.mcard.inline { width: 100%; max-width: 760px; animation: none; }
.mcard.inline .mc-badges { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); }

/* small marks next to names in the Hub */
.lvm { display: inline-flex; align-items: center; margin-inline-start: 6px; padding: 1px 6px; border-radius: 6px; font: 700 10.5px/1.5 var(--mono, monospace); letter-spacing: .02em;
  background: rgba(var(--ov, 255, 255, 255), .08); color: var(--muted, #a4a9b4); vertical-align: 1px; }
[data-card] { cursor: pointer; }
[data-card]:is(:hover, :focus-visible) .av, .av[data-card]:is(:hover, :focus-visible) { box-shadow: 0 0 0 2px var(--bg, #0b0c10), 0 0 0 4px var(--pink, #ff3d8b); }

@media (max-width: 420px) { .mcard { padding: 18px 16px 14px; border-radius: 24px; } .mc-av { width: 54px; height: 54px; } .mc-av span { width: 46px; height: 46px; font-size: 20px; } .mc-stats b { font-size: 17px; } }
@media (prefers-reduced-motion: reduce) { .mcard, .bdx, .mc-bar i, .bdx-m::after { animation: none !important; } .mcard { transition: none; } }

/* ---------- the Academy rank card (v2.14), beside the guide's cover ----------
   The rank's medallion (chrome rim, lime inside, its own icon), the bar to the next rank, the ladder as one row of
   icons, milestones and the member's badges. Lime: it's the Academy. */
.phero-in:has(> #gRank:not([hidden])) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 400px); column-gap: clamp(28px, 4vw, 64px); align-items: start; }
.phero-in:has(> #gRank:not([hidden])) > * { grid-column: 1; }
.phero-in:has(> #gRank:not([hidden])) > #gRank { grid-column: 2; grid-row: 1 / span 12; align-self: center; margin-top: 8px; }
@media (max-width: 980px) { .phero-in:has(> #gRank:not([hidden])) { display: block; } .phero-in > #gRank { margin-top: 24px; } }
.gd-rank { padding: 18px 18px 16px; border-radius: 22px; background: var(--surface); box-shadow: var(--shadow-1); }
.gr-top { display: flex; align-items: center; gap: 14px; }
.gr-med { flex: none; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(125deg, #f4f6fa, #8d96a7 30%, #ffffff 50%, #646c7d 72%, #e3e7ee); box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .5); }
.gr-med > span { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--lime); box-shadow: inset 0 2px 4px rgba(0, 0, 0, .2), inset 0 -2px 4px rgba(255, 255, 255, .3); }
.gr-med svg { width: 24px; height: 24px; fill: none; stroke: #0f1013; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.gr-id { display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 4px 10px; flex: 1; min-width: 0; }
.gr-id b { grid-column: 1 / -1; font: 800 22px/1.05 var(--display); letter-spacing: -.02em; }
.gr-lv { justify-self: start; padding: 3px 8px; border-radius: 8px; font: 700 11px/1.2 var(--mono); background: var(--lime); color: var(--dark); }
.gr-pts { grid-row: 1; grid-column: 2; justify-self: end; font: 500 12px/1 var(--mono); color: var(--muted); }
.gr-bar { margin-top: 14px; height: 8px; border-radius: 999px; background: rgba(var(--ov), .08); overflow: hidden; }
.gr-bar i { display: block; height: 100%; border-radius: inherit; background: var(--lime); transition: width .6s cubic-bezier(.2, .8, .2, 1); }
:root[data-theme="light"] .gr-bar i { background: var(--lime); }
.gr-next { margin: 8px 0 0; font-size: 12.5px; color: var(--muted); }
.gr-ladder { margin: 14px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 4px; position: relative; }
.gr-ladder::before { content: ""; position: absolute; left: 6%; right: 6%; top: 15px; height: 2px; background: rgba(var(--ov), .1); }
.gr-ladder li { position: relative; display: grid; justify-items: center; gap: 4px; min-width: 0; }
.gr-ic { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2, rgba(var(--ov), .06)); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--dim, var(--muted)); }
.gr-ic svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.gr-ladder li.past .gr-ic { background: rgba(var(--acc), .16); color: var(--fg); box-shadow: inset 0 0 0 1px rgba(var(--acc), .5); }
.gr-ladder li.on .gr-ic { background: var(--lime); color: #0f1013; box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--lime); }
.gr-n { display: none; }
.gr-ladder li.on .gr-n { display: block; position: absolute; top: 40px; white-space: nowrap; font: 600 11px/1 var(--body); color: var(--fg); }
.gr-at { font: 500 9.5px/1 var(--mono); color: var(--muted); opacity: .8; }
.gr-ladder li.on .gr-at { visibility: hidden; }
.gr-m { margin: 18px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.gr-m li { padding: 3px 9px; border-radius: 999px; font-size: 12px; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line-2); }
.gr-m li.on { background: rgba(var(--acc), .14); color: var(--fg); box-shadow: inset 0 0 0 1px rgba(var(--acc), .5); }
.gr-bh { margin-top: 16px; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.gr-bh .k { font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.gr-bh a { font-size: 12.5px; color: var(--fg); }
.gr-badges { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.gr-badges .bdx { padding: 0; } .gr-badges .bdx-n { display: none; }
.gr-badges .bdx-m { width: 40px; height: 40px; } .gr-badges .bdx-in { width: 32px; height: 32px; } .gr-badges .bdx-in svg { width: 16px; height: 16px; }
.gr-more { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; font: 600 12px/1 var(--mono); color: var(--fg); box-shadow: inset 0 0 0 1px var(--line-2); text-decoration: none; }
.gr-none { margin: 0; font-size: 12.5px; color: var(--muted); }
.gr-rule { margin: 14px 0 0; font-size: 11.5px; color: var(--muted); }

/* ---------- special badges: their own shape and material (owner) ----------
   Ultra = a cut diamond, Founding member = gold seal, Connector = holographic hexagon, Prime = an emerald cut.
   The same materials crown the top Academy ranks (Elite gold, Master diamond, Legend holo). */
.bdx.mat { filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .45)); }
.bdx.mat .bdx-m { box-shadow: none; border-radius: 0; }
.bdx.mat .bdx-in { border-radius: 0; box-shadow: none; }
.bdx.mat-diamond .bdx-m { clip-path: polygon(24% 8%, 76% 8%, 100% 38%, 50% 98%, 0 38%); background: linear-gradient(135deg, #ffffff, #cfe9ff 25%, #9fb3ff 45%, #ffffff 55%, #d9c7ff 75%, #ffffff); }
.bdx.mat-diamond .bdx-in { width: 44px; height: 44px; clip-path: polygon(26% 12%, 74% 12%, 94% 38%, 50% 92%, 6% 38%);
  background: linear-gradient(90deg, transparent 49%, rgba(255, 255, 255, .7) 50%, transparent 51%) 0 0 / 100% 100%, conic-gradient(from 30deg at 50% 38%, #f4fbff, #b7d3ff, #ffffff, #cdb9ff, #a6e6ff, #ffffff, #e2d6ff, #f4fbff); }
.bdx.mat-diamond .bdx-in svg { stroke: #1d2b6b; margin-top: -8px; }
.bdx.mat-gold .bdx-m { clip-path: polygon(30% 0, 70% 0, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0 70%, 0 30%); background: linear-gradient(135deg, #fff4c2, #d4a017 30%, #fff1a8 50%, #a6750c 72%, #ffe08a); }
.bdx.mat-gold .bdx-in { clip-path: polygon(30% 0, 70% 0, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0 70%, 0 30%); background: radial-gradient(circle at 35% 28%, #fff6c4, #f0c43a 38%, #c48e10 70%, #8a5d00); }
.bdx.mat-gold .bdx-in svg { stroke: #3d2a00; }
.bdx.mat-holo .bdx-m { clip-path: polygon(25% 4%, 75% 4%, 100% 50%, 75% 96%, 25% 96%, 0 50%); background: linear-gradient(125deg, #f4f6fa, #8d96a7 30%, #ffffff 50%, #646c7d 72%, #e3e7ee); }
.bdx.mat-holo .bdx-in { clip-path: polygon(25% 4%, 75% 4%, 100% 50%, 75% 96%, 25% 96%, 0 50%); background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, .8), transparent 45%), conic-gradient(from 0deg, #ff3d9a, #ffd23d, #3dffc5, #3d8bff, #b43dff, #ff3d9a); background-blend-mode: soft-light, normal; animation: holo-turn 6s linear infinite; }
.bdx.mat-holo .bdx-in svg { stroke: #14161b; filter: none; }
.bdx.mat-emerald .bdx-m { clip-path: polygon(22% 0, 78% 0, 100% 22%, 100% 78%, 78% 100%, 22% 100%, 0 78%, 0 22%); background: linear-gradient(135deg, #f1ffc9, #7fae00 35%, #e9ff9a 55%, #4f6d00); }
.bdx.mat-emerald .bdx-in { clip-path: polygon(22% 0, 78% 0, 100% 22%, 100% 78%, 78% 100%, 22% 100%, 0 78%, 0 22%);
  background: linear-gradient(45deg, transparent 48%, rgba(255, 255, 255, .35) 50%, transparent 52%), linear-gradient(160deg, #efffb0, #c4f02a 45%, #7aa300); }
.bdx.mat-emerald .bdx-in svg { stroke: #233000; }
.bdx.mat.locked { filter: none; }
.bdx.mat.locked .bdx-m { background: #2a2d35; } .bdx.mat.locked .bdx-in { background: #1c1f26; animation: none; } .bdx.mat.locked .bdx-in svg { stroke: #5c6270; }
@keyframes holo-turn { to { filter: hue-rotate(360deg); } }
/* the top ranks' medallions */
.gr-med.mat-gold { background: linear-gradient(135deg, #fff4c2, #d4a017 30%, #fff1a8 50%, #a6750c 72%, #ffe08a); }
.gr-med.mat-gold > span { background: radial-gradient(circle at 35% 28%, #fff6c4, #f0c43a 38%, #c48e10 70%, #8a5d00); }
.gr-med.mat-diamond { background: linear-gradient(135deg, #ffffff, #cfe9ff 25%, #9fb3ff 45%, #ffffff 55%, #d9c7ff 75%, #ffffff); }
.gr-med.mat-diamond > span { background: conic-gradient(from 30deg, #f4fbff, #b7d3ff, #ffffff, #cdb9ff, #a6e6ff, #ffffff, #e2d6ff, #f4fbff); }
.gr-med.mat-holo > span { background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, .8), transparent 45%), conic-gradient(#ff3d9a, #ffd23d, #3dffc5, #3d8bff, #b43dff, #ff3d9a); background-blend-mode: soft-light, normal; animation: holo-turn 6s linear infinite; }
.gr-ic { width: 28px; height: 28px; } .gr-ic svg { width: 14px; height: 14px; }
.gr-ladder::before { top: 13px; }
@media (prefers-reduced-motion: reduce) { .bdx.mat-holo .bdx-in, .gr-med.mat-holo > span { animation: none; } }

/* the plan next to names in the Hub: Ultra = a small cut diamond, Prime = an emerald (owner) */
.bdg:is(.tier-ultra, .tier-prime) { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px 2px 6px !important; border: 0 !important; border-radius: 999px !important; font-weight: 600; color: #11131a !important; }
.bdg.tier-ultra { background: linear-gradient(135deg, #ffffff, #d6ecff 30%, #c4b8ff 60%, #ffffff) !important; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .7), 0 1px 4px rgba(120, 140, 255, .35); }
.bdg.tier-prime { background: linear-gradient(135deg, #f1ffc9, #c4f02a 55%, #9bc400) !important; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .45); }
.bdg:is(.tier-ultra, .tier-prime) i { width: 10px; height: 9px; flex: none; }
.bdg.tier-ultra i { clip-path: polygon(24% 8%, 76% 8%, 100% 38%, 50% 98%, 0 38%); background: conic-gradient(from 30deg at 50% 38%, #8fb0ff, #3d5cff, #b9a6ff, #5a7bff, #8fb0ff); }
.bdg.tier-prime i { width: 9px; clip-path: polygon(22% 0, 78% 0, 100% 22%, 100% 78%, 78% 100%, 22% 100%, 0 78%, 0 22%); background: linear-gradient(160deg, #6f9400, #2f4300); }
/* the team (admins): a small gold crown before "Team", in the Hub and on cards (owner) */
.bdg.tier-team { display: inline-flex; align-items: center; gap: 0; padding: 2px 4px !important; border: 0 !important; border-radius: 999px !important; background: transparent !important; color: var(--fg) !important;
  font: 600 11.5px/1.2 var(--body) !important; letter-spacing: 0 !important; text-transform: none !important; cursor: default; transition: background-color .25s, gap .25s; outline: none; }
.bdg.tier-team .tt { max-width: 0; overflow: hidden; white-space: nowrap; opacity: 0; transition: max-width .35s cubic-bezier(.2, .8, .2, 1), opacity .25s; }
.bdg.tier-team:is(:hover, :focus-visible) { gap: 6px; padding-inline-end: 9px !important; background: rgba(240, 196, 58, .16) !important; }
.bdg.tier-team:is(:hover, :focus-visible) .tt { max-width: 160px; opacity: 1; }
.bdg.tier-team:is(:hover, :focus-visible) i { animation: crown-hop .5s cubic-bezier(.2, .9, .3, 1.4); }
@keyframes crown-hop { 40% { transform: translateY(-3px) rotate(-12deg); } }
.bdg.tier-team i { width: 15px !important; height: 12px !important; }
.bdg.tier-team i, .mc-tier .crown { width: 12px; height: 10px; flex: none; display: inline-block; vertical-align: -1px;
  clip-path: polygon(0 100%, 0 20%, 27% 55%, 50% 0, 73% 55%, 100% 20%, 100% 100%);
  background: linear-gradient(160deg, #fff4c2, #f0c43a 40%, #b07a06 75%, #ffe08a); filter: drop-shadow(0 1px 0 rgba(0, 0, 0, .35)); }
.mc-tier.t-team { display: inline-flex; align-items: center; gap: 5px; }
.mc-tier.t-team { background: rgba(240, 196, 58, .16) !important; color: #ffe7a0 !important; text-transform: none; font-family: var(--body, system-ui); font-size: 12px; letter-spacing: 0; }

/* Home's Rank & badges card (and any badge grid outside the dark member card): follow the page's theme */
.dbdg .bdx-n { color: var(--muted); }
.dbdg .bdx.sel .bdx-n { color: var(--fg); }
.dbdg .bdx:focus-visible { outline-color: var(--fg); }
.dbdg .mc-tip { color: var(--muted); }
.dbdg .mc-tip b { color: var(--fg); }
.dbdg .mc-tip .k { color: var(--muted); }
:root[data-theme="light"] .dbdg .bdx.locked .bdx-m { background: #dcdfe5; }
:root[data-theme="light"] .dbdg .bdx.locked .bdx-in { background: #eceef2; }
:root[data-theme="light"] .dbdg .bdx.locked .bdx-in svg { stroke: #a2a8b4; }
:root[data-theme="light"] .dbdg .bdx.locked .bdx-n { color: #6f7583; }
:root[data-theme="light"] .dbdg .bdx:not(.locked) .bdx-m { box-shadow: 0 4px 10px -4px rgba(0, 0, 0, .35); }
