/* ==========================================================================
   1. الهيدر والشعار (Brand Header)
   ========================================================================== */
.menu-header {
    text-align: center;
    padding: 40px 20px 20px 20px;
    flex-shrink: 0; /* يمنع الهيدر من الانضغاط في الشاشات الصغيرة */
    animation: headerFadeIn 0.8s ease-out;
}

@keyframes headerFadeIn {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.brand-title {
    font-family: var(--font-display);
    font-size: 42px;
    font-weight: 900;
    letter-spacing: 2px;
    color: var(--color-text-main);
    margin-bottom: 8px;
    text-shadow: 0 0 30px rgba(222, 255, 154, 0.3);
    animation: titleGlow 3s ease-in-out infinite;
}

@keyframes titleGlow {
    0%, 100% {
        text-shadow: 0 0 30px rgba(222, 255, 154, 0.3);
    }
    50% {
        text-shadow: 0 0 50px rgba(222, 255, 154, 0.5);
    }
}

.brand-title .highlight {
    color: var(--color-accent);
    text-shadow: 0 0 20px rgba(222, 255, 154, 0.5);
}

.brand-subtitle {
    font-size: 14px;
    color: var(--color-text-muted);
    font-weight: 500;
}

/* ==========================================================================
   2. حاوية وأزرار الألعاب الرئيسية (Menu Buttons)
   ========================================================================== */
.menu-buttons-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    max-width: 420px;
    margin: auto; /* لتوسيط الأزرار عمودياً وأفقياً في المساحة المتبقية */
    padding: 0 24px;
    justify-content: center;
    flex-grow: 1;
}

/* الستايل الهندسي للأزرار لتبدو كعناصر أندرويد أصلية (Native-like) */
.game-btn {
    display: flex;
    align-items: center;
    width: 100%;
    background-color: var(--bg-card);
    border: 1px solid rgba(250, 250, 250, 0.05);
    border-radius: 20px;
    padding: 18px 20px;
    cursor: pointer;
    text-align: right;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    animation: buttonSlideIn 0.6s ease-out backwards;
}

.game-btn:nth-child(1) { animation-delay: 0.1s; }
.game-btn:nth-child(2) { animation-delay: 0.2s; }
.game-btn:nth-child(3) { animation-delay: 0.3s; }

@keyframes buttonSlideIn {
    0% {
        opacity: 0;
        transform: translateX(-30px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* تأثير النقر (Feedback) المناسب للشاشات اللمسية */
.game-btn:hover {
    border-color: rgba(222, 255, 154, 0.3);
    box-shadow: 0 0 20px rgba(222, 255, 154, 0.1);
}

.game-btn:active {
    transform: scale(0.97);
    border-color: var(--color-accent);
    background-color: var(--bg-button);
    box-shadow: 0 0 30px rgba(222, 255, 154, 0.2);
}

.btn-icon {
    font-size: 32px;
    margin-left: 18px;
    flex-shrink: 0;
    filter: drop-shadow(0 0 10px rgba(222, 255, 154, 0.2));
    transition: transform 0.3s ease;
}

.game-btn:hover .btn-icon {
    transform: scale(1.1);
}

.btn-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.game-title {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    color: var(--color-text-main);
    transition: color 0.3s ease;
}

.game-btn:hover .game-title {
    color: var(--color-accent);
}

.game-desc {
    font-size: 12px;
    color: var(--color-text-muted);
    font-weight: 500;
}

/* ==========================================================================
   3. التذييل والروابط القانونية (Footer)
   ========================================================================== */
.menu-footer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 20px;
    font-size: 13px;
    flex-shrink: 0;
    animation: footerFadeIn 1s ease-out 0.5s backwards;
}

.footer-links-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

/* رابط الهوية الرسمية (تطوير بواسطة YNdot.com) */
.footer-brand-link {
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--color-text-muted);
    text-decoration: none;
    padding: 4px 10px;
    border-radius: 10px;
    transition: all 0.25s ease;
}

.footer-brand-link:hover,
.footer-brand-link:active {
    color: var(--color-accent);
    text-shadow: 0 0 12px rgba(222, 255, 154, 0.5);
}

@keyframes footerFadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.footer-link {
    background: none;
    border: none;
    color: var(--color-text-muted);
    font-family: var(--font-body);
    font-size: 13px;
    cursor: pointer;
    transition: color 0.2s ease;
    padding: 6px;
}

.footer-link:hover {
    color: var(--color-accent);
    text-shadow: 0 0 10px rgba(222, 255, 154, 0.3);
}

.footer-link:active {
    color: var(--color-accent);
    transform: scale(0.95);
}

.footer-separator {
    color: rgba(250, 250, 250, 0.1);
}

/* ==========================================================================
   4. شاشات الامتثال والقوانين (Compliance Cards Specifics)
   ========================================================================== */
.contact-box {
    background-color: var(--bg-button);
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 12px;
    border: 1px solid rgba(250, 250, 250, 0.03);
}

.contact-label {
    display: block;
    font-size: 12px;
    color: var(--color-text-muted);
    margin-bottom: 4px;
}

.contact-value {
    font-family: var(--font-display);
    font-size: 15px;
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
}

.contact-value:hover {
    text-shadow: 0 0 15px rgba(222, 255, 154, 0.5);
    transform: scale(1.05);
}

/* تذييل الدعم السريع عبر الويب في شاشة الاتصال */
.contact-web-footer {
    font-size: 13px;
    color: var(--color-text-muted);
    text-align: center;
    line-height: 1.7;
    margin: 8px 0 18px;
}

.contact-web-footer a {
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 700;
    transition: text-shadow 0.25s ease;
}

.contact-web-footer a:hover,
.contact-web-footer a:active {
    text-shadow: 0 0 12px rgba(222, 255, 154, 0.5);
}