/* ucrime.lol "hub" pages: Explore (a wall of member case files) and Leaderboard (podium + ranked list). Loaded after app.css + identity.css. */

/* ---------- shared: sliding segmented control, live chip, toggle switch ---------- */
.seg.hub { position: relative; isolation: isolate; }
.seg.hub::before { content: ""; position: absolute; z-index: -1; left: 0; top: 4px; bottom: 4px; width: var(--tw, 50%); transform: translateX(var(--tx, 4px)); border-radius: 8px; background: var(--grad, linear-gradient(120deg, #a855f7, #f43f5e)); box-shadow: 0 8px 22px -8px rgba(168, 85, 247, .8); transition: transform .45s cubic-bezier(.3, 1.3, .5, 1), width .45s cubic-bezier(.3, 1.3, .5, 1); }
.seg.hub button.on { background: none; color: #fff; }
.hub-chip { display: inline-flex; align-items: center; gap: 9px; padding: 6px 14px 6px 11px; border-radius: 99px; border: 1px solid rgba(255, 255, 255, .13); background: rgba(255, 255, 255, .04); font: 600 .68rem/1 var(--id-mono, 'JetBrains Mono', monospace); letter-spacing: .14em; text-transform: uppercase; color: #c9c2dc; }
.hub-chip i { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 0 rgba(74, 222, 128, .6); animation: hubPing 2s ease-out infinite; } @keyframes hubPing { 70% { box-shadow: 0 0 0 9px rgba(74, 222, 128, 0); } 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); } }
.hub-h1, .xhead h1.hub-h1, .board h1.hub-h1 { font-family: var(--id-disp, inherit); font-size: clamp(2.5rem, 7.5vw, 4.6rem); line-height: .98; letter-spacing: -.055em; font-weight: 800; color: #fff; margin: 18px 0 0; text-wrap: balance; }
.hub-h1 .g { display: inline-block; background-size: 200% 100%; animation: hubShift 6s linear infinite; background-image: linear-gradient(90deg, #c084fc, #f43f5e, #fbbf24, #c084fc); -webkit-background-clip: text; background-clip: text; color: transparent; } @keyframes hubShift { to { background-position: -200% 0; } }
.hub-sub { color: #9890ab; margin: 14px auto 0; max-width: 520px; text-wrap: pretty; } .hub-sub .site { color: #fff; font-weight: 700; }

/* ============================ EXPLORE ============================ */
.xhead { padding-top: clamp(104px, 15vw, 142px); padding-bottom: 6px; }
.xhead p { margin: 14px auto 26px; }
.xbar { position: relative; max-width: 940px; margin: 0 auto 14px; padding: 10px; border-radius: 22px; background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02)); border: 1px solid rgba(255, 255, 255, .1); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 30px 70px -40px rgba(168, 85, 247, .7); display: flex; gap: 10px; flex-wrap: wrap; justify-content: stretch; align-items: center; text-align: left; }
.xbar::before { content: ""; position: absolute; left: 24px; right: 24px; top: -1px; height: 2px; border-radius: 2px; background: var(--id-tape, linear-gradient(90deg, #f43f5e, #8b5cf6)); opacity: .8; }
.xbar .search { flex: 1 1 260px; width: auto; min-width: 0; }
.xbar .search input { height: 46px; border-radius: 14px; background: rgba(0, 0, 0, .28); transition: box-shadow .25s, border-color .25s; } .xbar .search input:focus { box-shadow: 0 0 0 3px rgba(168, 85, 247, .28); }
.xbar .search kbd { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font: 600 .66rem var(--id-mono, monospace); color: #77708a; border: 1px solid rgba(255, 255, 255, .14); border-radius: 6px; padding: 2px 7px; pointer-events: none; } .xbar .search input:focus ~ kbd { opacity: 0; }
.xbar .seg { width: auto !important; flex: 1 1 200px; max-width: 320px; height: 46px; align-items: stretch; border-radius: 14px; } .xbar .seg button { font-size: .82rem; }
.xbar .btn.sm { height: 46px; border-radius: 14px; padding: 0 14px; gap: 8px; } .xbar .btn.sm.primary { box-shadow: 0 10px 26px -10px rgba(168, 85, 247, .9); }
.xtool { height: 46px; width: 46px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .04); color: #c9c2dc; cursor: pointer; display: grid; place-items: center; font-size: 1rem; transition: transform .25s cubic-bezier(.3, 1.5, .5, 1), background .2s, border-color .2s, color .2s; }
.xtool:hover { transform: translateY(-2px); border-color: rgba(168, 85, 247, .6); color: #fff; } .xtool.on { background: rgba(168, 85, 247, .22); border-color: rgba(168, 85, 247, .7); color: #fff; }
.xtool.shuf { width: auto; padding: 0 16px; gap: 8px; display: inline-flex; align-items: center; font-weight: 700; font-size: .82rem; font-family: inherit; background: linear-gradient(120deg, rgba(168, 85, 247, .26), rgba(244, 63, 94, .22)); border-color: rgba(244, 63, 94, .4); } .xtool.shuf i { transition: transform .5s cubic-bezier(.3, 1.4, .5, 1); } .xtool.shuf:hover i { transform: rotate(180deg) scale(1.15); }
.xcount { max-width: 1180px; margin: 0 auto; padding: 4px 24px 18px; display: flex; justify-content: space-between; gap: 12px; align-items: center; font: 600 .7rem var(--id-mono, monospace); letter-spacing: .12em; text-transform: uppercase; color: #77708a; }
.xcount b { color: #fff; font-variant-numeric: tabular-nums; }
.xcount .tapeln { flex: 1; height: 6px; border-radius: 6px; background: var(--id-tape, linear-gradient(90deg, #f43f5e, #8b5cf6)); opacity: .28; }

.xgrid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 268px), 1fr)); gap: 18px; padding-bottom: 28px; perspective: 1100px; }
.xcard { --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 50%; position: relative; isolation: isolate; border-radius: 24px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .09); background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .018)); transform: rotateX(var(--rx)) rotateY(var(--ry)); transform-style: preserve-3d; transition: transform .25s ease-out, border-color .3s, box-shadow .35s; animation: hubCardIn .75s cubic-bezier(.2, .8, .2, 1) backwards; animation-delay: calc(var(--i, 0) * 55ms); will-change: transform; }
@keyframes hubCardIn { from { opacity: 0; transform: translateY(34px) scale(.94) rotateX(8deg); filter: blur(6px); } }
.xcard:hover { transform: translateY(-7px) rotateX(var(--rx)) rotateY(var(--ry)); border-color: color-mix(in srgb, var(--a) 70%, transparent); box-shadow: 0 30px 70px -34px var(--a), 0 0 0 1px color-mix(in srgb, var(--a) 30%, transparent); background: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .02)); }
.xcard .xglow { position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0; transition: opacity .35s; background: radial-gradient(260px circle at var(--mx) var(--my), color-mix(in srgb, var(--a) 24%, transparent), transparent 70%); } .xcard:hover .xglow { opacity: 1; }
.xcard > * { position: relative; z-index: 1; } .xcard > .xglow { position: absolute; z-index: 0; }
.xcover { height: 92px; overflow: hidden; background: linear-gradient(120deg, var(--c1), var(--c2)); background-size: 220% 220%; animation: hubCover 10s ease-in-out infinite alternate; }
@keyframes hubCover { to { background-position: 100% 100%; } }
.xcover::before { display: none; }
.xcover::after { background: radial-gradient(circle at 15% 20%, color-mix(in srgb, var(--a) 62%, transparent), transparent 60%), radial-gradient(circle at 90% 100%, color-mix(in srgb, var(--a2) 52%, transparent), transparent 56%); mix-blend-mode: screen; }
.xfile { position: absolute; left: 14px; top: 12px; z-index: 2; font: 700 .62rem var(--id-mono, monospace); letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .88); padding: 4px 9px; border-radius: 6px; background: rgba(0, 0, 0, .38); backdrop-filter: blur(6px); border: 1px solid rgba(255, 255, 255, .16); }
.xhot { position: absolute; right: 12px; top: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; font: 800 .62rem var(--id-mono, monospace); letter-spacing: .14em; padding: 4px 9px; border-radius: 99px; color: #fff; background: linear-gradient(120deg, #f97316, #f43f5e); box-shadow: 0 6px 20px -4px #f43f5e; } .xhot i { animation: hubFlame 1.1s ease-in-out infinite alternate; } @keyframes hubFlame { to { transform: scale(1.25) rotate(8deg); } }
.xbody { margin-top: -34px; padding: 0 18px 8px; }
.xav { position: relative; width: 68px; height: 68px; padding: 3px; background: conic-gradient(from 0deg, var(--a), var(--a2), var(--a)); box-shadow: 0 10px 28px -10px var(--a); transition: transform .45s cubic-bezier(.3, 1.4, .5, 1); } .xcard:hover .xav { transform: translateZ(30px) scale(1.08) rotate(-4deg); }
.xav div { background-color: #0f0a1c; } .xcard:hover .xav > div { transform: none; }
.xname b { font-family: var(--id-disp, inherit); font-size: 1.14rem; letter-spacing: -.035em; }
.xuser { font: 500 .74rem var(--id-mono, monospace); color: #7f7894; margin-top: 2px; }
.xbio { color: #a29bb4; }
.xfoot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 12px 18px 0; padding: 12px 0 16px; border-top: 1px dashed rgba(255, 255, 255, .14); }
.xfoot .xviews { margin: 0; } .xviews b { color: #fff; font-variant-numeric: tabular-nums; font-weight: 700; }
.xgo { display: inline-flex; align-items: center; gap: 7px; font: 700 .72rem var(--id-mono, monospace); letter-spacing: .1em; text-transform: uppercase; color: var(--a); opacity: .55; transform: translateX(-6px); transition: opacity .3s, transform .35s cubic-bezier(.3, 1.4, .5, 1); }
.xcard:hover .xgo { opacity: 1; transform: none; } .xgo i { transition: transform .3s; } .xcard:hover .xgo i { transform: translateX(4px); }
/* list view */
.xgrid.list { grid-template-columns: minmax(0, 1fr); max-width: 820px; gap: 12px; }
.xgrid.list .xcard { display: grid; grid-template-columns: 74px minmax(0, 1fr) auto; align-items: center; gap: 0 16px; padding: 14px 18px; border-radius: 20px; }
.xgrid.list .xcover { display: none; } .xgrid.list .xbody { display: contents; }
.xgrid.list .xav { width: 62px; height: 62px; grid-row: span 2; align-self: center; } .xgrid.list .xname, .xgrid.list .xuser { grid-column: 2; margin: 0; } .xgrid.list .xbio { display: none; }
.xgrid.list .xfoot { grid-column: 3; grid-row: 1 / span 2; border: 0; margin: 0; padding: 0; flex-direction: column; align-items: flex-end; gap: 6px; }
.xgrid.list .xname { align-self: end; } .xgrid.list .xuser { align-self: start; }
.xsentinel { height: 2px; }
.xend { text-align: center; padding: 10px 0 70px; color: #77708a; font: 600 .72rem var(--id-mono, monospace); letter-spacing: .16em; text-transform: uppercase; } .xend[hidden] { display: none; }
.xmore { padding-bottom: 26px; } .xmore .btn { border-radius: 14px; }
.empty { padding: 70px 20px; font-family: var(--id-mono, monospace); letter-spacing: .06em; } .empty::before { content: "∅"; display: block; font-size: 3.2rem; margin-bottom: 10px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-family: var(--id-disp, inherit); }
.skel { border-radius: 24px; min-height: 258px; }

/* ============================ LEADERBOARD ============================ */
.board { max-width: 960px; padding-top: clamp(104px, 15vw, 142px); text-align: center; }
.board .hub-sub { margin-bottom: 26px; }
.lstats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; max-width: 640px; margin: 0 auto 24px; }
.lstat { padding: 14px 10px 13px; border-radius: 18px; border: 1px solid rgba(255, 255, 255, .09); background: linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .015)); position: relative; overflow: hidden; }
.lstat::before { content: ""; position: absolute; left: 14px; right: 14px; top: 0; height: 2px; background: var(--id-tape, linear-gradient(90deg, #f43f5e, #8b5cf6)); opacity: .7; }
.lstat b { display: block; font: 800 1.45rem/1.1 var(--id-disp, inherit); letter-spacing: -.04em; color: #fff; font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lstat span { display: block; margin-top: 4px; font: 600 .6rem var(--id-mono, monospace); letter-spacing: .14em; text-transform: uppercase; color: #77708a; }
#rng { width: 250px !important; margin: 0 auto 30px !important; height: 46px; border-radius: 14px; } #rng button { font-size: .84rem; }

.podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(8px, 2vw, 18px); align-items: end; margin: 0 auto 26px; max-width: 760px; padding-top: 34px; }
.pod { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; color: inherit; min-width: 0; animation: hubPodIn .9s cubic-bezier(.2, .9, .3, 1.1) backwards; animation-delay: calc(var(--d, 0) * 140ms + .1s); }
@keyframes hubPodIn { from { opacity: 0; transform: translateY(60px) scale(.9); } }
.pod.p1 { order: 2; --d: 2; --mc: #fbbf24; --mc2: #f59e0b; --h: clamp(128px, 22vw, 170px); } .pod.p2 { order: 1; --d: 1; --mc: #e2e8f0; --mc2: #94a3b8; --h: clamp(104px, 16vw, 124px); } .pod.p3 { order: 3; --d: 0; --mc: #fdba74; --mc2: #c2410c; --h: clamp(84px, 12vw, 96px); }
.pod-av { position: relative; width: clamp(62px, 15vw, 104px); height: clamp(62px, 15vw, 104px); margin-bottom: 12px; transition: transform .4s cubic-bezier(.3, 1.4, .5, 1); }
.pod.p1 .pod-av { width: clamp(82px, 20vw, 136px); height: clamp(82px, 20vw, 136px); }
.pod-av::before { content: ""; position: absolute; inset: -4px; border-radius: 50%; background: conic-gradient(from 0deg, var(--mc), transparent 30%, var(--mc2), transparent 65%, var(--mc)); animation: hubSpin 6s linear infinite; } @keyframes hubSpin { to { transform: rotate(360deg); } }
.pod-av::after { content: ""; position: absolute; inset: -22px; border-radius: 50%; z-index: -1; background: radial-gradient(closest-side, color-mix(in srgb, var(--mc) 40%, transparent), transparent); animation: pxBreathHub 3.4s ease-in-out infinite; } @keyframes pxBreathHub { 50% { transform: scale(1.18); opacity: .6; } }
.pod-av > div { position: absolute; inset: 0; border-radius: 50%; background: #120c20 center/cover; border: 3px solid #0a0714; display: grid; place-items: center; font: 800 clamp(1.3rem, 4.6vw, 2.4rem) var(--id-disp, inherit); color: #fff; }
.pod:hover .pod-av { transform: translateY(-6px) scale(1.06); }
.pod-crown { position: absolute; left: 50%; top: -24px; transform: translateX(-50%) rotate(-8deg); z-index: 3; color: #fbbf24; font-size: clamp(1.2rem, 4vw, 1.9rem); filter: drop-shadow(0 4px 12px rgba(251, 191, 36, .75)); animation: hubCrown 3s ease-in-out infinite; } @keyframes hubCrown { 50% { transform: translateX(-50%) rotate(6deg) translateY(-5px); } }
.pod-name { max-width: 100%; font: 800 clamp(.88rem, 2.6vw, 1.12rem) var(--id-disp, inherit); letter-spacing: -.03em; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pod-user { max-width: 100%; font: 500 .68rem var(--id-mono, monospace); color: #7f7894; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-bottom: 10px; }
.pod .bds { display: none; justify-content: center; margin-bottom: 10px; } @media (min-width: 600px) { .pod .bds { display: inline-flex; } }
.pod-block { position: relative; width: 100%; height: var(--h); border-radius: 18px 18px 6px 6px; display: grid; align-content: start; justify-items: center; padding-top: 12px; overflow: hidden;
  background: linear-gradient(180deg, color-mix(in srgb, var(--mc) 32%, rgba(20, 14, 34, .9)), rgba(20, 14, 34, .92) 75%); border: 1px solid color-mix(in srgb, var(--mc) 55%, transparent); border-bottom: 0; box-shadow: 0 -18px 50px -24px var(--mc), inset 0 1px 0 rgba(255, 255, 255, .18); transition: transform .4s cubic-bezier(.3, 1.4, .5, 1); }
.pod:hover .pod-block { transform: translateY(-5px); }
.pod-block::before { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .22) 48%, transparent 66%); transform: translateX(-130%); animation: hubSheen 4.2s ease-in-out infinite; animation-delay: calc(var(--d) * .6s); } @keyframes hubSheen { 55%, 100% { transform: translateX(130%); } }
.pod-block::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 8px; background: var(--id-tape, linear-gradient(90deg, #f43f5e, #8b5cf6)); opacity: .55; }
.pod-rk { font: 800 clamp(1.6rem, 6vw, 2.6rem)/1 var(--id-disp, inherit); letter-spacing: -.05em; color: var(--mc); text-shadow: 0 0 22px color-mix(in srgb, var(--mc) 60%, transparent); }
.pod-v { margin-top: 6px; font: 700 clamp(.78rem, 2.4vw, 1rem) var(--id-mono, monospace); color: #fff; font-variant-numeric: tabular-nums; } .pod-v small { display: block; font: 600 .56rem var(--id-mono, monospace); letter-spacing: .14em; text-transform: uppercase; color: #a39cb6; margin-top: 2px; }
.pod.p1::before { content: ""; position: absolute; left: 50%; top: -34px; bottom: 40%; width: min(240px, 90%); transform: translateX(-50%); background: linear-gradient(180deg, transparent, rgba(251, 191, 36, .13) 40%, transparent); clip-path: polygon(40% 0, 60% 0, 100% 100%, 0 100%); pointer-events: none; animation: hubBeam 4s ease-in-out infinite; } @keyframes hubBeam { 50% { opacity: .5; } }

.lrows { text-align: left; max-width: 760px; margin: 0 auto; }
.brow { --pct: 0%; position: relative; isolation: isolate; overflow: hidden; border-radius: 20px; padding: 14px 18px; gap: 14px; background: linear-gradient(90deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .015)); border: 1px solid rgba(255, 255, 255, .08); animation: hubRowIn .6s cubic-bezier(.2, .8, .2, 1) backwards; animation-delay: calc(var(--i, 0) * 45ms); }
@keyframes hubRowIn { from { opacity: 0; transform: translateX(-26px); } }
.brow::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: var(--pct); z-index: -1; background: linear-gradient(90deg, rgba(168, 85, 247, .2), rgba(244, 63, 94, .1)); border-right: 2px solid rgba(244, 63, 94, .5); transform-origin: left; animation: hubBar 1.1s cubic-bezier(.2, .8, .2, 1) backwards; animation-delay: calc(var(--i, 0) * 45ms + .25s); } @keyframes hubBar { from { transform: scaleX(0); } }
.brow:hover { transform: translateX(7px); border-color: rgba(168, 85, 247, .6); }
.brow .rk { width: 44px; font: 800 1.35rem var(--id-disp, inherit); letter-spacing: -.05em; color: #63596f; font-style: normal; flex: none; } .brow:nth-child(-n+3) .rk { color: #63596f; }
.brow .av { width: 48px; height: 48px; flex: none; }
.brow > div:not(.av):not(.v) { min-width: 0; flex: 1; } .brow b { font-family: var(--id-disp, inherit); letter-spacing: -.025em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .brow small { font-family: var(--id-mono, monospace); font-size: .7rem; }
.brow .v { font: 800 1.12rem var(--id-disp, inherit); letter-spacing: -.03em; font-variant-numeric: tabular-nums; flex: none; } .brow .v small { font: 600 .58rem var(--id-mono, monospace); letter-spacing: .12em; text-transform: uppercase; color: #77708a; }
.lcta { margin: 34px auto 0; max-width: 760px; padding: 22px 22px; border-radius: 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; text-align: left; position: relative; overflow: hidden; border: 1px solid rgba(168, 85, 247, .35); background: linear-gradient(120deg, rgba(168, 85, 247, .16), rgba(244, 63, 94, .1)); }
.lcta::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--id-tape, linear-gradient(90deg, #f43f5e, #8b5cf6)); opacity: .6; }
.lcta b { display: block; font: 800 1.2rem var(--id-disp, inherit); letter-spacing: -.03em; color: #fff; } .lcta span { color: #a29bb4; font-size: .9rem; }
.lcta .btn { flex: none; }

/* ---------- responsive ---------- */
@media (max-width: 720px) {
  .xbar { padding: 8px; gap: 8px; border-radius: 20px; } .xbar .search { flex-basis: 100%; }
  .xbar .seg { flex: 1 1 150px; width: auto !important; } .xbar .btn.sm { flex: 1 1 auto; justify-content: center; } .xtool.shuf { flex: 1 1 auto; justify-content: center; }
  .xgrid { padding-left: 16px; padding-right: 16px; gap: 14px; } .xcount { padding-left: 18px; padding-right: 18px; }
  .xgrid.list .xcard { grid-template-columns: 58px minmax(0, 1fr); padding: 12px 14px; } .xgrid.list .xav { width: 54px; height: 54px; } .xgrid.list .xfoot { grid-column: 2; grid-row: auto; flex-direction: row; align-items: center; justify-content: space-between; margin-top: 8px; width: 100%; }
}
@media (max-width: 520px) {
  .lstats { gap: 8px; } .lstat { padding: 12px 6px 11px; border-radius: 15px; } .lstat b { font-size: 1.1rem; }
  .brow { padding: 11px 12px; gap: 10px; border-radius: 17px; } .brow .rk { width: 32px; font-size: 1.05rem; } .brow .av { width: 40px; height: 40px; } .brow .bds { display: none; } .brow .v { font-size: .98rem; }
  .lcta { padding: 18px; } .lcta .btn { width: 100%; justify-content: center; }
  .xhead, .board { padding-left: 16px; padding-right: 16px; } #rng { width: 100% !important; max-width: 290px; }
}
@media (hover: none) { .xcard:hover { transform: none; } .xcard:active { transform: scale(.985); } }
@media (prefers-reduced-motion: reduce) { .xcard, .pod, .brow, .brow::before, .hub-h1 .g, .xcover, .pod-av::before, .pod-av::after, .pod-block::before, .pod-crown, .pod.p1::before, .xhot i { animation: none !important; } .xcard { transform: none !important; } }
