@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;600;800;900&family=Poppins:wght@400;500;600;700;800;900&family=Rajdhani:wght@500;600;700;800;900&display=swap');

:root {
    --bg-color: #07080a;
    --card-bg: rgba(13, 14, 18, 0.85);
    --border-color: rgba(255, 255, 255, 0.06);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-header: #64748b;
    --active-tab: #fbbf24;
    --pixel-font: 'Rajdhani', 'Outfit', sans-serif;
    --body-font: 'Poppins', 'Inter', sans-serif;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: var(--body-font), sans-serif;
    background-color: #07080a;
    background-image: 
        radial-gradient(circle at 50% 300px, rgba(139, 92, 246, 0.12) 0%, transparent 65%),
        linear-gradient(rgba(255,255,255,0.003) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.003) 1px, transparent 1px);
    background-size: 100% 100%, 64px 64px, 64px 64px;
    color: var(--text-main);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='%23a855f7' stroke='%23ffffff' stroke-width='2'%3E%3Cpath d='M3 3l7.07 16.97 2.51-7.39 7.39-2.51L3 3z'/%3E%3C/svg%3E"), auto;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70vh;
    background: radial-gradient(circle at 50% -20%, rgba(34, 197, 94, 0.15), rgba(168, 85, 247, 0.2), rgba(56, 189, 248, 0.15), transparent 70%);
    z-index: -3;
    filter: blur(80px);
    animation: auroraMotion 15s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes auroraMotion {
    0% {
        transform: translate(0, 0) scale(1) rotate(0deg);
        background: radial-gradient(circle at 40% -20%, rgba(34, 197, 94, 0.12), rgba(168, 85, 247, 0.18), rgba(56, 189, 248, 0.12), transparent 75%);
    }
    50% {
        transform: translate(2%, 4%) scale(1.05) rotate(2deg);
        background: radial-gradient(circle at 60% -10%, rgba(56, 189, 248, 0.16), rgba(34, 197, 94, 0.1), rgba(168, 85, 247, 0.2), transparent 70%);
    }
    100% {
        transform: translate(-1%, -2%) scale(0.98) rotate(-1deg);
        background: radial-gradient(circle at 50% -25%, rgba(168, 85, 247, 0.16), rgba(56, 189, 248, 0.12), rgba(34, 197, 94, 0.12), transparent 72%);
    }
}

a, button, .mode-tab, .lb-row, .cmd-palette-trigger, .icon-btn, .close-btn, .fav-btn, .action-btn {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='%23fbbf24' stroke='%23ffffff' stroke-width='2'%3E%3Cpath d='M3 3l7.07 16.97 2.51-7.39 7.39-2.51L3 3z'/%3E%3C/svg%3E"), pointer !important;
}
/* Pixel font styling overrides for headings, navigation, stats, and badges */
h1, h2, h3, .podium-name, .rpg-modal-name, .lb-rank, .badge, .news-ticker-label, .th-rank, .th-player, .th-tiers, .th-tier-lbl, .tierlist-block, .octagon-badge-inner, .prof-pos-rank, .prof-section-title, .tested-counter, .action-btn {
    font-family: var(--pixel-font) !important;
    letter-spacing: 0.5px;
}
.ambient-background {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    overflow: hidden;
    z-index: -2;
    pointer-events: none;
    background: var(--bg-color);
}
.noise-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: url('data:image/svg+xml,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)"/%3E%3C/svg%3E');
    opacity: 0.04;
    z-index: 1;
    pointer-events: none;
}
.ambient-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.25;
    animation: floatBlob 22s infinite alternate ease-in-out;
}
.blob-1 {
    top: -15%; left: -5%;
    width: 55vw; height: 55vw;
    background: rgba(139, 92, 246, 0.28);
}
.blob-2 {
    bottom: -15%; right: -5%;
    width: 65vw; height: 65vw;
    background: rgba(168, 85, 247, 0.22);
    animation-delay: -5s;
    animation-duration: 25s;
}
.blob-3 {
    top: 25%; right: 5%;
    width: 50vw; height: 50vw;
    background: rgba(236, 72, 153, 0.12);
    animation-delay: -10s;
    animation-duration: 22s;
}
.blob-4 {
    bottom: 25%; left: 5%;
    width: 45vw; height: 45vw;
    background: rgba(59, 130, 246, 0.15);
    animation-delay: -15s;
    animation-duration: 28s;
}
@keyframes floatBlob {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(6vw, 6vh) scale(1.1); }
    66% { transform: translate(-6vw, 3vh) scale(0.9); }
    100% { transform: translate(3vw, -6vh) scale(1.15); }
}
.app-container {
    max-width: 1500px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}
.header-left h1 {
    font-size: 2.2rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 0.4rem;
    background: linear-gradient(135deg, #ffffff 20%, #fbbf24 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
    filter: drop-shadow(0 2px 10px rgba(251,191,36,0.25));
}
.header-left p {
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 500;
}
.discord-header-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: #5865F2 !important; 
    color: #fff;
    padding: 0.75rem 1.5rem;
    border: 2px solid #5865F2;
    border-top-color: #7289da;
    border-left-color: #7289da;
    border-radius: 8px;
    font-weight: 800;
    text-decoration: none;
    box-shadow: inset -3px -3px 0 rgba(0,0,0,0.35), inset 3px 3px 0 rgba(255,255,255,0.2), 0 0 15px rgba(88, 101, 242, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}
.discord-header-btn:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: inset -2px -2px 0 rgba(0,0,0,0.4), inset 2px 2px 0 rgba(255,255,255,0.3), 0 0 25px rgba(88, 101, 242, 0.75);
}
.discord-header-btn img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}
.icon-btn {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50%;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.3s;
}
.icon-btn:hover {
    background: rgba(255,255,255,0.1);
    transform: scale(1.1);
    color: #fbbf24;
}
.modes-bar-wrapper {
    background: rgba(10, 11, 15, 0.45) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    padding: 1.1rem 1.4rem;
    margin-bottom: 2.2rem;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.35);
}
.modes-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.85rem;
    perspective: 600px;
    transform-style: preserve-3d;
}
.modes-bar::-webkit-scrollbar { height: 4px; }
.modes-bar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 4px; }
.mode-tab {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%) !important;
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 9999px !important;
    padding: 0.75rem 1.5rem !important;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.1, 0.4, 0.2, 1);
    white-space: nowrap;
    opacity: 0.85;
    box-shadow: 
        0 4px 14px rgba(0, 0, 0, 0.35),
        inset 1.5px 1.5px 1px -0.5px rgba(255, 255, 255, 0.35),
        inset -1.5px -1.5px 1px -0.5px rgba(0, 0, 0, 0.6),
        inset 0 0 8px 4px rgba(255, 255, 255, 0.04) !important;
    transform-style: preserve-3d;
}
.mode-tab::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 50%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0) 100%);
    border-radius: 9999px 9999px 0 0;
    pointer-events: none;
}
.mode-tab:active {
    transform: translateY(1.5px) scale(0.97) !important;
    filter: brightness(0.92);
    box-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.4),
        inset 2px 2px 4px rgba(0, 0, 0, 0.7),
        inset -1px -1px 2px rgba(255, 255, 255, 0.2) !important;
}
.mode-tab img {
    width: 18px;
    height: 18px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.6)) opacity(0.85);
    transition: transform 0.25s ease, filter 0.25s ease;
    z-index: 1;
}
.mode-tab span {
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--text-main);
    transition: color 0.25s ease;
    z-index: 1;
    text-shadow: 0 1px 2px rgba(0,0,0,0.6);
}
.mode-tab:hover {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.04) 100%) !important;
    transform: translateY(-2.5px) scale(1.04) !important;
    opacity: 1;
    border-color: rgba(255, 255, 255, 0.3) !important;
    box-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.45),
        0 0 16px rgba(255, 255, 255, 0.12),
        inset 2px 2px 2px 0px rgba(255, 255, 255, 0.6),
        inset -2px -2px 2px 0px rgba(0, 0, 0, 0.7) !important;
    filter: brightness(1.12);
}
.mode-tab:hover img {
    filter: drop-shadow(0 3px 8px rgba(0,0,0,0.8)) opacity(1);
    transform: scale(1.12);
}

/* Custom Liquid Glass Metallic color glows for active modes */

