/* Premium Game Rank rows */
html:not(#ygz1):not(#ygz2) body .rank-view-nav{display:inline-flex!important;gap:4px!important;padding:5px!important;margin:18px 0!important;border-radius:16px!important;background:#f1ebff!important;border:1px solid #e2d6fa!important}
html:not(#ygz1):not(#ygz2) body .rank-view-nav a{padding:9px 20px!important;border:0!important;border-radius:12px!important;background:transparent!important;color:#5b36c4!important;font-weight:850!important;box-shadow:none!important}
html:not(#ygz1):not(#ygz2) body .rank-view-nav a[aria-current]{background:linear-gradient(135deg,#8a5cf0,#5b36c4)!important;color:#fff!important;box-shadow:0 8px 18px rgba(91,54,196,.3)!important}
html:not(#ygz1):not(#ygz2) body .rank-list{display:grid!important;gap:12px!important}
html:not(#ygz1):not(#ygz2) body .rank-list .game-rank-row{position:relative!important;display:grid!important;grid-template-columns:48px 104px minmax(0,1fr) minmax(280px,340px)!important;gap:16px!important;align-items:center!important;padding:12px 16px 12px 14px!important;margin:0!important;border-radius:20px!important;border:1px solid #e6dcfb!important;background:linear-gradient(160deg,#ffffff 0%,#faf7ff 60%,#f4eeff 100%)!important;box-shadow:0 1px 0 #fff inset,0 8px 22px rgba(80,50,150,.07)!important;overflow:hidden;transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}
html:not(#ygz1):not(#ygz2) body .rank-list .game-rank-row:hover{transform:translateY(-2px);border-color:#c9b4f7!important;box-shadow:0 1px 0 #fff inset,0 16px 32px rgba(90,55,180,.15)!important}
html:not(#ygz1):not(#ygz2) body .rank-list .game-rank-row:not(:has(.game-rank-thumb)){grid-template-columns:48px minmax(0,1fr) minmax(280px,340px)!important}
/* medal */
html:not(#ygz1):not(#ygz2) body .game-rank-row .rank-medal{display:grid!important;place-items:center!important;width:46px!important;height:46px!important;margin:0!important;border:0!important;border-radius:15px!important;font-weight:900!important;font-size:15px!important;color:#5b36c4!important;background:#efe8ff!important;box-shadow:inset 0 0 0 1px #e0d3fb!important}
html:not(#ygz1):not(#ygz2) body .game-rank-row .rank-medal svg{width:24px!important;height:24px!important;color:#fff!important;stroke:#fff!important}
html:not(#ygz1):not(#ygz2) body .game-rank-row.podium-1 .rank-medal{background:linear-gradient(145deg,#ffe08a,#f2a93b 55%,#c9701d)!important;box-shadow:inset 0 -6px 10px rgba(0,0,0,.14),0 8px 18px rgba(201,112,29,.38)!important}
html:not(#ygz1):not(#ygz2) body .game-rank-row.podium-2 .rank-medal{background:linear-gradient(145deg,#f1f5fb,#a9b6cc 55%,#6f7d96)!important;box-shadow:inset 0 -6px 10px rgba(0,0,0,.14),0 8px 18px rgba(90,105,135,.32)!important}
html:not(#ygz1):not(#ygz2) body .game-rank-row.podium-3 .rank-medal{background:linear-gradient(145deg,#ffc79a,#d9823f 55%,#9c4f1c)!important;box-shadow:inset 0 -6px 10px rgba(0,0,0,.14),0 8px 18px rgba(156,79,28,.32)!important}
html:not(#ygz1):not(#ygz2) body .rank-list .game-rank-row.podium-1{border-color:#f0d58f!important;background:linear-gradient(120deg,#fffaf0 0%,#fff3d8 40%,#faf6ff 100%)!important}
html:not(#ygz1):not(#ygz2) body .rank-list .game-rank-row.podium-2{border-color:#d3dae6!important;background:linear-gradient(120deg,#f8fafd 0%,#eef2f8 40%,#faf7ff 100%)!important}
html:not(#ygz1):not(#ygz2) body .rank-list .game-rank-row.podium-3{border-color:#efcdb1!important;background:linear-gradient(120deg,#fff8f2 0%,#fdebdc 40%,#faf7ff 100%)!important}
html:not(#ygz1):not(#ygz2) body .rank-list .game-rank-row:is(.podium-1,.podium-2,.podium-3)::before{content:'';position:absolute;left:0;top:12px;bottom:12px;width:4px;border-radius:0 4px 4px 0;background:linear-gradient(#ffe08a,#c9701d)}
html:not(#ygz1):not(#ygz2) body .rank-list .game-rank-row.podium-2::before{background:linear-gradient(#e5ebf4,#6f7d96)}
html:not(#ygz1):not(#ygz2) body .rank-list .game-rank-row.podium-3::before{background:linear-gradient(#ffc79a,#9c4f1c)}
/* thumbnail + name */
html:not(#ygz1):not(#ygz2) body .game-rank-row .game-rank-thumb{display:block;width:104px;height:58px;object-fit:cover;border-radius:12px;background:#1d1438;box-shadow:0 6px 14px rgba(40,20,90,.2);transition:transform .18s ease}
html:not(#ygz1):not(#ygz2) body .game-rank-row:hover .game-rank-thumb{transform:scale(1.04)}
html:not(#ygz1):not(#ygz2) body .game-rank-row .rank-player a,html:not(#ygz1):not(#ygz2) body .game-rank-row .rank-player strong{color:#2b1f5c!important;font-size:16px!important;font-weight:900!important;letter-spacing:-.2px;text-decoration:none!important}
html:not(#ygz1):not(#ygz2) body .game-rank-row .rank-player a:hover{color:#6a3fd6!important}
html:not(#ygz1):not(#ygz2) body .game-rank-row .rank-player small{display:inline-flex!important;margin-top:4px;padding:2px 8px;border-radius:999px;background:#efe8ff;color:#6a4fc0!important;font-size:11px!important;font-weight:800!important;letter-spacing:.4px}
/* stats */
html:not(#ygz1):not(#ygz2) body .game-rank-stats{gap:10px!important}
html:not(#ygz1):not(#ygz2) body .game-rank-stat{min-height:56px!important;padding:8px 12px 8px 8px!important;gap:10px!important;border-radius:14px!important;border:1px solid var(--metric-border)!important;background:#fff!important;box-shadow:0 4px 12px rgba(60,40,130,.06)!important}
html:not(#ygz1):not(#ygz2) body .game-rank-stat>svg{width:38px!important;height:38px!important;flex:0 0 38px!important;padding:9px;box-sizing:border-box;border-radius:11px;color:#fff!important;stroke:#fff!important;background:linear-gradient(145deg,#7cc8ff,#2f7de1 55%,#1a4fb0);box-shadow:0 6px 12px rgba(47,125,225,.28)}
html:not(#ygz1):not(#ygz2) body .game-rank-stat.stat-playtime>svg{background:linear-gradient(145deg,#7ff0d0,#22b39b 55%,#16806f);box-shadow:0 6px 12px rgba(34,179,155,.28)}
html:not(#ygz1):not(#ygz2) body .game-rank-stat>span{font-size:15px!important;font-weight:900!important;color:#2b1f5c!important;line-height:1.15!important}
html:not(#ygz1):not(#ygz2) body .game-rank-stat small{font-size:10px!important;font-weight:800!important;letter-spacing:.9px!important;text-transform:uppercase;opacity:1!important;color:#8a80ad!important;margin-top:3px!important}
/* dark */
html.yg-dark:not(#ygz1):not(#ygz2) body .rank-list .game-rank-row{background:linear-gradient(160deg,#26223f,#1e1a35)!important;border-color:#3d3863!important;box-shadow:0 8px 22px rgba(0,0,0,.3)!important}
html.yg-dark:not(#ygz1):not(#ygz2) body .rank-list .game-rank-row.podium-1{background:linear-gradient(120deg,#3a2f17,#26223f 60%)!important;border-color:#6b5426!important}
html.yg-dark:not(#ygz1):not(#ygz2) body .rank-list .game-rank-row.podium-2{background:linear-gradient(120deg,#2f3440,#26223f 60%)!important;border-color:#4b5468!important}
html.yg-dark:not(#ygz1):not(#ygz2) body .rank-list .game-rank-row.podium-3{background:linear-gradient(120deg,#3a2619,#26223f 60%)!important;border-color:#6b4226!important}
html.yg-dark:not(#ygz1):not(#ygz2) body .game-rank-row .rank-player a,html.yg-dark:not(#ygz1):not(#ygz2) body .game-rank-row .rank-player strong,html.yg-dark:not(#ygz1):not(#ygz2) body .game-rank-stat>span{color:#f1ecff!important}
html.yg-dark:not(#ygz1):not(#ygz2) body .game-rank-row .rank-medal{background:#2c2850!important;color:#d9ccff!important;box-shadow:inset 0 0 0 1px #4a4378!important}
html.yg-dark:not(#ygz1):not(#ygz2) body .game-rank-row .rank-player small{background:#2c2850;color:#cdb8ff!important}
html.yg-dark:not(#ygz1):not(#ygz2) body .game-rank-stat{background:#1b182f!important;border-color:#3d3863!important}
html.yg-dark:not(#ygz1):not(#ygz2) body .rank-view-nav{background:#211d38!important;border-color:#3d3863!important}
html.yg-dark:not(#ygz1):not(#ygz2) body .rank-view-nav a:not([aria-current]){color:#d9ccff!important}
@media(max-width:800px){
html:not(#ygz1):not(#ygz2) body .rank-list .game-rank-row,html:not(#ygz1):not(#ygz2) body .rank-list .game-rank-row:not(:has(.game-rank-thumb)){grid-template-columns:42px 84px minmax(0,1fr)!important;gap:12px!important;padding:12px!important}
html:not(#ygz1):not(#ygz2) body .rank-list .game-rank-row:not(:has(.game-rank-thumb)){grid-template-columns:42px minmax(0,1fr)!important}
html:not(#ygz1):not(#ygz2) body .game-rank-row .rank-medal{width:40px!important;height:40px!important;border-radius:13px!important}
html:not(#ygz1):not(#ygz2) body .game-rank-row .game-rank-thumb{width:84px;height:48px;border-radius:10px}
html:not(#ygz1):not(#ygz2) body .game-rank-stats{grid-column:1/-1!important}
html:not(#ygz1):not(#ygz2) body .game-rank-row .rank-player a{font-size:15px!important}
}
@media(prefers-reduced-motion:reduce){html body .rank-list .game-rank-row,html body .game-rank-thumb{transition:none!important}html body .rank-list .game-rank-row:hover{transform:none!important}}
/* Player / creator leaderboard rows */
html:not(#ygz1):not(#ygz2) body .rank-category-nav{display:inline-flex!important;gap:4px!important;padding:5px!important;margin:12px 0!important;border-radius:16px!important;background:#f1ebff!important;border:1px solid #e2d6fa!important}
html:not(#ygz1):not(#ygz2) body .rank-category-nav a{padding:9px 18px!important;border:0!important;border-radius:12px!important;background:transparent!important;color:#5b36c4!important;font-weight:850!important;box-shadow:none!important;text-decoration:none!important}
html:not(#ygz1):not(#ygz2) body .rank-category-nav a[aria-current]{background:linear-gradient(135deg,#8a5cf0,#5b36c4)!important;color:#fff!important;box-shadow:0 8px 18px rgba(91,54,196,.3)!important}
html:not(#ygz1):not(#ygz2) body .rank-view-nav a svg{width:16px;height:16px}
html:not(#ygz1):not(#ygz2) body .rank-list .rank-row:not(.game-rank-row){position:relative!important;display:grid!important;grid-template-columns:48px 46px minmax(0,1fr) auto auto!important;gap:14px!important;align-items:center!important;padding:11px 16px 11px 14px!important;margin:0!important;border-radius:20px!important;border:1px solid #e6dcfb!important;background:linear-gradient(160deg,#ffffff 0%,#faf7ff 60%,#f4eeff 100%)!important;box-shadow:0 1px 0 #fff inset,0 8px 22px rgba(80,50,150,.07)!important;overflow:hidden;transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}
html:not(#ygz1):not(#ygz2) body .rank-list .rank-row:not(.game-rank-row):hover{transform:translateY(-2px);border-color:#c9b4f7!important;box-shadow:0 1px 0 #fff inset,0 16px 32px rgba(90,55,180,.15)!important}
html:not(#ygz1):not(#ygz2) body .rank-row .rank-medal{display:grid!important;place-items:center!important;width:46px!important;height:46px!important;margin:0!important;border:0!important;border-radius:15px!important;font-weight:900!important;font-size:15px!important;color:#5b36c4!important;background:#efe8ff!important;box-shadow:inset 0 0 0 1px #e0d3fb!important}
html:not(#ygz1):not(#ygz2) body .rank-row .rank-medal svg{width:24px!important;height:24px!important;color:#fff!important;stroke:#fff!important}
html:not(#ygz1):not(#ygz2) body .rank-row.podium-1 .rank-medal{background:linear-gradient(145deg,#ffe08a,#f2a93b 55%,#c9701d)!important;box-shadow:inset 0 -6px 10px rgba(0,0,0,.14),0 8px 18px rgba(201,112,29,.38)!important}
html:not(#ygz1):not(#ygz2) body .rank-row.podium-2 .rank-medal{background:linear-gradient(145deg,#f1f5fb,#a9b6cc 55%,#6f7d96)!important;box-shadow:inset 0 -6px 10px rgba(0,0,0,.14),0 8px 18px rgba(90,105,135,.32)!important}
html:not(#ygz1):not(#ygz2) body .rank-row.podium-3 .rank-medal{background:linear-gradient(145deg,#ffc79a,#d9823f 55%,#9c4f1c)!important;box-shadow:inset 0 -6px 10px rgba(0,0,0,.14),0 8px 18px rgba(156,79,28,.32)!important}
html:not(#ygz1):not(#ygz2) body .rank-list .rank-row.podium-1:not(.game-rank-row){border-color:#f0d58f!important;background:linear-gradient(120deg,#fffaf0 0%,#fff3d8 40%,#faf6ff 100%)!important}
html:not(#ygz1):not(#ygz2) body .rank-list .rank-row.podium-2:not(.game-rank-row){border-color:#d3dae6!important;background:linear-gradient(120deg,#f8fafd 0%,#eef2f8 40%,#faf7ff 100%)!important}
html:not(#ygz1):not(#ygz2) body .rank-list .rank-row.podium-3:not(.game-rank-row){border-color:#efcdb1!important;background:linear-gradient(120deg,#fff8f2 0%,#fdebdc 40%,#faf7ff 100%)!important}
html:not(#ygz1):not(#ygz2) body .rank-list .rank-row.is-you{border:2px solid #8a5cf0!important;box-shadow:0 0 0 4px rgba(138,92,240,.15),0 12px 26px rgba(91,54,196,.18)!important}
html:not(#ygz1):not(#ygz2) body .rank-list .rank-row.is-empty{opacity:.6;background:repeating-linear-gradient(135deg,#faf8ff 0 10px,#f4effd 10px 20px)!important;box-shadow:none!important}
html:not(#ygz1):not(#ygz2) body .rank-row .rank-ava{display:block;width:46px;height:46px;border-radius:14px;object-fit:cover;background:linear-gradient(145deg,#b39cff,#7a52e0);box-shadow:0 6px 14px rgba(40,20,90,.18)}
html:not(#ygz1):not(#ygz2) body .rank-row .rank-ava-empty{background:#ece6fa;box-shadow:none}
html:not(#ygz1):not(#ygz2) body .rank-row .rank-player a,html:not(#ygz1):not(#ygz2) body .rank-row .rank-player strong{color:#2b1f5c!important;font-size:16px!important;font-weight:900!important;text-decoration:none!important;overflow-wrap:anywhere}
html:not(#ygz1):not(#ygz2) body .rank-row .rank-player a:hover{color:#6a3fd6!important}
html:not(#ygz1):not(#ygz2) body .rank-row .rank-player small{display:inline-flex!important;margin-top:4px;padding:2px 8px;border-radius:999px;background:#efe8ff;color:#6a4fc0!important;font-size:11px!important;font-weight:800!important}
html:not(#ygz1):not(#ygz2) body .rank-row .rank-time,html:not(#ygz1):not(#ygz2) body .rank-row .rank-coins{display:inline-flex!important;align-items:center!important;gap:7px!important;padding:8px 13px!important;border-radius:13px!important;font-weight:900!important;font-size:14px!important;white-space:nowrap!important;background:#fff!important;border:1px solid #e3d9f6!important;color:#2b1f5c!important;box-shadow:0 4px 12px rgba(60,40,130,.06)!important}
html:not(#ygz1):not(#ygz2) body .rank-row .rank-time::before{content:"";width:16px;height:16px;background:#22b39b;-webkit-mask:center/contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E");mask:center/contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E")}
html:not(#ygz1):not(#ygz2) body .rank-row .rank-coins{background:linear-gradient(160deg,#fffaf0,#fff1cf)!important;border-color:#f0d58f!important;color:#a35f0c!important}
html:not(#ygz1):not(#ygz2) body .rank-row .rank-coins svg{width:18px!important;height:18px!important;color:#e3912b!important}
html.yg-dark:not(#ygz1):not(#ygz2) body .rank-list .rank-row:not(.game-rank-row){background:linear-gradient(160deg,#26223f,#1e1a35)!important;border-color:#3d3863!important;box-shadow:0 8px 22px rgba(0,0,0,.3)!important}
html.yg-dark:not(#ygz1):not(#ygz2) body .rank-list .rank-row.podium-1:not(.game-rank-row){background:linear-gradient(120deg,#3a2f17,#26223f 60%)!important;border-color:#6b5426!important}
html.yg-dark:not(#ygz1):not(#ygz2) body .rank-list .rank-row.podium-2:not(.game-rank-row){background:linear-gradient(120deg,#2f3440,#26223f 60%)!important;border-color:#4b5468!important}
html.yg-dark:not(#ygz1):not(#ygz2) body .rank-list .rank-row.podium-3:not(.game-rank-row){background:linear-gradient(120deg,#3a2619,#26223f 60%)!important;border-color:#6b4226!important}
html.yg-dark:not(#ygz1):not(#ygz2) body .rank-list .rank-row.is-empty{background:#1d1a33!important}
html.yg-dark:not(#ygz1):not(#ygz2) body .rank-row .rank-player a,html.yg-dark:not(#ygz1):not(#ygz2) body .rank-row .rank-player strong{color:#f1ecff!important}
html.yg-dark:not(#ygz1):not(#ygz2) body .rank-row .rank-time{background:#1b182f!important;border-color:#3d3863!important;color:#f1ecff!important}
html.yg-dark:not(#ygz1):not(#ygz2) body .rank-row .rank-coins{background:#2d2618!important;border-color:#6b5426!important;color:#ffd36e!important}
html.yg-dark:not(#ygz1):not(#ygz2) body :is(.rank-category-nav,.rank-view-nav){background:#211d38!important;border-color:#3d3863!important}
html.yg-dark:not(#ygz1):not(#ygz2) body :is(.rank-category-nav,.rank-view-nav) a:not([aria-current]){color:#d9ccff!important}
@media(max-width:700px){
html:not(#ygz1):not(#ygz2) body .rank-list .rank-row:not(.game-rank-row){grid-template-columns:40px 40px minmax(0,1fr)!important;gap:10px!important;padding:11px!important}
html:not(#ygz1):not(#ygz2) body .rank-row .rank-medal{width:40px!important;height:40px!important;border-radius:13px!important}
html:not(#ygz1):not(#ygz2) body .rank-row .rank-ava{width:40px;height:40px;border-radius:12px}
html:not(#ygz1):not(#ygz2) body .rank-row:not(.game-rank-row) .rank-time{grid-column:2/4;justify-self:start;font-size:13px!important;padding:6px 11px!important}
html:not(#ygz1):not(#ygz2) body .rank-row:not(.game-rank-row) .rank-coins{justify-self:start;font-size:13px!important;padding:6px 11px!important}
}
/* leaderboard prize cards */
html:not(#ygz1):not(#ygz2) body .rank-prizes{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:14px!important}
html:not(#ygz1):not(#ygz2) body .rank-prizes>.rank-prize{--p1:#ffe08a;--p2:#f2a93b;--p3:#c9701d;--pbg:#fff8e6;--pl:#f0d58f;position:relative!important;overflow:hidden!important;display:flex!important;align-items:center!important;gap:16px!important;padding:18px 20px!important;border-radius:22px!important;border:1px solid var(--pl)!important;background:radial-gradient(120% 140% at 0% 0%,#ffffff 0%,var(--pbg) 70%)!important;box-shadow:0 12px 26px rgba(80,50,150,.08)!important}
html:not(#ygz1):not(#ygz2) body .rank-prizes>.rank-prize.podium-2{--p1:#f1f5fb;--p2:#a9b6cc;--p3:#6f7d96;--pbg:#f2f5fa;--pl:#d3dae6}
html:not(#ygz1):not(#ygz2) body .rank-prizes>.rank-prize.podium-3{--p1:#ffc79a;--p2:#d9823f;--p3:#9c4f1c;--pbg:#fff4ec;--pl:#efcdb1}
html:not(#ygz1):not(#ygz2) body .rank-prizes>.rank-prize::after{content:"";position:absolute;right:-30px;top:-30px;width:120px;height:120px;border-radius:50%;background:radial-gradient(circle,var(--p1),transparent 70%);opacity:.6}
html:not(#ygz1):not(#ygz2) body .rank-prizes>.rank-prize .rank-medal{display:grid!important;place-items:center!important;width:56px!important;height:56px!important;min-width:56px!important;border:0!important;border-radius:18px!important;color:#fff!important;background:linear-gradient(145deg,var(--p1),var(--p2) 55%,var(--p3))!important;box-shadow:inset 0 -7px 12px rgba(0,0,0,.16),0 10px 22px rgba(0,0,0,.14)!important}
html:not(#ygz1):not(#ygz2) body .rank-prizes>.rank-prize .rank-medal svg{width:28px!important;height:28px!important;color:#fff!important;stroke:#fff!important}
html:not(#ygz1):not(#ygz2) body .rank-prizes>.rank-prize strong{display:block;font-size:22px!important;font-weight:900!important;color:#2b1f5c!important}
html:not(#ygz1):not(#ygz2) body .rank-prizes>.rank-prize small{display:inline-flex;align-items:center;gap:6px;margin-top:4px;padding:4px 10px;border-radius:999px;background:#fff;border:1px solid var(--pl);color:var(--p3)!important;font-weight:900!important;font-size:12.5px!important}
html:not(#ygz1):not(#ygz2) body .rank-prizes>.rank-prize small::before{content:"";width:12px;height:12px;border-radius:50%;background:radial-gradient(circle at 35% 30%,#fff3c4,#f2a93b 55%,#c9701d)}
html.yg-dark:not(#ygz1):not(#ygz2) body .rank-prizes>.rank-prize{background:linear-gradient(160deg,#26223f,#1e1a35)!important;border-color:#3d3863!important}
html.yg-dark:not(#ygz1):not(#ygz2) body .rank-prizes>.rank-prize strong{color:#f1ecff!important}
@media(max-width:640px){html:not(#ygz1):not(#ygz2) body .rank-prizes{grid-template-columns:1fr!important}}
