/* Leaderboard follows the homepage's neutral circular-icon controls. */
.ccc-leaderboard-page{width:min(980px,100%);min-width:0;margin:0 auto;box-sizing:border-box;padding:12px 14px max(90px,env(safe-area-inset-bottom));color:var(--text,#f3f3f5);display:grid;gap:14px}
.ccc-leaderboard-page h1{font-size:clamp(25px,4vw,35px);text-align:center;margin:0;line-height:1.15}
.ccc-leaderboard-nav{display:grid;grid-template-columns:44px minmax(0,1fr);align-items:center;gap:8px;width:min(412px,100%);margin-inline:auto}
.ccc-leaderboard-home{appearance:none;width:44px!important;min-width:44px!important;height:44px!important;display:grid;place-items:center;cursor:pointer}
.ccc-leaderboard-home .ccc-leaderboard-symbol{width:23px;height:23px}
.ccc-leaderboard-nav .ccc-leaderboard-contribute{width:100%!important;min-width:0;min-height:44px;display:flex;align-items:center;gap:8px;justify-content:center;font-weight:800;border:1px solid rgba(255,255,255,.2);background:rgba(255,255,255,.075);color:#f6f6f7;transition:background .15s ease,border-color .15s ease}
.ccc-leaderboard-nav .ccc-leaderboard-contribute:hover,.ccc-leaderboard-nav .ccc-leaderboard-contribute:active,.ccc-leaderboard-nav .ccc-leaderboard-contribute:focus-visible{border-color:#fff;background:rgba(255,255,255,.13)}
.ccc-leaderboard-symbol{display:block;flex:none;width:20px;height:20px;overflow:visible}
/* Keep the original four-above-two layout, with the same circular button feedback as Home. */
.ccc-leaderboard-categories{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));column-gap:7px;row-gap:10px}
.ccc-leaderboard-tab:nth-child(n+5){grid-column:span 2}
.ccc-leaderboard-tab{appearance:none;min-width:0;min-height:86px;border:0;border-radius:0;background:transparent;color:#f1f1f3;display:flex;flex-direction:column;gap:7px;align-items:center;justify-content:flex-start;font-size:12px;font-weight:650;cursor:pointer;padding:3px 2px;line-height:1.15;text-align:center}
.ccc-leaderboard-tab .ccc-leaderboard-symbol{box-sizing:border-box;width:56px;height:56px;flex:none;border:1px solid rgba(255,255,255,.16);padding:14px;border-radius:50%;background:rgba(255,255,255,.075);color:var(--text,#f4f4f6);transition:background .14s ease,border-color .14s ease}
.ccc-leaderboard-tab:hover .ccc-leaderboard-symbol,.ccc-leaderboard-tab:focus-visible .ccc-leaderboard-symbol,.ccc-leaderboard-tab:active .ccc-leaderboard-symbol,.ccc-leaderboard-tab.is-active .ccc-leaderboard-symbol{background:rgba(255,255,255,.13);border-color:#fff}
/* The two Top 100 controls are full-width rectangular buttons, not round icon tiles.
   Their neutral fill and white interaction borders match the top row's styling. */
.ccc-leaderboard-tab:nth-child(n+5){flex-direction:row;align-items:center;justify-content:center;gap:9px;min-height:52px;padding:9px 11px;border:1px solid rgba(255,255,255,.16);border-radius:12px;background:rgba(255,255,255,.075);font-size:13px;font-weight:700}
.ccc-leaderboard-tab:nth-child(n+5) .ccc-leaderboard-symbol{width:23px;height:23px;padding:0;border:0;border-radius:0;background:transparent;flex:none}
.ccc-leaderboard-tab:nth-child(n+5):hover,.ccc-leaderboard-tab:nth-child(n+5):focus-visible,.ccc-leaderboard-tab:nth-child(n+5):active,.ccc-leaderboard-tab:nth-child(n+5).is-active{border-color:#fff;background:rgba(255,255,255,.13)}
.ccc-leaderboard-tab:nth-child(n+5):hover .ccc-leaderboard-symbol,.ccc-leaderboard-tab:nth-child(n+5):focus-visible .ccc-leaderboard-symbol,.ccc-leaderboard-tab:nth-child(n+5):active .ccc-leaderboard-symbol,.ccc-leaderboard-tab:nth-child(n+5).is-active .ccc-leaderboard-symbol{border:0;background:transparent}
.ccc-leaderboard-tab.is-active{color:#fff;font-weight:800}
.ccc-leaderboard-tab:focus-visible{outline:none}
.ccc-leaderboard-meta{font-size:12px;color:#bfc1c7;line-height:1.4}
.ccc-leaderboard-mine{border:1px solid rgba(255,255,255,.32);background:#292c32;border-radius:12px;padding:11px 13px}
.ccc-leaderboard-mine-text{display:flex;justify-content:space-between;align-items:center;gap:15px}
.ccc-leaderboard-mine small{font-size:12px;color:#c5c7cc}
.ccc-leaderboard-mine strong{font-size:14px}
.ccc-leaderboard-results{display:grid;gap:8px;min-width:0}
/* Make the full collector or cut row a single large white-rimmed tap target. */
.ccc-leaderboard-row{box-sizing:border-box;display:grid;grid-template-columns:40px minmax(0,1fr) auto;align-items:center;gap:12px;min-width:0;width:100%;padding:11px 13px;border:1px solid rgba(255,255,255,.16);border-radius:13px;background:linear-gradient(110deg,#1b1d21,#24262c);color:inherit;text-align:left;font:inherit;position:relative;transition:border-color .14s ease,box-shadow .14s ease,background-color .14s ease}
.ccc-leaderboard-row:hover,.ccc-leaderboard-row:focus-within,.ccc-leaderboard-row:active{border-color:#fff;box-shadow:inset 0 0 0 1px rgba(255,255,255,.5);background:#2d3036}
.ccc-leaderboard-member-row{appearance:none;cursor:pointer}
.ccc-leaderboard-member-row:focus-visible,.ccc-leaderboard-cut-hitbox:focus-visible{outline:2px solid #fff;outline-offset:2px}
.ccc-leaderboard-row.is-me{border-color:rgba(255,255,255,.4);background:#2c3037}
.ccc-leaderboard-row.is-me:hover,.ccc-leaderboard-row.is-me:focus-visible,.ccc-leaderboard-row.is-me:active{border-color:#fff;box-shadow:inset 0 0 0 1px rgba(255,255,255,.5);background:#343840}
.ccc-leaderboard-rank{font-size:15px;font-weight:750;color:#c8cbd0;font-variant-numeric:tabular-nums}
.ccc-leaderboard-member{min-width:0;display:grid;gap:4px}
.ccc-leaderboard-name{font-size:14px;font-weight:700;min-width:0;overflow-wrap:anywhere}
.ccc-leaderboard-owner-link{appearance:none;position:relative;z-index:2;border:1px solid rgba(255,255,255,.2);border-radius:7px;background:rgba(255,255,255,.055);color:#f0f1f3;cursor:pointer;text-align:left;text-decoration:none!important;padding:2px 6px;font:inherit;min-height:24px;max-width:100%;overflow-wrap:anywhere}
.ccc-leaderboard-owner-link:hover,.ccc-leaderboard-owner-link:focus-visible,.ccc-leaderboard-owner-link:active{border-color:#fff;box-shadow:inset 0 0 0 1px rgba(255,255,255,.4);background:rgba(255,255,255,.12);text-decoration:none!important}
.ccc-leaderboard-breakdown{font-size:11px;color:#aeb1b8;line-height:1.35}
.ccc-leaderboard-points{font-size:19px;font-variant-numeric:tabular-nums;color:#fff}
.ccc-leaderboard-cut-row{grid-template-columns:39px 58px minmax(0,1fr) auto;gap:11px}
.ccc-leaderboard-cut-hitbox{appearance:none;position:absolute;inset:0;z-index:1;width:100%;height:100%;border:0;border-radius:inherit;background:transparent;padding:0;cursor:pointer}
.ccc-leaderboard-image-frame{background:#16181c;border-radius:7px;overflow:hidden;width:58px;height:81px;display:flex;align-items:center;justify-content:center}
.ccc-leaderboard-image{max-width:100%;width:100%;height:100%;object-fit:contain;display:block}
.ccc-leaderboard-cut-info{min-width:0;display:grid;align-content:center;justify-items:start;gap:5px;overflow-wrap:anywhere}
.ccc-leaderboard-cut-title{font-size:14px;font-weight:800;line-height:1.2;max-width:100%;overflow-wrap:anywhere;color:#f4f4f6}
.ccc-leaderboard-cut-metadata{font-size:11px;line-height:1.3;color:#c9ccd1;overflow-wrap:anywhere}
.ccc-leaderboard-cut-owner{font-size:12px;line-height:1.3;color:#aeb1b8;overflow-wrap:anywhere}
.ccc-leaderboard-owner-link{font-size:12px;font-weight:650;overflow-wrap:anywhere}
.ccc-leaderboard-cut-count{min-width:56px;align-self:center;display:grid;justify-items:center;gap:3px;font-variant-numeric:tabular-nums;color:#fff}
.ccc-leaderboard-cut-count .ccc-leaderboard-symbol{color:#e4e5e7;width:21px;height:21px}
.ccc-leaderboard-cut-count strong{font-size:19px;line-height:1}
.ccc-leaderboard-cut-count small{color:#aeb1b8;font-size:10px}
.ccc-leaderboard-loading,.ccc-leaderboard-empty,.ccc-leaderboard-error{margin:0;padding:30px 12px;text-align:center;color:#babdc3}
.ccc-leaderboard-error{color:#ffc0ca}
.ccc-leaderboard-retry{margin:0 auto;border:1px solid rgba(255,255,255,.2);border-radius:10px;background:rgba(255,255,255,.075);color:#fff;padding:8px 16px;cursor:pointer}
.ccc-leaderboard-retry:hover,.ccc-leaderboard-retry:focus-visible,.ccc-leaderboard-retry:active{border-color:#fff;background:rgba(255,255,255,.13)}
.ccc-leaderboard-page button:focus-visible{outline:2px solid #fff;outline-offset:2px}
.ccc-leaderboard-page button.ccc-leaderboard-tab:focus-visible{outline:none}
@media (min-width:781px){.ccc-leaderboard-nav{width:min(1038px,100%)}}
@media(max-width:600px){
 .ccc-leaderboard-page{padding-inline:10px;gap:12px}
 .ccc-leaderboard-categories{column-gap:6px;row-gap:8px}
 .ccc-leaderboard-tab{font-size:10px;min-height:82px;padding:3px 1px;overflow-wrap:anywhere}
 .ccc-leaderboard-tab .ccc-leaderboard-symbol{width:52px;height:52px;padding:13px}
 .ccc-leaderboard-row{gap:8px;padding:10px}
 .ccc-leaderboard-rank{font-size:13px}
 .ccc-leaderboard-name{font-size:13px}
 .ccc-leaderboard-breakdown{font-size:10px}
 .ccc-leaderboard-cut-row{grid-template-columns:27px 52px minmax(0,1fr) 52px;gap:7px}
 .ccc-leaderboard-image-frame{width:52px;height:76px}
 .ccc-leaderboard-cut-title{font-size:12px}
 .ccc-leaderboard-cut-metadata{font-size:10px}
 .ccc-leaderboard-cut-owner,.ccc-leaderboard-owner-link{font-size:11px}
 .ccc-leaderboard-cut-count{min-width:0}
 .ccc-leaderboard-cut-count strong{font-size:17px}
 .ccc-leaderboard-cut-count .ccc-leaderboard-symbol{width:18px;height:18px}
}
@media(max-width:360px){.ccc-leaderboard-categories{column-gap:4px}.ccc-leaderboard-tab{font-size:9px;letter-spacing:-.15px}.ccc-leaderboard-tab .ccc-leaderboard-symbol{width:48px;height:48px;padding:12px}}
