/* ═══════════════════════════════════════════════════════════════════════════
 * dn.css — دیزاین‌سیستم دنس بت
 *
 * همه‌ی مقدارهای این فایل از خودِ dancebet.io اندازه‌گیری شده‌اند (رندرشده با
 * کروم در ۱۴۴۰px و ۳۹۰px):
 *
 *   هدر ۱۲۷px = نوار بالا ۴۶ (‎#2d2d2d‎) + ردیف لوگو/منو ۸۰ (‎#000‎)
 *   ظرف ۱۲۲۰px وسط‌چین          لوگو ۳۲۶×۶۰ سمت راست
 *   ورود ۱۵۴×۳۰ روی ‎#ffba00‎    ثبت‌نام ۷۹×۳۰ بدون پس‌زمینه
 *   نوار منو ۶۲۶×۶۴، هر آیتم padding 0 15px، آیکون ۲۳×۲۳
 *   بنر ۱۴۴۰×۶۶۰ تمام‌عرض       کارت بازی ۲۳۰×۱۳۰، فاصله ۲۳۹ (گپ ۹)
 *   فوتر ۵۶ (‎#2d2d2d‎) + ۸۰ (‎#000‎)، لینک‌های ریز ۱۲px
 *   موبایل: هدر ۵۰ (‎#4b0242‎)، لوگو ۲۱۷×۴۰، بنر ۳۹۰×۲۰۰،
 *           کارت ۳۸۴×۲۱۶، نوار پایین ۵۰ (‎#4b0242‎)، متن ۱۰px
 * ═══════════════════════════════════════════════════════════════════════════ */

:root {
  --black: #000;
  --bar: #2d2d2d;
  --page-m: #17191f;
  --gold: #ffba00;
  --gold-2: #f0b429;
  --gold-soft: #ffe5b7;
  --purple: #4b0242;
  --purple-2: #6a0a5e;
  --line: #2a2a2a;
  --line-soft: #1e1e1e;
  --surface: #141414;
  --surface-2: #1b1b1b;
  --txt: #fff;
  --txt-2: #b6b6b6;
  --txt-3: #8a8a8a;

  --wrap: 1220px;
  --hdr-1: 46px;
  --hdr-2: 80px;
  --fa: Dubai, Vazirmatn, tahoma, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  margin: 0; background: var(--black); color: var(--txt);
  font: 400 14px/1.7 var(--fa); overflow-x: hidden;
}
img, 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(--gold); outline-offset: 2px;
}
.dn-sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
/* ⚠️ در RTL هرگز با inset-inline-start:-9999px پنهان نکنید — ناحیه‌ی اسکرول
   را به راست می‌کشد و صفحه اسکرول افقی می‌گیرد. */
.dn-skip {
  position: absolute; inset-inline-start: 0; top: 0; z-index: 999;
  background: var(--gold); color: #000; padding: 10px 18px; font-weight: 700;
  transform: translateY(-200%);
}
.dn-skip:focus { transform: none; }

.dn-wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 10px; }

/* ═══════════════════════════════════════════════════════════════ هدر ══ */
.dn-hdr { background: var(--black); }

