/* ============================================================
   GameHub MVC — Design System (نقل من النسخة الأصلية)
   الجزء الأول: الأساسيات، القائمة، الفوتر، البطاقات
   ============================================================ */

:root {
  --bg-base: #15120d;
  --bg-deep: #0e0c09;
  --surface: #1f1a14;
  --surface-2: #282119;
  --surface-3: #322a20;
  --border: #382f24;
  --border-strong: #4b3f2e;

  --text-1: #f5efe2;
  --text-2: #c7bda7;
  --text-3: #8c8170;

  --accent: #d9a441;
  --accent-bright: #f2c56b;
  --accent-deep: #a97924;
  --signal: #5aa88f;
  --danger: #c0604f;
  --club: #2f5045;
  --club-bright: #4f8570;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 26px;
  --radius-full: 999px;

  --font-display: 'Cairo', 'IBM Plex Sans Arabic', sans-serif;
  --font-body: 'IBM Plex Sans Arabic', 'Cairo', sans-serif;

  --shadow-1: 0 2px 8px rgba(0, 0, 0, 0.35);
  --shadow-2: 0 12px 32px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 0 1px rgba(217, 164, 65, 0.25), 0 12px 40px rgba(217, 164, 65, 0.12);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 200ms;

  --max-w: 1200px;
  --nav-h: 72px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-1);
  background-color: var(--bg-base);
  background-image:
    radial-gradient(1100px 520px at 85% -10%, rgba(47, 80, 69, 0.28), transparent 60%),
    radial-gradient(900px 480px at -10% 110%, rgba(217, 164, 65, 0.08), transparent 55%);
  background-attachment: fixed;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.25;
  margin: 0;
  color: var(--text-1);
}

p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; border: none; background: none; cursor: pointer; color: inherit; padding: 0; }
img { max-width: 100%; display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--accent); color: var(--bg-deep); }
:focus-visible { outline: 2px solid var(--accent-bright); outline-offset: 3px; border-radius: var(--radius-sm); }

::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: var(--radius-full); border: 3px solid var(--bg-deep); }
::-webkit-scrollbar-thumb:hover { background: var(--accent-deep); }

.container { width: 100%; max-width: var(--max-w); margin-inline: auto; padding-inline: clamp(16px, 4vw, 32px); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.section { padding-block: clamp(40px, 7vw, 72px); }
.main { min-height: 62vh; }

/* ---------- أزرار ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 12px 22px;
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: var(--bg-deep); box-shadow: var(--shadow-1); }
.btn-primary:hover { background: var(--accent-bright); transform: translateY(-2px); box-shadow: var(--shadow-glow); }
.btn-ghost { background: transparent; color: var(--text-1); border: 1px solid var(--border-strong); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-bright); transform: translateY(-2px); }
.btn-danger { background: transparent; color: var(--danger); border: 1px solid rgba(192, 96, 79, 0.5); }
.btn-danger:hover { border-color: var(--danger); transform: translateY(-2px); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }
.btn svg { flex-shrink: 0; }

/* ---------- حقول وقوائم ---------- */
.input {
  font-family: inherit;
  font-size: 14.5px;
  color: var(--text-1);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-full);
  padding: 11px 18px;
  width: 100%;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.input::placeholder { color: var(--text-3); }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(217, 164, 65, 0.14); }
.selectWrap { position: relative; }
.select { appearance: none; -webkit-appearance: none; padding-inline-end: 42px; cursor: pointer; height: 46px; }
.selectWrap .chevron { position: absolute; inset-inline-end: 14px; top: 50%; translate: 0 -50%; color: var(--text-3); pointer-events: none; }
textarea.input { border-radius: var(--radius-md); resize: vertical; }

/* ---------- شرائح ---------- */
.chipFilter {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-2);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 8px 18px;
  cursor: pointer;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease),
    background var(--dur) var(--ease), transform var(--dur) var(--ease);
  white-space: nowrap;
}
.chipFilter:hover { color: var(--text-1); border-color: var(--border-strong); transform: translateY(-1px); }
.chipFilterActive { color: var(--bg-deep); background: var(--accent-bright); border-color: var(--accent-bright); font-weight: 800; }

/* ---------- عناوين الصفحات ---------- */
.pageHeader { margin-bottom: var(--space-7); animation: rise-in 500ms var(--ease) both; }
.pageTitle { font-size: clamp(30px, 4.5vw, 44px); font-weight: 900; }
.pageSub { color: var(--text-3); font-size: 15.5px; margin-top: 8px; max-width: 60ch; }

