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

:root {
  --tk-bg: #1c1c1c;
  --tk-bg-2: #1a1819;
  --tk-bg-3: #171717;
  --tk-bar: #1c1c1c;
  --tk-line: #333333;
  --tk-line-soft: #262626;
  --tk-gold-2: #8f6a25;
  --tk-gold: #CD993D;
  --tk-accent: #CD993D;
  --tk-text: #e9e9e9;
  --tk-text-2: #acacac;
  --tk-text-3: #7d7d7d;
  --tk-neon: #CD993D;
  --tk-neon-2: #8f6a25;
  --tk-wrap: 100%;
}

/* ═══════════════════ ۱) رفتارهایی که در سایت اصلی با jQuery بود ════════
 * اسلایدر: همان انیمیشن margin-right از ۰٪ به ‎-۱۰۰٪‎ در ۵۰۰ میلی‌ثانیه.
 * منوی موبایل: همان لایه‌ی تمام‌صفحه که نمایش/پنهان می‌شود.
 * ═══════════════════════════════════════════════════════════════════════ */
/* در سایت اصلی ارتفاع این کادر را جاوااسکریپت روی «نصفِ عرض» ست می‌کند
   (۷۵۰ → ۳۷۵ روی دسکتاپ، ۳۹۰ → ۱۹۵ روی موبایل). همان نسبت را با aspect-ratio
   می‌سازیم تا از اولین فریم درست باشد و CLS صفر بماند. */
.main-splash .image-container {
  height: auto;
  aspect-ratio: 2 / 1;
}
.main-splash .image-container .image {
  transition: margin-right .5s ease;
  text-decoration: none;
}

/* بنرهای دو ستون کناری در مارک‌آپ اصلی width="100%" داشتند. ما به‌جای آن
   عرض و ارتفاع واقعی فایل را می‌نویسیم تا مرورگر از فریم اول جا رزرو کند
   (CLS صفر)، و همان «۱۰۰٪» را اینجا با CSS برمی‌گردانیم تا رندر مو‌به‌مو
   همان چیزی باشد که سایت اصلی نشان می‌دهد. */
.left-bar > a > img,
.right-bar .mt10 img { width: 100%; height: auto; }
@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; }

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

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

/* ⚠️ پنهان‌کردن با right:-9999px در صفحه‌ی RTL باعث اسکرول افقی می‌شود؛
   پس از clip استفاده می‌کنیم که هیچ عرضی به سند اضافه نمی‌کند. */
.tk-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(--tk-gold); color: #101010; padding: 10px 18px;
  font-weight: 500; text-decoration: none; border-radius: 0 0 0 8px;
}
.tk-skip:focus {
  width: auto; height: auto; overflow: visible; clip-path: none;
}
:where(a, button, summary, input, [tabindex]):focus-visible {
  outline: 2px solid var(--tk-gold); outline-offset: 2px; border-radius: 4px;
}

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

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

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

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

.tk-sec { margin: 30px 0 0; }
.tk-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;
}
.tk-sec__h::before {
  content: ''; width: 8px; height: 8px; border-radius: 2px;
  background: var(--tk-neon); transform: rotate(45deg); flex: 0 0 auto;
}
.tk-sec__sub { color: var(--tk-text-2); margin: 0 0 14px; }

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

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

