/* ═══════════════════════════════════════════════════════════════════════════
 * hz.css — دیزاین‌سیستم حضران
 *
 * همه‌ی عددهای این فایل از خودِ پلتفرم حضران اندازه‌گیری شده‌اند (رندرشده با
 * کروم روی ۱۴۴۰px و ۳۹۰px):
 *
 *   پس‌زمینه #1c1c1c · طلاییِ برند #CD993D · نوارِ لینک فوتر #000
 *   هدر سه‌طبقه: ۵۲ (زبان/ورود/ثبت‌نام) + ۶۳ (لوگو ۳۲۰×۵۸ + منو) + ۴۰ = ۱۶۵
 *   ثبت نام ۸۹×۲۸ طلایی · ورود ۱۸۲×۳۰ خطی
 *   بدنه سه‌ستونه در ۱۴۴۰: [چپ ۳۵۰ @x=10] [وسط ۷۵۰ @x=370] [راست ۳۰۰ @x=1130]
 *   بنر وسط ۷۵۰×۳۷۵ · نوار دسته ۷۵۰×۶۹ · جستجو ۷۳۰×۴۰ روی #000
 *   کارت بازیِ ریل راست ۳۰۰×۱۵۰ با فاصله‌ی ۱۰ (گامِ ۱۶۰)
 *   فوتر ۱۴۴۰×۵۶ + نوار لینک ۱۴۴۰×۸۰ روی #000
 *   موبایل ۳۹۰: هدر ۵۰ (همبرگر راست، لوگو ۲۲۱×۴۰ وسط)، بنر ۳۹۰×۱۹۵،
 *               کارت ۳۹۰×۱۹۵ با گام ۲۰۵، نوار پایینِ ثابت ۵۰ با ۵ آیتم ۷۸×۴۴
 * ═══════════════════════════════════════════════════════════════════════════ */

/* ⚠️ فونت را خودمان اعلام می‌کنیم و نه با IRANSans-web.css خودِ پلتفرم:
   آن فایل اول به .eot اشاره می‌کند که در پروژه نیست و روی هر صفحه دو ۴۰۴
   می‌دهد. سه وزنِ woff2 همان فایل‌های اصلیِ پلتفرم‌اند، دست‌نخورده. */
@font-face { font-family: IRANSans; font-weight: 300; font-display: swap;
  src: url('/alive/assets/fonts/IRANSans/IRANSans-Light-web.woff2') format('woff2'); }
@font-face { font-family: IRANSans; font-weight: 400; font-display: swap;
  src: url('/alive/assets/fonts/IRANSans/IRANSans-web.woff2') format('woff2'); }
@font-face { font-family: IRANSans; font-weight: 500 700; font-display: swap;
  src: url('/alive/assets/fonts/IRANSans/IRANSans-Medium-web.woff2') format('woff2'); }

:root {
  --bg: #1c1c1c;
  --bg-2: #232323;
  --bg-3: #2a2a2a;
  --ink: #000;
  --gold: #CD993D;
  --gold-2: #E8BC63;
  --gold-deep: #9a6f22;       /* برای متنِ روی زمینه‌ی روشن و دکمه‌ی AA */
  --orange: #F5921E;
  --line: #333;
  --line-2: #3d3d3d;
  --txt: #fff;
  --txt-2: #c9c9c9;
  --txt-3: #9a9a9a;

  --wrap: 1440px;
  --pad: 10px;
  --col-l: 350px;             /* ستون چپ  (.right-bar در مارک‌آپ مرجع) */
  --col-c: 750px;             /* ستون وسط (.event-container) */
  --col-r: 300px;             /* ستون راست (.left-bar) */
  --fa: IRANSans, Vazirmatn, tahoma, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  margin: 0; background: var(--bg); color: var(--txt);
  font: 400 14px/1.8 var(--fa); overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
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;
}
.hz-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 پنهان نکنید — ناحیه‌ی اسکرول
   را به راست می‌کشد و کل صفحه اسکرول افقی می‌گیرد. */
.hz-skip {
  position: absolute; inset-inline-start: 0; top: 0; z-index: 999;
  background: var(--gold); color: #1a1208; padding: 10px 18px; font-weight: 700;
  transform: translateY(-200%);
}
.hz-skip:focus { transform: none; }

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

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