@keyframes rise-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- القائمة العلوية ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 900;
  height: var(--nav-h);
  background: rgba(14, 12, 9, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; gap: var(--space-5); height: var(--nav-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.crest { color: var(--accent-bright); display: inline-flex; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--font-display); font-weight: 900; font-size: 17px; }
.brand-latin { font-size: 9.5px; letter-spacing: 3px; color: var(--text-3); font-family: var(--font-display); font-weight: 700; }
.links { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; }
.link {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-2);
  padding: 8px 13px;
  border-radius: var(--radius-full);
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.link:hover { color: var(--text-1); background: var(--surface-2); }
.link.active { color: var(--accent-bright); background: rgba(217, 164, 65, 0.1); }
.actions { display: flex; align-items: center; gap: 8px; }
.action-btn {
  position: relative;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 50%;
  color: var(--text-2);
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.action-btn:hover { color: var(--accent-bright); background: var(--surface-2); }
.badge {
  position: absolute;
  top: 0; inset-inline-end: 0;
  min-width: 17px; height: 17px;
  padding: 0 4px;
  display: grid; place-items: center;
  background: var(--accent);
  color: var(--bg-deep);
  border-radius: var(--radius-full);
  font-size: 10.5px;
  font-weight: 800;
  font-family: var(--font-display);
}
.avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--surface-3);
  border: 1px solid var(--border-strong);
  color: var(--accent-bright);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  overflow: hidden;
  transition: border-color var(--dur) var(--ease);
}
.avatar:hover { border-color: var(--accent); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.burger { display: none; width: 40px; height: 40px; place-items: center; border-radius: 50%; color: var(--text-2); }
.burger:hover { background: var(--surface-2); }

@media (max-width: 980px) {
  .links {
    position: fixed;
    inset-inline: 0;
    top: var(--nav-h);
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: rgba(14, 12, 9, 0.98);
    border-bottom: 1px solid var(--border);
    padding: var(--space-3);
    display: none;
    z-index: 900;
  }
  .links.open { display: flex; }
  .link { padding: 12px 16px; }
  .burger { display: grid; }
}

/* ---------- الفوتر ---------- */
.footer { border-top: 1px solid var(--border); background: rgba(14, 12, 9, 0.6); margin-top: var(--space-8); }
.footer-inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: var(--space-6); padding-block: var(--space-7); }
.footer-tag { color: var(--text-3); font-size: 13.5px; margin-top: var(--space-3); max-width: 30ch; line-height: 1.8; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-title { font-size: 14px; margin-bottom: 6px; }
.footer-col a { color: var(--text-3); font-size: 13.5px; transition: color var(--dur) var(--ease); }
.footer-col a:hover { color: var(--accent-bright); }
.footer-note { color: var(--text-3); font-size: 12.5px; }
.footer-bottom { border-top: 1px solid var(--border); padding-block: var(--space-4); color: var(--text-3); font-size: 13px; }
@media (max-width: 800px) { .footer-inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-inner { grid-template-columns: 1fr; } }

/* ---------- الشبكات ---------- */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
@media (max-width: 1024px) { .grid, .news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid, .news-grid { grid-template-columns: 1fr; } }

/* ---------- بطاقة لعبة ---------- */
.game-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.game-card:hover { transform: translateY(-4px); border-color: var(--accent-deep); box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28); }
.game-card-cover { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-deep); }
.game-card-img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur) var(--ease); }
.game-card:hover .game-card-img { transform: scale(1.05); }
.game-card-grad { position: absolute; inset: 0; display: grid; place-items: center; }
.game-card-emblem { font-family: var(--font-display); font-weight: 900; font-size: 52px; color: rgba(255, 255, 255, 0.22); }
.game-card-shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(9, 12, 20, 0.75));
  pointer-events: none;
}
.game-card-year {
  position: absolute;
  top: 10px; inset-inline-start: 10px;
  font-size: 11.5px;
  font-weight: 800;
  font-family: var(--font-display);
  background: rgba(9, 12, 20, 0.72);
  border: 1px solid rgba(245, 239, 226, 0.14);
  border-radius: var(--radius-full);
  padding: 3px 10px;
  color: var(--text-1);
  backdrop-filter: blur(4px);
}
.game-card-wish {
  position: absolute;
  top: 10px; inset-inline-end: 10px;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(9, 12, 20, 0.72);
  border: 1px solid rgba(245, 239, 226, 0.14);
  color: var(--text-2);
  backdrop-filter: blur(4px);
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.game-card-wish:hover { color: var(--danger); transform: scale(1.08); }
.game-card-wish.on { color: var(--danger); border-color: rgba(192, 96, 79, 0.6); }
.game-card-body { display: flex; flex-direction: column; gap: 6px; padding: var(--space-4); flex: 1; }
.game-card-title { font-size: 14.5px; font-weight: 800; line-height: 1.4; color: var(--text-1); }
.game-card-meta { color: var(--text-3); font-size: 12.5px; }
.game-card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 6px; }
.game-card-rating { display: inline-flex; align-items: center; gap: 5px; color: var(--accent-bright); font-size: 13px; font-weight: 800; font-family: var(--font-display); }
.game-card-price { color: var(--text-3); font-size: 12.5px; font-weight: 700; }

