/* ==========================================================================
   أبو يزن — نظام التصميم v2 (2026-10-31)
   تعريبات ألعاب بالعربية. RTL أولاً، داكن/فاتح، نفس الخطوط والهوية الذهبية.
   ========================================================================== */

/* ---------- 1. الرموز ---------- */
:root {
  --bg:          #0b0b0e;
  --bg-2:        #121218;
  --bg-3:        #1a1a22;
  --bg-4:        #22222c;
  --border:      #26262f;
  --border-str:  #3a3a47;
  --text:        #f4f3ef;
  --text-2:      #b1b0bb;
  --text-3:      #83828f;
  --accent:      #e9ab4f;
  --accent-hi:   #f7cf86;
  --accent-ink:  #1a1104;
  --accent-soft: rgba(233, 171, 79, .13);
  --accent-line: rgba(233, 171, 79, .42);
  --accent-glow: rgba(233, 171, 79, .28);
  --discord:     #5865f2;
  --ok:          #4ade80;
  --new:         #ff7a59;
  --shadow-1:    0 1px 2px rgba(0,0,0,.5);
  --shadow-2:    0 10px 30px rgba(0,0,0,.5);
  --shadow-3:    0 24px 70px rgba(0,0,0,.6);
  --r-card:  18px;
  --r-md:    12px;
  --r-sm:    8px;
  --r-pill:  999px;
  --f-display: "Zain", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --f-body:    "IBM Plex Sans Arabic", system-ui, -apple-system, sans-serif;
  --step--1: .8125rem;
  --step-0:  .9375rem;
  --step-1:  1.0625rem;
  --step-2:  clamp(1.25rem, .6vw + 1.1rem, 1.5rem);
  --step-3:  clamp(1.5rem, 1.2vw + 1.15rem, 2rem);
  --step-4:  clamp(1.9rem, 2vw + 1.3rem, 2.75rem);
  --step-5:  clamp(2.3rem, 3.6vw + 1rem, 3.9rem);
  --shell: 1240px;
  --sec-y: clamp(2.75rem, 6vw, 5rem);
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: dark;
}
html[data-theme="light"] {
  --bg:          #f7f6f2;
  --bg-2:        #ffffff;
  --bg-3:        #f0eee8;
  --bg-4:        #e7e4dc;
  --border:      #e3e0d8;
  --border-str:  #cdc9bf;
  --text:        #18181b;
  --text-2:      #50505a;
  --text-3:      #6f6f7a;
  --accent:      #8a520f;
  --accent-hi:   #6d3f0a;
  --accent-ink:  #fff8ec;
  --accent-soft: rgba(138, 82, 15, .10);
  --accent-line: rgba(138, 82, 15, .32);
  --accent-glow: rgba(138, 82, 15, .18);
  --shadow-1:    0 1px 2px rgba(24,24,27,.07);
  --shadow-2:    0 10px 30px rgba(24,24,27,.10);
  --shadow-3:    0 24px 70px rgba(24,24,27,.14);
  color-scheme: light;
}

/* ---------- 2. الأساس ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
body {
  font-family: var(--f-body); font-size: var(--step-0); line-height: 1.8;
  color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: var(--accent-ink); }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ico { width: 1em; height: 1em; display: inline-block; flex-shrink: 0; fill: currentColor; vertical-align: -.125em; overflow: hidden; }
.shell { width: min(100% - 2rem, var(--shell)); margin-inline: auto; }
.section { padding-block: var(--sec-y); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip { position: absolute; inset-inline-start: -9999px; top: 0; z-index: 200; padding: .6rem 1rem; background: var(--accent); color: var(--accent-ink); font-weight: 700; }
.skip:focus { inset-inline-start: 1rem; top: 1rem; }
.ltr { direction: ltr; unicode-bidi: isolate; }
.muted { color: var(--text-3); }

/* ---------- 3. الأزرار ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 46px; padding: .6rem 1.25rem; border-radius: var(--r-pill);
  font-weight: 700; font-size: var(--step-0); line-height: 1.2; cursor: pointer; border: 1px solid transparent;
  transition: transform .18s var(--ease), background .2s, border-color .2s, box-shadow .2s, color .2s; white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn svg { width: 1.1em; height: 1.1em; }
.btn-primary { background: linear-gradient(180deg, var(--accent-hi), var(--accent)); color: var(--accent-ink); box-shadow: 0 10px 26px -10px var(--accent-glow); }
.btn-primary:hover { filter: brightness(1.05); box-shadow: 0 14px 30px -10px var(--accent-glow); transform: translateY(-1px); }
.btn-ghost { background: transparent; border-color: var(--border-str); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent-line); background: var(--accent-soft); }
.btn-soft { background: var(--bg-3); border-color: var(--border); color: var(--text); }
.btn-soft:hover { border-color: var(--border-str); background: var(--bg-4); }
.btn-discord { background: var(--discord); color: #fff; box-shadow: 0 10px 26px -10px rgba(88,101,242,.6); }
.btn-discord:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn-sm { min-height: 38px; padding: .4rem .95rem; font-size: var(--step--1); }
.btn-lg { min-height: 54px; padding: .8rem 1.7rem; font-size: var(--step-1); }
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border); background: var(--bg-2);
  display: inline-grid; place-items: center; color: var(--text-2); cursor: pointer; transition: .18s;
}
.icon-btn:hover { color: var(--text); border-color: var(--border-str); background: var(--bg-3); }
.icon-btn svg { width: 18px; height: 18px; }

/* ---------- 4. الترويسة ---------- */
.hdr {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .25s, background .25s;
}
.hdr.is-stuck { border-bottom-color: var(--border); background: color-mix(in srgb, var(--bg) 92%, transparent); }
.hdr-in { display: flex; align-items: center; gap: 1rem; min-height: 68px; }
.brand { display: flex; align-items: center; gap: .65rem; flex-shrink: 0; }
.brand-mark { width: 42px; height: 42px; border-radius: 12px; object-fit: cover; box-shadow: var(--shadow-1); transition: transform .4s var(--ease); background: var(--bg-3); }
.brand:hover .brand-mark { transform: rotate(-6deg) scale(1.05); }
.brand-name { font-family: var(--f-display); font-weight: 800; font-size: 1.3rem; line-height: 1; display: flex; flex-direction: column; gap: .1rem; }
.brand-name small { font-family: var(--f-body); font-weight: 600; font-size: .62rem; letter-spacing: .16em; color: var(--text-3); direction: ltr; }
.nav { display: flex; align-items: center; gap: .15rem; margin-inline-start: auto; }
.nav a { padding: .5rem .85rem; border-radius: var(--r-pill); font-weight: 600; font-size: var(--step--1); color: var(--text-2); transition: .18s; }
.nav a:hover { color: var(--text); background: var(--bg-3); }
.nav a[aria-current="page"] { color: var(--accent); background: var(--accent-soft); }
.hdr-tools { display: flex; align-items: center; gap: .5rem; }
.hdr-cta { display: inline-flex; }
.theme-ico-moon { display: none; }
html[data-theme="light"] .theme-ico-moon { display: block; }
html[data-theme="light"] .theme-ico-sun { display: none; }
.burger { display: none; }
.m-nav {
  position: fixed; inset: 0; z-index: 150; background: var(--bg); padding: 5rem 1.5rem 2rem;
  transform: translateY(-100%); visibility: hidden; transition: transform .4s var(--ease), visibility .4s; display: flex; flex-direction: column;
}
.m-nav.is-open { transform: none; visibility: visible; }
.m-nav a { padding: 1rem .5rem; border-bottom: 1px solid var(--border); font-family: var(--f-display); font-size: 1.5rem; font-weight: 700; }
.m-nav a:last-of-type { border-bottom: 0; }
.m-nav-close { position: absolute; top: 1rem; inset-inline-end: 1rem; }
.m-nav .m-nav-cta { margin-top: auto; display: flex; flex-direction: column; gap: .6rem; }
.m-nav .m-nav-cta a { border: 0; font-family: var(--f-body); font-size: 1rem; padding: .75rem 1.25rem; }

