﻿/* ===== Hero (الترحيب) في الصفحة الرئيسية فقط ===== */
.welcome-section {
    text-align: center;
    margin-top: 0px; /* بدل 50px */
    margin-bottom: 22px; /* خفّضناها شوية */
    animation: bounceIn 1s ease;
}

.main-title {
    font-size: 36px;
    color: #6a1b9a;
    font-weight: bold;
    margin: 0 0 8px; /* لا يوجد margin-top إضافي */
    font-family: 'Cairo', sans-serif;
}

.title-logo {
    height: 55px;
    width: auto;
    vertical-align: middle;
    margin-left: 8px;
}

.subtitle {
    font-size: 20px;
    color: #444;
    font-weight: 600;
    margin: 4px 0 0; /* شدّينا المسافة تحته */
    font-family: 'Cairo', sans-serif;
}

/* أنيميشن دخول لطيفة */
@keyframes bounceIn {
    0% {
        transform: scale(0.97);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* نفس عرض شبكة الكروت + توسيط كامل */
.notice-center {
    max-width: 1000px;
    margin: 16px auto;
    text-align: center;
    border-radius: 14px;
    padding: 10px 14px;
    box-shadow: 0 6px 16px rgba(0,0,0,.05);
}

/* =========================
   ✅ شبكة الكروت العامة
   ========================= */
.game-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    padding: 20px;
    max-width: 1000px;
    margin: auto;
}

/* كارت اللعبة */
.game-card {
    background-color: #fff9db;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
    cursor: pointer;
    border: 2px dashed #ff9800;
}

    .game-card:hover {
        background-color: #fff3bf;
        transform: translateY(-3px);
        box-shadow: 0 10px 22px rgba(0,0,0,.12);
    }

/* عناصر داخل الكارت */
.icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.label {
    font-size: 1.8rem;
    font-weight: bold;
    color: #4b5563;
    margin-bottom: 10px;
}

.description {
    font-size: 1rem;
    color: #666;
    margin-top: 5px;
}

/* =========================
   ✅ CTA ناعمة للزائر
   ========================= */
.soft-cta {
    max-width: 1000px;
    margin: 0 auto 18px;
    padding: 18px;
    border-radius: 18px;
    background: #ffe9e1;
    border: 2px solid #ffd3c7;
    box-shadow: 0 10px 18px rgba(0,0,0,.06);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.soft-cta__title {
    text-align: center;
    font-weight: 800;
    color: #6b3f3f;
    font-size: 18px;
    margin-bottom: 10px;
    letter-spacing: .2px;
}

.soft-cta__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 12px;
}

.chip {
    background: #fff7f3;
    color: #5b4545;
    padding: 8px 12px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 14.5px;
    border: 1px solid #ffe5db;
    box-shadow: inset 0 1px 3px rgba(0,0,0,.04);
}

.soft-cta__btn {
    display: inline-block;
    background: linear-gradient(90deg,#ff8b6d,#ff6b6b);
    color: #fff;
    font-weight: 800;
    padding: 10px 22px;
    border-radius: 12px;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease;
    box-shadow: 0 4px 10px rgba(255,107,107,.25);
}

    .soft-cta__btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 18px rgba(255,107,107,.28);
    }

/* =========================
   ✅ بطاقتان واضحتان بعد الدخول
   ========================= */
.duo-grid {
    max-width: 1000px;
    margin: 0 auto 28px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
    padding: 0 10px;
}

.feature-card {
    background: #fff9db;
    border: 2px dashed #ffb84d;
    border-radius: 20px;
    box-shadow: 0 6px 16px rgba(0,0,0,.06);
    padding: 26px 22px;
    text-align: center;
    transition: transform .2s ease, box-shadow .2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

    .feature-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 22px rgba(0,0,0,.08);
    }

.feature-emoji {
    font-size: 60px;
    line-height: 1;
    margin-bottom: 6px;
}

.feature-title {
    margin: 8px 0 6px;
    font-size: 26px;
    font-weight: 800;
    color: #333;
}

.feature-sub {
    margin: 0 0 12px;
    color: #5b5b5b;
    font-weight: 700;
}

.feature-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin: 8px 0 14px;
}

