/* ═══════════════════════════════════════════════════════════════════════════
 * BET45 — استایل «افزوده‌ها»
 *
 * ⚠️ این فایل هیچ چیزی از دیزاین خودِ بت ۴۵ را عوض نمی‌کند.
 *    پوسته‌ی سایت (هدر، نوار منو، بنر، نوار بازی‌ها، فوتر، فونت) کاملاً از
 *    dust/assets/css/*.css می‌آید — همان فایل‌های خودِ سایت، بدون تغییر.
 *
 *    اینجا فقط دو چیز هست:
 *      ۱) چند خط اتصال برای رفتارهایی که در سایت اصلی جاوااسکریپت انجام می‌داد
 *      ۲) استایل محتوایی که ما اضافه کرده‌ایم — همه با پیشوند .b45-
 * ═══════════════════════════════════════════════════════════════════════════ */

:root {
  --b45-bg: #3c7f60;
  --b45-bg-2: #17191f;
  --b45-bg-3: #1e222a;
  --b45-bar: #474747;
  --b45-line: #34495f;
  --b45-line-soft: #262b34;
  --b45-gold-2: #d9c22f;
  --b45-gold: #ffe93c;
  --b45-accent: #ffe93c;
  --b45-text: #e6e9ee;
  --b45-text-2: #a7aebb;
  --b45-text-3: #82828e;
  --b45-neon: #ffe93c;
  --b45-neon-2: #41b19a;
  --b45-wrap: 100%;
}

/* ═══════════════════ ۱) رفتارهایی که در سایت اصلی با jQuery بود ════════
 * اسلایدر: همان انیمیشن margin-right از ۰٪ به ‎-۱۰۰٪‎ در ۵۰۰ میلی‌ثانیه.
 * منوی موبایل: همان لایه‌ی تمام‌صفحه که نمایش/پنهان می‌شود.
 * ═══════════════════════════════════════════════════════════════════════ */
/* برچسب صفحه‌خوانِ هر اسلاید position:absolute است و جد موقعیت‌دار نداشت، پس
   containing block‌اش ویوپورت می‌شد و از overflow:hidden این قاب بیرون می‌زد؛
   اسلاید دوم به بعد یک عرضِ صفحه فاصله دارند، یعنی سند در RTL یک تا سه صفحه
   به چپ کشیده می‌شد و کل صفحه اسکرول افقی می‌گرفت. relative آن‌ها را داخل
   همین قاب نگه می‌دارد و کلیپ می‌کند (هیچ تغییر ظاهری ندارد). */
.main-splash .image-container { position: relative; }

.main-splash .image-container .image {
  transition: margin-right .5s ease;
  text-decoration: none;
}

@media (prefers-reduced-motion: reduce) {
  .main-splash .image-container .image { transition: none; }
}
.mobile-menu.open { display: block; }

/* ویژگی width/height روی تصویرها برای CLS اضافه شده؛ در مارک‌آپ اصلی
   نبودند، پس ارتفاع دوباره آزاد می‌شود تا نسبت تصویر همان بماند. */
.main-games-box .game img { height: auto; }
.header .left img, .mobile-bar .logo img { height: auto; }
.footer-download-link-icon, .custom-mobile-menu-items img { height: auto; }

/* ═══════════════════════ ۲) محتوای افزوده (.b45-*) ═════════════════════ */

/* استایل پایه‌ی سایت متن را غیرقابل‌انتخاب کرده؛ داخل محتوای ما باید
   بشود متن را انتخاب و کپی کرد. */
.b45-main, .b45-main *, .b45-foot, .b45-foot * {
  -webkit-user-select: text; user-select: text; -webkit-touch-callout: default;
}

/* ⚠️ پنهان‌کردن با right:-9999px در صفحه‌ی RTL باعث اسکرول افقی می‌شود؛
   پس از clip استفاده می‌کنیم که هیچ عرضی به سند اضافه نمی‌کند. */