/* ---------- 5. البطل (الصفحة الرئيسية) ---------- */
.hero { position: relative; padding-block: clamp(1.75rem, 4vw, 3.5rem) clamp(1.25rem, 3vw, 2rem); overflow: hidden; isolation: isolate; }
.hero::before {
  content: "ع"; position: absolute; z-index: -1; inset-inline-end: -4vw; top: -8vw; font-family: var(--f-display); font-weight: 800;
  font-size: clamp(14rem, 36vw, 32rem); line-height: 1; color: var(--accent); opacity: .05; pointer-events: none; user-select: none;
}
.hero::after { content: ""; position: absolute; z-index: -2; inset: 0; background: radial-gradient(900px 420px at 85% 0%, var(--accent-soft), transparent 65%); }
.hero-in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: .5rem; padding: .35rem .85rem .35rem .5rem; border: 1px solid var(--accent-line); border-radius: var(--r-pill); background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: var(--step--1); }
.hero-eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(74,222,128,.18); }
.hero h1 { font-family: var(--f-display); font-size: var(--step-5); font-weight: 800; line-height: 1.15; margin-top: 1rem; letter-spacing: -.01em; }
.hero h1 em { font-style: normal; color: var(--accent); position: relative; white-space: nowrap; }
.hero h1 em::after { content: ""; position: absolute; inset-inline: 0; bottom: .05em; height: .12em; background: var(--accent-line); border-radius: 2px; z-index: -1; }
.hero-sub { margin-top: 1rem; color: var(--text-2); font-size: var(--step-1); max-width: 56ch; }
.search {
  display: flex; align-items: center; gap: .5rem; margin-top: 1.5rem; padding: .4rem .4rem .4rem 1.1rem; border-radius: var(--r-pill);
  background: var(--bg-2); border: 1px solid var(--border-str); box-shadow: var(--shadow-2); max-width: 600px; transition: border-color .2s, box-shadow .2s;
}
.search:focus-within { border-color: var(--accent-line); box-shadow: 0 0 0 4px var(--accent-soft), var(--shadow-2); }
.search svg { color: var(--text-3); flex-shrink: 0; }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; padding: .55rem .25rem; font-size: var(--step-0); outline: 0; }
.search input::placeholder { color: var(--text-3); }
.search-btn { border: 0; border-radius: var(--r-pill); padding: .65rem 1.25rem; background: var(--accent); color: var(--accent-ink); font-weight: 800; cursor: pointer; }
.search-btn:hover { background: var(--accent-hi); }
.hero-quick { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1rem; align-items: center; }
.hero-quick span { color: var(--text-3); font-size: var(--step--1); margin-inline-end: .2rem; }
.chip-link { padding: .3rem .8rem; border-radius: var(--r-pill); border: 1px solid var(--border); background: var(--bg-2); font-size: var(--step--1); font-weight: 600; color: var(--text-2); transition: .18s; }
.chip-link:hover { border-color: var(--accent-line); color: var(--accent); }
.hero-stats { display: flex; gap: clamp(1rem, 3vw, 2.25rem); margin-top: 1.75rem; flex-wrap: wrap; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats b { font-family: var(--f-display); font-size: var(--step-3); line-height: 1.1; color: var(--text); }
.hero-stats b[data-stat] { color: var(--accent); }
.hero-stats span { color: var(--text-3); font-size: var(--step--1); }

/* ---------- 5b. البانر التعريفي بالموقع (فسيفساء أغلفة خلف النص) ---------- */
.hero-site { padding-block: clamp(2.5rem, 6vw, 5rem) clamp(2rem, 5vw, 3.5rem); min-height: min(78vh, 720px); display: flex; align-items: center; }
.hero-site::before { display: none; }
.hero-site::after { background: linear-gradient(to bottom, color-mix(in srgb, var(--bg) 78%, transparent), color-mix(in srgb, var(--bg) 90%, transparent) 60%, var(--bg)); }
.hero-art { position: absolute; inset: -10% -4%; z-index: -3; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; transform: rotate(-8deg) scale(1.08); opacity: .55; pointer-events: none; filter: saturate(1.1); }
.ha-col { overflow: hidden; }
.ha-track { display: flex; flex-direction: column; gap: 1rem; animation: haUp 60s linear infinite; }
.ha-col-1 .ha-track { animation-direction: reverse; animation-duration: 75s; }
.ha-col-2 .ha-track { animation-duration: 90s; }
@keyframes haUp { from { transform: translateY(0); } to { transform: translateY(-50%); } }
.hero-art figure { margin: 0; border-radius: 14px; overflow: hidden; border: 1px solid rgba(255,255,255,.08); box-shadow: 0 10px 30px rgba(0,0,0,.4); background: var(--bg-3); aspect-ratio: 460/215; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; }
html[data-theme="light"] .hero-art { opacity: .35; }
.hero-site-in { position: relative; z-index: 1; max-width: 860px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero-site h1 { font-size: clamp(2.4rem, 5.2vw + .5rem, 4.6rem); margin-top: 1.1rem; }
.hero-site .hero-sub { font-size: clamp(1rem, 1.2vw + .6rem, 1.2rem); max-width: 64ch; margin-inline: auto; }
.hero-feats { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-top: 1.25rem; }
.hero-feats li { display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .9rem; border-radius: var(--r-pill); background: color-mix(in srgb, var(--bg-2) 85%, transparent); border: 1px solid var(--border); font-size: var(--step--1); font-weight: 600; color: var(--text-2); backdrop-filter: blur(6px); }
.hero-feats svg { width: 1.1em; height: 1.1em; color: var(--accent); }
.hero-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: .65rem; margin-top: 1.5rem; }
.hero-site .search { margin: 1.5rem auto 0; width: 100%; max-width: 640px; }
.hero-site .hero-stats { justify-content: center; }
.newrel-sec .newrel-stage { aspect-ratio: 21 / 8.4; }
.newrel-sec .newrel-thumbs { grid-template-columns: repeat(6, 1fr); }
@media (max-width: 900px) { .newrel-sec .newrel-stage { aspect-ratio: 16 / 9; } .newrel-sec .newrel-thumbs { grid-template-columns: repeat(4, 1fr); } .hero-art { inset: -14% -20%; gap: .6rem; } }
@media (max-width: 640px) { .hero-site { min-height: 0; } .hero-feats li { font-size: .78rem; padding: .35rem .7rem; } .hero-ctas .btn { width: 100%; } .newrel-sec .newrel-stage { aspect-ratio: 4 / 4.2; } .newrel-sec .newrel-thumbs { grid-template-columns: repeat(4, 1fr); } }

/* ---------- 5c. البطل v3: نص مختصر + خلفية حية + جدار شعارات ---------- */
.hero-v3 { padding-block: clamp(2rem, 4.5vw, 3.5rem) 1.25rem; text-align: center; overflow: hidden; }
.hero-v3::before { display: none; }
.hero-v3::after { background: linear-gradient(to bottom, color-mix(in srgb, var(--bg) 55%, transparent), color-mix(in srgb, var(--bg) 70%, transparent) 55%, var(--bg) 100%); }
.hero-bg { position: absolute; inset: -6%; z-index: -3; pointer-events: none; transform: translateX(var(--bg-shift, 0)); transition: transform .6s var(--ease); }
.hero-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; filter: blur(14px) saturate(1.15) brightness(.75); transform: scale(1.06); transition: opacity 1.1s var(--ease); }
.hero-bg img.on { opacity: .7; }
html[data-theme="light"] .hero-bg img.on { opacity: .28; }
.hero-v3-in { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; max-width: 820px; }
.hero-v3 h1 { font-size: clamp(2.3rem, 5vw + .4rem, 4.4rem); margin-top: .9rem; }
.hero-v3 .hero-sub { margin-top: .6rem; max-width: 52ch; font-size: clamp(1rem, 1.1vw + .6rem, 1.15rem); }
.hero-v3 .hero-ctas { margin-top: 1.25rem; }
.hero-v3 .search { margin: 1.1rem auto 0; width: 100%; max-width: 560px; box-shadow: var(--shadow-2); }
.logo-wall { position: relative; z-index: 1; margin-top: clamp(2.6rem, 4.5vw, 3.6rem); display: grid; gap: .75rem; transform: translateX(var(--lw-shift, 0)); transition: transform .8s var(--ease); mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent); }
.lw-row { overflow: hidden; }
.lw-track { display: flex; gap: .75rem; width: max-content; animation: lwMove 70s linear infinite; }
.lw-row-1 .lw-track { animation-direction: reverse; animation-duration: 85s; }
.logo-wall:hover .lw-track { animation-play-state: paused; }
@keyframes lwMove { from { transform: translateX(0); } to { transform: translateX(50%); } }
.lw-tile { position: relative; flex: 0 0 auto; width: clamp(150px, 15vw, 210px); height: clamp(74px, 7vw, 96px); display: grid; place-items: center; padding: .6rem .9rem; border-radius: 16px; background: color-mix(in srgb, var(--bg-2) 72%, transparent); border: 1px solid var(--border); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: transform .35s var(--ease), border-color .25s, background .25s, box-shadow .35s; }
.lw-tile:hover, .lw-tile:focus-visible { transform: translateY(-4px) scale(1.06); border-color: var(--accent-line); background: color-mix(in srgb, var(--bg-2) 92%, transparent); box-shadow: 0 16px 36px -14px var(--accent-glow); z-index: 2; }
.lw-tile img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; filter: drop-shadow(0 4px 10px rgba(0,0,0,.5)); }
.lw-tile .lw-name { position: absolute; inset-inline: .5rem; bottom: .35rem; font-size: .68rem; font-weight: 700; color: var(--text-2); opacity: 0; transform: translateY(4px); transition: .25s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: center; }
.lw-tile:hover .lw-name { opacity: 1; transform: none; }
.lw-tile.lw-text .lw-name { position: static; opacity: 1; transform: none; font-family: var(--f-display); font-size: 1.05rem; color: var(--text); white-space: normal; line-height: 1.2; }
.lw-new { position: absolute; top: -.45rem; inset-inline-start: .6rem; font-style: normal; font-size: .62rem; font-weight: 800; padding: .1rem .5rem; border-radius: var(--r-pill); background: var(--new); color: #fff; }
.logo-wall-cap { position: absolute; z-index: 3; top: -2.3rem; inset-inline-start: 50%; translate: 50% 0; pointer-events: none; display: flex; flex-direction: column; align-items: center; gap: .05rem; padding: .35rem 1rem; border-radius: var(--r-pill); background: color-mix(in srgb, var(--bg) 80%, transparent); border: 1px solid var(--border); backdrop-filter: blur(8px); white-space: nowrap; }
.logo-wall-cap b { font-family: var(--f-display); font-size: .95rem; }
.logo-wall-cap span { font-size: .68rem; color: var(--text-3); direction: ltr; }
.hero-stats-v3 { position: relative; z-index: 1; justify-content: center; margin-top: 1.5rem; gap: clamp(1.25rem, 4vw, 3rem); }
.hero-stats-v3 b { font-size: var(--step-2); }
@media (max-width: 640px) {
  .hero-v3 { padding-top: 1.5rem; }
  .hero-v3 h1 { font-size: clamp(2rem, 9vw, 2.5rem); }
  .hero-v3 .hero-ctas { width: 100%; }
  .hero-v3 .hero-ctas .btn { flex: 1; min-width: 0; padding-inline: .8rem; width: auto; }
  .lw-tile { width: 118px; height: 58px; border-radius: 12px; padding: .45rem .6rem; }
  .lw-tile.lw-text .lw-name { font-size: .82rem; }
  .logo-wall-cap { display: none; }
  .hero-stats-v3 { gap: 1rem 1.5rem; }
}

/* ---------- 6. شريط الإصدارات الجديدة (بانر خاص) ---------- */
.newrel { position: relative; }
.newrel-stage { position: relative; aspect-ratio: 16 / 9.4; border-radius: var(--r-card); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-3); background: var(--bg-3); }
.newrel-slide { position: absolute; inset: 0; display: flex; align-items: flex-end; color: #fff; opacity: 0; visibility: hidden; transition: opacity .7s var(--ease), visibility .7s; }
.newrel-slide.is-on { opacity: 1; visibility: visible; }
.newrel-slide > img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 7s linear; }
.newrel-slide.is-on > img.bg { transform: scale(1.12); }
.newrel-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(8,8,12,.96) 0%, rgba(8,8,12,.55) 45%, rgba(8,8,12,.05) 100%); }
.newrel-cap { position: relative; z-index: 1; padding: clamp(1rem, 3vw, 1.75rem); display: flex; flex-direction: column; gap: .45rem; width: 100%; }
.newrel-kicker { display: inline-flex; align-items: center; gap: .4rem; align-self: flex-start; padding: .25rem .7rem; border-radius: var(--r-pill); background: var(--new); color: #fff; font-weight: 800; font-size: .72rem; letter-spacing: .02em; }
.newrel-kicker::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: .2; } }
.newrel-logo { max-height: 70px; max-width: 46%; width: auto; object-fit: contain; filter: drop-shadow(0 6px 14px rgba(0,0,0,.6)); }
.newrel-cap b { font-family: var(--f-display); font-size: clamp(1.4rem, 2.6vw, 2.1rem); line-height: 1.15; text-shadow: 0 4px 20px rgba(0,0,0,.6); }
.newrel-cap small { color: rgba(255,255,255,.82); font-size: var(--step--1); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-width: 58ch; }
.newrel-cap .en { font-size: .8rem; color: rgba(255,255,255,.7); direction: ltr; align-self: flex-start; }
.newrel-acts { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .4rem; }
.newrel-acts .btn { min-height: 42px; padding: .5rem 1.1rem; font-size: var(--step--1); }
.newrel-acts .btn-ghost { border-color: rgba(255,255,255,.4); color: #fff; }
.newrel-acts .btn-ghost:hover { background: rgba(255,255,255,.12); }
.newrel-nav { position: absolute; top: 50%; translate: 0 -50%; z-index: 3; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); background: rgba(0,0,0,.4); color: #fff; font-size: 1.4rem; line-height: 1; cursor: pointer; backdrop-filter: blur(4px); opacity: 0; transition: opacity .25s, background .2s; }
.newrel-stage:hover .newrel-nav, .newrel-stage:focus-within .newrel-nav { opacity: 1; }
.newrel-nav:hover { background: rgba(0,0,0,.7); }
.newrel-prev { right: .7rem; } .newrel-next { left: .7rem; }
.newrel-dots { display: flex; justify-content: center; gap: .4rem; margin-top: .75rem; }
.newrel-dots button { width: 8px; height: 8px; border-radius: 99px; border: 0; background: var(--border-str); cursor: pointer; padding: 0; transition: width .3s var(--ease), background .3s; }
.newrel-dots button.is-on { width: 26px; background: var(--accent); }
.newrel-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; margin-top: .75rem; }
.newrel-thumbs button { position: relative; border: 2px solid transparent; border-radius: 10px; overflow: hidden; padding: 0; cursor: pointer; background: var(--bg-3); aspect-ratio: 460/215; opacity: .6; transition: .25s; }
.newrel-thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.newrel-thumbs button.is-on { opacity: 1; border-color: var(--accent); }
.newrel-thumbs button:hover { opacity: 1; }