/* ---------- بطاقة خبر ---------- */
.news-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.news-card:hover { transform: translateY(-4px); border-color: var(--accent-deep); }
.news-card-cover { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; }
.news-card-img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur) var(--ease); }
.news-card:hover .news-card-img { transform: scale(1.04); }
.news-card-grad { position: absolute; inset: 0; }
.news-card-cat {
  position: absolute;
  top: 10px; inset-inline-start: 10px;
  font-size: 11.5px;
  font-weight: 800;
  font-family: var(--font-display);
  color: var(--bg-deep);
  background: var(--accent-bright);
  border-radius: var(--radius-full);
  padding: 3px 10px;
}
.news-card-body { display: flex; flex-direction: column; gap: 8px; padding: var(--space-4); flex: 1; }
.news-card-date { display: inline-flex; align-items: center; gap: 6px; color: var(--text-3); font-size: 12px; }
.news-card-title { font-size: 15px; font-weight: 800; line-height: 1.5; }
.news-card-excerpt { color: var(--text-3); font-size: 13px; line-height: 1.8; }
.news-card-read { color: var(--accent-bright); font-size: 12.5px; font-weight: 700; margin-top: auto; }

/* ---------- رؤوس الأقسام ---------- */
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-4); margin-bottom: var(--space-6); flex-wrap: wrap; }
.sec-head-title { font-size: clamp(22px, 3vw, 28px); font-weight: 900; }
.sec-head-sub { color: var(--text-3); font-size: 13.5px; margin-top: 4px; }
.sec-head-link { display: inline-flex; align-items: center; gap: 6px; color: var(--accent-bright); font-family: var(--font-display); font-size: 13.5px; font-weight: 700; white-space: nowrap; transition: gap var(--dur) var(--ease); }
.sec-head-link:hover { gap: 10px; }

