@charset "UTF-8";
/* ==========================================================================
   Blackjack Gold — تورنومنت طلایی بلک‌جک
   طراحی تاریک، طلایی و RTL. بدون وابستگی بیرونی.
   ========================================================================== */

/* --------------------------------------------------------------- فونت‌ها -- */
@font-face {
  font-family: 'IRANSansX';
  src: url('../fonts/IRANSansX-Regular.woff2') format('woff2'),
       url('../fonts/IRANSansX-Regular.woff') format('woff');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'IRANSansX';
  src: url('../fonts/IRANSansX-Medium.woff2') format('woff2'),
       url('../fonts/IRANSansX-Medium.woff') format('woff');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'IRANSansX';
  src: url('../fonts/IRANSansX-DemiBold.woff2') format('woff2'),
       url('../fonts/IRANSansX-DemiBold.woff') format('woff');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'IRANSansX';
  src: url('../fonts/IRANSansX-Bold.woff2') format('woff2'),
       url('../fonts/IRANSansX-Bold.woff') format('woff');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'IRANSansX';
  src: url('../fonts/IRANSansX-Black.woff2') format('woff2'),
       url('../fonts/IRANSansX-Black.woff') format('woff');
  font-weight: 900; font-style: normal; font-display: swap;
}

/* --------------------------------------------------------------- توکن‌ها -- */
:root {
  --black:        #080808;
  --charcoal:     #171717;
  --charcoal-2:   #101010;
  --gold:         #D4AF37;
  --gold-light:   #F2C14E;
  --gold-dark:    #9B6B16;
  --white:        #F5F2EA;
  --grey:         #A8A8A8;
  --grey-dim:     #7C7C7C;

  --line:         rgba(212, 175, 55, .18);
  --line-strong:  rgba(212, 175, 55, .38);
  --surface:      rgba(23, 23, 23, .72);
  --surface-2:    rgba(18, 18, 18, .88);

  --radius-sm: 10px;
  --radius:    16px;
  --radius-lg: 24px;

  --shadow-sm: 0 6px 18px rgba(0, 0, 0, .45);
  --shadow:    0 18px 44px rgba(0, 0, 0, .55);
  --shadow-lg: 0 34px 80px rgba(0, 0, 0, .65);

  --container: 1200px;
  --header-h:  76px;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ------------------------------------------------------------------ پایه -- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--black);
  background-image:
    radial-gradient(72rem 42rem at 50% -12rem, rgba(212, 175, 55, .10), transparent 62%),
    radial-gradient(48rem 32rem at 92% 22%, rgba(155, 107, 22, .07), transparent 60%),
    radial-gradient(40rem 30rem at 4% 68%, rgba(212, 175, 55, .05), transparent 60%);
  background-attachment: fixed;
  color: var(--white);
  font-family: 'IRANSansX', 'Segoe UI', Tahoma, sans-serif;
  font-size: 16px;
  line-height: 2;
  font-weight: 400;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
svg { display: block; }

a { color: var(--gold-light); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--white); }