/* طبقه‌ی ۱ — ۵۲px: پرچم زبان (چپ)، ورود، ثبت نام */
.hz-hdr__top {
  max-width: var(--wrap); margin-inline: auto; padding-inline: 20px;
  height: 52px; display: flex; align-items: center; gap: 10px;
  /* ⚠️ در RTL، flex-end یعنی سمتِ *چپ*. در پلتفرم این سه آیتم در گوشه‌ی
     چپِ هدر جمع‌اند (پرچم x=۲۱، ورود x=۷۵، ثبت نام x=۲۶۷) و ترتیبِ دیداری
     از چپ می‌شود: پرچم، ورود، ثبت نام. */
  justify-content: flex-end;
}
.hz-lang {
  display: flex; align-items: center; gap: 5px; padding: 6px;
  font-size: 12px; color: var(--txt-2);
}
.hz-lang img { width: 24px; height: 24px; border-radius: 3px; }
.hz-lang::after {
  content: ''; width: 0; height: 0; margin-top: 2px;
  border: 4px solid transparent; border-top-color: currentColor;
}
.hz-auth { display: flex; align-items: center; gap: 10px; }
.hz-btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 30px; padding: 0 16px; font-size: 13px; white-space: nowrap;
  border: 1px solid var(--line-2); border-radius: 4px; color: #fff; cursor: pointer;
  background: transparent; transition: border-color .2s, color .2s;
}
.hz-btn:hover { border-color: var(--gold); color: var(--gold-2); }
.hz-btn--gold {
  height: 28px; background: var(--gold); border-color: var(--gold);
  color: #1a1208; font-weight: 700;
}
.hz-btn--gold:hover { background: var(--gold-2); border-color: var(--gold-2); color: #1a1208; }

/* طبقه‌ی ۲ — ۶۳px: لوگوی ۳۲۰×۵۸ سمت راست، منوی شش‌تایی کنارش */
.hz-hdr__main {
  max-width: var(--wrap); margin-inline: auto; padding-inline: 20px;
  height: 63px; display: flex; align-items: center; gap: 24px;
}
.hz-hdr__logo { flex: 0 0 auto; }
.hz-hdr__logo img { width: 320px; height: 58px; object-fit: contain; }
.hz-topnav {
  flex: 1 1 auto; display: flex; align-items: flex-end; justify-content: flex-start;
  gap: 24px; height: 100%; padding-bottom: 12px;
}
.hz-topnav a { font-size: 14px; color: #fff; white-space: nowrap; transition: color .2s; }
.hz-topnav a:hover, .hz-topnav a[aria-current='page'] { color: var(--gold); }

/* طبقه‌ی ۳ — ۴۰px: لینک بازی‌ها، زیرخطِ طلایی روی فعال/hover */
.hz-hdr__sub { border-top: 1px solid var(--bg); background: var(--bg); }
.hz-subnav {
  max-width: var(--wrap); margin-inline: auto; padding-inline: 20px;
  height: 40px; display: flex; align-items: stretch; gap: 6px;
}
.hz-subnav a {
  display: flex; align-items: center; padding: 0 14px; font-size: 13px;
  color: var(--txt-2); white-space: nowrap; border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}
.hz-subnav a:hover, .hz-subnav a[aria-current='page'] {
  color: #fff; border-bottom-color: var(--gold);
}

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

/* ══════════════════════════════════════════ بدنه‌ی سه‌ستونه ═══════════ */
.hz-page {
  max-width: var(--wrap); margin-inline: auto; padding: 5px 10px 0;
  display: grid; gap: 10px; align-items: start;
  /* ⚠️ در RTL ستونِ گریدِ شماره‌ی ۱ سمتِ *راست* می‌افتد. در مرجع ریلِ
     بازی‌ها (۳۰۰) سمت راست و ستون تبلیغ‌ها (۳۵۰) سمت چپ است، پس ترتیبِ
     تمپلیت می‌شود [راست ۳۰۰ | وسط | چپ ۳۵۰].
     grid-row: 1 هم لازم است وگرنه ستونِ سومِ سورس به ردیف دوم می‌افتد. */
  grid-template-columns: var(--col-r) minmax(0, 1fr) var(--col-l);
}
.hz-col-c { grid-column: 2; grid-row: 1; min-width: 0; }
.hz-col-r { grid-column: 1; grid-row: 1; }
.hz-col-l { grid-column: 3; grid-row: 1; }

/* صفحه‌های داخلی: ستون وسط پهن‌تر، بدون ریلِ تبلیغ */
.hz-page--wide { grid-template-columns: var(--col-r) minmax(0, 1fr); }
.hz-page--wide .hz-col-c { grid-column: 2; }
.hz-page--wide .hz-col-r { grid-column: 1; }

/* ═══════════════════════════════════════ قاب‌های مشترکِ پوسته ═════════ */
.hz-box { background: var(--bg); margin-bottom: 10px; }
.hz-box__t {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  height: 44px; padding: 0 14px; background: var(--bg);
  border-bottom: 1px solid var(--line); color: var(--gold);
  font-size: 14px; font-weight: 700;
}
.hz-box__t .hz-caret {
  width: 0; height: 0; border: 5px solid transparent; border-top-color: currentColor;
  margin-top: 4px;
}
.hz-box__b { padding: 0; }

/* فهرستِ ریل — مثل .sport-live-container مرجع */
.hz-rail { display: flex; flex-direction: column; }
.hz-rail a {
  display: flex; align-items: center; gap: 9px; padding: 0 14px;
  height: 42px; font-size: 13px; color: var(--txt-2);
  border-bottom: 1px solid var(--line); transition: color .2s, background .2s;
}
.hz-rail a::before {
  content: ''; width: 7px; height: 7px; flex: 0 0 auto;
  border-radius: 50%; background: var(--gold); opacity: .65;
}
.hz-rail a:last-child { border-bottom: 0; }
.hz-rail a:hover, .hz-rail a[aria-current='page'] { color: var(--gold); background: var(--bg-2); }

/* ═══════════════════════════════════════════════ بنرِ ستون وسط ═══════ */
.hz-splash { position: relative; overflow: hidden; }
.hz-splash__track { position: relative; aspect-ratio: 750 / 375; }
.hz-splash__slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity .5s ease;
  pointer-events: none;
}
.hz-splash__slide.is-on { opacity: 1; pointer-events: auto; }
.hz-splash__slide img { width: 100%; height: 100%; object-fit: cover; }
.hz-splash__dots {
  position: absolute; inset-inline-start: 14px; bottom: 12px; z-index: 3;
  display: flex; gap: 6px;
}
.hz-splash__dots button {
  width: 9px; height: 9px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
  background: rgba(255, 255, 255, .45);
}
.hz-splash__dots button.is-on { background: var(--gold); }
@media (prefers-reduced-motion: reduce) { .hz-splash__slide { transition: none; } }

/* نوار جمع‌شونده‌ی زیر بنر (.block مرجع، ۳۷px) */
.hz-strip {
  height: 37px; margin-top: 10px; padding: 0 14px; background: var(--bg);
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13px; color: var(--txt-2); border-bottom: 1px solid var(--line);
}

/* نوار دسته‌ها (.categories مرجع، ۶۹px، هر آیتم ۶۰px با زیرخطِ طلایی) */
.hz-cats {
  display: flex; gap: 0; background: var(--bg); overflow-x: auto;
  scrollbar-width: none; border-bottom: 1px solid var(--line);
}
.hz-cats::-webkit-scrollbar { display: none; }
.hz-cats a {
  flex: 0 0 auto; min-width: 60px; height: 69px; padding: 10px 8px 0;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  gap: 6px; font-size: 11px; color: var(--txt-2); text-align: center;
  border-bottom: 2px solid transparent; transition: color .2s, border-color .2s;
}
.hz-cats a img { width: 26px; height: 26px; object-fit: contain; }
.hz-cats a .hz-cats__ic {
  width: 26px; height: 26px; display: grid; place-items: center;
  font-size: 20px; color: var(--gold);
}
.hz-cats a:hover, .hz-cats a[aria-current='page'] {
  color: #fff; border-bottom-color: var(--gold);
}

/* جعبه‌ی محتوا (.events-holder مرجع) */
.hz-holder { background: var(--bg); padding: 11px 10px 14px; }
.hz-search {
  height: 40px; background: var(--ink); border: 1px solid var(--line);
  display: flex; align-items: center; gap: 8px; padding: 0 12px; margin-bottom: 12px;
}
.hz-search input {
  flex: 1; height: 100%; background: transparent; border: 0; color: #fff;
  font: inherit; font-size: 13px; outline: none;
}
.hz-search input::placeholder { color: var(--txt-3); }
.hz-search__ic { color: var(--txt-3); font-size: 15px; }

/* ═══════════════════════════════════════════════ کارت بازی ═══════════ */
.hz-card {
  display: block; position: relative; overflow: hidden;
  aspect-ratio: 700 / 350; background: #15100c;
  transition: transform .18s ease, box-shadow .18s ease;
}
.hz-card img { width: 100%; height: 100%; object-fit: cover; }
.hz-card:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(205, 153, 61, .3); }
.hz-card[hidden] { display: none; }
/* نوار عنوان — در ریل و گرید زیر تصویر می‌نشیند */
.hz-card__t {
  position: absolute; inset-inline: 0; bottom: 0; padding: 7px 10px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .86) 46%);
  font-size: 13px; font-weight: 700; color: #fff; text-align: center;
}

