/* تحدي الحروف — تصحيحات الوضوح والتباين (v1.18.1)
   نصوص كانت باهتة أو داكنة فوق خلفية داكنة أو فوق الخلفية الزرقاء للموقع.
   الهدف: تباين لا يقل عن 4.5:1 للنص العادي و3:1 للعناوين الكبيرة (معيار WCAG AA). */

/* ---- الصفحة الرئيسية ---- */
.home-page .hero .hero-content p { color: #ffffff !important; }
.home-featured-heading .home-section-eyebrow,
.games-section-heading .games-section-kicker {
  display: inline-block; padding: 4px 12px; border-radius: 999px;
  background: #ffffff !important; color: #115e59 !important; font-weight: 900;
}
.home-featured-heading p, .how-to-play.home-guide > p { color: #0b1430 !important; font-weight: 600; }
.how-to-play .info-actions a.info-button { color: #0b1430 !important; }
.call-action .cta-box h2, .call-action .cta-box #cta-title { color: #ffffff !important; -webkit-text-fill-color: #ffffff !important; }
.call-action .cta-box p { color: #dbeafe !important; }

/* ---- مركز الألعاب ---- */
.games-center-hero #games-center-title { color: #ffffff !important; -webkit-text-fill-color: #ffffff !important; }
.games-center-hero #games-center-title span { color: #fde68a !important; -webkit-text-fill-color: #fde68a !important; }
.games-center-hero .games-kicker { color: #ffffff !important; }
.games-section-heading p, .games-section-heading p a { color: #0b1430 !important; font-weight: 700; }
.games-section-heading p a { text-decoration: underline; text-underline-offset: 3px; }

/* ---- صفحات المعلومات والدليل ---- */
.info-hero .info-hero-copy p { color: #334155 !important; }
.info-breadcrumb, .info-breadcrumb span { color: #0b1430 !important; }
.info-breadcrumb a { color: #1e1b4b !important; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }

/* ---- غرف اللعب ---- */
.lr-hero h1, .lr-hero h2 { color: #ffffff !important; -webkit-text-fill-color: #ffffff !important; }
.form-page form button.mode-btn { color: #ffffff !important; }

/* ---- ترتيب الحروف (الصفحة الحاضنة) ---- */
body:has(#wordOrderGameFrame) main :is(p, h1):not(.tm-chooser *) { color: #0b1430 !important; }

/* ---- الإملاء : ملاحظة اللغة فوق الخلفية الزرقاء ---- */
.gp-app > .gp-muted { background: #ffffff; border-radius: 12px; padding: 8px 12px; color: #334155 !important; }

/* ---- صفحة نتيجة تحدي الحروف (/games/result) ---- */
.feedback-text, p.feedback-text { color: #334155 !important; }
section.ranking-summary .section-kicker { color: #fff !important; background: #1e40af !important; padding: 3px 12px; border-radius: 999px; display: inline-block; }
p.ranking-note, .no-words-alert p { color: #0b1430 !important; }
.complaint-box p { color: #334155 !important; }
.complaint-box :is(button, [type=submit]) { background: #1d4ed8 !important; color: #fff !important; }

/* ---- الكلمات المتقاطعة ---- */
#btnCheck { background-color: #047857 !important; color: #fff !important; }
#modeMultiBtn.seg-btn, .seg-btn:not(.active):not([aria-pressed="true"]) { color: #3f3f46 !important; }
#singleGameControls :is(span, small, label, p, div):not(#singleTimer):not([class*="bg-"]) { color: #334155; }
#btnLeaveSingle { background: #fff !important; color: #b91c1c !important; border-color: #fecaca !important; }
.cw-pro .text-zinc-500, .cw-pro .text-zinc-400 { color: #52525b !important; }
#singleGameControls { background: rgba(255,255,255,.94); border-radius: 18px; padding: 10px 14px !important; margin-top: 12px; box-shadow: 0 1px 2px rgba(15,23,42,.06), 0 8px 24px rgba(15,23,42,.06); }

/* شرائط الترحيب الخضراء: نهاية التدرج كانت فاتحة على النص الأبيض */
.home-page section.hero, .games-center section.games-center-hero, .rooms-shell header.rooms-hero {
  background-image: linear-gradient(120deg, #103e38 0%, #0f766e 62%, #115e59 100%) !important; }
.rooms-home-banner-content p, .games-center-hero .games-hero-copy p { color: #ffffff !important; }
.games-center-hero .games-kicker { background: rgba(0,0,0,.22) !important; }
.legal-hero p { color: #475569 !important; }
.form-page form button.mode-btn { background-color: #15803d !important; }
.rooms-page .rooms-shell > header.rooms-home-banner { background: linear-gradient(115deg, #104f49 0%, #08786e 56%, #0f665c 100%) !important; }
.rooms-page .rooms-home-banner > .rooms-home-banner-content > p { color: #ffffff !important; }
.rooms-home-player-label, .rooms-home-player-country, .rooms-page .rooms-home-change-name small { color: #475569 !important; }
