/* ═══════════════════════════════════════════════════════════════════════════
 * b3.css — دیزاین‌سیستم بت ۳۰۳
 *
 * همه‌ی مقدارهای این فایل از خودِ www.bet303.com/fa/ اندازه‌گیری شده‌اند:
 * توکن‌های رنگ و شعاع عیناً همان custom propertyهای ریشه‌ی سایت مرجع‌اند
 * (‎--b, --hero, --brand, --oc-2, --oc-3, --border-radius…) و اندازه‌ها از
 * getBoundingClientRect خودِ کامپوننت‌ها در ۱۴۴۰px و ۳۹۰px گرفته شده‌اند:
 *
 *   هدر ۵۶px + نوار منو ۳۶px         ظرف: عرض ویوپورت منهای ۲۰px، سقف ۱۶۰۰
 *   بنر ۱۴۲۰×۳۶۲ (نسبت ۳۲۲۰/۸۲۰)      فاصله‌ی ردیف‌ها ۳۲px
 *   استوری ۹۰×۹۰، گپ ۲۴              کاشی ۱۶۹×۸۹ ×۸ ستون، گپ ۱۰
 *   کارت بازی ۲۷۱×۱۹۱ شعاع ۸         عنوان بخش ۱۸px، گپ ۱۶ تا محتوا
 *   موبایل: ۴۹px هدر + ۴۰px نوار      کارت ۱۵۰×۱۰۶، کاشی ۸۸×۴۶ ۴ستونه
 * ═══════════════════════════════════════════════════════════════════════════ */

@font-face { font-family: Roboto; font-weight: 500; font-display: swap;
  src: url(/b303/fonts/default/Roboto-Medium.woff2) format('woff2'); }
@font-face { font-family: Roboto; font-weight: 700; font-display: swap;
  src: url(/b303/fonts/default/Roboto-Bold.woff2) format('woff2'); }

:root {
  /* ── پالت: عیناً توکن‌های ریشه‌ی bet303 ─────────────────────────────── */
  --b: #1c1e23;              /* --b            پس‌زمینه‌ی سراسری   */
  --b-hover: #32363f;        /* --b-hover      سطح بالاتر          */
  --surface: #24262b;        /* سطح میانی کارت‌ها                  */
  --surface-2: #2a2d33;
  --line: #34373f;
  --hero: #75ef51;           /* --hero         سبز اصلی            */
  --hero-hover: #4fea22;
  --brand: #16c72e;          /* --brand                            */
  --brand-hover: #109923;
  --accent: #eb893e;         /* --accent                           */
  --oc-2: #f9d849;           /* زرد                                */
  --oc-3: #ff3449;           /* قرمز                               */
  --warning: #ffad29;
  --info: #0f63e1;
  --hot: #e32020;            /* رنگ نمونه‌برداری‌شده‌ی برچسب «داغ»  */
  --new-a: #7c194e;          /* گرادیان برچسب «جدید»               */
  --new-b: #5c1b40;
  --free: #1077c3;           /* برچسب «رایگان»                     */
  --static-black: #000205;
  --menu: #fff;
  --menu-sc: #000205;

  --txt: #fff;
  --txt-2: #b9bec7;
  --txt-3: #878d99;

  /* ── شعاع: --border-radius* خودِ سایت ──────────────────────────────── */
  --r-xs: 4px;
  --r: 5px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 20px;
  --r-full: 999px;

  /* ── چیدمان ────────────────────────────────────────────────────────── */
  --wrap: 1600px;
  --pad: 10px;
  --hdr-h: 56px;
  --nav-h: 36px;
  --row-gap: 32px;
  --btn-h: 40px;
  /* Roboto از زنجیره‌ی متنِ فارسی برداشته شد: Vazirmatn کل فارسی و لاتینِ
     بدنه را پوشش می‌دهد، پس این fallback هیچ‌وقت به کار نمی‌آمد ولی وزن ۴۰۰
     (۷۰KB) را وارد صفحه می‌کرد. Roboto فقط جایی می‌ماند که *صریح* صدا زده
     شده (ضریب‌ها و بَجِ‌های لاتین، وزن ۵۰۰ و ۷۰۰). */
  --fa: Vazirmatn, Tahoma, system-ui, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--b); color: var(--txt);
  font: 400 14px/1.7 var(--fa); overflow-x: hidden;
}
img, picture, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
:where(a, button, summary, input, textarea, select, [tabindex]):focus-visible {
  outline: 2px solid var(--hero); outline-offset: 2px; border-radius: var(--r-xs);
}
.b3-sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.b3-skip {
  position: absolute; inset-inline-start: -9999px; top: 0; z-index: 999;
  background: var(--hero); color: var(--static-black); padding: 10px 18px;
  font-weight: 700; border-radius: 0 0 var(--r) var(--r);
}
.b3-skip:focus { inset-inline-start: 0; }

/* ظرف اصلی — عرض ویوپورت منهای ۲۰px، با سقف ۱۶۰۰ */
.b3-wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }

/* ═══════════════════════════════════ هدر ═══════════════════════════════
 * ردیف ۱: ارتفاع ۵۶px، پس‌زمینه‌ی --b. لوگو سمت راست (۲۰۰×۵۶)،
 * ورود/ثبت‌نام + انتخاب زبان + ساعت + کلید پنل سمت چپ.
 * ═══════════════════════════════════════════════════════════════════════ */
.b3-hdr { position: sticky; top: 0; z-index: 70; background: var(--b); }
.b3-hdr__main {
  max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad);
  height: var(--hdr-h); display: flex; align-items: center; gap: 10px;
}
.b3-hdr__logo { display: flex; align-items: center; }
.b3-hdr__logo img { width: 200px; height: 40px; object-fit: contain; object-position: right center; }
.b3-hdr__chat {
  margin-inline-end: auto; width: 28px; height: 28px; border-radius: 50%;
  background: var(--hero); color: var(--static-black);
  display: grid; place-items: center; flex: 0 0 auto;
}
.b3-hdr__chat svg { width: 16px; height: 16px; fill: currentColor; }
.b3-hdr__chat:hover { background: var(--hero-hover); }

.b3-hdr__auth { display: flex; align-items: center; gap: 6px; }
.b3-btn-s {
  height: 28px; padding: 0 12px; border-radius: var(--r); border: 0;
  display: inline-flex; align-items: center; font-size: 13px; font-weight: 500;
  white-space: nowrap; cursor: pointer; background: transparent; color: #fff;
}
.b3-btn-s--ghost:hover { color: var(--hero); }
.b3-btn-s--green { background: var(--hero); color: var(--static-black); font-weight: 700; }
.b3-btn-s--green:hover { background: var(--hero-hover); }