.pill {
    background: #fff;
    color: #444;
    border: 1px solid #ffe1a3;
    border-radius: 999px;
    padding: 6px 10px;
    font-weight: 800;
    font-size: 14px;
    box-shadow: inset 0 1px 2px rgba(0,0,0,.04);
}

.feature-btn {
    margin-top: auto;
    display: inline-block;
    background: linear-gradient(90deg,#ff8b6d,#ff6b6b);
    color: #fff;
    font-weight: 800;
    padding: 10px 22px;
    border-radius: 12px;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(255,107,107,.25);
    transition: transform .2s ease, box-shadow .2s ease;
}

    .feature-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 12px rgba(255,107,107,.28);
    }

/* =========================
   ✅ إرشادات سريعة (Strip/Rail)
   ========================= */
.tips-bar {
    max-width: 1000px;
    margin: 0 auto 18px;
    padding: 14px;
    background: #fff7ef;
    border: 2px solid #ffd9c8;
    border-radius: 16px;
    box-shadow: 0 8px 16px rgba(0,0,0,.05);
}

.tips-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.tips-title {
    font-weight: 800;
    color: #6b3f3f;
    font-size: 16px;
}

.tips-tabs {
    display: flex;
    gap: 6px;
    margin-inline-start: auto;
}

.tips-tab {
    background: #fff;
    border: 1px solid #ffe1a3;
    border-radius: 999px;
    padding: 6px 10px;
    font-weight: 800;
    cursor: pointer;
}

    .tips-tab.is-active {
        background: #ffefc8;
        border-color: #ffcf62;
    }

.tips-close {
    background: transparent;
    border: 0;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    color: #c66;
    padding: 4px 8px;
}

.tips-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tips-chip {
    background: #fff;
    border: 1px solid #ffe1a3;
    border-radius: 999px;
    padding: 6px 10px;
    font-weight: 800;
    text-decoration: none;
    color: #333;
    box-shadow: inset 0 1px 2px rgba(0,0,0,.04);
}

    .tips-chip:hover {
        background: #fffbe6;
    }

.tips-muted {
    color: #6b5a5a;
    cursor: default;
}

/* زر إعادة الإظهار (موحّد RTL/LTR) */
.tips-reopen {
    position: fixed;
    bottom: 18px;
    inset-inline-end: 18px;
    z-index: 1000;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 0;
    cursor: pointer;
    background: #6a1b9a;
    color: #fff;
    font-weight: 900;
    box-shadow: 0 6px 16px rgba(0,0,0,.2);
}

/* ===== Rail (Stepper) ===== */
.tips-rail {
    max-width: 1000px;
    margin: 0 auto 20px;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid rgba(255,170,120,.55);
    background: linear-gradient(180deg,#fffaf5 0%, #fff 100%);
    box-shadow: 0 12px 28px rgba(0,0,0,.06), inset 0 1px 0 #fff4ea;
    backdrop-filter: saturate(120%) blur(2px);
}

.tips-rail__head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.tips-rail__title {
    font-weight: 900;
    color: #5b3b3b;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tips-rail__lamp {
    font-size: 20px;
}

.tips-rail__close {
    margin-inline-start: auto;
    background: #fff;
    border: 0;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,.08);
    cursor: pointer;
    color: #c55;
}

.tips-rail__content {
    padding: 8px 4px 0;
}

/* Segmented tabs */
.segmented {
    display: flex;
    padding: 4px;
    background: #fff;
    border: 1px solid #ffe1c7;
    border-radius: 999px;
    gap: 4px;
}

.segmented__btn {
    border: 0;
    background: transparent;
    padding: 6px 12px;
    border-radius: 999px;
    font-weight: 800;
    color: #6a5c5c;
    cursor: pointer;
}

    .segmented__btn.is-active {
        background: #ffecd6;
        color: #3d2a2a;
        box-shadow: inset 0 1px 2px rgba(0,0,0,.05);
    }

.segmented--tiny {
    padding: 2px;
}

    .segmented--tiny .segmented__btn {
        padding: 4px 8px;
        font-weight: 800;
    }

/* Rail timeline */
.rail {
    list-style: none;
    margin: 0;
    padding: 10px 4px;
    display: grid;
    gap: 10px;
}

