/* =========================================================================
 * پوکر رنک — pokerrankfa.com
 * هویت بصری: نشریهٔ رتبه‌بندی. کاغذ گرم، مرکب تیره، خط‌کشی‌های نازک،
 * تیترهای نسخ و جدول‌های داده‌محور. بدون افکت‌های کازینویی.
 * تایپوگرافی: نوتو نسخ عربی (تیتر) + وزیرمتن (متن).
 * ======================================================================= */

/* ------------------------------ فونت ---------------------------------- */
@font-face { font-family: "Naskh"; src: url("../fonts/naskh-arabic-arabic-400.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200D; }
@font-face { font-family: "Naskh"; src: url("../fonts/naskh-arabic-arabic-700.woff2") format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200D; }
@font-face { font-family: "Naskh"; src: url("../fonts/naskh-arabic-latin-400.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: "Naskh"; src: url("../fonts/naskh-arabic-latin-700.woff2") format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: "Vazirmatn"; src: url("../fonts/vazirmatn-arabic.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200D; }
@font-face { font-family: "Vazirmatn"; src: url("../fonts/vazirmatn-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F, U+2190-21BB, U+2212; }

/* ------------------------------ توکن‌ها -------------------------------- */
:root {
  --paper: #faf7f2;
  --paper-2: #f2ece3;
  --paper-3: #e9e1d5;
  --card: #ffffff;

  --rule: #ddd3c4;
  --rule-2: #c8bba7;
  --rule-strong: #1d1a16;

  --ink: #1d1a16;
  --ink-2: #443e35;
  --ink-3: #6b6255;
  --ink-4: #948a7a;

  --accent: #8c2f2a;      /* شنگرف — رنگ نشریه */
  --accent-2: #b5453e;
  --accent-soft: #f7ece9;

  --gold: #9a7b2e;
  --green: #33694a;
  --blue: #2c4f77;

  --r-sm: 3px;
  --r-md: 5px;
  --r-lg: 8px;

  --wrap: 1120px;
  --measure: 68ch;
  --gap: clamp(16px, 3vw, 30px);
}

/* ------------------------------ پایه ---------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Vazirmatn", system-ui, -apple-system, sans-serif;
  font-size: 16.5px;
  line-height: 1.95;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; text-decoration-color: var(--rule-2); }
a:hover { text-decoration-color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

h1, h2, h3, h4 {
  font-family: "Naskh", "Vazirmatn", serif;
  font-weight: 700; line-height: 1.5; margin: 0 0 .5em; color: var(--ink);
}
h1 { font-size: clamp(1.75rem, 1.25rem + 2.3vw, 2.85rem); line-height: 1.4; }
h2 { font-size: clamp(1.35rem, 1.1rem + 1.2vw, 1.9rem); }
h3 { font-size: clamp(1.08rem, 1rem + .45vw, 1.28rem); }
p { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.15em; padding-inline-start: 1.4em; }
li { margin-bottom: .5em; }
strong, b { font-weight: 700; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 2.2rem 0; }

.tnum { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link {
  position: fixed; inset-inline-start: 14px; top: 0; z-index: 999;
  background: var(--ink); color: var(--paper); padding: 10px 18px; font-weight: 700;
  text-decoration: none; transform: translateY(-140%); transition: transform .18s ease;
}
.skip-link:focus { transform: none; }

.wrap { width: min(100% - 2rem, var(--wrap)); margin-inline: auto; }
.col { max-width: var(--measure); }
section { padding-block: clamp(28px, 4.5vw, 52px); }

/* سرتیتر بخش با خط‌کشی نشریه‌ای */
.sec-title {
  display: flex; align-items: baseline; gap: 6px 14px; flex-wrap: wrap;
  border-bottom: 2px solid var(--rule-strong);
  padding-bottom: 8px; margin-bottom: 22px;
}
.sec-title h2 { margin: 0; flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.sec-title .meta {
  margin-inline-start: auto; font-size: .78rem; color: var(--ink-4);
  font-family: "Vazirmatn", sans-serif; letter-spacing: .02em;
  min-width: 0; overflow-wrap: anywhere;
}
@media (max-width: 640px) { .sec-title .meta { margin-inline-start: 0; flex-basis: 100%; } }
.sec-intro { color: var(--ink-2); max-width: var(--measure); margin: -6px 0 22px; }

.label {
  display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .12em;
  color: var(--accent); text-transform: uppercase; margin-bottom: .55rem;
  border-bottom: 1px solid var(--accent); padding-bottom: 2px;
}

/* ------------------------------ سرآیند نشریه -------------------------- */
.masthead { border-bottom: 1px solid var(--rule); background: var(--paper); }
.mast-strip {
  border-bottom: 1px solid var(--rule);
  font-size: .74rem; color: var(--ink-4); letter-spacing: .02em;
}
.mast-strip .wrap { display: flex; gap: 14px; flex-wrap: wrap; justify-content: space-between; padding-block: 6px; }
.mast-main { display: flex; align-items: center; gap: 14px; padding-block: 14px; }
.mast-logo { display: flex; align-items: center; gap: 11px; text-decoration: none; flex: 0 0 auto; }
.mast-logo img { width: 42px; height: 42px; }
.mast-logo b { font-family: "Naskh", serif; font-size: 1.25rem; font-weight: 700; color: var(--ink); display: block; line-height: 1.25; }
.mast-logo span { font-size: .7rem; color: var(--ink-4); display: block; letter-spacing: .03em; }

.mast-nav { display: none; margin-inline-start: auto; gap: 2px; }
.mast-nav a {
  color: var(--ink-2); font-size: .9rem; padding: 7px 11px; text-decoration: none;
  border-bottom: 2px solid transparent;
}
.mast-nav a:hover { color: var(--accent); border-bottom-color: var(--rule-2); }
.mast-nav a[aria-current="page"] { color: var(--accent); border-bottom-color: var(--accent); font-weight: 700; }

.mast-toggle {
  margin-inline-start: auto; width: 42px; height: 42px;
  border: 1px solid var(--rule-2); background: transparent; color: var(--ink);
  display: grid; place-items: center; cursor: pointer; border-radius: var(--r-sm);
}
.mast-toggle span { width: 18px; height: 2px; background: currentColor; box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor; }
.mast-toggle[aria-expanded="true"] span { box-shadow: none; transform: rotate(45deg); }
.mast-toggle[aria-expanded="true"] span::after { content: ""; display: block; width: 18px; height: 2px; background: currentColor; transform: rotate(-90deg); }

@media (min-width: 1080px) {
  .mast-toggle { display: none; }
  .mast-nav { display: flex; }
}

.mast-drawer { display: none; border-top: 1px solid var(--rule); padding: 10px 0 18px; }
.mast-drawer.open { display: block; }
.mast-drawer ul { list-style: none; margin: 0; padding: 0; }
.mast-drawer a { display: block; padding: 10px 4px; border-bottom: 1px solid var(--rule); color: var(--ink); text-decoration: none; }
.mast-drawer a[aria-current="page"] { color: var(--accent); font-weight: 700; }
@media (min-width: 1080px) { .mast-drawer, .mast-drawer.open { display: none; } }

/* ------------------------------ دکمه‌ها -------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  padding: 10px 20px; border: 1px solid var(--ink); background: transparent;
  color: var(--ink); font-family: inherit; font-weight: 700; font-size: .9rem;
  cursor: pointer; text-decoration: none; border-radius: var(--r-sm);
  transition: background-color .15s ease, color .15s ease;
}
.btn:hover { background: var(--ink); color: var(--paper); text-decoration: none; }
.btn-accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-2); border-color: var(--accent-2); color: #fff; }
.btn-quiet { border-color: var(--rule-2); color: var(--ink-2); }
.btn-quiet:hover { background: var(--paper-2); color: var(--ink); }
.btn-lg { padding: 13px 26px; font-size: .98rem; }
.btn-sm { padding: 6px 13px; font-size: .8rem; }
.btn-block { width: 100%; }

/* ------------------------------ سطح‌ها -------------------------------- */
.box { background: var(--card); border: 1px solid var(--rule); border-radius: var(--r-md); padding: clamp(15px, 2.3vw, 22px); }
.box-tint { background: var(--paper-2); border-color: var(--rule); }

.aside {
  border-inline-start: 3px solid var(--accent); background: var(--accent-soft);
  padding: 14px 18px; font-size: .93rem; color: #5c211d;
  border-radius: 0 var(--r-md) var(--r-md) 0;
}
.aside.neutral { border-color: var(--rule-strong); background: var(--paper-2); color: var(--ink-2); }
.aside.note { border-color: var(--blue); background: #eef2f7; color: #23405f; }
.aside b { font-weight: 700; }

.grid { display: grid; gap: var(--gap); }
.g2 { grid-template-columns: 1fr; }
.g3 { grid-template-columns: 1fr; }
@media (min-width: 660px) { .g2 { grid-template-columns: 1fr 1fr; } .g3 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 990px) { .g3 { grid-template-columns: repeat(3, 1fr); } }

/* ------------------------------ صدر صفحه ------------------------------ */
.lede-block { padding-block: clamp(22px, 3.5vw, 40px) clamp(16px, 2.5vw, 26px); border-bottom: 1px solid var(--rule); }
.lede-block h1 { margin-bottom: .35em; }
.standfirst { font-size: clamp(1.04rem, .98rem + .35vw, 1.2rem); color: var(--ink-2); max-width: var(--measure); }
.dateline {
  display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center;
  font-size: .82rem; color: var(--ink-4); margin-top: 16px;
  padding-top: 12px; border-top: 1px solid var(--rule);
}
.dateline b { color: var(--ink-2); }

/* ------------------------------ جدول رتبه‌بندی ------------------------ */
.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--rule-strong); background: var(--card); }
table.rank { width: 100%; border-collapse: collapse; min-width: 780px; font-size: .89rem; }
table.rank caption { text-align: start; padding: 10px 14px; font-size: .8rem; color: var(--ink-4); border-bottom: 1px solid var(--rule); }
table.rank th, table.rank td { padding: 11px 13px; text-align: start; border-bottom: 1px solid var(--rule); vertical-align: middle; }
table.rank thead th {
  background: var(--ink); color: var(--paper); font-size: .76rem; font-weight: 700;
  letter-spacing: .03em; white-space: nowrap; border-bottom: 0;
}
table.rank tbody tr:nth-child(2n) { background: #fdfbf8; }
table.rank tbody tr:hover { background: var(--paper-2); }
table.rank tbody tr:last-child td { border-bottom: 0; }
table.rank .num { font-family: "Naskh", serif; font-size: 1.15rem; font-weight: 700; color: var(--accent); width: 3rem; }
table.rank .b-cell { display: flex; align-items: center; gap: 10px; min-width: 165px; text-decoration: none; color: var(--ink); }
table.rank .b-cell b { font-size: .93rem; }
table.rank .b-cell:hover b { color: var(--accent); }
table.rank .b-cell .badge { width: 70px; min-height: 36px; padding: 4px 7px; }
table.rank .b-cell .badge img { height: 21px; }
.top3 td { background: #fffdf8 !important; }
.top3 .num { font-size: 1.35rem; }

/* ------------------------------ برندها -------------------------------- */
.badge {
  display: grid; place-items: center; background: #14120f;
  border-radius: var(--r-sm); padding: 9px 13px; min-height: 56px;
  flex: 0 1 auto; max-width: 100%; min-width: 0;
}
.badge img { height: 32px; width: auto; max-width: 100%; object-fit: contain; }
.badge.lg { min-height: 88px; padding: 15px 20px; }
@media (max-width: 520px) { .badge.lg { padding: 11px 14px; min-height: 70px; } .badge.lg img { height: 38px; } }
.badge.lg img { height: 52px; }

.score {
  font-family: "Naskh", serif; font-weight: 700; color: var(--ink);
  display: inline-flex; align-items: baseline; gap: 3px; font-variant-numeric: tabular-nums;
}
.score .n { font-size: 1.5rem; line-height: 1; }
.score .d { font-size: .78rem; color: var(--ink-4); font-family: "Vazirmatn", sans-serif; font-weight: 400; }
.score.sm .n { font-size: 1.1rem; }

.crit-bars { display: grid; gap: 8px; }
.crit-row { display: grid; grid-template-columns: 6.8rem 1fr 2.3rem; gap: 10px; align-items: center; font-size: .82rem; color: var(--ink-3); }
.crit-row .rail { display: block; height: 9px; background: var(--paper-3); border-radius: 1px; overflow: hidden; }
.crit-row .lvl { display: block; height: 100%; background: var(--ink); border-radius: 1px; }
.crit-row .lvl.hi { background: var(--accent); }
.crit-row b { text-align: end; color: var(--ink); font-variant-numeric: tabular-nums; }

.stars { display: inline-flex; gap: 1px; color: var(--gold); font-size: .88rem; letter-spacing: -.03em; }
.stars .off { color: var(--rule-2); }
.unset { color: var(--ink-4); font-size: .85rem; font-style: italic; }

.entry {
  display: grid; gap: 14px; padding-block: 22px; border-bottom: 1px solid var(--rule);
}
.entry:last-child { border-bottom: 0; }
.entry-head { display: flex; align-items: flex-start; gap: 15px; flex-wrap: wrap; }
.entry-rank {
  font-family: "Naskh", serif; font-size: 2.1rem; font-weight: 700; color: var(--accent);
  line-height: 1; width: 2.4rem; flex: 0 0 auto;
}
.entry-title { flex: 1 1 220px; min-width: 0; }
.entry-title h3 { margin: 0 0 .15em; font-size: 1.22rem; }
.entry-title h3 a { text-decoration: none; color: var(--ink); }
.entry-title h3 a:hover { color: var(--accent); }
.entry-title p { margin: 0; color: var(--ink-3); font-size: .9rem; }

.pros-cons { display: grid; gap: 16px; }
@media (min-width: 660px) { .pros-cons { grid-template-columns: 1fr 1fr; } }
.pros-cons ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; }
.pros-cons li { position: relative; padding-inline-start: 21px; font-size: .91rem; }
.pros-cons li::before { position: absolute; inset-inline-start: 0; font-weight: 700; }
.plus li::before { content: "＋"; color: var(--green); }
.minus li::before { content: "－"; color: var(--accent); }

/* ------------------------------ دست‌های پوکر -------------------------- */
.pcard {
  display: inline-flex; flex-direction: column; justify-content: space-between;
  background: #fff; border: 1px solid var(--rule-2); border-radius: 4px;
  padding: 3px 5px; font-weight: 700; color: var(--ink); direction: ltr;
  flex: 0 0 auto; line-height: 1; font-family: "Vazirmatn", sans-serif;
}
.pcard.red { color: var(--accent); }
.pcard.s { width: 35px; height: 50px; font-size: .63rem; }
.pcard.m { width: 45px; height: 64px; font-size: .73rem; }
.pcard .c { align-self: center; }
.pcard.s .c { font-size: 1.02rem; }
.pcard.m .c { font-size: 1.35rem; }
.pcard .bt { transform: rotate(180deg); }
.hand-cards { display: flex; gap: 4px; direction: ltr; flex-wrap: wrap; }

.hand-entry {
  display: grid; grid-template-columns: 2rem minmax(0, 1fr); gap: 12px;
  align-items: start; padding-block: 15px; border-bottom: 1px solid var(--rule);
}
.hand-entry .hand-cards { grid-column: 1 / -1; }
@media (min-width: 820px) { .hand-entry { grid-template-columns: 2rem minmax(0, 1fr) auto; } .hand-entry .hand-cards { grid-column: auto; } }
.hand-entry .hn { font-family: "Naskh", serif; font-size: 1.3rem; font-weight: 700; color: var(--accent); line-height: 1.2; }
.hand-entry h3 { margin: 0 0 .2em; font-size: 1.05rem; }
.hand-entry p { margin: 0; font-size: .9rem; color: var(--ink-2); }

/* ------------------------------ واژه‌نامه ----------------------------- */
.gloss { border-top: 1px solid var(--rule-strong); }
.gloss div { display: grid; gap: 3px 16px; padding-block: 13px; border-bottom: 1px solid var(--rule); }
@media (min-width: 700px) { .gloss div { grid-template-columns: 12rem minmax(0, 1fr); } }
.gloss dt, .gloss h3 { margin: 0; font-family: "Naskh", serif; font-size: 1rem; font-weight: 700; }
.gloss h3 span { display: block; font-family: "Vazirmatn", sans-serif; font-size: .74rem; color: var(--ink-4); font-weight: 400; direction: ltr; }
.gloss p { margin: 0; font-size: .91rem; color: var(--ink-2); }

/* ------------------------------ FAQ ----------------------------------- */
.qa { border-top: 1px solid var(--rule-strong); }
.qa details { border-bottom: 1px solid var(--rule); }
.qa summary {
  cursor: pointer; padding: 14px 2px; font-weight: 700; font-size: .97rem;
  list-style: none; display: flex; justify-content: space-between; gap: 14px; align-items: baseline;
  font-family: "Naskh", serif;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "＋"; color: var(--accent); font-weight: 700; flex: 0 0 auto; font-family: "Vazirmatn", sans-serif; }
.qa details[open] summary::after { content: "－"; }
.qa .ans { padding: 0 2px 15px; color: var(--ink-2); font-size: .93rem; max-width: var(--measure); }
.qa .ans p:last-child { margin-bottom: 0; }

/* ------------------------------ Breadcrumb ---------------------------- */
.trail { padding-block: 12px 0; font-size: .8rem; color: var(--ink-4); }
.trail ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.trail li::after { content: "←"; margin-inline-start: 6px; color: var(--rule-2); }
.trail li:last-child::after { content: ""; }
.trail a { color: var(--ink-3); text-decoration: none; }
.trail a:hover { color: var(--accent); text-decoration: underline; }
.trail [aria-current="page"] { color: var(--ink); }

/* ------------------------------ مقاله --------------------------------- */
.article { max-width: var(--measure); }
.article h2 { margin-top: 1.9em; padding-top: .5em; border-top: 1px solid var(--rule); }
.article h3 { margin-top: 1.5em; }
.article > p:first-of-type { font-size: 1.06rem; color: var(--ink-2); }
.article blockquote {
  margin: 1.6em 0; padding: 2px 20px; border-inline-start: 3px solid var(--rule-strong);
  font-family: "Naskh", serif; font-size: 1.05rem; color: var(--ink-2);
}
.article code { background: var(--paper-2); border: 1px solid var(--rule); border-radius: 2px; padding: 1px 5px; font-size: .87em; direction: ltr; display: inline-block; }

.index-box { border: 1px solid var(--rule-strong); padding: 15px 19px; margin-bottom: 26px; background: var(--card); }
.index-box b { display: block; margin-bottom: .5em; font-family: "Naskh", serif; font-size: .96rem; }
.index-box ol { margin: 0; padding-inline-start: 1.3em; font-size: .89rem; }
.index-box li { margin-bottom: .3em; }
.index-box a { color: var(--ink-2); }

.byline {
  display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center;
  padding: 11px 0; border-block: 1px solid var(--rule);
  font-size: .83rem; color: var(--ink-4); margin-bottom: 24px;
}
.byline b { color: var(--ink); font-family: "Naskh", serif; }

/* ------------------------------ لینک‌های داخلی ------------------------ */
.readmore { display: grid; gap: 0; border-top: 1px solid var(--rule-strong); }
.readmore a {
  display: flex; align-items: baseline; gap: 12px; padding: 13px 2px;
  border-bottom: 1px solid var(--rule); color: var(--ink); text-decoration: none;
}
.readmore a:hover { background: var(--paper-2); }
.readmore a b { font-family: "Naskh", serif; font-size: 1rem; flex: 0 0 auto; }
.readmore a span { color: var(--ink-3); font-size: .86rem; }
.readmore a::after { content: "←"; margin-inline-start: auto; color: var(--accent); flex: 0 0 auto; }

/* ------------------------------ نظرات -------------------------------- */
.op { padding-block: 15px; border-bottom: 1px solid var(--rule); }
.op-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.op-head b { font-size: .92rem; font-family: "Naskh", serif; }
.op-head time { font-size: .77rem; color: var(--ink-4); margin-inline-start: auto; }
.op p { margin: 0; font-size: .92rem; color: var(--ink-2); }
.op .hold { font-size: .73rem; color: var(--gold); border: 1px solid var(--gold); padding: 0 7px; }

.fields { display: grid; gap: 14px; }
@media (min-width: 660px) { .fields.two { grid-template-columns: 1fr 1fr; } }
label.lb { display: block; font-size: .84rem; font-weight: 700; margin-bottom: 5px; }
.inp {
  width: 100%; padding: 10px 13px; border: 1px solid var(--rule-2);
  background: var(--card); color: var(--ink); font-family: inherit; font-size: .92rem;
  border-radius: var(--r-sm);
}
.inp:focus { border-color: var(--accent); outline: none; }
textarea.inp { min-height: 112px; resize: vertical; }
.hint { font-size: .78rem; color: var(--ink-4); margin-top: 4px; }
.rating-in { display: flex; gap: 3px; direction: ltr; }
.rating-in label { cursor: pointer; font-size: 1.5rem; color: var(--rule-2); line-height: 1; padding: 2px; }
.rating-in label.on { color: var(--gold); }
.formmsg { font-size: .88rem; padding: 11px 15px; border: 1px solid var(--rule-2); }
.formmsg.ok { border-color: var(--green); background: #eef5f0; color: #1f4a33; }

/* ------------------------------ بازی ---------------------------------- */
.game-box { display: grid; gap: 13px; }
.game-head { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; justify-content: space-between; }
.tag { display: inline-flex; align-items: center; gap: .3rem; border: 1px solid var(--rule-2); padding: 4px 11px; font-size: .78rem; color: var(--ink-3); border-radius: var(--r-sm); }
.tag.mark { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }

.felt { border: 1px solid var(--rule-strong); background: var(--paper-2); padding: clamp(12px, 2.2vw, 20px); }
.seats { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.seat { display: flex; flex-direction: column; align-items: center; gap: 5px; border: 1px solid var(--rule); background: var(--card); padding: 8px 10px; min-width: 110px; }
.seat.turn { border-color: var(--accent); }
.seat.won { border-color: var(--green); background: #f2f8f4; }
.seat.out { opacity: .45; }
.seat .nm { font-size: .77rem; font-weight: 700; display: flex; align-items: center; gap: 5px; }
.seat .hole { display: flex; gap: 4px; direction: ltr; }
.seat .st { font-size: .76rem; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.seat .ac { font-size: .68rem; color: var(--ink-4); min-height: 1.1em; }
.dbtn { width: 16px; height: 16px; border-radius: 50%; background: var(--ink); color: var(--paper); display: grid; place-items: center; font-size: .56rem; font-weight: 700; }
.turndot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: bl 1.2s ease-in-out infinite; }
@keyframes bl { 0%, 100% { opacity: 1; } 50% { opacity: .2; } }

.center-row { display: flex; flex-direction: column; align-items: center; gap: 11px; margin-block: 16px; }
.board { display: flex; gap: 5px; justify-content: center; direction: ltr; }
.pcard.slot { background: transparent; border: 1px dashed var(--rule-2); }
.pcard.back { background: repeating-linear-gradient(45deg, var(--paper-3) 0 4px, var(--paper-2) 4px 8px); color: var(--ink-4); align-items: center; justify-content: center; }
.pcard.back .c { font-size: 1rem; }

.moves { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
@media (min-width: 560px) { .moves { grid-template-columns: repeat(4, 1fr); } }
.mv { padding: 12px 6px; border: 1px solid var(--ink); background: var(--card); color: var(--ink); font-family: inherit; font-weight: 700; font-size: .92rem; cursor: pointer; border-radius: var(--r-sm); }
.mv:hover:not(:disabled) { background: var(--paper-2); }
.mv:disabled { opacity: .35; cursor: not-allowed; }
.mv-fold { border-color: var(--accent); color: var(--accent); }
.mv-allin { background: var(--ink); color: var(--paper); }

.bet-row { display: flex; align-items: center; gap: 12px; margin-bottom: 11px; }
.bet-row label { font-size: .8rem; color: var(--ink-3); white-space: nowrap; }
.bet-row input[type="range"] { flex: 1; accent-color: var(--accent); min-width: 0; }

.tip { border-inline-start: 3px solid var(--blue); background: #eef2f7; padding: 10px 15px; font-size: .88rem; color: #23405f; }
.hist { font-size: .82rem; color: var(--ink-3); }
.hist summary { cursor: pointer; font-weight: 700; color: var(--ink); }
.hist ul { list-style: none; padding: 0; margin: 9px 0 0; max-height: 160px; overflow-y: auto; }
.hist li { border-bottom: 1px solid var(--rule); padding-bottom: 4px; }

.modal-bg { position: fixed; inset: 0; z-index: 100; background: rgba(29, 26, 22, .55); display: grid; place-items: center; padding: 16px; }
.modal-card { width: min(100%, 450px); background: var(--card); border: 1px solid var(--rule-strong); padding: clamp(18px, 4vw, 26px); max-height: 92vh; overflow-y: auto; }
.modal-card h3 { margin-bottom: .3em; }
.shut { float: inline-end; background: none; border: 0; color: var(--ink-4); font-size: 1.4rem; cursor: pointer; line-height: 1; padding: 2px 6px; }

/* ------------------------------ CTA ----------------------------------- */
.promo {
  border: 1px solid var(--rule-strong); background: var(--card);
  padding: clamp(18px, 3vw, 28px); display: grid; gap: 15px; align-items: center;
}
@media (min-width: 780px) { .promo { grid-template-columns: 1fr auto; } }
.promo h3 { margin: 0 0 .3em; }
.promo p { margin: 0; color: var(--ink-3); font-size: .93rem; }

/* ------------------------------ فوتر ---------------------------------- */
.foot { margin-top: clamp(34px, 5vw, 64px); border-top: 3px double var(--rule-strong); padding-block: clamp(26px, 4vw, 44px) 22px; }
.foot-grid { display: grid; gap: 26px; }
@media (min-width: 760px) { .foot-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; } }
.foot h4 { font-size: .88rem; margin-bottom: .8em; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; }
.foot a { color: var(--ink-3); font-size: .86rem; text-decoration: none; }
.foot a:hover { color: var(--accent); text-decoration: underline; }
.foot .intro p { color: var(--ink-3); font-size: .86rem; max-width: 40ch; }
.foot-end { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; color: var(--ink-4); font-size: .79rem; }
.age { display: inline-grid; place-items: center; width: 32px; height: 32px; border: 2px solid var(--accent); color: var(--accent); font-weight: 700; font-size: .72rem; border-radius: 50%; flex: 0 0 auto; }
.foot-warn { display: flex; align-items: center; gap: 12px; color: var(--ink-3); font-size: .82rem; margin-top: 20px; }

/* ------------------------------ 404 ----------------------------------- */
.err { text-align: center; padding-block: clamp(44px, 8vw, 92px); }
.err .n { font-family: "Naskh", serif; font-size: clamp(3.4rem, 13vw, 6.5rem); line-height: 1; color: var(--rule-2); margin: 0; }

/* ------------------------------ کمکی ---------------------------------- */
.mt0 { margin-top: 0; } .mb0 { margin-bottom: 0; }
.mt1 { margin-top: 1rem; } .mt2 { margin-top: 1.7rem; }
.center { text-align: center; }
.muted { color: var(--ink-3); }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.between { justify-content: space-between; }
.small { font-size: .84rem; }

/* ------------------------- میز روی صفحهٔ کوچک ------------------------- */
@media (max-width: 560px) {
  .seat { min-width: 92px; padding: 6px 7px; }
  .seats { gap: 6px; }
  .pcard.s { width: 30px; height: 43px; font-size: .57rem; }
  .pcard.m { width: 41px; height: 58px; font-size: .65rem; }
  .pcard.m .c { font-size: 1.1rem; }
  .board { gap: 4px; }
  .felt { padding: 10px; }
  .crit-row { grid-template-columns: 5.6rem 1fr 2.1rem; gap: 8px; font-size: .78rem; }
}

/* --------- محافظ نهایی: نشان برند هرگز از عرض صفحه بیرون نزند ---------- */
.row { min-width: 0; }
.badge { max-width: 100%; }
.badge img { max-width: min(100%, 210px); }
.badge.lg img { max-width: min(100%, 235px); }
@media (max-width: 560px) {
  .badge.lg { min-height: 68px; padding: 11px 13px; }
  .badge.lg img { height: 38px; max-width: min(100%, 195px); }
  .badge img { max-width: min(100%, 165px); }
}
