/* Wallet prestige shares the Workshop's mint, pink and lilac palette. */
.up-level-badge{display:block;width:76px;height:76px;flex:none;overflow:visible;filter:drop-shadow(0 4px 8px #08061066)}
.up-level-badge.is-compact{width:28px;height:28px;filter:none}
.up-level-badge.is-apex{filter:drop-shadow(0 0 7px #f29bcb40)}
.up-level-badge.is-final{filter:drop-shadow(0 0 9px #a5dfca55)}
.wallet-profile-page{--up-mint:#a5dfca;--up-pink:#f29bcb;--up-lilac:#c3aff2;--up-line:#dad1ed20;--up-muted:#bcb5cb;max-width:1240px;margin-inline:auto;font-size:16px;color:#f4eff6;padding-bottom:40px}
.wallet-profile-page *{box-sizing:border-box}
.wallet-profile-page p,.wallet-profile-page small,.wallet-profile-page button,.wallet-profile-page a,.wallet-profile-page dt,.wallet-profile-page span{font-size:16px}
.wallet-profile-page h1,.wallet-profile-page h2{font-family:inherit;letter-spacing:-.035em;color:#f4eff6}
.wallet-profile-page h2{font-size:23px;margin:0 0 20px}
.wallet-profile-page a{color:var(--up-mint);text-decoration:none}
.wallet-profile-page button{font-family:inherit;cursor:pointer}
.wallet-profile-page a:focus-visible,.wallet-profile-page button:focus-visible,.wallet-profile-page summary:focus-visible{outline:2px solid var(--up-pink);outline-offset:4px}
.up-profile-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 28px}
.up-profile-toolbar>div{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px}
.up-profile-toolbar button{color:#d7cedf;border:1px solid var(--up-line);background:#242030;border-radius:10px;min-height:44px;padding:10px 16px}
.up-profile-toolbar>a{min-height:44px;display:flex;align-items:center;white-space:nowrap}
.up-profile-hero{display:grid;grid-template-columns:160px minmax(0,1fr) 255px;gap:30px;align-items:center;padding:32px;border:1px solid #d3b9ec30;border-radius:24px;background:radial-gradient(ellipse at 0 0,#f29bcb17,transparent 65%),linear-gradient(120deg,#262030,#1b1c2a)}
.up-profile-portrait{display:grid;place-items:center;aspect-ratio:1;border:1px solid #e3b2df35;border-radius:20px;background:radial-gradient(circle,#c3aff21e,transparent 75%);overflow:hidden}
.up-profile-portrait img{display:block;width:100%;height:100%;object-fit:contain}
.up-profile-portrait.is-empty .up-level-badge{width:100px;height:100px}
.up-profile-identity{min-width:0}
.up-eyebrow{display:block;font-weight:750;color:var(--up-pink);letter-spacing:1.1px}
.up-profile-identity h1{font-size:clamp(30px,4vw,46px);line-height:1.15;margin:10px 0 14px}
.up-profile-address{line-height:1.65;color:var(--up-muted);overflow-wrap:anywhere;margin:0;font-variant-numeric:tabular-nums}
.up-profile-links{display:flex;flex-wrap:wrap;gap:10px 24px;margin-top:14px}
.up-profile-links a{display:flex;align-items:center;min-height:44px}
.up-profile-level{border:1px solid #c3aff22a;background:#17152380;border-radius:18px;padding:20px;min-width:0}
.up-profile-level-heading{display:flex;align-items:center;gap:12px;margin-bottom:20px}
.up-profile-level-heading>div{display:flex;flex-direction:column;gap:4px}
.up-profile-level-heading>div>span{letter-spacing:1.6px;color:var(--up-muted)}
.up-profile-level-heading strong{font-size:46px;line-height:1;letter-spacing:-2px;color:#f3e7f6;font-weight:650}
.up-profile-level-heading .up-level-cap{align-self:flex-end;color:var(--up-muted);padding-bottom:4px;white-space:nowrap}
.up-profile-level progress{display:block;width:100%;height:8px;appearance:none;border:0;background:#403349;border-radius:20px;overflow:hidden;accent-color:var(--up-mint)}
.up-profile-level progress::-webkit-progress-bar{background:#403349;border-radius:20px}
.up-profile-level progress::-webkit-progress-value{background:linear-gradient(90deg,var(--up-lilac),var(--up-mint));border-radius:20px}
.up-profile-level progress::-moz-progress-bar{background:linear-gradient(90deg,var(--up-lilac),var(--up-mint));border-radius:20px}
.up-xp-label{display:flex;justify-content:space-between;gap:12px;margin-top:12px;color:var(--up-muted);font-variant-numeric:tabular-nums}
.up-xp-label strong{font-size:16px;color:var(--up-mint)}
.up-profile-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:24px 0}
.up-metric{padding:22px;border:1px solid var(--up-line);border-radius:18px;background:linear-gradient(145deg,#262131,#1b1b29);min-width:0}
.up-metric-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:12px;background:#c3aff212;color:var(--up-lilac);font-size:26px!important;margin-bottom:16px}
.up-metric:nth-child(2) .up-metric-icon{color:var(--up-mint);background:#a5dfca12}
.up-metric:nth-child(3) .up-metric-icon{color:var(--up-pink);background:#f29bcb12}
.up-metric dl{margin:0}.up-metric dt{color:var(--up-muted);line-height:1.4}.up-metric dd{font-size:clamp(23px,2.4vw,31px);margin:10px 0 0;font-variant-numeric:tabular-nums;letter-spacing:-.04em;overflow-wrap:anywhere;font-weight:650}
.up-metric p{margin:12px 0 0;color:var(--up-muted);line-height:1.6}
.up-profile-record{display:grid;grid-template-columns:1fr 1fr;gap:20px}
.up-profile-panel{padding:26px;border:1px solid var(--up-line);border-radius:18px;background:#1d1b29;min-width:0}
.up-rarities{list-style:none;padding:0;margin:0;display:grid;gap:15px}
.up-rarities li{display:flex;align-items:center;gap:12px;font-size:16px;color:var(--up-muted)}
.up-rarities i{width:10px;height:10px;border-radius:50%;background:var(--up-rarity);box-shadow:0 0 10px color-mix(in srgb,var(--up-rarity) 25%,transparent)}
.up-rarities strong{margin-left:auto;color:#f4eff6;font-size:18px;font-variant-numeric:tabular-nums}
.up-rarity-common{--up-rarity:#b8b3bf}.up-rarity-uncommon{--up-rarity:#a5dfca}.up-rarity-rare{--up-rarity:#97b8ed}.up-rarity-epic{--up-rarity:#c3aff2}.up-rarity-legendary{--up-rarity:#ffad5c}
.up-rarities li>span{color:var(--up-rarity)}
.up-featured{display:flex;flex-direction:column}.up-featured-heading{display:flex;align-items:center;gap:16px;margin:12px 0 24px}.up-featured-heading>div{flex:1;min-width:0}.up-featured h2{margin:0 0 10px;overflow-wrap:anywhere}.up-featured h2 a{font-size:26px;color:#f4eff6}.up-featured-rarity{color:var(--up-rarity);margin:0;text-transform:capitalize;font-weight:650}.up-featured-art{display:block;flex:0 0 clamp(80px,12vw,120px);border-radius:16px;background:radial-gradient(circle,#c3aff21e,transparent 75%)}.up-featured-art img{display:block;width:100%;height:auto;aspect-ratio:1;object-fit:contain}
.up-featured-stats{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin:auto 0 0;padding-top:20px;border-top:1px solid var(--up-line)}
.up-featured-stats dt{color:var(--up-muted)}.up-featured-stats dd{font-size:24px;margin:6px 0 0;font-variant-numeric:tabular-nums}
.up-no-herd{display:flex;flex-direction:column;justify-content:center;align-items:flex-start}.up-no-herd p{color:var(--up-muted);line-height:1.6;margin:0 0 20px}
.up-level-guide{border:1px solid var(--up-line);border-radius:16px;padding:0 24px;margin-top:24px;background:#1d1b29}
.up-level-guide summary{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:64px;list-style:none;cursor:pointer;font-size:17px;color:#ddd2e5}.up-level-guide summary::-webkit-details-marker{display:none}.up-level-guide[open] summary>span{transform:rotate(45deg)}
.up-level-guide p{max-width:650px;line-height:1.7;color:var(--up-muted);margin:0 0 18px}.up-level-guide strong{color:#eee4f3}
.up-badge-preview{display:flex;flex-wrap:wrap;gap:24px 30px;margin:24px 0}.up-badge-preview>div{display:flex;flex-direction:column;align-items:center;gap:10px;color:var(--up-muted)}.up-badge-preview .up-level-badge{width:64px;height:64px}
.up-profile-state{padding:70px 24px;text-align:center}.up-profile-state h1{font-size:32px}.up-profile-state p{color:var(--up-muted);line-height:1.6;margin-bottom:24px}
@media(max-width:950px){.up-profile-hero{grid-template-columns:120px minmax(0,1fr) 220px;gap:22px;padding:24px}.up-profile-level{padding:16px}.up-profile-level-heading{gap:8px}.up-profile-level-heading .up-level-badge{width:62px;height:62px}.up-profile-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.up-metric dd{font-size:28px}}
@media(max-width:650px){.up-profile-toolbar{align-items:flex-start;gap:12px;margin-bottom:18px}.up-profile-toolbar>div{gap:6px}.up-profile-toolbar button{padding:10px 12px}.up-profile-hero{grid-template-columns:80px minmax(0,1fr);gap:18px;padding:20px;border-radius:20px}.up-profile-identity h1{font-size:29px;margin:8px 0 10px}.up-profile-portrait{border-radius:14px}.up-profile-portrait.is-empty .up-level-badge{width:64px;height:64px}.up-profile-identity .up-eyebrow{letter-spacing:.5px}.up-profile-level{grid-column:1/-1;display:grid;grid-template-columns:auto minmax(0,1fr);gap:4px 18px;align-items:center}.up-profile-level-heading{grid-row:1/3;margin:0;gap:8px}.up-profile-level-heading strong{font-size:38px}.up-profile-level-heading .up-level-badge{width:58px;height:58px}.up-profile-level-heading .up-level-cap{display:none}.up-profile-level progress{align-self:end}.up-xp-label{margin-top:4px;align-self:start}.up-profile-links{gap:4px 16px;margin-top:8px}.up-profile-metrics{gap:12px;margin:18px 0}.up-metric{padding:16px}.up-metric dd{font-size:25px}.up-profile-record{grid-template-columns:1fr;gap:16px}.up-profile-panel{padding:22px}.up-profile-level-heading>div>span{letter-spacing:.7px}.up-level-guide{padding:0 20px}.up-badge-preview{justify-content:space-between;gap:20px 12px}.up-badge-preview .up-level-badge{width:56px;height:56px}}
@media(max-width:360px){.up-profile-hero{grid-template-columns:64px minmax(0,1fr);gap:14px;padding:16px}.up-profile-level{gap:4px 12px;padding:14px}.up-profile-level-heading .up-level-badge{width:42px;height:42px}.up-profile-level-heading strong{font-size:32px}.up-profile-identity h1{font-size:27px}.up-profile-toolbar{flex-wrap:wrap}.up-profile-toolbar>div{width:100%;justify-content:space-between}.up-metric{padding:14px}.up-metric dd{font-size:23px}}
/* A connected wallet opens its public profile; management lives on that page. */
#wallet-button[hidden],#wallet-profile-link[hidden]{display:none!important}
#wallet-profile-link{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:44px;text-decoration:none;white-space:nowrap;font-size:16px;line-height:1.2;color:var(--cream,#f4eff6)}
#wallet-profile-link .wallet-profile-level-label{font-size:16px;color:#c3aff2;font-weight:750}
#wallet-profile-link .wallet-profile-address{font-size:16px}
#wallet-profile-link:focus-visible{outline:2px solid #f29bcb;outline-offset:4px}
@media(max-width:1100px){#wallet-profile-link .wallet-profile-address{display:none}}
@media(max-width:400px){#wallet-profile-link{padding-inline:10px;gap:5px}#wallet-profile-link .up-level-badge{width:24px;height:24px}}
@media(min-width:1101px) and (max-width:1550px){.topbar:has(#wallet-profile-link:not([hidden])) .brand small{display:none}.topbar:has(#wallet-profile-link:not([hidden])) .primary-nav>a{white-space:nowrap}}
/* Explorer rankings: the same player prestige, browsable without a wallet. */
.explorer-page{--up-mint:#a5dfca;--up-lilac:#c3aff2;--up-muted:#bcb5cb;--up-line:#dad1ed20;max-width:1240px;margin-inline:auto;font-size:16px;color:#f4eff6;padding-bottom:40px}
.explorer-page *{box-sizing:border-box}.explorer-page a{color:inherit;text-decoration:none}.explorer-page button,.explorer-page p,.explorer-page span,.explorer-page strong{font-size:16px}.explorer-page a:focus-visible,.explorer-page button:focus-visible{outline:2px solid #f29bcb;outline-offset:3px}

.up-explorer-board{border:1px solid var(--up-line);border-radius:20px;overflow:hidden;background:#1d1b29}.up-explorer-columns,.up-explorer-row{display:grid;grid-template-columns:70px minmax(0,1fr) 130px 160px 90px;align-items:center;gap:20px;padding:18px 26px}.up-explorer-columns{background:#c3aff209;color:var(--up-muted);line-height:1.5}.up-explorer-columns>span:nth-last-child(-n+2){text-align:right}.up-explorer-list{list-style:none;padding:0;margin:0}.up-explorer-row{min-height:84px;border-top:1px solid var(--up-line);transition:background .15s}.up-explorer-row:hover{background:#c3aff20c}.up-explorer-row:focus-visible{outline-offset:-3px!important}.up-explorer-rank{color:var(--up-muted);font-variant-numeric:tabular-nums}.up-explorer-row.is-top-rank .up-explorer-rank{color:#eed19a}.up-explorer-wallet{display:flex;gap:12px;align-items:center;min-width:0;font-weight:650;white-space:nowrap}.up-explorer-open{color:var(--up-muted);font-weight:400}.up-explorer-level{display:flex;gap:10px;align-items:center;color:var(--up-lilac)}.up-explorer-level .up-level-badge{width:40px;height:40px}.up-explorer-level strong{font-size:21px;font-weight:650}.up-explorer-work,.up-explorer-herd{text-align:right;font-variant-numeric:tabular-nums}.up-explorer-work strong{color:var(--up-mint)}.up-explorer-herd strong{font-weight:500}.up-explorer-mobile-label{display:none}
.up-explorer-pagination{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:24px 0}.up-explorer-pagination>span{color:var(--up-muted)}.up-explorer-pagination button,.up-explorer-message button{font:inherit;font-size:16px;border:1px solid var(--up-line);border-radius:10px;background:#242030;color:#f4eff6;min-height:44px;padding:10px 16px;cursor:pointer}.up-explorer-pagination button:disabled{opacity:.4;cursor:default}.up-explorer-caption{color:var(--up-muted);line-height:1.6;margin:20px 0}.up-explorer-message{display:flex;flex-wrap:wrap;align-items:center;gap:16px;color:var(--up-muted);line-height:1.6;margin:0 0 20px}.up-explorer-message p{margin:0}.up-explorer-empty{padding:50px 24px;text-align:center}.up-explorer-empty h2{font-size:26px;font-weight:600;margin:0 0 12px}.up-explorer-empty p{color:var(--up-muted);line-height:1.6}.up-explorer-empty a{display:inline-flex;align-items:center;min-height:44px;color:var(--up-mint)}
@media(max-width:800px){.up-explorer-columns,.up-explorer-row{grid-template-columns:48px minmax(0,1fr) 92px 112px 56px;gap:14px;padding-inline:20px}.up-explorer-level{gap:6px}.up-explorer-level .up-level-badge{width:34px;height:34px}}
@media(max-width:600px){.up-explorer-columns{display:none}.up-explorer-row{grid-template-columns:28px minmax(0,1fr) auto;gap:10px 12px;padding:16px}.up-explorer-list li:first-child .up-explorer-row{border-top:0}.up-explorer-rank{grid-row:1/3;align-self:start;padding-top:8px}.up-explorer-wallet{grid-column:2;grid-row:1;gap:6px;min-height:36px}.up-explorer-open{display:none}.up-explorer-level{grid-column:3;grid-row:1;gap:4px}.up-explorer-level .up-level-badge{width:30px;height:30px}.up-explorer-level strong{font-size:19px}.up-explorer-level .up-explorer-mobile-label{display:none}.up-explorer-work{grid-column:2;grid-row:2;text-align:left;white-space:nowrap}.up-explorer-herd{grid-column:3;grid-row:2;white-space:nowrap}.up-explorer-mobile-label{display:inline;color:var(--up-muted)}.up-explorer-caption{font-size:16px}.up-explorer-pagination{gap:10px;flex-wrap:wrap}.up-explorer-pagination button{padding:10px 12px}.up-explorer-pagination>span{order:-1;width:100%;text-align:center}.up-explorer-board{border-radius:16px}}
@media(max-width:360px){.up-explorer-row{padding:14px 12px;gap:8px;grid-template-columns:22px minmax(0,1fr) auto}.up-explorer-level .up-level-badge{width:28px;height:28px}}



/* Keep a wallet's place visible without changing the public ranking order. */
.up-explorer-row.is-you{background:#a5dfca10;box-shadow:inset 3px 0 #a5dfca}
.up-explorer-row.is-you:hover{background:#a5dfca19}
.up-explorer-row.is-you .up-explorer-wallet{flex-wrap:wrap;gap:6px 10px}
.up-explorer-row.is-you .up-explorer-open{display:none}
.up-explorer-you{display:inline-flex;align-items:center;padding:3px 9px;border:1px solid #a5dfca55;border-radius:99px;color:var(--up-mint);background:#a5dfca12;font-weight:750;line-height:1.2}
.up-explorer-pinned{position:sticky;bottom:16px;z-index:30;margin-top:12px;border:1px solid #a5dfca88;border-radius:16px;background:#202b2c;box-shadow:0 8px 30px #0009;overflow:hidden}
.up-explorer-pinned .up-explorer-row{border:0;box-shadow:none;background:transparent}
@media(max-width:1180px),(hover:none) and (pointer:coarse){.up-explorer-pinned{bottom:calc(80px + env(safe-area-inset-bottom,0px))}}
@media(max-width:600px){.up-explorer-row.is-you .up-explorer-wallet{gap:5px}.up-explorer-you{padding:2px 7px}}

/* Shared records navigation and page heading across all three rankings views. */
.rankings-page{width:min(1240px,calc(100% - 48px));max-width:1240px;margin-inline:auto;padding:24px 0 40px}
.rankings-nav{display:flex;justify-content:space-between;align-items:center;gap:24px;border-bottom:1px solid #dad1ed20;font-family:Inter,ui-sans-serif,system-ui,sans-serif;line-height:1.5}
.rankings-nav>p{margin:0;font-size:16px;font-weight:600;letter-spacing:1.4px;color:#bcb5cb}
.rankings-nav .ranking-tabs{display:flex;gap:28px;margin:0;border:0}
.rankings-nav .ranking-tabs a{display:flex;align-items:center;gap:6px;min-height:54px;padding:16px 0;border-bottom:2px solid transparent;color:#bcb5cb;font-size:16px;font-weight:400;line-height:20px;letter-spacing:0;text-decoration:none;white-space:nowrap}
.rankings-nav .ranking-tabs a[aria-current=page]{border-color:#f29bcb;color:#f4eff6}
.rankings-nav a:focus-visible{outline:2px solid #f29bcb;outline-offset:3px}
.rankings-heading{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:24px;padding:30px 0;color:#f4eff6;font-family:Inter,ui-sans-serif,system-ui,sans-serif}
.rankings-heading .rankings-eyebrow{margin:0;color:#f29bcb;font-size:16px;font-weight:750;line-height:1.5;letter-spacing:1px}
.rankings-heading h1{margin:12px 0;font:650 clamp(34px,5vw,52px)/1.1 Inter,ui-sans-serif,system-ui,sans-serif;letter-spacing:-.045em;color:#f4eff6}
.rankings-total{display:flex;flex-direction:column;align-items:flex-end;gap:6px}
.rankings-total strong{font-size:38px;font-weight:650;line-height:1.1;letter-spacing:-.04em}
.rankings-total span{font-size:16px;color:#bcb5cb;line-height:1.5}
@media(max-width:700px){
 .rankings-page{width:calc(100% - 32px);padding-top:20px}
 .rankings-nav{display:block}.rankings-nav>p{letter-spacing:1px}
 .rankings-nav .ranking-tabs{justify-content:space-between;gap:12px}
 .rankings-heading{padding:24px 0;gap:16px}
 .rankings-heading h1{font-size:38px}.rankings-heading .rankings-eyebrow{letter-spacing:.4px}
 .rankings-total strong{font-size:29px}
}
@media(max-width:360px){.rankings-nav .ranking-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.rankings-nav .ranking-tabs a{white-space:normal;justify-content:center;text-align:center;padding:10px 0}.rankings-heading{grid-template-columns:minmax(0,1fr)}.rankings-total{flex-direction:row;align-items:baseline;gap:10px}.rankings-total strong{font-size:24px}}

/* Unicorn identity stays beside the unobstructed portrait. */
.profile-hero-copy > .profile-rarity{flex-direction:row;flex-wrap:wrap;font-size:16px}
.profile-hero-copy > .profile-owner{flex-direction:row;flex-wrap:wrap;gap:8px;margin:16px 0 24px;font-size:16px;letter-spacing:0}
.profile-owner a{color:var(--pink);text-underline-offset:4px}
