	@font-face{
	font-family:KalamehRegular;
	font-style:normal;
	font-weight:400;
	src:url('KalamehRegular.ttf') format('truetype');
    }
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: KalamehRegular;
            background: linear-gradient(145deg, #f0f7ff 0%, #e9eef5 100%);
            color: #1e2a3e;
            line-height: 1.5;
            min-height: 100vh;
        }

        .app-container {
            max-width: 1280px;
            margin: 0 auto;
            padding: 0 1.5rem 2rem;
        }

        /* ----- NAVBAR ----- */
        .navbar {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 1rem 0;
            border-bottom: 2px solid rgba(59, 130, 246, 0.2);
            flex-wrap: wrap;
            gap: 1rem;
        }

        /* لوگو */
        .logo-area {
            display: flex;
            align-items: center;
        }
        .logo-icon {
            font-size: 1.8rem;
            color: #3b82f6;
        }
        .logo-text {
            font-weight: 800;
            font-size: 1.4rem;
            background: linear-gradient(135deg, #3b82f6, #8b5cf6);
            background-clip: text;
            -webkit-background-clip: text;
            color: transparent;
        }

        /* منوی دسکتاپ */
        .desktop-menu {
            display: flex;
            gap: 2rem;
            background: rgba(255,255,255,0.7);
            backdrop-filter: blur(4px);
            padding: 0.5rem 1.5rem;
            border-radius: 60px;
        }
        .desktop-menu a {
            text-decoration: none;
            font-weight: 600;
            color: #1f2937;
            transition: 0.2s;
            font-size: 1rem;
        }
        .desktop-menu a:hover {
            color: #3b82f6;
        }

        /* دکمه حساب کاربری */
        .user-btn {
            background: white;
            border: none;
            padding: 0.5rem 1.2rem;
            border-radius: 40px;
            font-family: KalamehRegular;
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 8px;
            cursor: pointer;
            box-shadow: 0 2px 6px rgba(0,0,0,0.05);
            transition: 0.2s;
            font-size: 0.9rem;
        }
        .user-btn i {
            font-size: 1.1rem;
            color: #3b82f6;
        }
        .user-btn:hover {
            background: #eef2ff;
        }

        /* ----- استایل موبایل (فقط ظاهر، منو و جاوااسکریپت محدود) ----- */
        .mobile-header {
            display: none;
            align-items: center;
            justify-content: flex-end;
            width: 100%;
        }
        .menu-toggle {
                border: none;padding-right: 5px;
    font-size: 1.8rem;
    cursor: pointer;
    width: 48px;
    color: #1e293b;
    background: transparent;
        }
        /* منوی موبایل از راست */
        .mobile-nav-overlay {
            position: fixed;
            top: 0;
            right: -100%;
            width: 75%;
            max-width: 300px;
            height: 100%;
            background: white;
            box-shadow: -5px 0 20px rgba(0,0,0,0.2);
            z-index: 1000;
            padding: 2rem 1.5rem;
            transition: right 0.3s ease-in-out;
            display: flex;
            flex-direction: column;
            gap: 1.5rem;
        }
        .mobile-nav-overlay.open {
            right: 0;
        }
        .close-mobile-menu {
            background: #f1f5f9;
            border: none;
            font-size: 1.2rem;
            padding: 5px 10px;
            border-radius: 30px;
            position: absolute;
            left: 1em;
            top: 1em;
        }
        .mobile-nav-overlay a {
            text-decoration: none;
            font-size: 1.2rem;
            font-weight: 600;
            color: #1e293b;
            padding: 0.6rem 0;
            border-bottom: 1px solid #e2e8f0;
        }
        .overlay-backdrop {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.4);
            z-index: 999;
            visibility: hidden;
            opacity: 0;
            transition: 0.2s;
        }
        .overlay-backdrop.active {
            visibility: visible;
            opacity: 1;
        }

        /* زیر منو تیتر و توضیح */
        .hero-section {
            margin: 2rem 0 1.5rem;
        }
        .hero-section h1 {
            font-size: 1.2rem;
            font-weight: 800;
            color: #ef6e40;
            display: inline-block;
        }
        .hero-section p {
            color: #334155;
            max-width: 600px;
            margin-top: 0.5rem;
        }

        /* شبکه دوتایی دکمه‌ها (برترین‌ها و ویرایش حساب کاربری) */
        .double-btn-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 1rem;
            margin: 1.5rem 0;
        }
        .action-card {
            background: linear-gradient(135deg, #ff7a00, #e7b707);
    border-radius: 20px;
    padding: 5px;
    text-align: center;
    transition: all 0.2s;
    box-shadow: 0 6px 12px -8px rgb(2 2 2 / 50%);
        }
        .action-card i {
            margin-left: 8px;
            font-size: 1.2rem;
            color: #3b82f6;
        }

        /* باکس رتبه بندی کلی */
        .rank-card {
            background: linear-gradient(115deg, #ffffff, #f8fafc);
            border-radius: 20px;
            padding: 10px;
            margin: 1rem 0 2rem;
            border: 1px solid rgba(59,130,246,0.2);
        }
        .rank-header {
            display: flex;
			justify-content: space-between;
            align-items: center;
            gap: 0.2rem;
            border-bottom: 2px dashed #cbd5e1;
            padding-bottom: 0.8rem;
            margin-bottom: 1.2rem;
        }
        .rank-header i {
            font-size: 2rem;
            color: #fbbf24;
        }
        .rank-header h3 {
            font-size: 1.5rem;
            font-weight: 700;
        }
        .user-rank-info {
            display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    background: #f1f5f9;
    padding: 10px;
    border-radius: 20px;margin-bottom: 5px;
        }
        .user-name {
            font-size: 14px;
            display: flex;
            align-items: center;
        }
        .user-score {
            background: linear-gradient(135deg, #f9b43a, #fb8c00);
            padding: 0.3rem 1rem;
            border-radius: 20px;
            color: white;
            font-size: 14px;
        }

        /* شبکه دوتایی بازی‌ها (4 نمونه) */
        .games-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 1.5rem;
            margin-top: 1rem;
            margin-bottom: 2rem;
        }
        .game-card {
            background: rgba(255, 255, 255, 0.95);
            border-radius: 15px;
            padding: 5px;
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
            transition: all 0.3s ease;
            text-align: center;
            border: 1px solid #eee;
            position: relative;
            overflow: hidden;
        }

        .game-card:hover {
            box-shadow: 0 0 10px rgb(0 0 0 / 25%);
        }

        .game-title {
            font-size: 1rem;
            margin-bottom: 5px;
            color: #2c3e50;
            font-weight: bold;
        }

        .best-score {
            text-align: center;
            margin-top: 8px;
            font-weight: bold;
            color: #2c3e50;
            font-size: 14px;
            background: rgba(52, 152, 219, 0.1);
            padding: 5px 10px;
            border-radius: 10px;
            display: inline-block;
            width: 100%;
        }

        .best-score-value {
            color: #3498db;
            font-weight: bold;
        }

        .game-buttons {
            display: flex;
            justify-content: center;
            gap: 15px;
            margin-top: 10px;
        }

        .btn {
            padding: 8px 20px;
            border: none;
            border-radius: 50px;
            font-size: 1rem;
            transition: all 0.3s ease;
            font-family: KalamehRegular;
        }

        .btn-play {
            background: #27ae60;
            color: white;
            animation: pulse 2s infinite;
        }
 @keyframes pulse {
        0% { box-shadow: 0 0 0 0 rgba(72, 187, 120, 0.7); }
        70% { box-shadow: 0 0 0 10px rgba(72, 187, 120, 0); }
        100% { box-shadow: 0 0 0 0 rgba(72, 187, 120, 0); }
    }
       
        .btn:hover {
            opacity: 0.9;
            transform: scale(1.05);
        }


        .footer-note {
            text-align: center;
            margin-top: 3rem;
            font-size: 0.75rem;
            color: #5b6e8c;
        }

        /* ----- RESPONSIVE (موبایل) ----- */
        @media (max-width: 768px) {
            .desktop-menu {
                display: none ;
            }
            .navbar {
                flex-direction: row;
                flex-wrap: nowrap;
            }
            .mobile-header {
                display: flex;
                width: 100%;
            }
            .desktop-user-area {
                display: none !important;
            }
            /* در موبایل: دکمه حساب کاربری سمت چپ، لوگو سمت راست */
            .mobile-header .user-btn-mobile {
                margin-left: 0;
            }
            .logo-area {
                margin-right: auto; /* لوگو به راست میرود */
                margin-left: 0;
            }
            .app-container {
                padding: 0 1rem 1.5rem;
            }
            .hero-section h1 {
                font-size: 1.7rem;
            }
            .games-grid {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        @media (min-width: 769px) {
            .mobile-header, .menu-toggle, .mobile-nav-overlay, .overlay-backdrop {
                display: none;
            }
            .desktop-user-area {
                display: block;
            }
            .desktop-menu {
                display: flex;
            }
        }







