
        .leaderboard-banner {
            background: linear-gradient(110deg, #101b32, #101024 65%, #17132c);
            border-bottom: 1px solid #263454;
            scroll-margin-top: 80px;
        }
        .leaderboard-inner { max-width: 1280px; margin: auto; padding: 18px 16px; display: flex; align-items: center; gap: 16px; }
        .leaderboard-content { flex: 1; min-width: 0; }
        .leaderboard-heading { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 12px; text-align: center; }
        .leaderboard-game { display: flex; align-items: center; gap: 10px; min-width: 0; }
        #lb-game-title { color: #67e8f9; font-size: 11px; font-weight: 700; }
        .leaderboard-players { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
        .leaderboard-player { display: flex; align-items: center; gap: 8px; border-radius: 12px; padding: 12px 10px; min-width: 0; }
        .leaderboard-rank { font-size: 9px; font-weight: 800; white-space: nowrap; flex-shrink: 0; padding: 4px 5px; border-radius: 6px; background: #ffffff0d; color: #cbd5e1; }
        .podium-gold .leaderboard-rank { background: #fbbf2426; color: #fde68a; }
        .leaderboard-avatar { font-size: 23px; flex-shrink: 0; }
        .leaderboard-player-info { min-width: 0; flex: 1; }
        .leaderboard-player-info h3 { font-size: 12px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
        .leaderboard-player-info p { font-size: 10px; color: #94a3b8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
        .leaderboard-score { text-align: right; flex-shrink: 0; }
        .leaderboard-score strong { display: block; font-size: 12px; color: #fde68a; }
        .leaderboard-score span { display: block; font-size: 9px; color: #94a3b8; }
        .leaderboard-arrow { display: grid; place-items: center; flex-shrink: 0; width: 36px; height: 36px; border: 1px solid #334664; border-radius: 50%; background: #0b1427; color: #67e8f9; cursor: pointer; transition: background .2s, border-color .2s; }
        .leaderboard-arrow svg { width: 18px; height: 18px; }
        .leaderboard-arrow:hover { background: #16304a; border-color: #22d3ee; }
        .leaderboard-arrow:focus-visible { outline: 2px solid #67e8f9; outline-offset: 3px; }
        @media (max-width: 1023px) {
            .leaderboard-avatar { display: none; }
            .leaderboard-player { gap: 6px; padding: 10px 8px; }
        }
        @media (max-width: 767px) {
            .leaderboard-inner { padding: 12px 8px; gap: 6px; }
            .leaderboard-heading { justify-content: center; gap: 8px; margin-bottom: 10px; }
            .leaderboard-game { gap: 6px; }
            #lb-game-title { font-size: 10px; }
            .leaderboard-players { grid-template-columns: 1fr; gap: 5px; }
            .leaderboard-player { padding: 6px 8px; }
            .leaderboard-player-info h3 { font-size: 11px; }
            .leaderboard-player-info p, .leaderboard-score span { font-size: 9px; }
            .leaderboard-score strong { font-size: 11px; }
        }
        @media (prefers-reduced-motion: reduce) {
            .leaderboard-player.animate-leaderboard-swap { animation: none; }
        }

        body {
            background-color: #060913;
            color: #F8FAFC;
            overflow-x: hidden;
        }

        /* Latar belakang grid perspektif ala cyber arcade */
        .arcade-grid-bg {
            background-size: 44px 44px;
            background-image: 
                linear-gradient(to right, rgba(0, 240, 255, 0.04) 1px, transparent 1px),
                linear-gradient(to bottom, rgba(168, 85, 247, 0.04) 1px, transparent 1px);
        }

        /* Glassmorphism Card */
        .glass-panel {
            background: rgba(13, 19, 38, 0.72);
            backdrop-filter: blur(14px);
            -webkit-backdrop-filter: blur(14px);
            border: 1px solid rgba(255, 255, 255, 0.08);
        }

        .glass-card {
            background: linear-gradient(145deg, rgba(18, 27, 54, 0.85) 0%, rgba(9, 14, 28, 0.92) 100%);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(56, 189, 248, 0.15);
            transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
        }

        .glass-card:hover {
            transform: translateY(-6px) scale(1.01);
            border-color: rgba(0, 240, 255, 0.55);
            box-shadow: 0 18px 36px -10px rgba(0, 240, 255, 0.2), 0 0 20px rgba(168, 85, 247, 0.18);
        }

        /* Neon Text Shadow */
        .text-neon-cyan {
            text-shadow: 0 0 18px rgba(0, 240, 255, 0.55);
        }

        /* Podium Shimmer Effect */
        .podium-gold {
            background: linear-gradient(180deg, rgba(245, 158, 11, 0.18) 0%, rgba(13, 19, 38, 0.95) 100%);
            border: 1px solid rgba(245, 158, 11, 0.5);
            box-shadow: 0 10px 35px -10px rgba(245, 158, 11, 0.3);
        }

        .podium-silver {
            background: linear-gradient(180deg, rgba(148, 163, 184, 0.15) 0%, rgba(13, 19, 38, 0.95) 100%);
            border: 1px solid rgba(148, 163, 184, 0.4);
        }

        .podium-bronze {
            background: linear-gradient(180deg, rgba(217, 119, 6, 0.15) 0%, rgba(13, 19, 38, 0.95) 100%);
            border: 1px solid rgba(180, 83, 9, 0.4);
        }

        /* Custom Scrollbar */
        ::-webkit-scrollbar {
            width: 8px;
        }
        ::-webkit-scrollbar-track {
            background: #060913;
        }
        ::-webkit-scrollbar-thumb {
            background: #1E294B;
            border-radius: 9999px;
        }
        ::-webkit-scrollbar-thumb:hover {
            background: #00F0FF;
        }

        /* Animasi transisi saat leaderboard berganti */
        @keyframes fadeSlideUp {
            from {
                opacity: 0;
                transform: translateY(14px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        .animate-leaderboard-swap {
            animation: fadeSlideUp 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
        }
    

/* Pencarian katalog dan ikon peringkat SVG. */
.catalog-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.game-search { display: flex; align-items: center; gap: 10px; width: min(100%, 420px); padding: 12px 16px; border: 1px solid #334664; border-radius: 14px; background: #0d1326; color: #67e8f9; }
.game-search:focus-within { border-color: #22d3ee; box-shadow: 0 0 0 2px #22d3ee26; }
.game-search svg { width: 20px; height: 20px; flex-shrink: 0; }
.game-search input { width: 100%; min-width: 0; background: transparent; color: #f8fafc; outline: none; font: inherit; font-size: 13px; }
.game-search input::placeholder { color: #94a3b8; }
.search-status { color: #94a3b8; font-size: 13px; margin-bottom: 16px; }
.search-status:empty { display: none; }
.leaderboard-rank { display: grid; place-items: center; width: 32px; height: 32px; padding: 5px; }
.leaderboard-rank svg { width: 22px; height: 22px; }
.podium-silver .leaderboard-rank { color: #e2e8f0; background: #cbd5e11a; }
.podium-bronze .leaderboard-rank { color: #fdba74; background: #fb923c1a; }
@media (max-width: 767px) {
    .catalog-toolbar { flex-direction: row; align-items: center; gap: 10px; }
    .game-search { flex: 1; width: auto; min-width: 0; padding: 9px 10px; }
    .catalog-toolbar > span { flex: 0 1 42%; font-size: 9px; letter-spacing: .08em; }
    .game-search input { font-size: 11px; }
    .game-search svg { width: 16px; height: 16px; }
}

.account-controls { display: flex; align-items: center; gap: 10px; font-size: 12px; }
#account-name { max-width: 130px; overflow: hidden; text-overflow: ellipsis; }
#account-status { max-width: 180px; color: #fda4af; }
.account-button { padding: 9px 18px; border-radius: 10px; background: linear-gradient(110deg, #22d3ee, #3b82f6); color: #020617; font-weight: 700; cursor: pointer; }
.account-button[hidden] { display: none; }
.account-button:disabled { opacity: .5; cursor: wait; }
.account-button:focus-visible { outline: 2px solid #67e8f9; outline-offset: 3px; }
.account-button.secondary { background: #1e293b; color: #e2e8f0; }
.login-dialog { margin: auto; width: min(420px, calc(100% - 32px)); padding: 28px; border: 1px solid #33576c; border-radius: 22px; background: #0d1326; color: #f8fafc; }
.login-dialog::backdrop { background: #020617cc; backdrop-filter: blur(6px); }
.login-dialog h2 { font-size: 23px; font-weight: 800; margin-bottom: 10px; }
.login-dialog p, .login-dialog small { color: #94a3b8; font-size: 12px; }
.login-dialog label { display: block; font-size: 13px; margin: 18px 0 7px; }
.login-dialog input { width: 100%; background: #060913; border: 1px solid #334155; border-radius: 10px; padding: 12px; color: #f8fafc; }
.login-dialog input:focus { outline: 2px solid #22d3ee; }
.login-dialog small { display: block; margin-top: 5px; }
#login-status { margin-top: 14px; color: #fda4af; }
.login-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px; }
.leaderboard-empty { grid-column: 1 / -1; color: #94a3b8; font-size: 12px; text-align: center; padding: 14px; }

/* Account menu and responsive profile podium. */
.account-menu-wrap { position: relative; }
.account-menu-wrap[hidden], .account-menu[hidden] { display: none; }
.menu-toggle { padding: 9px; }
.menu-toggle svg { width: 20px; height: 20px; }
.account-menu { position: absolute; right: 0; top: calc(100% + 10px); width: 150px; padding: 6px; border: 1px solid #33576c; border-radius: 12px; background: #0d1326; box-shadow: 0 12px 32px #0008; z-index: 50; }
.account-menu button { display: block; width: 100%; padding: 11px 12px; border-radius: 7px; text-align: left; color: #e2e8f0; }
.account-menu button:hover, .account-menu button:focus-visible { background: #1e293b; outline: 2px solid #22d3ee; }
#account-name { white-space: nowrap; }
#account-status:empty { display: none; }
.settings-dialog { max-height: calc(100dvh - 24px); overflow-y: auto; padding: 24px; }
.settings-dialog::backdrop { backdrop-filter: blur(9px); }
.settings-dialog h2 { font-size: 20px; }
.profile-photo-field { display: flex; align-items: center; gap: 12px; }
.profile-preview { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 2px solid #22d3ee; }
.profile-photo-field input { min-width: 0; font-size: 11px; padding: 8px; }
#settings-status { color: #fda4af; margin-top: 12px; }
.player-photo { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 1px solid #ffffff40; }
.podium-first { background: linear-gradient(180deg, #ef44442e, #0d1326f2); border: 1px solid #ef444480; box-shadow: 0 10px 35px -10px #ef44444d; }
.podium-second { background: linear-gradient(180deg, #f59e0b2e, #0d1326f2); border: 1px solid #f59e0b80; }
.podium-third { background: linear-gradient(180deg, #a855f72e, #0d1326f2); border: 1px solid #a855f780; }
.podium-first .leaderboard-rank { color: #fca5a5; background: #ef44441a; }
.podium-second .leaderboard-rank { color: #fcd34d; background: #f59e0b1a; }
.podium-third .leaderboard-rank { color: #d8b4fe; background: #a855f71a; }
@media (max-width: 767px) {
    .brand-icon { display: none; }
    header .brand-main { font-size: 15px; }
    header .brand-sub { font-size: 7px; letter-spacing: .13em; }
    #login-button { padding: 7px 12px; font-size: 11px; }
    .account-controls { gap: 7px; }
    #account-name { max-width: 95px; font-size: 11px; }
    #account-status { position: absolute; right: 12px; top: 100%; font-size: 10px; background: #0d1326; border-radius: 6px; }
    .menu-toggle { padding: 7px; }
    .menu-toggle svg { width: 18px; height: 18px; }
    .podium-first { order: 1; }
    .podium-second { order: 2; }
    .podium-third { order: 3; }
    .player-photo { width: 28px; height: 28px; }
    .leaderboard-rank { width: 27px; height: 27px; flex-shrink: 0; }
}

.gameplay-preview { position: absolute; inset: -5%; width: 110%; height: 110%; max-width: none; object-fit: cover; filter: blur(2px); opacity: .85; }
.gameplay-preview[hidden] { display: none; }
.gameplay-shade { position: absolute; inset: 0; background: linear-gradient(0deg, #02061788, #02061722); }
.catalog-game-icon { position: relative; z-index: 1; width: 80px; height: 80px; object-fit: contain; border-radius: 18px; filter: drop-shadow(0 6px 12px #0009); transition: transform .25s; }
.glass-card:hover .catalog-game-icon { transform: scale(1.08); }
.catalog-score { text-align: right; margin-left: 8px; }
.gameplay-preview[src*="/Tetris/"] { object-position: center bottom; }

/* Sliding banner: softer edges with free-standing rank numerals. */
.leaderboard-viewport { flex: 1; min-width: 0; overflow: hidden; touch-action: pan-y pinch-zoom; }
.leaderboard-content { width: 100%; }
.leaderboard-players { min-height: 62px; }
.leaderboard-player { border-radius: 4px; border: 0; box-shadow: none; background: linear-gradient(90deg, transparent, var(--podium-tint) 28%, var(--podium-tint) 72%, transparent); }
.podium-first { --podium-tint: #ef444426; }
.podium-second { --podium-tint: #f59e0b26; }
.podium-third { --podium-tint: #a855f726; }
.leaderboard-player .leaderboard-rank { width: auto; min-width: 30px; height: auto; padding: 0; border: 0; border-radius: 0; background: transparent; font-size: 23px; font-weight: 900; line-height: 1.2; }
@media (max-width: 767px) {
    .leaderboard-players { min-height: 142px; }
    .leaderboard-player .leaderboard-rank { min-width: 26px; font-size: 20px; }
}

/* Compact navbar and unboxed navigation controls. */
header .portal-navbar-inner { padding-top: 10px; padding-bottom: 10px; }
.brand-wordmark { display: inline-grid; grid-template-columns: max-content; align-items: start; }
header .brand-main { display: block; line-height: 1.3; }
header .brand-sub { display: block; width: 100%; height: 10px; margin: 0; letter-spacing: normal; overflow: visible; }
.account-controls .menu-toggle { background: transparent; color: #67e8f9; border: 0; border-radius: 0; box-shadow: none; }
.menu-toggle svg { stroke-width: 2.6; }
.leaderboard-arrow, .leaderboard-arrow:hover { border: 0; background: transparent; box-shadow: none; border-radius: 4px; }
.leaderboard-arrow svg { stroke-width: 3.5; width: 21px; height: 21px; }
.leaderboard-player .leaderboard-rank { display: inline-flex; align-items: baseline; gap: 1px; }
.leaderboard-rank .rank-hash { font-size: .6em; }
.glass-card.catalog-card { border-radius: 14px; }
@media (max-width: 767px) {
    header .portal-navbar-inner { padding-top: 8px; padding-bottom: 8px; }
    header .brand-sub { height: 8px; }
}
