@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@100;300;400;500;700;900&family=Syncopate:wght@400;700&display=swap');

:root {
    --bg-primary: #06101f;
    --bg-secondary: #0a1628;
    --accent-primary: #00E5FF;
    --accent-secondary: #5BB8F5;
    --accent-primary-faded: rgba(0, 229, 255, 0.1);
    --accent-primary-rgb: 0, 229, 255;
    --text-main: #e8f4ff;
    --text-muted: #6282a5;
    --glass: rgba(10, 22, 40, 0.6);
    --glass-border: rgba(18, 41, 74, 0.35);
    --glow: 0 0 40px rgba(0, 229, 255, 0.25);
    --transition-ultra: all 1.2s cubic-bezier(0.19, 1, 0.22, 1);
    --transition-smooth: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-headings: 'Outfit', sans-serif;
    --font-accent: 'Syncopate', sans-serif;
    --soft-gradient: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0) 100%);
    --metal-shine: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
}

img, svg {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

#canvas-3d {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    pointer-events: none;
}

.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://grainy-gradients.vercel.app/noise.svg');
    opacity: 0.05;
    pointer-events: none;
    z-index: 1000;
}


.theme-red {
    --bg-primary: #0a0806;
    --bg-secondary: #14100d;
    --accent-primary: #ff003c;
    --accent-secondary: #ff003c;
    --accent-primary-rgb: 255, 0, 60;
    --accent-primary-faded: rgba(255, 0, 60, 0.1);
    --text-main: #ffffff;
    --text-muted: #8c847d;
    --glass: rgba(255, 255, 255, 0.02);
    --glass-border: rgba(255, 255, 255, 0.05);
    --glow: 0 0 40px rgba(255, 0, 60, 0.25);
}

.theme-purple {
    --accent-primary: #bc13fe;
    --accent-secondary: #00f2ff;
    --glow: 0 0 30px rgba(188, 19, 254, 0.4);
}

.theme-blue {
    --accent-primary: #00f2ff;
    --accent-secondary: #7000ff;
    --glow: 0 0 30px rgba(0, 242, 255, 0.4);
}

.theme-vantablack {
    --accent-primary: #ffffff;
    --accent-secondary: #333333;
    --bg-primary: #000000;
    --glow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.theme-cyberpunk {
    --accent-primary: #fcee0a;
    --accent-secondary: #00f0ff;
    --bg-primary: #0a0a0a;
    --glow: 0 0 30px rgba(252, 238, 10, 0.3);
}

.theme-emerald {
    --accent-primary: #10b981;
    --accent-secondary: #34d399;
    --bg-primary: #05100a;
    --glow: 0 0 30px rgba(16, 185, 129, 0.3);
}

.theme-gold {
    --accent-primary: #ffd700;
    --accent-secondary: #ff8a00;
    --bg-primary: #0c0a05;
    --glow: 0 0 40px rgba(255, 215, 0, 0.3);
}

.theme-blood {
    --accent-primary: #990000;
    --accent-secondary: #ff0000;
    --bg-primary: #050000;
    --glow: 0 0 30px rgba(153, 0, 0, 0.4);
}

.theme-amethyst {
    --accent-primary: #a855f7;
    --accent-secondary: #d8b4fe;
    --bg-primary: #0a0510;
    --glow: 0 0 30px rgba(168, 85, 247, 0.3);
}

.theme-ocean {
    --accent-primary: #3b82f6;
    --accent-secondary: #60a5fa;
    --bg-primary: #050a10;
    --glow: 0 0 30px rgba(59, 130, 246, 0.3);
}

/* --- SEASONAL THEMING OVERRIDES --- */
body.season-halloween {
    --accent-primary: #ff6a00;
    --accent-secondary: #ff3a00;
    --bg-primary: #0a0502;
    --bg-secondary: #140a04;
    --accent-primary-faded: rgba(255, 106, 0, 0.1);
    --accent-primary-rgb: 255, 106, 0;
    --glow: 0 0 40px rgba(255, 106, 0, 0.35);
}

body.season-christmas {
    --accent-primary: #ef4444;
    --accent-secondary: #22c55e;
    --bg-primary: #050a07;
    --bg-secondary: #0c140f;
    --accent-primary-faded: rgba(239, 68, 68, 0.1);
    --accent-primary-rgb: 239, 68, 68;
    --glow: 0 0 40px rgba(239, 68, 68, 0.35);
}

body.season-spring {
    --accent-primary: #f472b6;
    --accent-secondary: #c084fc;
    --bg-primary: #0a060c;
    --bg-secondary: #140d18;
    --accent-primary-faded: rgba(244, 114, 182, 0.1);
    --accent-primary-rgb: 244, 114, 182;
    --glow: 0 0 40px rgba(244, 114, 182, 0.35);
}

body.season-summer {
    --accent-primary: #eab308;
    --accent-secondary: #ea580c;
    --bg-primary: #0c0a05;
    --bg-secondary: #171309;
    --accent-primary-faded: rgba(234, 179, 8, 0.1);
    --accent-primary-rgb: 234, 179, 8;
    --glow: 0 0 40px rgba(234, 179, 8, 0.35);
}

/* Active Styling card border highlights */
.theme-select-card.active {
    border-color: var(--accent-primary) !important;
    background: rgba(var(--accent-primary-rgb, 0, 229, 255), 0.08) !important;
    box-shadow: 0 0 25px rgba(var(--accent-primary-rgb, 0, 229, 255), 0.2) !important;
    transform: translateY(-5px);
}

/* Summer Water Click Ripple Animation */
.summer-water-click-ripple {
    position: fixed;
    width: 25px;
    height: 25px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.4) 0%, rgba(14, 165, 233, 0.1) 60%, transparent 100%);
    border: 2px solid rgba(240, 249, 255, 0.85);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(1);
    animation: waterRippleAnim 0.7s cubic-bezier(0.1, 0.8, 0.3, 1) forwards;
    z-index: 99999;
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.5);
}

@keyframes waterRippleAnim {
    0% {
        transform: translate(-50%, -50%) scale(0.4);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(4.5);
        opacity: 0;
    }
}

.summer-water-drop {
    filter: drop-shadow(0 2px 4px rgba(56, 189, 248, 0.4));
    line-height: 1;
    user-select: none;
}

/* --- SEASONAL BOTTOM FOOTERS --- */
#seasonal-bottom-footer-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70px;
    z-index: 10;
    pointer-events: none;
    overflow: visible;
}

/* Layered natural wavy landscape silhouettes */
.season-footer-curves {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50px;
    z-index: 1;
}

.season-footer-curves svg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* 🎃 Halloween Spooky Ground */
.season-footer-halloween .bottom-mist {
    position: absolute;
    bottom: 25px;
    left: 0;
    width: 200%;
    height: 40px;
    font-size: 2rem;
    opacity: 0.25;
    white-space: nowrap;
    animation: wave-slide 20s linear infinite;
    letter-spacing: 20px;
}
.season-footer-halloween .halloween-ground {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 35px;
    background: transparent;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0 10%;
    z-index: 2;
}
.ground-item {
    font-size: 1.1rem;
    animation: gentle-wobble 4s ease-in-out infinite alternate;
}
.ground-item.item2 { animation-delay: 1.2s; }
.ground-item.item3 { animation-delay: 2.4s; }

/* 🎄 Christmas Snowbank */
.season-footer-christmas .christmas-snowbank {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 35px;
    background: transparent;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0 10%;
    z-index: 2;
}
.snowbank-item {
    font-size: 1.2rem;
    animation: gentle-wobble 3.5s ease-in-out infinite alternate;
}
.snowbank-item.item2 { animation-delay: 0.8s; }
.snowbank-item.item3 { animation-delay: 1.8s; }

/* 🌸 Spring Lawn */
.season-footer-spring .spring-lawn {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 35px;
    background: transparent;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0 10%;
    z-index: 2;
}
.lawn-item {
    font-size: 1.2rem;
    animation: gentle-wobble 4s ease-in-out infinite alternate;
}
.lawn-item.item2 { animation-delay: 1s; }
.lawn-item.item3 { animation-delay: 2s; }

@keyframes wave-slide {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
@keyframes gentle-wobble {
    0% { transform: rotate(-5deg) translateY(0); }
    100% { transform: rotate(5deg) translateY(-3px); }
}


/* Color Picker UI */
.picker-container {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--glass);
    padding: 10px 20px;
    border-radius: 50px;
    border: 1px solid var(--glass-border);
}

#custom-color {
    appearance: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    background: none;
    cursor: pointer;
}

#custom-color::-webkit-color-swatch {
    border-radius: 50%;
    border: 2px solid white;
}

/* API Loading State */
.loading-pulse {
    width: 100%;
    height: 20px;
    background: rgba(255,255,255,0.05);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    margin: 10px 0;
}

.loading-pulse::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { left: -100%; }
    100% { left: 100%; }
}





* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-main);
    font-family: var(--font-main);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    letter-spacing: -0.01em;
    display: flow-root; /* Prevent margin collapse pushing the body down */
    padding-top: 9rem;
}

h1, h2, h3, h4, h5, h6, 
button, select, input[type="button"], input[type="submit"],
.nav-item, .mode-tab, .tab-btn, .action-btn, .action-icon-btn,
.select-trigger-v3, .select-option-v3,
.ip-badge, .stat-pill, .namemc-badge, .region-v2, .theme-option-v3 {
    font-family: var(--font-headings);
}

input, textarea {
    user-select: auto;
}