.b3-hdr__lang {
  display: flex; align-items: center; gap: 6px; height: 36px; padding-inline: 8px;
  border-radius: var(--r); color: #fff; font-size: 13px;
}
.b3-hdr__lang img { width: 22px; height: 14px; border-radius: 2px; }
.b3-hdr__lang::after {
  content: ''; width: 0; height: 0; margin-inline-start: 2px;
  border: 4px solid transparent; border-top-color: currentColor; margin-top: 4px;
}
.b3-hdr__time {
  height: 28px; padding: 0 10px; border-radius: var(--r);
  background: rgba(255, 255, 255, .08); color: #fff;
  font: 500 12px/28px Roboto, monospace; letter-spacing: .3px;
}
.b3-hdr__panelbtn {
  width: 34px; height: 28px; border-radius: var(--r); border: 0; cursor: pointer;
  background: rgba(255, 255, 255, .08); color: #fff; position: relative;
  display: grid; place-items: center;
}
.b3-hdr__panelbtn::before {
  content: ''; width: 4px; height: 4px; border-radius: 50%; background: currentColor;
  box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor;
}
.b3-hdr__panelbtn span {
  position: absolute; top: -6px; inset-inline-start: -6px;
  min-width: 16px; height: 16px; padding: 0 4px; border-radius: var(--r-full);
  background: var(--hero); color: var(--static-black);
  font: 700 10px/16px Roboto, sans-serif; text-align: center;
}