.mode-tab[data-mode="Overall"].active {
    border-color: rgba(251, 191, 36, 0.85) !important;
    background: linear-gradient(180deg, rgba(251, 191, 36, 0.28) 0%, rgba(251, 191, 36, 0.08) 100%) !important;
    box-shadow: 
        0 0 25px rgba(251, 191, 36, 0.55),
        0 6px 20px rgba(0, 0, 0, 0.5),
        inset 2px 2px 3px 0px rgba(255, 255, 255, 0.6),
        inset -2px -2px 3px 0px rgba(0, 0, 0, 0.8),
        inset 0 0 12px rgba(251, 191, 36, 0.3) !important;
    animation: activeGoldPulse 2.5s infinite alternate ease-in-out;
    opacity: 1;
}
.mode-tab[data-mode="Overall"].active span { color: #fbbf24; text-shadow: 0 0 10px rgba(251,191,36,0.6); }
.mode-tab[data-mode="Overall"].active img { transform: scale(1.15); filter: opacity(1) drop-shadow(0 0 6px rgba(251,191,36,0.6)); }

.mode-tab[data-mode="Creeper"].active {
    border-color: rgba(34, 197, 94, 0.85) !important;
    background: linear-gradient(180deg, rgba(34, 197, 94, 0.28) 0%, rgba(34, 197, 94, 0.08) 100%) !important;
    box-shadow: 
        0 0 25px rgba(34, 197, 94, 0.55),
        0 6px 20px rgba(0, 0, 0, 0.5),
        inset 2px 2px 3px 0px rgba(255, 255, 255, 0.6),
        inset -2px -2px 3px 0px rgba(0, 0, 0, 0.8),
        inset 0 0 12px rgba(34, 197, 94, 0.3) !important;
    animation: activeLimePulse 2.5s infinite alternate ease-in-out;
    opacity: 1;
}
.mode-tab[data-mode="Creeper"].active span { color: #22c55e; text-shadow: 0 0 10px rgba(34, 197, 94, 0.6); }
.mode-tab[data-mode="Creeper"].active img { transform: scale(1.15); filter: opacity(1) drop-shadow(0 0 6px rgba(34,197,94,0.6)); }

.mode-tab[data-mode="DiaxVanilla"].active,
.mode-tab[data-mode="OGV"].active,
.mode-tab[data-mode="DiamondSMP"].active,
.mode-tab[data-mode="Elytra"].active {
    border-color: rgba(56, 189, 248, 0.85) !important;
    background: linear-gradient(180deg, rgba(56, 189, 248, 0.28) 0%, rgba(56, 189, 248, 0.08) 100%) !important;
    box-shadow: 
        0 0 25px rgba(56, 189, 248, 0.55),
        0 6px 20px rgba(0, 0, 0, 0.5),
        inset 2px 2px 3px 0px rgba(255, 255, 255, 0.6),
        inset -2px -2px 3px 0px rgba(0, 0, 0, 0.8),
        inset 0 0 12px rgba(56, 189, 248, 0.3) !important;
    animation: activeCyanPulse 2.5s infinite alternate ease-in-out;
    opacity: 1;
}
.mode-tab[data-mode="DiaxVanilla"].active span,
.mode-tab[data-mode="OGV"].active span,
.mode-tab[data-mode="DiamondSMP"].active span,
.mode-tab[data-mode="Elytra"].active span { color: #38bdf8; text-shadow: 0 0 10px rgba(56, 189, 248, 0.6); }
.mode-tab[data-mode="DiaxVanilla"].active img,
.mode-tab[data-mode="OGV"].active img,
.mode-tab[data-mode="DiamondSMP"].active img,
.mode-tab[data-mode="Elytra"].active img { transform: scale(1.15); filter: opacity(1) drop-shadow(0 0 6px rgba(56,189,248,0.6)); }

.mode-tab[data-mode="SpearMace"].active,
.mode-tab[data-mode="Trident"].active,
.mode-tab[data-mode="Debuff"].active {
    border-color: rgba(168, 85, 247, 0.85) !important;
    background: linear-gradient(180deg, rgba(168, 85, 247, 0.28) 0%, rgba(168, 85, 247, 0.08) 100%) !important;
    box-shadow: 
        0 0 25px rgba(168, 85, 247, 0.55),
        0 6px 20px rgba(0, 0, 0, 0.5),
        inset 2px 2px 3px 0px rgba(255, 255, 255, 0.6),
        inset -2px -2px 3px 0px rgba(0, 0, 0, 0.8),
        inset 0 0 12px rgba(168, 85, 247, 0.3) !important;
    animation: activePurplePulse 2.5s infinite alternate ease-in-out;
    opacity: 1;
}
.mode-tab[data-mode="SpearMace"].active span,
.mode-tab[data-mode="Trident"].active span,
.mode-tab[data-mode="Debuff"].active span { color: #a855f7; text-shadow: 0 0 10px rgba(168, 85, 247, 0.6); }
.mode-tab[data-mode="SpearMace"].active img,
.mode-tab[data-mode="Trident"].active img,
.mode-tab[data-mode="Debuff"].active img { transform: scale(1.15); filter: opacity(1) drop-shadow(0 0 6px rgba(168,85,247,0.6)); }

.mode-tab[data-mode="Shieldless UHC"].active,
.mode-tab[data-mode="Bow"].active,
.mode-tab[data-mode="Speed"].active {
    border-color: rgba(249, 115, 22, 0.85) !important;
    background: linear-gradient(180deg, rgba(249, 115, 22, 0.28) 0%, rgba(249, 115, 22, 0.08) 100%) !important;
    box-shadow: 
        0 0 25px rgba(249, 115, 22, 0.55),
        0 6px 20px rgba(0, 0, 0, 0.5),
        inset 2px 2px 3px 0px rgba(255, 255, 255, 0.6),
        inset -2px -2px 3px 0px rgba(0, 0, 0, 0.8),
        inset 0 0 12px rgba(249, 115, 22, 0.3) !important;
    animation: activeOrangePulse 2.5s infinite alternate ease-in-out;
    opacity: 1;
}
.mode-tab[data-mode="Shieldless UHC"].active span,
.mode-tab[data-mode="Bow"].active span,
.mode-tab[data-mode="Speed"].active span { color: #f97316; text-shadow: 0 0 10px rgba(249, 115, 22, 0.6); }
.mode-tab[data-mode="Shieldless UHC"].active img,
.mode-tab[data-mode="Bow"].active img,
.mode-tab[data-mode="Speed"].active img { transform: scale(1.15); filter: opacity(1) drop-shadow(0 0 6px rgba(249,115,22,0.6)); }

.mode-tab[data-mode="Manhunt"].active,
.mode-tab[data-mode="BedPvP"].active,
.mode-tab[data-mode="CartPvP"].active {
    border-color: rgba(244, 63, 94, 0.85) !important;
    background: linear-gradient(180deg, rgba(244, 63, 94, 0.28) 0%, rgba(244, 63, 94, 0.08) 100%) !important;
    box-shadow: 
        0 0 25px rgba(244, 63, 94, 0.55),
        0 6px 20px rgba(0, 0, 0, 0.5),
        inset 2px 2px 3px 0px rgba(255, 255, 255, 0.6),
        inset -2px -2px 3px 0px rgba(0, 0, 0, 0.8),
        inset 0 0 12px rgba(244, 63, 94, 0.3) !important;
    animation: activeRosePulse 2.5s infinite alternate ease-in-out;
    opacity: 1;
}
.mode-tab[data-mode="Manhunt"].active span,
.mode-tab[data-mode="BedPvP"].active span,
.mode-tab[data-mode="CartPvP"].active span { color: #f43f5e; text-shadow: 0 0 10px rgba(244, 63, 94, 0.6); }
.mode-tab[data-mode="Manhunt"].active img,
.mode-tab[data-mode="BedPvP"].active img,
.mode-tab[data-mode="CartPvP"].active img { transform: scale(1.15); filter: opacity(1) drop-shadow(0 0 6px rgba(244,63,94,0.6)); }

@keyframes activeGoldPulse {
    0% { box-shadow: 0 0 16px rgba(251, 191, 36, 0.35), inset 1.5px 1.5px 2px rgba(255,255,255,0.4), inset -1.5px -1.5px 2px rgba(0,0,0,0.7) !important; }
    100% { box-shadow: 0 0 32px rgba(251, 191, 36, 0.75), inset 2px 2px 4px rgba(255,255,255,0.7), inset -2px -2px 4px rgba(0,0,0,0.85) !important; }
}
@keyframes activeLimePulse {
    0% { box-shadow: 0 0 16px rgba(34, 197, 94, 0.35), inset 1.5px 1.5px 2px rgba(255,255,255,0.4), inset -1.5px -1.5px 2px rgba(0,0,0,0.7) !important; }
    100% { box-shadow: 0 0 32px rgba(34, 197, 94, 0.75), inset 2px 2px 4px rgba(255,255,255,0.7), inset -2px -2px 4px rgba(0,0,0,0.85) !important; }
}
@keyframes activeCyanPulse {
    0% { box-shadow: 0 0 16px rgba(56, 189, 248, 0.35), inset 1.5px 1.5px 2px rgba(255,255,255,0.4), inset -1.5px -1.5px 2px rgba(0,0,0,0.7) !important; }
    100% { box-shadow: 0 0 32px rgba(56, 189, 248, 0.75), inset 2px 2px 4px rgba(255,255,255,0.7), inset -2px -2px 4px rgba(0,0,0,0.85) !important; }
}
@keyframes activePurplePulse {
    0% { box-shadow: 0 0 16px rgba(168, 85, 247, 0.35), inset 1.5px 1.5px 2px rgba(255,255,255,0.4), inset -1.5px -1.5px 2px rgba(0,0,0,0.7) !important; }
    100% { box-shadow: 0 0 32px rgba(168, 85, 247, 0.75), inset 2px 2px 4px rgba(255,255,255,0.7), inset -2px -2px 4px rgba(0,0,0,0.85) !important; }
}
@keyframes activeOrangePulse {
    0% { box-shadow: 0 0 16px rgba(249, 115, 22, 0.35), inset 1.5px 1.5px 2px rgba(255,255,255,0.4), inset -1.5px -1.5px 2px rgba(0,0,0,0.7) !important; }
    100% { box-shadow: 0 0 32px rgba(249, 115, 22, 0.75), inset 2px 2px 4px rgba(255,255,255,0.7), inset -2px -2px 4px rgba(0,0,0,0.85) !important; }
}
@keyframes activeRosePulse {
    0% { box-shadow: 0 0 16px rgba(244, 63, 94, 0.35), inset 1.5px 1.5px 2px rgba(255,255,255,0.4), inset -1.5px -1.5px 2px rgba(0,0,0,0.7) !important; }
    100% { box-shadow: 0 0 32px rgba(244, 63, 94, 0.75), inset 2px 2px 4px rgba(255,255,255,0.7), inset -2px -2px 4px rgba(0,0,0,0.85) !important; }
}

/* LIVE TICKER */
.news-ticker-wrap {
    background: linear-gradient(90deg, #10061e, #1a0333, #06101e, #10061e) !important;
    background-size: 300% 100% !important;
    animation: liveBgFlow 6s linear infinite !important;
    border: 1.5px solid rgba(168, 85, 247, 0.4) !important;
    box-shadow: 
        inset 0 0 15px rgba(168, 85, 247, 0.2),
        0 8px 30px rgba(0,0,0,0.5),
        0 0 15px rgba(168, 85, 247, 0.15) !important;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    height: 46px;
}
@keyframes liveBgFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.news-ticker-label {
    background: linear-gradient(135deg, #ef4444, #f97316, #ef4444) !important;
    background-size: 200% auto !important;
    animation: liveBgFlow 3s linear infinite, portalPulse 2s infinite ease-in-out !important;
    color: #fff;
    font-weight: 900;
    font-size: 0.9rem !important;
    padding: 0 1.4rem;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 2;
    box-shadow: 4px 0 15px rgba(0,0,0,0.4);
    border-right: 1.5px solid rgba(255,255,255,0.1) !important;
    font-family: 'Rajdhani', sans-serif !important;
    letter-spacing: 1px;
}
@keyframes portalPulse {
    0%, 100% { opacity: 0.95; filter: drop-shadow(0 0 4px rgba(239, 68, 68, 0.5)); }
    50% { opacity: 1; filter: drop-shadow(0 0 12px rgba(249, 115, 22, 0.8)); }
}
.pulse-icon {
    width: 14px;
    height: 14px;
    animation: flamePulse 1s infinite alternate ease-in-out;
}
@keyframes flamePulse {
    from { transform: scale(1); filter: drop-shadow(0 0 2px #ef4444); }
    to { transform: scale(1.2); filter: drop-shadow(0 0 8px #f97316); }
}
.news-ticker-content {
    flex: 1;
    overflow: hidden;
    position: relative;
    height: 100%;
}
.news-ticker-track {
    display: flex;
    align-items: center;
    height: 100%;
    white-space: nowrap;
    position: absolute;
    animation: tickerMove 90s linear infinite;
    color: var(--text-main);
    font-size: 0.9rem;
    gap: 3rem;
    will-change: transform;
}
@keyframes tickerMove {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

.live-ticker-flame {
    width: 15px;
    height: 15px;
    color: #f97316;
    fill: #f97316;
    vertical-align: -2px;
    margin-right: 6px;
    animation: liveFlame 1.2s infinite alternate ease-in-out;
    display: inline-block;
}
@keyframes liveFlame {
    0% { transform: scale(1) rotate(-5deg); filter: drop-shadow(0 0 2px #ef4444); }
    100% { transform: scale(1.2) rotate(5deg); filter: drop-shadow(0 0 6px #f97316) brightness(1.2); }
}

/* ACTIONS BAR & CMD PALETTE */
.actions-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0 1.25rem;
    gap: 1rem;
}
.tested-counter {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;    white-space: nowrap;
}

.search-cta-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-grow: 1;
    max-width: 480px;
}
.search-cta-text {
    font-family: var(--pixel-font) !important;
    font-size: 0.65rem;
    color: #fbbf24;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
    text-shadow: 0 0 10px rgba(251, 191, 36, 0.45);
    animation: ctaPulse 2s infinite ease-in-out;
    user-select: none;
}
@keyframes ctaPulse {
    0%, 100% { opacity: 0.85; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.03); }
}
.icon-sparkle {
    width: 14px;
    height: 14px;
    color: #fbbf24;
    animation: spinSparkle 4s linear infinite;
    display: inline-block;
}
@keyframes spinSparkle {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.cmd-palette-trigger {
    flex: 1;
    max-width: 420px;
    background: rgba(13, 14, 18, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 12px !important;
    padding: 0.8rem 1.4rem !important;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    color: #94a3b8 !important;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.25);
}
.cmd-palette-trigger:hover {
    background: rgba(20, 22, 30, 0.8) !important;
    border-color: #a855f7 !important;
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.25), 0 8px 24px rgba(0,0,0,0.3) !important;
    color: #f8fafc !important;
}
.cmd-palette-trigger i {
    color: #a855f7;
    transform: scale(1.15);
    transition: transform 0.3s ease;
}
.cmd-palette-trigger:hover i {
    transform: scale(1.3);
}
.cmd-palette-trigger .kbd-hint {
    margin-left: auto;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px;
    padding: 0.25rem 0.6rem;
    font-size: 0.75rem;
    color: #cbd5e1;
    font-weight: 700;
}

.search-clear {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    border-radius: 50%;
    color: var(--text-muted);
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s;
}
.search-clear:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}
.search-wrapper.has-query .search-clear {
    opacity: 1;
    pointer-events: auto;
}
.search-icon {
    position: absolute;
    left: 16px !important;
    width: 18px !important;
    height: 18px !important;
    color: #a855f7 !important;
    pointer-events: none;
    transition: transform 0.3s ease, color 0.2s;
    flex-shrink: 0;
}
.search-input {
    width: 100%;
    padding: 0.85rem 2.5rem 0.85rem 2.8rem !important;
    background: rgba(13, 14, 18, 0.85) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 12px !important;
    color: var(--text-main);
    font-family: var(--body-font), sans-serif !important;
    font-size: 0.95rem;
    font-weight: 500;
    outline: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(12px);
}
.search-input::placeholder {
    color: var(--text-muted);
    font-weight: 400;
}
.search-input:focus {
    border-color: #a855f7 !important;
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.15), 0 8px 30px rgba(168, 85, 247, 0.1) !important;
    background: rgba(20, 22, 30, 0.95) !important;
}
.search-wrapper:focus-within .search-icon {
    color: #a855f7;
    transform: scale(1.15);
}
.search-clear {
    position: absolute;
    right: 8px;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    border-radius: 6px;
    color: var(--text-muted);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s, color 0.2s, background 0.2s;
}
.search-clear i { width: 14px; height: 14px; }
.search-clear:hover { color: var(--text-main); background: rgba(255,255,255,0.08); }
.search-wrapper.has-query .search-clear {
    opacity: 1;
    pointer-events: auto;
}

.search-no-results {
    padding: 3rem 2rem;
    text-align: center;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    animation: fadeIn 0.2s ease;
}
.search-no-results i { width: 36px; height: 36px; opacity: 0.3; }
.search-no-results strong { font-size: 1rem; color: var(--text-main); }
.search-no-results span { font-size: 0.85rem; }

.lb-row.search-hidden { display: none; }
.lb-row .player-name mark {
    background: rgba(251,191,36,0.25);
    color: #fbbf24;
    border-radius: 3px;
    padding: 0 2px;
}

@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.action-btn {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%) !important;
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 9999px !important;
    color: var(--text-main);
    padding: 0.65rem 1.35rem;
    cursor: pointer;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    transition: all 0.25s cubic-bezier(0.1, 0.4, 0.2, 1);
    white-space: nowrap;
    box-shadow: 
        0 4px 14px rgba(0, 0, 0, 0.35),
        inset 1.5px 1.5px 1px -0.5px rgba(255, 255, 255, 0.35),
        inset -1.5px -1.5px 1px -0.5px rgba(0, 0, 0, 0.6),
        inset 0 0 8px 4px rgba(255, 255, 255, 0.04) !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.6);
}
.action-btn::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 50%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0) 100%);
    border-radius: 9999px 9999px 0 0;
    pointer-events: none;
}
.action-btn:hover {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.04) 100%) !important;
    border-color: rgba(52, 211, 153, 0.6) !important;
    transform: translateY(-2.5px) scale(1.04) !important;
    box-shadow: 
        0 8px 24px rgba(52, 211, 153, 0.25),
        0 0 16px rgba(52, 211, 153, 0.2),
        inset 2px 2px 2px 0px rgba(255, 255, 255, 0.6),
        inset -2px -2px 2px 0px rgba(0, 0, 0, 0.7) !important;
    filter: brightness(1.12);
}
.action-btn:active {
    transform: translateY(1.5px) scale(0.97) !important;
    filter: brightness(0.92);
    box-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.4),
        inset 2px 2px 4px rgba(0, 0, 0, 0.7),
        inset -1px -1px 2px rgba(255, 255, 255, 0.2) !important;
}
.action-btn i { width: 16px; height: 16px; z-index: 1; }

.leaderboard-card {
    background: rgba(26, 29, 36, 0.65);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0,0,0,0.5);
}
.table-header {
    display: grid;
    grid-template-columns: 145px 300px 1fr !important;
    padding: 1rem 16px;
    padding-left: 2rem !important;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    font-weight: 800;
    color: var(--text-header);
    font-size: 0.85rem;
    letter-spacing: 1px;
}
.th-tier-lbl {
    text-align: left;
    font-size: 0.95rem;
    color: var(--text-muted);
}
.th-rank { display: none; } /* combined into rank wrap */
.th-tiers { text-align: right; padding-right: 1.5rem; }
.table-body {
    display: flex;
    flex-direction: column;
    transition: opacity 0.2s ease-in-out;
}

/* MODERN ROW STYLES */
.lb-row {
    display: grid;
    grid-template-columns: 140px 300px 1fr !important;
    align-items: center;
    background: rgba(15, 17, 23, 0.65) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.04) !important;
    border-radius: 16px;
    margin: 14px 16px;
    height: 84px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
    padding-left: 0 !important;
    z-index: 2;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.lb-row:nth-child(even) {
    background: rgba(20, 22, 30, 0.75) !important;
}

.lb-row:hover {
    background: rgba(30, 32, 45, 0.85) !important;
    transform: translateY(-3px) scale(1.01);
    border-color: rgba(168, 85, 247, 0.4) !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5), 0 0 25px rgba(168, 85, 247, 0.2) !important;
    z-index: 10;
}

/* Rank specific glowing row backgrounds */
.lb-row.rank-1 {
    background: linear-gradient(90deg, rgba(250, 204, 21, 0.12) 0%, rgba(15, 17, 23, 0.7) 40%) !important;
    border: 1px solid rgba(250, 204, 21, 0.25) !important;
    box-shadow: 0 8px 30px rgba(250, 204, 21, 0.1), inset 0 0 20px rgba(250, 204, 21, 0.05);
}
.lb-row.rank-2 {
    background: linear-gradient(90deg, rgba(203, 213, 225, 0.1) 0%, rgba(15, 17, 23, 0.7) 40%) !important;
    border: 1px solid rgba(203, 213, 225, 0.2) !important;
    box-shadow: 0 8px 30px rgba(203, 213, 225, 0.08), inset 0 0 20px rgba(203, 213, 225, 0.05);
}
.lb-row.rank-3 {
    background: linear-gradient(90deg, rgba(249, 115, 22, 0.1) 0%, rgba(15, 17, 23, 0.7) 40%) !important;
    border: 1px solid rgba(249, 115, 22, 0.25) !important;
    box-shadow: 0 8px 30px rgba(249, 115, 22, 0.08), inset 0 0 20px rgba(249, 115, 22, 0.05);
}

.lb-row.rank-1:hover { border-color: rgba(250, 204, 21, 0.6) !important; box-shadow: 0 15px 40px rgba(250, 204, 21, 0.2), 0 0 30px rgba(250, 204, 21, 0.3) !important; }
.lb-row.rank-2:hover { border-color: rgba(203, 213, 225, 0.6) !important; box-shadow: 0 15px 40px rgba(203, 213, 225, 0.2), 0 0 30px rgba(203, 213, 225, 0.3) !important; }
.lb-row.rank-3:hover { border-color: rgba(249, 115, 22, 0.6) !important; box-shadow: 0 15px 40px rgba(249, 115, 22, 0.2), 0 0 30px rgba(249, 115, 22, 0.3) !important; }

.lb-rank-badge-wrap {
    position: relative;
    width: 140px;
    height: 100%;
    border-radius: 16px 0 0 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible; /* CRITICAL: Allows avatar to pop out! */
}

.lb-rank-badge-skew {
    position: absolute;
    top: 0; left: 0; bottom: 0; right: 0;
    border-radius: 16px 0 0 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lb-rank-badge-content {
    width: 100%;
    height: 100%;
    position: relative;
}

.rank-number-italic {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-family: 'Rajdhani', sans-serif;
    font-size: 4rem;
    font-weight: 900;
    font-style: italic;
    color: rgba(255, 255, 255, 0.04);
    z-index: 1;
    user-select: none;
    letter-spacing: -2px;
    transition: all 0.3s ease;
}

.rank-1 .rank-number-italic { color: rgba(250, 204, 21, 0.15); }
.rank-2 .rank-number-italic { color: rgba(203, 213, 225, 0.12); }
.rank-3 .rank-number-italic { color: rgba(249, 115, 22, 0.15); }

.lb-row:hover .rank-number-italic {
    transform: translateY(-50%) scale(1.05) rotate(-3deg);
    color: rgba(255, 255, 255, 0.1);
}
.rank-1:hover .rank-number-italic { color: rgba(250, 204, 21, 0.3); text-shadow: 0 0 15px rgba(250, 204, 21, 0.4); }
.rank-2:hover .rank-number-italic { color: rgba(203, 213, 225, 0.25); text-shadow: 0 0 15px rgba(203, 213, 225, 0.3); }
.rank-3:hover .rank-number-italic { color: rgba(249, 115, 22, 0.25); text-shadow: 0 0 15px rgba(249, 115, 22, 0.3); }

/* Crown for 1st place */
.rank-1 .lb-rank-badge-content::before {
    content: '👑';
    position: absolute;
    top: -12px;
    left: 28px;
    font-size: 1.5rem;
    filter: drop-shadow(0 0 8px #eab308);
    transform: rotate(-15deg);
    animation: crownFloat 2s infinite alternate ease-in-out;
    z-index: 12;
    pointer-events: none;
}
@keyframes crownFloat {
    0% { transform: rotate(-15deg) translateY(0); }
    100% { transform: rotate(-5deg) translateY(-5px) scale(1.1); }
}

.avatar-bust-skew {
    height: 96px; /* Huge avatar popping out */
    width: 96px;
    object-fit: contain;
    position: absolute;
    bottom: 0;
    left: 45px;
    z-index: 10;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.7));
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.3s ease;
    transform-origin: bottom center;
}

.lb-row:hover .avatar-bust-skew {
    transform: scale(1.12) translateY(-4px) rotate(2deg);
    filter: drop-shadow(0 10px 25px rgba(0,0,0,0.9));
}

.rank-1 .avatar-bust-skew { filter: drop-shadow(0 0 15px rgba(250, 204, 21, 0.6)) drop-shadow(0 5px 15px rgba(0,0,0,0.8)); }
.rank-2 .avatar-bust-skew { filter: drop-shadow(0 0 15px rgba(203, 213, 225, 0.4)) drop-shadow(0 5px 15px rgba(0,0,0,0.8)); }
.rank-3 .avatar-bust-skew { filter: drop-shadow(0 0 15px rgba(249, 115, 22, 0.4)) drop-shadow(0 5px 15px rgba(0,0,0,0.8)); }

.rank-1:hover .avatar-bust-skew { filter: drop-shadow(0 0 25px rgba(250, 204, 21, 0.9)) drop-shadow(0 10px 20px rgba(0,0,0,0.9)); }
.rank-2:hover .avatar-bust-skew { filter: drop-shadow(0 0 25px rgba(203, 213, 225, 0.7)) drop-shadow(0 10px 20px rgba(0,0,0,0.9)); }
.rank-3:hover .avatar-bust-skew { filter: drop-shadow(0 0 25px rgba(249, 115, 22, 0.7)) drop-shadow(0 10px 20px rgba(0,0,0,0.9)); }

.lb-row:hover .avatar-bust {
    transform: scale(1.15) rotate(2deg);
    filter: drop-shadow(0 0 8px rgba(255,255,255,0.25));
}
.avatar-bust {
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.lb-row::after {
    content: 'Zobacz profil ➔';
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%) translateX(10px);
    font-size: 0.75rem;
    font-weight: 800;
    font-family: var(--pixel-font) !important;
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.1);
    border: 1.5px solid rgba(251, 191, 36, 0.35);
    padding: 6px 12px;
    border-radius: 6px;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    box-shadow: 0 0 15px rgba(251, 191, 36, 0.25);
    z-index: 5;
}
.lb-row:hover::after {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

.lb-row:hover .tiers-container,
.lb-row:hover .octagon-pills-container {
    padding-right: 130px;
}
.tiers-container,
.octagon-pills-container {
    transition: padding-right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.lb-rank-num {
    font-family: 'Rajdhani', sans-serif !important;
    font-size: 1.85rem !important;
    font-weight: 900;
    background: linear-gradient(135deg, #cbd5e1 30%, #475569 100%);
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    text-shadow: none !important;
    text-align: left;
    user-select: none;
}

/* Tierlist Glowing Left Borders */
.row-tier-ht1 { border-left: 5px solid #ef4444 !important; }
.row-tier-ht1:hover { border-left-width: 8px !important; box-shadow: 0 15px 30px rgba(0, 0, 0, 0.65), 0 0 25px rgba(239, 68, 68, 0.35) !important; }

.row-tier-lt1 { border-left: 5px solid #38bdf8 !important; }
.row-tier-lt1:hover { border-left-width: 8px !important; box-shadow: 0 15px 30px rgba(0, 0, 0, 0.65), 0 0 25px rgba(56, 189, 248, 0.35) !important; }

.row-tier-ht2 { border-left: 5px solid #64748b !important; }
.row-tier-ht2:hover { border-left-width: 8px !important; box-shadow: 0 15px 30px rgba(0, 0, 0, 0.65), 0 0 25px rgba(100, 116, 139, 0.35) !important; }

.row-tier-lt2 { border-left: 5px solid #4b5563 !important; }
.row-tier-lt2:hover { border-left-width: 8px !important; box-shadow: 0 15px 30px rgba(0, 0, 0, 0.65), 0 0 25px rgba(75, 85, 99, 0.25) !important; }

.row-tier-ht3 { border-left: 5px solid #b45309 !important; }
.row-tier-ht3:hover { border-left-width: 8px !important; box-shadow: 0 15px 30px rgba(0, 0, 0, 0.65), 0 0 25px rgba(180, 83, 9, 0.35) !important; }

.row-tier-lt3 { border-left: 5px solid #854d0e !important; }
.row-tier-lt3:hover { border-left-width: 8px !important; box-shadow: 0 15px 30px rgba(0, 0, 0, 0.65), 0 0 25px rgba(133, 77, 14, 0.25) !important; }

.row-tier-ht4 { border-left: 5px solid #52525b !important; }
.row-tier-ht4:hover { border-left-width: 8px !important; box-shadow: 0 15px 30px rgba(0, 0, 0, 0.65), 0 0 25px rgba(82, 82, 91, 0.35) !important; }

.row-tier-lt4 { border-left: 5px solid #3f3f46 !important; }
.row-tier-lt4:hover { border-left-width: 8px !important; box-shadow: 0 15px 30px rgba(0, 0, 0, 0.65), 0 0 25px rgba(63, 63, 70, 0.25) !important; }

.row-tier-ht5 { border-left: 5px solid #27272a !important; }
.row-tier-ht5:hover { border-left-width: 8px !important; box-shadow: 0 15px 30px rgba(0, 0, 0, 0.65), 0 0 25px rgba(39, 39, 42, 0.35) !important; }

.row-tier-lt5 { border-left: 5px solid #18181b !important; }
.row-tier-lt5:hover { border-left-width: 8px !important; box-shadow: 0 15px 30px rgba(0, 0, 0, 0.65), 0 0 25px rgba(24, 24, 27, 0.25) !important; }

.row-tier-brak {
    border-left: 5px solid #334155 !important;
}

.lb-rank-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    padding-left: 1.5rem;
}
.lb-rank-bg {
    position: absolute;
    top: 0; left: -20px; right: 0; bottom: 0;
    overflow: hidden;
    transform: skewX(-15deg);
    transform-origin: top left;
    z-index: 0;
}
@keyframes rankShine {
    0% { transform: translateX(-150%); }
    50% { transform: translateX(150%); }
    100% { transform: translateX(150%); }
}
.lb-rank-container.bg-1 .lb-rank-bg::after,
.lb-rank-container.bg-2 .lb-rank-bg::after,
.lb-rank-container.bg-3 .lb-rank-bg::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transform: translateX(-150%);
    animation: rankShine 3s infinite ease-in-out;
    z-index: 1;
    pointer-events: none;
}
.lb-rank-container.bg-1 .lb-rank-bg { 
    background: linear-gradient(135deg, #eab308 0%, #a16207 100%);
    box-shadow: inset 0 0 20px rgba(255,255,255,0.2);
}
.lb-rank-container.bg-2 .lb-rank-bg { 
    background: linear-gradient(135deg, #94a3b8 0%, #475569 100%);
    box-shadow: inset 0 0 20px rgba(255,255,255,0.2);
}
.lb-rank-container.bg-3 .lb-rank-bg { 
    background: linear-gradient(135deg, #d97706 0%, #78350f 100%);
    box-shadow: inset 0 0 20px rgba(255,255,255,0.2);
}
.lb-rank-container.bg-default .lb-rank-bg { 
    background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.02) 100%);
    box-shadow: inset 0 0 10px rgba(255,255,255,0.02);
}
.lb-rank {
    position: relative;
    z-index: 2;
    font-size: 1.8rem;
    font-weight: 800;
    font-style: italic;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    width: 30px;
}
.avatar-bust {
    position: absolute;
    top: 50%;
    right: 15px;
    z-index: 5;
    height: 80px;
    transform: translateY(-50%);
    object-fit: contain;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.4));
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.lb-row:hover .avatar-bust {
    transform: scale(1.1) translateY(-50%);
}
.player-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: center;
    padding-left: 10px;
}
.player-name {
    font-weight: 900;
    font-size: 1.35rem;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(255, 255, 255, 0.4);
    letter-spacing: 0.5px;
    font-family: var(--pixel-font);
    display: flex;
    align-items: center;
}
.player-title {
    font-size: 0.85rem;
    color: #94a3b8;
    font-weight: 600;
    margin-top: 0.3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.03);
    padding: 4px 10px;
    border-radius: 6px;
    width: fit-content;
    border: 1px solid rgba(255,255,255,0.05);
}
.tiers-container {
    display: flex;
    justify-content: flex-end;
    gap: 0.6rem;
    padding-right: 1.5rem;
}
.tier-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 48px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.tier-item:hover {
    transform: translateY(-4px) scale(1.05);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
    z-index: 10;
    box-shadow: 0 8px 12px rgba(0,0,0,0.4);
}
.tier-item img {
    width: 18px;
    height: 18px;
    margin-bottom: 4px;
    object-fit: contain;
    filter: drop-shadow(0 2px 2px rgba(0,0,0,0.5));
}
.tier-item.empty-tier { 
    opacity: 0.4; 
    background: transparent;
    border-color: transparent;
    box-shadow: none;
}
.tier-item.empty-tier:hover {
    transform: none;
    background: rgba(255,255,255,0.02);
}
.tier-item.empty-tier img {
    width: 14px;
    height: 14px;
    filter: grayscale(1) opacity(0.5);
    margin-bottom: 0;
}
.badge {
    font-size: 0.6rem;
    font-weight: 900;
    padding: 2px 4px;
    border-radius: 4px;
    letter-spacing: 0px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.4);
    text-transform: uppercase;
}
.badge-ht1 { background: #422006; color: #facc15; }
.badge-ht2 { background: #27272a; color: #cbd5e1; }
.badge-ht3 { background: #5c2e0b; color: #cd7f32; }
.badge-ht4 { background: #3f3f46; color: #d4d4d8; }
.badge-ht5 { background: #1f1f23; color: #71717a; }
.badge-lt1 { background: #1e3a8a; color: #60a5fa; }
.badge-lt2 { background: #18181b; color: #94a3b8; }
.badge-lt3 { background: #431e05; color: #a87c53; }
.badge-lt4 { background: #27272a; color: #a1a1aa; }
.badge-lt5 { background: #111113; color: #52525b; }
.empty-dot { color: #334155; font-size: 0.65rem; font-weight: 900; }
.loading-state {
    padding: 4rem;
    text-align: center;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}
.spin { animation: spin 1s linear infinite; }
@keyframes spin { 100% { transform: rotate(360deg); } }
.modal-backdrop {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
}
.modal-backdrop.hidden { display: none; }
.modal-card {
    background: rgba(20, 23, 30, 0.75);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 60px rgba(0,0,0,0.6);
    border-radius: 16px;
    padding: 2rem;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.2) transparent;
}
.modal-card::-webkit-scrollbar { width: 8px; }
.modal-card::-webkit-scrollbar-track { background: transparent; }
.modal-card::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 10px; }
.modal-card::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}
.close-btn {
    background: rgba(255,255,255,0.05);
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.2s;
}
.close-btn:hover { background: rgba(255,255,255,0.1); color: #fff; }
.points-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    padding: 0.5rem;
}
.pt-tier {
    background: rgba(20, 25, 35, 0.6);
    border: 1px solid rgba(255,255,255,0.05);
    padding: 1.5rem;
    border-radius: 16px;
    font-size: 0.95rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.pt-tier::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    z-index: 10;
}
.pt-tier:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0,0,0,0.4);
    z-index: 5;
}
.pt-tier-5 {
    grid-column: 1 / -1;
    max-width: 60%;
    margin: 0 auto;
    width: 100%;
}
.pt-title {
    font-weight: 900;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-family: 'Rajdhani', sans-serif;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.pt-tier-1 { box-shadow: 0 4px 20px rgba(250,204,21,0.05), inset 0 0 20px rgba(250,204,21,0.02); border-color: rgba(250,204,21,0.15); }
.pt-tier-1::before { background: linear-gradient(90deg, #facc15, #ca8a04); }
.pt-tier-1 .pt-title { color: #facc15; text-shadow: 0 0 10px rgba(250,204,21,0.3); }

.pt-tier-2 { box-shadow: 0 4px 20px rgba(100,116,139,0.05), inset 0 0 20px rgba(100,116,139,0.02); border-color: rgba(100,116,139,0.15); }
.pt-tier-2::before { background: linear-gradient(90deg, #94a3b8, #475569); }
.pt-tier-2 .pt-title { color: #cbd5e1; text-shadow: 0 0 10px rgba(148,163,184,0.3); }

.pt-tier-3 { box-shadow: 0 4px 20px rgba(180,83,9,0.05), inset 0 0 20px rgba(180,83,9,0.02); border-color: rgba(180,83,9,0.15); }
.pt-tier-3::before { background: linear-gradient(90deg, #d97706, #92400e); }
.pt-tier-3 .pt-title { color: #d97706; text-shadow: 0 0 10px rgba(217,119,6,0.3); }

.pt-tier-4 { box-shadow: 0 4px 20px rgba(75,85,99,0.05), inset 0 0 20px rgba(75,85,99,0.02); border-color: rgba(75,85,99,0.15); }
.pt-tier-4::before { background: linear-gradient(90deg, #6b7280, #374151); }
.pt-tier-4 .pt-title { color: #9ca3af; text-shadow: 0 0 10px rgba(156,163,175,0.3); }

.pt-tier-5 { box-shadow: 0 4px 20px rgba(55,65,81,0.05), inset 0 0 20px rgba(55,65,81,0.02); border-color: rgba(55,65,81,0.15); }
.pt-tier-5::before { background: linear-gradient(90deg, #4b5563, #1f2937); }
.pt-tier-5 .pt-title { color: #6b7280; text-shadow: 0 0 10px rgba(107,114,128,0.3); }

.pt-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0,0,0,0.3);
    padding: 0.65rem 1rem;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.03);
    transition: background 0.2s;
}
.pt-row:hover {
    background: rgba(0,0,0,0.5);
    border-color: rgba(255,255,255,0.08);
}
.pt-pts {
    font-weight: 800;
    color: #f8fafc;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.15rem;
    letter-spacing: 0.5px;
}
.profile-card {
    padding: 2.5rem;
    max-width: 450px;
}
.profile-header-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 2rem;
}
.prof-avatar-wrapper {
    width: 80px;
    height: 80px;
    margin-bottom: 0.5rem;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}
.prof-avatar-wrapper::after {
    content: '';
    position: absolute;
    bottom: -10px;
    width: 60px;
    height: 10px;
    background: radial-gradient(ellipse at center, rgba(251,191,36,0.4) 0%, transparent 80%);
    filter: blur(4px);
}
.prof-3d-bust {
    height: 120%;
    object-fit: contain;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.5));
    position: relative;
    z-index: 2;
    transform: translateY(-10px);
}
.prof-name {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}
.prof-title-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid #fbbf24;
    color: #fbbf24;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
}
.namemc-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-muted);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    transition: 0.2s;
}
.namemc-btn:hover { background: rgba(255,255,255,0.1); color: var(--text-main); }
.prof-section {
    margin-bottom: 1.5rem;
}
.prof-section-title {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}
.prof-pos-box {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    display: flex;
    align-items: stretch;
    overflow: hidden;
}
.prof-pos-rank {
    width: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 800;
    font-style: italic;
    color: #fff;
    position: relative;
}
.prof-pos-rank::after {
    content: '';
    position: absolute;
    top: 0; right: -10px;
    width: 20px; height: 100%;
    background: inherit;
    transform: skewX(-15deg);
}
.prof-pos-rank-inner {
    position: relative;
    z-index: 2;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}
.prof-pos-details {
    padding: 0.8rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    margin-left: 10px;
}
.prof-tiers-box {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}
@media (max-width: 768px) {
    .table-header, .lb-row {
        grid-template-columns: 50px 1fr;
    }
    .th-tiers, .tiers-container {
        display: none;
    }
    .tiers-grid {
        grid-template-columns: 1fr;
    }
}
.tiers-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    background: transparent;
    margin-top: 2rem;
}
.tier-col {
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, rgba(16, 20, 30, 0.65) 0%, rgba(8, 10, 15, 0.85) 100%) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.04) !important;
    border-radius: 16px;
    overflow: hidden;
    min-height: 550px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.tier-col:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 25px 55px rgba(0, 0, 0, 0.55);
}
.tier-header {
    padding: 1.25rem 1rem;
    text-align: center;
    font-weight: 900;
    font-size: 1.45rem !important;
    font-family: 'Rajdhani', sans-serif !important;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* Unikalne kolory rang dla nagłówków */
.tier-header.t1 {
    border-top: 4px solid #fbbf24;
    color: #fbbf24;
    text-shadow: 0 0 10px rgba(251,191,36,0.35);
    background: linear-gradient(180deg, rgba(251, 191, 36, 0.05) 0%, transparent 100%);
    box-shadow: 0 5px 20px rgba(251, 191, 36, 0.15);
}
.tier-header.t2 {
    border-top: 4px solid #64748b;
    color: #94a3b8;
    text-shadow: 0 0 10px rgba(100, 116, 139, 0.35);
    background: linear-gradient(180deg, rgba(100, 116, 139, 0.05) 0%, transparent 100%);
    box-shadow: 0 5px 20px rgba(100, 116, 139, 0.15);
}
.tier-header.t3 {
    border-top: 4px solid #b45309;
    color: #cc8b68;
    text-shadow: 0 0 10px rgba(180, 83, 9, 0.35);
    background: linear-gradient(180deg, rgba(180, 83, 9, 0.05) 0%, transparent 100%);
    box-shadow: 0 5px 20px rgba(180, 83, 9, 0.15);
}
.tier-header.t4 {
    border-top: 4px solid #4b5563;
    color: #cbd5e1;
    text-shadow: 0 0 10px rgba(75, 85, 99, 0.35);
    background: linear-gradient(180deg, rgba(75, 85, 99, 0.05) 0%, transparent 100%);
    box-shadow: 0 5px 20px rgba(75, 85, 99, 0.15);
}
.tier-header.t5 {
    border-top: 4px solid #374151;
    color: #6b7280;
    text-shadow: 0 0 8px rgba(75, 85, 99, 0.2);
    background: linear-gradient(180deg, rgba(75, 85, 99, 0.03) 0%, transparent 100%);
    box-shadow: 0 5px 15px rgba(75, 85, 99, 0.08);
}

.tier-players {
    padding: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}
.tier-player-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.65rem 0.85rem;
    background: rgba(10, 15, 25, 0.45) !important;
    border: 1px solid rgba(255, 255, 255, 0.03) !important;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Hover na graczu z podświetleniem koloru przewodniego */
.col-t1 .tier-player-card:hover {
    transform: translateY(-2px);
    background: rgba(251, 191, 36, 0.06) !important;
    border-color: rgba(251, 191, 36, 0.5) !important;
    box-shadow: 0 8px 20px rgba(251, 191, 36, 0.12), 0 4px 10px rgba(0,0,0,0.3);
}
.col-t2 .tier-player-card:hover {
    transform: translateY(-2px);
    background: rgba(100, 116, 139, 0.06) !important;
    border-color: rgba(100, 116, 139, 0.5) !important;
    box-shadow: 0 8px 20px rgba(100, 116, 139, 0.12), 0 4px 10px rgba(0,0,0,0.3);
}
.col-t3 .tier-player-card:hover {
    transform: translateY(-2px);
    background: rgba(180, 83, 9, 0.06) !important;
    border-color: rgba(180, 83, 9, 0.5) !important;
    box-shadow: 0 8px 20px rgba(180, 83, 9, 0.12), 0 4px 10px rgba(0,0,0,0.3);
}
.col-t4 .tier-player-card:hover {
    transform: translateY(-2px);
    background: rgba(75, 85, 99, 0.06) !important;
    border-color: rgba(75, 85, 99, 0.5) !important;
    box-shadow: 0 8px 20px rgba(75, 85, 99, 0.12), 0 4px 10px rgba(0,0,0,0.3);
}
.col-t5 .tier-player-card:hover {
    transform: translateY(-2px);
    background: rgba(75, 85, 99, 0.03) !important;
    border-color: rgba(75, 85, 99, 0.3) !important;
    box-shadow: 0 8px 15px rgba(75, 85, 99, 0.06), 0 4px 10px rgba(0,0,0,0.3);
}

/* Wskaźnik HT (High Tier) / LT (Low Tier) */
.tier-player-card.card-ht {
    border-left: 3px solid #10b981 !important;
}
.tier-player-card.card-lt {
    border-left: 3px solid #64748b !important;
}

/* Odznaki HT / LT z ostrym neonowym kolorem i półprzezroczystym tłem */
.badge-ht-pill {
    background: rgba(16, 185, 129, 0.12) !important;
    color: #10b981 !important;
    border: 1px solid rgba(16, 185, 129, 0.3) !important;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 6px !important;
    border-radius: 4px;
    text-shadow: 0 0 4px rgba(16, 185, 129, 0.3);
    margin-left: 0.4rem;
    font-family: 'Rajdhani', sans-serif;
    letter-spacing: 0.5px;
}
.badge-lt-pill {
    background: rgba(100, 116, 139, 0.12) !important;
    color: #94a3b8 !important;
    border: 1px solid rgba(100, 116, 139, 0.25) !important;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 6px !important;
    border-radius: 4px;
    margin-left: 0.4rem;
    font-family: 'Rajdhani', sans-serif;
    letter-spacing: 0.5px;
}

/* Elegancki separator LOW TIER z liniami zanikającymi */
.tier-separator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0.75rem 0;
    opacity: 0.8;
}
.tier-separator .sep-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(148, 163, 184, 0.2) 50%, transparent) !important;
}
.tier-separator .sep-text {
    font-family: 'Rajdhani', sans-serif !important;
    font-size: 0.68rem !important;
    font-weight: 800;
    color: #475569 !important;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 0 0.75rem;
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

/* Wskaźniki awansu/spadku */
.trend-icon {
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
    transition: transform 0.2s;
}
.trend-icon.icon-up {
    color: #10b981 !important;
    filter: drop-shadow(0 0 6px rgba(16, 185, 129, 0.55)) !important;
}
.trend-icon.icon-down {
    color: #b91c1c !important;
    filter: drop-shadow(0 0 3px rgba(185, 28, 28, 0.2)) !important;
}
.tier-player-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    overflow: hidden;
}
.tier-player-avatar {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    object-fit: contain;
}
.tier-player-name {
    font-size: 0.9rem;
    font-weight: 800;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.retired-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(100,116,139,0.25);
    border: 1px solid rgba(100,116,139,0.5);
    color: #94a3b8;
    font-size: 0.6rem;
    font-weight: 800;
    padding: 1px 5px;
    border-radius: 4px;
    margin-left: 6px;
    vertical-align: middle;
    letter-spacing: 0.5px;
}
.tier-item.retired-tier {
    position: relative;
    opacity: 0.55;
    filter: grayscale(0.4);
}
.retired-tier-label {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #475569;
    color: #e2e8f0;
    font-size: 0.5rem;
    font-weight: 800;
    padding: 1px 3px;
    border-radius: 3px;
    line-height: 1;
}

/* Premium Custom Scrollbar dla kontenerów modalnych */
.premium-scroll::-webkit-scrollbar {
    width: 6px;
}
.premium-scroll::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}
.premium-scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
    transition: background 0.2s;
}
.premium-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Nowoczesny układ w stylu premium RPG / Octagon dla Overall */
.octagon-pills-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 0.8rem;
    padding-right: 1.5rem;
}
.octagon-tier-box {
    background: rgba(14, 16, 24, 0.75) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 12px !important;
    padding: 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.4), inset 0 1px 1px rgba(255,255,255,0.1) !important;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 50px !important;
    height: 50px !important;
    position: relative;
    transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
    overflow: hidden;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.octagon-tier-box::before,
.octagon-tier-box::after {
    display: none !important;
    content: none !important;
}
.octagon-tier-box:hover {
    transform: translateY(-2px) scale(1.05) !important;
    background: rgba(20, 23, 34, 0.9) !important;
    z-index: 10;
    box-shadow: 0 6px 12px rgba(0,0,0,0.3) !important;
}

/* Cascading Animations */
@keyframes rowFadeIn {
    0% { opacity: 0; transform: translateY(15px); }
    100% { opacity: 1; transform: translateY(0); }
}
.tierlist-row, .tier-player-card, .octagon-tier-box {
    animation: rowFadeIn 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
    opacity: 0;
}

/* Custom Floating Tooltip */
.custom-tooltip {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    background: rgba(10, 15, 25, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 8px 12px;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    transition: opacity 0.15s ease-out;
    display: flex;
    align-items: center;
    gap: 8px;
    top: 0; left: 0;
}
.custom-tooltip.hidden { opacity: 0; transition: opacity 0.1s ease-in; }

/* Slot ramka z lśniącym obramowaniem */
.octagon-frame {
    width: 40px;
    height: 40px;
    background: transparent !important;
    box-shadow: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}
.octagon-inner {
    width: 100% !important;
    height: 100% !important;
    background: transparent !important;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.octagon-inner img {
    width: 26px;
    height: 26px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.6));
    transition: transform 0.3s ease;
}
.octagon-tier-box:hover .octagon-inner img {
    transform: scale(1.18);
    animation: itemRotate 10s linear infinite;
}

/* Dolna odznaka */
.octagon-badge-outer {
    position: absolute;
    bottom: -6px;
    right: -6px;
    background: rgba(10, 11, 15, 0.98) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 8px !important;
    padding: 3px 6px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0,0,0,0.6);
}
.octagon-badge-inner {
    font-family: 'Rajdhani', var(--body-font), sans-serif !important;
    font-size: 0.78rem !important;
    font-weight: 900 !important;
    letter-spacing: 0.5px;
    line-height: 1;
    text-shadow: 0 1px 2px rgba(0,0,0,0.8);
}

.octagon-tier-box.retired-box {
    opacity: 0.8;
}
.oct-retired {
    position: absolute;
    top: 2px; right: 2px;
    background: #ef4444; color: #fff;
    font-size: 0.45rem; font-weight: 800;
    padding: 1px 2px; border-radius: 2px;
}

/* Indywidualne poświaty i aury dla każdego tieru slotu */
.octagon-tier-box.tier-box-ht1 { border-top: 2px solid #fbbf24 !important; background: linear-gradient(180deg, rgba(251, 191, 36, 0.1) 0%, rgba(14, 16, 24, 0) 100%) !important; }
.octagon-tier-box.tier-box-ht1:hover { box-shadow: 0 6px 20px rgba(251, 191, 36, 0.2) !important; border-color: rgba(251, 191, 36, 0.4) !important; border-top: 2px solid #fbbf24 !important; }

.octagon-tier-box.tier-box-lt1 { border-top: 2px solid #38bdf8 !important; background: linear-gradient(180deg, rgba(56, 189, 248, 0.1) 0%, rgba(14, 16, 24, 0) 100%) !important; }
.octagon-tier-box.tier-box-lt1:hover { box-shadow: 0 6px 15px rgba(56, 189, 248, 0.2) !important; border-color: rgba(56, 189, 248, 0.4) !important; border-top: 2px solid #38bdf8 !important; }

.octagon-tier-box.tier-box-ht2 { border-top: 2px solid #a78bfa !important; background: linear-gradient(180deg, rgba(167, 139, 250, 0.08) 0%, rgba(14, 16, 24, 0) 100%) !important; }
.octagon-tier-box.tier-box-ht2:hover { box-shadow: 0 6px 15px rgba(167, 139, 250, 0.15) !important; border-color: rgba(167, 139, 250, 0.3) !important; border-top: 2px solid #a78bfa !important; }

.octagon-tier-box.tier-box-lt2 { border-top: 2px solid #94a3b8 !important; }
.octagon-tier-box.tier-box-lt2:hover { box-shadow: 0 6px 15px rgba(148, 163, 184, 0.1) !important; border-color: rgba(148, 163, 184, 0.3) !important; border-top: 2px solid #94a3b8 !important; }

.octagon-tier-box.tier-box-ht3 { border-top: 2px solid #d97706 !important; background: linear-gradient(180deg, rgba(217, 119, 6, 0.05) 0%, rgba(14, 16, 24, 0) 100%) !important; }
.octagon-tier-box.tier-box-ht3:hover { box-shadow: 0 6px 15px rgba(217, 119, 6, 0.1) !important; border-color: rgba(217, 119, 6, 0.3) !important; border-top: 2px solid #d97706 !important; }

.octagon-tier-box.tier-box-lt3 { border-top: 2px solid #9a3412 !important; }
.octagon-tier-box.tier-box-lt3:hover { box-shadow: 0 6px 12px rgba(154, 52, 18, 0.1) !important; border-color: rgba(154, 52, 18, 0.3) !important; border-top: 2px solid #9a3412 !important; }

.octagon-tier-box.tier-box-ht4 { border-top: 2px solid #71717a !important; }
.octagon-tier-box.tier-box-ht4:hover { box-shadow: 0 4px 10px rgba(113, 113, 122, 0.1) !important; border-color: rgba(113, 113, 122, 0.3) !important; border-top: 2px solid #71717a !important; }

.octagon-tier-box.tier-box-lt4 { border-top: 2px solid #52525b !important; background: rgba(12, 14, 20, 0.8) !important; }
.octagon-tier-box.tier-box-lt4:hover { border-color: rgba(82, 82, 91, 0.2) !important; border-top: 2px solid #52525b !important; }

.octagon-tier-box.tier-box-ht5 { border-top: 2px solid #3f3f46 !important; background: rgba(10, 11, 16, 0.8) !important; opacity: 0.85; }
.octagon-tier-box.tier-box-ht5:hover { opacity: 1; border-color: rgba(63, 63, 70, 0.2) !important; border-top: 2px solid #3f3f46 !important; }

.octagon-tier-box.tier-box-lt5 { border-top: 2px solid #27272a !important; background: rgba(6, 7, 10, 0.9) !important; filter: grayscale(0.5); opacity: 0.7; }
.octagon-tier-box.tier-box-lt5:hover { filter: grayscale(0); opacity: 0.9; border-color: rgba(39, 39, 42, 0.2) !important; border-top: 2px solid #27272a !important; }

/* Puste sloty tierów na profilu */
.octagon-tier-box.empty-slot-box {
    opacity: 0.35;
    background: radial-gradient(circle, #0e0e11 0%, #050507 100%) !important;
    box-shadow: 
        inset 2px 2px 8px rgba(0,0,0,0.95), 
        inset -1px -1px 2px rgba(255,255,255,0.02) !important;
    border: 1px dashed rgba(255, 255, 255, 0.08) !important;
    border-radius: 12px !important;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}
.empty-oct-frame {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
}
.empty-oct-inner {
    background: transparent !important;
}
.empty-question-mark {
    font-family: 'Rajdhani', sans-serif !important;
    font-size: 0.65rem !important;
    font-weight: 900 !important;
    color: #2e303e !important;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
    letter-spacing: 0.5px;
}

/* Układ modalny profilu RPG */
.modal-card.profile-card {
    background: linear-gradient(135deg, rgba(13, 14, 18, 0.96), rgba(7, 8, 12, 0.98)) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 20px !important;
    padding: 1.5rem;
    max-width: 420px;
    max-height: 85vh;
    box-shadow: 
        0 30px 70px rgba(0,0,0,0.95),
        inset 0 0 35px rgba(255,255,255,0.03),
        0 0 40px rgba(168, 85, 247, 0.15) !important;
    position: relative;
    clip-path: none !important;
    animation: modalScaleIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    overflow-y: auto;
    overflow-x: hidden;
}
.modal-card.profile-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, #a855f7, #6366f1, #22d3ee, #a855f7);
    background-size: 300% 300%;
    animation: flowingGradient 3s linear infinite, glowPulse 2s infinite alternate ease-in-out;
    z-index: 10;
}
@keyframes modalScaleIn {
    from {
        opacity: 0;
        transform: scale(0.92) translateY(20px);
        filter: blur(4px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
        filter: blur(0);
    }
}

/* Przycisk zamknięcia na RPG profilu */
.profile-card .close-btn {
    position: absolute;
    top: 14px !important;
    right: 14px !important;
    background: rgba(20, 24, 35, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.15);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    z-index: 50;
    border-radius: 50% !important;
    clip-path: none !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}
.profile-card .close-btn:hover {
    background: #ef4444 !important;
    border-color: #f87171 !important;
    color: #fff !important;
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.5);
}

/* Górny pasek z nazwą i odznakami */
.rpg-modal-top-bar {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background: linear-gradient(90deg, rgba(13, 14, 18, 0.85), transparent);
    padding: 1rem 1.5rem;
    margin-left: -1.5rem;
    margin-right: -1.5rem;
    margin-top: -1.5rem;
    width: calc(100% + 3rem);
    border-bottom: 1.5px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}
.rpg-modal-name {
    font-size: 1.45rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 0.5rem;
    letter-spacing: -0.3px;
    font-family: 'Rajdhani', sans-serif !important;
    text-shadow: 0 0 10px rgba(255,255,255,0.1);
}
.rpg-modal-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
}

/* Poszczególne odznaki nagłówkowe ze screena */
.rpg-badge-region {
    background: rgba(234, 88, 12, 0.15) !important;
    color: #f97316 !important;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid rgba(234, 88, 12, 0.4) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    letter-spacing: 0.5px;
    text-shadow: 0 0 4px rgba(234, 88, 12, 0.2);
}
.rpg-badge-title {
    background: rgba(168, 85, 247, 0.15) !important;
    color: #c084fc !important;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border: 1px solid rgba(168, 85, 247, 0.4) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.2);
    letter-spacing: 0.5px;
    text-shadow: 0 0 4px rgba(168, 85, 247, 0.2);
}
.rpg-badge-overall {
    background: rgba(34, 211, 238, 0.15) !important;
    color: #22d3ee !important;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border: 1px solid rgba(34, 211, 238, 0.4) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 0 10px rgba(34, 211, 238, 0.2);
    letter-spacing: 0.5px;
}
.rpg-badge-score {
    background: rgba(251, 191, 36, 0.15) !important;
    color: #fbbf24 !important;
    font-size: 0.65rem;
    padding: 4px 12px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border: 1px solid rgba(251, 191, 36, 0.4) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 0 12px rgba(251, 191, 36, 0.3) !important;
    letter-spacing: 0.5px;
}
.rpg-score-num {
    color: #ffffff !important;
    font-weight: 900;
    background: transparent !important;
    padding: 0;
    border-radius: 0;
}
.rpg-score-lbl { font-weight: 700; }

/* Środkowa sekcja z renderem ciała i medalem */
.rpg-modal-center-render {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2rem;
    position: relative;
    padding: 1.5rem 0 0.5rem 0;
    perspective: 800px;
}
/* Trójwymiarowa platforma hologramu pod stopami postaci */
.rpg-modal-center-render::before {
    content: '';
    position: absolute;
    bottom: 22px;
    width: 140px;
    height: 38px;
    background: radial-gradient(ellipse, rgba(168, 85, 247, 0.45) 0%, rgba(34, 211, 238, 0.08) 60%, transparent 80%);
    border-radius: 50%;
    border: 2px solid rgba(168, 85, 247, 0.35);
    box-shadow: 
        0 0 25px rgba(168, 85, 247, 0.5),
        inset 0 0 15px rgba(168, 85, 247, 0.3);
    animation: platformRotateY 8s linear infinite;
    z-index: 1;
    pointer-events: none;
}
@keyframes platformRotateY {
    0% { transform: rotateX(70deg) rotateZ(0deg); }
    100% { transform: rotateX(70deg) rotateZ(360deg); }
}
/* Płynnie obracający się awatar body skin */
.rpg-full-body {
    height: 155px;
    object-fit: contain;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.85)) drop-shadow(0 0 12px rgba(168, 85, 247, 0.25));
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 2;
    animation: avatarRotateY 12s linear infinite;
    transform-origin: center bottom;
}
@keyframes avatarRotateY {
    0% { transform: rotateY(-15deg); }
    50% { transform: rotateY(15deg); }
    100% { transform: rotateY(-15deg); }
}

/* Wektorowy medal ze screena z potężną poświatą i lewitacją */
.rpg-laurel-medal-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: -12px; /* Delikatne wejście pod nogi postaci */
    margin-bottom: 1.25rem;
    z-index: 3;
    animation: medalFloat 4s ease-in-out infinite;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.7));
    transform: scale(1.15); /* Większy medal */
}
@keyframes medalFloat {
    0%, 100% { transform: scale(1.15) translateY(0); }
    50% { transform: scale(1.15) translateY(-6px); }
}
.rpg-laurel-glow {
    position: absolute;
    width: 50px;
    height: 50px;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.75) 0%, rgba(217, 119, 6, 0.25) 50%, transparent 100%);
    filter: blur(8px);
    z-index: 1;
    animation: goldGlowPulse 2s infinite alternate ease-in-out;
}
@keyframes goldGlowPulse {
    0% { transform: scale(0.9); opacity: 0.65; filter: blur(6px); }
    100% { transform: scale(1.15); opacity: 1; filter: blur(10px); }
}
.rpg-laurel-svg {
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.6));
}
.rpg-medal-num {
    position: absolute;
    top: 23px;
    font-size: 0.75rem;
    font-weight: 900;
    color: #451a03;
    z-index: 5;
    text-shadow: none;
}

/* Przycisk NameMC na profilu */
.rpg-modal-namemc {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.02) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: rgba(255, 255, 255, 0.8) !important;
    padding: 8px 20px !important;
    border-radius: 8px !important;
    font-size: 0.75rem !important;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.rpg-modal-namemc:hover {
    color: #fff !important;
    border-color: transparent !important;
    background: linear-gradient(90deg, #a855f7, #6366f1, #22d3ee) !important;
    transform: translateY(-3px) scale(1.05) !important;
    box-shadow: 
        0 8px 25px rgba(168, 85, 247, 0.4),
        0 0 15px rgba(34, 211, 238, 0.2) !important;
}

/* Sekcje z siatkami tierów i wycofanych */
.rpg-modal-section {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}
.rpg-modal-header-lbl {
    font-family: 'Rajdhani', sans-serif !important;
    font-size: 0.85rem !important;
    font-weight: 800 !important;
    color: rgba(255, 255, 255, 0.5) !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important;
    margin-bottom: 0.8rem;
    text-shadow: 0 0 8px rgba(255,255,255,0.05);
}
.rpg-modal-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.4rem;
    width: 100%;
}

/* ===================================================
   TOP 3 PODIUM
=================================================== */
.podium-section {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: clamp(1rem, 4vw, 3rem);
    padding: 3.5rem 1rem 0;
    position: relative;
}
.podium-section::before {
    content: '';
    position: absolute;
    bottom: -60px;
    left: 10%;
    right: 10%;
    height: 140px;
    background: radial-gradient(ellipse at 50% 50%, rgba(99, 102, 241, 0.28) 0%, rgba(49, 46, 129, 0.05) 50%, transparent 80%);
    z-index: 1;
    pointer-events: none;
}
.podium-section::after {
    content: '';
    position: absolute;
    bottom: 0; left: 5%; right: 5%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
}
.podium-player {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    animation: podiumIn 0.55s cubic-bezier(0.175,0.885,0.32,1.275) both;
    opacity: 0;
    position: relative;
    z-index: 5;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.podium-player:hover {
    transform: translateY(-10px) scale(1.02);
}

/* Floor Reflection under podium base */
.podium-player::after {
    content: '';
    position: absolute;
    bottom: -15px; /* right under the base */
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 12px;
    background: radial-gradient(ellipse at center, rgba(34, 211, 238, 0.45) 0%, rgba(34, 211, 238, 0.05) 50%, transparent 70%);
    filter: blur(3px);
    z-index: 1;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.6;
}
.podium-player.p1::after {
    width: 120px;
    height: 16px;
    background: radial-gradient(ellipse at center, rgba(34, 211, 238, 0.65) 0%, rgba(34, 211, 238, 0.1) 50%, transparent 70%);
}
.podium-player.p2::after {
    background: radial-gradient(ellipse at center, rgba(251, 191, 36, 0.5) 0%, rgba(251, 191, 36, 0.05) 50%, transparent 70%);
}
.podium-player.p3::after {
    background: radial-gradient(ellipse at center, rgba(148, 163, 184, 0.45) 0%, rgba(148, 163, 184, 0.05) 50%, transparent 70%);
}
.podium-player:hover::after {
    transform: translateX(-50%) scale(1.3);
    opacity: 0.95;
}

/* Hover model scaling and shadows */
.podium-player:hover .podium-skin {
    transform: scale(1.1);
    filter: drop-shadow(0 15px 25px rgba(255,255,255,0.15)) drop-shadow(0 12px 20px rgba(0,0,0,0.8)) !important;
}
.podium-skin {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), filter 0.3s ease !important;
}

/* Hover SVG block glow expansion */
.podium-base svg {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.podium-player.p1:hover .podium-base svg {
    filter: drop-shadow(0 25px 35px rgba(34,211,238,0.95)) brightness(1.15) !important;
    transform: translateY(12px) scale(1.05);
}
.podium-player.p2:hover .podium-base svg {
    filter: drop-shadow(0 20px 30px rgba(251,191,36,0.9)) brightness(1.1) !important;
    transform: translateY(16px) scale(1.05);
}
.podium-player.p3:hover .podium-base svg {
    filter: drop-shadow(0 16px 25px rgba(148,163,184,0.85)) brightness(1.1) !important;
    transform: translateY(20px) scale(1.05);
}

.podium-player.p1 { order: 2; animation-delay: 0.05s; z-index: 10; }
.podium-player.p2 { order: 1; animation-delay: 0.15s; }
.podium-player.p3 { order: 3; animation-delay: 0.1s; }
@keyframes podiumIn {
    from { opacity: 0; transform: translateY(30px) scale(0.9); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
.podium-skin-wrap {
    position: relative;
    display: flex;
    justify-content: center;
    margin-bottom: -15px; /* Block overlap */
    animation: floatSkin 3.2s ease-in-out infinite;
    z-index: 10;
}
@keyframes floatSkin {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(0.5deg); }
}

/* Gold aura for #1 */
.p1 .podium-skin-wrap::before {
    content: '';
    position: absolute;
    top: 55%; left: 50%;
    transform: translate(-50%, -50%);
    width: 220px; height: 220px;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.45) 0%, rgba(217, 119, 6, 0.12) 50%, transparent 75%);
    filter: blur(20px);
    z-index: -1;
    border-radius: 50%;
    animation: winnerPulse 2s infinite alternate ease-in-out;
}
@keyframes winnerPulse {
    from { transform: translate(-50%, -50%) scale(0.95); opacity: 0.75; }
    to { transform: translate(-50%, -50%) scale(1.1); opacity: 1; filter: blur(28px); }
}

/* Silver aura for #2 */
.p2 .podium-skin-wrap::before {
    content: '';
    position: absolute;
    top: 55%; left: 50%;
    transform: translate(-50%, -50%);
    width: 170px; height: 170px;
    background: radial-gradient(circle, rgba(226, 232, 240, 0.4) 0%, rgba(100, 116, 139, 0.1) 50%, transparent 75%);
    filter: blur(15px);
    z-index: -1;
    border-radius: 50%;
    animation: floatGlow 2.5s infinite alternate ease-in-out;
}

/* Bronze aura for #3 */
.p3 .podium-skin-wrap::before {
    content: '';
    position: absolute;
    top: 55%; left: 50%;
    transform: translate(-50%, -50%);
    width: 170px; height: 170px;
    background: radial-gradient(circle, rgba(180, 83, 9, 0.35) 0%, rgba(120, 53, 4, 0.08) 50%, transparent 75%);
    filter: blur(15px);
    z-index: -1;
    border-radius: 50%;
    animation: floatGlow 2.5s infinite alternate ease-in-out;
}
@keyframes floatGlow {
    from { opacity: 0.6; transform: translate(-50%, -50%) scale(0.95); }
    to { opacity: 1.0; transform: translate(-50%, -50%) scale(1.05); }
}

/* Confetti / Sparkles stylings only above player #1 */
.sparkles-container {
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 120px;
    pointer-events: none;
    z-index: 10;
    overflow: visible;
}
.sparkle {
    position: absolute;
    font-size: 1.2rem;
    opacity: 0;
    animation: riseAndFade 2.4s infinite ease-in-out;
    filter: drop-shadow(0 0 4px #fbbf24);
}
.sp-1 { left: 10%; animation-delay: 0s; }
.sp-2 { left: 35%; animation-delay: 0.5s; font-size: 1.4rem; }
.sp-3 { left: 60%; animation-delay: 1.1s; }
.sp-4 { left: 80%; animation-delay: 1.7s; font-size: 1.3rem; }
.sp-5 { left: 45%; animation-delay: 2.1s; }

@keyframes riseAndFade {
    0% { transform: translateY(80px) scale(0.5); opacity: 0; }
    50% { opacity: 0.95; }
    100% { transform: translateY(-40px) scale(1.2); opacity: 0; }
}

.podium-crown {
    position: absolute;
    top: -36px;
    left: 50%; transform: translateX(-50%);
    animation: crown3DRotate 5s linear infinite !important;
    transform-style: preserve-3d;
    z-index: 5;
    display: flex;
}
.podium-rank-dot {
    position: absolute;
    top: -8px; left: 50%; transform: translateX(-50%);
    width: 28px; height: 28px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 900; font-style: italic; font-size: 0.9rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    z-index: 4;
}
.p1 .podium-rank-dot { background: linear-gradient(135deg,#fde68a,#d97706); color: #451a03; width:34px;height:34px;font-size:1.05rem;top:-12px; }
.p2 .podium-rank-dot { background: linear-gradient(135deg,#e2e8f0,#64748b); color: #0f172a; }
.p3 .podium-rank-dot { background: linear-gradient(135deg,#fed7aa,#b45309); color: #431407; }
.podium-skin {
    object-fit: contain;
    display: block;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.p1 .podium-skin { 
    height: 215px !important; 
    animation: winnerAvatarPulse 3s infinite alternate ease-in-out;
}
.p2 .podium-skin { 
    height: 155px !important; 
    animation: runnerUpAvatarPulse 3s infinite alternate ease-in-out;
}
.p3 .podium-skin { 
    height: 155px !important; 
    animation: runnerUpAvatarPulse 3s infinite alternate ease-in-out;
}
.podium-name {
    font-family: var(--pixel-font), sans-serif;
    font-weight: 900;
    font-size: 1.15rem;
    color: #ffffff;
    letter-spacing: 0.5px;
    margin-top: 0.5rem;
    margin-bottom: 0.25rem;
    text-align: center;
    max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.p1 .podium-name { font-size: 1.45rem; max-width: 150px; text-shadow: 0 0 15px rgba(255,255,255,0.4); }
.podium-pts {
    font-family: 'Rajdhani', var(--body-font), sans-serif !important;
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: #94a3b8;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.04);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: inline-block;
    margin-bottom: 0.6rem;
    animation: textGlow 2.5s infinite alternate ease-in-out;
}
.p1 .podium-pts {
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.1);
    border-color: rgba(251, 191, 36, 0.25);
    box-shadow: 0 0 12px rgba(251, 191, 36, 0.25);
    font-size: 1.05rem;
}
.podium-base {
    min-width: 110px; border-radius: 8px 8px 0 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; position: relative; overflow: hidden;
}
.podium-base::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0;
    height: 1px; background: rgba(255,255,255,0.15);
}
.podium-base::after {
    content: '';
    position: absolute;
    top: 0; left: -150%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.22), transparent);
    transform: skewX(-25deg);
    animation: lightSweep 4.5s infinite ease-in-out;
    pointer-events: none;
}
.p1 .podium-base {
    height: 70px;
    min-width: 140px;
    background: linear-gradient(180deg, #facc15 0%, #ca8a04 100%);
    border: 3px solid #eab308;
    border-top: 4px solid #fef08a;
    border-bottom: 4px solid #854d0e;
    box-shadow: 
        0 15px 35px rgba(234, 179, 8, 0.45),
        inset 0 3px 0 rgba(255,255,255,0.3);
}
.p2 .podium-base {
    height: 52px;
    background: linear-gradient(180deg, #38bdf8 0%, #0369a1 100%);
    border: 3px solid #0284c7;
    border-top: 4px solid #bae6fd;
    border-bottom: 4px solid #075985;
    box-shadow: 
        0 12px 25px rgba(56, 189, 248, 0.4),
        inset 0 3px 0 rgba(255,255,255,0.3);
}
.p3 .podium-base {
    height: 40px;
    background: linear-gradient(180deg, #cbd5e1 0%, #475569 100%);
    border: 3px solid #64748b;
    border-top: 4px solid #f1f5f9;
    border-bottom: 4px solid #334155;
    box-shadow: 
        0 10px 20px rgba(148, 163, 184, 0.35),
        inset 0 3px 0 rgba(255,255,255,0.3);
}

.podium-divider {
    text-align: center;
    padding: 0.75rem 1rem;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-header);
    letter-spacing: 2px;
    text-transform: uppercase;
    border-bottom: 1px solid var(--border-color);
}

/* ===================================================
   ROW ENTRANCE ANIMATION
=================================================== */
@keyframes rowSlideIn {
    from { opacity: 0; transform: translateX(-12px); }
    to   { opacity: 1; transform: translateX(0); }
}
/* ===================================================
   ROW ENTRANCE & KEYFRAME ANIMATIONS
   =================================================== */
#particles-js {
    animation: starsTwinkle 12s infinite ease-in-out;
}

@keyframes starsTwinkle {
    0%, 100% { opacity: 0.35; filter: brightness(0.85); }
    50% { opacity: 0.95; filter: brightness(1.2); }
}

@keyframes rowEntry {
    from {
        opacity: 0;
        transform: translateY(22px) scale(0.98);
        filter: blur(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes itemRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes crown3DRotate {
    0% {
        transform: translateX(-50%) translateY(0) rotateY(0deg);
        filter: drop-shadow(0 0 16px rgba(251, 191, 36, 0.95)) drop-shadow(0 0 4px #fbbf24);
    }
    50% {
        transform: translateX(-50%) translateY(-7px) rotateY(180deg);
        filter: drop-shadow(0 0 26px rgba(251, 191, 36, 0.8)) drop-shadow(0 0 8px #fbbf24);
    }
    100% {
        transform: translateX(-50%) translateY(0) rotateY(360deg);
        filter: drop-shadow(0 0 16px rgba(251, 191, 36, 0.95)) drop-shadow(0 0 4px #fbbf24);
    }
}

@keyframes lightSweep {
    0% { left: -150%; }
    50% { left: 150%; }
    100% { left: 150%; }
}

@keyframes textGlow {
    0%, 100% {
        opacity: 0.7;
        text-shadow: 0 0 6px rgba(255,255,255,0.15);
    }
    50% {
        opacity: 1;
        text-shadow: 0 0 16px rgba(255,255,255,0.7);
    }
}

@keyframes flowingGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes winnerAvatarPulse {
    0% {
        filter: drop-shadow(0 0 15px rgba(34, 211, 238, 0.35)) drop-shadow(0 15px 30px rgba(0,0,0,0.85)) brightness(1);
    }
    100% {
        filter: drop-shadow(0 0 35px rgba(34, 211, 238, 0.75)) drop-shadow(0 15px 30px rgba(0,0,0,0.85)) brightness(1.15);
    }
}

@keyframes runnerUpAvatarPulse {
    0% {
        filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.15)) drop-shadow(0 10px 20px rgba(0,0,0,0.7));
    }
    100% {
        filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.35)) drop-shadow(0 10px 20px rgba(0,0,0,0.7));
    }
}

.lb-row {
    animation: rowEntry 0.5s cubic-bezier(0.25, 0.8, 0.25, 1) both;
    opacity: 0;
}

/* ===================================================
   VIBRANT LIVE NEWS TICKER STYLE
   =================================================== */
.news-ticker-wrap {
    display: flex;
    align-items: center;
    background: rgba(13, 14, 18, 0.75) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-radius: 12px;
    margin: 1.5rem 1.5rem 0 1.5rem;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.25);
    height: 42px;
}

.news-ticker-label {
    background: linear-gradient(90deg, #ef4444, #b91c1c, #ec4899, #ef4444);
    background-size: 300% 300%;
    animation: flowingGradient 3s linear infinite;
    color: #fff;
    padding: 0 1.5rem;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 800;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.95rem;
    letter-spacing: 1px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
    box-shadow: 4px 0 15px rgba(239, 68, 68, 0.35);
    z-index: 2;
    flex-shrink: 0;
}

.news-ticker-label i {
    width: 16px;
    height: 16px;
}

.news-ticker-content {
    flex: 1;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
}

.news-ticker-track {
    display: inline-flex;
    white-space: nowrap;
    animation: tickerScroll 75s linear infinite;
    color: #cbd5e1;
    font-size: 0.9rem;
    font-weight: 500;
}

@keyframes tickerScroll {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* ===================================================
   SCROLL TO TOP BUTTON
=================================================== */
.scroll-top-btn {
    position: fixed;
    bottom: 2rem; right: 2rem;
    width: 44px; height: 44px;
    background: linear-gradient(135deg, rgba(251,191,36,0.9), rgba(217,119,6,0.9));
    border: none; border-radius: 50%;
    color: #fff; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 20px rgba(251,191,36,0.4);
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
    opacity: 0; pointer-events: none;
    z-index: 200;
}
.scroll-top-btn.visible { opacity: 1; pointer-events: auto; }
.scroll-top-btn:hover { transform: translateY(-4px); box-shadow: 0 8px 25px rgba(251,191,36,0.6); }
.scroll-top-btn i { width: 20px; height: 20px; }

/* ===================================================
   STATS BAR GLOW
=================================================== */
.tested-counter strong {
    transition: color 0.3s;
}
.stats-pulse {
    animation: statsPulse 0.6s ease;
}
@keyframes statsPulse {
    0%,100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* COMMAND PALETTE */
.cmd-palette-backdrop {
    background: rgba(5, 5, 8, 0.85) !important;
    backdrop-filter: blur(15px);
    align-items: flex-start;
    padding-top: 15vh;
}
.cmd-palette-container {
    background: rgba(15, 23, 42, 0.75) !important;
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 2px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 12px !important;
    width: 100%;
    max-width: 600px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.7), inset 0 1px 0 rgba(255,255,255,0.05);
    overflow: hidden;
    transform: scale(0.95);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    position: relative;
}
.cmd-palette-backdrop:not(.hidden) .cmd-palette-container {
    transform: scale(1);
    opacity: 1;
}
.cmd-palette-container::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    padding: 2px;
    background: linear-gradient(90deg, #a855f7, #6366f1, #d946ef, #a855f7);
    background-size: 300% 300%;
    -webkit-mask: 
       linear-gradient(#fff 0 0) content-box, 
       linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    animation: flowingGradient 4s linear infinite;
    z-index: 10;
}
.cmd-palette-container:focus-within::before {
    opacity: 1;
}
.cmd-palette-container:focus-within {
    transform: scale(1.04) !important;
    border-color: transparent !important;
    box-shadow: 
        0 30px 70px rgba(0,0,0,0.85), 
        0 0 35px rgba(168, 85, 247, 0.45) !important;
}
.cmd-palette-input-wrap {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1.5px solid rgba(255, 255, 255, 0.05);
    background: rgba(0,0,0,0.3) !important;
    transition: border-color 0.25s ease;
}
.cmd-palette-input-wrap:focus-within {
    border-bottom-color: #fbbf24 !important;
}
.cmd-palette-input-wrap .cmd-icon {
    color: var(--text-muted);
    margin-right: 1rem;
}
.cmd-palette-input-wrap input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 1.2rem;
    outline: none;
    font-family: 'Inter', sans-serif;
}
.cmd-palette-results {
    max-height: 400px;
    overflow-y: auto;
}
/* Custom Scrollbar for results */
.cmd-palette-results::-webkit-scrollbar {
    width: 6px;
}
.cmd-palette-results::-webkit-scrollbar-track {
    background: transparent;
}
.cmd-palette-results::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
}
.cmd-palette-results::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.2);
}

.cmd-result-item {
    padding: 0.8rem 1.2rem;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    cursor: pointer;
    border-bottom: 1px solid rgba(255,255,255,0.03);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}
.cmd-result-item:hover, .cmd-result-item.selected {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.2);
    padding-left: 1.5rem;
}
.cmd-result-item::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: #3b82f6;
    opacity: 0;
    transition: opacity 0.2s;
}
.cmd-result-item:hover::before {
    opacity: 1;
}

.cmd-result-item img {
    border-radius: 4px;
    background: rgba(0,0,0,0.3);
    padding: 2px;
}

/* HOLOGRAM MODAL & CHARTS */
.hologram-wrap {
    perspective: 1000px;
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}
.hologram-model {
    filter: drop-shadow(0 0 20px rgba(56, 189, 248, 0.6)) brightness(1.1);
    animation: hologramPulse 3s infinite alternate, hologramFloat 4s ease-in-out infinite;
    transform-style: preserve-3d;
    transition: transform 0.1s;
}
@keyframes hologramPulse {
    from { filter: drop-shadow(0 0 10px rgba(56, 189, 248, 0.4)) brightness(1.0) hue-rotate(0deg); }
    to { filter: drop-shadow(0 0 30px rgba(168, 85, 247, 0.6)) brightness(1.2) hue-rotate(15deg); }
}
@keyframes hologramFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.chart-container {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.4);
    margin-top: 1rem;
    height: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* FAB COMPARE & COMPARE MODAL */
.fab-compare {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    box-shadow: 0 10px 25px rgba(217, 119, 6, 0.5);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
}
.fab-compare:hover {
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 15px 35px rgba(217, 119, 6, 0.7);
}
.compare-selector {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2rem;
}
.compare-selector input {
    flex: 1;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 0.8rem 1rem;
    color: #fff;
    font-size: 1rem;
    text-align: center;
    outline: none;
}
.vs-badge {
    background: #ef4444;
    color: #fff;
    font-weight: 900;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-style: italic;
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.5);
}
.compare-stat-row {
    display: grid;
    grid-template-columns: 1fr 60px 1fr;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
    background: rgba(255,255,255,0.02);
    padding: 0.8rem;
    border-radius: 8px;
}
.stat-bar-bg {
    background: rgba(255,255,255,0.1);
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    flex: 1;
}
.stat-bar-fill {
    height: 100%;
    background: #34d399;
    position: absolute;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}
.stat-bar-fill.left { right: 0; background: #3b82f6; }
.stat-bar-fill.right { left: 0; background: #f59e0b; }

/* FAV BUTTON & STATUS */
.fav-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
    padding: 5px;
    display: flex;
    align-items: center;
}
.fav-btn:hover { color: #facc15; transform: scale(1.2); }
.fav-btn.active { color: #facc15; }

.live-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
    box-shadow: 0 0 8px currentColor;
    animation: pulseRed 2s infinite;
}
.status-online { color: #22c55e; background: #22c55e; }
.status-offline { color: #ef4444; background: #ef4444; }
.status-twitch { color: #a855f7; background: #a855f7; }

/* 3D TILT PODIUM */
.podium-player { perspective: 1000px; transform-style: preserve-3d; } .podium-player-inner { transition: transform 0.1s ease-out; } .compare-card { max-width: 950px !important; width: 95% !important; }

/* ===================================================
   ULTRA-CLEAN & PREMIUM LEADERBOARD TABLE STYLING
=================================================== */

/* Hide any legacy elements, pseudo-elements, and skewed elements */
.lb-rank-bg,
.lb-rank-badge-wrap,
.lb-rank-badge-skew,
.lb-rank-badge-content,
.lb-rank-container .lb-rank-bg {
    display: none !important;
}

.table-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    background: rgba(15, 18, 26, 0.7) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    padding: 1.1rem 1.8rem !important;
    font-size: 0.8rem !important;
    font-weight: 800 !important;
    letter-spacing: 1.5px !important;
    color: #94a3b8 !important;
}

.lb-row {
    display: flex !important;
    align-items: center !important;
    background: rgba(14, 18, 26, 0.65) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-radius: 16px !important;
    margin: 10px 16px !important;
    padding: 0 1.2rem !important;
    height: 84px !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35) !important;
    position: relative !important;
    overflow: visible !important;
}

.lb-row:hover {
    background: rgba(22, 28, 42, 0.9) !important;
    transform: translateY(-2.5px) scale(1.006) !important;
    border-color: rgba(168, 85, 247, 0.45) !important;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.55), 0 0 24px rgba(168, 85, 247, 0.18) !important;
    z-index: 10 !important;
}

/* Hide legacy hover tooltips or slashes */
.lb-row::before,
.lb-row::after {
    display: none !important;
    content: none !important;
}

/* Podium Ranks (1, 2, 3) */
.lb-row.rank-1 {
    background: linear-gradient(90deg, rgba(250, 204, 21, 0.14) 0%, rgba(14, 18, 26, 0.8) 45%) !important;
    border: 1px solid rgba(250, 204, 21, 0.35) !important;
    box-shadow: 0 6px 24px rgba(250, 204, 21, 0.12), inset 0 1px 0 rgba(250, 204, 21, 0.2) !important;
}
.lb-row.rank-2 {
    background: linear-gradient(90deg, rgba(226, 232, 240, 0.12) 0%, rgba(14, 18, 26, 0.8) 45%) !important;
    border: 1px solid rgba(226, 232, 240, 0.28) !important;
    box-shadow: 0 6px 24px rgba(226, 232, 240, 0.1), inset 0 1px 0 rgba(226, 232, 240, 0.18) !important;
}
.lb-row.rank-3 {
    background: linear-gradient(90deg, rgba(249, 115, 22, 0.12) 0%, rgba(14, 18, 26, 0.8) 45%) !important;
    border: 1px solid rgba(249, 115, 22, 0.32) !important;
    box-shadow: 0 6px 24px rgba(249, 115, 22, 0.12), inset 0 1px 0 rgba(249, 115, 22, 0.2) !important;
}

/* Rank & Avatar Box */
.player-rank-box {
    position: relative !important;
    width: 110px !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    flex-shrink: 0 !important;
    overflow: visible !important;
}

.player-rank-num {
    font-family: 'Rajdhani', sans-serif !important;
    font-size: 2.4rem !important;
    font-weight: 900 !important;
    font-style: italic !important;
    color: rgba(255, 255, 255, 0.12) !important;
    z-index: 1 !important;
    user-select: none !important;
    line-height: 1 !important;
}

.rank-1 .player-rank-num { color: rgba(250, 204, 21, 0.35) !important; text-shadow: 0 0 12px rgba(250, 204, 21, 0.3) !important; }
.rank-2 .player-rank-num { color: rgba(226, 232, 240, 0.3) !important; text-shadow: 0 0 12px rgba(226, 232, 240, 0.25) !important; }
.rank-3 .player-rank-num { color: rgba(249, 115, 22, 0.3) !important; text-shadow: 0 0 12px rgba(249, 115, 22, 0.25) !important; }

/* Crown for 1st place */
.rank-1 .player-rank-box::before {
    content: '👑' !important;
    position: absolute !important;
    top: -10px !important;
    left: 26px !important;
    font-size: 1.4rem !important;
    filter: drop-shadow(0 0 8px #eab308) !important;
    transform: rotate(-15deg) !important;
    animation: crownFloat 2s infinite alternate ease-in-out !important;
    z-index: 15 !important;
    pointer-events: none !important;
}

.player-avatar-bust {
    height: 78px !important;
    width: 78px !important;
    object-fit: contain !important;
    position: absolute !important;
    bottom: 3px !important;
    left: 36px !important;
    z-index: 10 !important;
    filter: drop-shadow(0 6px 12px rgba(0,0,0,0.75)) !important;
    transition: transform 0.3s ease, filter 0.3s ease !important;
}

.lb-row:hover .player-avatar-bust {
    transform: scale(1.1) translateY(-2px) !important;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.85)) !important;
}

/* Player Info Section */
.player-info {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    padding-left: 0.8rem !important;
    z-index: 5 !important;
}

/* Octagon Tier Boxes Section */
.lb-tiers {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    margin-left: auto !important;
    padding-right: 0.5rem !important;
    padding-left: 1rem !important;
    z-index: 5 !important;
}

.octagon-tier-box {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: 44px !important;
    height: 48px !important;
    background: rgba(18, 22, 32, 0.75) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;

    border-radius: 10px !important;
    padding: 3px 2px 2px 2px !important;
    transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
    cursor: pointer !important;
    overflow: visible !important;
}

.octagon-tier-box:hover {
    transform: translateY(-3px) scale(1.12) !important;
    background: rgba(26, 32, 48, 0.95) !important;
    border-color: rgba(255, 255, 255, 0.35) !important;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.6), 0 0 16px rgba(255, 255, 255, 0.18) !important;
    z-index: 20 !important;
}

.octagon-frame {
    width: 34px !important;
    height: 34px !important;
    border-radius: 7px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(0, 0, 0, 0.45) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    overflow: hidden !important;
}

.octagon-inner {
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
}

.octagon-inner img {
    width: 24px !important;
    height: 24px !important;
    object-fit: contain !important;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.75)) !important;
}

.octagon-badge-outer {
    position: absolute !important;
    bottom: -5px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    background: #090d16 !important;
    border: 1.5px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 5px !important;
    padding: 1.5px 5px !important;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.9), 0 0 6px rgba(0, 0, 0, 0.5) !important;
    z-index: 10 !important;
    white-space: nowrap !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.octagon-badge-inner {
    font-size: 0.65rem !important;
    font-weight: 900 !important;
    letter-spacing: 0.3px !important;
    font-family: 'Rajdhani', sans-serif !important;
    line-height: 1 !important;
    text-shadow: 0 0 4px rgba(0, 0, 0, 0.9) !important;
}

.retired-box {
    opacity: 0.6 !important;
    filter: grayscale(0.4) !important;
}

.oct-retired {
    position: absolute !important;
    top: 1px !important;
    right: 1px !important;
    font-size: 0.55rem !important;
    font-weight: 900 !important;
    color: #ef4444 !important;
    background: rgba(0,0,0,0.85) !important;
    padding: 0 3px !important;
    border-radius: 3px !important;
}




