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

:root {
  --td-bg: #1c1c1c;
  --td-bg-2: #1a1819;
  --td-bg-3: #171717;
  --td-bar: #1c1c1c;
  --td-line: #333333;
  --td-line-soft: #262626;
  /* ⚠️ این سه از روی سایت زنده نمونه‌برداری شده‌اند، نه حدسی:
       دکمه‌ی اصلی مرجع («ثبت نام») → rgb(255,203,57) = #ffcb39
       لوگوی LiveBet               → #ed1c24
     مقدار قبلی #CD993D یک طلاییِ کدرِ جامانده از سایت دیگری بود. */
  --td-gold-2: #d9a520;
  --td-gold: #ffcb39;
  --td-red: #ed1c24;
  --td-red-2: #b3151b;
  --td-accent: #ffcb39;
  --td-text: #e9e9e9;
  --td-text-2: #acacac;
  --td-text-3: #7d7d7d;
  --td-neon: #ffcb39;
  --td-neon-2: #d9a520;
  --td-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,
.td-mbanners img,
.right-bar .mt10 img { width: 100%; height: auto; }

/* ═══════════════════ نوارِ افقیِ دسته‌بندی (`.categories`) ════════════════
   ظاهرش کامل از پوسته می‌آید؛ این چند خط فقط دو چیز را درست می‌کند:
   آیکون FontAwesome باید هم‌تراز و هم‌اندازه‌ی گلیفِ فونتِ ورزشیِ مرجع باشد،
   و نوار روی موبایل باید بدونِ اسکرول‌بارِ دیده‌شونده کشیده شود. */
.event-container .categorie { min-width: 60px; vertical-align: top; }
.event-container .categorie > div:first-child { height: 34px; line-height: 34px; }
.event-container .categorie .fa { font-size: 26px; line-height: 1; }
.event-container .categories {
  scrollbar-width: none; -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}
.event-container .categories::-webkit-scrollbar { height: 0; }

/* ═══════════════════ ردیفِ بازی داخلِ `.events-holder` ═══════════════════
   هم‌ریتمِ `.event-row` مرجع: ارتفاعِ ۷۳px، خطِ بالای #333، و دکمه‌ی سمتِ چپ
   با همان رنگ و اندازه‌ی `.odd-rate` (پس‌زمینه #333، ارتفاع ۴۰px، fs12). */
.td-erow {
  display: flex; align-items: center; gap: 10px;
  padding: 16px 10px; border-top: 1px solid #333;
  text-decoration: none; color: #fff;
}
.td-erow:hover { background: #151515; }
.td-erow:hover .td-erow__go { background: #000; color: var(--td-gold); }
.td-erow__ic {
  flex: 0 0 40px; width: 40px; height: 40px; border-radius: 4px;
  background: #000; color: var(--td-gold); display: grid; place-items: center; font-size: 19px;
}
.td-erow__b { flex: 1 1 auto; min-width: 0; display: block; }
.td-erow__t { display: block; font-size: 14px; font-weight: 400; color: #fff; }
.td-erow__d {
  display: block; font-size: 12px; font-weight: 300; color: #acacac; margin-top: 3px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.td-erow__go {
  flex: 0 0 auto; background: #333; color: #fff; font-size: 12px; font-weight: 500;
  height: 40px; line-height: 40px; padding: 0 14px; text-align: center; white-space: nowrap;
}
.td-erow[hidden] { display: none; }

.td-egroup .title { padding: 10px; font-size: 14px; }
.td-egroup .title .text { float: right; width: calc(100% - 110px); }
.td-egroup .title .text .fa { color: #acacac; margin-left: 4px; }
.td-egroup__all {
  float: left; font-size: 12px; color: #acacac; text-decoration: none;
  border: 1px solid #333; border-radius: 3px; padding: 2px 10px;
}
.td-egroup__all:hover { color: var(--td-gold); border-color: var(--td-gold); }
.td-egroup[hidden] { display: none; }
.td-efound { margin: 0; padding: 18px 10px; font-size: 13px; color: #acacac; text-align: center; }
.td-efound a { color: var(--td-gold); }
.td-efound[hidden] { display: none; }
.events-holder .show-all a:hover { color: var(--td-gold); }
/* مرجع این نوار را ۴۰px بلند رندر می‌کند: padding ۱۰/۸ + خطِ ۲۲px.
   `line-height` را کمتر از ۲۲ نگذارید، وگرنه کلِ ستون ۲px بالا می‌آید. */
.events-holder .search-div { line-height: 22px; }
.events-holder .search-div .fa-search { float: right; line-height: 22px; }
.events-holder .search-div input { line-height: 22px; height: 22px; padding: 0; }

/* ستونِ راست: آیکونِ کوچکِ کنارِ هر ردیفِ فهرست */
.left-bar .menu-container .link .fa { color: #7a7a7a; margin-left: 6px; width: 15px; text-align: center; }
.left-bar .menu-container .link:hover .fa { color: var(--td-gold); }

/* نوارِ بنرهای موبایل زیرِ فهرست — همان جایگاهِ `<div class="mobile">` مرجع */
.td-mbanners a { display: block; }
.td-mbanners img { display: block; }

/* نوارِ لینکِ فوتر — مرجع یک ستون داشت، اینجا سه تا. بدون فاصله، هر سه
   به هم می‌چسبند و مثل یک بلوکِ درهم دیده می‌شوند. */
.footer-links .inline .left { margin-left: 36px; }
.footer-links .inline .left:last-of-type { margin-left: 0; }
.footer-links .inline .right img { display: block; }
@media screen and (max-width: 1000px) {
  .footer-links .inline .left { margin-left: 20px; }
}

/* جعبه‌ی «از کجا شروع کنم؟» در ستونِ چپ — در قالبِ همان `.slip-bar` مرجع */
.td-startbox { background: #0e0e0e; }
.td-startbox a {
  display: block; padding: 11px 14px; border-top: 1px solid #333;
  text-decoration: none; color: #fff;
}
.td-startbox a:first-child { border-top: 0; }
.td-startbox a:hover { background: #000; }
.td-startbox b { display: block; font-size: 14px; font-weight: 400; }
.td-startbox a:hover b { color: var(--td-gold); }
.td-startbox span {
  display: block; font-size: 12px; font-weight: 300; color: #acacac;
  margin-top: 3px; line-height: 1.7;
}

/* متنِ سئوی زیرِ قابِ سه‌ستونی — تمام‌عرض، ولی خطِ متن نباید بلند شود */
.td-main--wide { max-width: 1000px; margin-right: 0; padding-top: 22px; }

@media screen and (max-width: 1000px) {
  .td-erow { padding: 12px 8px; gap: 8px; }
  .td-erow__ic { flex-basis: 34px; width: 34px; height: 34px; font-size: 16px; }
  .td-erow__go { height: 34px; line-height: 34px; padding: 0 10px; font-size: 11px; }
  /* ⚠️ پوسته روی هر دو `nowrap` + `ellipsis` دارد. روی ۳۹۰px این یعنی هم
     زیرعنوانِ گروه و هم توضیحِ هر ردیف وسطِ کلمه بریده می‌شوند. اینجا اجازه‌ی
     شکستنِ خط داده می‌شود و توضیحِ ردیف حداکثر دو خط می‌ماند تا ارتفاعِ ردیف
     از کنترل خارج نشود. */
  .td-egroup .title .text {
    width: calc(100% - 96px); white-space: normal; line-height: 1.6;
  }
  .td-erow__d {
    white-space: normal; display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden;
  }
}
@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; }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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





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

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

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

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

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

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

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

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

/* ═══════════════════════════════════════════════════════════════════════════
 * ⚠️ اینجا قبلاً یک بلوکِ `.application` بود — نوارِ «اپ را نصب کنید» بالای
 *    صفحه. آن مارک‌آپ مدت‌هاست تولید نمی‌شود (هیچ صفحه‌ای `.application` چاپ
 *    نمی‌کند)، ولی قانونِ
 *        body:not(.td-appbar-closed) .mobile-bar { top: 50px }
 *    سرِ جایش مانده بود و **نوارِ هدرِ موبایل را ۵۰ پیکسل پایین می‌انداخت**،
 *    روی یک نوارِ خالی. کلِ بلوک حذف شد؛ اگر نوار برگشت، آن قانون را هم
 *    مشروط به وجودِ خودِ نوار بنویسید.
 * ═══════════════════════════════════════════════════════════════════════════ */

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

/* ═══════════════════════════════════════════════════════════════════════════
 * دکمه‌ی همبرگرِ نوار موبایل
 *
 * در مرجع `<a href="javascript:;">` بود — لینک مرده. اینجا `<button>` است تا
 * با کیبورد کار کند و href مرده نداشته باشد. دو آیکونِ دیگرِ همان نوار لینکِ
 * واقعی‌اند و استایلشان از خودِ پوسته (`.mobile-bar .icon a`) می‌آید.
 *
 * ⚠️ `font-family: inherit` اینجا نگذارید. کلاسِ `.fa` دارد و گلیفِ ☰ از فونت
 *    FontAwesome می‌آید؛ inherit آن را به فونتِ متنی برمی‌گرداند و به‌جای
 *    آیکون، مربعِ خالی (tofu) دیده می‌شود.
 * ═══════════════════════════════════════════════════════════════════════════ */
.mobile-bar .icon button.mobile-menu-action {
  background: none; border: 0; padding: 0; cursor: pointer; line-height: 1;
  font-size: 24px; color: #ddd;
}

/* ── فرم تماس ──────────────────────────────────────────────────────────── */
.td-form { display: grid; gap: 14px; max-width: 560px; margin-top: 4px; }
.td-form label { display: block; font-size: 14px; color: #fff; margin-bottom: 6px; }
.td-form input, .td-form select, .td-form textarea {
  width: 100%; background: #fff; border: 0; border-radius: 6px;
  padding: 12px 14px; color: #111; font-family: inherit; font-size: 15px;
  box-shadow: rgba(0, 0, 0, .05) 0 6px 24px 0, rgba(0, 0, 0, .08) 0 0 0 1px;
}
.td-form textarea { min-height: 130px; resize: vertical; }
.td-form button {
  width: 100%; text-align: center; border-radius: 6px; padding: 13px;
  background: var(--td-gold); color: #171003; border: 0;
  cursor: pointer; font-family: inherit; font-size: 15px; font-weight: 500;
}
.td-form button:hover { filter: brightness(1.08); }
.td-form__err { color: #ff9ea1; font-size: 14px; margin: 0; }
.td-form__err[hidden] { display: none; }
.td-form__ok {
  background: var(--td-bg-2); border: 1px solid var(--td-line);
  border-radius: 10px; padding: 14px 16px; color: #d9dde2; line-height: 1.9;
  margin-top: 14px;
}
.td-form__ok[hidden] { display: none; }
.td-form__out {
  white-space: pre-wrap; word-break: break-word; margin: 10px 0 0;
  background: #121212; border-radius: 8px; padding: 12px;
  font-family: inherit; font-size: 13px; color: #b6bcc4;
}

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

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