.rail__item {
    display: grid;
    grid-template-columns: 40px 1fr 28px;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border: 1px solid #ffe1c7;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,.04);
    position: relative;
}

    .rail__item::before {
        content: "";
        position: absolute;
        right: 28px;
        top: -10px;
        bottom: -10px;
        width: 2px;
        background: linear-gradient(#ffe1c7,#ffd2b1);
        z-index: 0;
        opacity: .6;
    }

    .rail__item:last-child::before {
        display: none;
    }

[dir="ltr"] .rail__item::before {
    left: 28px;
    right: auto;
}

.rail__dot {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #6a1b9a;
    color: #fff;
    font-weight: 900;
    display: grid;
    place-items: center;
    box-shadow: 0 4px 10px rgba(106,27,154,.25);
}

.rail__body {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    align-items: center;
}

.rail__title {
    font-weight: 900;
    color: #2f2f2f;
}

.rail__desc {
    color: #7a6b6b;
    font-weight: 700;
    font-size: .95rem;
    line-height: 1.7;
}

.rail__cta {
    margin-inline-start: auto;
    background: linear-gradient(90deg,#ff8b6d,#ff6b6b);
    color: #fff;
    padding: 8px 14px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 800;
    box-shadow: 0 3px 10px rgba(255,107,107,.25);
}

.rail__ok {
    color: #12b886;
    font-weight: 900;
    font-size: 18px;
}

.tips-rail__foot {
    margin-top: 6px;
    padding-top: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-top: 1px dashed #ffd9c8;
}

.remember {
    font-weight: 800;
    color: #6b5a5a;
    display: flex;
    align-items: center;
    gap: 8px;
}

.shortcuts {
    margin-inline-start: auto;
    display: flex;
    gap: 6px;
}

.shortcut {
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 10px;
    background: #fff;
    color: #444;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,.08);
}

/* =========================
   ✅ شريط مُصغّر (Strip)
   ========================= */
.tips-strip {
    max-width: 1000px;
    margin: 0 auto 14px;
    padding: 10px 12px;
    background: #fff;
    border: 1px solid #ffe1c7;
    border-radius: 14px;
    box-shadow: 0 8px 16px rgba(0,0,0,.04), inset 0 1px 0 #fff7ef;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tips-strip__left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tips-strip__lamp {
    font-size: 18px;
}

.tips-strip__title {
    font-weight: 900;
    color: #5b3b3b;
}

.tips-strip__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-inline-start: 8px;
}

.tips-pill {
    background: #fff;
    border: 1px solid #ffe1c7;
    border-radius: 999px;
    padding: 6px 10px;
    font-weight: 800;
    text-decoration: none;
    color: #333;
}

    .tips-pill:hover {
        background: #fff8ec;
    }

.tips-strip__right {
    margin-inline-start: auto;
    display: flex;
    align-items: center;
    gap: 6px;
}

.tips-strip__toggle {
    border: 0;
    background: #6a1b9a;
    color: #fff;
    border-radius: 10px;
    padding: 6px 10px;
    font-weight: 800;
    box-shadow: 0 2px 6px rgba(106,27,154,.25);
    cursor: pointer;
}

.tips-strip__close {
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 10px;
    cursor: pointer;
    background: #fff;
    color: #c55;
    box-shadow: 0 2px 6px rgba(0,0,0,.08);
}

/* Backdrop + container */
.lpw-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15,15,20,.45);
    z-index: 1100;
    backdrop-filter: blur(3px);
}

.lpw-modal {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    z-index: 1110;
}

/* ===== Unified Card ===== */
.lpw-dialog {
    width: min(560px,92vw);
    background: #fff;
    border: 1px solid #eee;
    box-shadow: 0 12px 30px rgba(17,24,39,.10), 0 3px 6px rgba(17,24,39,.06);
    border-radius: 18px;
    overflow: hidden;
    animation: lpwPop .18s ease-out both;
    transform-origin: center;
}

/* Header + Body (single card, no gap) */
.lpw-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-bottom: 1px solid #f2f2f2;
    background: #fff;
}

.lpw-title {
    font-weight: 900;
    color: #3a2f2f;
    font-size: 18px;
}