/* ---------- الهيرو ---------- */
.hero { padding-block: clamp(48px, 8vw, 96px); position: relative; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: var(--space-8); align-items: center; }
.hero-kicker { display: inline-flex; align-items: center; gap: 8px; color: var(--accent-bright); font-family: var(--font-display); font-weight: 700; font-size: 13.5px; }
.kicker-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 12px rgba(90, 168, 143, 0.8); }
.hero-title { font-size: clamp(38px, 6vw, 62px); font-weight: 900; line-height: 1.2; margin-top: var(--space-4); }
.hero-accent { color: var(--accent-bright); }
.hero-sub { color: var(--text-2); font-size: 16px; margin-top: var(--space-4); max-width: 46ch; line-height: 1.9; }
.hero-actions { display: flex; gap: var(--space-3); margin-top: var(--space-6); flex-wrap: wrap; }
.hero-stats { display: flex; gap: var(--space-7); margin-top: var(--space-7); flex-wrap: wrap; }
.hero-stats dt { font-family: var(--font-display); font-weight: 900; font-size: 26px; color: var(--accent-bright); }
.hero-stats dd { color: var(--text-3); font-size: 13px; margin: 0; }
.hero-visual { position: relative; }
.featured-card {
  display: block;
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-2);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.featured-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-glow); }
.featured-cover { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.featured-grad { position: absolute; inset: 0; }
.featured-info { position: absolute; inset-inline: 0; bottom: 0; padding: var(--space-5); background: linear-gradient(180deg, transparent, rgba(9, 12, 20, 0.9)); }
.featured-tag { display: inline-block; font-size: 11px; font-weight: 800; font-family: var(--font-display); color: var(--bg-deep); background: var(--accent-bright); border-radius: var(--radius-full); padding: 3px 10px; }
.featured-title { font-size: 26px; font-weight: 900; margin-top: 10px; }
.featured-meta { color: var(--text-2); font-size: 13px; margin-top: 6px; }
.featured-cta { display: inline-flex; align-items: center; gap: 6px; color: var(--accent-bright); font-family: var(--font-display); font-weight: 700; font-size: 14px; margin-top: var(--space-3); }
@media (max-width: 900px) { .hero-inner { grid-template-columns: 1fr; } .hero-visual { max-width: 380px; } }

/* ---------- الحالات الفارغة ---------- */
.empty { text-align: center; padding: var(--space-8) var(--space-5); border: 1px dashed var(--border-strong); border-radius: var(--radius-lg); }
.empty-icon { width: 64px; height: 64px; margin-inline: auto; display: grid; place-items: center; border-radius: 50%; background: var(--surface-2); color: var(--accent-bright); }
.empty-title { font-size: 19px; font-weight: 800; margin-top: var(--space-4); }
.empty-text { color: var(--text-3); font-size: 14px; margin-top: 8px; max-width: 46ch; margin-inline: auto; }
.empty-action { margin-top: var(--space-5); }

/* ---------- الترقيم ---------- */
.pagination { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: var(--space-6); flex-wrap: wrap; }
.page-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 10px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
  font-family: var(--font-display); font-size: 14px; font-weight: 700;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.page-btn:hover:not(:disabled) { color: var(--accent-bright); border-color: var(--accent-deep); transform: translateY(-1px); }
.page-btn.active { background: var(--accent-deep); border-color: var(--accent-deep); color: var(--bg-deep); }
.page-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.page-gap { color: var(--text-3); padding: 0 4px; }

/* ---------- أدوات صفحات الفلترة ---------- */
.toolbar { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 12px; margin-bottom: var(--space-5); }
.search-wrap { position: relative; }
.search-wrap .search-icon { position: absolute; inset-inline-start: 16px; top: 50%; translate: 0 -50%; color: var(--text-3); pointer-events: none; }
.search-wrap .search-input { padding-inline-start: 44px; }
.chips-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: var(--space-6); }
.results-row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); margin-bottom: var(--space-5); padding-bottom: var(--space-4); border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.count { display: inline-flex; align-items: center; gap: 8px; color: var(--text-3); font-size: 14px; }
.page-info { color: var(--text-3); font-size: 12.5px; padding-inline-start: 10px; margin-inline-start: 10px; border-inline-start: 1px solid var(--border); }
.clear-btn { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-display); font-size: 13px; font-weight: 700; color: var(--text-3); transition: color var(--dur) var(--ease); }
.clear-btn:hover { color: var(--accent-bright); }
@media (max-width: 1024px) { .toolbar { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .toolbar { grid-template-columns: 1fr; } }

/* ---------- مكتشف الألعاب ---------- */
.finder {
  background:
    radial-gradient(420px 200px at 90% 0%, rgba(217, 164, 65, 0.12), transparent 60%),
    var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  margin-bottom: var(--space-6);
}
.finder-head { display: flex; align-items: flex-start; gap: 14px; }
.finder-badge { width: 42px; height: 42px; flex-shrink: 0; display: grid; place-items: center; border-radius: var(--radius-md); color: var(--accent-bright); background: rgba(217, 164, 65, 0.12); border: 1px solid rgba(217, 164, 65, 0.3); }
.finder-title { font-size: 18px; font-weight: 900; }
.finder-sub { color: var(--text-3); font-size: 13px; margin-top: 3px; }
.finder-form { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin-top: var(--space-4); }
.finder-results { margin-top: var(--space-5); border-top: 1px solid var(--border); padding-top: var(--space-5); }
.finder-note { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-display); font-size: 13px; font-weight: 700; color: var(--accent-bright); margin-bottom: var(--space-4); }
.finder-item { display: flex; flex-direction: column; gap: 8px; }
.finder-reasons { display: flex; flex-wrap: wrap; gap: 6px; }
.finder-reasons li { font-size: 11.5px; font-weight: 700; color: var(--text-2); background: rgba(217, 164, 65, 0.08); border: 1px solid rgba(217, 164, 65, 0.22); border-radius: var(--radius-full); padding: 3px 10px; }
@media (max-width: 768px) { .finder-form { grid-template-columns: 1fr; } }