.dn-hdr__top { background: var(--bar); padding-bottom: 8px; }
.dn-hdr__top-in {
  max-width: var(--wrap); margin-inline: auto; height: 38px;
  display: flex; align-items: center;
}
.dn-lang {
  display: inline-flex; align-items: center; gap: 6px; height: 28px;
  padding: 0 10px; color: var(--txt-2); font-size: 14px;
}
.dn-lang::after {
  content: ''; width: 0; height: 0; margin-top: 3px;
  border: 5px solid transparent; border-top-color: currentColor;
}
.dn-hdr__auth { display: flex; align-items: center; }
.dn-lang { margin-inline-start: auto; }
.dn-btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 30px; padding: 0 20px; font-size: 14px; white-space: nowrap; border: 0; cursor: pointer;
}
.dn-btn--signup { background: transparent; color: var(--gold); }
.dn-btn--signup:hover { color: #fff; }
.dn-btn--login { background: var(--gold); color: #111; font-weight: 700; }
.dn-btn--login:hover { background: #ffc933; }

.dn-hdr__main {
  max-width: var(--wrap); margin-inline: auto; padding-inline: 10px;
  height: var(--hdr-2); display: flex; align-items: center;
}
.dn-hdr__logo { flex: 0 0 auto; }
.dn-hdr__logo img { width: 326px; height: 60px; object-fit: contain; }
.dn-topnav { display: flex; align-items: stretch; margin-inline-end: 10px; }
.dn-topnav a {
  height: 64px; padding: 0 15px; display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: #fff; white-space: nowrap; line-height: 1.2;
}
/* ⚠️ آیکون‌ها در مارک‌آپِ سایت مرجع هستند ولی روی دسکتاپ دیده نمی‌شوند —
   نوارِ منو متن‌تنهاست. مارک‌آپ را نگه می‌داریم (نوار پایین موبایل از همان
   فایل‌ها استفاده می‌کند) و فقط اینجا پنهانشان می‌کنیم. */
.dn-topnav img { display: none; }
.dn-topnav a:hover { color: var(--gold); }
.dn-topnav a[aria-current='page'] { color: var(--gold); }

/* دکمه‌ی همبرگری، منوی کشویی و نوار پایین — فقط زیر ۹۹۲px روشن می‌شوند.
   این سه خط باید *قبل* از مدیا-کوئری باشند وگرنه display:flexِ آن را خنثی می‌کنند. */
.dn-mhdr, .dn-mbar, .dn-mmenu { display: none; }

/* ═══════════════════════════════════════════════════ بنر تمام‌عرض ═════ */
.dn-splash { position: relative; overflow: hidden; background: #111; }
.dn-splash__track { position: relative; aspect-ratio: 1440 / 660; }
.dn-splash__slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity .5s ease; pointer-events: none;
}
.dn-splash__slide.is-on { opacity: 1; pointer-events: auto; }
.dn-splash__slide img { width: 100%; height: 100%; object-fit: cover; }
.dn-splash__dots {
  position: absolute; inset-inline-start: 18px; bottom: 16px; z-index: 3; display: flex; gap: 7px;
}
.dn-splash__dots button {
  width: 10px; height: 10px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
  background: rgba(255, 255, 255, .45);
}
.dn-splash__dots button.is-on { background: var(--gold); }
@media (prefers-reduced-motion: reduce) { .dn-splash__slide { transition: none; } }

/* ═══════════════════════════════════ ردیف کارت بازی (main-games-box) ══
 * ۶ کارت ۲۳۰×۱۳۰ با فاصله‌ی ۲۳۹ ⇒ گپ ۹px. نسبت تصویر ۸۵۰/۴۷۹.
 * ═══════════════════════════════════════════════════════════════════════ */
.dn-games { background: var(--black); padding: 10px 0; }
.dn-games__row {
  max-width: 1440px; margin-inline: auto; padding-inline: 6px;
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 9px;
}
.dn-card {
  display: block; position: relative; overflow: hidden;
  aspect-ratio: 850 / 479; background: #3a2300;
  transition: transform .18s ease, box-shadow .18s ease;
}
.dn-card img { width: 100%; height: 100%; object-fit: cover; }
.dn-card:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(255, 186, 0, .22); }
.dn-card__badge {
  position: absolute; top: 6px; inset-inline-start: 6px; z-index: 2;
  height: 18px; padding: 0 8px; background: var(--gold); color: #111;
  font: 700 10px/18px var(--fa);
}
.dn-card[hidden] { display: none; }

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

/* ═══════════════════════════════════════════════════════════════ فوتر ══ */
.dn-foot { background: var(--bar); padding: 20px 0; text-align: center; font-size: 14px; color: #fff; }
.dn-footlinks { background: var(--black); padding: 24px 0 20px; }
.dn-footcols {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding-bottom: 20px;
}
.dn-footcol h2 { margin: 0 0 10px; font-size: 13px; font-weight: 700; color: var(--gold); }
.dn-footcol ul { list-style: none; margin: 0; padding: 0; }
.dn-footcol li { margin-bottom: 7px; }
.dn-footcol a { font-size: 12px; color: var(--txt-2); }
.dn-footcol a:hover { color: #fff; }
.dn-footbot {
  display: flex; align-items: flex-start; gap: 16px; flex-wrap: wrap;
  border-top: 1px solid #1a1a1a; padding-top: 16px;
}
.dn-footbot__note { flex: 1; min-width: 240px; color: var(--txt-3); font-size: 12px; line-height: 1.9; }
.dn-footbot__note a { color: var(--txt-2); text-decoration: underline; }
.dn-footbot__note a:hover { color: var(--gold); }
.dn-footmini { display: grid; gap: 4px; text-align: start; }
.dn-footmini a { font-size: 12px; color: var(--txt-2); }
.dn-footmini a::before { content: '• '; color: var(--gold); }
.dn-footmini a:hover { color: #fff; }
.dn-foot18 {
  width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--gold);
  color: var(--gold); direction: ltr; font: 700 10px/26px Arial, sans-serif;
  text-align: center; flex: 0 0 auto;
}

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

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

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

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

.dn-note {
  border: 1px solid var(--line); border-inline-start: 3px solid var(--gold);
  background: var(--surface); padding: 12px 14px; margin: 16px 0;
  color: #cfcfcf; font-size: 14px; line-height: 1.95;
}
.dn-note--warn { border-inline-start-color: #e0483c; }
.dn-note strong { color: #fff; }

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

.dn-boxes { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px; }
.dn-box { background: var(--surface); border: 1px solid var(--line); padding: 14px 16px; }
.dn-box h3 { font-size: 15px; font-weight: 700; color: var(--gold); margin: 0 0 6px; }
.dn-box p { margin: 0; font-size: 13.5px; color: var(--txt-2); line-height: 1.9; }

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

.dn-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 22px; font-weight: 700; font-size: 14px;
  border: 1px solid transparent; cursor: pointer;
}
.dn-cta--go { background: var(--gold); color: #111; }
.dn-cta--go:hover { background: #ffc933; }
.dn-cta--ghost { background: transparent; border-color: var(--line); color: #fff; }
.dn-cta--ghost:hover { border-color: var(--gold); color: var(--gold); }
.dn-cta--sm { height: 32px; padding: 0 16px; font-size: 13px; }

.dn-faq__list { display: grid; gap: 8px; }
.dn-faq__item { background: var(--surface); border: 1px solid var(--line); }
.dn-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;
}
.dn-faq__item summary::-webkit-details-marker { display: none; }
.dn-faq__item summary::after { content: '+'; color: var(--gold); font-size: 20px; line-height: 1; }
.dn-faq__item[open] summary::after { content: '−'; }
.dn-faq__a { padding: 0 15px 12px; color: #cfcfcf; font-size: 14px; line-height: 1.95; }
.dn-faq__a p { margin: 0 0 .8em; }
.dn-faq__a p:last-child { margin-bottom: 0; }
.dn-faq__a a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }

.dn-finder { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.dn-finder input {
  flex: 1 1 240px; height: 40px; background: var(--surface); border: 1px solid var(--line);
  padding: 0 14px; color: #fff; font: 400 14px/1.4 var(--fa);
}
.dn-finder input::placeholder { color: var(--txt-3); }
.dn-finder__count { color: var(--txt-2); font-size: 13px; }

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

.dn-tablewrap { overflow-x: auto; }
.dn-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 520px; }
.dn-table th, .dn-table td { padding: 9px 10px; text-align: start; border-bottom: 1px solid var(--line-soft); }
.dn-table thead th { color: var(--txt-3); font-weight: 400; font-size: 12px; }
.dn-table tbody tr:hover { background: rgba(255, 255, 255, .03); }
.dn-table a { color: #fff; font-weight: 700; }
.dn-table a:hover { color: var(--gold); }
.dn-table td b { color: var(--gold); font-weight: 700; }

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

/* ═══════════════════════ بلوک‌های اختصاصیِ صفحه‌ی بازی ════════════════ */
.dn-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dn-two__c { background: var(--surface); border: 1px solid var(--line); padding: 16px 18px; }
.dn-two__c h3 { margin: 0 0 10px; font-size: 15px; font-weight: 700; }
.dn-two__c ul { margin: 0; padding-inline-start: 1.2em; padding-inline-end: 0; }
.dn-two__c li { margin-bottom: 8px; color: #cfcfcf; line-height: 1.9; font-size: 14px; }
.dn-two__c--out { border-top: 3px solid #e0483c; }
.dn-two__c--out h3 { color: #e0483c; }
.dn-two__c--in { border-top: 3px solid var(--gold); }
.dn-two__c--in h3 { color: var(--gold); }
.dn-forwhom { border-inline-start: 4px solid var(--gold); background: var(--surface); padding: 16px 18px; }
.dn-forwhom p { margin: 0; color: #fff; font-size: 16px; line-height: 2; }
.dn-loop {
  counter-reset: l; list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
}
.dn-loop li {
  counter-increment: l; position: relative; padding: 14px 50px 14px 14px;
  background: var(--surface); border: 1px solid var(--line); color: #cfcfcf;
  line-height: 1.85; font-size: 14px;
}
.dn-loop li::before {
  content: counter(l); position: absolute; inset-inline-start: 13px; top: 13px;
  width: 26px; height: 26px; background: var(--gold); color: #111;
  font-weight: 700; font-size: 13px; text-align: center; line-height: 26px;
}
.dn-exit { border-inline-start: 4px solid #e0483c; background: var(--surface); padding: 16px 18px; }
.dn-exit p { margin: 0; color: #cfcfcf; line-height: 2; }
.dn-path { counter-reset: p; list-style: none; padding: 0; margin: 0; }
.dn-path li {
  counter-increment: p; position: relative; padding: 13px 52px 13px 14px; margin-bottom: 8px;
  background: var(--surface); border: 1px solid var(--line); color: #cfcfcf; line-height: 1.9; font-size: 14px;
}
.dn-path li::before {
  content: counter(p); position: absolute; inset-inline-start: 12px; top: 12px;
  width: 28px; height: 28px; background: var(--gold); color: #111;
  font-weight: 700; font-size: 14px; text-align: center; line-height: 28px;
}
.dn-stop { list-style: none; padding: 0; margin: 0; }
.dn-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 #e0483c; color: #cfcfcf; line-height: 1.9; font-size: 14px;
}
.dn-stop li::before {
  content: '\2715'; position: absolute; inset-inline-start: 16px; top: 13px;
  color: #e0483c; font-weight: 700;
}

/* ═══════════════════════════════════════════════════════════ ریسپانسیو ══ */
@media (max-width: 1240px) {
  .dn-games__row { grid-template-columns: repeat(4, 1fr); }
  .dn-topnav a { padding: 0 11px; font-size: 13px; }
  .dn-hdr__logo img { width: 260px; height: 48px; }
}
@media (max-width: 992px) {
  /* زیر این عرض سایت مرجع کاملاً به پوسته‌ی موبایل سوییچ می‌کند */
  .dn-hdr__top, .dn-hdr__main { display: none; }
  .dn-mhdr {
    display: flex; align-items: center; justify-content: center; position: relative;
    height: 50px; background: var(--purple);
  }
  .dn-mhdr__logo img { width: 217px; height: 40px; object-fit: contain; }
  /* در RTL، inline-start سمت راست است — سایت مرجع دکمه را در x=350..390
     یعنی لبه‌ی راست دارد. با inline-end اشتباهاً سمت چپ می‌افتاد. */
  .dn-mhdr__burger {
    position: absolute; inset-inline-start: 10px; top: 50%; transform: translateY(-50%);
    width: 40px; height: 34px; border: 0; background: transparent; cursor: pointer;
    display: grid; place-items: center;
  }
  .dn-mhdr__burger i {
    width: 21px; height: 2px; background: #fff; display: block; position: relative;
  }
  .dn-mhdr__burger i::before, .dn-mhdr__burger i::after {
    content: ''; position: absolute; left: 0; width: 21px; height: 2px; background: #fff;
  }
  .dn-mhdr__burger i::before { top: -7px; }
  .dn-mhdr__burger i::after { top: 7px; }

  .dn-mmenu {
    /* ⚠️ باگ قدیمی: بالاتر `.dn-mmenu { display: none }` برای همه‌ی عرض‌ها
       نوشته شده بود و اینجا هیچ‌وقت display دوباره روشن نمی‌شد، پس کشوی
       منوی موبایل با کلیک روی برگر هم باز نمی‌شد (hidden برداشته می‌شد ولی
       همچنان display:none بود). */
    display: block;
    position: fixed; inset: 50px 0 0; z-index: 95; background: rgba(0, 0, 0, .97);
    overflow-y: auto; padding: 6px 0 70px;
  }
  .dn-mmenu[hidden] { display: none; }
  .dn-mmenu a {
    display: block; padding: 14px 18px; border-bottom: 1px solid #1c1c1c;
    color: #fff; font-size: 15px;
  }
  .dn-mmenu a:hover, .dn-mmenu a[aria-current='page'] { color: var(--gold); }

  .dn-mbar {
    display: flex; position: fixed; inset-inline: 0; bottom: 0; z-index: 90;
    height: 50px; background: var(--purple);
  }
  .dn-mbar a {
    flex: 1; min-width: 0; display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 3px;
    font-size: 10px; color: #fff; text-align: center; padding: 0 2px; line-height: 1.2;
  }
  .dn-mbar img { width: 20px; height: 20px; }
  .dn-mbar a span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
  .dn-mbar a[aria-current='page'] { color: var(--gold); }
  body { background: var(--page-m); padding-bottom: 50px; }

  .dn-splash__track { aspect-ratio: 390 / 200; }
  .dn-games__row { grid-template-columns: 1fr; gap: 6px; padding-inline: 3px; }
  .dn-grid { grid-template-columns: 1fr; gap: 6px; }
  .dn-footcols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dn-two { grid-template-columns: 1fr; }
  .dn-loop { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .dn-main { padding: 16px 12px 24px; }
  .dn-form__two { grid-template-columns: 1fr; }
  .dn-footcols { gap: 16px; }
}
@media (max-width: 360px) {
  .dn-mbar a { font-size: 9px; }
  .dn-mhdr__logo img { width: 180px; height: 34px; }
}

/* ═══ 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(--gold);
  --gw-accent-ink: #000000;
  --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 ═══ */