::-webkit-scrollbar {
    display: none;
}

body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://grainy-gradients.vercel.app/noise.svg');
    opacity: 0.05;
    pointer-events: none;
    z-index: 9999;
}



.video-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: url('assets/minecraft_snowy_forest.png') no-repeat center center fixed;
    background-size: cover;
    filter: saturate(1.1) brightness(0.35) contrast(1.1);
}

.video-bg video {
    display: none !important;
}

.bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, rgba(0,0,0,0.4) 100%);
    z-index: -1;
}

/* Navigation Pill */
.top-nav-wrapper {
    position: fixed;
    top: 2rem;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 2000;
}

.nav-pill {
    background: rgba(20, 15, 10, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 6px;
    border-radius: 18px;
    display: flex;
    gap: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.nav-item {
    background: transparent;
    border: none;
    color: var(--text-main);
    padding: 10px 24px;
    border-radius: 14px;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition-smooth);
    opacity: 0.6;
    text-decoration: none;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
    opacity: 1;
}

.nav-item.active {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 1;
}

.nav-item .dot {
    width: 8px;
    height: 8px;
    background: var(--accent-secondary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-secondary);
}

.nav-icon {
    width: 18px;
    height: 18px;
    opacity: 0.8;
}

.main-header {
    position: fixed;
    top: 1.5rem;
    left: 0;
    width: 100%;
    padding: 0 10%;
    z-index: 5000 !important;
    overflow: visible !important;
}

.header-container {
    background: rgba(10, 22, 40, 0.4);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 0.8rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(255, 255, 255, 0.02);
    position: relative;
    z-index: 5001 !important;
    overflow: visible !important;
}

/* Desktop Header Navigation */
.header-nav-desktop {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.header-nav-desktop .nav-item {
    font-size: 0.8rem;
    font-weight: 800;
    opacity: 0.65;
    background: transparent;
    border: none;
    color: var(--text-main);
    padding: 8px 16px;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.header-nav-desktop .nav-item:hover {
    opacity: 1;
    color: var(--accent-primary);
    background: rgba(var(--accent-primary-rgb), 0.05);
}

.header-nav-desktop .nav-item.active {
    opacity: 1;
    color: var(--accent-primary);
    background: rgba(var(--accent-primary-rgb), 0.1);
    border: 1px solid rgba(var(--accent-primary-rgb), 0.15);
    box-shadow: 0 0 15px rgba(var(--accent-primary-rgb), 0.05);
}

@media (max-width: 1024px) {
    .header-nav-desktop {
        display: none !important;
    }
}

@media (min-width: 1025px) {
    .top-nav-wrapper {
        display: none !important;
    }
}

/* Homepage Stats Showcase Grid */
.hero-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    width: 100%;
    max-width: 1100px;
    margin-top: 3.5rem;
}

.hero-stat-card {
    background: rgba(8, 14, 26, 0.9);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1.5px solid rgba(var(--accent-primary-rgb), 0.35);
    border-radius: 20px;
    padding: 1.8rem 1.5rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

.hero-stat-card:hover {
    transform: translateY(-8px);
    background: rgba(var(--accent-primary-rgb), 0.12);
    border-color: var(--accent-primary);
    box-shadow: 0 30px 50px rgba(0, 0, 0, 0.7), 0 0 30px rgba(var(--accent-primary-rgb), 0.3);
}

.stat-card-icon {
    font-size: 2.2rem;
    margin-bottom: 0.8rem;
    filter: drop-shadow(0 0 12px rgba(var(--accent-primary-rgb), 0.5));
}

.stat-card-number {
    font-family: var(--font-headings);
    font-size: 1.7rem;
    font-weight: 900;
    color: white;
    margin-bottom: 0.2rem;
    letter-spacing: -0.5px;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
}

.stat-card-label {
    font-size: 0.78rem;
    color: #e2e8f0;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.2px;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.brand-logo-container {
    width: 54px;
    height: 54px;
    background: var(--bg-secondary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 10px;
}

.brand-logo-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.brand-text h1 {
    font-size: 2.2rem;
    font-weight: 900;
    margin: 0;
    line-height: 1;
    background: linear-gradient(to right, var(--accent-primary) 0%, #fff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 15px var(--accent-primary));
    letter-spacing: -1px;
}

.brand-text p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.search-v2 {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    padding: 4px 6px 4px 16px;
    position: relative;
    width: 480px;
    max-width: 100%;
    z-index: 5002 !important;
    overflow: visible !important;
}

.custom-select-v3 {
    position: relative;
    min-width: 140px;
    user-select: none;
}

.select-trigger-v3 {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 8px 14px;
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    transition: all 0.2s;
}

.select-trigger-v3:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

.select-options-v3 {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: rgba(15, 12, 10, 0.98);
    backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 6px;
    z-index: 10000;
    display: none;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.select-options-v3.active {
    display: block;
    animation: dropdownSlide 0.2s ease-out;
}

.select-option-v3 {
    padding: 10px 12px;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.select-option-v3:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

@keyframes dropdownSlide {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.search-v2 input {
    background: transparent;
    border: none;
    color: white;
    font-size: 0.9rem;
    width: 100%;
    outline: none;
}

.search-btn {
    background: var(--accent-secondary);
    color: black;
    border: none;
    padding: 8px 18px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.8rem;
    transition: var(--transition-smooth);
}

.search-btn:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.action-icon-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--accent-secondary);
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.action-icon-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: scale(1.05);
}

.action-icon-btn svg {
    width: 20px;
}

.search-results {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: 0;
    background: rgba(15, 12, 10, 0.98);
    backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 8px;
    z-index: 99999 !important;
    display: none;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.05);
    pointer-events: auto !important;
    max-height: 400px;
    overflow-y: auto;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 8px;
    cursor: pointer !important;
    transition: var(--transition-smooth);
    pointer-events: auto !important;
}

.search-result-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.search-result-item img {
    width: 24px;
    height: 24px;
    border-radius: 4px;
}

.search-result-item span {
    font-size: 0.9rem;
    font-weight: 600;
}

/* View Sections */
.view-section {
    display: none;
    padding: 1.5rem 10% 5rem;
    animation: fadeIn 0.8s ease forwards;
}

.view-section.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Home Hero */
.home-hero {
    height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-container {
    background: rgba(15, 12, 10, 0.4);
    backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 255, 255, 0.03);
    padding: 5rem;
    border-radius: 40px;
    text-align: center;
    max-width: 800px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
}

.hub-tag {
    color: var(--accent-secondary);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 2rem;
    display: block;
}

.hub-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(to bottom, #fff, #888);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hub-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Leaderboard Mini Header */
.leaderboard-header-mini {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-pill {
    background: rgba(15, 12, 10, 0.4);
    backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.03);
    padding: 1.5rem 2.5rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    min-width: 240px;
    flex-shrink: 0;
}

.stat-icon {
    font-size: 2.5rem;
    background: rgba(255, 138, 0, 0.1);
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    color: var(--accent-secondary);
    flex-shrink: 0;
}

.stat-info h3 {
    font-size: 1.2rem;
    margin: 0;
}

.stat-info p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.modes-scroller {
    background: rgba(15, 12, 10, 0.4);
    backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.03);
    padding: 10px;
    border-radius: 24px;
    display: flex;
    gap: 10px;
    overflow-x: auto;
    flex-grow: 1;
}

.modes-scroller::-webkit-scrollbar {
    display: none;
}

.mode-card-v2 {
    flex: 0 0 auto;
    width: 85px;
    height: 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 20px;
    cursor: pointer;
    background: rgba(8, 14, 26, 0.65);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.05), 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.mode-card-v2:hover {
    transform: translateY(-4px);
    background: rgba(14, 25, 45, 0.8);
    border-color: rgba(var(--accent-primary-rgb), 0.35);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35), 0 0 12px rgba(var(--accent-primary-rgb), 0.15);
}

.mode-card-v2.active {
    background: linear-gradient(135deg, rgba(var(--accent-primary-rgb), 0.15) 0%, rgba(var(--accent-primary-rgb), 0.35) 100%);
    border-color: var(--accent-primary);
    box-shadow: 0 0 25px rgba(var(--accent-primary-rgb), 0.35), inset 0 0 10px rgba(var(--accent-primary-rgb), 0.2), 0 4px 15px rgba(0, 0, 0, 0.25);
}

.mode-icon-v2 {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    opacity: 0.85;
    transition: all 0.35s ease;
}

.mode-card-v2:hover .mode-icon-v2,
.mode-card-v2.active .mode-icon-v2 {
    opacity: 1;
    transform: scale(1.08);
}

.mode-icon-v2 img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.3));
}

.mode-card-v2.active .mode-icon-v2 img {
    filter: drop-shadow(0 0 8px var(--accent-primary));
}

.mode-card-v2 span {
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    transition: all 0.35s ease;
}

.mode-card-v2:hover span {
    color: #e2e8f0;
}

.mode-card-v2.active span {
    color: white;
    text-shadow: 0 0 8px rgba(var(--accent-primary-rgb), 0.6);
}

.leaderboard-meta {
    margin-bottom: 1.5rem;
    padding: 1rem 2rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.leaderboard-meta span {
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.leaderboard-meta strong {
    color: white;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 0 10%;
}

.hero-tag {
    font-family: 'Syncopate', sans-serif;
    font-size: 0.7rem;
    color: var(--accent-primary);
    margin-bottom: 1rem;
    letter-spacing: 5px;
    text-transform: uppercase;
}

.hero h1 {
    font-size: clamp(3rem, 8vw, 10rem);
    font-weight: 900;
    line-height: 0.9;
    letter-spacing: -4px;
    margin-bottom: 2rem;
    text-transform: uppercase;
}

/* Branding background */
.center-brand {
    font-family: var(--font-accent);
    font-size: 10vw;
    font-weight: 900;
    letter-spacing: -0.2vw;
    text-transform: uppercase;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: -1;
    opacity: 0.03;
    pointer-events: none;
    white-space: nowrap;
    color: #00f2ff;
    user-select: none;
    text-align: center;
}

.center-brand img,
.center-brand svg {
    display: none !important;
}

/* Floating Axolotl Animation */



/* LeaderBoard List View */
/* Leaderboard */
.leaderboard-container {
    padding: 15rem 10% 10rem;
    max-width: 1600px;
    margin: 0 auto;
}

.shimmer-text {
    background: linear-gradient(90deg, #fff, #444, #fff);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 5s linear infinite;
}

@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}


/* Modes Grid */
.modes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 5rem;
}

.mode-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    padding: 3rem 2rem;
    border-radius: 40px;
    cursor: pointer;
    transition: var(--transition-ultra);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    backdrop-filter: blur(40px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.mode-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, var(--accent-primary) 0%, transparent 70%);
    opacity: 0;
    transition: var(--transition-smooth);
    z-index: -1;
}

.mode-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--accent-primary);
    box-shadow: var(--glow);
}