.lpw-x {
    margin-inline-start: auto;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 0;
    background: #f7f7f7;
    cursor: pointer;
    transition: transform .15s ease, background .15s ease;
}

    .lpw-x:hover {
        transform: scale(1.03);
        background: #f0f0f0;
    }

.lpw-body {
    padding: 16px;
    background: #fff;
}

/* Content bits */
.lpw-lead {
    margin: 0 0 8px;
    color: #553;
    font-weight: 800;
    line-height: 1.7;
}

.lpw-points {
    margin: 0 0 12px;
    padding: 0 18px;
    color: #665;
    font-weight: 700;
    line-height: 1.7;
}

.lpw-cta {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin: 12px 0;
}

.lpw-btn {
    display: inline-block;
    padding: 10px 16px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 800;
    transition: transform .15s, box-shadow .15s;
}

.lpw-primary {
    background: linear-gradient(90deg,#6a1b9a,#7c3aed);
    color: #fff;
    box-shadow: 0 8px 18px rgba(124,58,237,.22);
}

    .lpw-primary:hover {
        transform: translateY(-1px);
        box-shadow: 0 12px 24px rgba(124,58,237,.24);
    }

.lpw-ghost {
    background: #fff;
    color: #5b3b3b;
    border: 1px solid #e8d0c2;
}

    .lpw-ghost:hover {
        background: #fff8f3;
    }

.lpw-remember {
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
    color: #6b5a5a;
    font-weight: 800;
}

.lpw-chip {
    border: 1px solid #ffe1c7;
    background: #fff;
    border-radius: 999px;
    padding: 6px 10px;
    cursor: pointer;
    font-weight: 800;
    transition: background-color .15s;
}

    .lpw-chip:hover {
        background: #fff7ef;
    }

/* Focus ring */
.lpw-dialog :is(.lpw-btn,.lpw-chip,.lpw-x):focus-visible {
    outline: 3px solid rgba(99,102,241,.5);
    outline-offset: 2px;
    border-radius: 12px;
}


/* ===== Welcome modal – polish & unify font ===== */

/* خلّي كل محتوى المودال يورّث Cairo بوضوح */
.lpw-dialog, .lpw-dialog * {
    font-family: 'Cairo', sans-serif;
}

/* كارد أكبر هواء ولمسات أنعم */
.lpw-dialog {
    width: min(520px, 92vw); /* أضيق شوية فتظهر القراءة أريح */
    border-radius: 24px;
    box-shadow: 0 18px 44px rgba(17,24,39,.14);
}

/* رأس المودال أبسط */
.lpw-head {
    padding: 18px 20px;
    border-bottom: 1px solid #f1f1f1;
}

.lpw-title {
    font-size: 19px;
    font-weight: 900;
}

/* جسم المودال: مسافات رأسية مضبوطة */
.lpw-body {
    padding: 20px;
}

    /* أي عنصر داخل الجسم يتبعه مسافة علوية صغيرة */
    .lpw-body > * + * {
        margin-top: 14px;
    }

/* فقرة المقدّمة أخف لوناً وأكبر line-height */
.lpw-lead {
    color: #5b5454;
    font-weight: 800;
    line-height: 1.9;
    margin: 0;
}

/* قائمة النقاط: مسافات أوسع وبحجم مريح */
.lpw-points {
    list-style: none;
    padding: 0 0 0 0;
    margin: 6px 0 0;
}

    .lpw-points li {
        background: #faf7ff;
        border: 1px solid #efe8ff;
        border-radius: 12px;
        padding: 10px 12px;
        margin-top: 8px;
        font-weight: 700;
        color: #4b3f53;
    }

/* أزرار الدعوة للعمل بنفس الخط والوزن */
.lpw-btn {
    font-family: 'Cairo', sans-serif; /* ← توحيد الخط */
    font-weight: 800;
    padding: 12px 18px;
    border-radius: 14px;
}

/* الزر الأساسي أوضح لكن مش فاقع */
.lpw-primary {
    background: linear-gradient(90deg,#6a1b9a,#7c3aed);
    box-shadow: 0 10px 22px rgba(124,58,237,.22);
}

    .lpw-primary:hover {
        transform: translateY(-1px);
    }

/* الزر الشبح أنظف */
.lpw-ghost {
    border-color: #eadfe0;
    color: #5b3b3b;
}

/* صف الأزرار: صف واحد ومسافة كفاية */
.lpw-cta {
    gap: 10px;
    margin: 14px 0 6px;
}

/* شريط "عدم الإظهار" أصغر وأهدأ */
.lpw-remember {
    gap: 6px;
    color: #7a7070;
    font-weight: 800;
    font-size: .95rem;
}

.lpw-chip {
    padding: 6px 12px;
}

/* زر الإغلاق صغير وخفيف */
.lpw-x {
    width: 32px;
    height: 32px;
    border-radius: 12px;
}

/* ===== PDF Library Banner ===== */
.pdf-banner {
    max-width: 1000px;
    margin: 16px auto;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    background: linear-gradient(90deg,#f7f3ff 0%, #fff 100%);
    border: 1px solid #eadfff;
    border-radius: 18px;
    box-shadow: 0 10px 24px rgba(0,0,0,.06), inset 0 1px 0 #fff;
    transition: transform .15s ease, box-shadow .15s ease;
}

    .pdf-banner:hover {
        transform: translateY(-2px);
        box-shadow: 0 16px 30px rgba(0,0,0,.08)
    }

.pdf-banner__badge {
    background: #6a1b9a;
    color: #fff;
    font-weight: 900;
    border-radius: 999px;
    padding: 6px 10px;
    box-shadow: 0 4px 10px rgba(106,27,154,.25);
    white-space: nowrap
}

.pdf-banner__icon {
    font-size: 34px;
    line-height: 1
}

.pdf-banner__text {
    display: flex;
    flex-direction: column;
    gap: 2px
}

.pdf-banner__title {
    font-weight: 900;
    color: #3a2f2f;
    font-size: 18px
}

.pdf-banner__sub {
    color: #655b7a;
    font-weight: 700
}

.pdf-banner__cta {
    margin-inline-start: auto;
    background: #fff;
    border: 1px solid #eadfff;
    border-radius: 12px;
    padding: 8px 12px;
    font-weight: 900;
    color: #4b3f7a
}

    .pdf-banner__cta:hover {
        background: #f4f0ff
    }

.soft-cta__btn--ghost {
    background: #fff;
    color: #6b3f3f;
    border: 2px solid #ffd3c7;
    box-shadow: none;
}

    .soft-cta__btn--ghost:hover {
        transform: translateY(-2px);
        background: #fffaf7
    }

/* ===== زر شرح واضح داخل شريط التنبيه ===== */
.notice-center .inline-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-inline-start: 10px;
    padding: 6px 12px;
    border-radius: 12px;
    background: #eef2ff;
    border: 1px solid #c7d2fe;
    color: #1e3a8a;
    font-weight: 900;
    text-decoration: none;
    box-shadow: 0 6px 14px rgba(37,99,235,.18);
    transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}

    .notice-center .inline-cta::after {
        content: "→";
        font-weight: 900;
        margin-inline-start: 4px;
    }

    .notice-center .inline-cta:hover {
        background: #e0e7ff;
        transform: translateY(-1px);
        box-shadow: 0 10px 20px rgba(37,99,235,.22);
    }

    .notice-center .inline-cta:focus-visible {
        outline: 3px solid rgba(99,102,241,.45);
        outline-offset: 2px;
    }

    /* نقطة نابضة للانتباه */
    .notice-center .inline-cta .dot {
        width: 8px;
        height: 8px;
        border-radius: 999px;
        background: #22c55e;
        position: relative;
    }

        .notice-center .inline-cta .dot::after {
            content: "";
            position: absolute;
            inset: -4px;
            border-radius: 999px;
            border: 2px solid #22c55e;
            animation: pulseDot 1.4s ease-out infinite;
        }

/* ===== Unified Page Loader (Index) ===== */
.page-loading {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, .72);
    backdrop-filter: blur(3px);
}

/* Card that holds spinner + text */
.loader-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 16px;
    box-shadow: 0 12px 26px rgba(17, 24, 39, .12);
}