.b45-skip {
  position: absolute; right: 0; top: 0; z-index: 1000000;
  width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%);
  white-space: nowrap;
  background: var(--b45-gold); color: #101010; padding: 10px 18px;
  font-weight: 500; text-decoration: none; border-radius: 0 0 0 8px;
}
.b45-skip:focus {
  width: auto; height: auto; overflow: visible; clip-path: none;
}
:where(a, button, summary, input, [tabindex]):focus-visible {
  outline: 2px solid var(--b45-gold); outline-offset: 2px; border-radius: 4px;
}

.b45-main {
  max-width: var(--b45-wrap); margin: 0 auto; padding: 18px 12px 40px;
  color: var(--b45-text); font-size: 15px; line-height: 1.9;
}
@media screen and (max-width: 1000px) { .b45-main { padding-bottom: 70px; } }
.b45-main p { margin: 0 0 1em; }
.b45-main ul, .b45-main ol { margin: 0 0 1em; padding-right: 1.4em; padding-left: 0; }
.b45-main table { border-collapse: collapse; width: 100%; }
.b45-main img { max-width: 100%; height: auto; }
.b45-sec--first { margin-top: 4px; }

.b45-sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.b45-crumb { font-size: 13px; color: var(--b45-text-3); margin-bottom: 10px; }
.b45-crumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.b45-crumb li + li::before { content: '‹'; margin-left: 6px; color: var(--b45-text-3); }
.b45-crumb a { color: var(--b45-text-2); text-decoration: none; }
.b45-crumb a:hover { color: var(--b45-gold); }

.b45-h1 {
  font-size: clamp(22px, 4vw, 32px); font-weight: 500; color: #fff; margin: 0 0 10px;
  padding-right: 12px; border-right: 4px solid var(--b45-gold); line-height: 1.5;
}
.b45-lead { font-size: 16px; color: var(--b45-text-2); max-width: 74ch; margin: 0 0 22px; }

.b45-sec { margin: 30px 0 0; }
.b45-sec__h {
  font-size: clamp(18px, 3vw, 23px); font-weight: 500; color: #fff; margin: 0 0 6px;
  display: flex; align-items: center; gap: 9px; line-height: 1.5;
}
.b45-sec__h::before {
  content: ''; width: 8px; height: 8px; border-radius: 2px;
  background: var(--b45-neon); transform: rotate(45deg); flex: 0 0 auto;
}
.b45-sec__sub { color: var(--b45-text-2); margin: 0 0 14px; }