h1, h2, h3, h4 { margin: 0 0 .6em; line-height: 1.55; font-weight: 900; color: var(--white); }
h1 { font-size: clamp(1.85rem, 1.15rem + 2.6vw, 3.1rem); letter-spacing: -.4px; }
h2 { font-size: clamp(1.45rem, 1.05rem + 1.5vw, 2.2rem); }
h3 { font-size: clamp(1.1rem, .98rem + .5vw, 1.35rem); font-weight: 700; }
p  { margin: 0 0 1.1em; color: #CFCAC0; }

ul, ol { padding-inline-start: 1.4em; }
li { margin-bottom: .45em; color: #CFCAC0; }

strong, b { font-weight: 700; color: var(--white); }
mark { background: rgba(212, 175, 55, .18); color: var(--gold-light); padding: 0 .25em; border-radius: 4px; }

hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

::selection { background: rgba(212, 175, 55, .3); color: #fff; }

/* دسترس‌پذیری: حالت فوکوس روشن و یکدست */
:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; inset-inline-start: 1rem; top: -60px;
  background: var(--gold); color: #16120a; font-weight: 700;
  padding: .6rem 1.1rem; border-radius: 0 0 10px 10px; z-index: 200;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 0; color: #16120a; }

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

/* ----------------------------------------------------------------- چیدمان */
.container { width: min(100% - 2.4rem, var(--container)); margin-inline: auto; }
.container-narrow { width: min(100% - 2.4rem, 880px); margin-inline: auto; }

.section { padding: clamp(3rem, 2rem + 4vw, 5.5rem) 0; position: relative; }
.section + .section { padding-top: 0; }
.section-alt {
  background: linear-gradient(180deg, rgba(23, 23, 23, 0), rgba(23, 23, 23, .55) 18%, rgba(23, 23, 23, .55) 82%, rgba(23, 23, 23, 0));
}

.section-head { max-width: 760px; margin-bottom: 2.4rem; }
.section-head.center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .82rem; font-weight: 600; letter-spacing: 1px;
  color: var(--gold); text-transform: uppercase;
  margin-bottom: .9rem;
}
.eyebrow::before {
  content: ""; width: 26px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.section-head.center .eyebrow::after {
  content: ""; width: 26px; height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.lead { font-size: 1.05rem; color: var(--grey); }

/* --------------------------------------------------------------- دکمه‌ها -- */
.btn {
  --btn-bg: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .82rem 1.7rem;
  font-family: inherit; font-size: 1rem; font-weight: 700; line-height: 1.5;
  border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; text-align: center; white-space: nowrap;
  transition: transform .18s var(--ease), box-shadow .25s var(--ease),
              background-color .25s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.btn:active { transform: translateY(1px); }

.btn-gold {
  background: linear-gradient(160deg, #F7DC9C 0%, var(--gold-light) 26%, var(--gold) 58%, var(--gold-dark) 100%);
  color: #14100a;
  box-shadow: 0 10px 26px rgba(212, 175, 55, .22), inset 0 1px 0 rgba(255, 255, 255, .55);
}
.btn-gold:hover {
  color: #14100a;
  box-shadow: 0 16px 38px rgba(212, 175, 55, .34), inset 0 1px 0 rgba(255, 255, 255, .7);
  transform: translateY(-2px);
}
.btn-outline {
  border-color: var(--line-strong);
  color: var(--white);
  background: rgba(212, 175, 55, .05);
}
.btn-outline:hover {
  border-color: var(--gold);
  background: rgba(212, 175, 55, .12);
  color: var(--white);
  transform: translateY(-2px);
}
.btn-ghost { color: var(--grey); padding-inline: .9rem; }
.btn-ghost:hover { color: var(--gold-light); }

.btn-sm { padding: .55rem 1.15rem; font-size: .9rem; }
.btn-lg { padding: 1rem 2.2rem; font-size: 1.08rem; }
.btn-block { display: flex; width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: .9rem; align-items: center; }

/* ---------------------------------------------------------------- کارت‌ها */
.card {
  position: relative;
  background: linear-gradient(155deg, rgba(30, 30, 30, .78), rgba(13, 13, 13, .86));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow-sm);
  transition: border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.card:hover { border-color: var(--line-strong); }
.card-hover:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.card-gold-top::before {
  content: ""; position: absolute; inset-inline: 18%; top: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.grid { display: grid; gap: 1.2rem; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ------------------------------------------------------------------ هدر -- */
.site-header {
  position: sticky; top: 0; z-index: 90;
  background: rgba(8, 8, 8, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(212, 175, 55, .14);
}
.header-inner {
  height: var(--header-h);
  display: flex; align-items: center; gap: 1.2rem;
}

.logo { display: flex; align-items: center; gap: .7rem; flex: 0 0 auto; }
.logo:hover { color: inherit; }
.logo-mark { width: 42px; height: 42px; flex: 0 0 42px; }
.logo-text { display: flex; flex-direction: column; line-height: 1.25; }
.logo-en {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: .95rem; font-weight: 700; letter-spacing: 2.4px;
  color: var(--white); text-transform: uppercase;
}
.logo-en span { color: var(--gold); }
.logo-fa { font-size: .72rem; color: var(--grey-dim); font-weight: 500; }

.main-nav { margin-inline-start: auto; }
.main-nav ul {
  display: flex; align-items: center; gap: .25rem;
  list-style: none; margin: 0; padding: 0;
}
.main-nav li { margin: 0; }
.main-nav a {
  display: block; padding: .5rem .78rem; border-radius: 8px;
  font-size: .95rem; font-weight: 500; color: #D8D3C8;
}
.main-nav a:hover { color: var(--gold-light); background: rgba(212, 175, 55, .07); }
.main-nav a[aria-current="page"] { color: var(--gold); font-weight: 700; }

.header-cta { flex: 0 0 auto; }
.main-nav .nav-cta { display: none; }

.nav-toggle {
  display: none; width: 44px; height: 44px; flex: 0 0 44px;
  align-items: center; justify-content: center;
  margin-inline-start: auto;
  background: rgba(212, 175, 55, .07);
  border: 1px solid var(--line); border-radius: 12px;
  color: var(--gold); cursor: pointer;
}
.nav-toggle span {
  display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px;
  position: relative; transition: background .2s var(--ease);
}
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; inset-inline-start: 0; width: 20px; height: 2px;
  background: currentColor; border-radius: 2px; transition: transform .25s var(--ease);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after  { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { transform: translateY(-6px) rotate(-45deg); }

/* ------------------------------------------------------------------ هیرو -- */
.hero {
  position: relative;
  padding: clamp(2.4rem, 1.6rem + 3vw, 4.5rem) 0 clamp(2.6rem, 2rem + 3vw, 4.5rem);
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: clamp(1.5rem, 1rem + 3vw, 3.5rem);
  align-items: center;
}
.hero-media { position: relative; order: 0; }
.hero-media::before {
  content: ""; position: absolute; inset: 4% 2%;
  background: radial-gradient(circle at 50% 46%, rgba(212, 175, 55, .28), rgba(212, 175, 55, .08) 42%, transparent 68%);
  filter: blur(6px); z-index: 0;
}
.hero-media img {
  position: relative; z-index: 1;
  width: 100%; max-width: 460px; margin-inline: auto;
  filter: drop-shadow(0 30px 55px rgba(0, 0, 0, .7));
}
.hero-badge {
  position: absolute; z-index: 2; inset-block-start: 4%; inset-inline-start: 0;
  background: var(--surface-2); border: 1px solid var(--line-strong);
  border-radius: 999px; padding: .45rem 1rem;
  font-size: .82rem; font-weight: 700; color: var(--gold-light);
  box-shadow: var(--shadow-sm); backdrop-filter: blur(8px);
}

.hero-copy { position: relative; z-index: 2; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .35rem .95rem; margin-bottom: 1.1rem;
  border: 1px solid var(--line-strong); border-radius: 999px;
  background: rgba(212, 175, 55, .07);
  font-size: .82rem; font-weight: 600; color: var(--gold-light);
}
.hero-kicker .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--gold-light);
  box-shadow: 0 0 0 4px rgba(212, 175, 55, .16);
}
.hero h1 { margin-bottom: .35em; }
.hero h1 .gold { color: var(--gold-light); }
.hero-slogan {
  font-size: clamp(1.15rem, .95rem + .9vw, 1.6rem);
  font-weight: 700; color: var(--gold);
  margin: 0 0 .9rem;
}
.hero-text { font-size: 1.03rem; max-width: 46ch; margin-bottom: 1.6rem; }
.hero .btn-row { margin-bottom: 1.8rem; }

.hero-facts {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .7rem 1.4rem; padding: 0; margin: 0; list-style: none;
}
.hero-facts li {
  display: flex; align-items: flex-start; gap: .55rem;
  font-size: .93rem; color: #CFCAC0; margin: 0; line-height: 1.7;
}
.hero-facts .ico { flex: 0 0 auto; color: var(--gold); margin-top: .45rem; }
.hero-facts b { color: var(--white); font-weight: 700; }

/* ------------------------------------------------------------ شمارش معکوس */
.countdown {
  margin-top: 2rem; padding: 1.2rem 1.4rem;
  background: linear-gradient(150deg, rgba(30, 30, 30, .8), rgba(12, 12, 12, .9));
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.countdown-label {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  font-size: .88rem; color: var(--grey); margin-bottom: .9rem; flex-wrap: wrap;
}
.countdown-label strong { color: var(--gold-light); font-weight: 700; }
.countdown-boxes { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; }
.cd-box {
  text-align: center; padding: .7rem .3rem .6rem;
  background: rgba(8, 8, 8, .7);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.cd-num {
  display: block; font-size: clamp(1.35rem, 1.1rem + 1vw, 1.9rem);
  font-weight: 900; color: var(--white); line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.cd-unit { display: block; font-size: .74rem; color: var(--grey-dim); margin-top: .2rem; }
.countdown.is-finished .cd-num { color: var(--grey-dim); }

/* ------------------------------------------------------------------ جایزه */
.prize-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.6rem, 1rem + 3vw, 3.4rem); align-items: center;
}
.prize-visual { position: relative; }
.prize-visual::before {
  content: ""; position: absolute; inset: -6% -2%;
  background: radial-gradient(circle at 50% 45%, rgba(212, 175, 55, .22), transparent 62%);
  filter: blur(10px);
}
.prize-visual img {
  position: relative; width: 100%; max-width: 430px; margin-inline: auto;
  filter: drop-shadow(0 26px 50px rgba(0, 0, 0, .7));
}
.prize-caption {
  position: relative; text-align: center; font-size: .84rem;
  color: var(--grey-dim); margin-top: .8rem;
}
.spec-list { list-style: none; padding: 0; margin: 1.4rem 0 0; }
.spec-list li {
  display: flex; align-items: flex-start; gap: .7rem;
  padding: .75rem 0; border-bottom: 1px dashed rgba(212, 175, 55, .16);
  color: #CFCAC0; margin: 0;
}
.spec-list li:last-child { border-bottom: 0; }
.spec-list .ico { color: var(--gold); flex: 0 0 auto; margin-top: .5rem; }
.spec-list b { color: var(--white); }

.prize-weight {
  display: inline-flex; align-items: baseline; gap: .4rem;
  font-size: 2.4rem; font-weight: 900; color: var(--gold-light);
  line-height: 1; margin-bottom: .3rem;
}
.prize-weight span { font-size: 1rem; font-weight: 500; color: var(--grey); }

/* ------------------------------------------------------------- نحوه شرکت */
.step {
  position: relative; padding-top: 2.6rem;
}
.step-num {
  position: absolute; top: 1.2rem; inset-inline-end: 1.4rem;
  font-family: Georgia, serif; font-size: 2.6rem; font-weight: 700;
  color: transparent; -webkit-text-stroke: 1px rgba(212, 175, 55, .45);
  line-height: 1; pointer-events: none;
}
.step h3 { margin-bottom: .4rem; }
.step p { margin: 0; font-size: .95rem; }

/* ------------------------------------------------------------- امتیازدهی */
.score-grid {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(1.2rem, 1rem + 2vw, 2.4rem); align-items: start;
}
.score-list { list-style: none; padding: 0; margin: 0; }
.score-list li {
  display: flex; align-items: flex-start; gap: .8rem;
  padding: .9rem 1.1rem; margin-bottom: .6rem;
  background: rgba(23, 23, 23, .55);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  color: #CFCAC0; font-size: .96rem;
}
.score-list li .ico { color: var(--gold); flex: 0 0 auto; margin-top: .45rem; }
.score-list li.is-negative { border-color: rgba(168, 168, 168, .2); }
.score-list li.is-negative .ico { color: var(--grey-dim); }
.score-list b { color: var(--white); }

.formula {
  text-align: center; padding: 1.1rem 1rem;
  background: rgba(8, 8, 8, .6);
  border: 1px dashed var(--line-strong); border-radius: var(--radius-sm);
  font-weight: 700; color: var(--gold-light); font-size: 1.02rem;
  line-height: 2.2; margin: 1.2rem 0 0;
}

.example-box { padding: 1.5rem; }
.example-row {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .7rem 0; border-bottom: 1px dashed rgba(212, 175, 55, .16);
  font-size: .95rem; color: #CFCAC0;
}
.example-row:last-of-type { border-bottom: 0; }
.example-row .value { font-weight: 700; color: var(--white); white-space: nowrap; }
.example-total {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  margin-top: 1rem; padding: .9rem 1.1rem;
  background: linear-gradient(120deg, rgba(212, 175, 55, .16), rgba(212, 175, 55, .05));
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  font-weight: 900; color: var(--gold-light); font-size: 1.05rem;
}
.note {
  display: flex; gap: .6rem; align-items: flex-start;
  font-size: .88rem; color: var(--grey); margin-top: 1rem;
}
.note .ico { color: var(--gold); flex: 0 0 auto; margin-top: .4rem; }

/* ------------------------------------------------------------- لیدربورد -- */
.lb-toolbar {
  display: flex; flex-wrap: wrap; gap: .8rem; align-items: flex-end;
  padding: 1.1rem 1.2rem; margin-bottom: 1.2rem;
  background: rgba(23, 23, 23, .6); border: 1px solid var(--line);
  border-radius: var(--radius);
}
.lb-toolbar .field { margin: 0; flex: 1 1 190px; }
.lb-toolbar .field-actions { display: flex; gap: .6rem; flex: 0 0 auto; }

.lb-meta {
  display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; align-items: center;
  margin-bottom: 1rem; font-size: .88rem; color: var(--grey);
}
.lb-meta .dot-sep { width: 4px; height: 4px; border-radius: 50%; background: var(--line-strong); }

.badge {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .28rem .75rem; border-radius: 999px;
  font-size: .78rem; font-weight: 700; line-height: 1.9;
  border: 1px solid var(--line-strong); color: var(--gold-light);
  background: rgba(212, 175, 55, .08);
}
.badge-sample { color: #E6C36B; border-color: rgba(230, 195, 107, .4); background: rgba(230, 195, 107, .08); }
.badge-live   { color: #8FD6A0; border-color: rgba(143, 214, 160, .35); background: rgba(143, 214, 160, .08); }
.badge-muted  { color: var(--grey); border-color: rgba(168, 168, 168, .25); background: rgba(168, 168, 168, .06); }

.table-wrap {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(26, 26, 26, .75), rgba(12, 12, 12, .85));
  overflow: hidden;
}
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

table.lb {
  width: 100%; border-collapse: collapse; min-width: 640px;
  font-size: .95rem;
}
table.lb caption {
  text-align: start; padding: 1rem 1.2rem 0; color: var(--grey); font-size: .85rem;
}
table.lb thead th {
  padding: .95rem 1rem; text-align: start;
  font-size: .82rem; font-weight: 700; color: var(--gold);
  background: rgba(8, 8, 8, .55);
  border-bottom: 1px solid var(--line-strong);
  white-space: nowrap;
}
table.lb tbody td {
  padding: .85rem 1rem; border-bottom: 1px solid rgba(255, 255, 255, .05);
  color: #D6D1C6; vertical-align: middle;
}
table.lb tbody tr:last-child td { border-bottom: 0; }
table.lb tbody tr:hover td { background: rgba(212, 175, 55, .04); }
table.lb .num { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--white); }
table.lb .user { font-family: Georgia, serif; letter-spacing: .5px; color: var(--white); }
table.lb .points { color: var(--gold-light); font-weight: 900; font-size: 1.05rem; }

.rank-cell { display: flex; align-items: center; gap: .55rem; }
.rank-pill {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%;
  font-weight: 900; font-size: .9rem; color: var(--grey);
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08);
  font-variant-numeric: tabular-nums;
}
tr.rank-gold   .rank-pill { background: linear-gradient(150deg, #F7DC9C, #D4AF37 55%, #9B6B16); color: #17120a; border-color: #F2C14E; box-shadow: 0 0 18px rgba(212, 175, 55, .3); }
tr.rank-silver .rank-pill { background: linear-gradient(150deg, #EDEDED, #B9B9B9 55%, #6E6E6E); color: #16161a; border-color: #DADADA; }
tr.rank-bronze .rank-pill { background: linear-gradient(150deg, #E5B487, #C08145 55%, #7A4A1E); color: #1a120a; border-color: #D9A273; }
tr.rank-gold   td { background: rgba(212, 175, 55, .06); }
tr.rank-silver td { background: rgba(220, 220, 220, .035); }
tr.rank-bronze td { background: rgba(200, 130, 70, .035); }
tr.rank-gold td:first-child   { box-shadow: inset 3px 0 0 var(--gold); }
tr.rank-silver td:first-child { box-shadow: inset 3px 0 0 #C9C9C9; }
tr.rank-bronze td:first-child { box-shadow: inset 3px 0 0 #C08145; }

.brand-cell { display: inline-flex; align-items: center; gap: .5rem; }
.brand-cell img { width: 22px; height: 22px; object-fit: contain; border-radius: 5px; }

.lb-empty { padding: 3rem 1.5rem; text-align: center; color: var(--grey); }
.lb-empty .ico { color: var(--line-strong); margin: 0 auto 1rem; }

/* کارت‌های موبایل لیدربورد */
.lb-cards { display: none; }
.lb-card {
  padding: 1rem 1.1rem; margin-bottom: .7rem;
  background: linear-gradient(155deg, rgba(28, 28, 28, .8), rgba(12, 12, 12, .88));
  border: 1px solid var(--line); border-radius: var(--radius);
}
.lb-card-top { display: flex; align-items: center; gap: .7rem; margin-bottom: .7rem; }
.lb-card-top .user { font-family: Georgia, serif; font-weight: 700; color: var(--white); }
.lb-card-top .points { margin-inline-start: auto; font-weight: 900; color: var(--gold-light); font-size: 1.1rem; }
.lb-card-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .4rem .9rem; font-size: .85rem; }
.lb-card-grid div { display: flex; justify-content: space-between; gap: .5rem; color: var(--grey); }
.lb-card-grid b { color: var(--white); font-weight: 700; }
.lb-card.rank-gold   { border-color: rgba(212, 175, 55, .5); }
.lb-card.rank-silver { border-color: rgba(200, 200, 200, .3); }
.lb-card.rank-bronze { border-color: rgba(192, 129, 69, .35); }

/* صفحه‌بندی */
.pagination { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; margin-top: 1.6rem; }
.pagination a, .pagination span {
  min-width: 42px; padding: .5rem .7rem; text-align: center;
  border: 1px solid var(--line); border-radius: 10px;
  font-size: .92rem; font-weight: 600; color: #D6D1C6;
  font-variant-numeric: tabular-nums;
}
.pagination a:hover { border-color: var(--gold); color: var(--gold-light); }
.pagination .is-current { background: rgba(212, 175, 55, .14); border-color: var(--gold); color: var(--gold-light); }
.pagination .is-disabled { opacity: .4; }

/* -------------------------------------------------------------- برندها -- */
.brand-card { display: flex; flex-direction: column; gap: 1rem; height: 100%; }
.brand-logo {
  display: flex; align-items: center; justify-content: center;
  padding: .6rem; border-radius: var(--radius-sm);
  background: rgba(8, 8, 8, .45); border: 1px solid rgba(255, 255, 255, .04);
  min-height: 96px;
}
.brand-logo img { max-height: 72px; width: auto; }
.brand-card h3 { margin: 0; }
.brand-card p { font-size: .93rem; margin: 0; flex: 1 1 auto; }
.brand-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.brand-actions .btn { flex: 1 1 auto; }
.brand-note { font-size: .8rem; color: var(--grey-dim); }

/* ------------------------------------------------------------- آکاردئون -- */
.accordion { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.accordion details { border-bottom: 1px solid var(--line); background: rgba(23, 23, 23, .45); }
.accordion details:last-child { border-bottom: 0; }
.accordion summary {
  display: flex; align-items: center; gap: .8rem; cursor: pointer;
  padding: 1.05rem 1.3rem; font-weight: 700; color: var(--white);
  list-style: none; transition: color .2s var(--ease), background .2s var(--ease);
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary:hover { color: var(--gold-light); background: rgba(212, 175, 55, .04); }
.accordion summary .chev {
  margin-inline-start: auto; flex: 0 0 auto; color: var(--gold);
  transition: transform .25s var(--ease);
}
.accordion details[open] summary { color: var(--gold-light); background: rgba(212, 175, 55, .06); }
.accordion details[open] summary .chev { transform: rotate(180deg); }
.accordion .answer { padding: 0 1.3rem 1.2rem; color: #CFCAC0; font-size: .96rem; }
.accordion .answer p:last-child { margin-bottom: 0; }

/* ------------------------------------------------------------- قوانین -- */
.rules-list { counter-reset: rule; list-style: none; padding: 0; margin: 0; }
.rules-list li {
  position: relative; counter-increment: rule;
  padding: 1rem 3.4rem 1rem 1rem; margin-bottom: .6rem;
  background: rgba(23, 23, 23, .5); border: 1px solid var(--line);
  border-radius: var(--radius-sm); color: #D6D1C6;
}
.rules-list li::before {
  content: counter(rule, persian);
  position: absolute; inset-inline-end: 1rem; top: 1rem;
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem; font-weight: 900; color: var(--gold-light);
  background: rgba(212, 175, 55, .1); border: 1px solid var(--line-strong);
  font-variant-numeric: tabular-nums;
}

.callout {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1.2rem 1.4rem; border-radius: var(--radius);
  background: linear-gradient(120deg, rgba(212, 175, 55, .1), rgba(212, 175, 55, .03));
  border: 1px solid var(--line-strong); color: #E7E2D6;
}
.callout .ico { color: var(--gold); flex: 0 0 auto; margin-top: .4rem; }
.callout p:last-child { margin-bottom: 0; }
.callout-warn {
  background: linear-gradient(120deg, rgba(224, 122, 95, .12), rgba(224, 122, 95, .04));
  border-color: rgba(224, 122, 95, .35);
}
.callout-warn .ico { color: #E6A08C; }

/* ---------------------------------------------------------------- فرم‌ها */
.form-card { padding: clamp(1.4rem, 1rem + 1.6vw, 2.4rem); }

.field { margin-bottom: 1.15rem; }
.field > label, .field-legend {
  display: block; margin-bottom: .45rem;
  font-size: .93rem; font-weight: 600; color: var(--white);
}
.field .hint { display: block; font-size: .82rem; color: var(--grey-dim); margin-top: .35rem; line-height: 1.8; }
.req { color: var(--gold); margin-inline-start: .15rem; }
.optional { color: var(--grey-dim); font-weight: 400; font-size: .82rem; }

input[type="text"], input[type="tel"], input[type="email"], input[type="password"],
input[type="number"], input[type="search"], input[type="date"], input[type="datetime-local"],
select, textarea {
  width: 100%; padding: .78rem 1rem;
  font-family: inherit; font-size: 1rem; line-height: 1.8; color: var(--white);
  background: rgba(8, 8, 8, .6);
  border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--radius-sm);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
  -webkit-appearance: none; appearance: none;
}
textarea { min-height: 140px; resize: vertical; line-height: 2; }
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath fill='none' stroke='%23D4AF37' stroke-width='2' d='M1 1l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: left 1rem center;
  padding-inline-start: 2.6rem;
}
input::placeholder, textarea::placeholder { color: #6B6B6B; }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, .16);
  background: rgba(8, 8, 8, .85);
}
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] {
  border-color: #E07A5F;
  box-shadow: 0 0 0 3px rgba(224, 122, 95, .14);
}

/* پیام خطا: هم رنگ، هم آیکن، هم متن — نه فقط رنگ */
.error-msg {
  display: flex; align-items: flex-start; gap: .4rem;
  margin-top: .4rem; font-size: .85rem; color: #F0A48F; font-weight: 600;
}
.error-msg .ico { flex: 0 0 auto; margin-top: .45rem; }

.check {
  display: flex; align-items: flex-start; gap: .7rem;
  padding: .6rem 0; font-size: .93rem; color: #CFCAC0; cursor: pointer;
}
.check input[type="checkbox"] {
  flex: 0 0 auto; width: 20px; height: 20px; margin-top: .55rem;
  accent-color: var(--gold); cursor: pointer;
}
.check a { text-decoration: underline; text-underline-offset: 3px; }

.captcha-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .9rem; }
.captcha-q {
  flex: 0 0 auto; padding: .78rem 1.2rem;
  background: rgba(212, 175, 55, .08); border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm); font-weight: 900; color: var(--gold-light);
  font-size: 1.05rem; white-space: nowrap; line-height: 1.8;
  user-select: none;
}
.captcha-row .field { flex: 1 1 160px; margin: 0; }

.form-alert {
  display: flex; gap: .8rem; align-items: flex-start;
  padding: 1rem 1.2rem; margin-bottom: 1.4rem; border-radius: var(--radius-sm);
  font-size: .95rem; line-height: 1.9;
}
.form-alert .ico { flex: 0 0 auto; margin-top: .45rem; }
.alert-error   { background: rgba(224, 122, 95, .1);  border: 1px solid rgba(224, 122, 95, .35); color: #F3BCAC; }
.alert-success { background: rgba(120, 200, 140, .09); border: 1px solid rgba(120, 200, 140, .32); color: #A9E2BA; }
.alert-info    { background: rgba(212, 175, 55, .08);  border: 1px solid var(--line-strong); color: #E7D9A8; }

.hp-field { position: absolute !important; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* --------------------------------------------------------- نتیجه ثبت‌نام */
.result-card { text-align: center; padding: clamp(1.8rem, 1.2rem + 2vw, 3rem); }
.result-icon {
  width: 84px; height: 84px; margin: 0 auto 1.4rem;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; color: var(--gold-light);
  background: radial-gradient(circle, rgba(212, 175, 55, .2), rgba(212, 175, 55, .04));
  border: 1px solid var(--line-strong);
}
.code-box {
  display: inline-flex; flex-direction: column; align-items: center; gap: .3rem;
  padding: 1rem 2.2rem; margin: 1.2rem 0;
  background: rgba(8, 8, 8, .7); border: 1px dashed var(--gold);
  border-radius: var(--radius);
}
.code-box .label { font-size: .82rem; color: var(--grey); }
.code-box .code {
  font-family: Georgia, serif; font-size: clamp(1.4rem, 1.1rem + 1.4vw, 2rem);
  font-weight: 700; letter-spacing: 3px; color: var(--gold-light);
}
.copy-btn { font-size: .82rem; color: var(--grey); background: none; border: 0; cursor: pointer; font-family: inherit; }
.copy-btn:hover { color: var(--gold-light); }

.summary-list { list-style: none; padding: 0; margin: 1.6rem 0 0; text-align: start; }
.summary-list li {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: .7rem 0; border-bottom: 1px dashed rgba(212, 175, 55, .16);
  font-size: .93rem; color: var(--grey); margin: 0;
}
.summary-list li:last-child { border-bottom: 0; }
.summary-list b { color: var(--white); font-weight: 700; }

/* --------------------------------------------------------- بردکرامب و 404 */
.breadcrumb {
  padding: 1rem 0 0; font-size: .85rem; color: var(--grey-dim);
}
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: .45rem; list-style: none; padding: 0; margin: 0; }
.breadcrumb li { display: flex; align-items: center; gap: .45rem; margin: 0; color: var(--grey-dim); }
.breadcrumb li + li::before { content: "‹"; color: var(--line-strong); }
.breadcrumb a { color: var(--grey); }
.breadcrumb a:hover { color: var(--gold-light); }
.breadcrumb [aria-current="page"] { color: var(--grey-dim); }

.page-head { padding: clamp(1.8rem, 1.2rem + 2vw, 3rem) 0 0; }
.page-head h1 { margin-bottom: .3em; }
.page-head .lead { max-width: 68ch; }

.error-page { text-align: center; padding: clamp(3rem, 2rem + 5vw, 6rem) 0; }
.error-code {
  font-family: Georgia, serif; font-size: clamp(5rem, 3rem + 12vw, 10rem);
  font-weight: 700; line-height: 1;
  background: linear-gradient(160deg, #F7DC9C, var(--gold) 45%, var(--gold-dark));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 1rem;
}

/* ------------------------------------------------------------------ فوتر */
.site-footer {
  margin-top: clamp(3rem, 2rem + 4vw, 5rem);
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(12, 12, 12, .6), rgba(8, 8, 8, .95));
  padding-top: clamp(2.4rem, 1.8rem + 2vw, 3.6rem);
}
.footer-grid {
  display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: 2rem 1.5rem; padding-bottom: 2.4rem;
}
.footer-about p { font-size: .92rem; margin-top: 1rem; max-width: 40ch; }
.footer-col h4 { font-size: .95rem; color: var(--gold); margin-bottom: 1rem; font-weight: 700; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: .55rem; }
.footer-col a { font-size: .92rem; color: #C4BFB5; }
.footer-col a:hover { color: var(--gold-light); }

.socials { display: flex; gap: .6rem; margin-top: 1.2rem; }
.socials a {
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 12px; color: var(--gold);
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.socials a:hover { border-color: var(--gold); background: rgba(212, 175, 55, .1); }

.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 1.2rem 0 calc(1.2rem + env(safe-area-inset-bottom));
  display: flex; flex-wrap: wrap; gap: .8rem 1.4rem;
  align-items: center; justify-content: space-between;
  font-size: .85rem; color: var(--grey-dim);
}
.age-tag {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .3rem .9rem; border-radius: 999px;
  border: 1px solid var(--line-strong); color: var(--gold-light);
  font-weight: 700; font-size: .82rem;
}

/* --------------------------------------------------- CTA چسبان موبایل -- */
.mobile-cta {
  display: none;
  position: fixed; inset-inline: 0; bottom: 0; z-index: 80;
  padding: .7rem 1rem calc(.7rem + env(safe-area-inset-bottom));
  background: rgba(8, 8, 8, .93);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line-strong);
}
.mobile-cta .btn { width: 100%; }

/* ----------------------------------------------------------- Age Gate -- */
.age-gate {
  position: fixed; inset: 0; z-index: 300;
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
  background: rgba(5, 5, 5, .92);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.age-gate[hidden] { display: none; }
.age-gate-box {
  width: min(100%, 440px); text-align: center;
  padding: 2rem 1.8rem;
  background: linear-gradient(160deg, rgba(30, 30, 30, .95), rgba(10, 10, 10, .98));
  border: 1px solid var(--line-strong); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.age-gate-box .logo-mark { width: 56px; height: 56px; margin: 0 auto 1rem; }
.age-gate-box h2 { font-size: 1.25rem; margin-bottom: .6rem; }
.age-gate-box p { font-size: .92rem; }
.age-gate-actions { display: grid; gap: .6rem; margin-top: 1.4rem; }
.age-gate-note { font-size: .8rem; color: var(--grey-dim); margin: 1rem 0 0; }

/* ---------------------------------------------------------------- سایر -- */
.stat-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.stat {
  text-align: center; padding: 1.2rem 1rem;
  background: rgba(23, 23, 23, .5); border: 1px solid var(--line);
  border-radius: var(--radius);
}
.stat .value {
  display: block; font-size: clamp(1.3rem, 1.1rem + .9vw, 1.8rem);
  font-weight: 900; color: var(--gold-light); line-height: 1.4;
  font-variant-numeric: tabular-nums;
}
.stat .label { font-size: .85rem; color: var(--grey); }

.prose h2 { margin-top: 2.4rem; }
.prose h3 { margin-top: 1.8rem; }
.prose ul, .prose ol { margin-bottom: 1.4rem; }
.prose li { line-height: 2.1; }
.prose > *:first-child { margin-top: 0; }

.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-0 { margin-bottom: 0; }

.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li {
  display: flex; align-items: flex-start; gap: .8rem;
  padding: .9rem 0; border-bottom: 1px dashed rgba(212, 175, 55, .16);
  margin: 0;
}
.contact-list li:last-child { border-bottom: 0; }
.contact-list .ico { color: var(--gold); flex: 0 0 auto; margin-top: .5rem; }
.contact-list .label { display: block; font-size: .82rem; color: var(--grey-dim); }
.contact-list .value { color: var(--white); font-weight: 600; }

/* ---------------------------------------------------------------- ریسپانسیو */
@media (max-width: 1080px) {
  .main-nav a { padding: .5rem .55rem; font-size: .9rem; }
}

@media (max-width: 940px) {
  :root { --header-h: 66px; }

  .nav-toggle { display: flex; }
  .header-cta { display: none; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    margin: 0; padding: 1rem 1.2rem 1.6rem;
    background: rgba(10, 10, 10, .98);
    border-bottom: 1px solid var(--line-strong);
    box-shadow: var(--shadow);
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: transform .22s var(--ease), opacity .22s var(--ease);
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
  }
  .main-nav.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: .1rem; }
  .main-nav a { padding: .85rem .6rem; font-size: 1rem; border-radius: 10px; }
  .main-nav .nav-cta { display: block; margin-top: .8rem; }
  .main-nav .nav-cta .btn { width: 100%; }

  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; max-width: 380px; margin-inline: auto; }
  .hero-media img { max-width: 320px; }
  .hero-text { max-width: none; }
  .prize-grid, .score-grid { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .mobile-cta { display: block; }
  body { padding-bottom: 76px; }
  body.no-mobile-cta { padding-bottom: 0; }
  body.no-mobile-cta .mobile-cta { display: none; }
}

@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .container, .container-narrow { width: calc(100% - 1.8rem); }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.6rem; }
  .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .hero-facts { grid-template-columns: 1fr; }
  .btn-row .btn { width: 100%; }
  .countdown-boxes { gap: .4rem; }
  .cd-box { padding: .55rem .2rem; }

  /* جدول لیدربورد در موبایل به کارت تبدیل می‌شود */
  .lb-table-wrap { display: none; }
  .lb-cards { display: block; }

  .lb-toolbar { padding: 1rem; }
  .lb-toolbar .field-actions { width: 100%; }
  .lb-toolbar .field-actions .btn { flex: 1 1 auto; }

  .example-row { flex-direction: column; align-items: flex-start; gap: .2rem; }
  .rules-list li { padding: .9rem 3rem .9rem .9rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* حرکت کمتر برای کاربرانی که ترجیح می‌دهند */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .btn:hover, .card-hover:hover { transform: none; }
}

/* چاپ */
@media print {
  .site-header, .site-footer, .mobile-cta, .age-gate, .btn { display: none !important; }
  body { background: #fff; color: #000; }
}
