/* =========================================================================
 * پوکر روم — pokerroomfa.com
 * هویت بصری: باشگاه کارت. بادنجانی عمیق، چوب گردو، کرم گرم و برنج کهنه.
 * فرم‌ها قوسی‌اند (طاق ورودی اتاق) و تیترها با خط کوفی نوشته می‌شوند.
 * تایپوگرافی: نوتو کوفی عربی (تیتر) + ایران‌سنس ایکس (متن).
 * ======================================================================= */

/* ------------------------------ فونت ---------------------------------- */
@font-face { font-family: "Kufi"; src: url("../fonts/kufi-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: "Kufi"; src: url("../fonts/kufi-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: "Kufi"; src: url("../fonts/kufi-arabic-latin-700.woff2") format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: "IranSans"; src: url("../fonts/iransansx-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IranSans"; src: url("../fonts/iransansx-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "IranSans"; src: url("../fonts/iransansx-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

/* ------------------------------ توکن‌ها -------------------------------- */
:root {
  --wine-900: #2a1119;
  --wine-800: #3b1622;
  --wine-700: #571f2f;
  --wine-600: #74293e;
  --wine-500: #93374f;

  --walnut: #4a3426;
  --walnut-2: #6b4c37;

  --cream: #f6efe4;
  --cream-2: #efe4d3;
  --cream-3: #e4d5be;
  --paper: #fdfaf5;

  --brass-400: #d9b166;
  --brass-500: #c0913e;
  --brass-600: #9a7128;

  --ink: #241a17;
  --ink-2: #4d3c35;
  --ink-3: #776259;
  --ink-4: #a08c81;

  --green: #3f6b4a;
  --red: #a83a3a;

  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-arch: 22px 22px 6px 6px;   /* طاق ورودی اتاق */

  --sh-1: 0 1px 3px rgba(42, 17, 25, .07);
  --sh-2: 0 8px 22px -12px rgba(42, 17, 25, .30);
  --sh-3: 0 22px 50px -26px rgba(42, 17, 25, .45);

  --wrap: 1140px;
  --gap: clamp(16px, 3vw, 28px);
}

/* ------------------------------ پایه ---------------------------------- */
*, *::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:
    radial-gradient(900px 500px at 88% -6%, rgba(217, 177, 102, .12), transparent 62%),
    var(--cream);
  color: var(--ink);
  font-family: "IranSans", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.95;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--wine-600); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 4px; }
:focus-visible { outline: 3px solid var(--wine-600); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 { font-family: "Kufi", "IranSans", sans-serif; font-weight: 700; line-height: 1.5; margin: 0 0 .55em; color: var(--wine-800); }
h1 { font-size: clamp(1.55rem, 1.15rem + 1.9vw, 2.5rem); line-height: 1.45; }
h2 { font-size: clamp(1.22rem, 1.05rem + .9vw, 1.72rem); }
h3 { font-size: clamp(1.02rem, .96rem + .35vw, 1.18rem); }
p { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.15em; padding-inline-start: 1.4em; }
li { margin-bottom: .45em; }
strong, b { font-weight: 700; }
hr { border: 0; border-top: 1px solid var(--cream-3); margin: 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(--wine-700); color: var(--cream); padding: 10px 18px; font-weight: 700;
  border-radius: 0 0 var(--r-sm) var(--r-sm);
  transform: translateY(-140%); transition: transform .18s ease;
}
.skip-link:focus { transform: none; }

.wrap { width: min(100% - 2rem, var(--wrap)); margin-inline: auto; }
section { padding-block: clamp(30px, 5vw, 58px); }
.head { margin-bottom: clamp(18px, 3vw, 28px); max-width: 68ch; }
.head p { color: var(--ink-3); margin: 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: "Kufi", sans-serif; font-size: .74rem; font-weight: 700;
  letter-spacing: .1em; color: var(--brass-600); margin-bottom: .7rem;
}
.eyebrow::before, .eyebrow::after { content: ""; width: 16px; height: 1px; background: var(--brass-500); }
.eyebrow::after { display: none; }

/* ------------------------------ سرآیند باشگاه ------------------------- */
.club-head { background: var(--wine-900); color: var(--cream); position: sticky; top: 0; z-index: 60; }
.club-top {
  border-bottom: 1px solid rgba(217, 177, 102, .18);
  font-size: .74rem; color: rgba(246, 239, 228, .6); letter-spacing: .02em;
}
.club-top .wrap { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; padding-block: 6px; }
.club-bar { display: flex; align-items: center; gap: 14px; min-height: 66px; }
.club-logo { display: flex; align-items: center; gap: 11px; flex: 0 0 auto; }
.club-logo img { width: 42px; height: 42px; }
.club-logo b { font-family: "Kufi", sans-serif; font-size: 1.08rem; font-weight: 700; color: var(--brass-400); display: block; line-height: 1.3; }
.club-logo span { font-size: .68rem; color: rgba(246, 239, 228, .55); display: block; }
.club-logo:hover { text-decoration: none; }

.club-nav { display: none; margin-inline-start: auto; align-items: center; gap: 2px; }
.club-nav a { color: rgba(246, 239, 228, .78); font-size: .91rem; padding: 8px 12px; border-radius: var(--r-sm); }
.club-nav a:hover { color: var(--brass-400); background: rgba(217, 177, 102, .1); text-decoration: none; }
.club-nav a[aria-current="page"] { color: var(--brass-400); background: rgba(217, 177, 102, .14); font-weight: 700; }
.club-cta { display: none; }

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

@media (min-width: 1060px) {
  .club-toggle { display: none; }
  .club-nav { display: flex; }
  .club-cta { display: inline-flex; }
}

.club-drawer { display: none; background: var(--wine-800); padding: 10px 0 18px; }
.club-drawer.open { display: block; }
.club-drawer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.club-drawer a { display: block; padding: 11px 14px; border-radius: var(--r-sm); color: var(--cream); font-weight: 500; }
.club-drawer a:hover { background: rgba(217, 177, 102, .12); text-decoration: none; }
.club-drawer a[aria-current="page"] { color: var(--brass-400); font-weight: 700; }
@media (min-width: 1060px) { .club-drawer, .club-drawer.open { display: none; } }

/* ------------------------------ دکمه‌ها -------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  padding: 11px 22px; border-radius: 999px; border: 1px solid transparent;
  font-family: inherit; font-weight: 700; font-size: .92rem; cursor: pointer;
  transition: background-color .15s ease, transform .12s ease, box-shadow .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: none; }
.b-wine { background: var(--wine-700); color: var(--cream); box-shadow: var(--sh-2); }
.b-wine:hover { background: var(--wine-600); }
.b-brass { background: linear-gradient(180deg, var(--brass-400), var(--brass-600)); color: #2a1f08; box-shadow: var(--sh-2); }
.b-brass:hover { background: linear-gradient(180deg, #e6c37e, var(--brass-500)); }
.b-line { background: transparent; border-color: var(--cream-3); color: var(--ink-2); }
.b-line:hover { border-color: var(--wine-600); color: var(--wine-700); background: var(--paper); }
.b-lg { padding: 14px 30px; font-size: 1rem; }
.b-sm { padding: 7px 15px; font-size: .82rem; }
.b-block { width: 100%; }

/* ------------------------------ سطح‌ها -------------------------------- */
.card { background: var(--paper); border: 1px solid var(--cream-3); border-radius: var(--r-md); padding: clamp(16px, 2.4vw, 24px); box-shadow: var(--sh-1); }
.card-arch { border-radius: var(--r-arch); }

.note { border-radius: var(--r-md); padding: 14px 18px; font-size: .93rem; border: 1px solid; }
.note.brass { background: #fbf3e2; border-color: #ecd8ad; color: #6a4d13; }
.note.wine { background: #fbeef1; border-color: #f0d3da; color: var(--wine-700); }
.note.leaf { background: #eef5ef; border-color: #cfe2d4; color: #29543a; }
.note 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: 1000px) { .g3 { grid-template-columns: repeat(3, 1fr); } }

/* ------------------------------ هیرو باشگاه --------------------------- */
.foyer {
  background: linear-gradient(180deg, var(--wine-900), var(--wine-800));
  color: var(--cream); padding-block: clamp(34px, 6vw, 66px);
  position: relative; overflow: hidden;
}
.foyer::after {
  content: ""; position: absolute; inset-inline-end: -80px; top: -60px;
  width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(217, 177, 102, .16), transparent 70%);
  pointer-events: none;
}
.foyer h1 { color: var(--cream); }
.foyer .lede { font-size: clamp(1rem, .95rem + .3vw, 1.13rem); color: rgba(246, 239, 228, .78); max-width: 56ch; }
.foyer .eyebrow { color: var(--brass-400); }
.foyer .eyebrow::before { background: var(--brass-400); }
.foyer-grid { display: grid; gap: clamp(24px, 4vw, 44px); align-items: center; position: relative; z-index: 1; }
@media (min-width: 1000px) { .foyer-grid { grid-template-columns: 1fr .92fr; } }
.foyer-stats { display: flex; flex-wrap: wrap; gap: 12px 30px; margin-top: 26px; padding-top: 20px; border-top: 1px solid rgba(217, 177, 102, .22); }
.foyer-stats div { display: flex; flex-direction: column; }
.foyer-stats b { font-family: "Kufi", sans-serif; font-size: 1.4rem; color: var(--brass-400); }
.foyer-stats span { font-size: .78rem; color: rgba(246, 239, 228, .55); }

/* --------------------------- دایرکتوری اتاق‌ها ------------------------ */
.dir-controls {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  background: var(--paper); border: 1px solid var(--cream-3);
  border-radius: 999px; padding: 8px 14px; margin-bottom: 20px;
}
.dir-controls .lbl { font-size: .82rem; color: var(--ink-3); font-weight: 700; }
.sort-chip {
  border: 1px solid var(--cream-3); background: transparent; color: var(--ink-2);
  border-radius: 999px; padding: 6px 14px; font-family: inherit; font-size: .82rem;
  cursor: pointer; transition: background-color .14s ease, border-color .14s ease, color .14s ease;
}
.sort-chip:hover { border-color: var(--wine-500); color: var(--wine-700); }
.sort-chip[aria-pressed="true"] { background: var(--wine-700); border-color: var(--wine-700); color: var(--cream); font-weight: 700; }

.rooms { display: grid; gap: 16px; }
@media (min-width: 700px) { .rooms { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1060px) { .rooms { grid-template-columns: repeat(3, 1fr); } }

.room {
  background: var(--paper); border: 1px solid var(--cream-3);
  border-radius: var(--r-arch); overflow: hidden; display: flex; flex-direction: column;
  box-shadow: var(--sh-1); transition: box-shadow .18s ease, transform .18s ease;
}
.room:hover { box-shadow: var(--sh-2); transform: translateY(-2px); }
.room-top {
  background: linear-gradient(180deg, var(--wine-800), var(--wine-900));
  padding: 16px 18px; display: flex; align-items: center; gap: 12px;
}
.room-top .plate { flex: 1; min-width: 0; }
.room-top .no {
  font-family: "Kufi", sans-serif; font-size: .78rem; color: var(--brass-400);
  border: 1px solid rgba(217, 177, 102, .4); border-radius: 999px; padding: 2px 10px;
  flex: 0 0 auto;
}
.room-body { padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.room-body h3 { margin: 0; font-size: 1.08rem; }
.room-body h3 a { color: var(--wine-800); }
.room-body .tag { color: var(--ink-3); font-size: .87rem; margin: 0; }
.room-foot { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; }

.emblem { display: grid; place-items: center; background: #17100e; border-radius: var(--r-sm); padding: 8px 12px; min-height: 52px; flex: 0 1 auto; max-width: 100%; min-width: 0; }
.emblem img { height: 30px; width: auto; max-width: 100%; object-fit: contain; }
.emblem.lg { min-height: 88px; padding: 15px 20px; }
@media (max-width: 520px) { .emblem.lg { padding: 11px 14px; min-height: 70px; } .emblem.lg img { height: 38px; } }
.emblem.lg img { height: 52px; }

.mark {
  font-family: "Kufi", sans-serif; display: inline-flex; align-items: baseline; gap: 3px;
  color: var(--brass-400); font-weight: 700; font-variant-numeric: tabular-nums;
}
.mark .v { font-size: 1.5rem; line-height: 1; }
.mark .u { font-size: .72rem; opacity: .72; font-family: "IranSans", sans-serif; font-weight: 400; }
.mark.dark { color: var(--wine-700); }
.mark.sm .v { font-size: 1.05rem; }

.facts { display: grid; gap: 5px; font-size: .82rem; }
.facts div { display: flex; gap: 8px; justify-content: space-between; border-bottom: 1px dashed var(--cream-3); padding-bottom: 4px; }
.facts div:last-child { border-bottom: 0; }
.facts dt, .facts .k { color: var(--ink-3); }
.facts dd, .facts .v { margin: 0; font-weight: 700; color: var(--ink); text-align: end; }

.gauges { display: grid; gap: 7px; }
.gauge { display: grid; grid-template-columns: 6.4rem 1fr 2.2rem; gap: 9px; align-items: center; font-size: .8rem; color: var(--ink-3); }
.gauge .arc { display: block; height: 8px; border-radius: 999px; background: var(--cream-2); overflow: hidden; }
.gauge .fill { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--wine-600), var(--wine-500)); }
.gauge .fill.top { background: linear-gradient(90deg, var(--brass-600), var(--brass-400)); }
.gauge b { text-align: end; color: var(--ink); font-variant-numeric: tabular-nums; }

.stars { display: inline-flex; gap: 1px; color: var(--brass-500); font-size: .88rem; letter-spacing: -.03em; }
.stars .off { color: var(--cream-3); }
.none { color: var(--ink-4); font-size: .84rem; font-style: italic; }

.chip {
  display: inline-flex; align-items: center; gap: .3rem;
  border: 1px solid var(--cream-3); background: var(--paper); color: var(--ink-3);
  border-radius: 999px; padding: 4px 12px; font-size: .78rem;
}
.chip.brass { border-color: #ecd8ad; background: #fbf3e2; color: var(--brass-600); }
.chip.wine { border-color: #f0d3da; background: #fbeef1; color: var(--wine-700); }

/* ------------------------------ جدول --------------------------------- */
.tbl { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--cream-3); border-radius: var(--r-md); background: var(--paper); }
table.rooms-tbl { width: 100%; border-collapse: collapse; min-width: 760px; font-size: .89rem; }
table.rooms-tbl th, table.rooms-tbl td { padding: 12px 14px; text-align: start; border-bottom: 1px solid var(--cream-2); vertical-align: middle; }
table.rooms-tbl thead th { background: var(--wine-800); color: var(--cream); font-size: .77rem; font-weight: 700; white-space: nowrap; border-bottom: 0; }
table.rooms-tbl tbody tr:last-child td { border-bottom: 0; }
table.rooms-tbl tbody tr:hover { background: #fbf6ee; }
table.rooms-tbl .rcell { display: flex; align-items: center; gap: 10px; min-width: 168px; }
table.rooms-tbl .rcell .emblem { width: 70px; min-height: 36px; padding: 4px 7px; }
table.rooms-tbl .rcell .emblem img { height: 21px; }
table.rooms-tbl .rcell b { font-size: .92rem; }
.no-cell { font-family: "Kufi", sans-serif; font-weight: 700; color: var(--wine-600); font-size: 1rem; }

/* ------------------------------ کارت پوکر ----------------------------- */
.pcard {
  display: inline-flex; flex-direction: column; justify-content: space-between;
  background: #fffdf9; border: 1px solid var(--cream-3); border-radius: 6px;
  box-shadow: var(--sh-1); padding: 3px 5px; font-weight: 700; color: var(--ink);
  direction: ltr; flex: 0 0 auto; line-height: 1; font-family: "IranSans", sans-serif;
}
.pcard.red { color: var(--red); }
.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); }
.cardrow { display: flex; gap: 4px; direction: ltr; flex-wrap: wrap; }

.hand-row {
  display: grid; grid-template-columns: 2.2rem minmax(0, 1fr); gap: 12px; align-items: center;
  background: var(--paper); border: 1px solid var(--cream-3); border-radius: var(--r-md); padding: 13px 16px;
}
.hand-row .cardrow { grid-column: 1 / -1; }
@media (min-width: 820px) { .hand-row { grid-template-columns: 2.2rem minmax(0, 1fr) auto; } .hand-row .cardrow { grid-column: auto; } }
.hand-row .n { font-family: "Kufi", sans-serif; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--wine-800); color: var(--brass-400); display: grid; place-items: center; font-weight: 700; font-size: .9rem; }
.hand-row h3 { margin: 0 0 .18em; font-size: 1.02rem; }
.hand-row p { margin: 0; font-size: .88rem; color: var(--ink-3); }

/* ------------------------------ واژه‌نامه ----------------------------- */
.lexicon { display: grid; gap: 10px; }
@media (min-width: 760px) { .lexicon { grid-template-columns: 1fr 1fr; } }
.lex { background: var(--paper); border: 1px solid var(--cream-3); border-radius: var(--r-md); padding: 14px 17px; }
.lex h3 { margin: 0 0 .25em; font-size: .99rem; display: flex; gap: .5rem; align-items: baseline; flex-wrap: wrap; }
.lex h3 span { font-family: "IranSans", sans-serif; font-size: .74rem; color: var(--ink-4); font-weight: 400; direction: ltr; }
.lex p { margin: 0; font-size: .89rem; color: var(--ink-2); }

/* ------------------------------ FAQ ----------------------------------- */
.asks { display: grid; gap: 10px; }
.asks details { background: var(--paper); border: 1px solid var(--cream-3); border-radius: var(--r-md); }
.asks summary {
  cursor: pointer; padding: 14px 18px; font-weight: 700; font-size: .96rem;
  list-style: none; display: flex; justify-content: space-between; gap: 12px; align-items: center;
  font-family: "Kufi", sans-serif; color: var(--wine-800);
}
.asks summary::-webkit-details-marker { display: none; }
.asks summary::after { content: "＋"; color: var(--brass-600); font-family: "IranSans", sans-serif; flex: 0 0 auto; }
.asks details[open] summary::after { content: "－"; }
.asks details[open] summary { border-bottom: 1px solid var(--cream-2); }
.asks .body { padding: 14px 18px; color: var(--ink-2); font-size: .92rem; }
.asks .body p:last-child { margin-bottom: 0; }

/* ------------------------------ Breadcrumb ---------------------------- */
.path { padding-block: 13px 0; font-size: .81rem; color: var(--ink-4); }
.path ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.path li::after { content: "•"; margin-inline-start: 6px; color: var(--cream-3); }
.path li:last-child::after { content: ""; }
.path a { color: var(--ink-3); }
.path [aria-current="page"] { color: var(--wine-700); font-weight: 500; }

/* ------------------------------ مقاله --------------------------------- */
.text { max-width: 70ch; }
.text h2 { margin-top: 1.9em; }
.text h3 { margin-top: 1.5em; }
.text > p:first-of-type { font-size: 1.05rem; color: var(--ink-2); }
.text blockquote {
  margin: 1.6em 0; padding: 14px 20px; background: var(--paper);
  border-inline-start: 3px solid var(--brass-500); border-radius: 0 var(--r-md) var(--r-md) 0;
  color: var(--ink-2); font-size: .98rem;
}
.text code { background: var(--cream-2); border: 1px solid var(--cream-3); border-radius: 4px; padding: 1px 6px; font-size: .87em; direction: ltr; display: inline-block; }

.toc { background: var(--paper); border: 1px solid var(--cream-3); border-radius: var(--r-md); padding: 15px 19px; margin-bottom: 26px; }
.toc b { display: block; margin-bottom: .5em; font-family: "Kufi", sans-serif; font-size: .94rem; color: var(--wine-800); }
.toc ol { margin: 0; padding-inline-start: 1.3em; font-size: .9rem; }
.toc li { margin-bottom: .28em; }

.signed {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  background: var(--paper); border: 1px solid var(--cream-3); border-radius: var(--r-md);
  padding: 12px 16px; font-size: .84rem; color: var(--ink-3); margin-bottom: 24px;
}
.signed .seal {
  width: 38px; height: 38px; border-radius: 50%; flex: 0 0 auto;
  background: var(--wine-800); color: var(--brass-400);
  display: grid; place-items: center; font-family: "Kufi", sans-serif; font-weight: 700;
}
.signed b { color: var(--ink); }

/* ------------------------------ لینک‌ها ------------------------------- */
.doors { display: grid; gap: 10px; }
@media (min-width: 660px) { .doors { grid-template-columns: 1fr 1fr; } }
.doors a {
  display: flex; align-items: center; gap: 12px;
  background: var(--paper); border: 1px solid var(--cream-3);
  border-radius: var(--r-arch); padding: 14px 18px; color: var(--ink); font-weight: 600; font-size: .92rem;
}
.doors a:hover { border-color: var(--wine-500); background: #fdf6ef; text-decoration: none; }
.doors a::before { content: "◂"; color: var(--brass-600); font-weight: 700; }
.doors a small { display: block; color: var(--ink-3); font-weight: 400; font-size: .82rem; }

/* ------------------------------ نظرات -------------------------------- */
.voice { background: var(--paper); border: 1px solid var(--cream-3); border-radius: var(--r-md); padding: 15px 18px; }
.voice-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 7px; }
.voice-top b { font-size: .92rem; font-family: "Kufi", sans-serif; color: var(--wine-800); }
.voice-top time { font-size: .77rem; color: var(--ink-4); margin-inline-start: auto; }
.voice p { margin: 0; font-size: .92rem; color: var(--ink-2); }
.voice .pending { font-size: .73rem; color: var(--brass-600); border: 1px dashed #e0c48a; border-radius: 999px; padding: 1px 9px; }

.fields { display: grid; gap: 14px; }
@media (min-width: 660px) { .fields.two { grid-template-columns: 1fr 1fr; } }
label.lb { display: block; font-size: .85rem; font-weight: 700; margin-bottom: 5px; }
.inp {
  width: 100%; padding: 11px 14px; border: 1px solid var(--cream-3);
  background: #fff; color: var(--ink); font-family: inherit; font-size: .92rem;
  border-radius: var(--r-sm);
}
.inp:focus { border-color: var(--wine-600); outline: none; }
textarea.inp { min-height: 112px; resize: vertical; }
.hint { font-size: .78rem; color: var(--ink-4); margin-top: 4px; }
.rate-pick { display: flex; gap: 3px; direction: ltr; }
.rate-pick label { cursor: pointer; font-size: 1.5rem; color: var(--cream-3); line-height: 1; padding: 2px; }
.rate-pick label.on { color: var(--brass-500); }
.msg { font-size: .88rem; padding: 11px 15px; border-radius: var(--r-sm); border: 1px solid var(--cream-3); }
.msg.ok { background: #eef5ef; border-color: #cfe2d4; color: #29543a; }

/* ------------------------------ بازی ---------------------------------- */
.table-box { display: grid; gap: 13px; }
.table-head { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; justify-content: space-between; }

.felt {
  border-radius: var(--r-lg);
  background: radial-gradient(120% 90% at 50% 10%, #6d2739 0%, var(--wine-800) 48%, var(--wine-900) 100%);
  border: 8px solid var(--walnut); box-shadow: inset 0 1px 0 rgba(217, 177, 102, .12), var(--sh-3);
  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 rgba(217, 177, 102, .2); background: rgba(26, 10, 15, .4);
  border-radius: var(--r-md); padding: 8px 10px; min-width: 110px; color: var(--cream);
}
.seat.turn { border-color: var(--brass-400); background: rgba(217, 177, 102, .12); }
.seat.won { border-color: var(--brass-400); box-shadow: 0 0 0 2px rgba(217, 177, 102, .3); }
.seat.out { opacity: .42; }
.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: .75rem; font-weight: 700; color: var(--brass-400); font-variant-numeric: tabular-nums; }
.seat .ac { font-size: .68rem; color: rgba(246, 239, 228, .55); min-height: 1.1em; }
.dbtn { width: 16px; height: 16px; border-radius: 50%; background: var(--cream); color: var(--wine-900); display: grid; place-items: center; font-size: .56rem; font-weight: 700; }
.turndot { width: 7px; height: 7px; border-radius: 50%; background: var(--brass-400); animation: fl 1.2s ease-in-out infinite; }
@keyframes fl { 0%, 100% { opacity: 1; } 50% { opacity: .22; } }

.middle { 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: rgba(255, 255, 255, .04); border: 1px dashed rgba(217, 177, 102, .28); box-shadow: none; }
.pcard.back {
  background: repeating-linear-gradient(45deg, rgba(217, 177, 102, .14) 0 4px, transparent 4px 8px), var(--wine-900);
  border-color: rgba(217, 177, 102, .3); color: rgba(217, 177, 102, .65);
  align-items: center; justify-content: center;
}
.pcard.back .c { font-size: 1rem; }
.felt .chip { border-color: rgba(217, 177, 102, .3); background: rgba(26, 10, 15, .4); color: rgba(246, 239, 228, .8); }
.felt .chip.brass { border-color: rgba(217, 177, 102, .5); background: rgba(217, 177, 102, .14); color: var(--brass-400); }

.acts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
@media (min-width: 560px) { .acts { grid-template-columns: repeat(4, 1fr); } }
.act {
  padding: 12px 6px; border-radius: var(--r-sm); font-family: inherit; font-weight: 700; font-size: .92rem;
  border: 1px solid var(--cream-3); background: var(--paper); color: var(--ink); cursor: pointer;
}
.act:hover:not(:disabled) { background: var(--cream-2); }
.act:disabled { opacity: .35; cursor: not-allowed; }
.act-fold { border-color: #eccdcd; background: #fbf1f1; color: var(--red); }
.act-raise { border-color: #ecd8ad; background: #fbf3e2; color: var(--brass-600); }
.act-allin { background: linear-gradient(180deg, var(--brass-400), var(--brass-600)); border-color: var(--brass-600); color: #2a1f08; }

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

.usher { border-radius: var(--r-md); border: 1px solid #ecd8ad; background: #fbf3e2; padding: 10px 15px; font-size: .88rem; color: #6a4d13; }
.ledger { font-size: .82rem; color: var(--ink-3); }
.ledger summary { cursor: pointer; font-weight: 700; color: var(--ink); }
.ledger ul { list-style: none; padding: 0; margin: 9px 0 0; max-height: 160px; overflow-y: auto; }
.ledger li { border-bottom: 1px solid var(--cream-2); padding-bottom: 4px; }

.veil { position: fixed; inset: 0; z-index: 100; background: rgba(42, 17, 25, .62); display: grid; place-items: center; padding: 16px; backdrop-filter: blur(3px); }
.dialog { width: min(100%, 450px); background: var(--paper); border-radius: var(--r-lg); padding: clamp(18px, 4vw, 26px); box-shadow: var(--sh-3); max-height: 92vh; overflow-y: auto; }
.dialog h3 { margin-bottom: .3em; }
.xbtn { float: inline-end; background: none; border: 0; color: var(--ink-4); font-size: 1.4rem; cursor: pointer; line-height: 1; padding: 2px 6px; }

/* ------------------------------ CTA ----------------------------------- */
.invite {
  border-radius: var(--r-lg); padding: clamp(20px, 3.6vw, 32px);
  background: linear-gradient(135deg, var(--wine-800), var(--wine-600));
  color: var(--cream); display: grid; gap: 16px; align-items: center;
}
@media (min-width: 800px) { .invite { grid-template-columns: 1fr auto; } }
.invite h3 { color: var(--brass-400); margin: 0 0 .3em; }
.invite p { margin: 0; color: rgba(246, 239, 228, .8); font-size: .94rem; }

/* ------------------------------ فوتر ---------------------------------- */
.club-foot { margin-top: clamp(36px, 6vw, 70px); background: var(--wine-900); color: rgba(246, 239, 228, .75); padding-block: clamp(28px, 4.5vw, 48px) 22px; }
.foot-grid { display: grid; gap: 26px; }
@media (min-width: 760px) { .foot-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; } }
.club-foot h4 { font-family: "Kufi", sans-serif; font-size: .88rem; color: var(--brass-400); margin-bottom: .8em; }
.club-foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; }
.club-foot a { color: rgba(246, 239, 228, .7); font-size: .86rem; }
.club-foot a:hover { color: var(--brass-400); }
.club-foot .about p { font-size: .86rem; max-width: 40ch; }
.foot-line { margin-top: 26px; padding-top: 18px; border-top: 1px solid rgba(217, 177, 102, .18); display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: .79rem; color: rgba(246, 239, 228, .5); }
.age { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--brass-400); color: var(--brass-400); font-weight: 700; font-size: .72rem; flex: 0 0 auto; }
.foot-warn { display: flex; align-items: center; gap: 12px; font-size: .82rem; margin-top: 20px; color: rgba(246, 239, 228, .62); }

/* ------------------------------ 404 ----------------------------------- */
.lost { text-align: center; padding-block: clamp(44px, 8vw, 92px); }
.lost .n { font-family: "Kufi", sans-serif; font-size: clamp(3.4rem, 13vw, 6.5rem); line-height: 1; color: var(--cream-3); 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: 11px; 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; border-width: 5px; }
  .gauge { grid-template-columns: 5.4rem 1fr 2rem; gap: 8px; font-size: .77rem; }
  .dir-controls { border-radius: var(--r-md); }
}

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