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EAAA4J,EAAA,EAAA5J,EAAA6J,GAAA,EAAA,yBA5IsC,aAAW,EAAA,SAAA,CAAA,eA9F5D","names":["canvas","sparks","animId","tick","spawn","loop","ctx","w","h","i","s","progress","alpha","px","py","grad","onMount","canvas_1","root","$$value","VS_QUIPS","vsQuip","rankChangeQuip","change","lvlChip","level","$.noop","span","root_1","entryCard","$$anchor","entry","isBeatTarget","rankIdx","$.derived","isTop10","profileHref","a","root_2","div","$.child","div_1","span_1","div_2","getAvatarUrl","DuelAvatar","node","div_3","div_4","span_2","span_3","root_3","$$render","consequent","UserBadge","node_2","node_3","span_4","root_4","$.template_effect","$.set_text","text_3","TOP_TITLES","$.get","consequent_1","div_5","span_5","$.reset","$.set_attribute","text_1","$.set_class","xpText","$.append","activeMode","allEntries","$.state","$.proxy","$$props","loading","hasMore","fetched","$.user_effect","$.set","loadMore","json","newEntries","periods","filterUrl","period","isPeriod","fmtXp","n","xp","top3","rest","podiumOrder","podiumConfig","userQuip","percentile","rank","total","beatTarget","above","e","gap","vsText","userVisibleInList","section","$.first_child","fragment","div_6","div_7","div_8","p","a_1","root_5","$0","text_5","span_6","div_9","root_6","div_10","fragment_1","div_11","root_8","$.each","config","podiumHref","a_2","root_9","node_7","div_12","root_10","consequent_3","div_13","$.sibling","GoldSparkles","consequent_4","span_7","node_8","div_14","div_15","node_9","div_16","node_10","span_8","span_9","span_10","text_7","text_8","consequent_5","div_17","node_6","node_11","node_12","div_18","root_13","div_19","span_11","span_12","consequent_6","div_20","fragment_4","span_13","node_16","div_21","root_16","div_22","span_14","span_15","consequent_7","consequent_8","node_18","consequent_9","consequent_10","button","root_18","text_16","$.delegated","consequent_11","div_23","p_1","consequent_12","consequent_13","alternate","text_17","consequent_2","alternate_1","ue","pct","div_24","root_22","div_25","div_26","span_16","div_27","span_17","span_18","span_19","div_28","p_2","text_25","consequent_14","alternate_2","text_21","text_23","div_29","root_25","consequent_15","alternate_3"],"sources":["../../../../../../src/lib/components/GoldSparkles.svelte","../../../../../../src/lib/leaderboard-utils.ts","../../../../../../src/routes/l/+page.svelte"],"sourcesContent":["<script lang=\"ts\">\n\timport { onMount } from 'svelte';\n\timport { browser } from '$app/environment';\n\n\tinterface Spark {\n\t\tx: number;\n\t\ty: number;\n\t\tsize: number;\n\t\tspeed: number;\n\t\tdrift: number;\n\t\topacity: number;\n\t\tlife: number;\n\t\tmaxLife: number;\n\t}\n\n\tlet canvas: HTMLCanvasElement;\n\tlet sparks: Spark[] = [];\n\tlet animId: number;\n\tlet tick = 0;\n\n\tfunction spawn(): Spark {\n\t\treturn {\n\t\t\tx: 5 + Math.random() * 90,\n\t\t\ty: 95 + Math.random() * 10,\n\t\t\tsize: 1 + Math.random() * 2,\n\t\t\tspeed: 0.15 + Math.random() * 0.3,\n\t\t\tdrift: (Math.random() - 0.5) * 0.3,\n\t\t\topacity: 0.4 + Math.random() * 0.5,\n\t\t\tlife: 0,\n\t\t\tmaxLife: 80 + Math.random() * 100\n\t\t};\n\t}\n\n\tfunction loop() {\n\t\tif (!canvas) return;\n\t\tconst ctx = canvas.getContext('2d');\n\t\tif (!ctx) return;\n\t\ttick++;\n\n\t\tconst w = canvas.offsetWidth;\n\t\tconst h = canvas.offsetHeight;\n\t\tcanvas.width = w;\n\t\tcanvas.height = h;\n\t\tctx.clearRect(0, 0, w, h);\n\n\t\tif (sparks.length < 12 && tick % 6 === 0) {\n\t\t\tsparks.push(spawn());\n\t\t}\n\n\t\tfor (let i = sparks.length - 1; i >= 0; i--) {\n\t\t\tconst s = sparks[i];\n\t\t\ts.y -= s.speed;\n\t\t\ts.x += s.drift;\n\t\t\ts.life++;\n\n\t\t\tconst progress = s.life / s.maxLife;\n\t\t\tconst alpha = s.opacity * (1 - progress) * (1 - progress);\n\t\t\tconst px = (s.x / 100) * w;\n\t\t\tconst py = (s.y / 100) * h;\n\n\t\t\t// glow\n\t\t\tconst grad = ctx.createRadialGradient(px, py, 0, px, py, s.size * 4);\n\t\t\tgrad.addColorStop(0, `rgba(255, 215, 0, ${alpha * 0.15})`);\n\t\t\tgrad.addColorStop(1, 'rgba(255, 215, 0, 0)');\n\t\t\tctx.fillStyle = grad;\n\t\t\tctx.fillRect(px - s.size * 4, py - s.size * 4, s.size * 8, s.size * 8);\n\n\t\t\t// dot\n\t\t\tctx.beginPath();\n\t\t\tctx.arc(px, py, s.size, 0, Math.PI * 2);\n\t\t\tctx.fillStyle = `rgba(255, 215, 0, ${alpha})`;\n\t\t\tctx.fill();\n\n\t\t\tif (s.life >= s.maxLife || s.y < -5) {\n\t\t\t\tsparks.splice(i, 1);\n\t\t\t}\n\t\t}\n\n\t\tanimId = requestAnimationFrame(loop);\n\t}\n\n\tonMount(() => {\n\t\tif (browser && window.matchMedia('(hover: none)').matches) return;\n\t\tfor (let i = 0; i < 5; i++) {\n\t\t\tconst s = spawn();\n\t\t\ts.life = Math.random() * s.maxLife * 0.3;\n\t\t\ts.y = 20 + Math.random() * 60;\n\t\t\tsparks.push(s);\n\t\t}\n\t\tloop();\n\t\treturn () => cancelAnimationFrame(animId);\n\t});\n</script>\n\n<canvas bind:this={canvas} class=\"pointer-events-none absolute inset-0 h-full w-full\"></canvas>\n","import type { Tier } from '$lib/types/leaderboard';\n\nexport function getTier(score: number): Tier {\n\tif (score >= 9.0) return 'legendary';\n\tif (score >= 7.5) return 'elite';\n\tif (score >= 6.0) return 'rising';\n\tif (score >= 4.5) return 'contender';\n\treturn 'rookie';\n}\n\ninterface TierConfig {\n\tlabel: string;\n\tdotColor: string;\n\ttextColor: string;\n\tbgColor: string;\n}\n\nconst TIER_CONFIGS: Record<Tier, TierConfig> = {\n\tlegendary: { label: 'legendary', dotColor: 'bg-[#FFD700]', textColor: 'text-[#FFD700]', bgColor: 'bg-[#FFD700]/10' },\n\telite: { label: 'elite', dotColor: 'bg-purple', textColor: 'text-purple', bgColor: 'bg-purple/10' },\n\trising: { label: 'rising', dotColor: 'bg-coral', textColor: 'text-coral', bgColor: 'bg-coral/10' },\n\tcontender: { label: 'contender', dotColor: 'bg-blue-400', textColor: 'text-blue-400', bgColor: 'bg-blue-400/10' },\n\trookie: { label: 'rookie', dotColor: 'bg-muted/50', textColor: 'text-muted', bgColor: 'bg-muted/5' }\n};\n\nexport function tierConfig(tier: Tier): TierConfig {\n\treturn TIER_CONFIGS[tier];\n}\n\nconst RANK_UP_QUIPS = [\n\t\"you're on fire.\",\n\t'climbing the ranks like a madman.',\n\t'someone noticed. keep going.',\n\t'big d*ck energy confirmed.'\n];\n\nconst RANK_DOWN_QUIPS = [\n\t'oof. time for a rematch?',\n\t'they passed you. fight back.',\n\t'down but not out. probably.',\n\t'gravity hits everyone eventually.'\n];\n\nconst RANK_SAME_QUIPS = [\n\t'holding steady. boring but respectable.',\n\t'consistent. like a tuesday.',\n\t'nobody moved. suspicious.',\n\t'plateau achieved. now break it.'\n];\n\nconst VS_QUIPS = [\n\t'two warriors enter. one leaves slightly less embarrassed.',\n\t'this is personal now.',\n\t'the tension is thicker than... nevermind.',\n\t'someone call a ref. this is getting heated.',\n\t'neck and neck. among other things.',\n\t'a rivalry for the ages. or at least for the hour.',\n\t'the measurement wars continue.',\n\t'both cannons loaded. ready to fire.',\n\t'too close to call. submit again or live with it.',\n\t\"if this were a movie, there'd be a training montage right now.\"\n];\n\nexport function vsQuip(): string {\n\treturn VS_QUIPS[Math.floor(Math.random() * VS_QUIPS.length)];\n}\n\nexport function rankChangeQuip(change: number | null | undefined): string {\n\tif (change == null) return 'welcome to the board.';\n\tconst pool = change > 0 ? RANK_UP_QUIPS : change < 0 ? RANK_DOWN_QUIPS : RANK_SAME_QUIPS;\n\treturn pool[Math.floor(Math.random() * pool.length)];\n}\n","<script lang=\"ts\">\n\timport { onMount } from 'svelte';\n\timport GoldSparkles from '$lib/components/GoldSparkles.svelte';\n\timport DuelAvatar from '$lib/components/duel/DuelAvatar.svelte';\n\timport UserBadge from '$lib/components/UserBadge.svelte';\n\timport { rankChangeQuip, vsQuip } from '$lib/leaderboard-utils';\n\timport { getAvatarUrl } from '$lib/avatar';\n\timport { activeMode } from '$lib/stores/activeMode';\n\timport type { LeaderboardEntry } from '$lib/types/leaderboard';\n\n\tlet { data } = $props();\n\n\t// RAT-327: purple chrome accent for the leaderboard module.\n\tonMount(() => {\n\t\tactiveMode.set('leaderboard');\n\t\treturn () => activeMode.set(null);\n\t});\n\n\t// Accumulated entries (first page from server, then more from API)\n\tlet allEntries = $state<LeaderboardEntry[]>([...data.entries]);\n\tlet loading = $state(false);\n\tlet hasMore = $state(data.hasMore);\n\t// rows the server has read so far (blocked ones it left out included): the next page's offset.\n\t// A writable derived: a new page load resets it.\n\tlet fetched = $derived(data.served);\n\n\t// Reset when filters change (data changes)\n\t$effect(() => {\n\t\tallEntries = [...data.entries];\n\t\thasMore = data.hasMore;\n\t});\n\n\tasync function loadMore() {\n\t\tif (loading || !hasMore) return;\n\t\tloading = true;\n\t\ttry {\n\t\t\tconst res = await fetch(`/api/leaderboard?period=${data.period}&offset=${fetched}`);\n\t\t\tconst json = await res.json();\n\t\t\tconst newEntries = json.entries as LeaderboardEntry[];\n\t\t\tfetched = json.nextOffset ?? fetched + newEntries.length;\n\t\t\thasMore = json.hasMore ?? (newEntries.length > 0 && newEntries.length >= data.pageSize);\n\t\t\tallEntries = [...allEntries, ...newEntries];\n\t\t} catch {\n\t\t\thasMore = false;\n\t\t}\n\t\tloading = false;\n\t}\n\n\tconst periods = [\n\t\t{ value: 'daily', label: 'today' },\n\t\t{ value: 'weekly', label: 'this week' },\n\t\t{ value: 'monthly', label: 'this month' },\n\t\t{ value: 'all-time', label: 'all-time' }\n\t] as const;\n\n\tfunction filterUrl(period: string) {\n\t\treturn `/l?period=${period}`;\n\t}\n\n\t// A period tab shows XP EARNED in that window (a \"+840\" gain); all-time shows the\n\t// running total. The level is always the user's cumulative level either way.\n\tconst isPeriod = $derived(data.period !== 'all-time');\n\tfunction fmtXp(n: number): string {\n\t\treturn n.toLocaleString('en-US');\n\t}\n\tfunction xpText(xp: number): string {\n\t\treturn `${isPeriod ? '+' : ''}${fmtXp(xp)}`;\n\t}\n\n\tconst top3 = $derived(allEntries.slice(0, 3));\n\tconst rest = $derived(allEntries.slice(3));\n\n\tconst podiumOrder = $derived(\n\t\ttop3.length >= 3\n\t\t\t? [top3[1], top3[0], top3[2]]\n\t\t\t: top3.length === 2\n\t\t\t\t? [top3[1], top3[0]]\n\t\t\t\t: top3\n\t);\n\n\tconst podiumConfig = [\n\t\t{ barHeight: 'h-44 md:h-60', barBg: 'from-[#C0C0C0]/[0.18] to-[#C0C0C0]/[0.04]', borderColor: 'border-[#C0C0C0]/30', avatarMobile: 40, avatarDesktop: 56, scoreSize: 'text-2xl md:text-4xl', scoreColor: 'text-[#C0C0C0]', bgNumber: '2', bgNumberColor: 'text-[#C0C0C0]/[0.06]', glow: '', isFirst: false },\n\t\t{ barHeight: 'h-52 md:h-72', barBg: 'from-[#FFD700]/[0.22] to-[#FFD700]/[0.05]', borderColor: 'border-[#FFD700]/45', avatarMobile: 52, avatarDesktop: 72, scoreSize: 'text-3xl md:text-5xl', scoreColor: 'text-[#FFD700]', bgNumber: '1', bgNumberColor: 'text-[#FFD700]/[0.08]', glow: 'shadow-[0_0_80px_rgba(255,215,0,0.12)]', isFirst: true },\n\t\t{ barHeight: 'h-36 md:h-52', barBg: 'from-[#CD7F32]/[0.18] to-[#CD7F32]/[0.04]', borderColor: 'border-[#CD7F32]/30', avatarMobile: 40, avatarDesktop: 56, scoreSize: 'text-xl md:text-3xl', scoreColor: 'text-[#CD7F32]', bgNumber: '3', bgNumberColor: 'text-[#CD7F32]/[0.06]', glow: '', isFirst: false }\n\t];\n\n\tconst TOP_TITLES: string[] = [\n\t\t'the alpha specimen', 'dangerously close to greatness', 'bronze but make it girthy',\n\t\t'the overachiever', 'suspiciously consistent', 'mid-table menace',\n\t\t'lucky number seven (that\\'s all you got)', 'the grower, not the shower',\n\t\t'just barely made the cut', 'hanging on by a thread (phrasing)'\n\t];\n\n\tconst userQuip = $derived(data.userEntry ? rankChangeQuip(null) : '');\n\n\tfunction percentile(rank: number, total: number | undefined): number {\n\t\tif (!total || total === 0) return 100;\n\t\treturn Math.ceil((rank / total) * 100);\n\t}\n\n\t// The person one rank above you — how much XP you need to overtake them.\n\tconst beatTarget = $derived.by(() => {\n\t\tif (!data.userEntry || data.userEntry.rank <= 1) return null;\n\t\tlet above = allEntries.find((e: LeaderboardEntry) => e.rank === data.userEntry!.rank - 1);\n\t\tif (!above && data.userContext?.above) above = data.userContext.above;\n\t\tif (!above) return null;\n\t\tconst gap = Math.max(0, above.xp - data.userEntry!.xp);\n\t\treturn { nickname: above.nickname, gap };\n\t});\n\n\tconst vsText = $derived(beatTarget ? vsQuip() : '');\n\n\t// Check if user is visible in the loaded entries\n\tconst userVisibleInList = $derived(allEntries.some((e) => e.isYou));\n</script>\n\n<style>\n\t@keyframes glitch {\n\t\t0%, 100% { transform: translate(0, 0) skewX(0deg); text-shadow: 2px 0 #c084fc, -2px 0 #7c3aed; }\n\t\t10% { transform: translate(-2px, 1px) skewX(-2deg); text-shadow: 3px 0 #c084fc, -3px 0 #7c3aed; }\n\t\t20% { transform: translate(2px, -1px) skewX(1deg); text-shadow: -2px 0 #c084fc, 2px 0 #7c3aed; }\n\t\t30%, 70% { transform: translate(0, 0) skewX(0deg); text-shadow: 2px 0 #c084fc, -2px 0 #7c3aed; }\n\t\t72% { transform: translate(3px, 0) skewX(3deg); text-shadow: -3px 0 #c084fc, 4px 0 #7c3aed; }\n\t\t74% { transform: translate(-1px, 1px) skewX(-1deg); text-shadow: 2px 0 #c084fc, -2px 0 #7c3aed; }\n\t\t76% { transform: translate(0, 0) skewX(0deg); text-shadow: 2px 0 #c084fc, -2px 0 #7c3aed; }\n\t}\n\t.vs-glitch { animation: glitch 3s ease-in-out infinite; letter-spacing: 0.15em; }\n\t@media (hover: none) and (pointer: coarse) {\n\t\t.vs-glitch {\n\t\t\tanimation: none;\n\t\t\ttext-shadow: 1px 0 #c084fc, -1px 0 #7c3aed;\n\t\t}\n\t}\n</style>\n\n{#snippet lvlChip(level: number)}\n\t<span class=\"shrink-0 rounded-full bg-purple/15 px-1.5 py-0.5 text-[8px] font-bold uppercase tracking-wider text-purple sm:text-[9px]\">lv {level}</span>\n{/snippet}\n\n{#snippet entryCard(entry: LeaderboardEntry, isBeatTarget: boolean)}\n\t{@const rankIdx = entry.rank - 1}\n\t{@const isTop10 = entry.rank <= 10}\n\t{@const profileHref = entry.nickname ? `/u/${encodeURIComponent(entry.nickname)}` : undefined}\n\t<a\n\t\thref={profileHref}\n\t\tclass=\"group flex items-center gap-2 overflow-hidden rounded-2xl border no-underline text-inherit transition-colors sm:gap-3\n\t\t{entry.isYou ? 'border-purple/30 bg-purple/[0.04] ring-1 ring-purple/10'\n\t\t\t: isBeatTarget ? 'border-purple/20 bg-purple/[0.02]'\n\t\t\t: 'border-border/70 bg-surface/40'}\n\t\t{profileHref ? 'hover:border-purple/30 hover:bg-white/[0.02] cursor-pointer' : 'cursor-default'}\n\t\tpx-3 py-2.5 md:px-5 md:py-3.5\"\n\t>\n\t\t<div class=\"flex shrink-0 items-center\">\n\t\t\t<div class=\"flex h-8 w-8 items-center justify-center rounded-lg sm:h-9 sm:w-9 {isTop10 ? 'bg-purple/10 text-purple' : 'bg-white/[0.03] text-muted'}\">\n\t\t\t\t<span class=\"font-display text-xs font-bold sm:text-sm\">{entry.rank}</span>\n\t\t\t</div>\n\t\t</div>\n\t\t<div class=\"shrink-0\">\n\t\t\t<DuelAvatar nickname={entry.nickname} avatarUrl={getAvatarUrl(entry.avatarPath)} size={32} href=\"\" />\n\t\t</div>\n\t\t<div class=\"min-w-0 flex-1\">\n\t\t\t<div class=\"flex min-w-0 items-center gap-1.5\">\n\t\t\t\t<span class=\"truncate font-display text-xs font-semibold sm:text-sm {entry.isYou ? 'text-purple' : 'text-text'}\">{entry.nickname ?? 'anonymous'}</span>\n\t\t\t\t{#if entry.isYou}\n\t\t\t\t\t<span class=\"shrink-0 rounded-full bg-purple/15 px-1.5 py-0.5 text-[7px] font-bold uppercase tracking-wider text-purple sm:text-[8px]\">you</span>\n\t\t\t\t{/if}\n\t\t\t\t<UserBadge rater={entry.isRater} subscriber={entry.isSubscriber} verified={entry.isVerified} size={13} />\n\t\t\t\t{@render lvlChip(entry.level)}\n\t\t\t</div>\n\t\t\t{#if isTop10 && TOP_TITLES[rankIdx]}\n\t\t\t\t<span class=\"hidden text-[9px] text-muted/50 sm:text-[10px] md:inline\">\"{TOP_TITLES[rankIdx]}\"</span>\n\t\t\t{/if}\n\t\t</div>\n\t\t<div class=\"flex shrink-0 items-baseline gap-1\">\n\t\t\t<span class=\"font-display text-base font-bold sm:text-lg {entry.isYou ? 'text-purple' : 'text-text/80'}\">{xpText(entry.xp)}</span>\n\t\t\t<span class=\"text-[9px] font-semibold uppercase tracking-wide text-muted/50 sm:text-[10px]\">xp</span>\n\t\t</div>\n\t</a>\n{/snippet}\n\n<section class=\"relative min-h-screen overflow-hidden px-5 pt-20 pb-32 md:pt-32 md:pb-36\">\n\t<div class=\"pointer-events-none absolute inset-0 bg-[linear-gradient(rgba(255,255,255,.006)_1px,transparent_1px),linear-gradient(90deg,rgba(255,255,255,.006)_1px,transparent_1px)] bg-[size:60px_60px]\"></div>\n\t<div class=\"pointer-events-none absolute -top-40 left-1/2 hidden h-[500px] w-[700px] -translate-x-1/2 rounded-full bg-purple/[.04] blur-[150px] md:block\"></div>\n\n\t<div class=\"relative mx-auto max-w-5xl\">\n\t\t<div class=\"flex flex-wrap items-end justify-between gap-4\">\n\t\t\t<div>\n\t\t\t\t<h1 class=\"font-display text-[clamp(2.5rem,6vw,4rem)] font-bold leading-[0.95] tracking-tighter\">\n\t\t\t\t\tthe leaderboard.<br /><span class=\"text-muted\">who's grinding hardest.</span>\n\t\t\t\t</h1>\n\t\t\t\t<p class=\"mt-4 max-w-lg text-sm leading-relaxed text-muted\">\n\t\t\t\t\tranked by xp — earn it in <a href=\"/d\" class=\"font-semibold text-text underline decoration-purple/60 underline-offset-2 hover:decoration-purple\">duels</a>\n\t\t\t\t\tand <a href=\"/b\" class=\"font-semibold text-text underline decoration-purple/60 underline-offset-2 hover:decoration-purple\">beat me</a>.\n\t\t\t\t</p>\n\t\t\t</div>\n\t\t\t<a href=\"/d\" class=\"hidden rounded-xl bg-purple px-5 py-2.5 text-sm font-bold text-white no-underline transition-all hover:bg-purple-dark hover:shadow-[0_0_30px_rgba(168,85,247,0.2)] sm:inline-block\">\n\t\t\t\tearn some xp →\n\t\t\t</a>\n\t\t</div>\n\n\t\t<div class=\"mt-8 flex flex-wrap items-center gap-3\">\n\t\t\t<div class=\"flex rounded-lg border border-border bg-surface/50 p-0.5\">\n\t\t\t\t{#each periods as p (p.value)}\n\t\t\t\t\t<a href={filterUrl(p.value)} class=\"rounded-md px-3 py-1.5 text-xs font-semibold no-underline transition-all {data.period === p.value ? 'bg-purple text-white' : 'text-muted hover:text-text'}\">\n\t\t\t\t\t\t{p.label}\n\t\t\t\t\t</a>\n\t\t\t\t{/each}\n\t\t\t</div>\n\t\t\t<span class=\"ml-auto text-[10px] text-muted/30\">{data.totalRanked} ranked</span>\n\t\t</div>\n\n\t\t{#if allEntries.length === 0}\n\t\t\t<div class=\"mt-16 rounded-2xl border border-border bg-surface/50 p-12 text-center\">\n\t\t\t\t<p class=\"text-4xl\">🦗</p>\n\t\t\t\t<p class=\"mt-4 font-display text-xl font-bold tracking-tight\">crickets.</p>\n\t\t\t\t<p class=\"mt-2 text-sm text-muted\">nobody's earned xp here yet. be the first degenerate on the board.</p>\n\t\t\t\t<p class=\"mt-1 text-xs text-muted/40\">someone has to go first. it might as well be you.</p>\n\t\t\t\t<a href=\"/d\" class=\"mt-5 inline-block rounded-xl bg-purple px-6 py-3 text-sm font-semibold text-white no-underline transition-all hover:bg-purple-dark\">\n\t\t\t\t\tclaim the throne\n\t\t\t\t</a>\n\t\t\t</div>\n\t\t{:else}\n\t\t\t<div class=\"mt-12\">\n\t\t\t\t<!-- podium -->\n\t\t\t\t{#if top3.length >= 2}\n\t\t\t\t\t<div class=\"relative z-10 -mb-px flex items-end justify-center gap-2 md:gap-3\">\n\t\t\t\t\t\t{#each podiumOrder as entry, i (entry.nickname ?? entry.rank)}\n\t\t\t\t\t\t\t{@const config = podiumConfig[i]}\n\t\t\t\t\t\t\t{@const podiumHref = entry.nickname ? `/u/${encodeURIComponent(entry.nickname)}` : undefined}\n\t\t\t\t\t\t\t<a\n\t\t\t\t\t\t\t\thref={podiumHref}\n\t\t\t\t\t\t\t\tclass=\"group flex w-1/3 max-w-[220px] flex-col items-center no-underline text-inherit transition-transform {podiumHref ? 'hover:-translate-y-1 cursor-pointer' : 'cursor-default'}\"\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t{#if config.isFirst}\n\t\t\t\t\t\t\t\t\t<div class=\"mb-1 text-2xl leading-none md:text-3xl\">👑</div>\n\t\t\t\t\t\t\t\t{/if}\n\t\t\t\t\t\t\t\t<div class=\"relative flex w-full {config.barHeight} flex-col items-center rounded-t-2xl border border-b-0 {config.borderColor} bg-gradient-to-t {config.barBg} {config.glow} {entry.isYou ? 'ring-2 ring-purple/30' : ''} px-2 pt-3 pb-2 md:px-3 md:pt-4 md:pb-3\">\n\t\t\t\t\t\t\t\t\t{#if config.isFirst}<GoldSparkles />{/if}\n\t\t\t\t\t\t\t\t\t<span class=\"pointer-events-none absolute inset-0 flex items-center justify-center font-display text-[4rem] md:text-[7rem] font-black leading-none {config.bgNumberColor} select-none\">{config.bgNumber}</span>\n\t\t\t\t\t\t\t\t\t<div class=\"relative z-10 flex flex-col items-center gap-1 md:gap-2\">\n\t\t\t\t\t\t\t\t\t\t<div class=\"md:hidden\">\n\t\t\t\t\t\t\t\t\t\t\t<DuelAvatar nickname={entry.nickname} avatarUrl={getAvatarUrl(entry.avatarPath)} size={config.avatarMobile} href=\"\" />\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t<div class=\"hidden md:block\">\n\t\t\t\t\t\t\t\t\t\t\t<DuelAvatar nickname={entry.nickname} avatarUrl={getAvatarUrl(entry.avatarPath)} size={config.avatarDesktop} href=\"\" />\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t<span class=\"font-display {config.scoreSize} font-bold tracking-tight {config.scoreColor} leading-none\">lv {entry.level}</span>\n\t\t\t\t\t\t\t\t\t\t<span class=\"max-w-full truncate text-[11px] font-bold text-text md:text-sm\">{entry.nickname ?? 'anonymous'}</span>\n\t\t\t\t\t\t\t\t\t\t<span class=\"text-[10px] font-semibold text-muted/60\">{xpText(entry.xp)} xp</span>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t{/each}\n\t\t\t\t\t</div>\n\t\t\t\t{/if}\n\n\t\t\t\t<!-- list container -->\n\t\t\t\t<div class=\"relative rounded-b-2xl rounded-t-none border border-border/50 bg-surface/20 pt-4 p-2 pb-2 sm:rounded-2xl md:pt-5 md:p-3 md:pb-3 flex flex-col gap-2\">\n\t\t\t\t\t<div class=\"mb-1 flex items-center gap-3 px-2\">\n\t\t\t\t\t\t<span class=\"text-[10px] font-semibold uppercase tracking-widest text-muted/30\">the rest of the pack</span>\n\t\t\t\t\t\t<div class=\"h-px flex-1 bg-border/50\"></div>\n\t\t\t\t\t\t<span class=\"text-[10px] text-muted/20\">level / xp</span>\n\t\t\t\t\t</div>\n\n\t\t\t\t\t{#each rest as entry (entry.rank)}\n\t\t\t\t\t\t{@const isBeatTarget = !!(beatTarget && data.userEntry && entry.rank === data.userEntry.rank - 1)}\n\n\t\t\t\t\t\t{@render entryCard(entry, isBeatTarget)}\n\n\t\t\t\t\t\t<!-- VS divider -->\n\t\t\t\t\t\t{#if isBeatTarget && beatTarget}\n\t\t\t\t\t\t\t<div class=\"relative flex items-center gap-4 py-3\">\n\t\t\t\t\t\t\t\t<div class=\"h-px flex-1 bg-gradient-to-r from-transparent via-purple/30 to-transparent\"></div>\n\t\t\t\t\t\t\t\t<div class=\"flex flex-col items-center gap-1.5\">\n\t\t\t\t\t\t\t\t\t<span class=\"vs-glitch font-display text-3xl font-black text-white select-none\">VS</span>\n\t\t\t\t\t\t\t\t\t<span class=\"max-w-[280px] text-center text-[11px] leading-snug text-muted/60 italic\">{vsText}</span>\n\t\t\t\t\t\t\t\t\t<span class=\"text-[11px] font-bold text-purple\">only {fmtXp(beatTarget.gap)} xp apart</span>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div class=\"h-px flex-1 bg-gradient-to-r from-transparent via-purple/30 to-transparent\"></div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t{/if}\n\t\t\t\t\t{/each}\n\n\t\t\t\t\t<!-- User context: shown when user isn't in loaded entries -->\n\t\t\t\t\t{#if data.userContext && !userVisibleInList}\n\t\t\t\t\t\t<!-- gap indicator -->\n\t\t\t\t\t\t<div class=\"flex items-center gap-3 px-2 py-2\">\n\t\t\t\t\t\t\t<div class=\"h-px flex-1 bg-border/30\"></div>\n\t\t\t\t\t\t\t<span class=\"text-[10px] font-semibold text-muted/30\">· · · {data.userContext.you.rank - (rest.length > 0 ? rest[rest.length - 1].rank : 3)} others · · ·</span>\n\t\t\t\t\t\t\t<div class=\"h-px flex-1 bg-border/30\"></div>\n\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t<!-- above you -->\n\t\t\t\t\t\t{#if data.userContext.above}\n\t\t\t\t\t\t\t{@render entryCard(data.userContext.above, true)}\n\t\t\t\t\t\t\t<!-- VS -->\n\t\t\t\t\t\t\t{#if beatTarget}\n\t\t\t\t\t\t\t\t<div class=\"relative flex items-center gap-4 py-3\">\n\t\t\t\t\t\t\t\t\t<div class=\"h-px flex-1 bg-gradient-to-r from-transparent via-purple/30 to-transparent\"></div>\n\t\t\t\t\t\t\t\t\t<div class=\"flex flex-col items-center gap-1.5\">\n\t\t\t\t\t\t\t\t\t\t<span class=\"vs-glitch font-display text-3xl font-black text-white select-none\">VS</span>\n\t\t\t\t\t\t\t\t\t\t<span class=\"max-w-[280px] text-center text-[11px] leading-snug text-muted/60 italic\">{vsText}</span>\n\t\t\t\t\t\t\t\t\t\t<span class=\"text-[11px] font-bold text-purple\">only {fmtXp(beatTarget.gap)} xp apart</span>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t<div class=\"h-px flex-1 bg-gradient-to-r from-transparent via-purple/30 to-transparent\"></div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t{/if}\n\t\t\t\t\t\t{/if}\n\n\t\t\t\t\t\t<!-- you -->\n\t\t\t\t\t\t{@render entryCard(data.userContext.you, false)}\n\n\t\t\t\t\t\t<!-- below you -->\n\t\t\t\t\t\t{#if data.userContext.below}\n\t\t\t\t\t\t\t{@render entryCard(data.userContext.below, false)}\n\t\t\t\t\t\t{/if}\n\t\t\t\t\t{/if}\n\n\t\t\t\t\t<!-- load more -->\n\t\t\t\t\t{#if hasMore}\n\t\t\t\t\t\t<button\n\t\t\t\t\t\t\tonclick={loadMore}\n\t\t\t\t\t\t\tdisabled={loading}\n\t\t\t\t\t\t\tclass=\"mt-2 w-full rounded-xl border border-border/50 bg-surface/30 py-3 text-xs font-semibold text-muted transition-all hover:border-border hover:text-text disabled:opacity-50\"\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{loading ? 'loading...' : 'load more'}\n\t\t\t\t\t\t</button>\n\t\t\t\t\t{/if}\n\t\t\t\t</div>\n\t\t\t</div>\n\n\t\t\t<div class=\"mt-10 space-y-1 text-center\">\n\t\t\t\t<p class=\"text-xs text-muted/30\">\n\t\t\t\t\t{data.totalRanked} {data.totalRanked === 1 ? 'brave soul' : 'brave souls'} on the board.\n\t\t\t\t\t{#if data.totalRanked < 10}\n\t\t\t\t\t\troom for more degenerates. the bar is literally on the floor.\n\t\t\t\t\t{:else if data.totalRanked < 50}\n\t\t\t\t\t\tthe competition is heating up. some of y'all need to chill.\n\t\t\t\t\t{:else}\n\t\t\t\t\t\tthe competition is fierce. and oddly motivating. therapy is cheaper though.\n\t\t\t\t\t{/if}\n\t\t\t\t</p>\n\t\t\t</div>\n\t\t{/if}\n\t</div>\n</section>\n\n<!-- floating bottom card -->\n{#if data.userEntry}\n\t{@const ue = data.userEntry}\n\t{@const pct = percentile(ue.rank, ue.totalRanked)}\n\t<div class=\"fixed right-0 bottom-0 left-0 z-40 flex justify-center px-3 pb-[calc(72px+env(safe-area-inset-bottom))] pointer-events-none md:px-5 md:pb-5\">\n\t\t<div class=\"pointer-events-auto w-full max-w-[600px] rounded-2xl border border-border bg-surface/95 px-4 py-2.5 shadow-[0_-4px_40px_rgba(0,0,0,0.4)] md:backdrop-blur-xl\">\n\t\t\t<div class=\"flex flex-wrap items-center gap-2.5\">\n\t\t\t\t<span class=\"font-display text-xl font-bold text-purple\">#{ue.rank}</span>\n\t\t\t\t<div class=\"hidden h-6 w-px bg-border sm:block\"></div>\n\t\t\t\t<div class=\"flex flex-wrap items-center gap-1.5\">\n\t\t\t\t\t<span class=\"rounded-full bg-white/5 px-2 py-0.5 text-[10px] font-semibold text-muted\">top {pct}%</span>\n\t\t\t\t\t<span class=\"rounded-full bg-purple/15 px-2 py-0.5 text-[10px] font-semibold text-purple\">lv {ue.level}</span>\n\t\t\t\t</div>\n\t\t\t\t<span class=\"ml-auto font-display text-lg font-bold text-text\">{xpText(ue.xp)} <span class=\"text-xs font-semibold text-muted/60\">xp</span></span>\n\t\t\t</div>\n\t\t\t<div class=\"mt-1.5 flex flex-wrap items-center gap-3\">\n\t\t\t\t<p class=\"min-w-0 flex-1 basis-48 text-[11px] leading-relaxed italic text-muted/50\">\n\t\t\t\t\t{#if beatTarget}\n\t\t\t\t\t\t{fmtXp(beatTarget.gap)} xp behind @{beatTarget.nickname}. so close you can taste it.\n\t\t\t\t\t{:else}\n\t\t\t\t\t\t{userQuip}\n\t\t\t\t\t{/if}\n\t\t\t\t</p>\n\t\t\t\t<a href=\"/d\" class=\"shrink-0 rounded-full bg-purple px-5 py-2 text-xs font-bold text-white no-underline transition-all hover:bg-purple-dark hover:shadow-[0_0_20px_rgba(168,85,247,0.3)]\">\n\t\t\t\t\tearn more xp →\n\t\t\t\t</a>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n{:else}\n\t<div class=\"fixed right-0 bottom-0 left-0 z-40 flex justify-center px-3 pb-[calc(72px+env(safe-area-inset-bottom))] pointer-events-none md:px-5 md:pb-5\">\n\t\t<div class=\"pointer-events-auto flex w-full max-w-[600px] flex-wrap items-center gap-3 rounded-2xl border border-border bg-surface/95 px-4 py-3 shadow-[0_-4px_40px_rgba(0,0,0,0.4)] md:backdrop-blur-xl\">\n\t\t\t<div class=\"min-w-0 flex-1 basis-48\">\n\t\t\t\t<span class=\"text-sm font-semibold text-text\">you're not ranked yet.</span>\n\t\t\t\t<p class=\"text-[11px] leading-relaxed text-muted/40\">play a duel or a beat to earn xp and land on the board.</p>\n\t\t\t</div>\n\t\t\t<a href=\"/d\" class=\"shrink-0 rounded-full bg-purple px-5 py-2 text-xs font-bold text-white no-underline transition-all hover:bg-purple-dark hover:shadow-[0_0_20px_rgba(168,85,247,0.3)]\">\n\t\t\t\tearn xp →\n\t\t\t</a>\n\t\t</div>\n\t</div>\n{/if}\n"],"version":3}