/* ---------- صفحة لعبة ---------- */
.detail-hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--border); padding-block: var(--space-7); }
.detail-bg { position: absolute; inset: 0; }
.detail-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.32; }
.detail-bg-fade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14, 12, 9, 0.55), var(--bg-base) 92%); }
.detail-inner { position: relative; display: grid; grid-template-columns: 280px 1fr; gap: var(--space-6); align-items: end; }
.detail-cover { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border-strong); box-shadow: var(--shadow-2); aspect-ratio: 16 / 9; position: relative; background: var(--bg-deep); }
.detail-cover img { width: 100%; height: 100%; object-fit: cover; }
.detail-grad { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-display); font-weight: 900; font-size: 60px; color: rgba(255, 255, 255, 0.22); }
.detail-title { font-size: clamp(28px, 4vw, 42px); font-weight: 900; }
.detail-arabic { color: var(--text-3); font-size: 15px; margin-top: 4px; }
.detail-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--space-4); }
.chip { font-size: 12px; font-weight: 800; font-family: var(--font-display); color: var(--text-2); background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border); border-radius: var(--radius-full); padding: 4px 12px; }
.chip-accent { color: var(--bg-deep); background: var(--accent-bright); border-color: var(--accent-bright); }
.chip-signal { color: #d8f0e6; background: rgba(90, 168, 143, 0.16); border-color: rgba(90, 168, 143, 0.4); }
.detail-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-3); margin-top: var(--space-6); }
.stat-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: var(--space-4); }
.stat-box b { display: block; font-family: var(--font-display); font-size: 17px; font-weight: 900; color: var(--accent-bright); }
.stat-box span { color: var(--text-3); font-size: 12px; }
.detail-actions { display: flex; gap: var(--space-3); margin-top: var(--space-5); flex-wrap: wrap; }
@media (max-width: 800px) { .detail-inner { grid-template-columns: 1fr; } .detail-cover { max-width: 400px; } .detail-stats { grid-template-columns: repeat(2, 1fr); } }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-top: var(--space-6); overflow-x: auto; }
.tab-btn {
  font-family: var(--font-display); font-size: 14px; font-weight: 800;
  color: var(--text-3);
  padding: 12px 18px;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
  display: inline-flex; align-items: center; gap: 7px;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.tab-btn:hover { color: var(--text-1); }
.tab-btn.active { color: var(--accent-bright); border-bottom-color: var(--accent); }
.tab-panel { padding-block: var(--space-6); animation: rise-in 350ms var(--ease) both; }
.tab-panel[hidden] { display: none; }
.block-title { font-size: 20px; font-weight: 900; margin-bottom: var(--space-4); }
.detail-desc { color: var(--text-2); font-size: 14.5px; line-height: 2; max-width: 75ch; }
.about-list { margin-top: var(--space-4); display: flex; flex-direction: column; gap: 10px; }
.about-list li { color: var(--text-2); font-size: 14px; line-height: 1.9; padding-inline-start: 20px; position: relative; }
.about-list li::before { content: ""; position: absolute; inset-inline-start: 0; top: 0.65em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-4); }
.fact { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: var(--space-4); }
.fact-label { color: var(--text-3); font-size: 12px; }
.fact-value { font-size: 14.5px; font-weight: 700; margin-top: 4px; }
@media (max-width: 600px) { .facts { grid-template-columns: 1fr; } }

.shots-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-4); }
.shots-grid img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius-md); border: 1px solid var(--border); }
@media (max-width: 600px) { .shots-grid { grid-template-columns: 1fr; } }

.req-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: var(--space-5); margin-bottom: var(--space-4); }
.req-box h3 { font-size: 15px; margin-bottom: var(--space-3); color: var(--accent-bright); }
.req-box p { color: var(--text-2); font-size: 13.5px; line-height: 2; white-space: pre-line; }

.stores-row { display: flex; flex-wrap: wrap; gap: 10px; }
.store-link { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-display); font-weight: 700; font-size: 13.5px; color: var(--text-2); border: 1px solid var(--border-strong); border-radius: var(--radius-full); padding: 9px 18px; transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.store-link:hover { color: var(--accent-bright); border-color: var(--accent); }