/* Tarbe3a — موقع اللعبة. الألوان من بيت الشعر والسدو: ليل المجلس، أحمر الفوّة، ذهب الدلة، رمل، وعظمي */
@font-face { font-family: "Reem Kufi"; font-weight: 500; font-display: swap; src: url(/a/f/reem-kufi-arabic-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Reem Kufi"; font-weight: 700; font-display: swap; src: url(/a/f/reem-kufi-arabic-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Plex Arabic"; font-weight: 400; font-display: swap; src: url(/a/f/ibm-plex-sans-arabic-arabic-400-normal.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F; }
@font-face { font-family: "Plex Arabic"; font-weight: 600; font-display: swap; src: url(/a/f/ibm-plex-sans-arabic-arabic-600-normal.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F; }
@font-face { font-family: "Plex Arabic"; font-weight: 400; font-display: swap; src: url(/a/f/ibm-plex-sans-arabic-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC; }
@font-face { font-family: "Plex Arabic"; font-weight: 600; font-display: swap; src: url(/a/f/ibm-plex-sans-arabic-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC; }

:root {
  --night: #1e0f08;      /* ليل المجلس */
  --night-2: #2c170c;
  --madder: #a3291f;     /* أحمر السدو */
  --gold: #d9a646;       /* ذهب الدلة */
  --gold-hi: #f0cd7c;
  --sand: #ead8b3;       /* رمل */
  --bone: #f7efdd;       /* عظمي */
  --ink: #120804;
  --muted: #c4ad86;
  --display: "Reem Kufi", "Plex Arabic", system-ui, sans-serif;
  --body: "Plex Arabic", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--night);
  color: var(--sand);
  font: 400 1.0625rem/1.85 var(--body);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-hi); text-underline-offset: 3px; }
a:hover { color: var(--bone); }
:focus-visible { outline: 3px solid var(--gold-hi); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); color: var(--bone); line-height: 1.25; margin: 0; font-weight: 700; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.3rem; font-weight: 500; }
p { margin: 0; }

.skip { position: absolute; inset-inline-start: 8px; top: -60px; background: var(--gold); color: var(--ink); padding: 8px 14px; border-radius: 6px; z-index: 10; }
.skip:focus { top: 8px; }

/* ---------- الشريط العلوي ---------- */
.top {
  display: flex; align-items: center; gap: 24px;
  max-width: var(--wrap); margin: 0 auto; padding: 18px var(--gutter);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img:first-child { border-radius: 50%; }
.top nav { display: flex; gap: 22px; margin-inline-start: auto; }
.top nav a { color: var(--sand); text-decoration: none; font-weight: 600; font-size: .98rem; }
.top nav a:hover { color: var(--gold-hi); }

/* ---------- الأزرار ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: linear-gradient(#e7bb5e, #b9862f);
  color: var(--ink); text-decoration: none; font-weight: 600;
  padding: 12px 22px; border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 2px 0 #7a5418;
}
.btn:hover { color: var(--ink); filter: brightness(1.06); }
.btn:active { transform: translateY(1px); box-shadow: inset 0 1px 0 rgba(255,255,255,.45); }
.btn-small { padding: 8px 16px; font-size: .95rem; }
.store { padding: 10px 18px 10px 20px; min-width: 200px; }
.store svg { width: 26px; height: 26px; fill: currentColor; flex: none; }
.store.play-web span { direction: rtl; }
.store span { display: flex; flex-direction: column; line-height: 1.2; font-size: 1.15rem; font-family: var(--body); direction: ltr; text-align: start; }
.store small { font-size: .78rem; font-weight: 400; direction: rtl; }
.store[aria-disabled="true"] { background: transparent; color: var(--muted); box-shadow: inset 0 0 0 1.5px rgba(234,216,179,.35); pointer-events: none; }

/* ---------- البداية ---------- */
.hero {
  max-width: var(--wrap); margin: 0 auto;
  padding: clamp(24px, 5vw, 64px) var(--gutter) clamp(56px, 8vw, 96px);
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(24px, 4vw, 56px); align-items: center;
}
.hero h1 { font-size: clamp(2.6rem, 6.4vw, 4.9rem); line-height: 1.12; letter-spacing: 0; color: var(--bone); }
.lede { margin-top: 20px; max-width: 34em; color: var(--sand); font-size: 1.12rem; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.live { margin-top: 18px; display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .95rem; }
.live[hidden] { display: none; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: #5fd068; box-shadow: 0 0 0 4px rgba(95,208,104,.18); }

.hero-art { position: relative; padding-bottom: 60px; }
.device {
  position: relative; border-radius: 26px; padding: 10px;
  background: linear-gradient(145deg, #3a2414, #120804);
  box-shadow: 0 30px 60px rgba(0,0,0,.55), inset 0 0 0 1px rgba(240,205,124,.25);
}
.device img { border-radius: 18px; width: 100%; }
.host {
  position: absolute; width: 27%; inset-inline-end: -6%; bottom: 0;
  filter: drop-shadow(0 18px 24px rgba(0,0,0,.55));
}

/* اليد: خمس ورقات بتنفرد مرة وحدة عند التحميل */
.hand { position: absolute; inset-inline-start: -3%; bottom: 0; width: 46%; height: 150px; }
.card {
  --w: clamp(58px, 7.2vw, 86px);
  position: absolute; left: 50%; bottom: 0;
  width: var(--w); aspect-ratio: 5 / 7; margin-left: calc(var(--w) / -2);
  background: var(--bone); border-radius: 8px;
  box-shadow: 0 6px 14px rgba(0,0,0,.45), inset 0 0 0 1px #bdb4a0;
  transform-origin: 50% 120%;
  transform: rotate(calc(var(--i) * 9deg)) translateY(calc(var(--i) * var(--i) * 2px));
  animation: deal .9s cubic-bezier(.2,.8,.2,1) both;
  animation-delay: calc(.35s + (var(--i) + 2) * .07s);
  direction: ltr;
}
.c1 { --i: -2; } .c2 { --i: -1; } .c3 { --i: 0; } .c4 { --i: 1; } .c5 { --i: 2; }
.card b { position: absolute; top: 4px; left: 7px; font: 600 1.1rem/1 var(--body); }
.card i { position: absolute; top: 22px; left: 7px; font-style: normal; font-size: .95rem; line-height: 1; }
.card::after { content: attr(data-s); position: absolute; inset: 0; display: grid; place-items: center; font-size: calc(var(--w) * .5); line-height: 1; padding-top: 10%; }
.card.black { color: #17120c; }
.card.red { color: #b3221a; }
@keyframes deal {
  from { transform: rotate(0deg) translateY(30px); opacity: 0; }
  30% { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) { .card { animation: none; } }

/* ---------- شريط السدو ---------- */
.sadu {
  height: 34px;
  background-color: var(--madder);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='34' viewBox='0 0 48 34'%3E%3Crect width='48' height='4' fill='%23120804'/%3E%3Crect y='30' width='48' height='4' fill='%23120804'/%3E%3Cpath d='M0 4h12L6 11zM12 4h12l-6 7zM24 4h12l-6 7zM36 4h12l-6 7z' fill='%23f7efdd'/%3E%3Cpath d='M0 30h12L6 23zM12 30h12l-6-7zM24 30h12l-6-7zM36 30h12l-6-7z' fill='%23f7efdd'/%3E%3Cpath d='M24 11l6 6-6 6-6-6z' fill='%23120804'/%3E%3Cpath d='M24 14l3 3-3 3-3-3z' fill='%23d9a646'/%3E%3Cpath d='M0 11l6 6-6 6M48 11l-6 6 6 6' fill='%23120804'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-size: 48px 34px;
}

/* ---------- الألعاب ---------- */
.games, .majlis, .faq { max-width: var(--wrap); margin: 0 auto; padding: clamp(56px, 8vw, 104px) var(--gutter) 0; }
.sub { margin-top: 10px; color: var(--muted); max-width: 40em; }
.game-list { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 0 48px; }
.game-list li { display: flex; gap: 18px; padding: 24px 0; border-top: 1px solid rgba(234,216,179,.16); }
.suit { flex: none; width: 46px; height: 46px; display: grid; place-items: center; font-size: 1.7rem; color: var(--bone); background: var(--night-2); border-radius: 10px; box-shadow: inset 0 0 0 1px rgba(240,205,124,.22); }
.suit.red { color: #e0574b; }
.game-list p { margin-top: 6px; max-width: 32em; }
.vars { display: flex; flex-wrap: wrap; gap: 6px; }
.vars span { font-size: .85rem; padding: 1px 10px; border-radius: 999px; background: rgba(217,166,70,.14); color: var(--gold-hi); }

/* ---------- الجلسة ---------- */
.feat { margin-top: 36px; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.feat-text h3 { margin-top: 26px; color: var(--gold-hi); }
.feat-text h3:first-child { margin-top: 0; }
.feat-text p { margin-top: 4px; max-width: 30em; }
.feat-shot { margin: 0; position: sticky; top: 24px; }
.feat-shot img { border-radius: 16px; box-shadow: 0 24px 50px rgba(0,0,0,.5), inset 0 0 0 1px rgba(240,205,124,.2); }

.gallery {
  margin: 56px calc(-1 * var(--gutter)) 0; padding: 0 var(--gutter) 12px;
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 42%); gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  scrollbar-color: var(--gold) transparent;
}
.gallery figure { margin: 0; scroll-snap-align: start; }
.gallery img { border-radius: 12px; }
.gallery figcaption { margin-top: 8px; color: var(--muted); font-size: .95rem; }

/* ---------- لعب نظيف ---------- */
.fair {
  max-width: var(--wrap); margin: clamp(56px, 8vw, 104px) auto 0; padding: 0 var(--gutter);
  display: flex; gap: clamp(20px, 4vw, 48px); align-items: center;
}
.fair img { width: clamp(80px, 12vw, 130px); flex: none; filter: drop-shadow(0 10px 18px rgba(0,0,0,.5)); }
.fair ul { margin: 14px 0 0; padding-inline-start: 1.2em; }
.fair li { margin-top: 6px; }
.fair li::marker { color: var(--gold); }

/* ---------- أسئلة ---------- */
.faq h2 { margin-bottom: 24px; }
.faq details { border-top: 1px solid rgba(234,216,179,.16); max-width: 50em; }
.faq details:last-of-type { border-bottom: 1px solid rgba(234,216,179,.16); }
.faq summary { cursor: pointer; padding: 18px 0; font-weight: 600; color: var(--bone); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-size: 1.4rem; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 20px; max-width: 42em; }

/* ---------- الدعوة الأخيرة ---------- */
.cta {
  margin-top: clamp(64px, 9vw, 112px);
  padding: clamp(72px, 12vw, 150px) var(--gutter);
  text-align: center;
  background: linear-gradient(rgba(30,15,8,.55), rgba(30,15,8,.82)), url(/a/i/tent.webp) center / cover no-repeat;
}
.cta h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.cta p { margin: 12px auto 28px; color: var(--sand); }

/* ---------- الأسفل ---------- */
footer { max-width: var(--wrap); margin: 0 auto; padding: 40px var(--gutter) 56px; display: grid; gap: 14px; justify-items: start; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
footer nav a { color: var(--sand); }
.fine { color: var(--muted); font-size: .88rem; }

/* ---------- الجوال ---------- */
@media (max-width: 900px) {
  .hero, .feat { grid-template-columns: 1fr; }
  .hero-art { margin-top: 12px; }
  .feat-shot { position: static; order: -1; }
  .gallery { grid-auto-columns: minmax(260px, 80%); }
}
@media (max-width: 640px) {
  .top { gap: 12px; }
  .top nav { display: none; }
  .btn-small { margin-inline-start: auto; }
  .brand .wm { width: 104px; }
  .store { flex: 1 1 100%; justify-content: center; }
  .hand { height: 110px; width: 60%; }
  .host { width: 30%; inset-inline-end: -2%; }
  .fair { flex-direction: column; align-items: flex-start; }
}
