/* © WatchJunk */
/* coded by nya & suzunay */

.container {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
            gap: 30px;
            width: 100%;
            margin: 97px auto;
            padding: 40px 20px;
            max-width: 1400px;
            justify-content: center;
        }

        .container>.card:only-child {
            max-width: 320px;
            justify-self: center;
        }

        .card {
            background: linear-gradient(135deg, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 0.95) 100%);
            border-radius: 20px;
            overflow: hidden;
            border: 1px solid rgba(59, 130, 246, 0.2);
            box-shadow: 
                0 8px 12px rgba(0, 0, 0, 0.4),
                0 0 0 1px rgba(59, 130, 246, 0.1) inset,
                0 0 14px rgba(59, 130, 246, 0.05);
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            max-width: 100%;
            display: flex;
            flex-direction: column;
            position: relative;
        }

        .card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 2px;
            background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.6), transparent);
            opacity: 0;
            transition: opacity 0.4s;
        }

        .card:hover {
            transform: translateY(-10px) scale(1.02);
            box-shadow: 
                0 20px 8px rgba(0, 0, 0, 0.5),
                0 0 0 1px rgba(59, 130, 246, 0.3) inset,
                0 0 8px rgba(59, 130, 246, 0.2);
            border-color: rgba(59, 130, 246, 0.4);
        }

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

        .card-image-container {
            width: 100%;
            height: 360px;
            overflow: hidden;
            background: linear-gradient(180deg, #141824 0%, #0b1120 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            font-size: 4rem;
            color: #7b7b95;
        }

        .content {
            padding: 24px;
            text-align: center;
            flex: 1;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            background: linear-gradient(180deg, transparent 0%, rgba(15, 23, 42, 0.5) 100%);
            position: relative;
        }

        .card h2 {
            font-size: 22px;
            margin-bottom: 20px;
            color: #fff;
            font-weight: 700;
            letter-spacing: 0.5px;
            text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
            transition: color 0.3s;
        }

        .card:hover h2 {
            color: #e0e7ff;
            text-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
        }

        .card .button-group {
            display: flex;
            flex-direction: column;
            gap: 10px;
            margin-top: auto;
        }

        .card .button-group .hj-btn,
        .card a.hj-btn {
            margin-top: 0;
            width: 100%;
            text-decoration: none;
        }

        .leaderboard-item {
            display: flex;
            align-items: center;
            padding: 12px 15px;
            margin-bottom: 8px;
            background: rgba(30, 41, 59, 0.5);
            border-radius: 8px;
            border: 1px solid rgba(59, 130, 246, 0.2);
            transition: all 0.3s ease;
        }

        .leaderboard-item:hover {
            background: rgba(30, 41, 59, 0.8);
            border-color: rgba(59, 130, 246, 0.4);
            transform: translateX(5px);
        }

        .leaderboard-position {
            font-size: 1.5rem;
            font-weight: 800;
            color: #60a5fa;
            min-width: 40px;
            text-align: center;
        }

        .leaderboard-position.top-1 {
            color: #fbbf24;
        }

        .leaderboard-position.top-2 {
            color: #94a3b8;
        }

        .leaderboard-position.top-3 {
            color: #cd7f32;
        }

        .leaderboard-info {
            flex: 1;
            margin-left: 15px;
        }

        .leaderboard-username {
            font-size: 1rem;
            font-weight: 600;
            color: #fff;
            margin-bottom: 4px;
        }

        .leaderboard-score {
            font-size: 0.9rem;
            color: #60a5fa;
            font-weight: 600;
        }

        .leaderboard-empty {
            text-align: center;
            padding: 40px 20px;
            color: #94a3b8;
            font-style: italic;
        }


        @media (max-width: 768px) {
            .container {
                grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
                gap: 20px;
                padding: 30px 15px;
            }

            .card-image-container {
                height: 300px;
                font-size: 3.5rem;
            }

            .content {
                padding: 20px;
            }

            .card h2 {
                font-size: 20px;
            }
        }

        @media (max-width: 480px) {
            .container {
                grid-template-columns: 1fr;
                max-width: 100%;
                padding: 20px 15px;
            }

            .card-image-container {
                height: 280px;
                font-size: 3rem;
            }

            .card h2 {
                font-size: 18px;
            }
        }