.mode-card:hover::before {
    opacity: 0.1;
}

.mode-card.active {
    background: var(--glass);
    border-color: var(--accent-primary);
    box-shadow: var(--glow);
}

.mode-card.active .mode-icon {
    color: var(--accent-primary);
    transform: scale(1.2);
}

.mode-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    transition: var(--transition-smooth);
    filter: drop-shadow(0 0 10px rgba(255,255,255,0.2));
}

.mode-card h3 {
    font-family: 'Syncopate';
    font-size: 1.2rem;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.mode-card p {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.leaderboard-table {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.leaderboard-table.active {
    opacity: 1;
    transform: translateY(0);
}

.player-row {
    display: flex;
    align-items: center;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    margin-bottom: 1rem;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.player-row:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-primary);
    transform: translateX(10px) scale(1.01);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(var(--accent-primary-rgb), 0.1);
}

.player-row::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transition: 0.5s;
}

.player-row:hover::after {
    left: 100%;
}

.player-row:hover::before {
    left: 100%;
}


.player-rank {
    font-size: 2.5rem;
    font-weight: 900;
    font-family: 'Syncopate';
    background: linear-gradient(to bottom, #fff, #444);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0.1;
    transition: var(--transition-ultra);
}

.player-row:hover .player-rank {
    opacity: 0.8;
    transform: scale(1.1);
}


.rank-1 .player-rank { color: #ffd700; text-shadow: 0 0 10px rgba(255, 215, 0, 0.5); }
.rank-2 .player-rank { color: #c0c0c0; }
.rank-3 .player-rank { color: #cd7f32; }

.player-avatar {
    width: 45px;
    height: 45px;
    border-radius: 8px;
    background: var(--glass-border);
    overflow: hidden;
}

.player-info h4 {
    font-size: 1.1rem;
    font-weight: 700;
}

.player-info span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.region-tag {
    font-size: 0.7rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 4px;
    background: var(--accent-primary-faded);
    color: var(--accent-primary);
    width: fit-content;
}

.tier-badges {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

.mini-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.65rem;
    font-weight: 900;
    padding: 4px 10px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-smooth);
    white-space: nowrap;
}

.mode-mini-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
}

.mode-mini-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.mode-icon img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.badge-ht1 { color: #ffd700; border-color: rgba(255, 215, 0, 0.4); background: rgba(255, 215, 0, 0.1); box-shadow: 0 0 15px rgba(255, 215, 0, 0.1); }
.badge-lt1 { color: #f59e0b; border-color: rgba(245, 158, 11, 0.4); background: rgba(245, 158, 11, 0.1); }
.badge-ht2 { color: #a855f7; border-color: rgba(168, 85, 247, 0.4); background: rgba(168, 85, 247, 0.1); }
.badge-lt2 { color: #8b5cf6; border-color: rgba(139, 92, 246, 0.4); background: rgba(139, 92, 246, 0.1); }
.badge-ht3 { color: #3b82f6; border-color: rgba(59, 130, 246, 0.4); background: rgba(59, 130, 246, 0.1); }
.badge-lt3 { color: #60a5fa; border-color: rgba(96, 165, 250, 0.4); background: rgba(96, 165, 250, 0.1); }
.badge-ht4 { color: #10b981; border-color: rgba(16, 185, 129, 0.4); background: rgba(16, 185, 129, 0.1); }
.badge-lt4 { color: #34d399; border-color: rgba(52, 211, 153, 0.4); background: rgba(52, 211, 153, 0.1); }
.badge-ht5 { color: #6b7280; border-color: rgba(107, 114, 128, 0.4); background: rgba(107, 114, 128, 0.1); }
.badge-lt5 { color: #9ca3af; border-color: rgba(156, 163, 175, 0.4); background: rgba(156, 163, 175, 0.1); }


.theme-switcher {
    position: fixed;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.6);
    padding: 1.5rem;
    border-radius: 20px;
    backdrop-filter: blur(25px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transition: var(--transition-smooth);
}

.theme-switcher:hover {
    background: rgba(15, 15, 15, 0.8);
    border: 1px solid rgba(255,255,255,0.1);
}

.themes-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.theme-header {
    color: var(--text-muted);
    margin-bottom: 10px;
    width: 24px;
    height: 24px;
}

.theme-header svg {
    width: 100%;
    height: 100%;
}

.theme-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.theme-btn:hover {
    transform: scale(1.2);
    border-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 15px currentColor;
}

.custom-wrapper {
    background: conic-gradient(red, yellow, lime, aqua, blue, magenta, red);
    overflow: hidden;
}

.custom-wrapper input[type="color"] {
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    position: absolute;
    top: 0;
    left: 0;
}


/* Buttons */
.action-btn {
    padding: 1.2rem 3rem;
    background: rgba(255, 255, 255, 0.03);
    color: white;
    text-decoration: none;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 16px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    font-size: 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.action-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.action-btn:hover {
    background: white;
    color: black;
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(255, 255, 255, 0.2);
}

.action-btn:hover::before {
    left: 100%;
}

/* Animations */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: var(--transition-smooth);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Overlays */
.security-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #020202;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-family: 'Syncopate', sans-serif;
}

.security-overlay::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, transparent 0%, var(--accent-primary-faded) 50%, transparent 100%);
    background-size: 100% 10px;
    animation: scan-move 4s linear infinite;
    pointer-events: none;
}

@keyframes scan-move {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

.security-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
}

.digital-core {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.core-ring {
    position: absolute;
    border: 1px solid var(--accent-primary-faded);
    border-radius: 50%;
}

.core-ring.r1 { width: 100%; height: 100%; animation: rotate-cw 10s linear infinite; }
.core-ring.r2 { width: 70%; height: 70%; border-color: var(--accent-primary-faded); animation: rotate-ccw 5s linear infinite; }
.core-ring.r3 { 
    width: 30%; height: 30%; 
    background: var(--accent-primary); 
    box-shadow: 0 0 40px var(--accent-primary); 
    border: none;
    animation: core-pulse 2s ease-in-out infinite;
}

@keyframes rotate-cw { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes rotate-ccw { from { transform: rotate(360deg); } to { transform: rotate(0deg); } }
@keyframes core-pulse { 0%, 100% { transform: scale(1); opacity: 0.8; } 50% { transform: scale(1.1); opacity: 1; } }

.intro-title {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.intro-title span {
    font-size: 2.5rem;
    font-weight: 900;
    color: #fff;
    text-transform: uppercase;
    display: inline-block;
    letter-spacing: -2px;
}

.intro-status {
    color: var(--accent-primary);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 5px;
    text-transform: uppercase;
    margin-bottom: 3rem;
    opacity: 0.6;
}

.data-stream {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.data-block {
    width: 6px;
    height: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.data-block.active {
    background: var(--accent-primary);
    box-shadow: 0 0 15px var(--accent-primary);
    height: 30px;
    margin-top: -5px;
}

.security-footer {
    position: absolute;
    bottom: 3rem;
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.1);
    letter-spacing: 4px;
    width: 100%;
}

.outline-text {
    -webkit-text-stroke: 1px white;
    color: transparent;
}

/* Tier Grid Layout (For Modes) */
.tier-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
    width: 100%;
}

.tier-column {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-height: 500px;
}

.tier-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--glass-border);
    margin-bottom: 1rem;
}

.tier-header .trophy {
    font-size: 1.2rem;
    color: var(--accent-primary);
}

.tier-header h2 {
    font-family: 'Syncopate';
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
}

.tier-players {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    overflow-y: auto;
    max-height: 800px;
    padding: 5px;
}

/* Consolidated Player Row Styles above */

.player-rank-slanted {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 120px;
    background: transparent;
    clip-path: polygon(0 0, 100% 0, 85% 100%, 0 100%);
    display: flex;
    align-items: center;
    padding-left: 1rem;
    padding-right: 1.8rem;
    font-size: 1.5rem;
    font-weight: 900;
    font-style: italic;
    font-family: var(--font-main);
    color: rgba(255, 255, 255, 0.4); /* Faded default text color */
}

.player-row.rank-1 .player-rank-slanted { background: linear-gradient(135deg, var(--accent-primary), #800000); color: white; text-shadow: 2px 2px 0px rgba(0,0,0,0.5); }
.player-row.rank-2 .player-rank-slanted { background: linear-gradient(135deg, #d97706, #78350f); color: white; text-shadow: 2px 2px 0px rgba(0,0,0,0.5); }
.player-row.rank-3 .player-rank-slanted { background: linear-gradient(135deg, #b45309, #451a03); color: white; text-shadow: 2px 2px 0px rgba(0,0,0,0.5); }

.player-avatar-v3 {
    width: 48px;
    height: 48px;
    margin-left: 65px;
    z-index: 2;
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    background: rgba(0,0,0,0.2);
}

.player-avatar-v3 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: drop-shadow(5px 0 10px rgba(0,0,0,0.5));
}


.player-info-v3 {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.player-info-v3 h4 {
    font-size: 1.4rem;
    font-weight: 800;
    margin: 0;
    color: #e2e8f0;
}

.player-info-v3 .subtitle {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.85rem;
    color: #94a3b8;
}

.title-icon {
    color: var(--accent-primary);
    font-size: 1rem;
}

.region-v3 {
    background: var(--accent-primary-faded);
    color: var(--accent-primary);
    padding: 4px 10px;
    border-radius: 8px;
    font-weight: 900;
    font-size: 0.8rem;
    margin-right: 2rem;
}

.tier-badges-v3 {
    display: flex;
    gap: 1.2rem;
    align-items: center;
    padding-right: 1rem;
}

.tier-item-v3 {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.tier-icon-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.tier-icon-circle:hover {
    transform: scale(1.2);
    border-color: var(--accent-primary);
    box-shadow: 0 0 15px var(--accent-primary);
}

.tier-icon-circle img {
    width: 80%;
    height: 80%;
    object-fit: contain;
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.5));
}

.tier-label-v3 {
    font-size: 0.65rem;
    font-weight: 900;
    color: var(--accent-primary);
    letter-spacing: 0.5px;
}



/* Consolidated Player Row Styles above */

.tier-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 14px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    position: relative;
}

.tier-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateX(4px);
}

.region-pill {
    width: 4px;
    height: 24px;
    border-radius: 4px;
    flex-shrink: 0;
}

.tier-card img {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(0,0,0,0.3);
}

.tier-card h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: white;
    letter-spacing: -0.2px;
}

/* Subtier & Points Badges styling */
.subtier-badge {
    padding: 3px 8px;
    font-size: 0.65rem;
    font-weight: 900;
    border-radius: 6px;
    letter-spacing: 0.5px;
    font-family: 'Syncopate', sans-serif;
    display: inline-block;
    vertical-align: middle;
    margin-left: 8px;
    text-transform: uppercase;
}
.ht-badge {
    color: var(--accent-primary);
    background: rgba(var(--accent-primary-rgb), 0.08);
    border: 1px solid rgba(var(--accent-primary-rgb), 0.3);
    box-shadow: 0 0 6px rgba(var(--accent-primary-rgb), 0.15);
}
.lt-badge {
    color: #00f2ff;
    background: rgba(0, 242, 255, 0.08);
    border: 1px solid rgba(0, 242, 255, 0.3);
    box-shadow: 0 0 6px rgba(0, 242, 255, 0.15);
}
.points-badge {
    margin-left: auto;
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--text-muted);
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    padding: 4px 8px;
    border-radius: 6px;
    font-family: 'Syncopate', sans-serif;
}

/* Custom Scrollbar for Tier Columns */
.tier-players::-webkit-scrollbar {
    width: 4px;
}
.tier-players::-webkit-scrollbar-track {
    background: transparent;
}

/* Scanline Effect */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0) 50%,
        rgba(0, 0, 0, 0.05) 50%
    );
    background-size: 100% 4px;
    z-index: 9998;
    pointer-events: none;
    opacity: 0.1;
}

/* Podium Styles */
.podium-container {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 2rem;
    margin-bottom: 3rem;
    padding: 1rem;
    perspective: 1000px;
    width: 100%;
}

.podium-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    /* Removed transition to avoid GSAP animation conflicts */
}

/* Overridden below to support 3D frameless models with no background boxes */
.podium-avatar {
    width: auto;
    height: auto;
    background: transparent;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
}
.podium-avatar img {
    border-radius: 0;
}

.podium-base {
    width: 100%;
    padding: 1rem;
    border-radius: 12px;
    font-family: 'Syncopate';
    font-weight: 900;
    text-align: center;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.podium-base.gold { 
    background: linear-gradient(180deg, #ffd700, #b8860b);
    color: black;
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.3);
}

.podium-base.silver { 
    background: linear-gradient(180deg, #c0c0c0, #708090);
    color: black;
    box-shadow: 0 10px 30px rgba(192, 192, 192, 0.3);
}

.podium-base.bronze { 
    background: linear-gradient(180deg, #cd7f32, #8b4513);
    color: black;
    box-shadow: 0 10px 30px rgba(205, 127, 50, 0.3);
}

.podium-info {
    text-align: center;
    z-index: 2;
}

.podium-info h3 {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 0.2rem;
}

.podium-info span {
    font-size: 0.8rem;
    color: var(--accent-secondary);
    font-weight: 700;
}
/* Search Bar */
.search-container {
    position: relative;
    width: 300px;
}

#user-search {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    padding: 0.8rem 1.5rem 0.8rem 3rem;
    border-radius: 100px;
    color: white;
    font-family: var(--font-main);
    font-size: 0.8rem;
    letter-spacing: 1px;
    transition: var(--transition-smooth);
    backdrop-filter: blur(10px);
}

#user-search:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-primary);
    box-shadow: var(--glow);
    width: 400px;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--text-muted);
    pointer-events: none;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    z-index: 2000;
    display: none;
    align-items: flex-start;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 4rem 2rem;
    overflow-y: auto;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-compact {
    background: #0f0c0a;
    backdrop-filter: blur(40px);
    border: 1px solid rgba(var(--accent-primary-rgb), 0.3);
    border-radius: 32px;
    width: 95%;
    max-width: 520px;
    padding: 2rem;
    position: relative;
    box-shadow: 0 40px 120px rgba(0, 0, 0, 0.9), inset 0 0 30px rgba(var(--accent-primary-rgb), 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin: 0 auto;
}

.modal-compact::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 0%, rgba(var(--accent-primary-rgb), 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.close-modal {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    z-index: 10;
}

.close-modal:hover {
    background: white;
    color: black;
    transform: rotate(90deg);
}

.profile-v2-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    width: 100%;
    position: relative;
}

.avatar-v2 {
    width: 70px;
    height: 70px;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(var(--accent-primary-rgb), 0.2);
    border-radius: 20px;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 15px 30px rgba(0,0,0,0.6), 0 0 20px rgba(var(--accent-primary-rgb), 0.1);
    transition: var(--transition-smooth);
}

.avatar-v2 img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.avatar-v2:hover {
    transform: scale(1.05) rotate(2deg);
    border-color: var(--accent-primary);
    box-shadow: 0 20px 40px rgba(0,0,0,0.8), 0 0 30px rgba(var(--accent-primary-rgb), 0.3);
}

.profile-v2-header h1 {
    font-family: 'Syncopate';
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    text-transform: capitalize;
    color: #fff;
    margin: 0;
}

.region-v2 {
    padding: 6px 16px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 900;
    text-transform: uppercase;
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10b981;
}

.overall-banner {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

.banner-icon {
    font-size: 1.8rem;
    color: #ffd700;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.4));
}

.banner-info {
    text-align: left;
}

.banner-info span {
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--text-muted);
    display: block;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.banner-info h2 {
    font-family: var(--font-main);
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
    margin: 0;
}

.modes-grid-v2 {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.compact-mode-row {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: all 0.3s ease;
}

.compact-mode-row:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-primary);
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
}

.compact-mode-icon {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.compact-mode-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.compact-mode-info span {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-muted);
    display: block;
}

.compact-mode-info h4 {
    font-family: 'Syncopate';
    font-size: 0.9rem;
    font-weight: 800;
    color: #fff;
}

.rank-display {
    font-family: 'Syncopate';
    font-size: 2rem;
    font-weight: 800;
    font-style: italic;
    color: #fff;
    text-align: center;
    width: 100%;
    margin-top: 1rem;
}

.profile-mode-card:hover .mode-icon {
    transform: scale(1.2) rotate(5deg);
}

.profile-mode-card h4 {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 800;
    color: var(--text-muted);
}

.profile-mode-card .tier-label {
    font-size: 0.75rem;
    font-weight: 900;
    padding: 3px 10px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.3);
    margin: 2px 0;
}

.profile-mode-card span:last-child {
    font-size: 0.6rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 1px;
}

/* Overridden in active blocks below to support 3D frameless models */
.rank-1 .podium-avatar {
    width: auto;
    height: auto;
    border: none;
    box-shadow: none;
}

.podium-info h3 {
    font-family: var(--font-accent);
    font-size: 1.2rem;
    letter-spacing: 2px;
}

.podium-base {
    width: 140px;
    height: 60px;
    background: var(--glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-accent);
    font-size: 1.5rem;
    font-weight: 900;
    border-radius: 12px 12px 0 0;
    clip-path: polygon(10% 0, 90% 0, 100% 100%, 0% 100%);
}

.rank-1 .podium-base {
    height: 100px;
    background: linear-gradient(to top, rgba(255, 215, 0, 0.2), var(--glass));
    border-top: 3px solid #ffd700;
    color: #ffd700;
}

.silver { color: #c0c0c0; border-top: 3px solid #c0c0c0; }
.gold { color: #ffd700; border-top: 3px solid #ffd700; }
.bronze { color: #cd7f32; border-top: 3px solid #cd7f32; }


.tier-players::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
}


.tier-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.7rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.tier-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: var(--region-color, #888);
}

.tier-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(5px);
    border-color: var(--accent-primary);
}

.tier-card img {
    width: 28px;
    height: 28px;
    border-radius: 4px;
    background: #222;
}

.tier-card h4 {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 1400px) {
    .tier-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    border-top: none;
    border-radius: 0 0 20px 20px;
    margin-top: 5px;
    display: none;
    z-index: 1001;
    overflow: hidden;
    backdrop-filter: blur(20px);
}

.search-result-item {
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.search-result-item:hover {
    background: var(--glass);
    color: var(--accent-primary);
}

.search-result-item img {
    width: 24px;
    height: 24px;
    border-radius: 4px;
}

.search-result-item span {
    font-size: 0.8rem;
    font-weight: 500;
}

.copy-btn {
    background: rgba(255, 255, 255, 0.05) !important;
    color: white !important;
    border-color: var(--glass-border) !important;
}

.copy-btn:hover {
    background: var(--accent-primary) !important;
    border-color: var(--accent-primary) !important;
}

/* Tier Grid Layout */
.tier-grid {
    display: none;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.tier-grid.active {
    display: grid;
    opacity: 1;
    transform: translateY(0);
}

/* Bounds constraint for leaderboard listings */
#leaderboard-table, 
#leaderboard-table-normal {
    max-width: 1400px;
    margin: 2rem auto 0 auto;
    width: 100%;
}

.tier-column {
    background: rgba(15, 12, 10, 0.4);
    backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    height: 800px;
}

.tier-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tier-header h2 {
    font-size: 1.15rem;
    font-family: 'Syncopate';
    font-weight: 800;
    white-space: nowrap;
}

.tier-header .trophy {
    font-size: 1.25rem;
}

.tier-players {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    overflow-y: auto;
    flex-grow: 1;
    padding-right: 5px;
}

.tier-players::-webkit-scrollbar {
    width: 4px;
    display: block;
}

.tier-players::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.tier-card {
    background: rgba(255, 255, 255, 0.03);
    border-left: 3px solid var(--region-color, #fff);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.tier-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(5px);
}

.tier-card img {
    width: 32px;
    height: 32px;
    border-radius: 6px;
}

.tier-card h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0;
}

/* Views */
.view-section {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}
.view-section.active {
    display: block;
    opacity: 1;
}

/* Home Page Hub Box */
.home-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 100px;
}
.hub-box {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    padding: 4rem;
    border-radius: 40px;
    text-align: center;
    max-width: 600px;
}
.hub-tag {
    font-size: 0.8rem;
    color: var(--accent-primary);
    letter-spacing: 4px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 1rem;
}
.hub-title {
    font-family: var(--font-accent);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}
.hub-subtitle {
    color: var(--text-muted);
}

/* Leaderboard Page header mini */
.leaderboard-header-mini {
    padding-top: 150px;
    padding-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.stat-pill {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    padding: 1rem 2rem;
    border-radius: 12px;
    white-space: nowrap;
    flex-shrink: 0;
}

.stat-icon {
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.25);
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    flex-shrink: 0;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.15);
}

.stat-icon img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.stat-info h3 {
    font-size: 1.2rem;
    font-family: var(--font-accent);
    margin: 0;
}
.stat-info p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0;
}

/* Modes Scroller */
.modes-scroller {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 1rem;
    flex-grow: 1;
}

.modes-scroller::-webkit-scrollbar {
    height: 4px;
}

.modes-scroller::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.mode-card-v2 {
    flex: 0 0 auto;
    width: 80px;
    height: 85px;
    gap: 6px;
    border-radius: 16px;
}

.mode-card-v2:hover {
    background: rgba(14, 25, 45, 0.8);
    border-color: rgba(var(--accent-primary-rgb), 0.35);
}

.mode-card-v2.active {
    background: linear-gradient(135deg, rgba(var(--accent-primary-rgb), 0.15) 0%, rgba(var(--accent-primary-rgb), 0.35) 100%);
    border-color: var(--accent-primary);
}

.mode-icon-v2 {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}
.mode-icon-v2 img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.leaderboard-meta {
    max-width: 1400px;
    margin: 0 auto 2rem auto;
    font-size: 0.9rem;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 1000;
}

.meta-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Info Button */
.info-dropdown-wrapper {
    position: relative;
    display: inline-block;
}

.info-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-main);
    padding: 0.6rem 1.2rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.info-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-primary);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.05);
}

/* Info Dropdown Panel */
.info-dropdown-panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 360px;
    background: rgba(10, 15, 30, 0.95);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 1.2rem;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    z-index: 9999;
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.info-dropdown-panel.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Tabs Styling */
.info-tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    padding: 3px;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.info-tab-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 800;
    padding: 8px 4px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
}

.info-tab-btn:hover {
    color: white;
}

.info-tab-btn.active {
    background: rgba(255, 255, 255, 0.08);
    color: var(--accent-primary);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

/* Tab Content */
.info-tab-content {
    display: none;
    animation: fadeInTab 0.3s ease-out;
}

.info-tab-content.active {
    display: block;
}

@keyframes fadeInTab {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

.info-content-title {
    font-family: 'Syncopate';
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--accent-primary);
    margin-bottom: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-text {
    font-size: 0.75rem;
    line-height: 1.5;
    color: var(--text-muted);
    margin-bottom: 0.8rem;
}

/* Titles List */
.titles-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.titles-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.titles-list li:last-child {
    border-bottom: none;
}

.title-badge {
    font-weight: 700;
}

.points-requirement {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.rank-grandmaster { color: #f59e0b; }
.rank-master { color: #fcd34d; }
.rank-ace { color: #ec4899; }
.rank-specialist { color: #a855f7; }
.rank-cadet { color: #6366f1; }
.rank-novice { color: #3b82f6; }
.rank-rookie { color: #94a3b8; }

/* Lists general */
.points-list, .kits-list, .test-steps {
    padding-left: 1.2rem;
    margin: 0;
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    gap: 6px;
    line-height: 1.4;
}

.points-list li strong {
    color: white;
}

/* Server IP copy badge */
.ip-badge {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    display: flex;
    align-items: center;
    padding: 6px 14px 6px 6px;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
    position: relative;
    overflow: hidden;
}

.ip-badge:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-primary);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.05);
    transform: translateY(-1px);
}

.ip-badge-logo {
    background: var(--accent-primary);
    color: white;
    font-family: 'Syncopate', sans-serif;
    font-size: 0.65rem;
    font-weight: 900;
    padding: 8px 10px;
    border-radius: 10px;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.ip-badge-info {
    display: flex;
    flex-direction: column;
}

.ip-badge-info span {
    font-size: 0.55rem;
    color: var(--text-muted);
    font-weight: 800;
    letter-spacing: 0.5px;
}

.ip-badge-info strong {
    font-size: 0.85rem;
    color: white;
    font-weight: 700;
    letter-spacing: 0.2px;
    transition: color 0.2s ease;
}

.ip-badge-copy {
    color: var(--text-muted);
    opacity: 0.6;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    margin-left: 4px;
}

.ip-badge:hover .ip-badge-copy {
    color: white;
    opacity: 1;
    transform: scale(1.1);
}

/* --- Security DDOS Overla/* --- Security DDOS Overlay (HIGH-TECH CINEMATIC UPGRADE) --- */
.security-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(24, 17, 18, 0.3) 0%, rgba(10, 7, 7, 0.88) 100%);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Futuristic digital grid pattern */
.security-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(var(--accent-primary-rgb), 0.15) 1.5px, transparent 1.5px);
    background-size: 32px 32px;
    opacity: 0.75;
    pointer-events: none;
    z-index: 1;
}

/* Soft pulsating red ambient glow in background */
.security-overlay::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(var(--accent-primary-rgb), 0.12) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
    animation: ambient-pulse 4s ease-in-out infinite alternate;
}

@keyframes ambient-pulse {
    0% { opacity: 0.6; transform: translate(-50%, -50%) scale(0.9); }
    100% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
}

.security-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 90%;
    max-width: 480px;
    background: rgba(18, 12, 12, 0.7);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(var(--accent-primary-rgb), 0.2);
    box-shadow: 
        0 30px 70px rgba(0, 0, 0, 0.8),
        inset 0 0 30px rgba(var(--accent-primary-rgb), 0.05);
    border-radius: 28px;
    padding: 3.5rem 2rem;
    z-index: 2;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Translucent futuristic tech lines at top and bottom of security card */
.security-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
}

.digital-core {
    position: relative;
    width: 110px;
    height: 110px;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.core-ring {
    position: absolute;
    border: 1.5px solid transparent;
    border-radius: 50%;
}

.core-ring.r1 {
    width: 100%;
    height: 100%;
    border-top-color: var(--accent-primary);
    border-right-color: rgba(var(--accent-primary-rgb), 0.2);
    animation: rotate-cw 8s linear infinite;
    filter: drop-shadow(0 0 8px var(--accent-primary));
}

.core-ring.r2 {
    width: 75%;
    height: 75%;
    border-bottom-color: #ffffff;
    border-left-color: rgba(255, 255, 255, 0.2);
    animation: rotate-ccw 5s linear infinite;
    opacity: 0.7;
}

.core-ring.r3 {
    width: 35%;
    height: 35%;
    background: radial-gradient(circle, #ffffff 0%, var(--accent-primary) 100%);
    box-shadow: 
        0 0 25px var(--accent-primary),
        0 0 50px rgba(var(--accent-primary-rgb), 0.5);
    border: none;
    border-radius: 50%;
    animation: core-pulse 1.5s ease-in-out infinite;
}

@keyframes rotate-cw {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes rotate-ccw {
    from { transform: rotate(360deg); }
    to { transform: rotate(0deg); }
}

@keyframes core-pulse {
    0%, 100% { transform: scale(1); filter: brightness(1); }
    50% { transform: scale(1.15); filter: brightness(1.2); }
}

.intro-title {
    font-family: var(--font-accent);
    font-size: 2.2rem;
    letter-spacing: 12px;
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-bottom: 0.8rem;
    font-weight: 900;
}

.intro-title span {
    background: linear-gradient(135deg, #ffffff 0%, #ffcbd5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 15px rgba(var(--accent-primary-rgb), 0.4));
}

.intro-status {
    font-size: 0.65rem;
    letter-spacing: 5px;
    color: var(--accent-primary);
    text-transform: uppercase;
    font-weight: 800;
    margin-bottom: 2rem;
    opacity: 0.9;
    text-shadow: 0 0 8px rgba(var(--accent-primary-rgb), 0.5);
}

.data-stream {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 1rem;
}

.data-block {
    width: 24px;
    height: 4px;
    background: rgba(var(--accent-primary-rgb), 0.15);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.data-block.active {
    background: var(--accent-primary);
    box-shadow: 0 0 15px var(--accent-primary);
}

.security-footer {
    font-size: 0.55rem;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.25);
    margin-top: 1.5rem;
    font-family: var(--font-main);
}

/* --- Podium Styles --- */
.podium-container {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 5rem;
    padding-top: 3rem;
    perspective: 1000px;
}

.podium-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    /* Removed transition to avoid GSAP animation conflicts */
}

.podium-avatar {
    padding: 0;
    background: transparent;
    border-radius: 0;
    border: none;
    box-shadow: none;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    position: relative;
    margin-bottom: -15px; /* Stand directly on top of the base block */
}

/* Dynamic Mineral Spotlights behind characters */
.podium-avatar::before {
    content: '';
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 140px;
    height: 140px;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0; /* Default completely hidden */
    z-index: -1;
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.4s ease;
}
.rank-1 .podium-avatar::before { background: radial-gradient(circle, #ffd700 0%, transparent 70%); }
.rank-2 .podium-avatar::before { background: radial-gradient(circle, #cbd5e1 0%, transparent 70%); }
.rank-3 .podium-avatar::before { background: radial-gradient(circle, #cd7f32 0%, transparent 70%); }

/* Theme-Reactive Neon Floor Plate */
.podium-avatar::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 25px;
    background: var(--accent-primary);
    border-radius: 50%;
    filter: blur(15px);
    opacity: 0; /* Default completely hidden */
    z-index: -2;
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.4s ease, background-color 0.4s ease;
}

.rank-1 .podium-avatar { width: 150px; height: 230px; }
.rank-2 .podium-avatar { width: 130px; height: 190px; }
.rank-3 .podium-avatar { width: 120px; height: 175px; }

/* Gentle Idle Breathing/Floating Animations */
@keyframes float-rank-1 {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}
@keyframes float-rank-2 {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}
@keyframes float-rank-3 {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

.rank-1 .podium-avatar img { animation: float-rank-1 4.5s ease-in-out infinite; }
.rank-2 .podium-avatar img { animation: float-rank-2 5s ease-in-out infinite; }
.rank-3 .podium-avatar img { animation: float-rank-3 5.5s ease-in-out infinite; }

.podium-avatar img {
    width: auto;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.65));
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.podium-item:hover .podium-avatar img {
    transform: scale(1.08) translateY(-8px);
}

.podium-item:hover .podium-avatar::before { opacity: 0.45; transform: translateX(-50%) scale(1.25); }
.podium-item:hover .podium-avatar::after { opacity: 0.65; transform: translateX(-50%) scale(1.3); }

.podium-info h3 {
    font-family: var(--font-accent);
    font-size: 0.9rem;
    margin-bottom: 2px;
    text-align: center;
}

.podium-info span {
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--accent-primary);
    display: block;
    text-align: center;
}

/* Premium Glassmorphism Pedestal Blocks */
.podium-base {
    width: 130px;
    border-radius: 12px 12px 2px 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-accent);
    font-weight: 900;
    font-size: 1.2rem;
    backdrop-filter: blur(15px);
    transition: var(--transition-smooth);
}

.podium-base.gold {
    background: linear-gradient(135deg, rgba(253, 224, 71, 0.15) 0%, rgba(202, 138, 4, 0.03) 100%);
    border: 1px solid rgba(253, 224, 71, 0.3);
    color: #fde047;
    text-shadow: 0 0 15px rgba(253, 224, 71, 0.6);
    box-shadow: 0 15px 35px rgba(253, 224, 71, 0.15), inset 0 1px 0 rgba(253, 224, 71, 0.4);
    height: 100px;
}

.podium-base.silver {
    background: linear-gradient(135deg, rgba(226, 232, 240, 0.15) 0%, rgba(148, 163, 184, 0.03) 100%);
    border: 1px solid rgba(226, 232, 240, 0.3);
    color: #cbd5e1;
    text-shadow: 0 0 15px rgba(226, 232, 240, 0.5);
    box-shadow: 0 15px 35px rgba(226, 232, 240, 0.1), inset 0 1px 0 rgba(226, 232, 240, 0.4);
    height: 70px;
}

.podium-base.bronze {
    background: linear-gradient(135deg, rgba(253, 186, 116, 0.15) 0%, rgba(154, 52, 18, 0.03) 100%);
    border: 1px solid rgba(253, 186, 116, 0.3);
    color: #fdba74;
    text-shadow: 0 0 15px rgba(253, 186, 116, 0.5);
    box-shadow: 0 15px 35px rgba(253, 186, 116, 0.08), inset 0 1px 0 rgba(253, 186, 116, 0.4);
    height: 50px;
}

/* --- Compact Modal --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(15px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
}

.modal-overlay.active { display: flex; }

.modal-compact {
    background: rgba(15, 11, 20, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 650px;
    max-width: 90vw;
    border-radius: 20px;
    padding: 2rem;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.8);
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: 2px solid white;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.close-modal:hover {
    background: rgba(255, 255, 255, 0.1);
}

.profile-v2-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.namemc-badge:hover {
    background: rgba(255, 255, 255, 0.1) !important;
}

.avatar-v2 {
    width: 90px;
    height: 90px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 6px;
    overflow: hidden;
}

.avatar-v2 img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }

.profile-v2-header h1 {
    font-size: 1.6rem;
    font-family: 'Inter', sans-serif;
    font-weight: 800;
}

.region-v2 {
    font-size: 0.7rem;
    font-weight: 800;
    padding: 4px 14px;
    border-radius: 100px;
}

.overall-banner {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.banner-icon { font-size: 1.5rem; display: flex; align-items: center; }
.banner-info { display: flex; flex-direction: column; align-items: flex-start; }
.banner-info span { font-size: 0.65rem; font-weight: 800; color: var(--text-muted); letter-spacing: 1px; text-transform: uppercase; }
.banner-info h2 { font-size: 1.2rem; margin: 0; color: white; font-weight: 800; }

.modes-grid-v2 {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.compact-mode-row {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0.8rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.compact-mode-icon { 
    width: 36px; 
    height: 36px; 
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
}
.compact-mode-icon img, .compact-mode-icon svg { width: 100%; height: 100%; object-fit: contain; }

.compact-mode-info { display: flex; flex-direction: column; }
.compact-mode-info span { font-size: 0.6rem; color: var(--text-muted); font-weight: 800; text-transform: uppercase; }
.compact-mode-info h4 { font-size: 1.1rem; margin: 0; font-weight: 800; color: white; }

.rank-display {
    color: white;
    font-size: 2rem;
    font-weight: 900;
    font-style: italic;
    font-family: 'Inter', sans-serif;
    margin-top: 0.5rem;
}

.search-select {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    outline: none;
    font-size: 0.9rem;
    cursor: pointer;
    font-family: inherit;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.7rem center;
    background-size: 1em;
    padding-right: 2.5rem;
}

.search-select option {
    background: #1a1a1a;
    color: white;
    padding: 10px;
}

/* --- Admin & Staff --- */
.admin-card {
    transition: var(--transition-smooth);
}

.admin-card:hover {
    border-color: rgba(var(--accent-primary-rgb), 0.3) !important;
    transform: translateY(-5px);
}

.player-avatar-v3 {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    padding: 5px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    flex-shrink: 0;
}

.player-avatar-v3 img { width: 100%; }

.player-row {
    background: rgba(15, 12, 10, 0.4);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.player-row:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    transform: scale(1.01);
}

.player-rank-slanted {
    width: 50px;
    height: 40px;
    background: #222;
    clip-path: polygon(20% 0%, 100% 0%, 80% 100%, 0% 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 0.9rem;
}

.player-info-v3 h4 { font-size: 1rem; margin: 0; }
.player-info-v3 .subtitle { font-size: 0.7rem; color: var(--text-muted); }

.region-v3 {
    margin-left: auto;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
}

.tier-badges-v3 {
    display: flex;
    gap: 10px;
}

.tier-item-v3 {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.03);
    padding: 4px 10px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.tier-icon-circle { width: 16px; height: 16px; opacity: 0.8; }
.tier-label-v3 { font-size: 0.7rem; font-weight: 700; color: var(--text-muted); }

.player-avatar-v3.bust {
    background: transparent;
    overflow: visible;
    width: 60px;
    height: 60px;
    margin-left: 20px;
    margin-right: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.player-avatar-v3.bust img {
    height: 90px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.6));
    position: absolute;
    bottom: -5px;
    z-index: 10;
}

/* Theme Picker V3 */
.theme-picker-container {
    position: relative;
    display: flex;
    align-items: center;
}

.theme-dropdown-v3 {
    position: absolute;
    top: calc(100% + 15px);
    right: 0;
    background: rgba(15, 12, 10, 0.98);
    backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 8px;
    width: 180px;
    display: none;
    z-index: 20000;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.theme-dropdown-v3.active {
    display: block;
    animation: themeSlide 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.theme-option-v3 {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    font-weight: 500;
}

.theme-option-v3:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

.theme-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    box-shadow: 0 0 10px currentColor;
}

.theme-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.05);
    margin: 8px;
}

.theme-custom {
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
}

#custom-color-v3 {
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: none;
    cursor: pointer;
    padding: 0;
}

#custom-color-v3::-webkit-color-swatch {
    border-radius: 4px;
    border: none;
}

@keyframes themeSlide {
    from { opacity: 0; transform: translateY(-10px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Theme Classes */
.theme-autumn { --accent-primary: #d97706; --glow: 0 0 30px rgba(217, 119, 6, 0.4); }
.theme-winds { --accent-primary: #60a5fa; --glow: 0 0 30px rgba(96, 165, 250, 0.4); }

#particles-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.leaf-particle {
    position: absolute;
    top: -50px;
    border-radius: 2px 15px 2px 15px;
    filter: blur(1px);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.lava-ember {
    position: absolute;
    background: #ff4500;
    border-radius: 50%;
    filter: blur(1px);
    box-shadow: 0 0 10px var(--accent-primary), 0 0 20px #ff4500;
}

.nebula-cloud {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    pointer-events: none;
}

.wind-line {
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    filter: blur(1px);
}

.nebula-star {
    position: absolute;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 5px white, 0 0 10px rgba(168, 85, 247, 0.5);
    filter: blur(0.5px);
}

.theme-snow { --accent-primary: #e0f2fe; --glow: 0 0 30px rgba(224, 242, 254, 0.4); }
.theme-amethyst { --accent-primary: #d946ef; --glow: 0 0 30px rgba(217, 70, 239, 0.4); }
.theme-toxic { --accent-primary: #00ffcc; --glow: 0 0 30px rgba(0, 255, 204, 0.4); }
.theme-sunset { --accent-primary: #ff4b2b; --glow: 0 0 30px rgba(255, 75, 43, 0.4); }
.theme-glacial { --accent-primary: #00f2fe; --glow: 0 0 30px rgba(0, 242, 254, 0.4); }
.theme-sakura { --accent-primary: #fda4af; --glow: 0 0 30px rgba(253, 164, 175, 0.4); }

.snowflake {
    position: absolute;
    top: -20px;
    background: white;
    border-radius: 50%;
    filter: blur(1px);
}

.lava-burst {
    position: absolute;
    width: 30px;
    height: 30px;
    background: radial-gradient(circle, var(--accent-primary) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(5px);
}

.galaxy-spiral {
    position: absolute;
    width: 60px;
    height: 60px;
    background: url('https://upload.wikimedia.org/wikipedia/commons/thumb/c/c3/Galaxy_cluster_macs0647.jpg/300px-Galaxy_cluster_macs0647.jpg') no-repeat center; /* Placeholder or CSS shape */
    background: radial-gradient(circle, rgba(168, 85, 247, 0.4) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(10px);
}

.galaxy-spiral::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.8), transparent);
    transform: translate(-50%, -50%) rotate(45deg);
}

/* --- PREMIUM RESPONSIVE MOBILE OVERRIDES --- */
@media (max-width: 768px) {

    /* =============================
       BASE & LAYOUT
    ============================= */
    body {
        padding: 0;
        overflow-x: hidden;
    }

    #view-container {
        padding: 6px !important;
        margin-top: 0 !important;
    }

    section, .section-pad {
        padding: 1rem 0.5rem !important;
    }

    /* =============================
       TOP NAV → BOTTOM BAR ON MOBILE
    ============================= */
    .top-nav-wrapper {
        position: fixed !important;
        top: auto !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 100% !important;
        z-index: 9000 !important;
        padding: 0 !important;
        justify-content: center !important;
    }

    .nav-pill {
        width: 100% !important;
        border-radius: 0 !important;
        border-top: 1px solid rgba(255,255,255,0.08) !important;
        border-bottom: none !important;
        padding: 6px 4px !important;
        gap: 2px !important;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        justify-content: flex-start;
    }

    .nav-pill::-webkit-scrollbar { display: none; }

    .nav-item {
        flex: 0 0 auto !important;
        font-size: 0.65rem !important;
        padding: 8px 12px !important;
        gap: 5px !important;
        flex-direction: column !important;
        align-items: center !important;
        border-radius: 10px !important;
        min-width: 60px !important;
    }

    .nav-icon { width: 18px !important; height: 18px !important; }
    .nav-item .dot { display: none; }

    /* Extra bottom padding so content isn't hidden behind bottom nav */
    main { padding-bottom: 80px !important; }

    /* =============================
       MAIN HEADER
    ============================= */
    .main-header {
        position: absolute !important;
        top: 0 !important;
        padding: 0.8rem 0.5rem !important;
        margin-top: 0 !important;
    }

    .header-container {
        flex-direction: column !important;
        gap: 0.8rem !important;
        padding: 1rem !important;
        text-align: center !important;
    }

    .header-brand {
        flex-direction: column !important;
        align-items: center !important;
        gap: 0.4rem !important;
    }

    .brand-text h1 { font-size: 1.4rem !important; }
    .brand-text { text-align: center !important; }

    .header-actions {
        width: 100% !important;
        flex-direction: column !important;
        gap: 0.6rem !important;
    }

    .search-v2 {
        width: 100% !important;
        flex-direction: column !important;
        gap: 0.5rem !important;
    }

    .search-v2 input[type="text"] {
        width: 100% !important;
        box-sizing: border-box !important;
        font-size: 0.9rem !important;
    }

    .custom-select-v3 { width: 100% !important; }
    .search-btn { width: 100% !important; justify-content: center !important; }

    /* =============================
       HERO
    ============================= */
    .home-hero {
        padding: 2rem 1rem 2rem 1rem !important;
        min-height: unset !important;
    }

    .hero-container {
        padding: 2rem 1.2rem !important;
        border-radius: 20px !important;
        max-width: 100% !important;
    }

    .hub-title {
        font-size: 2rem !important;
        line-height: 1.2 !important;
    }

    .hub-subtitle { font-size: 0.9rem !important; }

    /* =============================
       STAT PILLS / MINI HEADER
    ============================= */
    .leaderboard-header-mini {
        flex-direction: column !important;
        gap: 0.8rem !important;
    }

    .stat-pill {
        min-width: unset !important;
        width: 100% !important;
        padding: 1rem 1.2rem !important;
        gap: 1rem !important;
        box-sizing: border-box !important;
        border-radius: 12px !important;
    }

    .stat-icon {
        width: 50px !important;
        height: 50px !important;
        font-size: 1.8rem !important;
    }

    /* =============================
       MODES SCROLLER
    ============================= */
    .modes-scroller {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        padding: 0.5rem !important;
        gap: 0.5rem !important;
        scrollbar-width: none !important;
    }

    .modes-scroller::-webkit-scrollbar { display: none; }

    .mode-card-v2 {
        flex: 0 0 auto !important;
        min-width: 80px !important;
        padding: 0.6rem 0.8rem !important;
    }

    /* =============================
       LEADERBOARD CONTROLS
    ============================= */
    .leaderboard-meta {
        flex-direction: column !important;
        gap: 0.8rem !important;
        align-items: flex-start !important;
    }

    .meta-controls {
        width: 100% !important;
        flex-direction: column !important;
        gap: 0.6rem !important;
    }

    .info-dropdown-wrapper { width: 100% !important; }
    .info-btn { width: 100% !important; justify-content: center !important; }

    .info-dropdown-panel {
        width: 100% !important;
        left: 0 !important;
        right: 0 !important;
        box-sizing: border-box !important;
    }

    .ip-badge {
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* =============================
       PODIUM (TOP 3)
    ============================= */
    .podium-container {
        gap: 0.3rem !important;
        padding: 1rem 0.2rem !important;
    }

    .podium-item {
        flex: 1 !important;
        max-width: 33% !important;
        padding: 0.6rem 0.3rem !important;
    }

    .podium-avatar {
        width: 44px !important;
        height: 44px !important;
    }

    .podium-info h3 { font-size: 0.65rem !important; }
    .podium-info span { font-size: 0.6rem !important; }
    .podium-base { font-size: 0.7rem !important; padding: 3px 6px !important; }

    /* =============================
       PLAYER ROWS
    ============================= */
    .player-row {
        padding: 0.8rem !important;
        gap: 0.5rem !important;
        flex-wrap: wrap !important;
        position: relative !important;
    }

    .player-rank-slanted {
        font-size: 0.85rem !important;
        width: 50px !important;
        min-width: 50px !important;
    }

    .player-avatar-v3.bust {
        width: 30px !important;
        height: 30px !important;
    }

    .player-info-v3 {
        flex: 1 !important;
        min-width: 100px !important;
    }

    .player-info-v3 h4 { font-size: 0.8rem !important; }
    .player-info-v3 .subtitle { font-size: 0.6rem !important; }

    .region-v3 {
        font-size: 0.6rem !important;
        padding: 2px 5px !important;
        position: absolute !important;
        right: 8px !important;
        top: 12px !important;
    }

    .tier-badges-v3 {
        width: 100% !important;
        margin-top: 0.4rem !important;
        justify-content: flex-start !important;
        gap: 0.3rem !important;
        border-top: 1px solid rgba(255,255,255,0.05) !important;
        padding-top: 0.4rem !important;
        flex-wrap: wrap !important;
    }

    .tier-item-v3 {
        padding: 2px 5px !important;
        font-size: 0.58rem !important;
    }

    .tier-icon-circle {
        width: 11px !important;
        height: 11px !important;
    }

    /* =============================
       PLAYER PROFILE MODAL
    ============================= */
    .modal-overlay { align-items: flex-end !important; }

    .modal-compact {
        width: 100% !important;
        max-width: 100% !important;
        padding: 1.2rem !important;
        border-radius: 20px 20px 0 0 !important;
        max-height: 90vh !important;
        overflow-y: auto !important;
        box-sizing: border-box !important;
    }

    .profile-v2-header { margin-bottom: 0.8rem !important; }

    .avatar-v2 {
        width: 70px !important;
        height: 70px !important;
    }

    .avatar-v2 img {
        width: 55px !important;
        height: 55px !important;
    }

    #profile-name { font-size: 1.2rem !important; }
    .overall-banner { padding: 0.8rem !important; }
    .banner-info h2 { font-size: 1.1rem !important; }

    .modes-grid-v2 {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.4rem !important;
    }

    .compact-mode-row { padding: 0.5rem !important; }
    .compact-mode-info span { font-size: 0.6rem !important; }
    .compact-mode-info h4 { font-size: 0.75rem !important; }
    .rank-display { font-size: 1.3rem !important; bottom: 8px !important; right: 10px !important; }

    /* =============================
       ADMIN PAGE
    ============================= */
    #page-admin select,
    #page-admin input {
        font-size: 0.8rem !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Admin option grids */
    .admin-option-grid,
    .options-grid {
        grid-template-columns: 1fr !important;
    }

    /* =============================
       STAFF / TESTERS SECTIONS
    ============================= */
    .staff-grid,
    .testers-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.6rem !important;
    }

    /* =============================
       MISC
    ============================= */
    .center-brand {
        font-size: 0.65rem !important;
        letter-spacing: 1px !important;
    }

    /* Hide video background on mobile to save bandwidth */
    /* #bg-video is intentionally kept visible (opacity:0) so JS can read its frames */
}

/* Trophy Floating Animation */
@keyframes trophyFloat {
    0% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
    100% { transform: translateY(0); }
}
.animate-trophy-float {
    animation: trophyFloat 3s ease-in-out infinite;
}

/* ==========================================================================
   DISCORD HUB OVERLAY & MODAL STYLES
   ========================================================================== */
#discord-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 8, 7, 0.7);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
}

.discord-modal-card {
    background: rgba(18, 14, 12, 0.45);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 
                inset 0 0 40px rgba(255, 255, 255, 0.02),
                0 0 100px rgba(var(--accent-primary-rgb), 0.05);
    border-radius: 28px;
    padding: 3.5rem 3rem;
    width: 90%;
    max-width: 720px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.discord-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 1.2rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    outline: none;
}
.discord-close-btn:hover {
    background: rgba(var(--accent-primary-rgb), 0.1);
    border-color: var(--accent-primary);
    color: white;
    transform: rotate(90deg);
}

.discord-modal-header {
    margin-bottom: 2.5rem;
    width: 100%;
}

.discord-glow-title {
    font-size: 0.85rem;
    font-family: 'Syncopate', sans-serif;
    letter-spacing: 6px;
    color: var(--accent-primary);
    text-transform: uppercase;
    font-weight: 800;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 12px rgba(var(--accent-primary-rgb), 0.5);
    opacity: 0;
}

.discord-main-title {
    font-size: 2.6rem;
    font-family: 'Syncopate', sans-serif;
    font-weight: 900;
    letter-spacing: 4px;
    color: white;
    margin-bottom: 1.2rem;
    background: linear-gradient(to right, #fff 20%, var(--accent-primary) 50%, #fff 80%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 4s linear infinite;
    opacity: 0;
}

.discord-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
    max-width: 540px;
    line-height: 1.6;
    margin: 0 auto;
    opacity: 0;
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

.discord-servers-container {
    display: flex;
    gap: 1.5rem;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
}

.discord-server-box {
    flex: 1;
    min-width: 280px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 20px;
    padding: 2.2rem 1.8rem;
    text-decoration: none !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    opacity: 0;
}

.discord-server-box.box-red:hover {
    background: rgba(var(--accent-primary-rgb), 0.04);
    border-color: rgba(var(--accent-primary-rgb), 0.3);
    box-shadow: 0 15px 35px rgba(var(--accent-primary-rgb), 0.15),
                inset 0 0 15px rgba(var(--accent-primary-rgb), 0.05);
    transform: translateY(-8px);
}

.discord-server-box.box-gold:hover {
    background: rgba(250, 204, 21, 0.04);
    border-color: rgba(250, 204, 21, 0.3);
    box-shadow: 0 15px 35px rgba(250, 204, 21, 0.15),
                inset 0 0 15px rgba(250, 204, 21, 0.05);
    transform: translateY(-8px);
}

.discord-server-icon {
    margin-bottom: 1.5rem;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}
.discord-server-icon img {
    width: 100px;
    height: 100px;
    border-radius: 16px;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.discord-server-box:hover .discord-server-icon img {
    transform: scale(1.08) rotate(3deg);
}
.discord-server-box.box-red:hover .discord-server-icon img {
    border-color: rgba(var(--accent-primary-rgb), 0.5);
    box-shadow: 0 0 20px rgba(var(--accent-primary-rgb), 0.4);
}
.discord-server-box.box-gold:hover .discord-server-icon img {
    border-color: rgba(250, 204, 21, 0.5);
    box-shadow: 0 0 20px rgba(250, 204, 21, 0.4);
}

.discord-server-info h4 {
    font-family: 'Syncopate', sans-serif;
    font-size: 0.95rem;
    font-weight: 800;
    margin: 0 0 0.8rem 0;
    letter-spacing: 1px;
}
.discord-server-box.box-red h4 {
    color: var(--accent-primary);
    text-shadow: 0 0 10px rgba(var(--accent-primary-rgb), 0.2);
}
.discord-server-box.box-gold h4 {
    color: #facc15;
    text-shadow: 0 0 10px rgba(250, 204, 21, 0.2);
}

.discord-server-info p {
    color: var(--text-muted);
    font-size: 0.8rem;
    line-height: 1.5;
    margin: 0 0 1.8rem 0;
    min-height: 48px;
}

.join-pill {
    display: inline-block;
    padding: 0.6rem 1.8rem;
    font-size: 0.75rem;
    font-family: 'Syncopate', sans-serif;
    font-weight: 900;
    letter-spacing: 1px;
    border-radius: 100px;
    transition: all 0.3s ease;
}
.discord-server-box.box-red .join-pill {
    background: rgba(var(--accent-primary-rgb), 0.15);
    border: 1px solid rgba(var(--accent-primary-rgb), 0.4);
    color: var(--accent-primary);
}
.discord-server-box.box-red:hover .join-pill {
    background: var(--accent-primary);
    color: white;
    box-shadow: 0 0 15px rgba(var(--accent-primary-rgb), 0.4);
}
.discord-server-box.box-gold .join-pill {
    background: rgba(250, 204, 21, 0.15);
    border: 1px solid rgba(250, 204, 21, 0.4);
    color: #facc15;
}
.discord-server-box.box-gold:hover .join-pill {
    background: #facc15;
    color: black;
    box-shadow: 0 0 15px rgba(250, 204, 21, 0.4);
}

@media (max-width: 768px) {
    .discord-modal-card {
        padding: 2.5rem 1.5rem;
    }
    .discord-main-title {
        font-size: 2rem;
    }
    .discord-servers-container {
        flex-direction: column;
    }
    .discord-server-box {
        min-width: 100%;
    }
}

/* ==========================================================================
   DEVELOPER DISCORD MODAL STYLES
   ========================================================================== */
.discord-developer-section {
    margin-top: 2.5rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    opacity: 0;
}

.dev-divider {
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
    margin-bottom: 0.5rem;
}

.dev-text {
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 500;
    margin: 0;
}

.dev-discord-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.6rem 1.6rem;
    font-size: 0.75rem;
    font-family: 'Syncopate', sans-serif;
    font-weight: 900;
    letter-spacing: 1px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-main);
    text-decoration: none;
    transition: all 0.3s ease;
}

.dev-discord-btn svg {
    width: 16px;
    height: 16px;
}

.dev-discord-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