.hz-rail-cards { display: grid; gap: 10px; }
.hz-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.hz-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* ═══════════════════════════════════════════ کارت‌های تبلیغاتی ═══════ */
.hz-promos { display: grid; gap: 10px; }
.hz-promo { display: block; overflow: hidden; background: var(--bg-2); }
.hz-promo img { width: 100%; height: auto; }
.hz-promo:hover { box-shadow: 0 6px 20px rgba(0, 0, 0, .5); }
.hz-promo__c { padding: 10px 12px 12px; border-top: 1px solid var(--line); }
.hz-promo__c h3 { margin: 0 0 4px; font-size: 14px; color: var(--gold-2); }
.hz-promo__c p { margin: 0; font-size: 12.5px; color: var(--txt-2); line-height: 1.8; }

/* جعبه‌ی «فرم پیش بینی» — قابِ طلاییِ ستون چپ */
.hz-slip { margin-bottom: 10px; }
.hz-slip__t {
  height: 45px; display: flex; align-items: center; padding: 0 14px;
  background: var(--bg); color: var(--gold); font-size: 14px; font-weight: 700;
  border-bottom: 1px solid var(--line);
}
.hz-slip__b {
  background: var(--gold); color: #1a1208; padding: 13px 16px;
  font-size: 13px; line-height: 1.75; text-align: center;
}
.hz-slip__b a { font-weight: 700; text-decoration: underline; }

