* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
            min-height: 100vh;
            height: 100vh;
            padding: 20px;
            color: #fff;
            overflow: hidden; /* Never show scrollbars */
        }

        #app {
            max-width: 1200px;
            margin: 0 auto;
            height: 100%;
            display: flex;
            flex-direction: column;
            overflow: hidden;
        }

        .header {
            text-align: center;
            position: relative;
            margin-bottom: 30px;
            flex-shrink: 0;
        }

        @keyframes glow {
            from {
                box-shadow: 0 0 10px #ff0080, 0 0 20px #ff0080, 0 0 30px #ff0080;
            }
            to {
                box-shadow: 0 0 20px #40e0d0, 0 0 30px #40e0d0, 0 0 40px #40e0d0;
            }
        }

        .title {
            font-size: 3rem;
            font-weight: 900;
            background: linear-gradient(90deg, #ff0080, #ff8c00, #40e0d0);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            text-transform: uppercase;
            letter-spacing: 4px;
            margin-bottom: 10px;
            text-shadow: 0 0 30px rgba(255, 0, 128, 0.5);
        }

        .subtitle {
            font-size: 1.2rem;
            color: #40e0d0;
            font-weight: 300;
            letter-spacing: 2px;
        }

        .live-indicator {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            background: rgba(255, 0, 0, 0.2);
            padding: 8px 16px;
            border-radius: 20px;
            border: 2px solid #ff0000;
            margin-top: 15px;
            animation: pulse 2s ease-in-out infinite;
        }

        @keyframes pulse {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.7; }
        }

        .live-dot {
            width: 10px;
            height: 10px;
            background: #ff0000;
            border-radius: 50%;
            animation: blink 1s ease-in-out infinite;
        }

        @keyframes blink {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.3; }
        }

        .leaderboard-card {
            background: rgba(255, 255, 255, 0.05);
            backdrop-filter: blur(10px);
            border-radius: 20px;
            padding: 30px;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
            border: 1px solid rgba(255, 255, 255, 0.1);
            position: relative;
            overflow: hidden;
            flex: 1;
            display: flex;
            flex-direction: column;
        }

        .leaderboard-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: linear-gradient(90deg, #ff0080, #ff8c00, #40e0d0, #ff0080);
            background-size: 200% 100%;
            animation: shimmer 3s linear infinite;
        }

        @keyframes shimmer {
            0% { background-position: 0% 0%; }
            100% { background-position: 200% 0%; }
        }

        .card-title {
            display: flex;
            align-items: center;
            gap: 12px;
            font-size: 1.8rem;
            font-weight: 700;
            margin-bottom: 25px;
            color: #fff;
            text-transform: uppercase;
            letter-spacing: 2px;
            flex-shrink: 0;
        }

        .trophy-icon {
            font-size: 2rem;
            filter: drop-shadow(0 0 10px #ffd700);
        }

        .leaderboard-table {
            width: 100%;
            border-collapse: separate;
            border-spacing: 0 8px;
        }

        .table-wrapper {
            overflow: hidden;
            flex: 1;
        }

        .table-header {
            background: rgba(255, 255, 255, 0.1);
            border-radius: 10px;
        }

        .table-header th {
            padding: 15px 10px;
            text-align: left;
            font-weight: 700;
            text-transform: uppercase;
            font-size: 1.3rem;
            letter-spacing: 1px;
            color: #40e0d0;
        }

        .table-header th:first-child {
            border-top-left-radius: 10px;
            border-bottom-left-radius: 10px;
            padding-left: 20px;
        }

        .table-header th:last-child {
            border-top-right-radius: 10px;
            border-bottom-right-radius: 10px;
            padding-right: 20px;
        }

        .player-row {
            background: rgba(255, 255, 255, 0.05);
            transition: all 0.3s ease;
            border-radius: 10px;
            opacity: 0;
            transform: translateY(20px);
        }

        .player-row.fade-in {
            animation: fadeInRow 0.5s ease forwards;
        }

        .player-row.fade-out {
            animation: fadeOutRow 0.5s ease forwards;
        }

        @keyframes fadeInRow {
            from {
                opacity: 0;
                transform: translateY(20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        @keyframes fadeOutRow {
            from {
                opacity: 1;
                transform: translateY(0);
            }
            to {
                opacity: 0;
                transform: translateY(-20px);
            }
        }

        .player-row.rank-1 {
            background: linear-gradient(90deg, rgba(255, 215, 0, 0.2), rgba(255, 215, 0, 0.05));
            border-left: 4px solid #ffd700;
        }

        .player-row.rank-2 {
            background: linear-gradient(90deg, rgba(192, 192, 192, 0.2), rgba(192, 192, 192, 0.05));
            border-left: 4px solid #c0c0c0;
        }

        .player-row.rank-3 {
            background: linear-gradient(90deg, rgba(205, 127, 50, 0.2), rgba(205, 127, 50, 0.05));
            border-left: 4px solid #cd7f32;
        }

        .player-row td {
            padding: 18px 10px;
        }

        .player-row td:first-child {
            padding-left: 20px;
            border-top-left-radius: 10px;
            border-bottom-left-radius: 10px;
        }

        .player-row td:last-child {
            padding-right: 20px;
            border-top-right-radius: 10px;
            border-bottom-right-radius: 10px;
        }

        .rank-cell {
            font-size: 1.5rem;
            font-weight: 900;
            color: #fff;
            min-width: 50px;
        }

        .rank-1 .rank-cell {
            color: #ffd700;
            font-size: 2.2rem;
            text-shadow: 0 0 10px #ffd700;
        }

        .rank-2 .rank-cell {
            color: #c0c0c0;
            font-size: 2rem;
            text-shadow: 0 0 10px #c0c0c0;
        }

        .rank-3 .rank-cell {
            color: #cd7f32;
            font-size: 1.8rem;
            text-shadow: 0 0 10px #cd7f32;
        }

        .player-name {
            font-size: 1.5rem;
            font-weight: 600;
            color: #fff;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .wdl-cell {
            font-family: 'Courier New', monospace;
            font-size: 1.5rem;
            color: #40e0d0;
            font-weight: 600;
        }

        .points-cell {
            font-size: 1.5rem;
            font-weight: 900;
            background: linear-gradient(135deg, #48ff00, #ff8c00);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .no-results {
            text-align: center;
            padding: 60px 20px;
            font-size: 1.3rem;
            color: #888;
        }

        .loading {
            text-align: center;
            padding: 60px 20px;
            font-size: 1.5rem;
            color: #40e0d0;
        }

        .loading::after {
            content: '...';
            animation: dots 1.5s steps(4, end) infinite;
        }

        @keyframes dots {
            0%, 20% { content: '.'; }
            40% { content: '..'; }
            60%, 100% { content: '...'; }
        }

        @media (max-width: 768px) {
            .title {
                font-size: 2rem;
            }

            .subtitle {
                font-size: 1rem;
            }

            .card-title {
                font-size: 1.4rem;
            }

            .table-header th {
                font-size: 0.75rem;
                padding: 12px 8px;
            }

            .player-row td {
                padding: 15px 8px;
            }

            .player-name {
                font-size: 1rem;
            }

            .wdl-cell {
                font-size: 0.9rem;
            }

            .points-cell {
                font-size: 1.1rem;
            }
        }

        @media (max-width: 420px) {
            .wdl-cell {
                display: none;
            }

            .table-header th:nth-child(3) {
                display: none;
            }
        }