/* 🔎 صفحات البحث الساكنة — /games و/games/<id> و/musabaqat (26/11 · خطة البحث ٢ captures/seo-2/PLAN.md)
   الصفحات بلا جافاسكربت (مولّدة بـscripts/gen-game-pages.mjs) فالرأس والذيل هنا ساكنين — ألوان الهويّة وخطوطها من colors_and_type.min.css
   (التوكنات نفسها)، وحدود الحبر وظلّها الصلب (٣px · ٥px) بنفس قيم dash2.css — بلا تحميل ورقة الداشبورد كاملة لصفحة قراءة. */
:root { --sp-bd: 3px solid var(--ink); --sp-sh: 5px 5px 0 var(--ink); --sp-sh-1: 3px 3px 0 var(--ink); }
body { margin: 0; background: var(--bg-cream); color: var(--ink); font-family: var(--font-body); line-height: 1.85; }
a { color: var(--link); text-underline-offset: 3px; }
.sp-wrap { max-width: 980px; margin: 0 auto; padding: 0 16px; }

.sp-top { background: var(--t-primary); border-bottom: var(--sp-bd); }
.sp-top .sp-wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-block: 10px; }
.sp-brand { font-family: var(--font-display); font-weight: 900; font-size: 26px; color: #fff; text-decoration: none; line-height: 1.2; }
.sp-nav { display: flex; flex-wrap: wrap; gap: 4px 14px; font-weight: 700; font-size: 15px; }
.sp-nav a { color: #fff; text-decoration: none; }
.sp-nav a:hover { text-decoration: underline; }

.sp-main { padding-block: 18px 40px; }
.sp-crumb { font-size: 14px; color: var(--ink-muted); margin-bottom: 14px; }
.sp-crumb a { color: inherit; }
.sp-crumb span[aria-hidden] { margin-inline: 6px; }

.sp-card { background: #fff; border: var(--sp-bd); border-radius: 22px; box-shadow: var(--sp-sh); padding: 20px; margin-bottom: 22px; }
.sp-hero { display: grid; gap: 20px; align-items: center; }
@media (min-width: 760px) { .sp-hero { grid-template-columns: 1fr 1.15fr; } }
.sp-hero img { width: 100%; height: auto; display: block; border: var(--sp-bd); border-radius: 16px; background: var(--bg-cream); }
.sp-h1 { font-family: var(--font-display); font-weight: 900; font-size: clamp(28px, 6vw, 40px); line-height: 1.2; margin: 0 0 10px; }
.sp-h1 small { display: block; font-family: var(--font-body); font-size: .5em; font-weight: 800; color: var(--ink-muted); margin-top: 6px; }
.sp-lead { margin: 0 0 14px; font-size: 16.5px; }
h2.sp-h2 { font-family: var(--font-display); font-weight: 900; font-size: 24px; line-height: 1.3; margin: 0 0 12px; }
h3.sp-h3 { font-size: 17px; font-weight: 800; margin: 16px 0 6px; line-height: 1.5; }
.sp-card p { margin: 0 0 10px; }
.sp-card p:last-child { margin-bottom: 0; }

.sp-facts { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 16px; padding: 0; list-style: none; }
.sp-facts li { background: var(--bg-cream); border: 2.5px solid var(--ink); border-radius: 999px; padding: 4px 14px; font-weight: 700; font-size: 14.5px; }
.sp-facts b { font-weight: 900; }

.sp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; background: var(--t-cta); color: var(--ink);
  border: var(--sp-bd); border-radius: 14px; box-shadow: var(--sp-sh); font-weight: 900; font-size: 17px; text-decoration: none; }
.sp-btn:hover { transform: translate(-2px, -2px); }
.sp-btn--ghost { background: #fff; box-shadow: var(--sp-sh-1); font-size: 15px; padding: 9px 16px; }
.sp-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.sp-list { margin: 0; padding-inline-start: 22px; }
.sp-list li { margin-bottom: 8px; }
ol.sp-steps { list-style: none; counter-reset: s; margin: 0; padding: 0; }
ol.sp-steps li { counter-increment: s; position: relative; padding-inline-start: 46px; margin-bottom: 14px; }
ol.sp-steps li::before { content: counter(s); position: absolute; inset-inline-start: 0; top: 2px; width: 32px; height: 32px; border: 2.5px solid var(--ink);
  border-radius: 50%; background: var(--t-cta); font-weight: 900; display: grid; place-items: center; line-height: 1; }
ol.sp-steps b { display: block; font-size: 16.5px; }

.sp-q { background: var(--bg-cream); border: 2.5px solid var(--ink); border-radius: 16px; padding: 14px; }
.sp-q p { font-weight: 800; }
.sp-q + .sp-q { margin-top: 12px; }
.sp-q ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
@media (min-width: 560px) { .sp-q ul { grid-template-columns: 1fr 1fr; } }
.sp-q li { background: #fff; border: 2px solid var(--ink); border-radius: 10px; padding: 4px 10px; }
.sp-q li.is-right { background: var(--t-success-soft); font-weight: 800; }

.sp-qa { margin: 0 0 6px; padding-inline-start: 26px; }
.sp-qa li { margin-bottom: 10px; }
.sp-qa span { display: block; }
.sp-qa span + span { color: var(--ink-muted); }
.sp-qa b { color: var(--ink); }
.sp-video { width: 100%; height: auto; display: block; border: var(--sp-bd); border-radius: 16px; background: #000; aspect-ratio: 16 / 9; }

.sp-faq h3 { margin-top: 18px; }
.sp-faq h3:first-of-type { margin-top: 0; }

.sp-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); margin: 0; padding: 0; list-style: none; }
.sp-grid a { display: block; background: #fff; border: 2.5px solid var(--ink); border-radius: 16px; box-shadow: var(--sp-sh-1); overflow: hidden; color: var(--ink); text-decoration: none; height: 100%; }
.sp-grid a:hover { transform: translate(-2px, -2px); }
.sp-grid + p { margin-top: 16px; }
.sp-grid img { width: 100%; height: auto; display: block; border-bottom: 2.5px solid var(--ink); aspect-ratio: 2 / 1; object-fit: cover; }
.sp-grid span { display: block; padding: 8px 12px 10px; font-weight: 800; line-height: 1.5; }
.sp-grid small { display: block; font-weight: 600; color: var(--ink-muted); font-size: 13.5px; }

.sp-table-box { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.sp-table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 520px; }
.sp-table th, .sp-table td { border-bottom: 2px solid rgba(44, 62, 80, .18); padding: 8px 6px; text-align: start; vertical-align: top; }
.sp-table th { font-weight: 900; border-bottom: 2.5px solid var(--ink); }
.sp-table td:first-child { font-weight: 800; }

.sp-foot { background: var(--t-primary); color: #fff; border-top: var(--sp-bd); padding-block: 22px; font-size: 14.5px; }
.sp-foot a { color: #fff; }
.sp-foot nav { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 10px; }
.sp-foot p { margin: 0; opacity: .9; }