/* Spinner */
.loader {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 3px solid #e9d5ff; /* فاتح */
    border-top-color: #6a1b9a; /* الأساسي بتاعك */
    animation: lp-spin .8s linear infinite;
}

/* Loading text */
.loading-text {
    margin: 0;
    font-weight: 800;
    color: #5b3b7a;
    font-family: 'Cairo', sans-serif;
    letter-spacing: .2px;
}

/* Animations */
@keyframes lp-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    .loader {
        animation: none;
        border-top-color: #6a1b9a;
    }
}



@keyframes pulseDot {
    0% {
        transform: scale(.6);
        opacity: .8
    }

    70% {
        transform: scale(1.6);
        opacity: 0
    }

    100% {
        transform: scale(.6);
        opacity: .8
    }
}

@media (max-width:600px) {
    .notice-center .inline-cta {
        display: inline-flex;
        padding: 6px 10px
    }
}

@media (max-width:600px) {
    .pdf-banner {
        flex-wrap: wrap;
        gap: 10px;
        text-align: center;
        justify-content: center
    }

    .pdf-banner__cta {
        margin-inline-start: 0;
        width: 100%
    }
}


/* Animation */
@keyframes lpwPop {
    from {
        transform: translateY(8px) scale(.98);
        opacity: 0;
    }

    to {
        transform: none;
        opacity: 1;
    }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
    .welcome-section {
        animation: none
    }

    .lpw-modal .lpw-dialog {
        animation: none
    }
}