/* ═══════════════════════════════════════════════════ محتوای متنی ════ */
.hz-main { background: var(--bg); padding: 16px 16px 24px; }
.hz-crumb { font-size: 12px; color: var(--txt-3); margin-bottom: 12px; }
.hz-crumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.hz-crumb li + li::before { content: '‹'; margin-inline-end: 6px; color: var(--line-2); }
.hz-crumb a:hover { color: var(--gold); }

.hz-h1 {
  margin: 0 0 10px; font-size: 26px; line-height: 1.5; font-weight: 700; color: #fff;
  border-inline-start: 3px solid var(--gold); padding-inline-start: 12px;
}
.hz-lead { margin: 0 0 18px; font-size: 15px; line-height: 2; color: var(--txt-2); }

.hz-sec { margin-top: 26px; }
.hz-sec__h {
  margin: 0 0 6px; font-size: 19px; font-weight: 700; color: var(--gold);
  display: flex; align-items: center; gap: 9px;
}
.hz-sec__h::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--gold);
}
.hz-sec__sub { margin: 0 0 12px; font-size: 13px; color: var(--txt-3); }

.hz-prose { font-size: 14px; line-height: 2.05; color: var(--txt-2); }
.hz-prose h2 { margin: 24px 0 8px; font-size: 18px; color: var(--gold); }
.hz-prose h3 { margin: 18px 0 6px; font-size: 15.5px; color: var(--gold-2); }
.hz-prose p { margin: 0 0 12px; }
.hz-prose a { color: var(--gold-2); text-decoration: underline; text-underline-offset: 3px; }
.hz-prose a:hover { color: var(--gold); }