.tk-steps { list-style: none; counter-reset: s; padding: 0 !important; margin: 0; }
.tk-steps li { counter-increment: s; position: relative; padding-right: 44px; margin-bottom: 14px; }
.tk-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(--tk-neon), var(--tk-neon-2));
  color: #14100a; font-weight: 500; font-size: 14px;
}
.tk-steps li b { display: block; color: #fff; font-weight: 500; }
.tk-steps li span { display: block; color: var(--tk-text-2); font-size: 14px; }

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

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

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

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

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

.tk-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;
}
.tk-btn--go { background: linear-gradient(180deg, var(--tk-neon), var(--tk-neon-2)); color: #17100a; }
.tk-btn--go:hover { filter: brightness(1.08); }
.tk-btn--ghost { background: transparent; border-color: var(--tk-line); color: var(--tk-text); }
.tk-btn--ghost:hover { border-color: var(--tk-gold); color: var(--tk-gold); }
.tk-btn--sm { padding: 8px 16px; font-size: 14px; }

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

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

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

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

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





/* ── سه‌ستونیِ صفحه‌ها ───────────────────────────────────────────────────
   ستون محتوا همان عرضی را می‌گیرد که در سایت اصلی ستون میانی داشت:
   کل عرض منهای ستون کناری ۳۵۰px و حاشیه‌هایش. */
/* روی صفحه‌ی اصلی ستون کناری هست، پس ستون محتوا باریک‌تر می‌شود؛ روی بقیه‌ی
   صفحه‌ها ستون کناری نیست و محتوا تمام عرض را می‌گیرد. */
.tk-content { width: 100%; margin: 0; margin-top: 5px; }
.tk-home .tk-content { width: calc(100% - 380px); }
@media screen and (max-width: 1000px) { .tk-content { width: 100%; margin: 0; } }
.tk-main { padding: 6px 10px 40px; color: var(--tk-text); font-size: 15px; line-height: 1.9; max-width: none; }
@media screen and (max-width: 1000px) { .tk-main { padding-bottom: 70px; } }

/* «جواب کوتاه» — جعبه‌ی خلاصه‌ی بالای هر صفحه‌ی بازی */
.tk-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(--tk-gold);
  border-radius: 8px; padding: 14px 16px; margin: 0 0 6px; color: #e9e9e9;
}
.tk-quick__k { display: block; font-size: 12px; color: var(--tk-gold); margin-bottom: 4px; }
.tk-quick p { margin: 0; }

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

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

/* ═══════════════════ بخش‌های مخصوص همین سایت ══════════════════════════ */
.tk-foot__legal { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center;
  margin-bottom: 10px; }
.tk-foot__legal a { color: var(--tk-text-2); text-decoration: none; font-size: 13px; }
.tk-foot__legal a:hover { color: var(--tk-gold); text-decoration: underline; }

/* «اگر فقط یک چیز یاد بگیرید» */
.tk-one { border-right: 4px solid var(--tk-gold); background: var(--tk-bg-3);
  border-radius: 0 12px 12px 0; padding: 18px 20px; }
.tk-one p { margin: 0; color: var(--tk-text); font-size: 16px; line-height: 2; }

/* سه پله */
.tk-levels { display: grid; gap: 12px; }
.tk-level { position: relative; padding: 16px 60px 16px 18px; background: var(--tk-bg-3);
  border: 1px solid var(--tk-line-soft); border-radius: 12px; }
.tk-level__n { position: absolute; right: 16px; top: 16px; width: 32px; height: 32px;
  border-radius: 50%; border: 2px solid var(--tk-gold); color: var(--tk-gold);
  font-weight: 700; text-align: center; line-height: 28px; }
.tk-level h3 { margin: 0 0 8px; font-size: 16px; color: var(--tk-gold); }
.tk-level p { margin: 0; color: var(--tk-text-2); line-height: 1.95; }

/* درست/غلط */
.tk-myths { margin: 0; }
.tk-myth { background: var(--tk-bg-3); border: 1px solid var(--tk-line-soft);
  border-radius: 12px; padding: 14px 16px; margin-bottom: 10px; }
.tk-myth dt { font-weight: 500; color: var(--tk-text); line-height: 1.9;
  display: flex; gap: 10px; align-items: flex-start; }
.tk-myth dd { margin: 8px 0 0; color: var(--tk-text-2); line-height: 1.9; }
.tk-myth__tag { flex: none; font-size: 12px; font-weight: 700; border-radius: 6px;
  padding: 3px 10px; line-height: 1.6; }