/* ---------- 7. رؤوس الأقسام ---------- */
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; color: var(--accent); font-weight: 700; font-size: var(--step--1); margin-bottom: .35rem; }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--accent); border-radius: 2px; }
.sec-head h2 { font-family: var(--f-display); font-size: var(--step-4); font-weight: 800; line-height: 1.15; }
.sec-head p { color: var(--text-2); margin-top: .35rem; max-width: 60ch; }
.sec-head .link-more { flex-shrink: 0; }
.link-more { display: inline-flex; align-items: center; gap: .4rem; color: var(--accent); font-weight: 700; padding: .5rem .9rem; border-radius: var(--r-pill); border: 1px solid var(--accent-line); transition: .18s; }
.link-more:hover { background: var(--accent-soft); }
.link-more svg { transition: transform .25s var(--ease); }
.link-more:hover svg { transform: translateX(-4px); }

/* ---------- 8. بطاقات الألعاب ---------- */
.grid-games { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: clamp(.9rem, 1.6vw, 1.25rem); }
.card {
  position: relative; display: flex; flex-direction: column; background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--r-card);
  overflow: hidden; transition: transform .35s var(--ease), border-color .25s, box-shadow .35s var(--ease);
}
.card:hover { transform: translateY(-4px); border-color: var(--border-str); box-shadow: var(--shadow-2); }
.card-media { position: relative; aspect-ratio: 460 / 215; background: var(--bg-3); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.card:hover .card-media img { transform: scale(1.05); }
.card-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,10,14,.55), transparent 55%); pointer-events: none; }
.card-badges { position: absolute; top: .65rem; inset-inline-start: .65rem; display: flex; gap: .35rem; z-index: 2; }
.badge { padding: .22rem .6rem; border-radius: var(--r-pill); font-size: .7rem; font-weight: 800; background: rgba(12,12,16,.72); color: #fff; backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.14); }
.badge-new { background: var(--new); border-color: transparent; }
.badge-official { background: var(--ok); color: #052e16; border-color: transparent; }
.card-size { position: absolute; bottom: .6rem; inset-inline-end: .65rem; z-index: 2; font-size: .72rem; font-weight: 700; color: #fff; background: rgba(12,12,16,.6); padding: .2rem .55rem; border-radius: var(--r-pill); direction: ltr; backdrop-filter: blur(6px); }
.card-body { display: flex; flex-direction: column; gap: .35rem; padding: .95rem 1rem 1rem; flex: 1; }
.card-title { font-family: var(--f-display); font-size: 1.3rem; font-weight: 800; line-height: 1.2; }
.card-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card-title-en { font-size: .78rem; color: var(--text-3); direction: ltr; text-align: end; font-weight: 500; }
.card-meta { display: flex; flex-wrap: wrap; gap: .3rem .6rem; color: var(--text-3); font-size: .78rem; margin-top: .1rem; }
.card-meta span { display: inline-flex; align-items: center; gap: .3rem; }
.card-meta i { width: 3px; height: 3px; border-radius: 50%; background: var(--border-str); align-self: center; }
.card-desc { color: var(--text-2); font-size: var(--step--1); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-foot { display: flex; align-items: center; gap: .5rem; margin-top: auto; padding-top: .7rem; position: relative; z-index: 2; }
.card-foot .btn { flex: 1; min-height: 40px; font-size: var(--step--1); padding: .45rem .9rem; }
.card-foot .btn-ghost { flex: 0 0 auto; }
.card-team { display: inline-flex; align-items: center; gap: .4rem; font-size: .78rem; color: var(--text-3); }
.team-chip { width: 22px; height: 22px; border-radius: 6px; background: var(--accent-soft); color: var(--accent); font-size: .62rem; font-weight: 800; display: grid; place-items: center; direction: ltr; }

/* ---------- 9. شريط أفقي ---------- */
.rail-wrap { position: relative; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: min(300px, 78vw); gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .5rem; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
.rail-nav { display: flex; gap: .4rem; }

/* ---------- 10. خطوات التثبيت ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 1rem; counter-reset: s; }
.step { position: relative; padding: 1.25rem 1.1rem 1.1rem; background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--r-card); counter-increment: s; }
.step::before { content: counter(s); position: absolute; top: -.8rem; inset-inline-start: 1rem; width: 2rem; height: 2rem; border-radius: 10px; background: var(--accent); color: var(--accent-ink); font-family: var(--f-display); font-weight: 800; font-size: 1.05rem; display: grid; place-items: center; box-shadow: 0 8px 18px -8px var(--accent-glow); }
.step h3 { font-family: var(--f-display); font-size: 1.2rem; font-weight: 800; margin: .3rem 0 .25rem; }
.step p { color: var(--text-2); font-size: var(--step--1); }
.step svg { width: 28px; height: 28px; color: var(--accent); margin-bottom: .4rem; }

/* ---------- 11. شريط ديسكورد ---------- */
.dc-band { position: relative; overflow: hidden; border-radius: var(--r-card); background: linear-gradient(120deg, #3c47c9, #5865f2 55%, #7983f5); color: #fff; padding: clamp(1.5rem, 4vw, 2.5rem); display: grid; grid-template-columns: 1fr auto; gap: 1.5rem; align-items: center; box-shadow: var(--shadow-2); }
.dc-band::after { content: ""; position: absolute; inset-inline-end: -60px; top: -80px; width: 320px; height: 320px; border-radius: 50%; background: rgba(255,255,255,.08); pointer-events: none; }
.dc-band h2 { font-family: var(--f-display); font-size: var(--step-3); font-weight: 800; display: flex; align-items: center; gap: .6rem; }
.dc-band h2 svg { width: 1.3em; height: 1.3em; }
.dc-band p { color: rgba(255,255,255,.88); margin-top: .4rem; max-width: 60ch; }
.dc-stats { display: flex; gap: 1.25rem; margin-top: .9rem; flex-wrap: wrap; }
.dc-stats span { display: inline-flex; align-items: center; gap: .45rem; font-weight: 700; font-size: var(--step--1); background: rgba(255,255,255,.14); padding: .35rem .8rem; border-radius: var(--r-pill); }
.dc-stats .on::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #3ba55d; box-shadow: 0 0 0 4px rgba(59,165,93,.3); }
.dc-stats .all::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #b9bbbe; }
.dc-band .btn { background: #fff; color: #3b45c8; box-shadow: 0 10px 26px -10px rgba(0,0,0,.5); }
.dc-band .btn:hover { filter: none; background: #f2f3ff; }
.dc-mini { display: inline-flex; align-items: center; gap: .5rem; padding: .35rem .8rem .35rem .4rem; border-radius: var(--r-pill); border: 1px solid var(--border); background: var(--bg-2); color: var(--text-2); font-size: var(--step--1); font-weight: 600; }
.dc-mini svg { width: 26px; height: 26px; color: var(--discord); }
.dc-mini .on { color: var(--ok); font-weight: 800; }

/* ---------- 12. شركاء / مواقع مميّزة ---------- */
.pb-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .6rem; }
.pb-head span { font-size: var(--step--1); color: var(--text-3); }
.pb-stage { position: relative; height: clamp(190px, 26vw, 240px); border-radius: var(--r-card); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-2); isolation: isolate; }
.pb-slide { position: absolute; inset: 0; display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.25rem); padding: clamp(1rem, 3vw, 2rem) clamp(2.75rem, 6vw, 4.5rem); color: #fff; opacity: 0; visibility: hidden; transform: scale(1.015); transition: opacity .7s var(--ease), transform .9s var(--ease), visibility .7s; }
.pb-slide.is-on { opacity: 1; visibility: visible; transform: none; }
.pb-slide::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 15% 20%, rgba(255,255,255,.14), transparent 55%); pointer-events: none; }
.pb-logo { flex: 0 0 auto; width: clamp(96px, 16vw, 168px); aspect-ratio: 1; border-radius: 22px; overflow: hidden; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.22); display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.pb-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pb-txt { display: flex; flex-direction: column; gap: .35rem; min-width: 0; position: relative; z-index: 1; }
.pb-txt small { font-size: .75rem; letter-spacing: .14em; opacity: .8; direction: ltr; align-self: flex-start; }
.pb-txt b { font-family: var(--f-display); font-size: clamp(1.35rem, 3.2vw, 2.1rem); line-height: 1.2; }
.pb-txt > span { font-size: clamp(.8rem, 1.5vw, .98rem); opacity: .92; max-width: 62ch; line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pb-txt em { font-style: normal; align-self: flex-start; margin-top: .35rem; background: #fff; color: #111; font-weight: 700; font-size: .82rem; padding: .45rem 1.1rem; border-radius: var(--r-pill); }
.pb-slide:hover .pb-txt em { background: var(--accent); color: var(--accent-ink); }
.pb-nav { position: absolute; top: 50%; translate: 0 -50%; z-index: 3; width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); background: rgba(0,0,0,.35); color: #fff; font-size: 1.3rem; line-height: 1; cursor: pointer; backdrop-filter: blur(4px); }
.pb-nav:hover { background: rgba(0,0,0,.6); }
.pb-prev { right: .7rem; } .pb-next { left: .7rem; }
.pb-dots { display: flex; justify-content: center; gap: .45rem; margin-top: .7rem; }
.pb-dot { width: 9px; height: 9px; border-radius: 99px; border: 0; background: var(--border-str); cursor: pointer; padding: 0; transition: width .3s var(--ease), background .3s; }
.pb-dot.is-on { width: 26px; background: var(--accent); }

/* نسخة مصغّرة من بانر المواقع المرشّحة (أعلى الصفحة تحت البطل) */
.pb-compact { max-width: 900px; margin: clamp(1rem, 2.5vw, 1.75rem) auto 0; }
.pb-compact .pb-stage { height: clamp(132px, 16vw, 168px); border-radius: 14px; }
.pb-compact .pb-slide { padding: .9rem clamp(2.4rem, 5vw, 3.4rem); gap: clamp(.8rem, 2vw, 1.5rem); }
.pb-compact .pb-logo { width: clamp(74px, 10vw, 112px); border-radius: 16px; }
.pb-compact .pb-txt b { font-size: clamp(1.1rem, 2.2vw, 1.5rem); }
.pb-compact .pb-txt > span { font-size: clamp(.74rem, 1.1vw, .86rem); -webkit-line-clamp: 2; line-height: 1.55; }
.pb-compact .pb-txt small { font-size: .66rem; }
.pb-compact .pb-txt em { margin-top: .2rem; padding: .3rem .85rem; font-size: .74rem; }
.pb-compact .pb-nav { width: 32px; height: 32px; font-size: 1.1rem; }
.pb-compact .pb-head { margin-bottom: .4rem; }
.pb-compact .pb-dots { margin-top: .5rem; }
@media (max-width: 640px) { .pb-compact .pb-stage { height: 150px; } .pb-compact .pb-txt > span { -webkit-line-clamp: 2; } }

/* ---------- 13. الإعلانات (مساحات ثابتة بلا قفز) ---------- */
.ad-slot { margin-block: clamp(1.25rem, 3vw, 2rem); display: flex; justify-content: center; }
.ad-slot:empty { display: none; }
.ad-live { width: 100%; max-width: 970px; text-align: center; overflow: hidden; border-radius: var(--r-md); background: var(--bg-2); border: 1px solid var(--border); padding: .4rem .4rem .55rem; }
.ad-live img { max-width: 100%; height: auto; display: inline-block; border-radius: var(--r-sm); }
.ad-tag { display: block; color: var(--text-3); font-size: .68rem; letter-spacing: .08em; margin-bottom: .3rem; text-align: center; }
.ad-slot[data-ad="top"] .ad-live, .ad-slot[data-ad="bottom"] .ad-live { min-height: 0; }
.ad-box { width: 100%; max-width: 970px; min-height: 90px; border: 1px dashed var(--border-str); border-radius: var(--r-md); background: var(--bg-2); color: var(--text-3); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .2rem; text-align: center; padding: 1rem; font-size: var(--step--1); }
.ad-box b { color: var(--text-2); }
.ad-box a { color: var(--accent); }
.ay-ad-slot:empty, .ay-banner-slot:empty { display: none; }
.ay-ad-slot.is-filled { margin-block: 1rem; display: flex; justify-content: center; }
.ay-banner-slot.is-filled { margin-block: 1rem; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.ay-banner { display: block; border-radius: var(--r-card); overflow: hidden; border: 1px solid var(--border); position: relative; }
.ay-banner img { width: 100%; height: auto; }
.ay-banner-cap { position: absolute; inset-inline: 0; bottom: 0; padding: .8rem 1rem; background: linear-gradient(to top, rgba(0,0,0,.8), transparent); color: #fff; display: flex; flex-direction: column; }
.ay-banner-cap small { opacity: .85; font-size: .8rem; }

/* ---------- 14. الأسئلة ---------- */
.faq { max-width: 820px; margin-inline: auto; display: grid; gap: .6rem; }
.faq details { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--r-md); padding: 0 1.1rem; transition: border-color .2s; }
.faq details[open] { border-color: var(--accent-line); }
.faq summary { list-style: none; cursor: pointer; padding: .95rem 0; font-weight: 700; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.3rem; color: var(--accent); flex-shrink: 0; transition: transform .25s var(--ease); width: 1.5rem; text-align: center; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq-answer, .faq details > p { padding: 0 0 1rem; color: var(--text-2); }

/* ---------- 15. التذييل ---------- */
.ftr { margin-top: var(--sec-y); border-top: 1px solid var(--border); background: var(--bg-2); }
.ftr-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 2rem; padding-block: clamp(2rem, 5vw, 3.5rem) 2rem; }
.ftr-about p { color: var(--text-2); font-size: var(--step--1); margin-top: .9rem; max-width: 42ch; }
.ftr h3 { font-size: var(--step--1); color: var(--text-3); font-weight: 700; letter-spacing: .04em; margin-bottom: .75rem; }
.ftr-links { display: flex; flex-direction: column; gap: .45rem; }
.ftr-links a { color: var(--text-2); font-size: var(--step--1); transition: color .18s; }
.ftr-links a:hover { color: var(--accent); }
.ftr-base { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .75rem; padding-block: 1.1rem; border-top: 1px solid var(--border); color: var(--text-3); font-size: .8rem; }
.ftr-social { display: flex; gap: .5rem; }
.ftr-dc { margin-top: 1rem; }

/* ---------- 16. نص الصفحات الثابتة ---------- */
.page-head { padding-block: clamp(2rem, 5vw, 3.5rem) 1rem; }
.page-head h1, .page-head .h1 { font-family: var(--f-display); font-size: var(--step-4); font-weight: 800; line-height: 1.15; }
.page-head p { color: var(--text-2); margin-top: .4rem; }
.prose { max-width: 76ch; color: var(--text-2); }
.prose h2 { font-family: var(--f-display); font-size: var(--step-3); font-weight: 800; color: var(--text); margin: 2rem 0 .6rem; line-height: 1.2; padding-inline-start: .8rem; border-inline-start: 4px solid var(--accent); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-family: var(--f-display); font-size: var(--step-2); font-weight: 800; color: var(--text); margin: 1.4rem 0 .4rem; }
.prose p { margin-bottom: .9rem; }
.prose a { color: var(--accent); text-decoration: underline; text-decoration-color: var(--accent-line); text-underline-offset: 3px; }
.prose a.btn { text-decoration: none; }
.prose a.btn-primary { color: var(--accent-ink); }
.prose ul, .prose ol { margin: .4rem 0 1rem; padding-inline-start: 1.4rem; }
.prose ul { list-style: none; padding-inline-start: 0; }
.prose ul li { position: relative; padding-inline-start: 1.4rem; margin-bottom: .45rem; }
.prose ul li::before { content: ""; position: absolute; inset-inline-start: 0; top: .72em; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); transform: rotate(45deg); }
.prose ol { list-style: decimal; }
.prose ol li { margin-bottom: .45rem; padding-inline-start: .3rem; }
.prose li::marker { color: var(--accent); font-weight: 800; }
.prose b, .prose strong { color: var(--text); }
.prose details.panel { margin: .5rem 0; }
.panel { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--r-card); padding: 1.25rem; }
.panel + .panel { margin-top: 1rem; }
.panel h2, .panel h3 { font-family: var(--f-display); font-size: var(--step-2); font-weight: 800; margin-bottom: .75rem; }
.panel h2 { font-size: var(--step-3); }
.note { display: flex; gap: .75rem; align-items: flex-start; padding: 1rem 1.1rem; border-radius: var(--r-md); background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--text); }
.note svg { width: 22px; height: 22px; color: var(--accent); flex-shrink: 0; margin-top: .15rem; }
.note b { color: var(--accent); }

/* ---------- 17. صفحة الألعاب (التصفية) ---------- */
.toolbar { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-bottom: 1.25rem; padding: .75rem; background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--r-card); position: sticky; top: 76px; z-index: 20; }
.field { display: flex; align-items: center; gap: .5rem; padding: 0 .8rem; min-height: 42px; border-radius: var(--r-pill); background: var(--bg-3); border: 1px solid var(--border); flex: 1 1 220px; }
.field:focus-within { border-color: var(--accent-line); }
.field svg { color: var(--text-3); flex-shrink: 0; }
.field input, .field select { flex: 1; min-width: 0; border: 0; background: transparent; outline: 0; padding: .4rem 0; }
.field select { cursor: pointer; }
.field select option { background: var(--bg-2); color: var(--text); }
.chips { display: flex; gap: .35rem; flex-wrap: wrap; }
.chip { padding: .45rem .9rem; border-radius: var(--r-pill); border: 1px solid var(--border); background: var(--bg-3); font-size: var(--step--1); font-weight: 600; color: var(--text-2); cursor: pointer; transition: .18s; }
.chip:hover { border-color: var(--border-str); color: var(--text); }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.count { margin-inline-start: auto; color: var(--text-3); font-size: var(--step--1); white-space: nowrap; }
.empty { grid-column: 1 / -1; text-align: center; padding: 3rem 1rem; color: var(--text-3); border: 1px dashed var(--border-str); border-radius: var(--r-card); }
.empty b { display: block; color: var(--text); font-size: var(--step-2); margin-bottom: .3rem; }

/* ---------- 18. صفحة اللعبة ---------- */
.game-hero { position: relative; isolation: isolate; overflow: hidden; }
.game-hero-bg { position: absolute; inset: 0; z-index: -2; }
.game-hero-bg img { width: 100%; height: 100%; object-fit: cover; filter: blur(22px) saturate(1.1); transform: scale(1.15); opacity: .45; }
.game-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to bottom, color-mix(in srgb, var(--bg) 30%, transparent), var(--bg) 92%); }
.game-hero-in { padding-block: clamp(1.25rem, 3vw, 2.25rem) clamp(1.5rem, 3vw, 2.5rem); }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; color: var(--text-3); font-size: var(--step--1); margin-bottom: 1.25rem; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span.sep { opacity: .6; }
.breadcrumb li { display: inline-flex; align-items: center; gap: .4rem; }
.game-top { display: grid; grid-template-columns: minmax(0, 460px) minmax(0, 1fr); gap: clamp(1.25rem, 3vw, 2.5rem); align-items: start; }
.game-cover { border-radius: var(--r-card); overflow: hidden; border: 1px solid var(--border-str); box-shadow: var(--shadow-3); aspect-ratio: 460 / 215; background: var(--bg-3); }
.game-cover img { width: 100%; height: 100%; object-fit: cover; }
.game-kicker { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: .6rem; }
.game-title { font-family: var(--f-display); font-size: var(--step-5); font-weight: 800; line-height: 1.12; }
.game-title-en { direction: ltr; text-align: end; color: var(--text-3); font-size: var(--step-1); margin-top: .25rem; unicode-bidi: isolate; display: inline-block; width: 100%; }
.game-meta { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .9rem; }
.kv span, .game-meta span { padding: .3rem .75rem; border-radius: var(--r-pill); background: var(--bg-3); border: 1px solid var(--border); font-size: var(--step--1); color: var(--text-2); }
.game-lead { margin-top: 1rem; color: var(--text-2); font-size: var(--step-1); max-width: 62ch; }
.game-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.25rem; align-items: center; }
.game-actions .dl-size { color: var(--text-3); font-size: var(--step--1); direction: ltr; }
.game-cols { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 1.5rem; align-items: start; }
.game-side { position: sticky; top: 84px; display: grid; gap: 1rem; }
.feat-list { display: grid; gap: .5rem; }
.feat-list li { display: flex; gap: .6rem; align-items: flex-start; padding: .7rem .9rem; background: var(--bg-3); border-radius: var(--r-md); color: var(--text-2); }
.feat-list li::before { content: "✓"; color: var(--ok); font-weight: 800; flex-shrink: 0; }
.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: .75rem; }
.shot { padding: 0; border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; background: var(--bg-3); cursor: zoom-in; aspect-ratio: 16/9; }
.shot img, .shots > img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); cursor: zoom-in; border-radius: var(--r-md); }
.shot:hover img { transform: scale(1.04); }
.shots-credit { margin-top: .6rem; color: var(--text-3); font-size: .8rem; }
.steps-inline { counter-reset: n; display: grid; gap: .55rem; }
.steps-inline li { counter-increment: n; display: flex; gap: .75rem; align-items: flex-start; color: var(--text-2); }
.steps-inline li::before { content: counter(n); flex-shrink: 0; width: 1.7rem; height: 1.7rem; border-radius: 8px; background: var(--accent); color: var(--accent-ink); font-weight: 800; display: grid; place-items: center; font-size: .9rem; margin-top: .15rem; }
.spec { display: grid; gap: 0; }
.spec-row { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--border); font-size: var(--step--1); }
.spec-row:last-child { border-bottom: 0; }
.spec-row dt { color: var(--text-3); }
.spec-row dd { color: var(--text); font-weight: 600; text-align: end; }
.dl-list { display: grid; gap: .5rem; }
.dl-item { display: flex; justify-content: space-between; align-items: center; gap: .75rem; padding: .85rem 1rem; border-radius: var(--r-md); background: var(--bg-3); border: 1px solid var(--border); transition: .18s; font-weight: 600; }
.dl-item:hover { border-color: var(--accent-line); background: var(--accent-soft); }
.dl-item small { color: var(--text-3); font-weight: 500; }
.dl-item.primary { background: linear-gradient(180deg, var(--accent-hi), var(--accent)); color: var(--accent-ink); border-color: transparent; }
.dl-item.primary small { color: var(--accent-ink); opacity: .8; }
.dl-item.primary:hover { filter: brightness(1.04); }
.related h2 { margin-bottom: 1rem; }
.share { display: flex; gap: .5rem; flex-wrap: wrap; }