.b45-prose { color: #cdd8e4; max-width: 78ch; }
.b45-prose h3 { font-size: 17px; font-weight: 500; color: var(--b45-gold); margin: 18px 0 6px; }
.b45-prose b, .b45-prose strong { color: #fff; font-weight: 500; }
.b45-prose a { color: var(--b45-gold); }
.b45-prose li { margin-bottom: 7px; }
.b45-prose li::marker { color: var(--b45-neon); }

.b45-note {
  border: 1px solid var(--b45-line); border-right: 3px solid var(--b45-gold);
  background: var(--b45-bg-2); border-radius: 8px; padding: 12px 14px; margin: 16px 0;
  color: #cdd8e4;
}
.b45-note--warn { border-right-color: #e5484d; }
.b45-note strong { color: #fff; font-weight: 500; }

.b45-steps { list-style: none; counter-reset: s; padding: 0 !important; margin: 0; }
.b45-steps li { counter-increment: s; position: relative; padding-right: 44px; margin-bottom: 14px; }
.b45-steps li::before {
  content: counter(s); position: absolute; right: 0; top: 3px;
  width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center;
  background: linear-gradient(180deg, var(--b45-neon), var(--b45-neon-2));
  color: #14100a; font-weight: 500; font-size: 14px;
}
.b45-steps li b { display: block; color: #fff; font-weight: 500; }
.b45-steps li span { display: block; color: var(--b45-text-2); font-size: 14px; }

.b45-scroll { overflow-x: auto; margin: 12px 0; border: 1px solid var(--b45-line); border-radius: 10px; }
.b45-scroll table { min-width: 420px; font-size: 14px; }
.b45-scroll th, .b45-scroll td { padding: 9px 12px; text-align: right; border-bottom: 1px solid var(--b45-line-soft); }
.b45-scroll thead th { background: var(--b45-bg-3); color: var(--b45-gold); font-weight: 500; white-space: nowrap; }
.b45-scroll tbody tr:last-child td { border-bottom: 0; }
.b45-scroll tbody tr:nth-child(even) td { background: rgba(255, 255, 255, .02); }

.b45-specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px; margin: 0; padding: 0; }
.b45-specs > div { background: var(--b45-bg-2); border: 1px solid var(--b45-line-soft); border-radius: 9px; padding: 9px 12px; }
.b45-specs dt { font-size: 12px; color: var(--b45-text-3); }
.b45-specs dd { margin: 0; font-size: 14px; color: #fff; font-weight: 500; }

.b45-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 14px; }
.b45-gcard {
  display: flex; flex-direction: column; text-decoration: none;
  background: #05080c; border: 1px solid var(--b45-line-soft); border-radius: 12px;
  overflow: hidden; transition: transform .18s, border-color .18s, box-shadow .18s;
}
.b45-gcard:hover {
  transform: translateY(-3px); border-color: var(--b45-neon);
  box-shadow: 0 10px 26px rgba(255, 138, 31, .2);
}
.b45-gcard__img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; display: block; }
.b45-gcard__b { padding: 11px 13px 13px; display: flex; flex-direction: column; gap: 4px; }
.b45-gcard__t { font-weight: 500; color: #fff; font-size: 16px; }
.b45-gcard__d { font-size: 13px; color: var(--b45-text-2); line-height: 1.7; flex: 1; }
.b45-gcard__cta { font-size: 13px; color: var(--b45-gold); font-weight: 500; margin-top: 4px; }
.b45-gcard[hidden] { display: none; }

.b45-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.b45-links a {
  display: block; text-decoration: none; background: var(--b45-bg-2);
  border: 1px solid var(--b45-line-soft); border-radius: 10px; padding: 11px 14px;
  color: #fff; font-weight: 500; transition: border-color .18s, background .18s;
}
.b45-links a span { display: block; font-weight: 300; font-size: 13px; color: var(--b45-text-2); }
.b45-links a:hover { border-color: var(--b45-gold); background: var(--b45-bg-3); }

.b45-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.b45-card { background: var(--b45-bg-2); border: 1px solid var(--b45-line-soft); border-radius: 11px; padding: 14px 16px; }
.b45-card__h { font-size: 16px; font-weight: 500; color: var(--b45-gold); margin: 0 0 5px; }
.b45-card p { margin: 0; font-size: 14px; color: var(--b45-text-2); }

.b45-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 11px 22px; border-radius: 9px; text-decoration: none;
  font-weight: 500; font-size: 15px; border: 1px solid transparent; cursor: pointer;
}
.b45-btn--go { background: linear-gradient(180deg, var(--b45-neon), var(--b45-neon-2)); color: #17100a; }
.b45-btn--go:hover { filter: brightness(1.08); }
.b45-btn--ghost { background: transparent; border-color: var(--b45-line); color: var(--b45-text); }
.b45-btn--ghost:hover { border-color: var(--b45-gold); color: var(--b45-gold); }
.b45-btn--sm { padding: 8px 16px; font-size: 14px; }

.b45-faq__list { display: grid; gap: 8px; }
.b45-faq__item { background: var(--b45-bg-2); border: 1px solid var(--b45-line-soft); border-radius: 10px; }
.b45-faq__item summary {
  cursor: pointer; padding: 12px 15px; font-weight: 500; color: #fff;
  list-style: none; display: flex; justify-content: space-between; gap: 10px;
}
.b45-faq__item summary::-webkit-details-marker { display: none; }
.b45-faq__item summary::after { content: '+'; color: var(--b45-gold); font-size: 20px; line-height: 1; }
.b45-faq__item[open] summary::after { content: '−'; }
.b45-faq__a { padding: 0 15px 12px; color: #cdd8e4; }
.b45-faq__a p:last-child { margin-bottom: 0; }
.b45-faq__a a { color: var(--b45-gold); }

.b45-finder { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.b45-finder input {
  flex: 1 1 240px; background: var(--b45-bg-2); border: 1px solid var(--b45-line);
  border-radius: 9px; padding: 10px 14px; color: #fff; font-family: inherit; font-size: 15px;
}
.b45-finder input::placeholder { color: var(--b45-text-3); }
.b45-finder__count { color: var(--b45-text-2); font-size: 14px; }

/* ── میز بازی ─────────────────────────────────────────────────────────── */
.b45-stagewrap { margin: 18px 0 24px; }
.b45-stagebar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: var(--b45-bg-2); border: 1px solid var(--b45-line); border-bottom: 0;
  border-radius: 12px 12px 0 0; padding: 8px 12px; font-size: 13px;
}
.b45-stagebar__tag { color: var(--b45-gold); font-weight: 500; }
.b45-stagebar__sp { flex: 1; }
.b45-stagebar button, .b45-stagebar a {
  background: var(--b45-bg-3); border: 1px solid var(--b45-line); color: var(--b45-text);
  border-radius: 7px; padding: 5px 12px; font-size: 13px; cursor: pointer;
  text-decoration: none; font-family: inherit;
}
.b45-stagebar button:hover, .b45-stagebar a:hover { border-color: var(--b45-gold); color: var(--b45-gold); }

#b45-stage {
  position: relative; background: #05080c;
  border: 1px solid var(--b45-line); border-radius: 0 0 12px 12px; overflow: hidden;
}
#b45-stage, #b45-stage * { -webkit-user-select: text; user-select: text; }
.b45-stageload {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 12px; z-index: 3;
  background: #05080c; color: var(--b45-text-2); text-align: center; padding: 20px;
}
.b45-stageload[hidden] { display: none; }
.b45-stageload__ring {
  width: 38px; height: 38px; border-radius: 50%;
  border: 3px solid var(--b45-line); border-top-color: var(--b45-neon);
  animation: b4spin 1s linear infinite;
}
@keyframes b4spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .b45-stageload__ring { animation: none; } }
.b45-stageload__err { color: #ff9ea1; }
.b45-stageload__acts { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }

/* ── فوتر سئو — زیر فوتر اصلی ─────────────────────────────────────────── */
.b45-foot { background: #05080c; border-top: 1px solid var(--b45-line-soft); padding: 28px 12px 20px; }
.b45-foot__grid {
  max-width: var(--b45-wrap); margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 22px;
}
.b45-foot__h { font-size: 14px; font-weight: 500; color: var(--b45-gold); margin: 0 0 8px; }
.b45-foot__col ul { list-style: none; margin: 0; padding: 0; }
.b45-foot__col li { margin-bottom: 5px; }
.b45-foot__col a { color: var(--b45-text-2); text-decoration: none; font-size: 13px; }
.b45-foot__col a:hover { color: #fff; }
.b45-foot__bot {
  max-width: var(--b45-wrap); margin: 22px auto 0; padding-top: 16px;
  border-top: 1px solid var(--b45-line-soft); color: var(--b45-text-3); font-size: 12.5px;
  text-align: center; line-height: 1.9;
}
.b45-foot__bot p { margin: 0 0 6px; }
.b45-foot__note a { color: var(--b45-gold); }
@media screen and (max-width: 1000px) { .b45-foot { padding-bottom: 66px; } }





/* ── سه‌ستونیِ صفحه‌ها ───────────────────────────────────────────────────
   ستون محتوا همان عرضی را می‌گیرد که در سایت اصلی ستون میانی داشت:
   کل عرض منهای ستون کناری ۳۵۰px و حاشیه‌هایش. */
@media screen and (max-width: 1000px) {  }
.b45-main { padding: 6px 10px 40px; color: var(--b45-text); font-size: 15px; line-height: 1.9; max-width: none; }
@media screen and (max-width: 1000px) { .b45-main { padding-bottom: 70px; } }

/* «جواب کوتاه» — جعبه‌ی خلاصه‌ی بالای هر صفحه‌ی بازی */
.b45-quick {
  background: linear-gradient(180deg, rgba(252,179,7,.12), rgba(252,179,7,.03));
  border: 1px solid rgba(252,179,7,.42); border-right: 3px solid var(--b45-gold);
  border-radius: 8px; padding: 14px 16px; margin: 0 0 6px; color: #e9e9e9;
}
.b45-quick__k { display: block; font-size: 12px; color: var(--b45-gold); margin-bottom: 4px; }
.b45-quick p { margin: 0; }

/* «سه سؤال قبل از شروع» */
.b45-q { display: grid; gap: 10px; margin: 0; padding: 0; }
.b45-q > div {
  background: var(--b45-bg-2); border: 1px solid var(--b45-line-soft);
  border-radius: 8px; padding: 12px 14px;
}
.b45-q dt { font-weight: 500; color: var(--b45-gold); font-size: 15px; margin-bottom: 3px; }
.b45-q dd { margin: 0; color: var(--b45-text-2); font-size: 14px; }

/* «چک‌لیست اولین نشست» */
.b45-check { list-style: none; counter-reset: ck; padding: 0 !important; margin: 0; }
.b45-check li {
  counter-increment: ck; position: relative; padding-right: 34px; margin-bottom: 10px;
  color: #d8d8d8;
}
.b45-check li::before {
  content: '✓'; position: absolute; right: 0; top: 2px;
  width: 22px; height: 22px; border-radius: 5px; display: grid; place-items: center;
  background: var(--b45-gold); color: #17130a; font-size: 13px; font-weight: 500;
}

/* ═══════════════════ بخش‌های مخصوص همین سایت ══════════════════════════ */

/* ستون کارت‌های صفحه‌ی اصلی: در مارک‌آپ اصلی تصویرها width:100% داشتند.
   ما عرض/ارتفاع واقعی فایل را می‌نویسیم تا مرورگر از فریم اول جا رزرو کند
   (CLS صفر) و همان «۱۰۰٪» را اینجا با CSS برمی‌گردانیم. */
/* ⚠️ display را عمداً عوض نمی‌کنیم: تصویر در قالب اصلی inline است و همان
   فاصله‌ی ۴ پیکسلیِ خط پایه، ارتفاع کارت را ۱۲۹px می‌کند. اگر block شود
   کارت ۱۲۵px می‌شود و دیگر با سایت اصلی یکی نیست. */
.main-games-box .game img { width: 100%; height: auto; }
.header .left.pr25 img { height: auto; }

/* ردیف هدر دسکتاپ (لوگوی ۳۴۲px + منوی nowrap ۱۰۳۶px + حاشیه‌ها) فقط از
   ~۱۴۵۰px به بالا جا می‌شد؛ بین ۱۰۰۱ تا ۱۴۴۰ از عرض صفحه بیرون می‌زد و در
   RTL همان‌جا اسکرول افقی می‌ساخت (روی ۱۲۸۰ حدود ۱۶۸px). لوگو و فاصله‌های
   منو حالا با عرض صفحه مقیاس می‌گیرند و از ۱۶۰۰px به بالا به همان اندازه‌ی
   سایت اصلی برمی‌گردند. */
@media screen and (min-width: 1001px) {
  .header .left.pr25 img { width: clamp(180px, 20vw, 342px); }
  .header .left.pr25 { padding-right: 10px; padding-left: 10px; }
  .top-bar { margin-right: 10px; }
  .top-bar a {
    padding-right: clamp(6px, 1vw, 20px);
    padding-left: clamp(6px, 1vw, 20px);
    font-size: clamp(13px, 1.15vw, 16px);
  }
}

/* پنهان‌کردن با right:-9999px در صفحه‌ی RTL اسکرول افقی می‌سازد. */
.b45-skip {
  position: absolute; right: 0; top: 0; z-index: 1000000;
  width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%);
  white-space: nowrap;
  background: var(--b45-gold); color: #383838; padding: 10px 18px;
  font-weight: 500; text-decoration: none; border-radius: 0 0 0 8px;
}
.b45-skip:focus { width: auto; height: auto; overflow: visible; clip-path: none; }

/* دکمه‌ی همبرگر موبایل در اصل <a> بود؛ ما <button> گذاشتیم تا با کیبورد
   هم کار کند. این چند خط فقط ظاهرش را به همان <a> برمی‌گرداند. */
.mobile-bar .icon button.mobile-menu-action {
  background: none; border: 0; padding: 0; cursor: pointer;
  font-size: 24px; color: #ddd; line-height: 1; font-family: inherit;
}

/* «دو دقیقه تا اولین دست» */
.b45-flow { counter-reset: f; list-style: none; padding: 0; margin: 0; }
.b45-flow li {
  counter-increment: f; position: relative;
  padding: 12px 52px 12px 14px; margin-bottom: 8px;
  background: var(--b45-bg-3); border: 1px solid var(--b45-line-soft);
  border-radius: 10px; color: var(--b45-text); line-height: 1.85;
}
.b45-flow li::before {
  content: counter(f); position: absolute; right: 12px; top: 12px;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--b45-gold); color: #383838;
  font-weight: 700; font-size: 14px; text-align: center; line-height: 28px;
}

/* «چه چیزی دست شماست، چه چیزی نیست» */
.b45-two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media screen and (max-width: 700px) { .b45-two { grid-template-columns: 1fr; } }
.b45-two__c {
  background: var(--b45-bg-3); border: 1px solid var(--b45-line-soft);
  border-radius: 12px; padding: 16px 18px;
}
.b45-two__c h3 { margin: 0 0 10px; font-size: 16px; font-weight: 700; }
.b45-two__c ul { margin: 0; padding-right: 1.2em; padding-left: 0; }
.b45-two__c li { margin-bottom: 8px; color: var(--b45-text); line-height: 1.85; }
.b45-two__c--yes { border-top: 3px solid var(--b45-gold); }
.b45-two__c--yes h3 { color: var(--b45-gold); }
.b45-two__c--no { border-top: 3px solid #7d8a99; }
.b45-two__c--no h3 { color: #b4c0cc; }

/* «سه موقعیت واقعی» */
.b45-scn { display: grid; gap: 12px; }
.b45-scn article {
  position: relative; padding: 16px 60px 16px 18px;
  background: var(--b45-bg-3); border: 1px solid var(--b45-line-soft);
  border-radius: 12px;
}
.b45-scn__n {
  position: absolute; right: 16px; top: 16px;
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--b45-neon-2); color: #fff;
  font-weight: 700; text-align: center; line-height: 32px;
}
.b45-scn h3 { margin: 0 0 8px; font-size: 16px; font-weight: 700; color: var(--b45-text); }
.b45-scn p { margin: 0; color: var(--b45-text-2); line-height: 1.9; }

/* دکمه‌های زیر یادداشت میز */
.b45-note__btns { margin-top: 12px; display: flex; gap: 10px; flex-wrap: wrap; }

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

/* توکن‌ها روی :root می‌نشینند چون پاپ‌آپ مستقیم به <body> اضافه می‌شود و
   بیرون از .gw است؛ اگر اینجا نباشند، کارتِ پاپ‌آپ بی‌پس‌زمینه می‌ماند. */
:root {
  --gw-surface: var(--b45-bg-2);
  --gw-surface-2: var(--b45-bg-3);
  --gw-line: var(--b45-line);
  --gw-text: var(--b45-text);
  --gw-muted: var(--b45-text-2);
  --gw-accent: var(--b45-gold);
  --gw-accent-ink: #17191f;
  --gw-radius: 8px;
}

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

.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 ═══ */

/* ── a11y: کنتراست (axe) — لینک کارت‌های دسته رنگ پیش‌فرض آبی می‌گرفتند، متن فوتر مشکی روی مشکی بود ── */
.b45-cat a { color: var(--b45-text); text-decoration: none; }
.b45-cat__t { color: var(--b45-text); }
.b45-cat__n { color: var(--b45-gold); }
.b45-cat__d { color: var(--b45-text-2); }
.b45-foot__c { color: var(--b45-text-3); }
.b45-foot__note { color: var(--b45-text-2); }