/* Mobile tweaks (keep only once) */
@media (max-width:520px) {
    .lpw-body {
        padding: 18px
    }

    .lpw-title {
        font-size: 16px
    }

    .lpw-points {
        font-size: .95rem
    }
}

/* موبايل: شد المسافات أكثر */
@media (max-width: 768px) {
    .welcome-section {
        margin-top: 16px;
        margin-bottom: 16px;
    }

    .main-title {
        font-size: 28px;
        margin-bottom: 6px;
    }

    .subtitle {
        font-size: 18px;
        margin-top: 2px;
    }
}


.game-options-grid.cards--senior .icon {
    font-size: 2.4rem;
    opacity: .9
}

.game-options-grid.cards--senior .label {
    font-size: 1.4rem;
    letter-spacing: .1px
}

.game-options-grid.cards--senior .description {
    font-size: .95rem;
    color: #555
}

.game-options-grid.cards--early .icon {
    font-size: 4rem
}

.game-options-grid.cards--early .description {
    line-height: 1.7
}



/* =========================
   ✅ استجابات الموبايل
   ========================= */
@media (max-width:768px) {
    .tips-strip {
        flex-wrap: wrap;
    }

    .tips-strip__actions {
        width: 100%;
        order: 3;
        justify-content: flex-start;
    }

    .tips-strip__right {
        order: 2;
        margin-inline-start: 0;
    }

    .rail__item {
        grid-template-columns: 32px 1fr 24px;
    }

    .rail__cta {
        width: 100%;
        margin-inline-start: 0;
        text-align: center;
    }

    .tips-head {
        flex-wrap: wrap;
    }

    .tips-tabs {
        margin-inline-start: 0;
    }

    .feature-emoji {
        font-size: 52px;
    }

    .feature-title {
        font-size: 22px;
    }

    .main-title {
        font-size: 26px;
    }

    .subtitle {
        font-size: 18px;
    }

    .icon {
        font-size: 3rem;
    }

    .label {
        font-size: 1.3rem;
    }

    .description {
        font-size: .9rem;
    }

    .chip {
        font-size: 13.5px;
    }

    
}

/* ==== كرت "قريبًا" ==== */
.game-card.soon {
    position: relative;
    pointer-events: none; /* تعطيل النقر */
    opacity: .85;
    filter: grayscale(8%) saturate(.9);
}

    .game-card.soon .icon {
        opacity: .9;
    }

    .game-card.soon .description {
        color: #555;
    }

/* شارة "قريبًا" أعلى الكرت */
.soon-badge {
    position: absolute;
    top: 10px;
    inset-inline-start: 10px; /* RTL/LTR آمن */
    background: #6a1b9a;
    color: #fff;
    font-weight: 900;
    font-size: .85rem;
    padding: 4px 10px;
    border-radius: 999px;
    box-shadow: 0 6px 14px rgba(106,27,154,.25);
}