/* لینک داخل متن‌های بدنه غیر از .hz-prose.
   ⚠️ بدون این قاعده، لینک‌های داخل .hz-lead / .hz-sec__sub / .hz-box2 دقیقاً
   هم‌رنگ متن اطرافشان و بدون زیرخط می‌افتند — نه با رنگ قابل تشخیص‌اند نه با
   چیز دیگر (نقض WCAG 1.4.1). axe این را نمی‌گیرد چون وقتی رنگ لینک و متن
   کاملاً یکسان است اصلاً لینک را به‌عنوان لینکِ داخل متن نمی‌شناسد. */
.hz-lead a,
.hz-sec__sub a,
.hz-box2 p a { color: var(--gold-2); text-decoration: underline; text-underline-offset: 3px; }
.hz-lead a:hover,
.hz-sec__sub a:hover,
.hz-box2 p a:hover { color: var(--gold); }
.hz-prose ul, .hz-prose ol { margin: 0 0 14px; padding-inline-start: 20px; }
.hz-prose li { margin-bottom: 7px; }
.hz-prose b, .hz-prose strong { color: #fff; }

.hz-note {
  background: var(--bg-2); border-inline-start: 3px solid var(--gold);
  padding: 12px 14px; font-size: 13.5px; line-height: 1.95; color: var(--txt-2);
}
.hz-note strong { color: var(--gold-2); }

.hz-steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.hz-steps li {
  counter-increment: s; position: relative; padding-inline-start: 46px;
  margin-bottom: 14px; min-height: 34px;
}
.hz-steps li::before {
  content: counter(s); position: absolute; inset-inline-start: 0; top: 0;
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: var(--gold); color: #1a1208; font-weight: 700; font-size: 14px;
}
.hz-steps b { display: block; color: #fff; font-size: 14.5px; }
.hz-steps span { display: block; font-size: 13px; color: var(--txt-3); line-height: 1.85; }

.hz-boxes { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.hz-box2 { background: var(--bg-2); border: 1px solid var(--line); padding: 13px 15px; }
.hz-box2 h3 { margin: 0 0 5px; font-size: 14.5px; color: var(--gold-2); }
.hz-box2 p { margin: 0; font-size: 13px; color: var(--txt-2); line-height: 1.9; }

.hz-links { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.hz-links a {
  display: block; background: var(--bg-2); border: 1px solid var(--line);
  padding: 11px 14px; font-size: 14px; font-weight: 700; color: #fff;
  transition: border-color .2s, background .2s;
}
.hz-links a span {
  display: block; margin-top: 3px; font-size: 12.5px; font-weight: 400; color: var(--txt-3);
}
.hz-links a:hover { border-color: var(--gold); background: var(--bg-3); }

.hz-tablewrap { overflow-x: auto; }
.hz-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 460px; }
.hz-table th, .hz-table td {
  padding: 9px 11px; border: 1px solid var(--line); text-align: start; vertical-align: top;
}
.hz-table th { background: var(--bg-3); color: var(--gold-2); font-weight: 700; }
.hz-table td { color: var(--txt-2); }
.hz-table a { color: var(--gold-2); text-decoration: underline; text-underline-offset: 3px; }
.hz-table b { color: #fff; }

/* FAQ */
.hz-faq__list { display: grid; gap: 7px; }
.hz-faq__item { background: var(--bg-2); border: 1px solid var(--line); }
.hz-faq__item summary {
  cursor: pointer; padding: 12px 14px; font-size: 14px; font-weight: 700; color: #fff;
  list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.hz-faq__item summary::-webkit-details-marker { display: none; }
.hz-faq__item summary::after {
  content: '+'; color: var(--gold); font-size: 19px; line-height: 1; flex: 0 0 auto;
}
.hz-faq__item[open] summary::after { content: '−'; }
.hz-faq__a { padding: 0 14px 13px; font-size: 13.5px; line-height: 2; color: var(--txt-2); }
.hz-faq__a p { margin: 0 0 9px; }
.hz-faq__a p:last-child { margin: 0; }
.hz-faq__a a { color: var(--gold-2); text-decoration: underline; text-underline-offset: 3px; }

/* دکمه‌ها */
.hz-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 40px; padding: 0 20px; font-size: 14px; font-weight: 700;
  border: 1px solid transparent; cursor: pointer; transition: background .2s, border-color .2s;
}
/* ⚠️ #1a1208 روی طلایی ۹٫۱ کنتراست دارد؛ سفید روی طلایی فقط ۲٫۳ بود. */
.hz-cta--go { background: var(--gold); color: #1a1208; }
.hz-cta--go:hover { background: var(--gold-2); }
.hz-cta--ghost { background: transparent; border-color: var(--line-2); color: #fff; }
.hz-cta--ghost:hover { border-color: var(--gold); color: var(--gold-2); }
.hz-cta--sm { height: 34px; padding: 0 15px; font-size: 13px; }

/* فرم تماس */
.hz-form { display: grid; gap: 12px; max-width: 620px; }
.hz-field { display: grid; gap: 5px; }
.hz-field label { font-size: 13px; font-weight: 700; color: #fff; }
.hz-field label span { font-weight: 400; color: var(--txt-3); }
.hz-field input, .hz-field select, .hz-field textarea {
  background: var(--ink); border: 1px solid var(--line); color: #fff;
  font: inherit; font-size: 13.5px; padding: 9px 11px; width: 100%;
}
.hz-field textarea { min-height: 130px; resize: vertical; }
.hz-field input:focus, .hz-field select:focus, .hz-field textarea:focus {
  outline: none; border-color: var(--gold);
}

/* ═══════════════════════════════════════════ میز بازی ════════════════ */
.hz-stagewrap { margin: 16px 0 22px; }
.hz-stagebar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 9px 12px; background: var(--bg-2); border: 1px solid var(--line); border-bottom: 0;
}
.hz-stagebar__tag { font-size: 13px; font-weight: 700; color: var(--gold-2); }
.hz-stagebar__sp { flex: 1; }
#hz-stage {
  position: relative; background: var(--ink); border: 1px solid var(--line);
  overflow: hidden;
}
.hz-stageload { position: absolute; inset: 0; display: grid; place-items: center; gap: 10px; }
.hz-stageload__ring {
  width: 34px; height: 34px; border-radius: 50%;
  border: 3px solid var(--line-2); border-top-color: var(--gold);
  animation: hz-spin .8s linear infinite;
}
@keyframes hz-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .hz-stageload__ring { animation: none; } }

/* ═══════════════════════════════════════════════════════════ فوتر ════ */
.hz-foot { background: var(--bg); padding: 20px 0; }
.hz-foot__tag {
  max-width: var(--wrap); margin-inline: auto; padding-inline: 20px;
  font-size: 13px; color: var(--txt-3); text-align: center;
}
.hz-footlinks { background: var(--ink); padding: 20px 0 26px; }
.hz-footmini {
  max-width: var(--wrap); margin-inline: auto; padding-inline: 20px;
  display: flex; flex-direction: column; align-items: flex-end; gap: 4px;
  margin-bottom: 20px;
}
.hz-footmini a { font-size: 12px; color: var(--txt-2); }
.hz-footmini a:hover { color: var(--gold); }
.hz-footcols {
  max-width: var(--wrap); margin-inline: auto; padding-inline: 20px;
  display: grid; gap: 22px; grid-template-columns: repeat(4, minmax(0, 1fr));
}
.hz-footcol h2 { margin: 0 0 9px; font-size: 14px; color: var(--gold); }
.hz-footcol ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.hz-footcol a { font-size: 13px; color: var(--txt-2); }
.hz-footcol a:hover { color: var(--gold-2); }
.hz-footbot {
  max-width: var(--wrap); margin-inline: auto; padding: 18px 20px 0; margin-top: 18px;
  border-top: 1px solid #1f1f1f; display: flex; align-items: flex-start; gap: 14px;
}
.hz-footbot p { margin: 0; font-size: 12px; line-height: 1.95; color: var(--txt-3); }
.hz-footbot a { color: var(--txt-2); text-decoration: underline; text-underline-offset: 3px; }
.hz-foot18 {
  flex: 0 0 auto; width: 38px; height: 38px; border-radius: 50%;
  border: 2px solid var(--gold); color: var(--gold);
  display: grid; place-items: center; font-size: 12px; font-weight: 700;
}

/* ═══════════════════════════════════════════════════ ریسپانسیو ══════ */
@media (max-width: 1439px) {
  .hz-page { grid-template-columns: var(--col-l) minmax(0, 1fr) var(--col-r); }
}

/* زیر ۱۲۰۰: ریلِ چپ (تبلیغ‌ها) می‌رود پایینِ ستون وسط */
@media (max-width: 1199px) {
  .hz-page { grid-template-columns: var(--col-r) minmax(0, 1fr); }
  .hz-col-c { grid-column: 2; grid-row: 1; }
  .hz-col-r { grid-column: 1; grid-row: 1; }
  /* ستون تبلیغ‌ها می‌رود زیرِ هر دو، تمام‌عرض */
  .hz-col-l { grid-column: 1 / -1; grid-row: 2; }
  .hz-promos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hz-slip { display: none; }
}

/* زیر ۹۹۲: تک‌ستونه + پوسته‌ی موبایل */
@media (max-width: 991px) {
  .hz-page, .hz-page--wide { grid-template-columns: minmax(0, 1fr); padding: 0; gap: 0; }
  .hz-col-c, .hz-col-r, .hz-col-l { grid-column: 1; grid-row: auto; }
  /* ⚠️ کارت‌های ریل همان بازی‌هایی‌اند که گریدِ ستون وسط نشان می‌دهد.
     روی دسکتاپ کنار هم‌اند و تکرار حس نمی‌شود، ولی وقتی تک‌ستونه می‌شوند
     پشت سر هم می‌آیند و کاربر یازده بازی را دو بار می‌بیند. */
  .hz-rail-cards { display: none; }
  .hz-col-r, .hz-col-l { padding: 0 10px; }
  .hz-col-r { margin-top: 10px; }

  .hz-hdr__top, .hz-hdr__main, .hz-hdr__sub { display: none; }

  .hz-mhdr {
    display: flex; align-items: center; height: 50px; padding: 0 10px;
    background: var(--bg); position: relative;
  }
  .hz-mhdr__logo { position: absolute; inset-inline: 0; display: grid; place-items: center; }
  .hz-mhdr__logo img { width: 221px; height: 40px; object-fit: contain; }
  .hz-mhdr__burger {
    /* ⚠️ در RTL، margin-inline-start = margin-right و آیتم را به *چپ* هل
       می‌دهد. همبرگرِ پلتفرم سمت راست است، پس margin-inline-end لازم است. */
    position: relative; z-index: 2; margin-inline-end: auto;
    width: 40px; height: 40px; display: grid; place-items: center;
    background: transparent; border: 0; cursor: pointer;
  }
  .hz-mhdr__burger i { width: 21px; height: 2px; background: #fff; display: block; position: relative; }
  .hz-mhdr__burger i::before, .hz-mhdr__burger i::after {
    content: ''; position: absolute; inset-inline: 0; height: 2px; background: #fff;
  }
  .hz-mhdr__burger i::before { top: -7px; }
  .hz-mhdr__burger i::after { top: 7px; }

  .hz-mmenu {
    display: block; background: var(--bg-2); border-top: 1px solid var(--line);
  }
  .hz-mmenu[hidden] { display: none; }
  .hz-mmenu a {
    display: block; padding: 12px 16px; font-size: 14px; color: #fff;
    border-bottom: 1px solid var(--line);
  }
  .hz-mmenu a[aria-current='page'] { color: var(--gold); }

  .hz-mbar {
    display: flex; position: fixed; inset-inline: 0; bottom: 0; z-index: 90;
    height: 50px; background: var(--bg); border-top: 1px solid var(--line);
  }
  .hz-mbar a {
    flex: 1; min-width: 0; display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 3px;
    color: #fff; text-align: center; padding: 0 1px; line-height: 1.2;
  }
  .hz-mbar img { width: 20px; height: 20px; }
  /* «پیش بینی ورزشی» بلندترین برچسب است؛ اگر جا نشد کوچک‌تر شود تا کامل
     دیده شود — در پلتفرم مرجع همین برچسب روی نوار سرریز می‌کرد. */
  .hz-mbar a span { font-size: clamp(8px, 2.45vw, 10px); }
  .hz-mbar a[aria-current='page'] { color: var(--gold); }
  body { padding-bottom: 50px; }

  .hz-splash__track { aspect-ratio: 390 / 195; }
  .hz-promos { grid-template-columns: minmax(0, 1fr); }
  .hz-footcols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hz-main { padding: 14px 12px 20px; }
  .hz-h1 { font-size: 21px; }
  .hz-grid { grid-template-columns: minmax(0, 1fr); }
  .hz-rail-cards { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 560px) {
  .hz-footcols { grid-template-columns: minmax(0, 1fr); }
  .hz-links, .hz-boxes { grid-template-columns: minmax(0, 1fr); }
  .hz-h1 { font-size: 19px; }
  .hz-grid--2 { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 360px) {
  .hz-mhdr__logo img { width: 180px; height: 33px; }
}

@media print {
  .hz-mbar, .hz-splash, .hz-col-r, .hz-col-l { display: none; }
}

/* ═══════════════════════════ اجزای صفحه‌ی بازی و هاب ═══════════════════
 * این کلاس‌ها از نسخه‌ی قبلیِ همین پروژه مانده‌اند و صفحه‌های بازی هنوز
 * از آن‌ها استفاده می‌کنند؛ فقط رنگ و قابشان با پوسته‌ی حضران هماهنگ شد.
 * ═══════════════════════════════════════════════════════════════════════ */
.hz-sec--first { margin-top: 18px; }

/* جستجوی بازی در هاب */
.hz-finder {
  display: flex; align-items: center; gap: 10px; margin-bottom: 12px;
  background: var(--ink); border: 1px solid var(--line); padding: 0 12px; height: 40px;
}
.hz-finder input {
  flex: 1; height: 100%; background: transparent; border: 0; color: #fff;
  font: inherit; font-size: 13px; outline: none;
}
.hz-finder input::placeholder { color: var(--txt-3); }
.hz-finder__count { flex: 0 0 auto; font-size: 12px; color: var(--txt-3); }

/* «اگر فقط یک چیز یاد بگیرید» */
.hz-one {
  background: var(--bg-2); border-inline-start: 3px solid var(--gold);
  padding: 13px 15px;
}
.hz-one p { margin: 0; font-size: 14.5px; line-height: 1.95; color: #fff; }

/* سه پله‌ی «از تازه‌کار تا متوسط» */
.hz-levels { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.hz-level {
  position: relative; background: var(--bg-2); border: 1px solid var(--line);
  padding: 13px 15px 14px 15px;
}
.hz-level__n {
  display: grid; place-items: center; width: 27px; height: 27px; border-radius: 50%;
  background: var(--gold); color: #1a1208; font-weight: 700; font-size: 13px; margin-bottom: 8px;
}
.hz-level h3 { margin: 0 0 5px; font-size: 14.5px; color: var(--gold-2); }
.hz-level p { margin: 0; font-size: 13px; line-height: 1.9; color: var(--txt-2); }

/* باورهای غلط */
.hz-myths { display: grid; gap: 9px; }
.hz-myth {
  background: var(--bg-2); border: 1px solid var(--line); padding: 12px 14px;
  font-size: 13.5px; line-height: 1.95; color: var(--txt-2);
}
.hz-myth__tag {
  display: inline-block; margin-bottom: 5px; padding: 2px 9px 3px;
  background: var(--gold); color: #1a1208; font-size: 12px; font-weight: 700;
}
.hz-myth b { color: #fff; }

/* هشدار — همان .hz-note با نوارِ قرمز */
.hz-note--warn { border-inline-start-color: #d9534f; }
.hz-note--warn strong { color: #ff8a86; }

/* نام‌های قدیمیِ دکمه که هنوز در صفحه‌های بازی استفاده می‌شوند */
.hz-btn--go { background: var(--gold); border-color: var(--gold); color: #1a1208; font-weight: 700; }
.hz-btn--go:hover { background: var(--gold-2); border-color: var(--gold-2); color: #1a1208; }
.hz-btn--ghost { background: transparent; border-color: var(--line-2); color: #fff; }
.hz-btn--ghost:hover { border-color: var(--gold); color: var(--gold-2); }
.hz-btn--sm { height: 30px; padding: 0 13px; font-size: 12.5px; }

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

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

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

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