/* رتّل — قسمُ «ألعاب رتّل» (تصميم المالك ٢٠٢٦-١٠-٠٨): العنوان والبطاقاتُ الثلاث. يُستعمل في /play،
   ونسختُه المطابقة مضمَّنةٌ في index.html (الرئيسيّة لا تحمّل ملفّاتٍ من /play). يحرسه play-page.test.js. */
.rgh { --rgh-ink: #122A27; --rgh-deep: #0F2623; --rgh-muted: #6B7C79; font-family: 'Tajawal', system-ui, sans-serif; }
.rgh-head { max-width: 720px; margin: 0 auto; text-align: center; }
.rgh-pill { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 18px; border-radius: 999px; background: #E6F4F1; border: 1px solid #D3ECE6; color: #134E4A; font-size: 14px; font-weight: 800; }
.rgh-pill i { width: 8px; height: 8px; border-radius: 50%; background: #2A9D8F; }
.rgh-title { margin: 22px 0 0; font-size: clamp(32px, 5.4vw, 52px); line-height: 1.25; font-weight: 900; color: #0B1715; }
.rgh-title mark { background: linear-gradient(transparent 62%, #D3ECE6 62%); color: #134E4A; padding: 0 4px; }
.rgh-sub { margin: 16px auto 0; max-width: 620px; font-size: 18px; line-height: 1.7; color: var(--rgh-muted); }
.rgh-grid { margin-top: 48px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.rgh-card { position: relative; display: block; height: 380px; border-radius: 32px; overflow: hidden; color: #fff; text-decoration: none; cursor: pointer; border: 0; padding: 0; width: 100%; text-align: right; font: inherit;
  box-shadow: 0 18px 40px rgba(15, 38, 35, .14); transition: transform .25s, box-shadow .25s; }
.rgh-card:hover { transform: translateY(-4px); box-shadow: 0 26px 50px rgba(15, 38, 35, .2); }
.rgh-card:focus-visible { outline: 3px solid #10B981; outline-offset: 3px; }
.rgh-sky { position: absolute; inset: 0; }
.rgh-letters .rgh-sky { background: linear-gradient(#E8F0E0, #F5F1E8 52%, #E8E6D0); }
.rgh-harakat .rgh-sky { background: linear-gradient(#E2E0F5, #EDE7EE 50%, #D9D6DC); }
.rgh-numbers .rgh-sky { background: linear-gradient(#D0E8D0, #E8E0C0 55%, #D8D8C0); }
.rgh-tile { position: absolute; display: flex; align-items: center; justify-content: center; background: #fff; color: var(--rgh-deep); font-weight: 900; line-height: 1; }
.rgh-tile.big { top: 13%; left: 50%; width: 132px; height: 112px; margin-left: -66px; border-radius: 20px; font-size: 64px; box-shadow: 0 10px 24px rgba(0, 0, 0, .07); transform: rotate(3deg); }
.rgh-tile.s1 { top: 45.5%; left: 19%; width: 72px; height: 64px; border-radius: 14px; font-size: 32px; box-shadow: 0 8px 18px rgba(0, 0, 0, .06); transform: rotate(-8deg); }
.rgh-tile.s2 { top: 47%; right: 15%; width: 92px; height: 74px; border-radius: 16px; font-size: 36px; box-shadow: 0 8px 18px rgba(0, 0, 0, .06); transform: rotate(6deg); }
.rgh-numbers .rgh-tile.big { width: 112px; height: 104px; margin-left: -56px; transform: rotate(-5deg); }
.rgh-dots { position: absolute; top: 20%; left: 50%; transform: translateX(-50%) rotate(-2deg); display: flex; gap: 8px; padding: 14px 28px; border-radius: 999px; background: #fff; box-shadow: 0 10px 24px rgba(0, 0, 0, .08); }
.rgh-dots i { width: 11px; height: 11px; border-radius: 50%; }
.rgh-dots i:nth-child(1) { background: #E03E3E; } .rgh-dots i:nth-child(2) { background: #2F6FE0; } .rgh-dots i:nth-child(3) { background: #0E9F6E; }
.rgh-shade { position: absolute; inset: 0; background: linear-gradient(to top, #0F2623 0%, #0F2623 42%, rgba(15, 38, 35, .88) 62%, rgba(15, 38, 35, 0) 100%); }
.rgh-top { position: absolute; top: 14px; left: 14px; right: 14px; display: flex; justify-content: space-between; align-items: center; flex-direction: row-reverse; }
.rgh-icon { width: 36px; height: 36px; border-radius: 50%; background: #1A3C38; border: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 2px 10px rgba(0, 0, 0, .18); display: flex; align-items: center; justify-content: center; }
.rgh-badge { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 12px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.rgh-badge.soft { background: rgba(255, 255, 255, .55); color: #1A3C38; backdrop-filter: blur(4px); }
.rgh-badge.soft i { width: 6px; height: 6px; border-radius: 50%; background: #10B981; box-shadow: 0 0 0 3px rgba(16, 185, 129, .15); }
.rgh-badge.new { background: #FBBF24; color: #122A27; }
.rgh-badge.live { background: #10B981; color: #fff; }
.rgh-body { position: absolute; left: 20px; right: 20px; bottom: 22px; }
.rgh-name, .rgh-desc { display: block; }
.rgh-name { margin: 0; font-size: 22px; font-weight: 900; }
.rgh-desc { margin: 6px 0 0; font-size: 13.5px; color: rgba(255, 255, 255, .62); }
.rgh-chips { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.rgh-chip { height: 26px; padding: 0 11px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); font-size: 11.5px; display: inline-flex; align-items: center; }
.rgh-play { margin-inline-start: auto; height: 26px; padding: 0 12px; border-radius: 999px; background: #10B981; color: #fff; font-size: 11.5px; font-weight: 800; display: inline-flex; align-items: center; }
.rgh-more { margin: 36px auto 0; display: flex; width: max-content; align-items: center; gap: 12px; height: 48px; padding: 0 8px 0 24px; border-radius: 999px; background: #122A27; color: #fff; font-size: 14px; font-weight: 700; text-decoration: none; box-shadow: 0 10px 24px rgba(18, 42, 39, .22); }
.rgh-more span { width: 32px; height: 32px; border-radius: 50%; background: rgba(255, 255, 255, .12); display: flex; align-items: center; justify-content: center; }
.rgh-foot { margin-top: 14px; text-align: center; font-size: 12.5px; color: #8A9B97; }
@media (max-width: 900px) { .rgh-grid { grid-template-columns: 1fr; max-width: 420px; margin-left: auto; margin-right: auto; } }
@media (max-width: 420px) { .rgh-card { height: 340px; } .rgh-sub { font-size: 16px; } }
@media (prefers-reduced-motion: reduce) { .rgh-card { transition: none; } .rgh-card:hover { transform: none; } }