.tk-myth--yes { border-right: 3px solid var(--tk-gold); }
.tk-myth--yes .tk-myth__tag { background: var(--tk-gold); color: #1c1c1c; }
.tk-myth--no { border-right: 3px solid #7a7a7a; }
.tk-myth--no .tk-myth__tag { background: #3a3a3a; color: #d8d8d8; }

/* ═══════ نوار اپلیکیشن بالای صفحه ══════════════════════════════════════
 * ⚠️ حذف شد. صفحه‌ی اصلی یک نوار ۵۰px «دانلود اپلیکیشن» بالای همه‌چیز دارد
 *    که تنها کارش فرستادن به یک APK بیرونی است؛ این سایت هیچ لینک بیرونی
 *    ندارد، پس مارک‌آپش ساخته نمی‌شود.
 *
 *    استایلش اما جا مانده بود و روی موبایل هدرِ fixed را با `top: 50px`
 *    پنجاه پیکسل پایین می‌انداخت — بالای صفحه یک نوار سیاهِ خالی می‌ماند و
 *    خودِ هدر روی بنر اسلایدر می‌افتاد و ۴۵px از بالایش را می‌خورد
 *    (بنر ۱۹۵px بود، فقط ۱۵۰px دیده می‌شد). هر دو رفتار حالا حذف شده‌اند.
 * ═══════════════════════════════════════════════════════════════════════ */
.mobile-bar { top: 0; }

/* ═══════════════════ بخش‌های مخصوص همین سایت ══════════════════════════ */
.tk-in30 { border-right: 4px solid var(--tk-gold); background: var(--tk-bg-3);
  border-radius: 0 12px 12px 0; padding: 18px 20px; }
.tk-in30 p { margin: 0; color: var(--tk-text); font-size: 17px; line-height: 2; }
.tk-costly { counter-reset: c; list-style: none; padding: 0; margin: 0; }
.tk-costly li { counter-increment: c; position: relative; padding: 14px 54px 14px 16px;
  margin-bottom: 8px; background: var(--tk-bg-3); border: 1px solid var(--tk-line-soft);
  border-radius: 10px; }
.tk-costly li::before { content: counter(c); position: absolute; right: 14px; top: 14px;
  width: 28px; height: 28px; border-radius: 50%; background: var(--tk-gold); color: #17150f;
  font-weight: 700; font-size: 14px; text-align: center; line-height: 28px; }
.tk-costly b { display: block; color: var(--tk-text); margin-bottom: 5px; }
.tk-costly span { color: var(--tk-text-2); line-height: 1.9; }
.tk-ready { border-right: 4px solid var(--tk-neon-2); background: var(--tk-bg-3);
  border-radius: 0 12px 12px 0; padding: 18px 20px; }
.tk-ready p { margin: 0; color: var(--tk-text); line-height: 2; }


/* فهرست رتبه‌بندی دست‌های پوکر */
.tk-ranks { counter-reset: r; list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 8px; }
.tk-ranks li { counter-increment: r; position: relative; padding: 12px 52px 12px 14px;
  background: var(--tk-bg-3); border: 1px solid var(--tk-line); border-radius: 10px;
  color: var(--tk-text, #e6e3da);
  line-height: 1.9; }
.tk-ranks li::before { content: counter(r); position: absolute; right: 13px; top: 12px;
  width: 28px; height: 28px; border-radius: 8px; background: var(--tk-gold); color: #0e0e0e;
  font-weight: 700; font-size: 13px; text-align: center; line-height: 28px; }


/* همبرگر موبایل حالا <button> است؛ ریست بدون دست‌زدن به font-family
   (گلیف ☰ از FontAwesome می‌آید). */
.mobile-menu-action { background: none; border: 0; padding: 0; color: inherit;
  cursor: pointer; line-height: inherit; }

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

/* توکن‌ها روی :root می‌نشینند چون پاپ‌آپ مستقیم به <body> اضافه می‌شود و
   بیرون از .gw است؛ اگر اینجا نباشند، کارتِ پاپ‌آپ بی‌پس‌زمینه می‌ماند. */
:root {
  --gw-surface: var(--tk-bg-2);
  --gw-surface-2: var(--tk-bg-3);
  --gw-line: var(--tk-line);
  --gw-text: var(--tk-text);
  --gw-muted: var(--tk-text-2);
  --gw-accent: var(--tk-accent);
  --gw-accent-ink: #171717;
  --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 ═══ */