/* پنل کناری — همان ریلِ عمودیِ ۵۰px سایت مرجع */
.b3-panel {
  position: fixed; inset-inline-start: 7px; top: calc(var(--hdr-h) + 4px); z-index: 80;
  width: 50px; background: var(--b); border-radius: var(--r);
  box-shadow: 0 8px 28px rgba(0, 0, 0, .55); overflow: hidden;
}
.b3-panel[hidden] { display: none; }
.b3-panel a {
  height: 56px; display: grid; place-items: center;
  background: rgba(255, 255, 255, .04); border-bottom: 1px solid rgba(255, 255, 255, .05);
}
.b3-panel a:last-child { border-bottom: 0; }
.b3-panel a:hover { background: var(--b-hover); }
.b3-panel svg { width: 18px; height: 18px; fill: #fff; }
.b3-panel a:hover svg { fill: var(--hero); }

/* ═══════════════════════════ نوار منو (سفید) ═══════════════════════════
 * ‎--menu: 255,255,255‎ و ‎--menu-sc: 0,2,5‎ — نوار منو در خودِ bet303 سفید
 * است با متن تیره. ارتفاع ۳۶px، شعاع ۵px، ۱۰px حاشیه از دو طرف.
 * ═══════════════════════════════════════════════════════════════════════ */
.b3-nav { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }
.b3-nav__in {
  background: var(--menu); border-radius: var(--r); height: var(--nav-h);
  display: flex; align-items: stretch; position: relative;
}
.b3-nav__list {
  list-style: none; margin: 0; padding: 0; display: flex; align-items: stretch;
  flex: 1; min-width: 0; overflow-x: auto; overflow-y: hidden;
  scrollbar-width: none; -ms-overflow-style: none; scroll-behavior: smooth;
}
.b3-nav__list::-webkit-scrollbar { display: none; }
.b3-nav__list > li { position: relative; flex: 0 0 auto; }
.b3-nav__link {
  height: var(--nav-h); padding: 0 12px; display: flex; align-items: center;
  color: var(--menu-sc); font-size: 13px; font-weight: 500; white-space: nowrap;
  border-radius: var(--r);
}
.b3-nav__link:hover { background: #e9e9e9; }
.b3-nav__list > li.is-active > .b3-nav__link,
.b3-nav__link[aria-current='page'] {
  background: linear-gradient(270deg, #3bff6a, #7cff45); color: var(--static-black); font-weight: 700;
}
/* برچسب‌های گوشه — همان سه رنگ سایت مرجع */
.b3-nav__tag {
  position: absolute; top: -1px; inset-inline-start: 4px; z-index: 2;
  padding: 0 5px; height: 13px; border-radius: 3px;
  font: 700 9px/13px var(--fa); color: #fff; pointer-events: none;
}
.b3-nav__tag--hot { background: var(--hot); }
.b3-nav__tag--new { background: linear-gradient(90deg, var(--new-a), var(--new-b)); }
.b3-nav__tag--free { background: var(--free); }

/* زیرمنوی کشویی — ۲۳۵px عرض، شعاع پایین ۵px */
.b3-nav__sub {
  position: absolute; top: var(--nav-h); inset-inline-end: 0; z-index: 30;
  min-width: 235px; margin: 0; padding: 10px; list-style: none;
  background: var(--menu); border-radius: 0 0 var(--r) var(--r);
  box-shadow: 0 10px 26px rgba(0, 0, 0, .45);
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity .16s, transform .16s, visibility .16s;
}
.b3-nav__list > li:hover > .b3-nav__sub,
.b3-nav__list > li:focus-within > .b3-nav__sub {
  opacity: 1; visibility: visible; transform: none;
}
.b3-nav__sub a {
  display: block; height: 34px; line-height: 34px; padding-inline: 10px;
  border-radius: var(--r); color: var(--menu-sc); font-size: 13px; white-space: nowrap;
}
.b3-nav__sub a:hover { background: #e9e9e9; color: var(--brand-hover); }

.b3-nav__more {
  flex: 0 0 auto; display: flex; align-items: center; gap: 8px;
  padding: 0 14px; color: var(--menu-sc); font-size: 13px; font-weight: 500;
  border-inline-end: 1px solid #e2e2e2;
}
.b3-nav__more:hover { color: var(--brand-hover); }
.b3-nav__more i {
  width: 14px; height: 14px; flex: 0 0 auto;
  background-image: radial-gradient(currentColor 42%, transparent 44%);
  background-size: 5px 5px; background-position: 0 0;
}

/* ═════════════════════════════ نوار بالای موبایل ═══════════════════════
 * سه دکمه‌ی قرصی‌شکل ۱۲۰×۲۸ با گپ ۱۰ و پدینگ ۱۰/۵ — عیناً hdr-dynamic-content
 * ═══════════════════════════════════════════════════════════════════════ */
.b3-quick { display: none; }
.b3-quick__in {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 10px 5px;
}
.b3-quick a {
  height: 28px; border-radius: var(--r); display: flex; align-items: center;
  justify-content: center; gap: 6px; font-size: 11px; font-weight: 700; color: #fff;
  background: #16181c;
  border: 1px solid transparent;
  background-image: linear-gradient(#16181c, #16181c),
    linear-gradient(90deg, var(--oc-2), var(--hero));
  background-origin: border-box; background-clip: padding-box, border-box;
}
.b3-quick i {
  width: 18px; height: 18px; border-radius: 3px; display: grid; place-items: center;
  background: var(--hero); flex: 0 0 auto;
}
.b3-quick svg { width: 12px; height: 12px; fill: var(--static-black); }

/* ═══════════════════════════════ ردیف‌های صفحه ═════════════════════════ */
.b3-rows { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }
.b3-row { margin-top: var(--row-gap); }
.b3-row:first-child { margin-top: var(--row-gap); }

/* سرِ بخش: h2 ۱۸px، بلوک ۳۲px، ۱۶px فاصله تا محتوا */
.b3-secttl {
  height: 32px; display: flex; align-items: center; gap: 12px; margin-bottom: 16px;
}
/* .b3-secttl__t جایگزین h2ِ قبلی است (نگاه کنید به secTitle در html.mjs):
   همان استایل، ولی بدون این‌که یک هدینگ بالاتر از h1 صفحه بنشیند. */
.b3-secttl h2, .b3-secttl h3, .b3-secttl__t {
  margin: 0; font-size: 18px; font-weight: 700; line-height: 24px; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.b3-secttl__more {
  margin-inline-start: auto; font-size: 13px; color: var(--txt-2);
  display: inline-flex; align-items: center; gap: 4px; white-space: nowrap;
}
.b3-secttl__more:hover { color: var(--hero); }
.b3-secttl__more::after { content: '‹'; font-size: 17px; line-height: 1; }

/* ═══════════════════════════════════ بنر ═══════════════════════════════
 * نسبت ۳۲۲۰/۸۲۰ — همان فایل‌های واقعی bet303. شمارنده‌ی «n / m» و دو فلش
 * در گوشه‌ی بالا-چپ، دقیقاً مثل سایت مرجع.
 * ═══════════════════════════════════════════════════════════════════════ */
.b3-hero { position: relative; border-radius: var(--r); overflow: hidden; }
.b3-hero__track { position: relative; aspect-ratio: 3220 / 820; }
.b3-hero__slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity .45s ease;
  pointer-events: none;
}
.b3-hero__slide.is-on { opacity: 1; pointer-events: auto; }
.b3-hero__slide img { width: 100%; height: 100%; object-fit: cover; }
.b3-hero__ui {
  position: absolute; top: 20px; inset-inline-start: 20px; z-index: 3;
  display: flex; align-items: center; gap: 6px;
}
.b3-hero__count {
  height: 22px; padding: 0 10px; border-radius: var(--r);
  background: rgba(0, 0, 0, .55); color: #fff;
  font: 500 12px/22px Roboto, sans-serif; direction: ltr;
}
.b3-hero__nav {
  width: 22px; height: 22px; border-radius: var(--r); border: 0; cursor: pointer;
  background: rgba(0, 0, 0, .55); color: #fff; display: grid; place-items: center;
  font-size: 13px; line-height: 1;
}
.b3-hero__nav:hover { background: rgba(0, 0, 0, .8); color: var(--hero); }
@media (prefers-reduced-motion: reduce) { .b3-hero__slide { transition: none; } }

/* ══════════════════════════ ردیف استوری (دایره‌ای) ═════════════════════
 * آیتم ۹۰×۱۲۶ با گپ ۲۴ و پدینگ ۴ — همان storiesWidget
 * ═══════════════════════════════════════════════════════════════════════ */
.b3-stories {
  display: flex; gap: 24px; padding: 4px; overflow-x: auto;
  scrollbar-width: none; justify-content: flex-start;
}
.b3-stories::-webkit-scrollbar { display: none; }
.b3-story {
  flex: 0 0 90px; width: 90px; display: flex; flex-direction: column;
  align-items: center; gap: 8px; text-align: center;
}
.b3-story__img {
  width: 90px; height: 90px; border-radius: 50%; padding: 3px;
  background: linear-gradient(150deg, var(--hero), var(--oc-2));
}
.b3-story__img img {
  width: 100%; height: 100%; border-radius: 50%; object-fit: cover;
  background: var(--static-black);
}
.b3-story span {
  font-size: 11px; font-weight: 500; color: #fff; line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.b3-story:hover .b3-story__img { background: linear-gradient(150deg, var(--oc-2), var(--hero)); }

/* ═════════════════════════════ کاشی‌های محصول ══════════════════════════
 * ۸ ستون، آیتم ۱۶۹×۸۹ (نسبت ۷۰۰/۳۷۰)، گپ ۱۰، شعاع ۵
 * ═══════════════════════════════════════════════════════════════════════ */
.b3-tiles { display: grid; grid-template-columns: repeat(8, 1fr); gap: 10px; }
.b3-tile {
  border-radius: var(--r); overflow: hidden; aspect-ratio: 700 / 370;
  transition: transform .18s;
}
.b3-tile img { width: 100%; height: 100%; object-fit: cover; }
.b3-tile:hover { transform: translateY(-2px); }

/* ═══════════════════════════════ کارت بازی ═════════════════════════════
 * ۲۷۱×۱۹۱ (نسبت ۴۴۰/۳۱۰)، شعاع ۸، گپ ۱۶ — همان casinoHorizontalGamesList
 * ═══════════════════════════════════════════════════════════════════════ */
.b3-gcard {
  position: relative; display: block; border-radius: var(--r-sm); overflow: hidden;
  background: var(--surface); aspect-ratio: 440 / 310;
  transition: transform .2s ease, box-shadow .2s ease;
}
.b3-gcard img { width: 100%; height: 100%; object-fit: cover; }
.b3-gcard:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0, 0, 0, .55); }
.b3-gcard__name {
  position: absolute; inset-inline: 0; bottom: 0; padding: 18px 10px 8px;
  background: linear-gradient(to top, rgba(0, 2, 5, .92), transparent);
  font-size: 13px; font-weight: 700; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.b3-gcard__badge {
  position: absolute; top: 6px; inset-inline-start: 6px; z-index: 2;
  height: 18px; padding: 0 7px; border-radius: var(--r-xs);
  font: 700 10px/18px var(--fa); color: #fff; background: var(--hot);
}
.b3-gcard__badge--new { background: linear-gradient(90deg, var(--new-a), var(--new-b)); }
.b3-gcard__badge--free { background: var(--free); }
.b3-gcard__badge--ex { background: var(--brand-hover); }
.b3-gcard[hidden] { display: none; }

/* ریل افقی کارت‌ها — ۵ تا در ۱۴۴۰ با گپ ۱۶ */
.b3-rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 4 * 16px) / 5);
  gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; padding-bottom: 2px;
}
.b3-rail::-webkit-scrollbar { display: none; }
.b3-rail > * { scroll-snap-align: start; }
/* ریلی که کمتر از ۵ کارت دارد نباید نیمی از عرض را خالی بگذارد */
.b3-rail[data-n='2'] { grid-auto-columns: calc((100% - 16px) / 2); }
.b3-rail[data-n='3'] { grid-auto-columns: calc((100% - 2 * 16px) / 3); }
.b3-rail[data-n='4'] { grid-auto-columns: calc((100% - 3 * 16px) / 4); }

/* شبکه‌ی کارت‌ها در صفحه‌های هاب */
.b3-gcards {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

/* ═══════════════════════════ کارت پهن (۴۶۳×۲۸۴) ════════════════════════ */
.b3-wide {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 2 * 16px) / 3);
  gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
}
.b3-wide::-webkit-scrollbar { display: none; }
.b3-wide > * { scroll-snap-align: start; }
.b3-wcard {
  display: flex; flex-direction: column; background: var(--surface);
  border-radius: var(--r); overflow: hidden; border: 1px solid var(--line);
  transition: border-color .18s;
}
.b3-wcard:hover { border-color: var(--hero); }
.b3-wcard__top {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  border-bottom: 1px dashed var(--line);
}
.b3-wcard__thumb {
  width: 96px; height: 68px; border-radius: var(--r-xs); object-fit: cover; flex: 0 0 auto;
}
.b3-wcard__ttl { display: block; font-size: 15px; font-weight: 700; color: #fff; }
.b3-wcard__sub { display: block; font-size: 12px; color: var(--txt-3); }
.b3-wcard__body { padding: 10px 12px; flex: 1; }
.b3-wcard__body p { margin: 0 0 10px; font-size: 13px; color: var(--txt-2); line-height: 1.85; }
.b3-wcard__facts { display: grid; gap: 5px; }
.b3-wcard__fact {
  font-size: 12px; color: var(--txt-2); padding-inline-start: 14px; position: relative;
}
.b3-wcard__fact::before {
  content: ''; position: absolute; inset-inline-start: 0; top: 8px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--hero);
}
.b3-wcard__foot { padding: 10px 12px; border-top: 1px solid var(--line); }
.b3-wcard__cta {
  display: block; height: 32px; line-height: 32px; text-align: center;
  border-radius: var(--r); background: rgba(255, 255, 255, .07); color: #fff;
  font-size: 13px; font-weight: 500;
}
.b3-wcard:hover .b3-wcard__cta { background: var(--hero); color: var(--static-black); }

/* ══════════════════════════════ کارت بونوس ═════════════════════════════ */
.b3-promos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.b3-promo {
  display: block; border-radius: var(--r); overflow: hidden; background: var(--surface);
  border: 1px solid var(--line); transition: border-color .18s, transform .18s;
}
.b3-promo:hover { border-color: var(--hero); transform: translateY(-2px); }
.b3-promo__pic { display: block; position: relative; aspect-ratio: 3220 / 820; }
.b3-promo__pic img { width: 100%; height: 100%; object-fit: cover; }
.b3-promo__kind {
  position: absolute; top: 8px; inset-inline-end: 8px; z-index: 2;
  height: 20px; padding: 0 8px; border-radius: var(--r-xs);
  background: rgba(0, 2, 5, .72); color: #fff; font: 500 11px/20px var(--fa);
}
.b3-promo__cap { padding: 10px 12px; }
.b3-promo__cap h3 { margin: 0 0 4px; font-size: 14px; font-weight: 700; color: #fff; }
.b3-promo__cap p { margin: 0; font-size: 12.5px; color: var(--txt-2); line-height: 1.8; }

/* ════════════════════════════ چیپ‌های فیلتر ════════════════════════════ */
.b3-chips {
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px;
}
.b3-chips::-webkit-scrollbar { display: none; }
.b3-chip {
  flex: 0 0 auto; height: 32px; padding: 0 14px; border-radius: var(--r);
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  background: var(--surface); border: 1px solid var(--line);
  color: var(--txt-2); font-size: 13px; font-weight: 500;
}
.b3-chip:hover { border-color: var(--hero); color: #fff; }
.b3-chip.is-on { background: var(--hero); border-color: var(--hero); color: var(--static-black); font-weight: 700; }

/* ══════════════════════════ نوارِ گروه (سبز) ═══════════════════════════
 * همان sg-head-bc: ارتفاع ۲۶، شعاع ۵، سبز #109121، متن ۱۳px
 * ═══════════════════════════════════════════════════════════════════════ */
.b3-group { margin-bottom: 8px; }
.b3-group__head {
  height: 26px; border-radius: var(--r); padding-inline: 10px;
  display: flex; align-items: center; gap: 8px;
  background: var(--brand-hover); color: #fff; font-size: 13px; font-weight: 700;
}
.b3-group__head--y { background: var(--warning); color: var(--static-black); }
.b3-group__head--o { background: #dac179; color: var(--static-black); }
.b3-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.b3-table th, .b3-table td {
  padding: 9px 10px; text-align: start; border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.b3-table thead th { color: var(--txt-3); font-weight: 500; font-size: 12px; }
.b3-table tbody tr { background: rgba(255, 255, 255, .02); }
.b3-table tbody tr:hover { background: rgba(255, 255, 255, .05); }
.b3-table a { color: #fff; font-weight: 500; }
.b3-table a:hover { color: var(--hero); }
.b3-table td b { color: var(--hero); font-weight: 700; }
.b3-tablewrap { overflow-x: auto; border-radius: var(--r); }
.b3-tablewrap table { min-width: 560px; }

/* ═══════════════════════════════════ فوتر ══════════════════════════════ */
.b3-foot { background: var(--b); margin-top: 40px; }
.b3-foot__in { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }
.b3-foot__bar {
  display: flex; align-items: center; gap: 12px; padding: 28px 0;
  border-top: 1px solid rgba(255, 255, 255, .07);
}
.b3-foot__social { margin-inline-start: auto; display: flex; gap: 10px; }
.b3-foot__social a {
  width: 32px; height: 32px; border-radius: var(--r); display: grid; place-items: center;
  background: var(--b-hover);
}
.b3-foot__social svg { width: 16px; height: 16px; fill: var(--hero); }
.b3-foot__social a:hover { background: var(--hero); }
.b3-foot__social a:hover svg { fill: var(--static-black); }

.b3-foot__cols {
  display: flex; flex-wrap: wrap; gap: 60px; padding: 32px 0 8px;
  justify-content: flex-start;
}
.b3-foot__col { min-width: 110px; }
.b3-foot__col h3 {
  margin: 0 0 12px; font-size: 12px; font-weight: 700; color: #fff;
  display: flex; align-items: center; gap: 6px;
}
.b3-foot__col h3 svg { width: 14px; height: 14px; fill: var(--txt-2); flex: 0 0 auto; }
.b3-foot__col ul { list-style: none; margin: 0; padding: 0; }
.b3-foot__col li { margin-bottom: 8px; }
.b3-foot__col a { font-size: 12.5px; color: var(--txt-2); }
.b3-foot__col a:hover { color: var(--hero); }

.b3-foot__apps { text-align: center; padding: 34px 0 42px; }
.b3-foot__apps h4 { margin: 0 0 16px; font-size: 15px; font-weight: 500; color: #fff; }
.b3-foot__apps div { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.b3-foot__apps img { width: 183px; height: 53px; border-radius: var(--r-xs); }
.b3-foot__apps a:hover img { outline: 1px solid var(--hero); }

.b3-foot__note {
  padding: 18px 0; border-top: 1px solid rgba(255, 255, 255, .07);
  color: var(--txt-3); font-size: 12.5px; line-height: 1.9;
}
.b3-foot__note a { color: var(--txt-2); text-decoration: underline; }
.b3-foot__note a:hover { color: var(--hero); }
.b3-foot__end {
  display: flex; align-items: center; gap: 12px; padding: 24px 0 32px;
  border-top: 1px solid rgba(255, 255, 255, .07);
  color: var(--txt-3); font-size: 12px;
}
.b3-foot__cr { margin-inline-start: auto; }
.b3-foot__18 {
  width: 26px; height: 26px; border-radius: 50%;
  border: 1px solid #d6479a; color: #d6479a; direction: ltr;
  font: 700 10px/24px Roboto, sans-serif; text-align: center; flex: 0 0 auto;
}

/* ═══════════════════════════════ محتوای صفحه ═══════════════════════════ */
.b3-main {
  max-width: var(--wrap); margin-inline: auto; padding: 0 var(--pad) 10px;
}
.b3-main--narrow { max-width: 1000px; }
.b3-crumb { font-size: 12.5px; color: var(--txt-3); padding: 14px 0 6px; }
.b3-crumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.b3-crumb li + li::before { content: '‹'; margin-inline-end: 6px; color: var(--txt-3); }
.b3-crumb a { color: var(--txt-2); }
.b3-crumb a:hover { color: var(--hero); }

.b3-h1 {
  font-size: clamp(20px, 3.2vw, 28px); font-weight: 700; color: #fff;
  margin: 8px 0 10px; line-height: 1.5;
  padding-inline-start: 12px; border-inline-start: 4px solid var(--hero);
}
.b3-lead { font-size: 15px; color: var(--txt-2); max-width: 78ch; margin: 0 0 8px; line-height: 1.95; }

.b3-sec { margin-top: var(--row-gap); }
.b3-sec__h {
  font-size: clamp(17px, 2.4vw, 21px); font-weight: 700; color: #fff;
  margin: 0 0 8px; line-height: 1.5; display: flex; align-items: center; gap: 9px;
}
.b3-sec__h::before {
  content: ''; width: 7px; height: 7px; border-radius: 2px; background: var(--hero);
  transform: rotate(45deg); flex: 0 0 auto;
}
.b3-sec__sub { color: var(--txt-2); margin: 0 0 14px; font-size: 14px; }

.b3-prose { color: #cdd2da; max-width: 82ch; font-size: 14.5px; line-height: 2; }
.b3-prose p { margin: 0 0 1em; }
.b3-prose h3 { font-size: 16px; font-weight: 700; color: var(--hero); margin: 22px 0 6px; }
.b3-prose h2 { font-size: 19px; font-weight: 700; color: #fff; margin: 26px 0 8px; }
.b3-prose b, .b3-prose strong { color: #fff; font-weight: 700; }
.b3-prose a { color: var(--hero); text-decoration: underline; text-underline-offset: 3px; }
.b3-prose ul, .b3-prose ol { margin: 0 0 1em; padding-inline-start: 1.3em; padding-inline-end: 0; }
.b3-prose li { margin-bottom: 7px; }
.b3-prose li::marker { color: var(--hero); }

.b3-note {
  border: 1px solid var(--line); border-inline-start: 3px solid var(--hero);
  background: var(--surface); border-radius: var(--r); padding: 12px 14px;
  margin: 16px 0; color: #cdd2da; font-size: 14px; line-height: 1.95;
}
.b3-note--warn { border-inline-start-color: var(--oc-3); }
.b3-note strong { color: #fff; }

.b3-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.b3-links a {
  display: block; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); padding: 11px 14px; color: #fff; font-weight: 700; font-size: 14px;
  transition: border-color .18s, background .18s;
}
.b3-links a span {
  display: block; font-weight: 400; font-size: 12.5px; color: var(--txt-2);
  line-height: 1.8; margin-top: 2px;
}
.b3-links a:hover { border-color: var(--hero); background: var(--surface-2); }

.b3-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.b3-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); padding: 14px 16px;
}
.b3-card__h { font-size: 15px; font-weight: 700; color: var(--hero); margin: 0 0 6px; }
.b3-card p { margin: 0; font-size: 13.5px; color: var(--txt-2); line-height: 1.9; }

.b3-steps { list-style: none; counter-reset: s; padding: 0 !important; margin: 0; }
.b3-steps li { counter-increment: s; position: relative; padding-inline-start: 44px; margin-bottom: 14px; }
.b3-steps li::before {
  content: counter(s); position: absolute; inset-inline-start: 0; top: 4px;
  width: 30px; height: 30px; border-radius: var(--r-sm); display: grid; place-items: center;
  background: var(--hero); color: var(--static-black); font-weight: 700; font-size: 14px;
}
.b3-steps li b { display: block; color: #fff; font-weight: 700; }
.b3-steps li span { display: block; color: var(--txt-2); font-size: 13.5px; }

.b3-btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: var(--btn-h); padding: 0 22px; border-radius: var(--r);
  font-weight: 700; font-size: 14px; border: 1px solid transparent; cursor: pointer;
}
.b3-btn--go { background: var(--hero); color: var(--static-black); }
.b3-btn--go:hover { background: var(--hero-hover); }
.b3-btn--ghost { background: transparent; border-color: var(--line); color: #fff; }
.b3-btn--ghost:hover { border-color: var(--hero); color: var(--hero); }
.b3-btn--sm { height: 32px; padding: 0 16px; font-size: 13px; }

.b3-faq__list { display: grid; gap: 8px; }
.b3-faq__item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.b3-faq__item summary {
  cursor: pointer; padding: 12px 15px; font-weight: 700; color: #fff; font-size: 14.5px;
  list-style: none; display: flex; justify-content: space-between; gap: 10px;
}
.b3-faq__item summary::-webkit-details-marker { display: none; }
.b3-faq__item summary::after { content: '+'; color: var(--hero); font-size: 20px; line-height: 1; }
.b3-faq__item[open] summary::after { content: '−'; }
.b3-faq__a { padding: 0 15px 12px; color: #cdd2da; font-size: 14px; line-height: 1.95; }
.b3-faq__a p { margin: 0 0 .8em; }
.b3-faq__a p:last-child { margin-bottom: 0; }
.b3-faq__a a { color: var(--hero); text-decoration: underline; text-underline-offset: 3px; }

.b3-finder { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.b3-finder input {
  flex: 1 1 240px; height: var(--btn-h); background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r); padding: 0 14px;
  color: #fff; font-family: inherit; font-size: 14px;
}
.b3-finder input::placeholder { color: var(--txt-3); }
.b3-finder__count { color: var(--txt-2); font-size: 13px; }

/* ── فرم تماس ─────────────────────────────────────────────────────────── */
.b3-form { display: grid; gap: 14px; max-width: 640px; }
.b3-form__row { display: grid; gap: 6px; }
.b3-form label { font-size: 13px; font-weight: 500; color: #fff; }
.b3-form input, .b3-form select, .b3-form textarea {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 10px 12px; color: #fff; font: 400 14px/1.7 var(--fa); width: 100%;
}
.b3-form input:focus, .b3-form select:focus, .b3-form textarea:focus {
  border-color: var(--hero); outline: none;
}
.b3-form textarea { min-height: 130px; resize: vertical; }
.b3-form small { font-size: 12px; color: var(--txt-3); }
.b3-form__two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.b3-formnote {
  border-radius: var(--r); padding: 10px 12px; font-size: 13px;
  background: rgba(117, 239, 81, .12); border: 1px solid rgba(117, 239, 81, .4); color: #d6ffc9;
}
.b3-formnote[hidden] { display: none; }

/* ═══════════════════════════════ میز بازی ══════════════════════════════ */
.b3-stagewrap { margin: 16px 0 8px; }
.b3-stagebar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--line); border-bottom: 0;
  border-radius: var(--r) var(--r) 0 0; padding: 8px 12px; font-size: 13px;
}
.b3-stagebar__tag { color: var(--hero); font-weight: 700; }
.b3-stagebar__sp { flex: 1; }
.b3-stagebar button, .b3-stagebar a {
  background: rgba(255, 255, 255, .06); border: 1px solid var(--line); color: #fff;
  border-radius: var(--r); padding: 5px 12px; font-size: 12.5px; cursor: pointer;
  font-family: inherit;
}
.b3-stagebar button:hover, .b3-stagebar a:hover { border-color: var(--hero); color: var(--hero); }
#b3-stage {
  position: relative; background: #0e1014;
  border: 1px solid var(--line); border-radius: 0 0 var(--r) var(--r); overflow: hidden;
}
#b3-stage, #b3-stage * { -webkit-user-select: text; user-select: text; }
.b3-stageload {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 12px; z-index: 3;
  background: #0e1014; color: var(--txt-2); text-align: center; padding: 20px;
}
.b3-stageload[hidden] { display: none; }
.b3-stageload__ring {
  width: 38px; height: 38px; border-radius: 50%;
  border: 3px solid var(--line); border-top-color: var(--hero);
  animation: b3spin 1s linear infinite;
}
@keyframes b3spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .b3-stageload__ring { animation: none; } }
.b3-stageload__err { color: #ff9ea1; }
.b3-stageload__acts { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }

/* ═════════════════════ بلوک‌های اختصاصی صفحه‌ی بازی ════════════════════ */
.b3-two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.b3-two__c { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; }
.b3-two__c h3 { margin: 0 0 10px; font-size: 15px; font-weight: 700; }
.b3-two__c ul { margin: 0; padding-inline-start: 1.2em; padding-inline-end: 0; }
.b3-two__c li { margin-bottom: 8px; color: #cdd2da; line-height: 1.9; font-size: 14px; }
.b3-two__c--out { border-top: 3px solid var(--accent); }
.b3-two__c--out h3 { color: var(--accent); }
.b3-two__c--in { border-top: 3px solid var(--hero); }
.b3-two__c--in h3 { color: var(--hero); }

.b3-forwhom {
  border-inline-start: 4px solid var(--hero); background: var(--surface);
  border-radius: 0 var(--r) var(--r) 0; padding: 16px 18px;
}
.b3-forwhom p { margin: 0; color: #fff; font-size: 16px; line-height: 2; }
.b3-loop {
  counter-reset: l; list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
}
.b3-loop li {
  counter-increment: l; position: relative; padding: 14px 50px 14px 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  color: #cdd2da; line-height: 1.85; font-size: 14px;
}
html[dir='rtl'] .b3-loop li { padding: 14px 50px 14px 14px; }
.b3-loop li::before {
  content: counter(l); position: absolute; inset-inline-start: 13px; top: 13px;
  width: 26px; height: 26px; border-radius: 50%; background: var(--hero);
  color: var(--static-black); font-weight: 700; font-size: 13px;
  text-align: center; line-height: 26px;
}
.b3-exit {
  border-inline-start: 4px solid var(--oc-3); background: var(--surface);
  border-radius: 0 var(--r) var(--r) 0; padding: 16px 18px;
}
.b3-exit p { margin: 0; color: #cdd2da; line-height: 2; }
.b3-path { counter-reset: p; list-style: none; padding: 0; margin: 0; }
.b3-path li {
  counter-increment: p; position: relative; padding: 13px 52px 13px 14px; margin-bottom: 8px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  color: #cdd2da; line-height: 1.9; font-size: 14px;
}
.b3-path li::before {
  content: counter(p); position: absolute; inset-inline-start: 12px; top: 12px;
  width: 28px; height: 28px; border-radius: 50%; background: var(--hero);
  color: var(--static-black); font-weight: 700; font-size: 14px;
  text-align: center; line-height: 28px;
}
.b3-stop { list-style: none; padding: 0; margin: 0; }
.b3-stop li {
  position: relative; padding: 12px 44px 12px 14px; margin-bottom: 8px;
  background: var(--surface); border: 1px solid var(--line);
  border-inline-start: 3px solid var(--oc-3); border-radius: var(--r);
  color: #cdd2da; line-height: 1.9; font-size: 14px;
}
.b3-stop li::before {
  content: '\2715'; position: absolute; inset-inline-start: 16px; top: 13px;
  color: var(--oc-3); font-weight: 700;
}
.b3-specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 8px; margin: 0; }
.b3-specs > div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 9px 12px; }
.b3-specs dt { font-size: 12px; color: var(--txt-3); }
.b3-specs dd { margin: 0; font-size: 14px; color: #fff; font-weight: 700; }

/* ═══════════════════════════════ ریسپانسیو ═════════════════════════════ */
@media (max-width: 1200px) {
  .b3-tiles { grid-template-columns: repeat(4, 1fr); }
  .b3-rail { grid-auto-columns: calc((100% - 3 * 16px) / 4); }
  .b3-wide { grid-auto-columns: calc((100% - 16px) / 2); }
}
@media (max-width: 900px) {
  .b3-rail { grid-auto-columns: calc((100% - 2 * 12px) / 3); gap: 12px; }
  .b3-promos { grid-template-columns: 1fr; }
  .b3-two { grid-template-columns: 1fr; }
  .b3-loop { grid-template-columns: 1fr; }
  .b3-foot__cols { gap: 32px; }
}

/* ── موبایل: زیر ۷۶۸px ──────────────────────────────────────────────────
 * هدر ۴۹px، نوار ۴۰px، نوار سریع بالای صفحه، ردیف‌ها با گپ ۲۴
 * ────────────────────────────────────────────────────────────────────── */
@media (max-width: 767px) {
  :root { --hdr-h: 49px; --nav-h: 40px; --row-gap: 24px; --pad: 5px; }

  .b3-quick { display: block; background: var(--b); }
  .b3-hdr { position: static; }
  .b3-hdr__main { gap: 6px; }
  .b3-hdr__logo img { width: 100px; height: 34px; }
  .b3-hdr__chat { width: 24px; height: 24px; }
  .b3-hdr__lang, .b3-hdr__time { display: none; }
  .b3-btn-s { height: 26px; padding: 0 10px; font-size: 12px; }

  .b3-nav { padding-inline: 0; }
  .b3-nav__in { border-radius: 0; }
  .b3-nav__link { font-size: 11px; padding: 0 8px; border-radius: 0; }
  .b3-nav__list > li.is-active > .b3-nav__link { border-radius: var(--r); }
  .b3-nav__sub { display: none; }
  .b3-nav__more { padding: 0 10px; font-size: 11px; }

  .b3-hero { border-radius: var(--r); }
  .b3-hero__track { aspect-ratio: 540 / 250; }
  .b3-hero__ui { top: 8px; inset-inline-start: 8px; }

  .b3-stories { gap: 12px; }
  .b3-story { flex: 0 0 68px; width: 68px; gap: 6px; }
  .b3-story__img { width: 68px; height: 68px; padding: 2px; }
  .b3-story span { font-size: 10px; }

  .b3-tiles { grid-template-columns: repeat(4, 1fr); gap: 10px; }

  .b3-secttl { height: 20px; margin-bottom: 8px; }
  .b3-secttl h2, .b3-secttl h3 { font-size: 14px; line-height: 20px; }
  .b3-secttl__more { font-size: 12px; }

  .b3-rail {
    grid-auto-flow: column; grid-auto-columns: calc((100% - 2 * 8px) / 2.4);
    gap: 8px;
  }
  .b3-gcards { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
  .b3-gcard__name { font-size: 11.5px; padding: 14px 8px 6px; }
  .b3-wide { grid-auto-columns: 86%; gap: 10px; }

  .b3-foot__cols { gap: 0; flex-direction: column; padding: 24px 0 8px; }
  .b3-foot__col { width: 100%; margin-bottom: 20px; }
  .b3-foot__bar { padding: 18px 0; }
  .b3-foot__apps { padding: 24px 0 30px; }
  .b3-foot__apps img { width: 150px; height: 43px; }
  .b3-foot__end { padding: 18px 0 24px; }

  .b3-form__two { grid-template-columns: 1fr; }
  .b3-main { padding-inline: 10px; }
  .b3-panel { inset-inline-start: 5px; top: auto; bottom: 12px; }
}

@media (max-width: 400px) {
  .b3-quick a { font-size: 10px; gap: 4px; }
  .b3-quick__in { gap: 6px; }
}

/* ═══ gateway:start ═══ */
/* ═══════════════════════════════════════════════════════════════════════════
 * دروازه‌ی برند + پاپ‌آپ پایان بازی
 *
 * این بلوک با اسکریپت _tools/gateway/install.mjs به انتهای همین فایل اضافه
 * شده است. هیچ قاعده‌ی بالاتری را بازنویسی نمی‌کند: همه‌ی کلاس‌ها با .gw-
 * شروع می‌شوند و رنگ‌ها از توکن‌های خودِ همین سایت خوانده می‌شوند، پس
 * دروازه همان هویت بصری سایت را می‌گیرد.
 * ═══════════════════════════════════════════════════════════════════════════ */

/* توکن‌ها روی :root می‌نشینند چون پاپ‌آپ مستقیم به <body> اضافه می‌شود و
   بیرون از .gw است؛ اگر اینجا نباشند، کارتِ پاپ‌آپ بی‌پس‌زمینه می‌ماند. */
:root {
  --gw-surface: var(--surface);
  --gw-surface-2: var(--surface-2);
  --gw-line: var(--line);
  --gw-text: var(--txt);
  --gw-muted: var(--txt-2);
  --gw-accent: var(--hero);
  --gw-accent-ink: #000205;
  --gw-radius: var(--r-md);
}

/* ── صفحه‌ی دروازه ───────────────────────────────────────────────────────── */

.gw__head {
  text-align: center;
  max-width: 44rem;
  margin: 0 auto clamp(20px, 4vw, 34px);
}
.gw__t {
  margin: 0 0 12px;
  font-size: clamp(1.35rem, 1.05rem + 1.4vw, 2rem);
  line-height: 1.6;
  font-weight: 800;
  color: var(--gw-text);
}
.gw__d {
  margin: 0;
  font-size: clamp(.9rem, .85rem + .25vw, 1rem);
  line-height: 2.1;
  color: var(--gw-muted);
}

.gw__grid {
  display: grid;
  gap: clamp(12px, 2vw, 18px);
  grid-template-columns: 1fr;
  align-items: stretch;
}
@media (min-width: 620px) {
  .gw__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1040px) {
  .gw__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ── کارت برند ───────────────────────────────────────────────────────────── */

.gw-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--gw-surface);
  border: 1px solid var(--gw-line);
  border-radius: var(--gw-radius);
  padding: clamp(16px, 2.2vw, 22px);
  overflow: hidden;
  transition: border-color .18s ease, transform .18s ease;
}
.gw-card::before {
  content: "";
  position: absolute;
  inset-block-start: 0;
  inset-inline: 0;
  height: 3px;
  background: var(--gw-brand, var(--gw-accent));
}
.gw-card:hover,
.gw-card:focus-within {
  border-color: var(--gw-brand, var(--gw-accent));
  transform: translateY(-2px);
}

.gw-card__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 76px;
  margin-bottom: 12px;
}
/* هر برند اندازه‌ی طبیعی خودش را دارد (--gw-logo-w/h از روی همان کارت).
   بدون این سقف، لوگوهای واژه‌ای عریض روی موبایل تا لبه‌ی کارت کش می‌آیند
   و کارت‌ها با هم ناهماهنگ می‌شوند. */
.gw-card__logo img {
  max-width: min(100%, var(--gw-logo-w, 200px));
  max-height: min(72px, var(--gw-logo-h, 72px));
  width: auto;
  height: auto;
  object-fit: contain;
}
/* لوگوی گرد بعضی برندها خودش پس‌زمینه‌ی تیره دارد و روی کارتِ تیره گم
   می‌شود؛ یک بشقاب روشنِ ملایم زیرش می‌گذاریم. */
.gw-card__logo img.is-round {
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  padding: 4px;
  box-shadow: 0 0 0 1px var(--gw-line);
}

.gw-card__name {
  margin: 0 0 6px;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.7;
  color: var(--gw-text);
  text-align: center;
}
.gw-card__feat {
  margin: 0 0 14px;
  font-size: .8rem;
  line-height: 1.95;
  color: var(--gw-muted);
  text-align: center;
}

.gw-card__bonus {
  margin-block: auto 14px;
  padding: 12px;
  border-radius: calc(var(--gw-radius) - 4px);
  background: var(--gw-surface-2);
  border: 1px dashed var(--gw-line);
  text-align: center;
}
.gw-card__badge {
  display: inline-block;
  margin-bottom: 8px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  line-height: 1.9;
  background: var(--gw-brand, var(--gw-accent));
  color: var(--gw-brand-ink, var(--gw-accent-ink));
}
.gw-card__bonus-t {
  margin: 0;
  font-size: .9rem;
  font-weight: 700;
  line-height: 1.85;
  color: var(--gw-text);
}
.gw-card__bonus-d {
  margin: 4px 0 0;
  font-size: .78rem;
  line-height: 1.85;
  color: var(--gw-muted);
}

.gw-card__cta {
  display: block;
  padding: 13px 14px;
  border-radius: calc(var(--gw-radius) - 4px);
  background: var(--gw-brand, var(--gw-accent));
  color: var(--gw-brand-ink, var(--gw-accent-ink));
  font-size: .95rem;
  font-weight: 800;
  line-height: 1.6;
  text-align: center;
  text-decoration: none;
  min-height: 46px;
  transition: filter .15s ease;
}
.gw-card__cta:hover { filter: brightness(1.08); }
.gw-card__app {
  display: block;
  margin-top: 8px;
  padding: 9px 12px;
  border-radius: calc(var(--gw-radius) - 6px);
  border: 1px solid var(--gw-line);
  background: transparent;
  color: var(--gw-muted);
  font-size: .8rem;
  line-height: 1.6;
  text-align: center;
  text-decoration: none;
}
.gw-card__app:hover { color: var(--gw-text); border-color: var(--gw-brand, var(--gw-accent)); }

/* کل کارت کلیک‌پذیر است؛ لینک CTA کشیده می‌شود روی کارت و دکمه‌ی اپ
   بالاتر می‌نشیند تا قابل کلیک بماند. */
.gw-card__cta::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}
.gw-card__app { position: relative; z-index: 1; }

.gw__note {
  margin: clamp(20px, 3vw, 30px) auto 0;
  max-width: 46rem;
  padding: 14px 16px;
  border: 1px solid var(--gw-line);
  border-radius: var(--gw-radius);
  background: var(--gw-surface);
  color: var(--gw-muted);
  font-size: .8rem;
  line-height: 2.05;
  text-align: center;
}

/* ── پاپ‌آپ پایان بازی ───────────────────────────────────────────────────── */

html.gw-lock { overflow: hidden; }

.gw-pop {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
  direction: rtl;
  overflow: auto;
  background: rgba(3, 6, 11, .66);
  opacity: 0;
  transition: opacity .2s ease;
}
.gw-pop.is-on { opacity: 1; }
.gw-pop * { box-sizing: border-box; }

.gw-pop__card {
  position: relative;
  width: 100%;
  max-width: 22.5rem;
  padding: 26px 20px 18px;
  border: 1px solid var(--gw-line);
  border-radius: var(--gw-radius);
  background: var(--gw-surface);
  color: var(--gw-text);
  text-align: center;
  box-shadow: 0 18px 52px rgba(0, 0, 0, .5);
  transform: translateY(10px) scale(.98);
  transition: transform .2s ease;
  outline: none;
  max-height: calc(100vh - 32px);
  overflow: auto;
}
.gw-pop.is-on .gw-pop__card { transform: none; }

.gw-pop__x {
  position: absolute;
  top: 8px;
  inset-inline-start: 8px;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--gw-muted);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.gw-pop__x:hover { background: var(--gw-surface-2); color: var(--gw-text); }

.gw-pop__gift { display: block; font-size: 34px; line-height: 1; margin-bottom: 8px; }

.gw-pop__t {
  margin: 0 0 10px;
  font-size: 1.32rem;
  font-weight: 800;
  line-height: 1.6;
  color: var(--gw-accent);
}
.gw-pop__d {
  margin: 0 0 18px;
  font-size: .88rem;
  line-height: 2.05;
  color: var(--gw-muted);
}
.gw-pop__cta {
  display: block;
  padding: 13px 16px;
  border-radius: calc(var(--gw-radius) - 4px);
  background: var(--gw-accent);
  color: var(--gw-accent-ink);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.6;
  text-decoration: none;
  min-height: 48px;
}
.gw-pop__cta:hover { filter: brightness(1.08); }
.gw-pop__later {
  margin-top: 12px;
  padding: 6px;
  border: 0;
  background: none;
  color: var(--gw-muted);
  font-family: inherit;
  font-size: .8rem;
  line-height: 1.8;
  text-decoration: underline;
  cursor: pointer;
}
.gw-pop__later:hover { color: var(--gw-text); }

@media (max-width: 380px) {
  .gw-pop__card { padding: 22px 16px 14px; }
  .gw-pop__t { font-size: 1.18rem; }
}
@media (prefers-reduced-motion: reduce) {
  .gw-pop, .gw-pop__card, .gw-card { transition: none; }
  .gw-card:hover, .gw-card:focus-within { transform: none; }
}

/* ═══ gateway:end ═══ */