/* ---------- 19. منوعات ---------- */
.to-top { position: fixed; bottom: 1.25rem; inset-inline-end: 1.25rem; z-index: 70; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border-str); background: var(--bg-2); color: var(--text); display: grid; place-items: center; cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(8px); transition: .3s var(--ease); box-shadow: var(--shadow-2); }
.to-top.is-on { opacity: 1; visibility: visible; transform: none; }
.to-top svg { width: 18px; height: 18px; }
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.ay-fab { position: fixed; bottom: 1.25rem; inset-inline-start: 1.25rem; z-index: 80; }
.ay-fab-btn { display: flex; align-items: center; gap: .55rem; height: 54px; padding: 0 1.1rem 0 .3rem; border: 0; border-radius: 99px; background: var(--discord); color: #fff; cursor: pointer; box-shadow: 0 10px 30px rgba(88,101,242,.5), 0 2px 8px rgba(0,0,0,.35); font-weight: 700; font-size: .92rem; position: relative; }
.ay-fab-btn .ic { width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.18); display: grid; place-items: center; }
.ay-fab-btn svg { width: 24px; height: 24px; fill: #fff; }
.ay-fab:not(.open) .ay-fab-btn::before { content: ""; position: absolute; inset: 0; border-radius: 99px; box-shadow: 0 0 0 0 rgba(88,101,242,.6); animation: ayp 2.4s infinite; pointer-events: none; }
@keyframes ayp { 0% { box-shadow: 0 0 0 0 rgba(88,101,242,.55); } 70% { box-shadow: 0 0 0 16px rgba(88,101,242,0); } 100% { box-shadow: 0 0 0 0 rgba(88,101,242,0); } }
.ay-fab-menu { position: absolute; bottom: 66px; inset-inline-start: 0; width: min(290px, calc(100vw - 2.5rem)); background: var(--bg-2); color: var(--text); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow-3); padding: .6rem; opacity: 0; visibility: hidden; transform: translateY(10px) scale(.97); transform-origin: bottom right; transition: opacity .25s, transform .3s var(--ease), visibility .25s; }
.ay-fab.open .ay-fab-menu { opacity: 1; visibility: visible; transform: none; }
.ay-fab-menu h4 { margin: .35rem .5rem .5rem; font-size: .82rem; color: var(--text-3); font-weight: 600; }
.ay-fab-menu a { display: flex; flex-direction: column; gap: .1rem; padding: .65rem .8rem; border-radius: 12px; }
.ay-fab-menu a:hover { background: var(--bg-3); }
.ay-fab-menu a b { font-size: .95rem; } .ay-fab-menu a span { font-size: .78rem; color: var(--text-3); }
.ay-fab-menu a.main { background: var(--discord); color: #fff; } .ay-fab-menu a.main span { color: rgba(255,255,255,.85); } .ay-fab-menu a.main:hover { filter: brightness(1.08); }
.ay-acc { padding-block: 1rem; }
.ay-acc a { display: flex; align-items: center; justify-content: center; gap: .5rem; flex-wrap: wrap; text-align: center; max-width: 560px; margin-inline: auto; padding: .7rem 1rem; border-radius: 16px; font-weight: 800; font-size: clamp(1rem, 2.4vw, 1.2rem); color: #1a1104; background: linear-gradient(135deg, #ffd978, #e3b341); box-shadow: 0 8px 22px rgba(227,179,65,.3); transition: transform .2s, box-shadow .2s; }
.ay-acc a:hover { transform: translateY(-2px); }
.ay-acc small { display: block; width: 100%; font-weight: 600; font-size: .82rem; opacity: .8; }
.marquee { overflow: hidden; border-block: 1px solid var(--border); padding: .7rem 0; margin-block: 1rem; mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: inline-flex; gap: 2.5rem; white-space: nowrap; animation: mq 30s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes mq { from { transform: translateX(0); } to { transform: translateX(50%); } }
.marquee-item { display: inline-flex; align-items: center; gap: .5rem; color: var(--text-3); font-size: var(--step--1); }
.marquee-item b { color: var(--accent); font-family: var(--f-display); }

/* ---------- 20. الاستجابة ---------- */
@media (max-width: 1080px) {
  .hero-in { grid-template-columns: 1fr; }
  .newrel-stage { aspect-ratio: 16 / 8.5; }
  .game-cols { grid-template-columns: 1fr; }
  .game-side { position: static; }
  .ftr-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .nav, .hdr-cta { display: none; }
  .burger { display: inline-grid; }
  .game-top { grid-template-columns: 1fr; }
  .game-cover { max-width: 560px; }
  .dc-band { grid-template-columns: 1fr; }
  .toolbar { position: static; }
}
@media (max-width: 640px) {
  .shell { width: min(100% - 2rem, var(--shell)); }
  .hdr-in { min-height: 62px; }
  .brand-mark { width: 36px; height: 36px; }
  .brand-name { font-size: 1.15rem; }
  .hero h1 { font-size: clamp(2rem, 9vw, 2.6rem); }
  .hero-stats { gap: 1.25rem; }
  .search { padding-inline-start: .9rem; }
  .search-btn { padding: .6rem .9rem; }
  .newrel-stage { aspect-ratio: 4 / 4.2; }
  .newrel-thumbs { grid-template-columns: repeat(4, 1fr); gap: .35rem; }
  .newrel-logo { max-height: 52px; max-width: 60%; }
  .newrel-cap b { font-size: 1.45rem; }
  .grid-games { grid-template-columns: 1fr 1fr; gap: .6rem; }
  .card-title { font-size: 1.05rem; }
  .card-body { padding: .7rem .7rem .75rem; }
  .card-desc, .card-meta { display: none; }
  .card-foot .btn { min-height: 36px; font-size: .75rem; padding: .35rem .5rem; }
  .card-foot .btn-ghost { display: none; }
  .ftr-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .pb-txt > span { -webkit-line-clamp: 2; } .pb-slide { padding-inline: 2.6rem; } .pb-logo { display: none; }
  .game-title { font-size: clamp(1.8rem, 8vw, 2.4rem); }
  .steps { grid-template-columns: 1fr; }
  .ay-fab-btn .tx { display: none; } .ay-fab-btn { padding: 0 .3rem; }
  .to-top { bottom: 5.25rem; }
  body.has-sticky-ad .ay-fab, body.has-sticky-ad .to-top { bottom: 4.5rem; }
}
@media (max-width: 420px) {
  .grid-games { grid-template-columns: 1fr; }
  .card-desc, .card-meta { display: -webkit-box; }
  .card-meta { display: flex; }
}

/* ── Apple rules pass (2026-11-12) ── */
a, button { -webkit-tap-highlight-color: transparent; }
@media (max-width:640px){ input, select, textarea { font-size:16px; } }
@media (hover:none){
  .btn-primary:hover,.btn-discord:hover,.btn:hover,.card:hover,.lw-tile:hover,.ay-acc a:hover{transform:none}
  .card:hover .card-media img,.shot:hover img{transform:none}
  .lw-tile:hover .lw-name{opacity:0}
}
.btn:active,.icon-btn:active,.chip:active,.chip-link:active,.link-more:active,.search-btn:active,
.dl-item:active,.newrel-thumbs button:active,.lw-tile:active,.shot:active,.ay-fab-btn:active,
.card:active,.to-top.is-on:active,.newrel-nav:active,.pb-nav:active{transform:scale(.97);transition:transform .1s ease-out}
.nav a:active,.m-nav a:active,.ftr-links a:active,.breadcrumb a:active{opacity:.6}
.ay-codes .ay-codes__code:active,.ay-codes .ay-codes__go:active,.ay-codes .ay-codes__all:active{transform:scale(.97)}
.newrel-kicker::before{animation:none}
.ay-fab:not(.open) .ay-fab-btn::before{animation-iteration-count:2}
.newrel-slide > img.bg,.newrel-slide.is-on > img.bg{transform:none;transition:opacity .4s ease}
@media (hover:none),(max-width:640px){
  .lw-row{overflow-x:auto;scroll-snap-type:x proximity;scrollbar-width:none}
  .lw-row::-webkit-scrollbar{display:none}
  .lw-track{animation:none}
  .lw-tile{backdrop-filter:none;-webkit-backdrop-filter:none;background:var(--bg-2);scroll-snap-align:start}
}
.brand-name small,.hero h1,.newrel-kicker,.ad-tag,.ftr h3{letter-spacing:0}
.brand-name small,.lw-new,.team-chip,.lw-tile .lw-name,.ad-tag,.badge,.card-size,.newrel-kicker,
.pb-compact .pb-txt small,.pb-compact .pb-txt em{font-size:.75rem}
.pb-compact .pb-txt > span{font-size:clamp(.75rem,1.1vw,.86rem)}
.ay-codes .ay-codes__fine,.ay-codes .ay-codes__name small{font-size:.75rem}
@media (max-width:640px){
  .icon-btn,.newrel-nav,.pb-nav,.pb-compact .pb-nav{width:44px;height:44px}

  .chip,.field,.card-foot .btn,.newrel-thumbs button{min-height:44px}
  .breadcrumb a,.pb-head a{display:inline-flex;align-items:center;min-height:44px}
  .ay-codes .ay-codes__all,.ay-codes .ay-codes__go,.ay-codes .ay-codes__code{min-height:44px}
}
.ay-fab{transition:transform .25s cubic-bezier(.32,.72,0,1),opacity .2s}
.ay-fab.is-hid{transform:translateY(90px);opacity:0;pointer-events:none}
.icon-btn,.nav a,.chip-link,.link-more,.chip,.dl-item{transition:color .18s,background-color .18s,border-color .18s,transform .1s ease-out}
.lw-tile .lw-name{transition:opacity .25s,transform .25s}
.newrel-thumbs button{transition:opacity .25s,border-color .25s,transform .1s ease-out}
.to-top{transition:opacity .3s var(--ease),transform .3s var(--ease),visibility .3s}
.m-nav{transition:transform .3s cubic-bezier(.32,.72,0,1),visibility .3s}
.ay-fab-menu{transition:opacity .2s,transform .28s cubic-bezier(.32,.72,0,1),visibility .2s}
.reveal{transform:translateY(8px);transition:opacity .3s var(--ease),transform .3s var(--ease)}
@media (prefers-reduced-transparency:reduce){
  .hdr,.hdr.is-stuck{background:var(--bg);backdrop-filter:none;-webkit-backdrop-filter:none}
  .lw-tile,.badge,.card-size,.newrel-nav,.pb-nav,.logo-wall-cap,.hero-feats li{backdrop-filter:none;-webkit-backdrop-filter:none}
  .lw-tile{background:var(--bg-2)}
}
@media (prefers-reduced-motion:reduce){.ay-fab,.ay-fab.is-hid{transition:none}}
