
        body {
            background-color: #0b0f1a;
            color: #e2e8f0;
            font-family: ui-sans-serif, system-ui, sans-serif;
            overflow-x: hidden;
        }

        .glass {
            background: rgba(15, 23, 42, 0.85);
            backdrop-filter: blur(16px);
            border: 1px solid rgba(255, 255, 255, 0.08);
            box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
        }

        /* Kit Düymələri Animasiyası */
        .kit-btn {
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            overflow: hidden;
            font-size: 0.95rem;
            padding: 14px 24px;
            border: 1px solid rgba(255, 255, 255, 0.05);
        }

        .kit-btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
            border-color: rgba(255, 255, 255, 0.2);
            z-index: 10;
        }

        .kit-btn.active {
            background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
            border-color: #60a5fa;
            box-shadow: 0 0 15px rgba(59, 130, 246, 0.5);
        }

        /* Bildiriş (Toast) Animasiyası */
        #notification-container {
            position: fixed;
            top: 20px;
            right: 20px;
            z-index: 1000;
            display: flex;
            flex-direction: column;
            gap: 10px;
            pointer-events: none;
        }

        .toast {
            padding: 16px 24px;
            border-radius: 12px;
            background: rgba(15, 23, 42, 0.95);
            border: 1px solid rgba(255, 255, 255, 0.1);
            color: white;
            font-weight: 600;
            backdrop-filter: blur(10px);
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
            animation: slideIn 0.4s ease-out forwards;
            pointer-events: auto;
        }

        @keyframes slideIn {
            from {
                transform: translateX(100%);
                opacity: 0;
            }

            to {
                transform: translateX(0);
                opacity: 1;
            }
        }

        .tier-badge {
            padding: 5px 12px;
            border-radius: 7px;
            font-weight: 900;
            font-size: 0.85em;
            text-align: center;
            display: inline-block;
            min-width: 65px;
            text-transform: uppercase;
            border: 1px solid transparent;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
        }

        /* Tier Colors */
        .tier-HT1 {
            background: rgba(233, 30, 99, 0.15);
            color: #ff4081;
            border-color: #e91e63;
            box-shadow: 0 0 10px rgba(233, 30, 99, 0.2);
        }

        .tier-LT1 {
            background: rgba(173, 20, 87, 0.15);
            color: #ec407a;
            border-color: #ad1457;
        }

        .tier-HT2 {
            background: rgba(155, 89, 182, 0.15);
            color: #d2a6ff;
            border-color: #9b59b6;
        }

        .tier-LT2 {
            background: rgba(113, 54, 138, 0.15);
            color: #af7ac5;
            border-color: #71368a;
        }

        .tier-HT3 {
            background: rgba(241, 196, 15, 0.15);
            color: #ffd700;
            border-color: #f1c40f;
        }

        .tier-LT3 {
            background: rgba(194, 124, 14, 0.15);
            color: #f39c12;
            border-color: #d35400;
        }

        .tier-HT4 {
            background: rgba(46, 204, 113, 0.15);
            color: #69f0ae;
            border-color: #2ecc71;
        }

        .tier-LT4 {
            background: rgba(31, 139, 76, 0.15);
            color: #2ecc71;
            border-color: #27ae60;
        }

        .tier-HT5 {
            background: rgba(52, 152, 219, 0.15);
            color: #4fc3f7;
            border-color: #3498db;
        }

        .tier-LT5 {
            background: rgba(32, 102, 148, 0.15);
            color: #2980b9;
            border-color: #2980b9;
        }

        /* Rank Row Hover Effects */
        .rank-row {
            transition: all 0.2s ease;
            border-left: 3px solid transparent;
        }

        .rank-row:hover {
            background-color: rgba(255, 255, 255, 0.04);
            transform: scale(1.005);
        }

        .rank-row.rank-1 {
            border-left-color: #FFD700 !important;
            background: linear-gradient(90deg, rgba(255, 215, 0, 0.07), transparent);
        }

        .rank-row.rank-2 {
            border-left-color: #C0C0C0 !important;
            background: linear-gradient(90deg, rgba(192, 192, 192, 0.05), transparent);
        }

        .rank-row.rank-3 {
            border-left-color: #CD7F32 !important;
            background: linear-gradient(90deg, rgba(205, 127, 50, 0.05), transparent);
        }

        /* Table row fade-in */
        @keyframes rowFadeIn {
            from {
                opacity: 0;
                transform: translateY(6px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .rank-row {
            animation: rowFadeIn 0.25s ease both;
        }

        /* Season countdown badge */
        .season-countdown {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            background: rgba(99, 102, 241, 0.15);
            border: 1px solid rgba(99, 102, 241, 0.4);
            color: #a5b4fc;
            font-size: 0.7rem;
            font-weight: 700;
            padding: 3px 10px;
            border-radius: 20px;
            letter-spacing: 0.05em;
            text-transform: uppercase;
        }

        /* Timestamp pill */
        .time-pill {
            font-size: 0.65rem;
            color: #475569;
            font-weight: 600;
            margin-top: 2px;
        }

        /* Podium Styles */
        .podium-container {
            display: flex;
            align-items: flex-end;
            justify-content: center;
            gap: 2rem;
            margin-bottom: 3rem;
            padding-top: 2rem;
            width: 100%;
        }

        .podium-card {
            display: flex;
            flex-direction: column;
            align-items: center;
            padding: 1rem;
            border-radius: 1rem;
            background: rgba(30, 41, 59, 0.6);
            border: 1px solid rgba(255, 255, 255, 0.05);
            backdrop-filter: blur(5px);
            transition: transform 0.3s;
            position: relative;
            width: 100%;
        }

        .podium-card:hover {
            transform: translateY(-5px);
        }

        .podium-1 {
            height: 340px;
            max-width: 230px;
            border-color: rgba(255, 215, 0, 0.5);
            background: linear-gradient(to top, rgba(255, 215, 0, 0.1), transparent);
            z-index: 2;
        }

        .podium-2 {
            height: 300px;
            max-width: 220px;
            border-color: rgba(192, 192, 192, 0.5);
            background: linear-gradient(to top, rgba(192, 192, 192, 0.1), transparent);
        }

        .podium-3 {
            height: 270px;
            max-width: 220px;
            border-color: rgba(205, 127, 50, 0.5);
            background: linear-gradient(to top, rgba(205, 127, 50, 0.1), transparent);
        }

        .crown-icon {
            position: absolute;
            top: -25px;
            filter: drop-shadow(0 0 10px gold);
            animation: bounce 2s infinite;
        }

        @keyframes bounce {

            0%,
            100% {
                transform: translateY(0);
            }

            50% {
                transform: translateY(-5px);
            }
        }

        @media (max-width: 768px) {
            .podium-container {
                gap: 0.5rem;
                padding-top: 1.5rem;
            }

            .podium-card {
                padding: 0.5rem;
            }

            .podium-1 {
                height: 260px;
                max-width: 115px;
            }

            .podium-2 {
                height: 230px;
                max-width: 105px;
            }

            .podium-3 {
                height: 210px;
                max-width: 105px;
            }

            .crown-icon {
                transform: scale(0.7);
                top: -15px;
            }

            .podium-card img[class*="w-20"] {
                width: 3rem !important;
                height: 3rem !important;
            }

            .podium-card div[class*="text-3xl"] {
                font-size: 1.5rem !important;
                line-height: 1.2 !important;
            }

            .podium-card img[class*="w-12"] {
                width: 2rem !important;
                height: 2rem !important;
            }

            .podium-card img[class*="w-10"] {
                width: 1.5rem !important;
                height: 1.5rem !important;
            }

            .podium-card img[class*="w-6"] {
                width: 1.25rem !important;
                height: 1.25rem !important;
            }

            .podium-card div[class*="text-sm"] {
                font-size: 0.65rem !important;
                line-height: 1.1 !important;
            }

            .podium-card div[class*="text-xs"] {
                font-size: 0.6rem !important;
            }
        }

        .main-title {
            background: linear-gradient(to right, #60a5fa, #f472b6, #4ade80);
            background-clip: text;
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            font-weight: 900;
            filter: drop-shadow(0 0 20px rgba(96, 165, 250, 0.3));
            white-space: nowrap;
        }

        /* Info Modal Tabs */
        .info-tab {
            padding: 10px 20px;
            border-radius: 10px;
            font-weight: 700;
            font-size: 0.8rem;
            cursor: pointer;
            transition: all 0.3s;
            border: 1px solid transparent;
            color: #94a3b8;
            background: transparent;
        }

        .info-tab:hover {
            color: #e2e8f0;
            background: rgba(255, 255, 255, 0.05);
        }

        .info-tab.active {
            background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
            color: #fff;
            border-color: #60a5fa;
            box-shadow: 0 0 12px rgba(59, 130, 246, 0.4);
        }

        .info-tab-content {
            display: none;
            animation: fadeInTab 0.3s ease;
        }

        .info-tab-content.active {
            display: block;
        }

        @keyframes fadeInTab {
            from {
                opacity: 0;
                transform: translateY(8px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* Badge Icon Styles */
        .badge-icon {
            display: inline-block;
            width: 22px;
            height: 22px;
            margin-left: 4px;
            vertical-align: middle;
            transition: transform 0.2s;
            filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
        }

        .badge-icon:hover {
            transform: scale(1.3) rotate(10deg);
            z-index: 10;
        }

        /* Custom scrollbar */
        .custom-scrollbar::-webkit-scrollbar {
            width: 6px;
        }

        .custom-scrollbar::-webkit-scrollbar-track {
            background: #0f172a;
        }

        .custom-scrollbar::-webkit-scrollbar-thumb {
            background: #334155;
            border-radius: 4px;
        }

        .scrollbar-hide::-webkit-scrollbar {
            display: none;
        }

        .scrollbar-hide {
            -ms-overflow-style: none;
            scrollbar-width: none;
        }

        /* Loading Animation */
        .loader {
            border: 3px solid #f3f3f3;
            border-radius: 50%;
            border-top: 3px solid #3498db;
            width: 20px;
            height: 20px;
            -webkit-animation: spin 1s linear infinite;
            /* Safari */
            animation: spin 1s linear infinite;
        }

        @keyframes spin {
            0% {
                transform: rotate(0deg);
            }

            100% {
                transform: rotate(360deg);
            }
        }

        /* Premium & Tester Styles */
        @keyframes neon-pulse {

            0%,
            100% {
                text-shadow: 0 0 4px #ff00bf, 0 0 8px #ff00bf;
            }

            50% {
                text-shadow: 0 0 2px #ff00bf, 0 0 4px #ff00bf;
            }
        }

        .player-name-premium {
            color: #ff40d6 !important;
            animation: neon-pulse 2s infinite alternate;
            font-weight: bold;
        }



        /* Premium Row Effect */
        .premium-row-border {
            border-left: 3px solid #ff00bf !important;
            background: linear-gradient(90deg, rgba(255, 0, 191, 0.1), transparent);
        }

        /* Profile Banner Animation for Premium */
        .premium-banner-bg {
            background: linear-gradient(45deg, #ff00bf, #66004d, #0f172a) !important;
            background-size: 200% 200%;
            animation: gradient-move 5s ease infinite;
        }

        @keyframes gradient-move {
            0% {
                background-position: 0% 50%;
            }

            50% {
                background-position: 100% 50%;
            }

            100% {
                background-position: 0% 50%;
            }
        }

        /* Retired badge pill */
        .retired-pill {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            background: rgba(100, 116, 139, 0.15);
            border: 1px solid rgba(100, 116, 139, 0.4);
            color: #94a3b8;
            font-size: 0.7rem;
            font-weight: 800;
            padding: 3px 10px !important;
            border-radius: 6px;
            letter-spacing: 0.08em;
            text-transform: uppercase;
        }

        /* Retired row style in global ranking */
        .retired-row {
            opacity: 0.85;
        }

        /* Retired kit cell style — keep original colors, just fade to 50% */
        .retired-kit-img {
            opacity: 0.5;
        }

        .retired-kit-img:hover {
            opacity: 1;
        }

        .tier-badge.is-retired {
            opacity: 0.5;
        }

        .tier-badge.is-retired:hover {
            opacity: 1;
        }

        /* High Tier card double-border frames */
        .ht-border-up {
            border: 2px solid #22c55e !important;
            outline: 1px solid rgba(34, 197, 94, 0.3);
            outline-offset: 2px;
            box-shadow: 0 0 15px rgba(34, 197, 94, 0.35);
        }

        .ht-border-down {
            border: 2px solid #ef4444 !important;
            outline: 1px solid rgba(239, 68, 68, 0.3);
            outline-offset: 2px;
            box-shadow: 0 0 15px rgba(239, 68, 68, 0.35);
        }

        .ht-border-same {
            border: 2px solid rgba(148, 163, 184, 0.5) !important;
            outline: 1px solid rgba(148, 163, 184, 0.2);
            outline-offset: 2px;
        }
    

/* ============ NEXT ORIGINAL BLOCK ============ */


        

        body {
            padding-top: 190px !important;
        }

        /* Modern glass navbar */
        .aze-navbar {
            position: absolute;
            top: 12px;
            left: 12px;
            right: 12px;
            z-index: 90;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 16px;
            padding: 10px 20px;
            background: rgba(15, 23, 42, 0.72);
            backdrop-filter: blur(18px);
            -webkit-backdrop-filter: blur(18px);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 22px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
        }

        .aze-navbar .brand {
            display: flex;
            align-items: center;
            gap: 12px;
            flex-shrink: 0;
        }

        .aze-navbar .brand img {
            height: 140px;
            width: auto;
            filter: drop-shadow(0 0 18px rgba(96, 165, 250, 0.45)) drop-shadow(0 4px 10px rgba(0, 0, 0, 0.55));
            transition: transform .25s ease, filter .25s ease;
        }

        .aze-navbar .brand img:hover {
            transform: scale(1.04);
            filter: drop-shadow(0 0 26px rgba(96, 165, 250, 0.75)) drop-shadow(0 6px 14px rgba(0, 0, 0, 0.6));
        }

        .aze-tabs {
            display: flex;
            gap: 6px;
            flex-wrap: wrap;
            justify-content: center;
        }

        .aze-tab {
            padding: 12px 20px;
            border-radius: 12px;
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid rgba(255, 255, 255, 0.06);
            color: #cbd5e1;
            font-weight: 700;
            font-size: 0.92rem;
            cursor: pointer;
            transition: all .25s ease;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            white-space: nowrap;
        }

        .aze-tab:hover {
            color: #fff;
            background: rgba(255, 255, 255, 0.07);
            border-color: rgba(255, 255, 255, 0.18);
            transform: translateY(-1px);
        }

        .aze-tab.active {
            background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
            color: #fff;
            border-color: #60a5fa;
            box-shadow: 0 0 16px rgba(59, 130, 246, 0.5);
        }

        .aze-actions {
            display: flex;
            gap: 8px;
            flex-shrink: 0;
        }

        .aze-icon-btn {
            width: 42px;
            height: 42px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 12px;
            background: rgba(255, 255, 255, 0.04);
            color: #94a3b8;
            border: 1px solid rgba(255, 255, 255, 0.06);
            transition: all .25s;
        }

        .aze-icon-btn:hover {
            color: #fff;
            border-color: #60a5fa;
            box-shadow: 0 0 12px rgba(96, 165, 250, 0.4);
        }

        .aze-icon-btn.discord {
            background: #5865F2;
            color: #fff;
            border-color: transparent;
        }

        .aze-icon-btn.discord:hover {
            background: #4752C4;
            box-shadow: 0 0 14px rgba(88, 101, 242, 0.6);
        }

        .aze-burger {
            display: none;
        }

        @media (max-width: 1024px) {
            .aze-navbar {
                flex-wrap: wrap;
                padding: 10px 12px;
            }

            .aze-tabs {
                order: 3;
                width: 100%;
                justify-content: flex-start;
                overflow-x: auto;
                padding-top: 4px;
            }

            .aze-tabs::-webkit-scrollbar {
                display: none;
            }

            body {
                padding-top: 250px !important;
            }
        }

        @media (max-width: 640px) {
            .aze-navbar .brand img {
                height: 100px;
            }

            .aze-tab {
                padding: 10px 14px;
                font-size: 0.82rem;
            }

            body {
                padding-top: 230px !important;
            }
        }

        /* Smooth view transitions */
        .aze-view {
            animation: azeFade .35s ease both;
        }

        @keyframes azeFade {
            from {
                opacity: 0;
                transform: translateY(8px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .aze-hide {
            display: none !important;
        }

        /* Keep the element occupying its layout slot (so the leaderboard/podium
      stays in its original column width) but invisible. */
        .aze-reserve {
            visibility: hidden !important;
            pointer-events: none !important;
        }

        /* Full-width layout for Retired / Hilə views — let the single remaining
      block fill the row instead of clinging to the left column. */
        body.aze-fullaside #hileAside {
            width: 100% !important;
            max-width: none !important;
            flex: 1 1 100% !important;
            display: flex !important;
            padding: 0 8px;
        }

        body.aze-fullaside #hileAside>div {
            width: 100%;
            max-width: 1400px;
            margin: 0 auto;
        }

        body.aze-fullaside #hileList,
        body.aze-fullaside #retiredList {
            display: grid !important;
            grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
            gap: 14px;
        }

        body.aze-fullaside #hileList>*,
        body.aze-fullaside #retiredList>* {
            margin: 0 !important;
        }

        /* Info view — full page, mirrors statsView */
        #infoView {
            width: 100%;
            max-width: 1100px;
            margin: 0 auto;
            padding: 0 12px;
        }

        #infoView .info-shell {
            background: rgba(15, 23, 42, 0.85);
            border: 1px solid rgba(255, 255, 255, 0.08);
            backdrop-filter: blur(16px);
            border-radius: 24px;
            padding: 28px;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.37);
        }

        /* ===== Statistika dashboard ===== */
        #statsView {
            width: 100%;
            max-width: 1750px;
            margin: 0 auto;
            padding: 0 8px;
        }

        .stat-grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 14px;
            margin-bottom: 24px;
        }

        @media (min-width: 768px) {
            .stat-grid {
                grid-template-columns: repeat(4, minmax(0, 1fr));
            }
        }

        .stat-card {
            background: rgba(15, 23, 42, 0.85);
            border: 1px solid rgba(255, 255, 255, 0.08);
            backdrop-filter: blur(16px);
            border-radius: 20px;
            padding: 20px;
            position: relative;
            overflow: hidden;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.37);
            transition: transform .25s;
        }

        .stat-card:hover {
            transform: translateY(-3px);
        }

        .stat-card::after {
            content: "";
            position: absolute;
            inset: 0;
            border-radius: 20px;
            pointer-events: none;
            background: linear-gradient(135deg, transparent 60%, var(--accent, #3b82f6) 200%);
            opacity: .18;
        }

        .stat-card .icon-wrap {
            width: 46px;
            height: 46px;
            border-radius: 14px;
            background: color-mix(in oklab, var(--accent, #3b82f6) 18%, transparent);
            color: var(--accent, #3b82f6);
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 14px;
            box-shadow: 0 0 18px color-mix(in oklab, var(--accent, #3b82f6) 28%, transparent);
        }

        .stat-card .label {
            font-size: .7rem;
            font-weight: 700;
            letter-spacing: .08em;
            text-transform: uppercase;
            color: #94a3b8;
        }

        .stat-card .value {
            font-size: 2rem;
            font-weight: 900;
            color: #fff;
            margin-top: 4px;
            letter-spacing: -.02em;
        }

        .stat-panel {
            background: rgba(15, 23, 42, 0.85);
            border: 1px solid rgba(255, 255, 255, 0.08);
            backdrop-filter: blur(16px);
            border-radius: 24px;
            padding: 24px;
            margin-bottom: 20px;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.37);
        }

        .stat-panel h3 {
            color: #fff;
            font-weight: 900;
            text-transform: uppercase;
            letter-spacing: .1em;
            font-size: .95rem;
            margin-bottom: 18px;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .stat-panel h3 .dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: #60a5fa;
            box-shadow: 0 0 12px #60a5fa;
        }

        .stat-row {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 10px 0;
            border-bottom: 1px solid rgba(255, 255, 255, 0.04);
        }

        .stat-row:last-child {
            border-bottom: 0;
        }

        .stat-row .lead {
            flex: 0 0 110px;
        }

        .stat-row .bar {
            flex: 1;
            height: 10px;
            background: rgba(255, 255, 255, 0.05);
            border-radius: 999px;
            overflow: hidden;
            position: relative;
        }

        .stat-row .bar>span {
            display: block;
            height: 100%;
            border-radius: 999px;
            transition: width .6s ease;
        }

        .stat-row .count {
            flex: 0 0 60px;
            text-align: right;
            color: #fff;
            font-weight: 800;
            font-size: .95rem;
        }

        .kit-row .kit-thumb {
            width: 32px;
            height: 32px;
            object-fit: contain;
            filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .4));
        }

        .kit-row .kit-name {
            flex: 0 0 160px;
            color: #e2e8f0;
            font-weight: 700;
            font-size: .9rem;
        }

        .stats-grid-2 {
            display: grid;
            grid-template-columns: 1fr;
            gap: 20px;
        }

        @media (min-width: 1024px) {
            .stats-grid-2 {
                grid-template-columns: 1fr 1fr;
            }
        }
    

/* ============ NEXT ORIGINAL BLOCK ============ */


        /* Achievement badges */
        .achievement-badge {
            width: 22px;
            height: 22px;
            object-fit: contain;
            image-rendering: pixelated;
            margin-right: 4px;
            vertical-align: middle;
            filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.6));
            flex-shrink: 0;
        }

        .achievement-badge.lg {
            width: 40px;
            height: 40px;
            margin-right: 0;
        }

        .achievement-pill {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 3px 10px 3px 6px;
            border-radius: 9999px;
            background: rgba(30, 41, 59, 0.7);
            border: 1px solid rgba(148, 163, 184, 0.35);
            color: #cbd5e1;
            font-weight: 800;
            font-size: 0.62rem;
            text-transform: uppercase;
            letter-spacing: .08em;
            line-height: 1;
            white-space: nowrap;
        }

        .achievement-pill img {
            width: 16px;
            height: 16px;
            object-fit: contain;
            image-rendering: pixelated;
            filter: drop-shadow(0 0 3px rgba(0, 0, 0, .6));
        }

        .achievement-pill.rank-zombie {
            color: #86efac;
            border-color: rgba(34, 197, 94, .45);
            background: rgba(22, 101, 52, .18);
        }

        .achievement-pill.rank-pigman {
            color: #fda4af;
            border-color: rgba(244, 114, 182, .45);
            background: rgba(131, 24, 67, .18);
        }

        .achievement-pill.rank-enderman {
            color: #c4b5fd;
            border-color: rgba(139, 92, 246, .55);
            background: rgba(30, 27, 75, .45);
        }

        .achievement-pill.rank-golem {
            color: #d8b4fe;
            border-color: rgba(168, 85, 247, .6);
            background: rgba(59, 7, 100, .35);
        }

        .achievement-pill.rank-wither {
            color: #fca5a5;
            border-color: rgba(239, 68, 68, .6);
            background: rgba(127, 29, 29, .35);
        }

        .achievement-pill.rank-warden {
            color: #67e8f9;
            border-color: rgba(34, 211, 238, .6);
            background: rgba(22, 78, 99, .35);
        }

        .achievement-pill.rank-dragon {
            color: #f0abfc;
            border-color: rgba(192, 38, 211, .6);
            background: rgba(88, 28, 135, .40);
        }

        .score-with-rank {
            display: inline-flex;
            flex-direction: column;
            align-items: center;
            gap: 4px;
        }

        /* MCTiers-style sub-line under the nickname: icon + rank name + (points) */
        .name-col {
            display: flex;
            flex-direction: column;
            gap: 2px;
            min-width: 0;
        }

        .rank-sub {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            font-size: 0.9rem;
            font-weight: 600;
            color: #cbd5e1;
            line-height: 1;
        }

        .rank-sub img {
            width: 16px;
            height: 16px;
            object-fit: contain;
            image-rendering: pixelated;
            filter: drop-shadow(0 0 3px rgba(0, 0, 0, .6));
        }

        .rank-sub .rank-pts {
            color: #94a3b8;
            font-weight: 500;
        }

        .rank-sub.rank-zombie .rank-name {
            color: #86efac;
        }

        .rank-sub.rank-pigman .rank-name {
            color: #fda4af;
        }

        .rank-sub.rank-enderman .rank-name {
            color: #c4b5fd;
        }

        .rank-sub.rank-golem .rank-name {
            color: #d8b4fe;
        }

        .rank-sub.rank-wither .rank-name {
            color: #fca5a5;
        }

        .rank-sub.rank-warden .rank-name {
            color: #67e8f9;
        }

        .rank-sub.rank-dragon .rank-name {
            color: #f0abfc;
            animation: dragon-glow 2s ease-in-out infinite alternate;
        }

        @keyframes dragon-glow {
            from {
                text-shadow: 0 0 6px rgba(192, 38, 211, .6);
            }

            to {
                text-shadow: 0 0 14px rgba(192, 38, 211, 1), 0 0 30px rgba(167, 139, 250, .5);
            }
        }

        /* The standalone score column is hidden once the rank sub-line owns the points */
        #tierTableBody td.score-cell-hidden {
            visibility: hidden;
            width: 0;
            padding: 0 !important;
        }

        @media (max-width: 1024px) {
            #tierTableBody td.score-cell-hidden {
                display: none !important;
            }
        }

        .achievement-card {
            display: flex;
            align-items: center;
            gap: 10px;
            background: rgba(15, 23, 42, 0.6);
            border: 1px solid rgba(255, 255, 255, 0.06);
            border-radius: 12px;
            padding: 10px 14px;
        }

        .achievement-card img {
            width: 36px;
            height: 36px;
            object-fit: contain;
            image-rendering: pixelated;
        }

        .achievement-card .a-name {
            color: #fff;
            font-weight: 800;
            font-size: 0.9rem;
        }

        .achievement-card .a-req {
            color: #94a3b8;
            font-size: 0.7rem;
            text-transform: uppercase;
            letter-spacing: .08em;
        }

        /* Search highlight */
        mark.aze-mark {
            background: rgba(250, 204, 21, 0.35);
            color: #fde68a;
            padding: 0 2px;
            border-radius: 3px;
            font-weight: 900;
        }

        /* Focus visible — accessibility */
        :focus-visible {
            outline: 2px solid #60a5fa !important;
            outline-offset: 2px !important;
            border-radius: 4px;
        }

        /* Responsive: below 1024px, rows become cards — tiers wrap onto a new line so nothing is clipped (MCTiers style) */
        @media (max-width: 1024px) {

            section table,
            section table tbody,
            section table thead {
                min-width: 0 !important;
            }

            section .overflow-x-auto.scrollbar-hide {
                overflow-x: visible !important;
            }

            section table thead {
                display: none;
            }

            #tierTableBody tr {
                display: grid;
                grid-template-columns: auto 1fr;
                column-gap: 10px;
                row-gap: 10px;
                padding: 10px 8px;
                align-items: center;
            }

            #tierTableBody td {
                padding: 0 !important;
                border: none !important;
                display: block;
            }

            #tierTableBody td:nth-child(1) {
                grid-column: 1;
                grid-row: 1;
                align-self: center;
            }

            #tierTableBody td:nth-child(2) {
                grid-column: 2;
                grid-row: 1;
                min-width: 0;
            }

            #tierTableBody td:nth-child(2)>div {
                flex-wrap: wrap;
            }

            #tierTableBody td:nth-child(4) {
                grid-column: 1 / -1;
                grid-row: 2;
            }

            #tierTableBody td:nth-child(4)>div {
                flex-wrap: wrap !important;
                justify-content: flex-start !important;
                gap: 8px;
                overflow: visible !important;
            }
        }

        @media (max-width: 640px) {
            #tierTableBody td:nth-child(2) span.text-base {
                font-size: 0.9rem !important;
            }

            .rank-sub {
                font-size: 0.72rem;
            }
        }

        /* Compare system removed */
        .compare-btn {
            width: 28px;
            height: 28px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            border-radius: 8px;
            background: rgba(255, 255, 255, 0.04);
            border: 1px solid rgba(255, 255, 255, 0.08);
            color: #94a3b8;
            font-size: 14px;
            cursor: pointer;
            transition: all .2s;
            margin-left: 6px;
        }

        .compare-btn:hover {
            color: #fff;
            border-color: #60a5fa;
        }

        .compare-btn.selected {
            background: linear-gradient(135deg, #3b82f6, #2563eb);
            color: #fff;
            border-color: #60a5fa;
            box-shadow: 0 0 10px rgba(59, 130, 246, .5);
        }

        /* Compare system removed */

        /* Realtime toast button */
        .realtime-toast {
            padding: 12px 18px;
            border-radius: 12px;
            background: rgba(59, 130, 246, 0.95);
            color: #fff;
            font-weight: 700;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
            display: flex;
            align-items: center;
            gap: 10px;
            pointer-events: auto;
        }

        .realtime-toast button {
            background: rgba(255, 255, 255, 0.18);
            border: 0;
            color: #fff;
            padding: 4px 10px;
            border-radius: 8px;
            cursor: pointer;
            font-weight: 800;
        }

        /* Season chart container */
        #seasonChartWrap {
            margin-top: 16px;
            background: rgba(15, 23, 42, 0.5);
            border: 1px solid rgba(255, 255, 255, 0.06);
            border-radius: 16px;
            padding: 14px;
            min-height: 220px;
        }

        #seasonChartWrap h4 {
            color: #94a3b8;
            font-size: 0.7rem;
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: .1em;
            margin-bottom: 10px;
        }

        /* Keyboard shortcuts hint */
        #kbdHelpBtn {
            position: fixed;
            left: 16px;
            bottom: 16px;
            z-index: 90;
            width: 38px;
            height: 38px;
            border-radius: 10px;
            background: rgba(15, 23, 42, 0.85);
            border: 1px solid rgba(255, 255, 255, 0.08);
            color: #94a3b8;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 900;
        }

        #kbdHelpBtn:hover {
            color: #fff;
            border-color: #60a5fa;
        }
    