/* RepLyfe card structure, adapted to Micup Lens and native Micup media. */
.directory-page .section-hero { padding-bottom: 36px; }
.directory-page .section-hero .section-icon { width: 48px; height: 48px; border-radius: 15px; }
.directory-page .section-hero .section-eyebrow { margin-top: 20px; }
.directory-page .section-hero h1 { font-size: clamp(36px, 5vw, 60px); }
.directory-page .section-hero .intro-copy { max-width: 56ch; }
.directory-live { display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; font-size: 12px; color: var(--muted); }
.directory-live::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--faint); }
.directory-live.is-live::before { background: var(--online); box-shadow: 0 0 12px #b0b0b030; }
.directory-icon { display: block; flex: 0 0 17px; width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.directory-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.directory-search { flex: 1; max-width: 360px; min-width: 220px; display: flex; align-items: center; gap: 10px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--cell); color: var(--muted); }
.directory-search:focus-within { border-color: var(--light); }
.directory-search input { min-width: 0; width: 100%; height: 46px; outline: none; border: 0; background: transparent; color: var(--text); font-size: 13px; }
.directory-search input::placeholder { color: var(--muted); }
.directory-sorts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.directory-sorts button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 15px; border: 1px solid var(--line-2); border-radius: 11px; color: var(--muted); font-size: 12px; font-weight: 600; transition: color 160ms, background 160ms, border-color 160ms; }
.directory-sorts button:hover { color: var(--text); border-color: #ffffff30; }
.directory-sorts button[aria-pressed="true"] { background: #f2f2f2; border-color: #f2f2f2; color: #191919; }
.directory-summary { display: flex; align-items: center; gap: 12px; min-height: 24px; margin-bottom: 18px; color: var(--muted); font-size: 12px; }
.directory-summary button { color: var(--text); text-decoration: underline; text-underline-offset: 4px; }
.directory-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); align-items: stretch; gap: 20px; }
.directory-card { min-width: 0; position: relative; display: flex; flex-direction: column; overflow: hidden; background: #161616; border: 1px solid #ffffff14; border-radius: 18px; box-shadow: 0 8px 28px #00000018; transition: border-color 220ms, box-shadow 220ms; }
.directory-card:hover, .directory-card:focus-within { border-color: #ffffff30; box-shadow: 0 16px 40px #00000035; }
.directory-cover { position: relative; height: 112px; flex-shrink: 0; overflow: hidden; background: linear-gradient(145deg, #272727, #252525 65%, #383838); }
.directory-cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, #16161645); }
.directory-cover img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease); }
.directory-card:hover .directory-cover img { transform: scale(1.04); }
.directory-card-content { display: flex; flex: 1; flex-direction: column; padding: 0 18px 18px; }
.directory-avatar { position: relative; display: grid; place-items: center; width: 72px; height: 72px; flex-shrink: 0; margin-top: -34px; margin-bottom: 12px; border: 5px solid #161616; background: #2e2e2e; color: #cecece; font-size: 22px; font-weight: 650; z-index: 1; overflow: hidden; }
.directory-avatar img, .rank-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.guild-avatar { border-radius: 21px; }
.user-avatar { border-radius: 50%; }
.directory-card-title, .rank-name { display: flex; align-items: center; gap: 8px; min-width: 0; }
.directory-card-title h2 { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font: 650 17px/1.4 var(--font-display); letter-spacing: -.025em; }
.directory-card-title h2 a:hover, .rank-name a:hover { text-decoration: underline; text-underline-offset: 4px; }
.directory-tag { display: inline-flex; flex-shrink: 0; align-items: center; gap: 4px; padding: 2px 5px; border-radius: 5px; background: #ffffff0b; color: #e4e4e4; font-size: 10px; font-weight: 700; letter-spacing: .02em; }
.directory-tag-icon { width: 16px; height: 16px; flex-shrink: 0; image-rendering: pixelated; --gt-k: #292431; --gt-d: color-mix(in srgb, var(--tag-color) 65%, #30243c); --gt-b: var(--tag-color); --gt-l: color-mix(in srgb, var(--tag-color) 55%, white); --gt-a: #f87171; --gt-w: #fff7ed; --gt-s: #a7804b; }
.tag-color-0 { --tag-color: #a78bfa; }.tag-color-1 { --tag-color: #60a5fa; }.tag-color-2 { --tag-color: #22d3ee; }.tag-color-3 { --tag-color: #4ade80; }.tag-color-4 { --tag-color: #facc15; }.tag-color-5 { --tag-color: #fb923c; }.tag-color-6 { --tag-color: #f87171; }.tag-color-7 { --tag-color: #f472b6; }
.guild-created, .directory-handle { margin-top: 5px; color: var(--muted); font-size: 11px; }
.directory-bio { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; min-height: 58px; margin: 14px 0 18px; color: var(--muted); font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.directory-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.directory-metric { display: flex; align-items: center; gap: 7px; min-width: 0; color: var(--muted); }
.directory-metric > span { min-width: 0; }
.directory-metric strong { display: block; color: var(--text); font-size: 13px; font-weight: 600; white-space: nowrap; }
.directory-metric small { display: block; margin-top: 2px; color: var(--muted); font-size: 10px; }
.directory-metric.online > svg { color: #afafaf; }.directory-metric.voice > svg { color: #a3a3a3; }.directory-metric.boost > svg { color: #acacac; }
.guild-card .directory-metric > svg { display: none; }
.guild-card .directory-metric.online strong::before { content: ''; display: inline-block; width: 5px; height: 5px; margin-right: 5px; vertical-align: 2px; border-radius: 50%; background: #afafaf; }
.directory-card-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 14px 0; color: var(--muted); font-size: 10px; }
.directory-card-meta > span { display: flex; align-items: center; gap: 5px; }.directory-card-meta svg { width: 13px; height: 13px; flex-basis: 13px; }
.guild-join, .directory-profile-link { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; margin-top: auto; border: 1px solid #a2a2a226; border-radius: 9px; background: #646464; color: #ffffff; font-size: 12px; font-weight: 600; transition: background 160ms; }
.guild-join:hover { background: #545454; }
.directory-profile-link { background: #ffffff08; border-color: #ffffff17; color: var(--text); }.directory-profile-link:hover { background: #ffffff12; }
.directory-ranking { display: grid; gap: 12px; }
.rank-card { display: flex; align-items: center; gap: 18px; min-width: 0; padding: 20px; border: 1px solid #ffffff12; border-radius: 18px; background: linear-gradient(120deg, #121212, #171717 60%, #121212); transition: border-color 180ms, background 180ms; }
.rank-card:hover, .rank-card:focus-within { border-color: #ffffff30; }
.directory-rank { display: grid; place-items: center; width: 42px; height: 42px; flex-shrink: 0; border: 1px solid #ffffff0a; border-radius: 12px; background: #ffffff05; color: #a2a2a2; font-size: 17px; font-weight: 700; }
.directory-rank.gold { color: #dadada; background: #afafaf16; border-color: #afafaf30; }.directory-rank.silver { color: #e1e1e1; background: #d4d4d410; border-color: #d4d4d425; }.directory-rank.bronze { color: #bdbdbd; background: #94949414; border-color: #94949430; }
.rank-avatar { position: relative; display: grid; place-items: center; width: 56px; height: 56px; flex-shrink: 0; overflow: hidden; border-radius: 16px; background: #292929; color: #c6c6c6; font-size: 19px; font-weight: 600; }
.rank-info { flex: 1; min-width: 0; }.rank-info > span { display: block; margin-top: 6px; color: var(--muted); font-size: 11px; }
.rank-name h2 { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 16px; font-weight: 650; }
.rank-card .directory-metrics { flex: 0 1 420px; grid-template-columns: repeat(4, minmax(65px, 1fr)); gap: 16px; }
.rank-open { display: grid; place-items: center; min-width: 36px; height: 40px; border-radius: 10px; color: var(--muted); }.rank-open:hover { background: #ffffff0b; color: var(--text); }
.directory-user-avatar { position: relative; align-self: flex-start; }.directory-user-avatar .directory-avatar { margin-bottom: 12px; }
.directory-presence { position: absolute; right: 2px; bottom: 13px; z-index: 2; width: 17px; height: 17px; border: 4px solid #161616; border-radius: 50%; background: #7c7c7c; }
.directory-presence.online { background: var(--online); }.directory-presence.idle { background: var(--panel); box-shadow: inset 0 0 0 3px var(--idle); }.directory-presence.dnd { background: var(--danger); }.directory-presence.unknown { background: var(--panel); box-shadow: 0 0 0 1px var(--muted) inset; }
.directory-presence.dnd::after { content: ''; position: absolute; left: 3px; right: 3px; top: 50%; height: 2px; margin-top: -1px; border-radius: 2px; background: var(--panel); }
.user-card-rank { position: absolute; top: 12px; left: 12px; padding: 3px 9px; border: 1px solid #ffffff18; border-radius: 7px; background: #0b0b0bb0; color: #f2f2f2; font-size: 11px; backdrop-filter: blur(10px); }
.user-card .directory-card-title h2 { font-size: 18px; }.directory-handle { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.directory-badges { display: flex; align-items: center; gap: 5px; min-height: 22px; margin-top: 10px; }.directory-badges img { display: block; width: 22px; height: 22px; object-fit: contain; }
.user-card-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: auto; }.user-card-stats > div { display: grid; grid-template-columns: 18px 1fr; gap: 3px 8px; padding: 10px; border: 1px solid #ffffff0b; border-radius: 11px; background: #ffffff02; }
.user-card-stats svg { grid-row: 1 / 3; align-self: center; color: #a3a3a3; }.user-card-stats strong { font-size: 14px; font-weight: 600; }.user-card-stats span { color: var(--muted); font-size: 10px; }
.directory-notice { max-width: 80ch; margin-top: 28px; color: var(--muted); font-size: 11px; line-height: 1.7; }
.directory-empty { grid-column: 1 / -1; display: grid; justify-items: center; gap: 12px; padding: 64px 24px; border: 1px dashed var(--line-2); border-radius: 18px; text-align: center; color: var(--muted); }.directory-empty h2 { color: var(--text); font-size: 20px; font-weight: 600; }.directory-empty p { font-size: 13px; }
.directory-pagination { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 32px; color: var(--muted); font-size: 12px; }.directory-pagination button { min-height: 44px; padding: 0 18px; border: 1px solid var(--line-2); border-radius: 10px; color: var(--text); background: var(--cell); }
/* The owner's homepage sponsor cards, including the original inline SVG icons. */
.sponsor-grid { display: flex; flex-wrap: wrap; justify-content: center; align-items: stretch; gap: 24px; width: 100%; max-width: 1400px; margin: 0 auto; padding: 8px 16px 0; }
.sponsor-shell { position: relative; display: flex; justify-content: center; flex: 0 0 calc(25% - 18px); max-width: calc(25% - 18px); min-width: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; }
.sponsor-card { position: relative; display: flex; flex-direction: column; width: 100%; overflow: hidden; border: 1px solid #3a3a3a14; border-radius: 16px; background: linear-gradient(135deg, rgba(8, 8, 8,.98), rgba(7, 7, 7,.95) 50%, rgba(8, 8, 8,.98)); box-shadow: 0 25px 50px -12px #00000080; backdrop-filter: blur(20px); transition: border-color .5s cubic-bezier(.4,0,.2,1), box-shadow .5s cubic-bezier(.4,0,.2,1); }
.sponsor-shell:hover .sponsor-card, .sponsor-shell:focus-within .sponsor-card { border-color: #3a3a3a40; box-shadow: 0 20px 60px #000000e6, 0 0 40px #3a3a3a14; }
.sponsor-banner { position: relative; height: 120px; flex-shrink: 0; overflow: hidden; background: linear-gradient(135deg, #151515, #080808); }
.sponsor-shell:nth-child(4n+1) .sponsor-banner, .sponsor-shell:nth-child(4n+4) .sponsor-banner { height: 130px; }
.sponsor-banner > img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 700ms cubic-bezier(.4,0,.2,1); }
.sponsor-shell:hover .sponsor-banner > img { transform: scale(1.25); }
.sponsor-banner::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, #000000, #00000099, transparent); }
.sponsor-status { position: absolute; top: 12px; right: 12px; z-index: 1; display: flex; align-items: center; gap: 4px; padding: 6px 12px; border-radius: 999px; background: #424242eb; color: #ffffff; font-size: 12px; font-weight: 700; backdrop-filter: blur(12px); }
.sponsor-status.is-live { background: #9b9b9be6; box-shadow: 0 10px 15px -3px #9b9b9b4d; }
.sponsor-status i { width: 8px; height: 8px; border-radius: 50%; background: #ffffff; }.sponsor-status.is-live i { animation: sponsor-pulse 2s cubic-bezier(.4,0,.6,1) infinite; }
.sponsor-content { position: relative; display: flex; flex: 1; flex-direction: column; padding: 24px; background: linear-gradient(to bottom, transparent, #00000088); }
.sponsor-avatar-wrap { position: relative; flex-shrink: 0; width: 96px; height: 96px; margin: -64px auto 20px; }
.sponsor-avatar-glow { position: absolute; inset: 0; border-radius: 50%; background: linear-gradient(135deg, #6868684d, #3636364d); opacity: .4; filter: blur(12px); animation: sponsor-pulse 2s cubic-bezier(.4,0,.6,1) infinite; }
.sponsor-avatar { position: relative; display: grid; place-items: center; width: 96px; height: 96px; overflow: hidden; border: 4px solid #32323266; border-radius: 50%; background: #0d0d0d; color: #b7b7b7; font-size: 26px; font-weight: 700; box-shadow: 0 25px 50px -12px #32323233; transition: transform 300ms; }
.sponsor-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }.sponsor-shell:hover .sponsor-avatar { transform: scale(1.1); }
.sponsor-avatar-check { position: absolute; bottom: -4px; right: -4px; display: grid; place-items: center; padding: 8px; border: 2px solid #000000; border-radius: 50%; background: linear-gradient(135deg, #686868, #3d3d3d); color: #ffffff; box-shadow: 0 10px 15px -3px #00000033; }.sponsor-avatar-check svg { width: 16px; height: 16px; }
.sponsor-name { margin: 0 0 16px; color: #ffffff; text-align: center; font-size: 24px; line-height: 1.3333; font-weight: 900; overflow-wrap: anywhere; }.sponsor-name a { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }.sponsor-shell:hover .sponsor-name { color: #d5d5d5; }
.sponsor-clan { display: flex; justify-content: center; margin: -8px 0 16px; }.sponsor-clan .directory-tag { border: 1px solid #ffffff12; padding: 4px 8px; }
.sponsor-stats { display: flex; justify-content: center; align-items: center; gap: 20px; margin-bottom: 20px; }
.sponsor-stat { flex-shrink: 0; text-align: center; }.sponsor-stat-icon { display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; margin: 0 auto 4px; color: #8e8e8e; }.sponsor-stat-icon svg { width: 20px; height: 20px; }.sponsor-stat.online .sponsor-stat-icon { color: #adadad; }.sponsor-stat.online svg { width: 16px; height: 16px; }.sponsor-stat.voice .sponsor-stat-icon { color: #afafaf; }
.sponsor-stat strong { display: block; color: #ffffff; font-size: 20px; line-height: 1.4; font-weight: 900; }.sponsor-stat > span:last-child { display: block; color: #ffffffb3; font-size: 12px; font-weight: 500; }.sponsor-stat-divider { width: 1px; height: 56px; flex-shrink: 0; background: #3232324d; }
.sponsor-join { position: relative; display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 56px; margin-top: auto; padding: 16px 20px; overflow: hidden; border-radius: 16px; background: linear-gradient(to right, #3d3d3d, #363636, #323232); color: #ffffff; font-size: 16px; font-weight: 700; box-shadow: 0 20px 25px -5px #00000066; transition: transform .5s, box-shadow .5s, filter .5s; }
.sponsor-join::before { content: ''; position: absolute; inset: 0; transform: translateX(-110%) skewX(-12deg); background: linear-gradient(to right, transparent, #ffffff33, transparent); transition: transform .7s; }.sponsor-join:hover::before { transform: translateX(110%) skewX(-12deg); }.sponsor-join svg { flex: 0 0 20px; width: 20px; height: 20px; transition: transform .3s; }.sponsor-join:hover { transform: scale(1.05); filter: brightness(1.15); box-shadow: 0 25px 50px -12px #3232324d; }.sponsor-join:hover svg { transform: rotate(12deg); }.sponsor-join span { position: relative; }
.sponsor-rank { position: absolute; top: -8px; left: -8px; z-index: 2; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 16px; background: linear-gradient(135deg, #3636364d, #3232324d); color: #ffffff; font-size: 18px; font-weight: 900; box-shadow: 0 25px 50px -12px #00000088; transform: rotate(-10deg); transition: transform .3s; }.sponsor-shell:hover .sponsor-rank { transform: rotate(0) scale(1.1); }
.sponsor-rank.gold, .sponsor-rank.silver, .sponsor-rank.bronze { width: 56px; height: 56px; border-radius: 50%; }.sponsor-rank.gold { background: linear-gradient(145deg, #d0d0d0, #bababa 50%, #a1a1a1); color: #3f3f3f; box-shadow: 0 4px 20px #d0d0d080; }.sponsor-rank.silver { background: linear-gradient(145deg, #e8e8e8, #c0c0c0 50%, #a8a8a8); color: #3a3a3a; box-shadow: 0 4px 20px #c0c0c080; }.sponsor-rank.bronze { background: linear-gradient(145deg, #8a8a8a, #7d7d7d 50%, #606060); color: #242424; box-shadow: 0 4px 20px #8a8a8a80; }
@keyframes sponsor-pulse { 50% { opacity: .5; } }
@media (max-width: 1280px) { .sponsor-shell { flex-basis: calc(33.333% - 16px); max-width: calc(33.333% - 16px); } }
@media (max-width: 1024px) { .sponsor-shell { flex-basis: calc(50% - 12px); max-width: calc(50% - 12px); } }
@media (max-width: 640px) { .sponsor-shell { flex-basis: 100%; max-width: 380px; }.sponsor-grid { padding-inline: 8px; } }
@media (prefers-reduced-motion: reduce) { .sponsor-avatar-glow { animation: none; }.sponsor-status.is-live i { animation: none; }.sponsor-shell:hover .sponsor-banner > img, .sponsor-shell:hover .sponsor-avatar, .sponsor-join:hover { transform: none; } }
/* User cards share the sponsor structure with the Lens palette. */
.user-shell { font-family: var(--font); }
.user-shell .sponsor-card { border-color: var(--line-2); background: linear-gradient(155deg, var(--cell), var(--panel) 65%); box-shadow: 0 12px 32px #00000030; backdrop-filter: none; }
.user-shell:hover .sponsor-card, .user-shell:focus-within .sponsor-card { border-color: color-mix(in srgb, var(--accent) 40%, transparent); box-shadow: 0 20px 48px #00000055, 0 0 24px #a3a3a309; }
.user-shell .sponsor-banner { background: radial-gradient(ellipse at 50% 0, #a3a3a31c, transparent 75%), linear-gradient(135deg, var(--raised), var(--panel)); }
.user-shell .sponsor-banner::after { background: linear-gradient(to top, var(--panel), #12121240 55%, transparent); }
.user-shell .sponsor-content { background: none; }
.user-shell .sponsor-avatar-glow { background: var(--accent); opacity: .12; filter: blur(16px); animation: none; }
.user-shell .sponsor-avatar { border-color: var(--panel); background: var(--raised); color: var(--text-2); font-weight: 650; box-shadow: 0 0 0 1px #a3a3a330, 0 10px 24px #00000040; }
.user-shell .directory-presence { right: -1px; bottom: -2px; width: 23px; height: 23px; border-width: 5px; border-color: var(--panel); }
.user-shell .directory-presence.unknown { background: var(--panel); }
.user-card-status { position: absolute; top: 12px; right: 12px; z-index: 1; display: flex; align-items: center; gap: 7px; max-width: calc(100% - 72px); padding: 6px 10px; border: 1px solid var(--line-2); border-radius: var(--r-pill); background: #121212e6; color: var(--text-2); font-size: 11px; font-weight: 500; }
.user-status-dot { width: 6px; height: 6px; flex-shrink: 0; border-radius: 50%; background: var(--muted); }.user-status-dot.online { background: var(--online); }.user-status-dot.idle { background: var(--idle); }.user-status-dot.dnd { background: var(--danger); }.user-status-dot.unknown { background: transparent; box-shadow: 0 0 0 1px var(--muted) inset; }
.user-shell .sponsor-name { margin-bottom: 5px; color: var(--text); font-family: var(--font-display); font-size: 22px; font-weight: 650; letter-spacing: -.025em; }
.user-shell:hover .sponsor-name { color: var(--text); }
.user-shell .directory-handle { margin: 0 0 12px; color: var(--muted); text-align: center; font-size: 12px; }
.user-shell .sponsor-clan { margin: 0 0 10px; }
.user-shell .directory-badges { justify-content: center; gap: 6px; margin-top: 0; }
.user-shell .directory-bio { margin: 14px 0 20px; color: var(--muted); text-align: center; }
.user-shell .sponsor-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: auto 0 24px; }
.user-shell .sponsor-stat { min-width: 0; padding: 0 7px; }.user-shell .sponsor-stat + .sponsor-stat { border-left: 1px solid var(--line-2); }
.user-shell .sponsor-stat-icon { color: var(--accent); }.user-shell .sponsor-stat-icon svg { width: 19px; height: 19px; }
.user-shell .sponsor-stat strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); font-size: 17px; font-weight: 650; line-height: 1.6; }
.user-shell .sponsor-stat > span:last-child { color: var(--muted); font-size: 10px; font-weight: 400; }
.user-profile-action { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 48px; margin-top: auto; padding: 12px 16px; border: 1px solid #ffffff35; border-radius: 12px; background: var(--light); color: var(--on-light); font-size: 13px; font-weight: 650; box-shadow: 0 1px 0 #ffffff70 inset, 0 4px 12px #00000020; transition: background var(--fast) var(--ease), transform var(--fast) var(--ease); }
.user-profile-action:hover { background: var(--light-hover); transform: translateY(-1px); }
.user-shell .sponsor-rank { width: 48px; height: 48px; border: 1px solid var(--line-2); background: var(--raised); color: var(--text-2); box-shadow: 0 8px 24px #00000050; font-weight: 650; }
.user-shell .sponsor-rank.is-leading { width: 56px; height: 56px; border-radius: 50%; border-color: #a3a3a340; background: linear-gradient(145deg, #323232, #1d1d1d); color: var(--accent); box-shadow: 0 4px 20px #a3a3a31c; }
@media (prefers-reduced-motion: reduce) { .user-profile-action:hover, .user-shell .sponsor-rank, .user-shell:hover .sponsor-rank { transform: none; } }
/* Stable ranking rows, centered controls and opaque, saturated statistic art. */
.ranking-page .directory-tools { justify-content: center; margin: 4px auto 26px; }
.ranking-page .directory-sorts { justify-content: center; gap: 10px; padding: 8px; border: 1px solid #ffffff17; border-radius: 20px; background: linear-gradient(160deg, #282828, #141414 55%, #1e1e1e); box-shadow: 0 1px 0 #ffffff10 inset, 0 12px 28px #00000035; }
.ranking-page .directory-sorts button { position: relative; gap: 10px; min-height: 52px; padding: 0 22px; border-color: transparent; border-radius: 13px; background: #191919; color: #d5d5d5; font-size: 13px; box-shadow: 0 1px 0 #ffffff0a inset; transition: transform 240ms var(--ease), background 240ms, color 240ms, box-shadow 240ms; }
.ranking-page .directory-sorts button > svg { width: 21px; height: 21px; flex: 0 0 21px; color: #a3a3a3; }
.ranking-page .directory-sorts button[data-sort="members"] > svg { color: #a1a1a1; }.ranking-page .directory-sorts button[data-sort="online"] > svg { color: #b2b2b2; }.ranking-page .directory-sorts button[data-sort="boost"] > svg { color: #a2a2a2; }
.ranking-page .directory-sorts button:hover { transform: translateY(-2px); background: #2a2a2a; color: #ffffff; }
.ranking-page .directory-sorts button[aria-pressed="true"] { border-color: #ffffffa0; background: linear-gradient(145deg, #ffffff, #cfcfcf); color: #191919; box-shadow: 0 1px 0 #ffffff inset, 0 5px 20px #a3a3a324; }
.ranking-page .directory-sorts button[aria-pressed="true"] > svg { color: #4b4b4b; }
.ranking-page .directory-sorts button:active { transform: translateY(1px) scale(.95); box-shadow: 0 2px 5px #00000030 inset; }
.rank-card { position: relative; padding: 22px; background: linear-gradient(135deg, #292929, #171717 38%, #1e1e1e 85%, #303030); border-color: #ffffff1c; box-shadow: 0 1px 0 #ffffff12 inset, 0 12px 25px #00000022; }
.directory-rank { width: 50px; height: 50px; flex-basis: 50px; background: linear-gradient(145deg, #787878, #424242); border-color: #bbbbbb70; color: #ffffff; font-size: 21px; font-weight: 800; box-shadow: 0 1px 0 #ffffff40 inset, 0 5px 16px #00000040; }
.directory-rank.gold { border-radius: 50%; color: #323232; background: linear-gradient(145deg, #e6e6e6, #bbbbbb 60%, #939393); border-color: #e6e6e6; box-shadow: 0 1px 0 #f4f4f4 inset, 0 4px 20px #a8a8a835; }
.directory-rank.silver { border-radius: 50%; color: #333333; background: linear-gradient(145deg, #ffffff, #c1c1c1 60%, #8e8e8e); border-color: #e8e8e8; box-shadow: 0 1px 0 #ffffff inset, 0 4px 20px #adadad30; }
.directory-rank.bronze { border-radius: 50%; color: #292929; background: linear-gradient(145deg, #cacaca, #989898 60%, #676767); border-color: #bbbbbb; box-shadow: 0 1px 0 #e5e5e5 inset, 0 4px 20px #92929230; }
.rank-card .directory-metrics { flex-basis: 490px; gap: 16px; }
.rank-card .directory-metric { gap: 9px; }.rank-card .directory-metric strong { font-size: 15px; font-weight: 700; }.rank-card .directory-metric small { font-size: 10px; }
.rank-stat-icon { display: grid; place-items: center; flex: 0 0 36px; width: 36px; height: 36px; border: 1px solid #ffffff25; border-radius: 11px; background: #373737; color: #a1a1a1; box-shadow: 0 1px 0 #ffffff18 inset, 0 5px 12px #00000030; }
.rank-stat-icon svg { display: block; width: 25px; height: 25px; overflow: visible; }.rank-stat-icon.online { color: #c2c2c2; background: #424242; }.rank-stat-icon.voice { color: #afafaf; background: #2c2c2c; }.rank-stat-icon.boost { color: #acacac; background: #303030; }
.rank-name { gap: 10px; }.rank-tag { display: inline-flex; flex-shrink: 0; }.rank-tag:empty { display: none; }
.sponsor-rank { background: linear-gradient(145deg, #6f6f6f, #404040); color: #ffffff; border: 1px solid #c5c5c575; }
.sponsor-stats { gap: 12px; }.sponsor-stat-icon { width: 32px; height: 32px; margin-bottom: 6px; }.sponsor-stat-icon svg { width: 28px; height: 28px; }.sponsor-stat.online svg { width: 25px; height: 25px; }.sponsor-stat strong { font-size: 22px; }
@media (max-width: 960px) { .rank-card .directory-metrics { flex-basis: 100%; padding: 18px 0 0; justify-items: center; } }
@media (max-width: 600px) { .ranking-page .directory-sorts { width: 100%; gap: 6px; padding: 6px; }.ranking-page .directory-sorts button { flex: 1 1 calc(50% - 6px); min-height: 48px; padding: 0 12px; }.rank-card .directory-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; justify-items: start; }.rank-stat-icon { width: 34px; height: 34px; flex-basis: 34px; }.rank-card .directory-metric strong { font-size: 14px; } }
@media (prefers-reduced-motion: reduce) { .ranking-page .directory-sorts button:hover, .ranking-page .directory-sorts button:active { transform: none; } }
@media (max-width: 960px) {
  .rank-card { flex-wrap: wrap; gap: 14px; }.rank-card .directory-metrics { flex-basis: 100%; padding: 18px 0 0; border-top: 1px solid var(--line); }.rank-info { flex-basis: calc(100% - 170px); }.rank-open { display: none; }
}
@media (max-width: 600px) {
  .directory-tools { gap: 12px; }.directory-search { max-width: none; width: 100%; flex-basis: 100%; }.directory-sorts { width: 100%; gap: 5px; }.directory-sorts button { flex: 1; padding: 0 10px; gap: 5px; }.directory-sorts .directory-icon { width: 14px; height: 14px; flex-basis: 14px; }
  .directory-grid { gap: 16px; }.rank-card { padding: 16px; gap: 12px; }.directory-rank { width: 32px; height: 32px; font-size: 14px; border-radius: 9px; }.rank-avatar { width: 44px; height: 44px; border-radius: 13px; }.rank-info { flex-basis: calc(100% - 104px); }.rank-name { flex-wrap: wrap; gap: 4px; }.rank-name h2 { max-width: 100%; font-size: 14px; }.rank-info > span { font-size: 10px; }.rank-card .directory-metrics { padding-left: 0; gap: 16px 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); justify-items: start; }.rank-card .directory-metric { gap: 5px; }.rank-card .directory-metric > svg { display: none; }.directory-metric strong { font-size: 12px; }
}

/* Interface glyphs all use the same white enamel and black frame. */
.rank-stat-icon, .rank-stat-icon.online, .rank-stat-icon.voice, .rank-stat-icon.boost, .sponsor-shell .sponsor-stat .sponsor-stat-icon { color:var(--icon-face); background:var(--icon-surface); border:2px solid var(--icon-frame); border-radius:10px; box-shadow:0 1px 0 #ffffff28 inset,0 0 0 1px #ffffff12,0 3px 8px #0006; }
.sponsor-shell .sponsor-stat .sponsor-stat-icon { display:grid;place-items:center;width:36px;height:36px; }
.sponsor-shell .sponsor-stat .sponsor-stat-icon svg { width:24px;height:24px; }
.rank-stat-icon svg { width:24px;height:24px;filter:drop-shadow(0 1px 0 #000); }
.ranking-page .directory-sorts button > svg, .ranking-page .directory-sorts button[data-sort] > svg, .ranking-page .directory-sorts button[aria-pressed=true] > svg { color:var(--icon-face);background:var(--icon-surface);border:1px solid var(--icon-frame);border-radius:7px;padding:4px;width:28px;height:28px;flex-basis:28px;box-shadow:0 1px 0 #ffffff20 inset; }

/* Crisp monochrome: deep blacks, full white type and bright silver edges. */
.sponsor-shell .sponsor-card { background:linear-gradient(145deg,#111111,#060606 62%,#0c0c0c);border-color:#ffffff30;box-shadow:0 1px 0 #ffffff12 inset,0 16px 38px #0009; }
.user-shell .sponsor-card { background:linear-gradient(145deg,#111111,#060606 62%,#0c0c0c);border-color:#ffffff30; }
.user-shell:hover .sponsor-card,.user-shell:focus-within .sponsor-card { border-color:#ffffff70;box-shadow:0 1px 0 #ffffff20 inset,0 22px 50px #000a; }
.user-shell .sponsor-banner { background:radial-gradient(ellipse at 50% -40%,#ffffff20,transparent 70%),linear-gradient(135deg,#171717,#050505); }
.user-shell .sponsor-banner::after { background:linear-gradient(to top,#080808,#08080840 55%,transparent); }
.user-shell .sponsor-avatar-glow { background:#ffffff;opacity:.08; }
.user-shell .sponsor-avatar { border-color:#080808;box-shadow:0 0 0 1px #ffffff60,0 10px 24px #0008; }
.user-shell .sponsor-name { color:#ffffff;font-weight:750; }
.user-shell .directory-handle { color:#bdbdbd; }
.user-card-status { background:#050505ed;border-color:#ffffff35;color:#ededed; }
.user-shell .directory-bio { white-space:pre-wrap;-webkit-line-clamp:4;min-height:77px;color:#d1d1d1; }
.directory-bio .inline-emoji { display:inline-block;width:22px;height:22px;object-fit:contain;vertical-align:-6px; }
.directory-bio .rich-link { color:#ffffff;font-weight:600;text-decoration:underline;text-underline-offset:3px;text-decoration-color:#ffffff70; }
.directory-bio .rich-link:hover { text-decoration-color:#ffffff; }
.user-shell .sponsor-stat strong { color:#ffffff;font-size:20px;font-weight:750; }
.user-shell .sponsor-stat > span:last-child { color:#c1c1c1; }
.user-profile-action { background:linear-gradient(120deg,#ffffff,#e0e0e0 60%,#f8f8f8);border-color:#ffffffb3;color:#080808;font-weight:750;box-shadow:0 1px 0 #fff inset,0 5px 18px #0007; }
.user-profile-action:hover { background:#ffffff; }
.user-shell .sponsor-rank { background:linear-gradient(145deg,#242424,#080808);border-color:#ffffff60;color:#ffffff; }
.user-shell .sponsor-rank.is-leading { background:linear-gradient(145deg,#ffffff,#bebebe 65%,#ededed);border-color:#ffffff;color:#080808;box-shadow:0 1px 0 #ffffff inset,0 8px 20px #0007; }
.rank-card { background:linear-gradient(135deg,#151515,#080808 50%,#101010);border-color:#ffffff29; }
.ranking-page .directory-sorts { background:linear-gradient(160deg,#171717,#080808 60%);border-color:#ffffff30; }
.ranking-page .directory-sorts button { background:#111111;color:#e4e4e4; }
.ranking-page .directory-sorts button:hover { background:#252525; }
.ranking-page .directory-sorts button[aria-pressed=true] { background:linear-gradient(120deg,#ffffff,#dddddd);border-color:#ffffff;color:#080808; }

.sponsor-banner-link, .sponsor-shell:not(.user-shell) .sponsor-avatar-wrap { display:block; }
.sponsor-external { align-self:center;margin-top:12px;color:#c8c8c8;font-size:11px; }.sponsor-external:hover { color:#ffffff;text-decoration:underline; }.user-shell a.sponsor-stat:hover strong { text-decoration:underline; text-underline-offset:3px; }

/* Native guild banners sit beneath the ranking content and its contrast veil. */
.rank-card{position:relative;isolation:isolate;overflow:hidden}.rank-banner{position:absolute;inset:0;z-index:-1;pointer-events:none;border-radius:inherit;overflow:hidden}.rank-banner img{width:100%;height:100%;display:block;object-fit:cover;object-position:center;opacity:.34}.rank-banner:has(img):after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,#070707ee 0%,#070707c7 40%,#070707e8 100%)}.rank-card:has(.rank-banner img) .rank-name,.rank-card:has(.rank-banner img) .directory-metrics{text-shadow:0 1px 8px #000}.rank-card:has(.rank-banner img) .rank-caption{color:#d0d2d9}

.rank-stat-icon>img,.sponsor-stat-icon>img{display:block;width:27px;height:27px;object-fit:contain}.rank-stat-icon:has(img),.sponsor-shell .sponsor-stat-icon:has(img){background:#101012;border-color:#ffffff15;box-shadow:0 2px 7px #0005}.rank-card:has(.rank-banner img){background:#0d0d0f}

.ranking-page .directory-sorts button>img{width:24px;height:24px;object-fit:contain;flex-shrink:0}
.ranking-page .directory-sorts{flex-wrap:wrap}.rank-card .directory-metrics{flex-basis:640px;grid-template-columns:repeat(5,minmax(64px,1fr)) minmax(108px,1.3fr);gap:12px}.directory-metric.tag strong{font-size:15px}.directory-metric.tag{gap:8px}.rank-native-tag{display:inline-flex;align-items:center;flex-shrink:0}.rank-native-tag .directory-tag{font-size:10px;padding:4px 5px}.rank-tag-empty{color:var(--muted,#999);padding:0 6px}.directory-metric.stream .rank-stat-icon{background:#171717}.directory-metric.stream .rank-stat-icon img{width:25px;height:25px;object-fit:contain}.directory-metric.tag small{white-space:normal}@media(max-width:1099px){.rank-card .directory-metrics{grid-template-columns:repeat(3,minmax(60px,1fr));gap:14px 12px;flex-basis:100%}.rank-card{flex-wrap:wrap;align-items:center}.rank-info{flex-basis:calc(100% - 180px)}}@media(max-width:540px){.rank-card .directory-metrics{grid-template-columns:repeat(3,minmax(55px,1fr))}.directory-sorts button{font-size:12px}.rank-card .directory-metric.tag{grid-column:span 1;gap:5px;flex-wrap:wrap}.rank-native-tag .directory-tag{font-size:9px;padding:3px 4px}.rank-native-tag .directory-tag-icon{width:13px;height:13px}.directory-metric.tag small{font-size:9px}}

.ranking-page .directory-sorts button[data-sort="stream"][aria-pressed="true"]>img{filter:brightness(0)}
.rank-stream-icon{display:grid;place-items:center;flex:0 0 36px;width:36px;height:36px;border:0;border-radius:0;padding:0;background:none;box-shadow:none}
.rank-stream-icon>img,.ranking-page .directory-sorts button[data-sort="stream"]>img{display:block;width:30px;height:28px;object-fit:contain;flex-shrink:0}

.user-ranking-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px; margin: 24px auto 0; }
.user-ranking-bar .directory-sorts { width: auto; justify-content: center; padding: 6px; border: 1px solid var(--line-2); border-radius: 16px; background: #141414; }
.user-ranking-bar .directory-live { margin: 0; white-space: nowrap; }
.directory-loading { display: grid; place-items: center; min-height: 72px; }
.directory-loading[hidden] { display: none; }
.directory-loading span { width: 26px; height: 26px; border: 2px solid #ffffff32; border-top-color: #fff; border-radius: 50%; animation: directory-spin 650ms linear infinite; }
@keyframes directory-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .directory-loading span { animation: none; } }
