:root {
    /* Motion Timing & Easing Design Tokens */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-quad: cubic-bezier(0.4, 0, 1, 1);
    --ease-tactile: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-fluid: cubic-bezier(0.2, 0.8, 0.2, 1);

    --duration-micro: 120ms;
    --duration-fast: 160ms;
    --duration-page-exit: 140ms;
    --duration-page-enter: 260ms;
    --duration-stagger: 320ms;
}

body {
    background-color: #06080c;
    background-image:
        radial-gradient(ellipse 80% 50% at 50% -12%, rgba(57, 255, 20, 0.18) 0%, transparent 65%),
        radial-gradient(ellipse 65% 45% at 5% 35%, rgba(16, 185, 129, 0.12) 0%, transparent 55%),
        radial-gradient(ellipse 60% 45% at 95% 65%, rgba(34, 211, 238, 0.10) 0%, transparent 55%),
        radial-gradient(ellipse 55% 35% at 50% 92%, rgba(168, 85, 247, 0.08) 0%, transparent 50%);
    background-attachment: fixed;
    color: #e2e8f0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

        /* ============================================================
           CUSTOM FLOATING OVERLAY SCROLLBAR (ZERO HORIZONTAL LAYOUT SHIFT)
           ============================================================ */
        html {
            scrollbar-width: none;
            /* Firefox: completely hide native scrollbar */
        }

        /* WebKit/Blink (Chrome, Edge, Safari): hide native scrollbars */
        html::-webkit-scrollbar,
        body::-webkit-scrollbar {
            width: 0 !important;
            height: 0 !important;
            display: none !important;
        }

        /* Custom Discreet Dark Glass / Subtle Neon Overlay Theme */
        .os-theme-ganja {
            --os-size: 6px;
            --os-padding-axis: 2px;
            --os-track-border-radius: 9999px;
            --os-track-bg: transparent;
            --os-track-bg-hover: rgba(255, 255, 255, 0.03);
            --os-track-bg-active: rgba(255, 255, 255, 0.06);
            --os-handle-border-radius: 9999px;
            --os-handle-bg: rgba(255, 255, 255, 0.18);
            /* Muted unobtrusive dark glass */
            --os-handle-bg-hover: rgba(57, 255, 20, 0.6);
            /* Soft green on hover */
            --os-handle-bg-active: rgba(57, 255, 20, 0.85);
            --os-handle-min-size: 38px;
            --os-handle-max-size: none;
            --os-handle-perpendicular-size: 5px;
            --os-handle-perpendicular-size-hover: 7px;
            --os-handle-perpendicular-size-active: 7px;
        }

        .os-theme-ganja .os-scrollbar {
            z-index: 99999 !important;
            pointer-events: auto;
        }

        .os-theme-ganja .os-scrollbar-handle {
            box-shadow: none;
            /* No eye-catching glow while idle */
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            transition: background-color 0.25s ease, width 0.2s ease, height 0.2s ease, box-shadow 0.25s ease;
        }

        .os-theme-ganja .os-scrollbar-handle:hover,
        .os-theme-ganja .os-scrollbar-handle:active {
            box-shadow: 0 0 10px rgba(57, 255, 20, 0.35);
            /* Soft gentle glow only on interaction */
        }

        /* In map mode, completely hide floating scrollbars */
        body.is-map-page .os-scrollbar {
            display: none !important;
            opacity: 0 !important;
            pointer-events: none !important;
        }

        /* Custom styling for internal horizontal scrollbars (tables) */
        .overflow-x-auto {
            overflow-y: hidden !important;
        }

        .overflow-x-auto::-webkit-scrollbar {
            height: 5px;
            width: 0px !important;
        }

        .overflow-x-auto::-webkit-scrollbar:vertical {
            width: 0px !important;
            height: 0px !important;
            display: none !important;
        }

        .overflow-x-auto::-webkit-scrollbar-track {
            background: rgba(0, 0, 0, 0.3);
            border-radius: 9999px;
        }

        .overflow-x-auto::-webkit-scrollbar-thumb {
            background: rgba(255, 255, 255, 0.18);
            border-radius: 9999px;
        }

        .overflow-x-auto::-webkit-scrollbar-thumb:hover {
            background: rgba(57, 255, 20, 0.6);
            box-shadow: 0 0 8px rgba(57, 255, 20, 0.3);
        }

        /* Panels & Cards */
        .aurora-panel {
            background: linear-gradient(135deg, rgba(20, 28, 40, 0.78) 0%, rgba(11, 16, 24, 0.88) 100%);
            backdrop-filter: blur(24px);
            -webkit-backdrop-filter: blur(24px);
            border: 1px solid rgba(255, 255, 255, 0.08);
            box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.7);
        }

        .aurora-panel-glow {
            background: linear-gradient(135deg, rgba(20, 30, 44, 0.85) 0%, rgba(12, 18, 28, 0.92) 100%);
            backdrop-filter: blur(24px);
            -webkit-backdrop-filter: blur(24px);
            border: 1px solid rgba(57, 255, 20, 0.28);
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.75), 0 0 35px -10px rgba(57, 255, 20, 0.16);
        }

        .aurora-card {
            position: relative;
            background: rgba(18, 25, 36, 0.7);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border: 1px solid rgba(255, 255, 255, 0.07);
            border-radius: 1.5rem;
            transition: transform var(--duration-fast, 160ms) var(--ease-out-expo),
                border-color var(--duration-fast, 160ms) var(--ease-fluid);
            will-change: transform;
        }

        .aurora-card::before {
            content: '';
            position: absolute;
            inset: -1px;
            border-radius: inherit;
            background: radial-gradient(circle at 50% 0%, rgba(57, 255, 20, 0.15) 0%, transparent 70%);
            box-shadow: 0 10px 30px -10px rgba(57, 255, 20, 0.2);
            opacity: 0;
            pointer-events: none;
            transition: opacity var(--duration-fast, 160ms) var(--ease-fluid);
            will-change: opacity;
            z-index: 0;
        }

        .aurora-card > * {
            position: relative;
            z-index: 1;
        }

        .aurora-card:hover {
            transform: translateY(-2px);
            border-color: rgba(57, 255, 20, 0.35);
        }

        .aurora-card:hover::before {
            opacity: 1;
        }

        .pulse-indicator {
            box-shadow: 0 0 12px #39ff14;
            animation: pulse-ring 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
        }

        @keyframes pulse-ring {

            0%,
            100% {
                opacity: 1;
                transform: scale(1);
            }

            50% {
                opacity: 0.45;
                transform: scale(0.9);
            }
        }

        /* Toasts */
        .copy-toast {
            transform: translateX(-50%) translateY(30px);
            opacity: 0;
            pointer-events: none;
            transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        }

        .copy-toast.show {
            transform: translateX(-50%) translateY(0);
            opacity: 1;
        }

        /* ============================================================
           MOBILE SORT CHIPS & HORIZONTAL SCROLLBAR WITH FADE
           ============================================================ */
        .gc-sort-wrapper {
            position: relative;
            width: 100%;
        }

        /* Right gradient fade indicator */
        .gc-sort-wrapper::after {
            content: '';
            position: absolute;
            top: 0;
            right: 0;
            bottom: 0;
            width: 36px;
            background: linear-gradient(to right, transparent, rgba(11, 16, 24, 0.95));
            pointer-events: none;
            border-top-right-radius: 0.75rem;
            border-bottom-right-radius: 0.75rem;
            z-index: 5;
        }

        .gc-chips-scroll {
            display: flex;
            align-items: center;
            gap: 8px;
            overflow-x: auto;
            white-space: nowrap;
            padding-bottom: 2px;
            padding-right: 38px;
            /* Room so last chip is not obscured by gradient fade */
            scrollbar-width: none;
            /* Firefox */
            -ms-overflow-style: none;
            /* IE/Edge */
            -webkit-overflow-scrolling: touch;
            scroll-behavior: smooth;
        }

        .gc-chips-scroll::-webkit-scrollbar {
            display: none !important;
            width: 0 !important;
            height: 0 !important;
        }

        .gc-sort-chip {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 6px 12px;
            border-radius: 9999px;
            background: rgba(255, 255, 255, 0.04);
            border: 1px solid rgba(255, 255, 255, 0.08);
            color: #94a3b8;
            font-size: 0.75rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
            white-space: nowrap;
            flex-shrink: 0;
            user-select: none;
        }

        .gc-sort-chip:hover {
            border-color: rgba(255, 255, 255, 0.2);
            color: #ffffff;
            background: rgba(255, 255, 255, 0.08);
        }

        .gc-sort-chip.active {
            background: rgba(57, 255, 20, 0.12);
            border-color: rgba(57, 255, 20, 0.45);
            color: #39ff14;
            box-shadow: 0 0 12px rgba(57, 255, 20, 0.2);
        }

        /* ============================================================
           MOBILE PODIUM VIEW (<768px)
           ============================================================ */
        .gc-mobile-podium {
            display: flex;
            align-items: flex-end;
            justify-content: center;
            gap: 8px;
            width: 100%;
            height: 172px;
            /* Fixed height <= 180px */
            margin-bottom: 1rem;
            position: relative;
            z-index: 10;
        }

        .gc-podium-col {
            flex: 1;
            min-width: 0;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: flex-end;
            height: 100%;
        }

        .gc-podium-card {
            width: 100%;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: flex-end;
            border-radius: 1rem;
            position: relative;
            box-sizing: border-box;
            background: rgba(18, 25, 36, 0.65);
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
            border: 1px solid rgba(255, 255, 255, 0.07);
            padding: 10px 4px 0 4px;
            transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
        }

        /* 1st Place (Center - Gold / Emerald Accent, Tallest) */
        .gc-podium-col-1 .gc-podium-card {
            height: 172px;
            border-color: rgba(57, 255, 20, 0.5);
            background: linear-gradient(180deg, rgba(57, 255, 20, 0.1) 0%, rgba(18, 25, 36, 0.85) 100%);
            box-shadow: 0 0 24px rgba(57, 255, 20, 0.25);
            z-index: 2;
        }

        /* 2nd Place (Left - Silver, Medium) */
        .gc-podium-col-2 .gc-podium-card {
            height: 150px;
            border-color: rgba(209, 213, 219, 0.28);
            background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(18, 25, 36, 0.8) 100%);
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
        }

        /* 3rd Place (Right - Bronze, Lowest) */
        .gc-podium-col-3 .gc-podium-card {
            height: 136px;
            border-color: rgba(217, 119, 6, 0.28);
            background: linear-gradient(180deg, rgba(217, 119, 6, 0.05) 0%, rgba(18, 25, 36, 0.8) 100%);
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
        }

        /* Avatar styles */
        .gc-podium-avatar-wrap {
            position: relative;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            margin-top: 6px;
            margin-bottom: 2px;
            flex-shrink: 0;
        }

        .gc-podium-avatar {
            border-radius: 0.75rem;
            background-color: rgba(0, 0, 0, 0.6);
            image-rendering: pixelated;
            object-fit: cover;
            display: block;
        }

        .gc-podium-col-1 .gc-podium-avatar {
            width: 44px;
            height: 44px;
            border: 2px solid #39ff14;
            box-shadow: 0 0 16px rgba(57, 255, 20, 0.55), inset 0 0 8px rgba(57, 255, 20, 0.25);
        }

        .gc-podium-col-2 .gc-podium-avatar {
            width: 38px;
            height: 38px;
            border: 1.5px solid rgba(209, 213, 219, 0.75);
            box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
        }

        .gc-podium-col-3 .gc-podium-avatar {
            width: 36px;
            height: 36px;
            border: 1.5px solid rgba(217, 119, 6, 0.75);
            box-shadow: 0 0 10px rgba(217, 119, 6, 0.25);
        }

        .gc-podium-medal {
            position: absolute;
            top: -12px;
            left: 50%;
            transform: translateX(-50%);
            line-height: 1;
            z-index: 3;
            pointer-events: none;
        }

        .gc-podium-col-1 .gc-podium-medal {
            font-size: 1.15rem;
            filter: drop-shadow(0 0 8px rgba(57, 255, 20, 0.75));
        }

        .gc-podium-col-2 .gc-podium-medal {
            font-size: 0.95rem;
            filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.4));
        }

        .gc-podium-col-3 .gc-podium-medal {
            font-size: 0.95rem;
            filter: drop-shadow(0 0 6px rgba(217, 119, 6, 0.5));
        }

        /* Player Details under avatar */
        .gc-podium-nick {
            font-weight: 700;
            color: #ffffff;
            font-size: 0.72rem;
            text-align: center;
            max-width: 90px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            line-height: 1.2;
            margin-top: 1px;
        }

        .gc-podium-rank {
            margin: 2px 0;
            line-height: 1;
        }

        .gc-podium-rank-badge {
            display: inline-flex;
            align-items: center;
            padding: 1px 5px;
            border-radius: 4px;
            font-size: 8.5px;
            font-family: 'JetBrains Mono', monospace;
            border-width: 1px;
            font-weight: 700;
            line-height: 1.1;
            max-width: 82px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .gc-podium-hours {
            font-family: 'JetBrains Mono', monospace;
            font-size: 0.72rem;
            font-weight: 800;
            line-height: 1.2;
            color: #39ff14;
            margin-bottom: 4px;
        }

        .gc-podium-col-2 .gc-podium-hours {
            color: #34d399;
            /* Emerald for silver */
        }

        .gc-podium-col-3 .gc-podium-hours {
            color: #34d399;
            /* Emerald for bronze */
        }

        /* Visual Pedestal Steps */
        .gc-podium-step {
            width: 100%;
            border-top-left-radius: 6px;
            border-top-right-radius: 6px;
            border-bottom-left-radius: 0.95rem;
            border-bottom-right-radius: 0.95rem;
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            box-sizing: border-box;
            margin-top: auto;
        }

        /* 1st Place Step (Center, Gold / Emerald Glow) */
        .gc-podium-col-1 .gc-podium-step {
            height: 32px;
            background: linear-gradient(to top, rgba(57, 255, 20, 0.28) 0%, rgba(57, 255, 20, 0.1) 70%, rgba(57, 255, 20, 0.2) 100%);
            border-top: 2px solid #39ff14;
            box-shadow: 0 0 16px rgba(57, 255, 20, 0.3), inset 0 0 10px rgba(57, 255, 20, 0.2);
        }

        /* 2nd Place Step (Left, Silver) */
        .gc-podium-col-2 .gc-podium-step {
            height: 22px;
            background: linear-gradient(to top, rgba(156, 163, 175, 0.22) 0%, rgba(156, 163, 175, 0.08) 70%, rgba(156, 163, 175, 0.16) 100%);
            border-top: 2px solid rgba(209, 213, 219, 0.7);
            box-shadow: inset 0 0 8px rgba(255, 255, 255, 0.08);
        }

        /* 3rd Place Step (Right, Bronze) */
        .gc-podium-col-3 .gc-podium-step {
            height: 16px;
            background: linear-gradient(to top, rgba(217, 119, 6, 0.22) 0%, rgba(217, 119, 6, 0.08) 70%, rgba(217, 119, 6, 0.16) 100%);
            border-top: 2px solid rgba(217, 119, 6, 0.7);
            box-shadow: inset 0 0 8px rgba(217, 119, 6, 0.08);
        }

        .gc-podium-step-num {
            font-family: 'JetBrains Mono', monospace;
            font-weight: 900;
            letter-spacing: 0.05em;
            line-height: 1;
        }

        .gc-podium-col-1 .gc-podium-step-num {
            font-size: 1.15rem;
            color: #39ff14;
            text-shadow: 0 0 10px rgba(57, 255, 20, 0.75);
        }

        .gc-podium-col-2 .gc-podium-step-num {
            font-size: 0.95rem;
            color: #f3f4f6;
            text-shadow: 0 0 6px rgba(255, 255, 255, 0.35);
        }

        .gc-podium-col-3 .gc-podium-step-num {
            font-size: 0.85rem;
            color: #fbbf24;
            text-shadow: 0 0 6px rgba(245, 158, 11, 0.45);
        }

        /* ============================================================
           FIXED, UNIFORM, SYMMETRICAL HEADER STYLES
           ============================================================ */
        .site-header {
            background: rgba(6, 8, 12, 0.75);
            backdrop-filter: blur(24px);
            -webkit-backdrop-filter: blur(24px);
            border-bottom: 1px solid rgba(255, 255, 255, 0.08);
            transition: background 0.4s ease, border-color 0.4s ease;
            height: 4rem;
            /* 64px fixed */
        }

        .header-container {
            width: 100%;
            height: 100%;
            transition: max-width 0.4s cubic-bezier(0.16, 1, 0.3, 1), padding 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        }

        /* In Map Mode: Expand header gracefully across the entire screen */
        .site-header.is-map-mode #header-container {
            max-width: 100% !important;
            padding-left: 1rem !important;
            padding-right: 1rem !important;
        }

        @media (min-width: 640px) {
            .site-header.is-map-mode #header-container {
                padding-left: 1.5rem !important;
                padding-right: 1.5rem !important;
            }
        }

        @media (min-width: 1280px) {
            .site-header.is-map-mode #header-container {
                padding-left: 2rem !important;
                padding-right: 2rem !important;
            }
        }

        /* Hide full brand text in map mode on mobile to prevent any collision */
        .site-header.is-map-mode .map-brand-text {
            display: none;
        }

        @media (min-width: 640px) {
            .site-header.is-map-mode .map-brand-text {
                display: inline;
            }
        }

        /* Show back arrow only in map mode on mobile */
        .site-header.is-map-mode #map-back-arrow {
            display: inline-block;
        }

        @media (min-width: 640px) {
            .site-header.is-map-mode #map-back-arrow {
                display: none !important;
            }
        }

        /* Symmetrical 3-Column Layout */
        .header-col-left {
            flex: 1 1 0%;
            display: flex;
            align-items: center;
            justify-content: flex-start;
        }

        .header-col-center {
            flex: 0 0 auto;
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
        }

        .header-col-right {
            flex: 1 1 0%;
            display: flex;
            align-items: center;
            justify-content: flex-end;
        }

        /* Clean Text Navigation Links */
        .nav-text-link {
            position: relative;
            display: inline-flex;
            align-items: center;
            padding: 0.35rem 0.15rem;
            font-size: 0.84rem;
            font-weight: 600;
            color: #94a3b8;
            transition: color 0.2s ease, text-shadow 0.2s ease;
            white-space: nowrap;
            text-decoration: none;
        }

        .nav-text-link:hover {
            color: #ffffff;
        }

        .nav-text-link.active {
            color: #39ff14;
            text-shadow: 0 0 10px rgba(57, 255, 20, 0.45);
        }

        /* Sliding Navigation Underline Indicator */
        #standard-nav {
            position: relative;
        }

        .nav-sliding-indicator {
            position: absolute;
            bottom: -2px;
            left: 0;
            height: 2px;
            background: #39ff14;
            border-radius: 9999px;
            box-shadow: 0 0 10px #39ff14, 0 0 4px #39ff14;
            pointer-events: none;
            opacity: 0;
            transform: translateX(0);
            width: 0px;
            transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1),
                width 0.28s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.2s ease;
            will-change: transform, width, opacity;
            z-index: 5;
        }

        /* Mobile Drawer Links */
        .mobile-nav-link {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0.65rem 0.85rem;
            border-radius: 0.75rem;
            font-size: 0.875rem;
            font-weight: 600;
            color: #cbd5e1;
            transition: all 0.2s ease;
        }

        .mobile-nav-link:hover {
            color: #ffffff;
            background: rgba(255, 255, 255, 0.05);
        }

        .mobile-nav-link.active {
            color: #39ff14;
            background: rgba(57, 255, 20, 0.1);
            border: 1px solid rgba(57, 255, 20, 0.2);
        }

        /* Standard Mode Header Elements */
        .site-header:not(.is-map-mode) #map-brand-badge {
            opacity: 0;
            max-width: 0;
            margin-left: 0;
            padding-left: 0;
            border-left-width: 0;
            overflow: hidden;
            pointer-events: none;
            transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
        }

        .site-header:not(.is-map-mode) #standard-nav {
            opacity: 1;
            transform: translateY(0) scale(1);
            pointer-events: auto;
            position: relative;
            transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
        }

        .site-header:not(.is-map-mode) #map-dim-nav {
            opacity: 0;
            transform: translateY(14px) scale(0.92);
            pointer-events: none;
            position: absolute;
            transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
        }

        .site-header:not(.is-map-mode) #standard-actions {
            opacity: 1;
            transform: translateX(0);
            pointer-events: auto;
            position: relative;
            transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
        }

        .site-header:not(.is-map-mode) #map-actions {
            opacity: 0;
            transform: translateX(14px);
            pointer-events: none;
            position: absolute;
            transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
        }

        /* Map Mode Header Elements (Width & Height NEVER Change) */
        .site-header.is-map-mode {
            background: rgba(6, 8, 12, 0.90);
            border-bottom: 1px solid rgba(255, 255, 255, 0.12);
            box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.8);
        }

        .site-header.is-map-mode #map-brand-badge {
            opacity: 1;
            max-width: 260px;
            margin-left: 0.75rem;
            padding-left: 0.75rem;
            border-left-width: 1px;
            pointer-events: auto;
            transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.08s;
        }

        .site-header.is-map-mode #standard-nav {
            opacity: 0;
            transform: translateY(-14px) scale(0.92);
            pointer-events: none;
            position: absolute;
            transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
        }

        .site-header.is-map-mode #map-dim-nav {
            opacity: 1;
            transform: translateY(0) scale(1);
            pointer-events: auto;
            position: relative;
            transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.08s;
        }

        .site-header.is-map-mode #standard-actions {
            opacity: 0;
            transform: translateX(14px);
            pointer-events: none;
            position: absolute;
            transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
        }

        .site-header.is-map-mode #map-actions {
            opacity: 1;
            transform: translateX(0);
            pointer-events: auto;
            position: relative;
            transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.08s;
        }

        /* Dimension Buttons */
        .dim-btn.active {
            background: rgba(57, 255, 20, 0.18);
            border-color: rgba(57, 255, 20, 0.5);
            color: #39ff14;
            box-shadow: 0 0 15px -3px rgba(57, 255, 20, 0.35);
        }

        /* ============================================================
           RANKS MATRIX COMPARISON TABLE STYLES
           ============================================================ */
        .ranks-matrix-table {
            border-collapse: separate;
            border-spacing: 0;
            width: 100%;
        }

        .ranks-matrix-table th,
        .ranks-matrix-table td {
            border-bottom: 1px solid rgba(255, 255, 255, 0.06);
            padding: 0.75rem 0.9rem;
            white-space: nowrap;
        }

        .ranks-sticky-col {
            position: sticky;
            left: 0;
            z-index: 20;
            background: #0d141e;
            border-right: 1px solid rgba(255, 255, 255, 0.1);
            box-shadow: 6px 0 16px -4px rgba(0, 0, 0, 0.7);
        }

        .ranks-col-legend {
            background: rgba(168, 85, 247, 0.04);
            border-left: 1px solid rgba(168, 85, 247, 0.18);
            border-right: 1px solid rgba(168, 85, 247, 0.18);
        }

        .ranks-matrix-table tr:hover td {
            background-color: rgba(255, 255, 255, 0.025);
        }

        .ranks-matrix-table tr:hover td.ranks-sticky-col {
            background-color: #121a27;
        }

        .ranks-matrix-table tr:hover td.ranks-col-legend {
            background-color: rgba(168, 85, 247, 0.08);
        }

        /* ============================================================
           RELICS TABLE & STYLES
           ============================================================ */
        .relics-table {
            border-collapse: separate;
            border-spacing: 0;
            width: 100%;
        }

        .relics-table th,
        .relics-table td {
            border-bottom: 1px solid rgba(255, 255, 255, 0.06);
            padding: 0.85rem 1rem;
        }

        .relics-table tr:hover td {
            background-color: rgba(255, 255, 255, 0.025);
        }

        /* ============================================================
           TRIMS & MATERIALS MATRIX TABLES: BORDERS & DIVIDERS
           ============================================================ */
        .matrix-table {
            border-collapse: collapse;
            width: 100%;
        }

        .matrix-head-row {
            border-bottom: 2px solid rgba(255, 255, 255, 0.22) !important;
        }

        .matrix-head-row>th {
            border-bottom: 2px solid rgba(255, 255, 255, 0.22) !important;
        }

        /* Bold outer divider framing each material / trim */
        .matrix-row-item {
            border-top: 2px solid rgba(255, 255, 255, 0.22) !important;
        }

        .matrix-row-item>td {
            border-top: 2px solid rgba(255, 255, 255, 0.22) !important;
        }

        /* Thin inner divider between sub-rows of the same material / trim */
        .matrix-row-inner {
            border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
        }

        .matrix-row-inner>td {
            border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
        }

        /* Prominent framing for tier category banner rows */
        .matrix-row-tier {
            border-top: 2px solid rgba(255, 255, 255, 0.28) !important;
            border-bottom: 2px solid rgba(255, 255, 255, 0.18) !important;
        }

        .matrix-row-tier>td {
            border-top: 2px solid rgba(255, 255, 255, 0.28) !important;
            border-bottom: 2px solid rgba(255, 255, 255, 0.18) !important;
        }

        /* Vertical column dividers */
        .matrix-col-border {
            border-left: 1px solid rgba(255, 255, 255, 0.12) !important;
        }

        .matrix-table tbody tr:hover td {
            background-color: rgba(255, 255, 255, 0.025);
        }

        /* ============================================================
           RANKS FLOATING TOOLTIP & MOBILE CARDS STYLES
           ============================================================ */
        #ranks-floating-tooltip {
            position: fixed;
            z-index: 99999;
            pointer-events: none;
            width: max-content;
            max-width: 290px;
            background: rgba(12, 20, 32, 0.97);
            backdrop-filter: blur(14px);
            -webkit-backdrop-filter: blur(14px);
            border: 1px solid rgba(34, 211, 238, 0.38);
            border-radius: 0.75rem;
            padding: 0.65rem 0.85rem;
            font-size: 0.75rem;
            line-height: 1.45;
            color: #e2e8f0;
            box-shadow: 0 12px 35px -4px rgba(0, 0, 0, 0.85), 0 0 18px -2px rgba(34, 211, 238, 0.25);
            transition: opacity 0.16s cubic-bezier(0.16, 1, 0.3, 1), transform 0.16s cubic-bezier(0.16, 1, 0.3, 1);
            will-change: transform, opacity;
        }

        /* Tooltip Pointer Arrow */
        #ranks-floating-tooltip::before,
        #ranks-floating-tooltip::after {
            content: '';
            position: absolute;
            width: 0;
            height: 0;
            border-left: 6px solid transparent;
            border-right: 6px solid transparent;
            left: var(--arrow-x, 50%);
            transform: translateX(-50%);
        }

        /* Tooltip displayed ABOVE the icon: arrow points down to center of icon */
        #ranks-floating-tooltip.tip-above::before {
            bottom: -7px;
            border-top: 7px solid rgba(34, 211, 238, 0.38);
        }

        #ranks-floating-tooltip.tip-above::after {
            bottom: -6px;
            border-top: 6px solid rgba(12, 20, 32, 0.98);
        }

        /* Tooltip displayed BELOW the icon: arrow points up to center of icon */
        #ranks-floating-tooltip.tip-below::before {
            top: -7px;
            border-bottom: 7px solid rgba(34, 211, 238, 0.38);
        }

        #ranks-floating-tooltip.tip-below::after {
            top: -6px;
            border-bottom: 6px solid rgba(12, 20, 32, 0.98);
        }

        #ranks-floating-tooltip.hidden-tip {
            opacity: 0 !important;
            visibility: hidden !important;
            pointer-events: none !important;
        }

        /* Emergence from the center of the triggering icon */
        #ranks-floating-tooltip.tip-above {
            transform-origin: var(--arrow-x, 50%) bottom;
            transform: translateY(0) scale(1);
            opacity: 1;
            visibility: visible;
        }

        #ranks-floating-tooltip.tip-above.hidden-tip {
            transform: translateY(6px) scale(0.9);
        }

        #ranks-floating-tooltip.tip-below {
            transform-origin: var(--arrow-x, 50%) top;
            transform: translateY(0) scale(1);
            opacity: 1;
            visibility: visible;
        }

        #ranks-floating-tooltip.tip-below.hidden-tip {
            transform: translateY(-6px) scale(0.9);
        }

        .ranks-cmd-badge {
            font-family: 'JetBrains Mono', monospace;
            font-size: 10px;
            padding: 1.5px 5px;
            border-radius: 4px;
            background: rgba(57, 255, 20, 0.08);
            color: #39ff14;
            border: 1px solid rgba(57, 255, 20, 0.22);
            white-space: nowrap;
        }

        .ranks-cmd-badge-gray {
            font-family: 'JetBrains Mono', monospace;
            font-size: 10px;
            padding: 1.5px 5px;
            border-radius: 4px;
            background: rgba(255, 255, 255, 0.05);
            color: #94a3b8;
            border: 1px solid rgba(255, 255, 255, 0.1);
            white-space: nowrap;
        }

        .ranks-info-btn {
            background: transparent;
            border: none;
            cursor: pointer;
            padding: 2px 4px;
            border-radius: 4px;
            color: #64748b;
            transition: color 0.15s, transform 0.15s;
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }

        .ranks-info-btn:hover {
            color: #22d3ee;
            transform: scale(1.15);
        }

        .rank-pill-btn.active {
            box-shadow: 0 0 16px -2px currentColor;
            transform: translateY(-1px);
        }

        /* ============================================================
           SPA VIEWS & CONTENT VISIBILITY (Modern Standalone & SPA Support)
           ============================================================ */
        .spa-view {
            display: flex;
            flex-direction: column;
            align-items: center;
            opacity: 1;
            width: 100%;
            transform: none;
        }

        .spa-view.active {
            display: flex;
            flex-direction: column;
            align-items: center;
            opacity: 1;
            width: 100%;
            transform: none;
        }

        .spa-view.is-entering,
        .page-content-enter {
            display: flex;
            flex-direction: column;
            align-items: center;
            animation: viewEnterAnim var(--duration-page-enter, 260ms) var(--ease-out-expo) forwards;
            will-change: transform, opacity;
        }

        .spa-view.is-exiting,
        .page-content-exit {
            display: flex;
            flex-direction: column;
            align-items: center;
            animation: viewExitAnim var(--duration-page-exit, 140ms) var(--ease-in-quad) forwards;
            pointer-events: none;
            will-change: transform, opacity;
        }

        @keyframes viewEnterAnim {
            0% {
                opacity: 0;
                transform: translateY(8px);
            }

            100% {
                opacity: 1;
                transform: translateY(0);
            }
        }

        @keyframes viewExitAnim {
            0% {
                opacity: 1;
                transform: translateY(0);
            }

            100% {
                opacity: 0;
                transform: translateY(-6px);
            }
        }

        /* Staggered Content Animation Engine */
        .stagger-item {
            opacity: 1;
            transform: none;
            transition: opacity var(--duration-stagger, 320ms) var(--ease-out-expo),
                transform var(--duration-stagger, 320ms) var(--ease-out-expo);
            transition-delay: var(--stagger-delay, 0ms);
        }

        .spa-view.active .stagger-item {
            opacity: 1;
            transform: translateY(0);
        }

        .stagger-reveal.animate-in,
        .stagger-item.animate-in {
            animation: staggerReveal var(--duration-stagger, 320ms) var(--ease-out-expo) both;
            animation-delay: var(--stagger-delay, calc(var(--stagger-idx, 0) * 35ms));
            will-change: transform, opacity;
        }

        @keyframes staggerReveal {
            0% {
                opacity: 0;
                transform: translateY(12px);
            }

            100% {
                opacity: 1;
                transform: none;
            }
        }

        /* Smooth Viewport Entrance Animation */
        #spa-viewport {
            animation: pageFadeIn var(--duration-page-enter, 260ms) var(--ease-out-expo) forwards;
        }

        @keyframes pageFadeIn {
            0% {
                opacity: 0.88;
                transform: translateY(6px);
            }

            100% {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* Table & Leaderboard Smooth Row Ripple / Stagger Transition */
        .leaderboard-row-anim,
        .row-ripple-anim {
            animation: rowRipple var(--duration-fast, 160ms) var(--ease-out-expo) both;
            animation-delay: var(--row-delay, calc(var(--row-idx, 0) * 22ms));
            will-change: transform, opacity;
        }

        @keyframes rowRipple {
            0% {
                opacity: 0;
                transform: translateX(-5px);
            }

            100% {
                opacity: 1;
                transform: none;
            }
        }

        /* Podium Reveal Stagger */
        .gc-podium-reveal {
            animation: podiumPop 280ms var(--ease-out-expo) both;
            animation-delay: var(--podium-delay, 0ms);
            will-change: transform, opacity;
        }

        @keyframes podiumPop {
            0% {
                opacity: 0;
                transform: translateY(14px) scale(0.96);
            }

            100% {
                opacity: 1;
                transform: none;
            }
        }

        @keyframes rowSlideIn {
            0% {
                opacity: 0;
                transform: translateY(12px);
            }

            100% {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* Tactile Table Row Interactions (Safe for border-collapse) */
        .matrix-table tbody tr,
        .ranks-matrix-table tbody tr,
        .gc-table-interactive tbody tr {
            transition: background-color var(--duration-fast, 160ms) var(--ease-fluid);
        }

        .matrix-table tbody tr > td:first-child,
        .ranks-matrix-table tbody tr > td:first-child,
        .gc-table-interactive tbody tr > td:first-child {
            position: relative;
        }

        .matrix-table tbody tr > td:first-child::before,
        .ranks-matrix-table tbody tr > td:first-child::before,
        .gc-table-interactive tbody tr > td:first-child::before {
            content: '';
            position: absolute;
            left: 0;
            top: 15%;
            bottom: 15%;
            width: 2.5px;
            border-radius: 9999px;
            background-color: #39ff14;
            box-shadow: 0 0 8px rgba(57, 255, 20, 0.75);
            opacity: 0;
            transform: scaleY(0.4);
            transition: opacity var(--duration-fast, 160ms) var(--ease-fluid),
                transform var(--duration-fast, 160ms) var(--ease-tactile);
            pointer-events: none;
        }

        .matrix-table tbody tr:hover > td:first-child::before,
        .ranks-matrix-table tbody tr:hover > td:first-child::before,
        .gc-table-interactive tbody tr:hover > td:first-child::before {
            opacity: 1;
            transform: scaleY(1);
        }

        /* ============================================================
           TACTILE CONTROLS & INTERACTIVE PHYSICS ENGINE
           ============================================================ */

        /* Focus-visible ring for keyboard accessibility (Tab navigation) */
        :focus-visible {
            outline: 2px solid rgba(57, 255, 20, 0.75) !important;
            outline-offset: 2px !important;
        }

        :focus:not(:focus-visible) {
            outline: none !important;
        }

        /* Tactile Spring & Micro-Interactions on Interactive Elements */
        button:not(:disabled),
        .dim-btn,
        .rank-pill-btn,
        .gc-sort-chip,
        .ranks-info-btn {
            transition: transform 180ms var(--ease-tactile),
                box-shadow 180ms var(--ease-tactile),
                background-color 160ms var(--ease-fluid),
                border-color 160ms var(--ease-fluid),
                color 160ms var(--ease-fluid);
            will-change: transform;
        }

        button:not(:disabled):hover,
        .dim-btn:hover,
        .rank-pill-btn:hover,
        .gc-sort-chip:hover {
            transform: translateY(-1px);
        }

        button:not(:disabled):active,
        .dim-btn:active,
        .rank-pill-btn:active,
        .gc-sort-chip:active,
        .ranks-info-btn:active {
            transform: scale(0.96) translateY(0) !important;
            transition: transform 85ms ease-out !important;
        }

        /* Dimension switcher tab states */
        .dim-btn {
            position: relative;
            user-select: none;
            -webkit-user-select: none;
        }

        .dim-btn:active {
            transform: scale(0.95) !important;
            transition: transform 80ms ease-out !important;
        }

        /* Larger CTA buttons and hero cards: soft 0.98 compression */
        .aurora-panel.cursor-pointer:active,
        .aurora-card.cursor-pointer:active {
            transform: scale(0.98) !important;
            transition: transform 90ms ease-out !important;
        }

        /* Micro-Pulse for Copy IP action */
        @keyframes copyPulse {
            0% {
                transform: scale(0.96);
            }

            45% {
                transform: scale(1.025);
                box-shadow: 0 0 20px rgba(57, 255, 20, 0.4);
            }

            100% {
                transform: scale(1);
            }
        }

        .copy-pulse-active {
            animation: copyPulse 420ms var(--ease-tactile) !important;
        }

        /* Accessibility: Prefers Reduced Motion */
        @media (prefers-reduced-motion: reduce) {

            *,
            ::before,
            ::after {
                animation-duration: 0.001ms !important;
                animation-iteration-count: 1 !important;
                transition-duration: 0.001ms !important;
                scroll-behavior: auto !important;
            }

            ::view-transition-group(*),
            ::view-transition-old(*),
            ::view-transition-new(*) {
                animation: none !important;
            }

            .stagger-item,
            .stagger-reveal,
            .spa-view,
            .spa-view.is-entering,
            .spa-view.is-exiting,
            .page-content-enter,
            .page-content-exit,
            .leaderboard-row-anim,
            .row-ripple-anim,
            .gc-podium-reveal,
            .nav-sliding-indicator,
            .aurora-card,
            .aurora-card::before,
            .matrix-table tbody tr > td:first-child::before,
            .ranks-matrix-table tbody tr > td:first-child::before,
            .gc-table-interactive tbody tr > td:first-child::before,
            .copy-pulse-active,
            button:not(:disabled):hover,
            button:not(:disabled):active,
            .dim-btn:hover,
            .dim-btn:active,
            .rank-pill-btn:hover,
            .rank-pill-btn:active,
            .gc-sort-chip:hover,
            .gc-sort-chip:active {
                opacity: 1 !important;
                transform: none !important;
                transition: none !important;
                animation: none !important;
            }
        }

        /* Map Fullscreen Viewport Mode */
        body.is-map-page {
            overflow: hidden !important;
            height: 100vh !important;
            height: 100dvh !important;
        }

        body.is-map-page footer {
            display: none !important;
        }

        body.is-map-page #spa-viewport {
            padding: 0 !important;
            max-width: 100% !important;
            height: calc(100vh - 64px) !important;
            height: calc(100dvh - 64px) !important;
            overflow: hidden !important;
            flex: 1 1 0% !important;
        }

        body.is-map-page #view-map {
            display: block !important;
            height: 100% !important;
            width: 100% !important;
            animation: mapFadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
        }

        @keyframes mapFadeIn {
            0% {
                opacity: 0;
            }

            100% {
                opacity: 1;
            }
        }

        .map-iframe {
            width: 100%;
            height: 100%;
            border: none;
            background-color: #06080c;
        }

        /* Glass HUD styling for map bottom helper */
        .glass-hud {
            background: linear-gradient(135deg, rgba(15, 21, 32, 0.85) 0%, rgba(6, 8, 12, 0.92) 100%);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border: 1px solid rgba(255, 255, 255, 0.08);
        }
    

/* ============================================================
   TRIMS & MATERIALS MATRIX TABLES: BORDERS & DIVIDERS
   ============================================================ */
.matrix-table {
    border-collapse: collapse;
    width: 100%;
}

.matrix-head-row {
    border-bottom: 2px solid rgba(255, 255, 255, 0.22) !important;
}

.matrix-head-row > th {
    border-bottom: 2px solid rgba(255, 255, 255, 0.22) !important;
}

.matrix-row-item {
    border-top: 2px solid rgba(255, 255, 255, 0.22) !important;
}

.matrix-row-item > td {
    border-top: 2px solid rgba(255, 255, 255, 0.22) !important;
}

.matrix-row-inner {
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.matrix-row-inner > td {
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.matrix-row-tier {
    border-top: 2px solid rgba(255, 255, 255, 0.28) !important;
    border-bottom: 2px solid rgba(255, 255, 255, 0.18) !important;
}

.matrix-row-tier > td {
    border-top: 2px solid rgba(255, 255, 255, 0.28) !important;
    border-bottom: 2px solid rgba(255, 255, 255, 0.18) !important;
}

.matrix-col-border {
    border-left: 1px solid rgba(255, 255, 255, 0.12) !important;
}

.matrix-table tbody tr:hover td {
    background-color: rgba(255, 255, 255, 0.025);
}

.pixelated,
img.pixelated,
.mc-pixelated {
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

/* ============================================================
   VIEW TRANSITION API & SEAMLESS PAGE ENTER/EXIT
   ============================================================ */
@view-transition {
    navigation: auto;
}

#site-header {
    view-transition-name: site-header;
}

::view-transition-old(site-header),
::view-transition-new(site-header) {
    animation: none;
}

::view-transition-old(root) {
    animation: viewExitAnim var(--duration-page-exit, 140ms) var(--ease-in-quad) forwards;
}

::view-transition-new(root) {
    animation: viewEnterAnim var(--duration-page-enter, 260ms) var(--ease-out-expo) forwards;
}

.page-content-enter {
    animation: viewEnterAnim var(--duration-page-enter, 260ms) var(--ease-out-expo) forwards;
    will-change: transform, opacity;
}

.page-content-exit {
    animation: viewExitAnim var(--duration-page-exit, 140ms) var(--ease-in-quad) forwards;
    pointer-events: none;
    will-change: transform, opacity;
}

/* ============================================================
   WEB COMPONENTS CUSTOM ELEMENTS & CLS SHIFT PREVENTION
   ============================================================ */
site-header {
    display: contents;
}

site-header:not(:defined) {
    display: block;
    height: 4rem;
    width: 100%;
    background: rgba(6, 8, 12, 0.75);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

site-footer {
    display: contents;
}

site-footer:not(:defined) {
    display: block;
    min-height: 5rem;
    width: 100%;
    background: rgba(0, 0, 0, 0.4);
}

body.is-map-page site-footer,
body.is-map-page footer {
    display: none !important;
}

/* ============================================================
   FAQ ACCORDION STYLES (MUSIC & GENERAL)
   ============================================================ */
.faq-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: background-color 0.2s ease;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-q {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.15rem 0;
    cursor: pointer;
    color: #e2e8f0;
    font-size: 0.95rem;
    font-weight: 600;
    gap: 1rem;
    transition: color 0.2s ease;
}

.faq-q:hover {
    color: #39ff14;
}

.faq-q .faq-arrow {
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    color: #39ff14;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.faq-item.open .faq-q .faq-arrow {
    transform: rotate(180deg);
}

.faq-a {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-item.open .faq-a {
    grid-template-rows: 1fr;
}

.faq-a-inner {
    min-height: 0;
    overflow: hidden;
    padding-bottom: 0;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.22s ease, transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), padding-bottom 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    color: #94a3b8;
    font-size: 0.875rem;
    line-height: 1.7;
}

.faq-item.open .faq-a-inner {
    padding-bottom: 1.25rem;
    opacity: 1;
    transform: translateY(0);
}

/* Rank Badge Chips (Sync with ranks.html & music.html) */
.rank-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.65rem;
    border-radius: 9999px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    font-weight: 700;
    border-width: 1px;
    white-space: nowrap;
}

.rank-noob {
    color: #9ca3af;
    border-color: rgba(156, 163, 175, 0.35);
    background: rgba(156, 163, 175, 0.08);
}

.rank-player {
    color: #39ff14;
    border-color: rgba(57, 255, 20, 0.4);
    background: rgba(57, 255, 20, 0.08);
}

.rank-veteran {
    color: #fbbf24;
    border-color: rgba(251, 191, 36, 0.4);
    background: rgba(251, 191, 36, 0.08);
}

.rank-pro {
    color: #f97316;
    border-color: rgba(249, 115, 22, 0.4);
    background: rgba(249, 115, 22, 0.08);
}

.rank-elite {
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.4);
    background: rgba(239, 68, 68, 0.08);
}

.rank-legend {
    color: #a855f7;
    border-color: rgba(168, 85, 247, 0.45);
    background: rgba(168, 85, 247, 0.1);
    box-shadow: 0 0 14px rgba(168, 85, 247, 0.2);
}

.rdot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}


