/**
 * aq-points-dialog.css — نافذة زر "ابدأ تحدي كسب النقاط" (الرئيسية فقط)
 * مستقل تمامًا عن أنماط نافذة الاختبارات الموحدة — الأبعاد والهوية
 * البصرية فقط مأخوذة منها كمرجع، بلا أي نسخ حرفي لملف CSS كامل.
 */

.aq-points-dialog {
    padding: 0;
    border: none;
    border-radius: 16px;
    width: min(720px, 96vw);
    height: min(880px, 94vh);
    max-width: 96vw;
    max-height: 94vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,.35);
}

.aq-points-dialog::backdrop {
    background: rgba(20, 20, 25, .55);
    backdrop-filter: blur(2px);
}

.aq-points-dialog[open] {
    display: flex;
}

.aq-points-dialog-shell {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #fff;
}

.aq-points-dialog-close {
    position: absolute;
    top: 10px;
    left: 10px; /* أعلى-يسار: يبقى بعيد عن اتجاه RTL للمحتوى الداخلي (الاختبار نفسه) */
    z-index: 5;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: rgba(0,0,0,.55);
    color: #fff;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.aq-points-dialog-close:hover { background: rgba(0,0,0,.75); }

.aq-points-dialog-loading {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    font-family: inherit;
    font-size: 14px;
    color: #666;
    direction: rtl;
    z-index: 2;
}

.aq-points-dialog-frame {
    flex: 1 1 auto;
    width: 100%;
    height: 100%;
    border: none;
}

/* منع تمرير الصفحة الخلفية أثناء فتح النافذة (dialog نفسها لا تفعل هذا تلقائياً في كل المتصفحات) */
body:has(.aq-points-dialog[open]) {
    overflow: hidden;
}

@media (max-width: 640px) {
    .aq-points-dialog {
        width: 100vw;
        height: 100vh;
        max-width: 100vw;
        max-height: 100vh;
        border-radius: 0;
    }
}
