/* =============================================================
   THEME TOKENS — تغییر رنگ‌بندی فقط از اینجا
   ============================================================= */
body *{text-align: right !important;}
:root {
  /* --- رنگ‌های اصلی --- */
  --clr-bg:          #ffffff;   /* پس‌زمینه: سفید */
  --clr-bg2:         #f5f3ff;   /* سطوح کمی گرم‌تر */
  --clr-bg3:         #ede9fe;   /* hover/separator */
  --clr-surface:     #FFFFFF;
  --clr-surface2:    #faf9ff;

  /* --- اکسنت‌ها --- */
  --clr-accent:      #7c3aed;   /* بنفش اصلی */
  --clr-accent-h:    #6d28d9;
  --clr-accent-light:#ede9fe;
  --clr-blue:        #0f1629;   /* navy تیره برای سکشن‌های dark */
  --clr-blue-light:  #ede9fe;
  --clr-green:       #16a34a;
  --clr-green-light: #dcfce7;
  --clr-gold:        #d97706;
  --clr-gold-light:  #fef3c7;

  /* --- متن --- */
  --clr-text:        #1a1128;
  --clr-text2:       #4b3d72;
  --clr-text3:       #7c6eab;
  --clr-text-inv:    #FFFFFF;

  /* --- بوردر --- */
  --clr-border:      #ddd8f5;
  --clr-border2:     #c4b5fd;

  /* --- سایه --- */
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md:  0 4px 12px rgba(0,0,0,0.1),  0 2px 4px rgba(0,0,0,0.06);
  --shadow-lg:  0 8px 24px rgba(0,0,0,0.12), 0 4px 8px rgba(0,0,0,0.06);

  /* --- شعاع گوشه --- */
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-xl: 16px;

  /* --- فونت --- */
  --font: 'Vazirmatn', system-ui, sans-serif;
}

/* Dark mode override — فقط token ها عوض میشن */
[data-theme="dark"] {
  --clr-bg:          #110d1f;
  --clr-bg2:         #1a1330;
  --clr-bg3:         #231840;
  --clr-surface:     #1c1530;
  --clr-surface2:    #231840;
  --clr-accent:      #a855f7;
  --clr-accent-h:    #c084fc;
  --clr-accent-light:#3b0764;
  --clr-blue:        #0a0c1a;
  --clr-blue-light:  #2e1065;
  --clr-green-light: #052e16;
  --clr-gold-light:  #1c1107;
  --clr-text:        #ede9fe;
  --clr-text2:       #c4b5fd;
  --clr-text3:       #7c6eab;
  --clr-border:      #2e1a4a;
  --clr-border2:     #5b21b6;
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.3);
  --shadow-md:  0 4px 12px rgba(0,0,0,0.4);
  --shadow-lg:  0 8px 24px rgba(0,0,0,0.5);
}

/* ===================== RESET & BASE ===================== */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--clr-bg);
  color: var(--clr-text);
  font-size: 15px;
  line-height: 1.6;
  transition: background 0.3s, color 0.3s;
}
a { text-decoration: none; color: inherit; }
button { font-family: var(--font); cursor: pointer; }
img { max-width: 100%; display: block; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* ===================== UTILITIES ===================== */
.flex        { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); }

/* ===================== BADGE / TAG ===================== */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 700; padding: 2px 8px;
  border-radius: var(--r-sm); white-space: nowrap;
}
.badge-red   { background: var(--clr-accent-light); color: var(--clr-accent); }
.badge-blue  { background: var(--clr-blue-light);   color: var(--clr-blue); }
.badge-green { background: var(--clr-green-light);  color: var(--clr-green); }
.badge-gold  { background: var(--clr-gold-light);   color: var(--clr-gold); }
.badge-gray  { background: var(--clr-bg3);          color: var(--clr-text3); }

.tag {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12.5px; padding: 5px 11px; border-radius: 100px;
  border: 1px solid var(--clr-border); color: var(--clr-text2);
  background: var(--clr-bg2); line-height: 1.4; transition: filter .15s;
}
.tag:hover { filter: brightness(0.96); }
/* spaced tag container */
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags + .tags { margin-top: 10px; }
/* color-coded tag types */
.tag-type      { background: var(--clr-gold-light);   color: var(--clr-gold);   border-color: transparent; font-weight: 700; }
.tag-designer  { background: var(--clr-accent-light);  color: var(--clr-accent); border-color: transparent; }
.tag-mechanism { background: var(--clr-blue-light);    color: var(--clr-blue);   border-color: transparent; }
.tag-category  { background: var(--clr-green-light);   color: var(--clr-green);  border-color: transparent; }
.tag-meta      { background: var(--clr-bg2);           color: var(--clr-text2); }

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 18px; border-radius: var(--r-md);
  font-size: 14px; font-weight: 600; border: none;
  transition: all 0.18s ease; white-space: nowrap;
}
.btn-primary {
  background: var(--clr-accent); color: var(--clr-text-inv);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--clr-accent-h); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.btn-secondary {
  background: var(--clr-surface); color: var(--clr-text2);
  border: 1px solid var(--clr-border);
}
.btn-secondary:hover { border-color: var(--clr-border2); color: var(--clr-text); background: var(--clr-bg2); }
.btn-ghost {
  background: none; color: var(--clr-text2);
  border: 1px solid transparent;
}
.btn-ghost:hover { background: var(--clr-bg3); color: var(--clr-text); }
.btn-lg { padding: 12px 28px; font-size: 15px; border-radius: var(--r-lg); }
.btn-sm { padding: 6px 12px; font-size: 12px; }

/* ===================== TOP BAR ===================== */
.topbar {
  background: #0a0c1a;
  color: rgba(255,255,255,.6);
  font-size: 12px;
  padding: 6px 0;
  text-align: center;
  letter-spacing: 0.3px;
  border-bottom: 1px solid rgba(124,58,237,.2);
}
.topbar a { color: #a78bfa; }

/* ===================== NAVBAR ===================== */
.navbar {
  position: sticky; top: 0; z-index: 200;
  background: #0f1629;
  border-bottom: 1px solid rgba(124,58,237,.22);
}
.navbar-inner {
  display: flex; align-items: center; gap: 0;
  height: 60px;
}
.logo {
  display: flex; align-items: center; gap: 9px;
  font-weight: 900; font-size: 20px;
  color: #fff;
  padding-left: 20px;
  border-left: 1px solid rgba(255,255,255,.08);
  height: 100%;
  white-space: nowrap;
}
.logo span { color: #a78bfa; }
.logo-icon {
  width: 34px; height: 34px;
  background: linear-gradient(135deg,#7c3aed,#a855f7);
  color: #fff;
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 17px;
}
.nav-links {
  display: flex; align-items: center; gap: 0;
  margin-right: 8px; height: 100%;
}
.nav-link {
  display: flex; align-items: center; gap: 5px;
  padding: 0 14px; height: 100%;
  font-size: 14px; font-weight: 500;
  color: rgba(255,255,255,.5);
  border-bottom: 2px solid transparent;
  transition: all 0.15s;
  position: relative;
}
.nav-link:hover { color: rgba(255,255,255,.85); }
.nav-link.active { border-bottom-color: #7c3aed; color: #c4b5fd; font-weight: 700; }
.nav-link i { font-size: 15px; }

/* nav-bar زیر هدر — موبایل */
.nav-subbar {
  display: none;
  background: #0f1629;
  border-bottom: 1px solid rgba(124,58,237,.18);
  overflow-x: auto;
  scrollbar-width: none;
}
.nav-subbar::-webkit-scrollbar { display: none; }
.nav-subbar-inner {
  display: flex; align-items: center;
  height: 44px; gap: 0;
  padding: 0 4px;
  min-width: max-content;
}
.nav-subbar a {
  display: flex; align-items: center; gap: 5px;
  padding: 0 14px; height: 100%;
  font-size: 13px; font-weight: 500;
  color: rgba(255,255,255,.45);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: all .15s;
}
.nav-subbar a.active { color: #c4b5fd; border-bottom-color: #7c3aed; }
.nav-subbar a i { font-size: 15px; }

.nav-right { display: flex; align-items: center; gap: 8px; margin-right: auto; }

.search-wrap { position: relative; }
.search-input {
  width: 280px; height: 36px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(124,58,237,.3);
  border-radius: 20px;
  padding: 0 36px 0 14px;
  font-family: var(--font); font-size: 13px;
  color: #e2d9f3;
  transition: all 0.2s;
  outline: none;
}
.search-input:focus {
  border-color: #7c3aed;
  background: rgba(124,58,237,.12);
  width: 320px;
}
.search-input::placeholder { color: rgba(255,255,255,.3); }
.search-icon {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  color: rgba(255,255,255,.35); font-size: 15px; pointer-events: none;
}

.nav-icon-btn {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.07);
  color: rgba(255,255,255,.65);
  font-size: 16px; transition: all 0.15s;
  position: relative;
}
.nav-icon-btn:hover { border-color: rgba(124,58,237,.5); color: #c4b5fd; background: rgba(124,58,237,.15); }
.cart-count {
  position: absolute; top: -4px; right: -4px;
  width: 16px; height: 16px; background: #ef4444;
  color: #fff; border-radius: 50%; font-size: 9px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
/* آواتار کاربر در هدر */
.nav-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg,#7c3aed,#a855f7);
  color: #fff; font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid rgba(167,139,250,.4);
  cursor: pointer; transition: border-color .15s;
  overflow: hidden; flex-shrink: 0;
}
.nav-avatar:hover { border-color: #a78bfa; }
.nav-avatar img { width:100%; height:100%; object-fit:cover; }
.theme-toggle {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.07);
  color: rgba(255,255,255,.65);
  font-size: 16px; display: flex; align-items: center; justify-content: center;
  transition: all 0.15s; cursor: pointer;
}
.theme-toggle:hover { color: #c4b5fd; background: rgba(124,58,237,.15); border-color: rgba(124,58,237,.4); }

/* ===================== HERO BLOCK (home slider + side) ===================== */
.hero-block {
  background: linear-gradient(160deg,#0f1629 0%,#1a0a3d 50%,#0f1629 100%);
  padding: 16px 24px 16px;
  position: relative;
  display: grid; grid-template-columns: 1fr 260px; gap: 16px; align-items: stretch;
  max-width: 1280px; margin: 0 auto;
}
.hero-block::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 60% 40%,rgba(124,58,237,.18) 0%,transparent 65%),
              radial-gradient(ellipse at 20% 80%,rgba(168,85,247,.08) 0%,transparent 50%);
  pointer-events: none;
}
@media (max-width:860px) {
  .hero-block { grid-template-columns: 1fr; padding: 16px; }
  .hero-side { flex-direction: row; }
}
@media (max-width:560px) { .hero-side { flex-direction: column; } }
.slider { border-radius: 14px; overflow: hidden; position: relative; }
.slider-track { display: flex; direction: ltr; transition: transform .4s cubic-bezier(.4,0,.2,1); }
.slide {
  flex-shrink: 0; width: 100%;
  min-height: 280px;
  background: linear-gradient(135deg,#1a2a4a,#2d1b69);
  background-size: cover; background-position: center;
  display: flex; align-items: flex-end;
  position: relative; overflow: hidden;
}
.slide::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.75) 0%, rgba(0,0,0,.2) 50%, transparent 100%);
}
.slide { direction: rtl; }
.slide-body {
  position: relative; z-index: 1;
  padding: 24px 20px; width: 100%;
}
.slide-title {
  font-size: 20px; font-weight: 900; color: #fff;
  margin-bottom: 6px; line-height: 1.3;
}
.slide-sub { font-size: 13px; color: rgba(255,255,255,.75); margin-bottom: 14px; }
.slide-cta {
  display: inline-flex; align-items: center; gap: 6px;
  background: linear-gradient(135deg,#7c3aed,#a855f7);
  color: #fff; border-radius: 22px;
  padding: 8px 18px; font-size: 13px; font-weight: 700;
}
.slider-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(0,0,0,.45); border: 1px solid rgba(255,255,255,.2);
  color: #fff; font-size: 18px; cursor: pointer; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.slider-arrow:hover { background: rgba(124,58,237,.6); border-color: rgba(124,58,237,.5); }
.slider-arrow.prev { right: 12px; }
.slider-arrow.next { left: 12px; }
.slider-dots {
  position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px; z-index: 2;
}
.slider-dots .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,.4); cursor: pointer; transition: all .2s;
}
.slider-dots .dot.active { background: #a78bfa; width: 18px; border-radius: 3px; }

/* side promo banners */
.hero-side { display: flex; flex-direction: column; gap: 12px; }
.promo {
  border-radius: 12px; padding: 18px 16px;
  display: flex; flex-direction: column; gap: 6px;
  position: relative; overflow: hidden; cursor: pointer;
  transition: transform .15s;
}
.promo:hover { transform: translateY(-2px); }
.promo.accent { background: linear-gradient(135deg,#7c3aed,#5b21b6); }
.promo.blue   { background: rgba(255,255,255,.06); border: 1px solid rgba(124,58,237,.3); }
.promo-ico {
  font-size: 28px; color: rgba(255,255,255,.7);
  margin-bottom: 4px;
}
.promo h3 { font-size: 15px; font-weight: 800; color: #fff; }
.promo p  { font-size: 12px; color: rgba(255,255,255,.6); }
.promo-cta {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 700; color: #c4b5fd;
  margin-top: 4px;
}

/* stats bar زیر hero */
.hero-stats-bar {
  background: #0a0c1a;
  border-top: 1px solid rgba(124,58,237,.15);
  border-bottom: 1px solid rgba(124,58,237,.1);
  padding: 12px 0;
}
.hero-stats-bar .container { display: flex; justify-content: space-around; }
.hstat { text-align: center; }
.hstat-n { font-size: 17px; font-weight: 900; color: #a78bfa; }
.hstat-l { font-size: 10px; color: rgba(255,255,255,.35); margin-top: 1px; }

/* featured game hero (mid) */
.hero--mid {
  background: linear-gradient(135deg,#0f1629 0%,#1a0a3d 100%);
  color: #fff; padding: 40px 0;
}
.hero-inner {
  display: grid; grid-template-columns: 1fr 320px;
  gap: 40px; align-items: center;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(124,58,237,.2); border: 1px solid rgba(124,58,237,.35);
  border-radius: 100px; padding: 5px 14px; font-size: 12px;
  margin-bottom: 14px; color: #a78bfa;
}
.hero h1, .hero--mid h1 {
  font-size: 36px; font-weight: 900;
  line-height: 1.2; margin-bottom: 14px; color: #fff;
}
.hero h1 span, .hero--mid h1 span { color: #c4b5fd; }
.hero-desc { font-size: 15px; color: rgba(255,255,255,.75); line-height: 1.7; margin-bottom: 24px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }
.btn-hero-primary {
  background: linear-gradient(135deg,#7c3aed,#a855f7);
  color: #fff; font-weight: 700;
}
.btn-hero-primary:hover { opacity:.9; transform: translateY(-1px); }
.btn-hero-secondary {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
}
.btn-hero-secondary:hover { background: rgba(255,255,255,.14); }
.hero-stats { display: flex; gap: 28px; }
.hero-stat-num { font-size: 24px; font-weight: 900; color: #a78bfa; }
.hero-stat-label { font-size: 12px; color: rgba(255,255,255,.5); margin-top: 2px; }

/* Hero featured card */
.hero-featured {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(124,58,237,.3);
  border-radius: var(--r-xl);
  overflow: hidden;
  backdrop-filter: blur(8px);
  color: #fff;
}
.hero-feat-img {
  width: 100%; height: 200px;
  background: linear-gradient(135deg,#2d1b69,#4c1d95);
  display: flex; align-items: center; justify-content: center;
  font-size: 72px; position: relative;
}
.hero-feat-tag {
  position: absolute; top: 12px; right: 12px;
  background: linear-gradient(135deg,#7c3aed,#a855f7); color: #fff;
  font-size: 11px; font-weight: 700;
  padding: 4px 10px; border-radius: var(--r-sm);
}
.hero-feat-body { padding: 16px 18px; }
.hero-feat-title { font-size: 17px; font-weight: 800; margin-bottom: 4px; color: #fff; }
.hero-feat-meta { font-size: 12px; color: rgba(255,255,255,.5); margin-bottom: 10px; }
.hero-feat-row { display: flex; align-items: center; justify-content: space-between; }
.rating-big { display: flex; align-items: center; gap: 6px; font-size: 20px; font-weight: 900; color: #f59e0b; }
.rating-big small { font-size: 12px; color: rgba(255,255,255,.4); font-weight: 400; }
.price-big { font-size: 18px; font-weight: 900; color: var(--clr-accent); }

/* ===================== SECTION ===================== */
.section { padding: 40px 0; }
.section + .section { border-top: 1px solid var(--clr-border); }

/* content card — هر بلوک محتوا داخل یک کارت */
.card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-xl);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}
.card > .section-head:first-child,
.card > h2:first-child,
.card > .section-title:first-child { margin-top: 0; }

.section-head {
  display: flex; align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.section-title {
  font-size: 19px; font-weight: 800;
  display: flex; align-items: center; gap: 8px;
  color: var(--clr-text);
}
.section-title i { color: var(--clr-accent); font-size: 18px; }
.section-title-line {
  width: 3px; height: 20px; background: var(--clr-accent);
  border-radius: 2px; flex-shrink: 0;
}
.see-all-btn {
  font-size: 13px; color: var(--clr-blue); font-weight: 600;
  display: flex; align-items: center; gap: 4px;
  background: none; border: none; padding: 6px 0;
  transition: gap 0.15s;
}
.see-all-btn:hover { gap: 8px; color: var(--clr-accent); }

/* ===================== FILTER CHIPS ===================== */
.filter-row { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 20px; }
.chip {
  padding: 6px 14px; border-radius: 100px;
  font-size: 13px; font-weight: 600;
  border: 1px solid var(--clr-border);
  background: var(--clr-surface);
  color: var(--clr-text2);
  transition: all 0.15s; cursor: pointer;
}
.chip:hover { border-color: var(--clr-border2); color: var(--clr-text); }
.chip.active { background: var(--clr-accent); border-color: var(--clr-accent); color: #fff; }

/* ===================== RANKING TABLE ===================== */
.rank-table { background: var(--clr-surface); border: 1px solid var(--clr-border); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.rank-header {
  display: grid;
  grid-template-columns: 52px 60px 1fr 160px 80px 60px;
  gap: 8px; padding: 10px 16px;
  background: var(--clr-bg2);
  border-bottom: 1px solid var(--clr-border);
  font-size: 11px; font-weight: 700;
  color: var(--clr-text3); text-transform: uppercase; letter-spacing: 0.5px;
}
.rank-row {
  display: grid;
  grid-template-columns: 52px 60px 1fr 160px 80px 60px;
  gap: 8px; padding: 12px 16px;
  align-items: center;
  border-bottom: 1px solid var(--clr-border);
  transition: background 0.15s; cursor: pointer;
}
.rank-row:last-child { border-bottom: none; }
.rank-row:hover { background: var(--clr-bg2); }
.rank-num {
  font-size: 20px; font-weight: 900; text-align: center; color: var(--clr-text3);
}
.rank-num.r1 { color: #B8860B; }
.rank-num.r2 { color: #808080; }
.rank-num.r3 { color: #8B4513; }
.rank-thumb {
  width: 52px; height: 52px; border-radius: var(--r-md);
  background: var(--clr-bg3);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; overflow: hidden; flex-shrink: 0;
}
.rank-info {}
.rank-name { font-size: 15px; font-weight: 700; margin-bottom: 2px; }
.rank-name:hover { color: var(--clr-accent); }
.rank-sub { font-size: 12px; color: var(--clr-text3); }
.rank-genre { display: flex; gap: 4px; flex-wrap: wrap; }
.rank-score { text-align: center; }
.rank-score-num { font-size: 22px; font-weight: 900; color: var(--clr-accent); }
.rank-score-count { font-size: 11px; color: var(--clr-text3); }
.rank-trend { text-align: center; font-size: 18px; }
.trend-up   { color: var(--clr-green); }
.trend-dn   { color: var(--clr-accent); }
.trend-same { color: var(--clr-text3); }

/* ===================== GAME CARDS ===================== */
.games-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(188px, 1fr)); gap: 16px; }

.game-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-lg);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  box-shadow: var(--shadow-sm);
}
.game-card:hover {
  border-color: var(--clr-border2);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.game-card-img {
  width: 100%; aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, var(--clr-bg2) 0%, var(--clr-bg3) 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 52px;
  position: relative; overflow: hidden;
}
.game-card-badge {
  position: absolute; top: 8px; right: 8px;
  font-size: 10px; font-weight: 700;
  padding: 3px 8px; border-radius: var(--r-sm);
}
.badge-new-card  { background: var(--clr-green);  color: #fff; }
.badge-hot-card  { background: var(--clr-accent);  color: #fff; }
.badge-sale-card { background: var(--clr-gold);    color: #fff; }

.game-rank-badge {
  position: absolute; top: 8px; left: 8px;
  width: 28px; height: 28px;
  background: rgba(0,0,0,0.6);
  color: #fff; border-radius: 50%;
  font-size: 11px; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
}

.game-card-body { padding: 12px 13px 13px; }
.game-card-title { font-size: 14px; font-weight: 700; margin-bottom: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.game-card-sub { font-size: 11px; color: var(--clr-text3); margin-bottom: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.game-card-tags { display: flex; gap: 3px; flex-wrap: wrap; margin-bottom: 8px; }

.game-card-footer { display: flex; align-items: center; justify-content: space-between; }
.rating-sm { display: flex; align-items: center; gap: 3px; font-size: 13px; font-weight: 700; color: var(--clr-gold); }
.rating-sm i { font-size: 12px; }
.price-wrap { text-align: left; }
.price-main { font-size: 15px; font-weight: 800; color: var(--clr-accent); }
.price-old { font-size: 11px; color: var(--clr-text3); text-decoration: line-through; }

.add-to-cart {
  position: absolute; bottom: 10px; left: 10px;
  width: 32px; height: 32px;
  background: var(--clr-accent); color: #fff;
  border-radius: var(--r-md); border: none;
  font-size: 18px; display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: translateY(4px);
  transition: all 0.18s;
}
.game-card:hover .add-to-cart { opacity: 1; transform: translateY(0); }

/* ===================== DETAIL ITEMS (Designers/Publishers/Mechanisms) ===================== */
.detail-tabs { display: flex; gap: 0; border-bottom: 2px solid var(--clr-border); margin-bottom: 20px; }
.detail-tab {
  padding: 10px 20px; font-size: 14px; font-weight: 600;
  color: var(--clr-text2); border: none; background: none;
  border-bottom: 2px solid transparent; margin-bottom: -2px;
  cursor: pointer; transition: all 0.15s;
}
.detail-tab.active { color: var(--clr-accent); border-bottom-color: var(--clr-accent); }
.detail-tab:hover:not(.active) { color: var(--clr-text); }

/* تب‌ها داخل section--tint (نیوی تیره) */
.section--tint .detail-tabs { border-bottom-color: rgba(255,255,255,.12); }
.section--tint .detail-tab { color: rgba(255,255,255,.55); }
.section--tint .detail-tab.active { color: #c4b5fd; border-bottom-color: #7c3aed; }
.section--tint .detail-tab:hover:not(.active) { color: rgba(255,255,255,.85); }

.detail-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.detail-card {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-lg);
  cursor: pointer; transition: all 0.15s;
  box-shadow: var(--shadow-sm);
}
.detail-card:hover { border-color: var(--clr-accent); box-shadow: var(--shadow-md); transform: translateX(-2px); }
.detail-card-icon {
  width: 44px; height: 44px; border-radius: var(--r-md);
  background: var(--clr-bg2);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; flex-shrink: 0;
}
.detail-card-info { min-width: 0; flex: 1; }
.detail-card-name { font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.detail-card-sub { font-size: 11px; color: var(--clr-text3); margin-top: 2px; }
.detail-card-arrow { color: var(--clr-text3); font-size: 14px; flex-shrink: 0; }

/* کارت‌ها داخل section--tint */
.section--tint .detail-card {
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.1);
  color: #fff;
}
.section--tint .detail-card:hover {
  background: rgba(124,58,237,.25);
  border-color: rgba(124,58,237,.5);
}
.section--tint .detail-card-icon { background: rgba(255,255,255,.08); }
.section--tint .detail-card-sub { color: rgba(255,255,255,.45); }
.section--tint .detail-card-arrow { color: rgba(255,255,255,.3); }

/* ===================== SELLER CARDS ===================== */
.sellers-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.seller-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-lg); padding: 18px;
  cursor: pointer; transition: all 0.2s;
  box-shadow: var(--shadow-sm);
}
.seller-card:hover { border-color: var(--clr-border2); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.seller-header { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.seller-avatar {
  width: 48px; height: 48px; border-radius: var(--r-lg);
  background: var(--clr-blue-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; flex-shrink: 0;
  border: 2px solid var(--clr-border);
}
.seller-name { font-size: 16px; font-weight: 800; }
.seller-verified { display: flex; align-items: center; gap: 4px; font-size: 11px; color: var(--clr-green); margin-top: 2px; }
.seller-stats { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; margin-bottom: 12px; }
.s-stat { text-align: center; background: var(--clr-bg2); border-radius: var(--r-md); padding: 8px 4px; }
.s-stat-num { font-size: 17px; font-weight: 900; color: var(--clr-blue); }
.s-stat-label { font-size: 10px; color: var(--clr-text3); }
.seller-tags { display: flex; gap: 4px; flex-wrap: wrap; }

/* ===================== CATEGORY GRID ===================== */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.cat-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-lg); padding: 18px 12px;
  text-align: center; cursor: pointer;
  transition: all 0.2s; box-shadow: var(--shadow-sm);
}
.cat-card:hover { border-color: var(--clr-accent); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.cat-icon-wrap {
  width: 52px; height: 52px; border-radius: var(--r-lg);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; margin: 0 auto 10px; overflow: hidden;
}
.cat-icon-wrap--img { background: none; padding: 0; }
.cat-img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--r-lg); display: block; }
.cat-name { font-size: 13px; font-weight: 700; margin-bottom: 3px; }
.cat-count { font-size: 11px; color: var(--clr-text3); }

/* ===================== ONLINE BANNER ===================== */
.online-banner {
  background: linear-gradient(135deg, var(--clr-blue) 0%, #2D3A8C 100%);
  border-radius: var(--r-xl); padding: 36px 40px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; color: #fff; position: relative; overflow: hidden;
}
.online-banner::before {
  content: '🎮';
  position: absolute; left: -20px; top: 50%; transform: translateY(-50%);
  font-size: 160px; opacity: 0.06; pointer-events: none;
}
.online-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 100px; padding: 4px 12px; font-size: 12px;
  color: #9FC4F8; margin-bottom: 12px;
}
.pulse-dot { width: 7px; height: 7px; background: #4CE8A8; border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.5;transform:scale(1.4)} }
.online-title { font-size: 26px; font-weight: 900; margin-bottom: 8px; }
.online-desc { font-size: 15px; opacity: 0.8; max-width: 500px; line-height: 1.6; }
.btn-online {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.35);
  color: #fff; font-size: 14px; font-weight: 700;
  padding: 12px 24px; border-radius: var(--r-lg);
  white-space: nowrap; flex-shrink: 0;
  transition: all 0.2s;
}
.btn-online:hover { background: rgba(255,255,255,0.25); }

/* ===================== FOOTER ===================== */
.footer {
  background: linear-gradient(180deg,#0f1629 0%,#07091a 100%);
  color: rgba(255,255,255,.8);
  padding: 48px 0 0; margin-top: 56px;
  border-top: 1px solid rgba(124,58,237,.2);
}
.footer-badge {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(124,58,237,.15); border: 1px solid rgba(124,58,237,.3);
  border-radius: 20px; padding: 4px 12px;
  font-size: 11px; color: #a78bfa; margin-bottom: 18px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
@media(max-width:640px){.footer-grid{grid-template-columns:1fr 1fr;gap:24px}.footer-brand{grid-column:1/-1}.footer-bottom{flex-direction:column;gap:8px;text-align:center}}
.footer-logo { font-size: 20px; font-weight: 900; color: #fff; display: flex; align-items: center; gap: 9px; margin-bottom: 10px; }
.footer-logo .logo-icon { background: linear-gradient(135deg,#7c3aed,#a855f7); }
.footer-logo span { color: #a78bfa; }
.footer-desc { font-size: 13px; line-height: 1.75; color: rgba(255,255,255,.4); margin-bottom: 16px; }
.footer-socials { display: flex; gap: 8px; }
.footer-social {
  width: 30px; height: 30px; border-radius: 8px;
  border: 1px solid rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.4); font-size: 15px;
  transition: all .15s; cursor: pointer;
}
.footer-social:hover { border-color: rgba(124,58,237,.5); color: #c4b5fd; background: rgba(124,58,237,.15); }
.footer-col h5 { font-size: 11px; font-weight: 700; color: #7c3aed; margin-bottom: 14px; letter-spacing: .8px; text-transform: uppercase; }
.footer-col a { display: block; font-size: 13px; color: rgba(255,255,255,.45); padding: 4px 0; transition: color 0.15s; }
.footer-col a:hover { color: #c4b5fd; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.07);
  padding: 16px 0; display: flex;
  justify-content: space-between; align-items: center;
  font-size: 12px; color: rgba(255,255,255,.3);
}

/* ============================================================
   SUPPLEMENT — mobile-first responsive, profile/social,
   autocomplete, forms, shelf. (added for the Django app)
   ============================================================ */

/* --- generic helpers --- */
.avatar-img,.thumb-img{object-fit:cover;display:block}
.muted{color:var(--clr-text3);font-size:.85rem}
.stack>*+*{margin-top:14px}
.flex-wrap{display:flex;flex-wrap:wrap;gap:10px}
.grow{flex:1}
.section.tight{padding:18px}
.divider{height:1px;background:var(--clr-border);margin:16px 0}

/* --- mobile nav --- */
.nav-toggle{display:none;background:none;border:0;font-size:22px;color:rgba(255,255,255,.7);padding:4px 6px}
.nav-mobile-head,.nav-mobile-actions{display:none}
.nav-close{display:none;background:none;border:0;font-size:24px;color:rgba(255,255,255,.7);cursor:pointer}
@media (max-width:920px){
  .nav-toggle{display:block}
  .nav-links{position:fixed;top:0;bottom:0;right:0;height:100dvh;width:84%;max-width:320px;
    flex-direction:column;align-items:stretch;justify-content:flex-start;gap:0;margin:0;
    background:#0f1629;border-left:1px solid rgba(124,58,237,.25);padding:0;
    transform:translateX(100%);transition:transform .25s;z-index:300;overflow-y:auto}
  body[data-menu="open"] .nav-links{transform:translateX(0)}
  body[data-menu="open"]{overflow:hidden}
  body[data-menu="open"]::after{content:"";position:fixed;inset:0;background:rgba(0,0,0,.6);z-index:299}
  .nav-mobile-head{display:flex;align-items:center;justify-content:space-between;
    padding:14px 16px;border-bottom:1px solid rgba(124,58,237,.2)}
  .nav-close{display:block}
  .nav-link{height:auto!important;padding:14px 18px;justify-content:flex-start;
    border-bottom:1px solid rgba(255,255,255,.06);font-size:.95rem;color:rgba(255,255,255,.6)}
  .nav-link:hover{color:#c4b5fd;background:rgba(124,58,237,.08)}
  .nav-link.active{border-bottom-color:rgba(255,255,255,.06);background:rgba(124,58,237,.12);color:#c4b5fd}
  .nav-mobile-actions{display:flex;flex-direction:column;gap:10px;padding:18px}
  .nav-mobile-actions .btn{width:100%;justify-content:center}
  .nav-right .search-wrap{display:none}
  .nav-subbar{display:block}
}
@media (max-width:1100px){ .nav-right .search-wrap{width:160px} }

/* --- responsive layout --- */
@media (max-width:900px){
  .hero-inner{grid-template-columns:1fr}
  .hero-featured{max-width:420px}
  .rank-header,.rank-row{grid-template-columns:34px 50px 1fr auto}
  .rank-genre,.rank-trend{display:none}
}
@media (max-width:640px){
  .container{padding:0 16px}
  .games-grid{grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:14px}
  .cat-grid{grid-template-columns:repeat(2,1fr)!important}
  .sellers-grid{grid-template-columns:1fr!important}
  .hero h1{font-size:1.7rem}
  .online-banner{flex-direction:column;text-align:center;gap:16px}
  .nav-right .btn-ghost{display:none}
  h1{font-size:1.5rem}
}

/* --- search autocomplete --- */
.ac-wrap{position:relative}
.ac-list{position:absolute;top:calc(100% + 4px);inset-inline:0;background:var(--clr-surface);
  border:1px solid var(--clr-border);border-radius:var(--r-md);box-shadow:var(--shadow-md);
  z-index:40;max-height:280px;overflow:auto;display:none}
.ac-list.show{display:block}
.ac-item{padding:9px 14px;cursor:pointer;display:flex;align-items:center;gap:10px}
.ac-item:hover,.ac-item.active{background:var(--clr-bg2)}
.ac-cover{width:36px;height:36px;border-radius:6px;object-fit:cover;flex-shrink:0}
.ac-title{flex:1;font-weight:500}
.ac-meta{color:var(--clr-text3);font-size:.8rem;margin-inline-start:auto}

/* --- forms --- */
.field{display:flex;flex-direction:column;gap:6px;margin-bottom:14px}
.field label{font-weight:500;font-size:.9rem}
.input,select.input{width:100%;background:var(--clr-surface);border:1px solid var(--clr-border);
  color:var(--clr-text);border-radius:var(--r-md);padding:11px 14px;font-family:var(--font);font-size:.95rem}
.input:focus{outline:none;border-color:var(--clr-accent);box-shadow:0 0 0 3px var(--clr-accent-light)}
.form-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:14px}
.auth-card{max-width:420px;margin:50px auto}

/* --- profile / social (workwise-inspired) --- */
/* ===================== PROFILE HERO ===================== */
.prof-hero { position: relative; margin-bottom: 0; }
.prof-hero__cover {
  height: 240px; overflow: hidden; position: relative;
  background: linear-gradient(135deg, #0f1629 0%, #1a0a3d 50%, #4c1d95 100%);
}
.prof-hero__cover img { width: 100%; height: 100%; object-fit: cover; }
.prof-hero__cover-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(15,22,41,.3) 0%, rgba(15,22,41,.75) 100%);
}
.prof-hero__inner {
  display: flex; gap: 24px; align-items: flex-end;
  margin-top: -60px; padding-bottom: 20px;
  position: relative; z-index: 2;
}
.prof-avatar-wrap { position: relative; flex-shrink: 0; }
.prof-avatar {
  width: 120px; height: 120px; border-radius: 50%;
  border: 4px solid var(--clr-bg);
  object-fit: cover; background: var(--clr-bg2);
  box-shadow: 0 8px 24px rgba(0,0,0,.3);
  display: block;
}
.prof-level {
  position: absolute; bottom: 2px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg,#7c3aed,#a855f7);
  color: #fff; font-size: 11px; font-weight: 700;
  padding: 2px 10px; border-radius: 100px;
  white-space: nowrap; box-shadow: 0 2px 8px rgba(124,58,237,.4);
}
.prof-info { flex: 1; padding-bottom: 4px; }
.prof-name { font-size: 22px; font-weight: 900; margin: 0 0 6px; }
.prof-sub { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--clr-text3); margin-bottom: 6px; }
.prof-sub i { font-size: 12px; }
.prof-bio { font-size: 14px; color: var(--clr-text2); margin: 0; line-height: 1.6; }
.prof-actions { display: flex; gap: 8px; align-items: center; flex-shrink: 0; padding-bottom: 4px; }

/* نوار آمار زیر hero */
.prof-stats-bar {
  background: var(--clr-surface);
  border-bottom: 1px solid var(--clr-border);
  box-shadow: var(--shadow-sm);
}
.prof-stats-inner {
  display: flex; gap: 0; direction: rtl;
}
.prof-stat {
  flex: 1; text-align: center;
  padding: 14px 8px;
  border-right: 1px solid var(--clr-border);
}
.prof-stat:last-child { border-right: none; }
.prof-stat__n { display: block; font-size: 18px; font-weight: 900; color: var(--clr-accent); }
.prof-stat__l { display: block; font-size: 11px; color: var(--clr-text3); margin-top: 2px; }

/* تب‌بار پروفایل */
.prof-tabbar { margin-top: 0; }
.prof-tabbar button { display: flex; align-items: center; gap: 6px; font-size: 13px; }

/* پست‌ها */
.prof-posts { display: flex; flex-direction: column; gap: 0; }
.post-item { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--clr-border); }
.post-item .pa { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: var(--clr-bg2); flex-shrink: 0; }

/* لیست‌ها */
.prof-lists-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.prof-list-card {
  background: var(--clr-surface); border: 1px solid var(--clr-border);
  border-radius: var(--r-xl); overflow: hidden;
}
.prof-list-head {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 16px; font-weight: 700; font-size: 14px;
  background: var(--clr-bg2); border-bottom: 1px solid var(--clr-border);
}
.prof-list-body { padding: 8px 0; }
.prof-list-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 16px; font-size: 13px;
  transition: background .12s;
}
.prof-list-item:hover { background: var(--clr-bg2); }
.prof-list-rank {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--clr-accent-light); color: var(--clr-accent);
  font-size: 11px; font-weight: 800;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.prof-list-name { flex: 1; font-weight: 600; color: var(--clr-text); }
.prof-list-price { font-size: 12px; color: var(--clr-accent); font-weight: 700; }

/* نظرات */
.prof-reviews { display: flex; flex-direction: column; gap: 12px; }
.prof-review-card {
  background: var(--clr-surface); border: 1px solid var(--clr-border);
  border-radius: var(--r-lg); padding: 16px 18px;
}
.prof-review-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 8px;
}
.prof-review-game { font-weight: 700; font-size: 14px; color: var(--clr-accent); display: flex; align-items: center; gap: 6px; }
.prof-review-score {
  background: var(--clr-bg2); border-radius: 100px;
  padding: 3px 10px; font-size: 12px; font-weight: 700;
  display: flex; align-items: center; gap: 4px;
}
.prof-review-text { font-size: 14px; color: var(--clr-text2); line-height: 1.7; margin: 0; }

/* empty state */
.empty-state { text-align: center; padding: 48px 24px; color: var(--clr-text3); }
.empty-state p { margin: 12px 0 16px; }

/* سایر */
.tabbar { display: flex; gap: 6px; border-bottom: 1px solid var(--clr-border); margin: 18px 0; overflow: auto; }
.tabbar button { background: none; border: 0; padding: 12px 16px; color: var(--clr-text2); font-weight: 500; border-bottom: 2px solid transparent; white-space: nowrap; cursor: pointer; }
.tabbar button.active { color: var(--clr-accent); border-bottom-color: var(--clr-accent); }
.tabpane { display: none; } .tabpane.active { display: block; }
.shelf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; }
.shelf-grid img, .shelf-ph { aspect-ratio: 1/1; border-radius: var(--r-md); object-fit: cover; background: var(--clr-bg2); display: flex; align-items: center; justify-content: center; font-size: 30px; color: var(--clr-text3); }
.level-pill { background: var(--clr-accent-light); color: var(--clr-accent); border-radius: 999px; padding: 3px 12px; font-size: .8rem; font-weight: 600; }

@media (max-width: 720px) {
  .prof-hero__cover { height: 160px; }
  .prof-hero__inner { flex-wrap: wrap; gap: 14px; margin-top: -40px; }
  .prof-avatar { width: 88px; height: 88px; }
  .prof-stats-inner { flex-wrap: wrap; }
  .prof-stat { flex: 1 0 30%; }
  .prof-lists-grid { grid-template-columns: 1fr; }
}

/* --- entity header (designer/publisher) --- */
.entity-head{display:flex;gap:18px;align-items:center}
.entity-avatar{width:96px;height:96px;border-radius:var(--r-lg);object-fit:cover;background:var(--clr-bg2)}

/* ============================================================
   USER PANEL — clean RTL dashboard
   ============================================================ */
/* ── Panel layout ── */
.panel-wrap{display:grid;grid-template-columns:260px 1fr;gap:24px;align-items:start;
  max-width:1280px;margin:0 auto;padding:28px 20px}

/* ── Sidebar ── */
.panel-side{
  border-radius:var(--r-xl);position:sticky;top:84px;
  overflow:hidden;
  box-shadow:var(--shadow-md);
  border:1px solid var(--clr-border);
}
.panel-side-header{
  background:linear-gradient(135deg,var(--clr-accent) 0%,#a03820 100%);
  padding:20px 16px 16px;
}
.panel-user{display:flex;gap:12px;align-items:center}
.panel-user img{
  width:52px;height:52px;border-radius:50%;object-fit:cover;
  border:2px solid rgba(255,255,255,.35);background:rgba(255,255,255,.15);flex-shrink:0
}
.panel-user-info b{color:#fff;font-size:.95rem;display:block}
.panel-user-info .level-tag{
  display:inline-block;margin-top:3px;
  background:rgba(255,255,255,.2);color:rgba(255,255,255,.9);
  border-radius:999px;padding:1px 9px;font-size:.72rem;font-weight:600
}
.panel-user-profile{
  display:flex;align-items:center;gap:5px;margin-top:6px;
  font-size:.75rem;color:rgba(255,255,255,.7);text-decoration:none;
}
.panel-user-profile:hover{color:#fff}
.panel-side-body{background:var(--clr-surface);padding:10px 10px 14px}
.panel-nav a{
  display:flex;align-items:center;gap:10px;padding:10px 12px;
  border-radius:var(--r-md);color:var(--clr-text2);font-weight:500;font-size:.9rem;
  transition:.15s;position:relative
}
.panel-nav a:hover{background:var(--clr-bg2);color:var(--clr-text)}
.panel-nav a.active{
  background:var(--clr-accent-light);color:var(--clr-accent);font-weight:600
}
.panel-nav a i{font-size:18px;flex-shrink:0}
.panel-nav-sep{height:1px;background:var(--clr-border);margin:6px 12px}

/* dark mode sidebar */
[data-theme="dark"] .panel-side-body{background:#242319}
[data-theme="dark"] .panel-side{border-color:#3a3928}
[data-theme="dark"] .panel-nav a:hover{background:#2e2c23}
[data-theme="dark"] .panel-nav a.active{background:rgba(196,75,43,.18);color:#e0896a}

/* ── Main area ── */
.panel-main{min-width:0}
[data-theme="dark"] .panel-card{background:#1f1e17;border-color:#323021}
[data-theme="dark"] .kpi{background:#1f1e17;border-color:#323021}

/* notification chips */
.notif-dot{position:absolute;top:2px;right:2px;width:8px;height:8px;border-radius:50%;background:#ef4444;border:2px solid var(--clr-surface)}
.notif-badge{
  display:inline-flex;align-items:center;justify-content:center;
  background:#ef4444;color:#fff;font-size:.65rem;font-weight:700;
  min-width:18px;height:18px;padding:0 5px;border-radius:999px;margin-right:auto
}

/* ── KPI cards ── */
.kpi-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:14px;margin-bottom:20px}
.kpi{
  background:var(--clr-surface);border:1px solid var(--clr-border);
  border-radius:var(--r-lg);padding:18px 16px;box-shadow:var(--shadow-sm);
  display:flex;flex-direction:column;gap:4px
}
.kpi .ic{
  width:40px;height:40px;border-radius:10px;
  display:flex;align-items:center;justify-content:center;
  font-size:20px;margin-bottom:8px
}
.kpi b{font-size:1.7rem;font-weight:800;line-height:1;letter-spacing:-.02em}
.kpi span{color:var(--clr-text3);font-size:.8rem;margin-top:2px}

/* ── XP card ── */
.xp-card{
  background:linear-gradient(120deg,#1E4D8C,var(--clr-accent));color:#fff;
  border-radius:var(--r-xl);padding:20px 24px;box-shadow:var(--shadow-md);margin-bottom:20px
}
.xp-bar{height:8px;background:rgba(255,255,255,.25);border-radius:999px;overflow:hidden;margin-top:10px}
.xp-bar>i{display:block;height:100%;background:#fff;border-radius:999px;transition:width .6s ease}

/* ── Panel cards ── */
.panel-card{
  background:var(--clr-surface);border:1px solid var(--clr-border);
  border-radius:var(--r-xl);padding:22px;box-shadow:var(--shadow-sm);margin-bottom:20px
}
.panel-card h3{font-size:1rem;font-weight:700;margin:0 0 16px;display:flex;align-items:center;gap:8px}

/* ── Badge grid ── */
.badge-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(110px,1fr));gap:10px}
.badge-card{
  background:var(--clr-bg2);border:1px solid var(--clr-border);border-radius:var(--r-lg);
  padding:14px 10px;text-align:center;opacity:.4;filter:grayscale(1);
  transition:.2s;cursor:default
}
.badge-card.on{opacity:1;filter:none;background:var(--clr-surface);border-color:var(--clr-gold)}
.badge-card .bi{
  width:44px;height:44px;border-radius:50%;
  background:var(--clr-gold-light);color:var(--clr-gold);
  display:flex;align-items:center;justify-content:center;font-size:22px;margin:0 auto 8px
}
.badge-card.on .bi{background:var(--clr-gold);color:#fff}

/* ── Ticket statuses ── */
.panel-mobile-nav{display:none}
.status-pill{padding:3px 11px;border-radius:999px;font-size:.78rem;font-weight:600}
.status-open{background:var(--clr-blue-light);color:var(--clr-blue)}
.status-pending{background:var(--clr-gold-light);color:var(--clr-gold)}
.status-answered{background:var(--clr-green-light);color:var(--clr-green)}
.status-closed{background:var(--clr-bg3);color:var(--clr-text3)}
.chat-msg{padding:12px 14px;border-radius:var(--r-lg);margin-bottom:10px;max-width:80%}
.chat-mine{background:var(--clr-accent-light);margin-inline-start:auto}
.chat-staff{background:var(--clr-blue-light)}

/* ── Bottom nav (mobile app bar) ── */
.panel-bottom-nav{
  display:none;
  position:fixed;bottom:0;right:0;left:0;z-index:200;
  background:var(--clr-surface);
  border-top:1px solid var(--clr-border);
  padding:6px 0 max(10px, env(safe-area-inset-bottom));
  box-shadow:0 -2px 16px rgba(0,0,0,.08)
}
.panel-bottom-nav__inner{
  display:flex;justify-content:space-around;align-items:center;max-width:540px;margin:0 auto
}
.pbn-btn{
  display:flex;flex-direction:column;align-items:center;gap:2px;
  color:var(--clr-text3);border:none;background:none;
  font-family:var(--font);font-size:.6rem;font-weight:500;
  padding:4px 12px;border-radius:12px;cursor:pointer;
  transition:color .18s;position:relative;text-decoration:none;letter-spacing:.2px
}
.pbn-btn i{font-size:22px;display:block;line-height:1}
.pbn-btn.active{color:var(--clr-accent)}
.pbn-btn .pbn-pill{
  position:absolute;inset:0;border-radius:12px;
  background:var(--clr-accent-light);opacity:0;transition:opacity .18s
}
.pbn-btn.active .pbn-pill{opacity:1}
.pbn-badge{
  position:absolute;top:2px;right:8px;
  background:#ef4444;color:#fff;font-size:.55rem;font-weight:700;
  min-width:15px;height:15px;padding:0 3px;border-radius:999px;
  display:flex;align-items:center;justify-content:center;
  border:2px solid var(--clr-surface)
}

/* more drawer */
.pbn-drawer{
  position:fixed;bottom:0;right:0;left:0;z-index:300;
  background:var(--clr-surface);border-radius:20px 20px 0 0;
  border-top:1px solid var(--clr-border);
  padding:0 0 max(20px, env(safe-area-inset-bottom));
  transform:translateY(100%);transition:transform .28s cubic-bezier(.32,1,.28,1);
  box-shadow:0 -8px 32px rgba(0,0,0,.15)
}
.pbn-drawer.open{transform:translateY(0)}
.pbn-drawer__handle{width:40px;height:4px;background:var(--clr-border);border-radius:2px;margin:10px auto 4px}
.pbn-drawer__item{
  display:flex;align-items:center;gap:12px;padding:14px 24px;
  color:var(--clr-text2);font-size:.95rem;font-weight:500;text-decoration:none;
  border-bottom:1px solid var(--clr-border);transition:background .15s
}
.pbn-drawer__item:last-child{border-bottom:none}
.pbn-drawer__item:hover{background:var(--clr-bg2)}
.pbn-drawer__item i{font-size:20px;color:var(--clr-text3);flex-shrink:0}
.pbn-drawer__item.danger{color:#ef4444}
.pbn-drawer__item.danger i{color:#ef4444}
.pbn-overlay{
  display:none;position:fixed;inset:0;z-index:299;background:rgba(0,0,0,.35);
  backdrop-filter:blur(2px)
}
.pbn-overlay.open{display:block}

/* dark mode bottom nav */
[data-theme="dark"] .panel-bottom-nav{backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);background:rgba(26,25,21,.92)}
[data-theme="dark"] .pbn-btn{color:var(--clr-text2)}
[data-theme="dark"] .pbn-btn.active{color:var(--clr-accent)}
[data-theme="dark"] .pbn-drawer{background:var(--clr-surface)}

/* auth page (login) */
.auth-app{
  min-height:100vh;display:flex;flex-direction:column;
  align-items:center;justify-content:center;
  background:var(--clr-bg);padding:24px 20px
}
.auth-app-logo{
  display:flex;flex-direction:column;align-items:center;gap:6px;margin-bottom:36px
}
.auth-app-logo .mark{
  width:72px;height:72px;border-radius:22px;
  background:var(--clr-accent);color:#fff;
  display:flex;align-items:center;justify-content:center;
  font-size:32px;font-weight:900;
  box-shadow:0 8px 28px rgba(196,75,43,.3)
}
.auth-app-logo .name{font-size:1rem;font-weight:700;color:var(--clr-text);margin-top:2px}
.auth-app-card{
  width:100%;max-width:380px;
  background:var(--clr-surface);border:1px solid var(--clr-border);
  border-radius:20px;padding:28px 24px;
  box-shadow:var(--shadow-md)
}
.auth-app-card h1{font-size:1.15rem;font-weight:700;margin:0 0 4px}
.auth-app-card .sub{color:var(--clr-text3);font-size:.85rem;margin-bottom:22px;line-height:1.6}
.auth-step-dots{display:flex;gap:6px;margin-bottom:20px}
.auth-step-dot{width:8px;height:8px;border-radius:50%;background:var(--clr-bg3);transition:.2s}
.auth-step-dot.on{width:22px;border-radius:4px;background:var(--clr-accent)}
.auth-step-dot.done{background:var(--clr-accent);opacity:.4}
.auth-app-error{
  background:var(--clr-accent-light);color:var(--clr-accent);
  border-radius:10px;padding:9px 13px;font-size:.84rem;margin-bottom:14px
}
[data-theme="dark"] .auth-app-card{background:var(--clr-surface);border-color:var(--clr-border)}
[data-theme="dark"] .auth-app-logo .mark{box-shadow:0 8px 28px rgba(224,90,53,.25)}

/* ── Panel page shared components ── */
.pnl-card{background:var(--clr-surface);border:1px solid var(--clr-border);border-radius:var(--r-xl);padding:18px;box-shadow:var(--shadow-sm);margin-bottom:14px}
[data-theme="dark"] .pnl-card{background:var(--clr-surface);border-color:var(--clr-border)}

.pnl-page-head{display:flex;align-items:baseline;gap:10px;margin-bottom:16px;flex-wrap:wrap}
.pnl-page-head h1{margin:0;font-size:1.3rem}

.pnl-section-head{display:flex;justify-content:space-between;align-items:center}
.pnl-section-head>span{font-size:.92rem;font-weight:600;display:flex;align-items:center;gap:6px;color:var(--clr-text)}
.pnl-section-head>a{font-size:.8rem;color:var(--clr-accent);text-decoration:none;display:flex;align-items:center;gap:2px;white-space:nowrap}

/* ── Dashboard Hero ── */
.pnl-hero{
  background:linear-gradient(120deg,#1E4D8C,var(--clr-accent));
  color:#fff;border-radius:var(--r-xl);padding:20px;margin-bottom:14px;box-shadow:var(--shadow-md)
}
.pnl-hero-top{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:14px}
.pnl-avatar-wrap{display:flex;align-items:center;gap:12px}
.pnl-avatar-ring{width:52px;height:52px;border-radius:50%;border:2px solid rgba(255,255,255,.4);flex-shrink:0;overflow:hidden}
.pnl-avatar-img{width:100%;height:100%;object-fit:cover;display:block}
.pnl-hello{font-size:.95rem;font-weight:600;margin-bottom:4px}
.pnl-level-chip{background:rgba(255,255,255,.2);border-radius:999px;padding:2px 10px;font-size:.72rem;font-weight:600}
.pnl-profile-btn{width:32px;height:32px;border-radius:50%;background:rgba(255,255,255,.15);display:flex;align-items:center;justify-content:center;color:#fff;text-decoration:none;font-size:15px;flex-shrink:0}
.pnl-profile-btn:hover{background:rgba(255,255,255,.25)}
.pnl-xp-row{display:flex;justify-content:space-between;align-items:center;margin-bottom:5px}
.pnl-xp-val{font-size:.9rem;font-weight:700}
.pnl-xp-next{font-size:.75rem;opacity:.8}
.pnl-xp-track{height:6px;background:rgba(255,255,255,.2);border-radius:99px;overflow:hidden}
.pnl-xp-fill{height:100%;background:#fff;border-radius:99px;transition:width .8s ease}

/* ── KPI row (4 mini cards) ── */
.pnl-kpi-row{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-bottom:14px}
.pnl-kpi{background:var(--clr-surface);border:1px solid var(--clr-border);border-radius:var(--r-lg);padding:12px 8px;text-align:center;display:flex;flex-direction:column;align-items:center;gap:3px;text-decoration:none;color:var(--clr-text);box-shadow:var(--shadow-sm);transition:transform .13s}
.pnl-kpi:hover{transform:translateY(-2px)}
.pnl-kpi-ic{width:34px;height:34px;border-radius:10px;display:flex;align-items:center;justify-content:center;font-size:17px;margin-bottom:3px}
.pnl-kpi b{font-size:1.2rem;font-weight:800;line-height:1}
.pnl-kpi span{font-size:.68rem;color:var(--clr-text3)}
[data-theme="dark"] .pnl-kpi{background:var(--clr-surface);border-color:var(--clr-border)}

/* ── Section wrapper ── */
.pnl-section{background:var(--clr-surface);border:1px solid var(--clr-border);border-radius:var(--r-xl);padding:16px;margin-bottom:14px;box-shadow:var(--shadow-sm)}
[data-theme="dark"] .pnl-section{background:var(--clr-surface)}

/* ── Shelf ── */
.pnl-shelf{display:flex;gap:6px;overflow-x:auto;padding-bottom:4px;scrollbar-width:none;margin-top:10px}
.pnl-shelf-item{flex-shrink:0;width:52px;border-radius:6px;overflow:hidden;box-shadow:var(--shadow-sm);position:relative;display:block}
.pnl-shelf-item img{width:100%;display:block}
.pnl-shelf-placeholder{width:52px;height:72px;background:var(--clr-bg3);display:flex;align-items:center;justify-content:center;font-size:18px}
.pnl-shelf-badge{position:absolute;bottom:0;right:0;left:0;background:rgba(0,0,0,.65);color:#fff;font-size:.55rem;padding:2px 3px;text-align:center}

/* ── Two-col dashboard ── */
.pnl-two-col{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:14px}
.pnl-list-rows{display:flex;flex-direction:column;gap:0}
.pnl-list-row{display:flex;justify-content:space-between;align-items:center;padding:8px 0;border-bottom:1px solid var(--clr-border);font-size:.88rem}
.pnl-list-row:last-child{border-bottom:none}
.pnl-list-row b{font-weight:700}

/* ── Item list (listings, deals) ── */
.pnl-item-list{display:flex;flex-direction:column;gap:10px}
.pnl-item-card{background:var(--clr-surface);border:1px solid var(--clr-border);border-radius:var(--r-lg);padding:12px;display:flex;gap:12px;align-items:flex-start;box-shadow:var(--shadow-sm)}
[data-theme="dark"] .pnl-item-card{background:var(--clr-surface)}
.pnl-item-cover{flex-shrink:0;width:52px;height:70px;border-radius:6px;overflow:hidden;background:var(--clr-bg3)}
.pnl-item-cover img{width:100%;height:100%;object-fit:cover;display:block}
.pnl-item-cover-ph{width:100%;height:100%;display:flex;align-items:center;justify-content:center;font-size:18px}
.pnl-item-info{flex:1;min-width:0}
.pnl-item-title{font-weight:600;font-size:.92rem;color:var(--clr-text);text-decoration:none;display:block;margin-bottom:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pnl-item-meta{font-size:.78rem;color:var(--clr-text3);margin-bottom:8px}
.pnl-item-foot{display:flex;justify-content:space-between;align-items:center}
.pnl-item-price{font-weight:700;font-size:.9rem;color:var(--clr-accent)}

/* ── Empty state ── */
.pnl-empty{background:var(--clr-surface);border:1px solid var(--clr-border);border-radius:var(--r-xl);padding:40px 20px;text-align:center;box-shadow:var(--shadow-sm)}
.pnl-empty i{font-size:2.5rem;color:var(--clr-text3);display:block;margin-bottom:10px}
.pnl-empty p{color:var(--clr-text3);font-size:.9rem;margin:0}

/* ── Notifications ── */
.pnl-notif-row{display:flex;align-items:center;gap:10px;padding:13px 16px;border-bottom:1px solid var(--clr-border);position:relative}
.pnl-notif-row:last-child{border-bottom:none}
.pnl-notif-row.unread{background:var(--clr-accent-light)}
[data-theme="dark"] .pnl-notif-row.unread{background:var(--clr-accent-light)}
.pnl-notif-dot{width:7px;height:7px;border-radius:50%;background:var(--clr-border);flex-shrink:0}
.pnl-notif-dot.active{background:var(--clr-accent)}
.pnl-notif-icon{width:34px;height:34px;border-radius:10px;display:flex;align-items:center;justify-content:center;font-size:17px;background:var(--clr-bg2);color:var(--clr-text3);flex-shrink:0}
.pnl-notif-icon.accent{background:var(--clr-accent-light);color:var(--clr-accent)}
.pnl-notif-body{flex:1;min-width:0}
.pnl-notif-text{font-size:.88rem;line-height:1.5;color:var(--clr-text)}
.pnl-notif-time{font-size:.73rem;color:var(--clr-text3);margin-top:2px}
.pnl-notif-new{background:var(--clr-accent);color:#fff;font-size:.62rem;font-weight:700;border-radius:999px;padding:2px 7px;white-space:nowrap;flex-shrink:0}

/* ── Deals ── */
.pnl-deal-card{background:var(--clr-surface);border:1px solid var(--clr-border);border-radius:var(--r-lg);padding:13px 14px;box-shadow:var(--shadow-sm)}
[data-theme="dark"] .pnl-deal-card{background:var(--clr-surface)}
.pnl-deal-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}
.pnl-deal-parties{display:flex;align-items:center;gap:8px;font-size:.85rem;flex-wrap:wrap}
.pnl-deal-party{display:flex;align-items:center;gap:3px}
.pnl-deal-foot{display:flex;justify-content:space-between;align-items:center;border-top:1px solid var(--clr-border);padding-top:8px;margin-top:4px}

/* ── Tickets ── */
.pnl-ticket-row{display:flex;align-items:center;gap:10px;padding:12px;background:var(--clr-surface);border:1px solid var(--clr-border);border-radius:var(--r-lg);text-decoration:none;box-shadow:var(--shadow-sm);transition:transform .12s}
.pnl-ticket-row:hover{transform:translateY(-1px)}
[data-theme="dark"] .pnl-ticket-row{background:var(--clr-surface)}
.pnl-ticket-icon{width:36px;height:36px;border-radius:10px;background:var(--clr-bg2);color:var(--clr-text3);display:flex;align-items:center;justify-content:center;font-size:18px;flex-shrink:0}
.pnl-ticket-info{flex:1;min-width:0}

/* ── Settings ── */
.pnl-settings-avatar{display:flex;align-items:center;gap:16px}
.pnl-avatar-edit{position:absolute;bottom:0;left:0;width:24px;height:24px;border-radius:50%;background:var(--clr-accent);color:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer;font-size:12px;border:2px solid var(--clr-surface)}
.pnl-form-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}

@media (max-width:860px){
  .pnl-two-col{grid-template-columns:1fr}
  .pnl-kpi-row{grid-template-columns:repeat(2,1fr)}
  .pnl-form-row{grid-template-columns:1fr}
}

@media (max-width:860px){
  .panel-wrap{grid-template-columns:1fr;padding:0;padding-bottom:74px}
  .panel-main{padding:14px}
  .panel-side{display:none}
  .panel-bottom-nav{display:block}
}

/* =============================================================
   HORIZONTAL CAROUSEL — کاروسل افقی تامبنیل‌ها
   ============================================================= */
.carousel{position:relative}
.carousel-track{
  display:flex;gap:16px;overflow-x:auto;scroll-snap-type:x mandatory;
  scroll-behavior:smooth;padding:4px 2px 14px;
  -ms-overflow-style:none;scrollbar-width:none;
}
.carousel-track::-webkit-scrollbar{display:none}
.carousel-track > *{scroll-snap-align:start;flex:0 0 auto;width:190px}
.carousel-btn{
  position:absolute;top:calc(50% - 14px);transform:translateY(-50%);z-index:6;
  width:42px;height:42px;border-radius:50%;background:var(--clr-surface);
  border:1px solid var(--clr-border);box-shadow:var(--shadow-md);cursor:pointer;
  display:flex;align-items:center;justify-content:center;color:var(--clr-text);
  font-size:21px;transition:background .15s,color .15s,opacity .2s;
}
.carousel-btn:hover{background:var(--clr-accent);color:#fff;border-color:var(--clr-accent)}
.carousel-btn.prev{right:-8px}
.carousel-btn.next{left:-8px}
.carousel-btn[disabled]{opacity:0;pointer-events:none}
@media (max-width:760px){.carousel-btn{display:none}.carousel-track > *{width:150px}}

/* =============================================================
   SECTION RHYTHM
   ============================================================= */
.section--alt { background: var(--clr-bg2); }
.section--tint {
  background: linear-gradient(160deg, #0f1629 0%, #1a0a3d 50%, #0f1629 100%);
  color: #fff;
}
.section--tint .section-title { color: #fff; }
.section--tint .section-title i { color: #a78bfa; }
.section--tint .section-title-line { background: #7c3aed; }
.section--tint .see-all-btn { color: #a78bfa; }
.section-sub{color:var(--clr-text3);font-size:.9rem;margin-top:-6px;margin-bottom:14px}

/* Promo banners */
.promo-row{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:26px 0}
@media (max-width:640px){.promo-row{grid-template-columns:1fr;gap:14px;margin:18px 0}}

/* =============================================================
   GAME CARD — تامبنیل جذاب‌تر (Electro-style)
   ============================================================= */
.game-card{background:var(--clr-surface);border:1px solid var(--clr-border);border-radius:var(--r-lg);
  overflow:hidden;box-shadow:var(--shadow-sm);transition:transform .16s,box-shadow .16s,border-color .16s}
.game-card:hover{transform:translateY(-4px);box-shadow:var(--shadow-lg);border-color:var(--clr-border2)}
.game-card-img{position:relative;aspect-ratio:1/1;overflow:hidden;background:var(--clr-bg2)}
.game-card-img img{width:100%;height:100%;object-fit:cover;transition:transform .45s ease}
.game-card:hover .game-card-img img{transform:scale(1.07)}
.game-rank-badge{position:absolute;top:10px;right:10px;background:rgba(26,25,21,.82);color:#fff;
  width:30px;height:30px;border-radius:8px;display:flex;align-items:center;justify-content:center;
  font-weight:800;font-size:.82rem;backdrop-filter:blur(3px)}
.game-card-rating{position:absolute;top:10px;left:10px;background:var(--clr-gold);color:#fff;
  padding:3px 9px;border-radius:999px;font-size:.78rem;font-weight:700;display:flex;align-items:center;gap:3px}
.game-card-overlay{position:absolute;inset:0;display:flex;align-items:flex-end;justify-content:center;
  padding:14px;background:linear-gradient(to top,rgba(0,0,0,.55),transparent 55%);
  opacity:0;transition:opacity .2s}
.game-card:hover .game-card-overlay{opacity:1}
.gc-view{background:#fff;color:var(--clr-text);padding:7px 16px;border-radius:999px;font-size:.82rem;font-weight:700}
.game-card-body{padding:11px 13px}
.game-card-title{font-size:.95rem;font-weight:700;margin-bottom:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.game-card-sub{font-size:.78rem;color:var(--clr-text3);margin-bottom:8px}
.game-card-tags{display:flex;gap:5px;flex-wrap:wrap}
.game-card-tags .tag{background:var(--clr-bg2);color:var(--clr-text2);font-size:.72rem;padding:2px 9px;border-radius:999px}

/* =============================================================
   MECHANISM PAGE — توضیحات با «ادامه مطلب» + آمار
   ============================================================= */
.mech-desc-body{position:relative;overflow:hidden;max-height:9em;transition:max-height .35s ease}
.mech-desc-body p{margin:0 0 10px}
.mech-desc.expanded .mech-desc-body{max-height:3000px}
.mech-desc-body::after{content:"";position:absolute;inset-inline:0;bottom:0;height:3.4em;
  background:linear-gradient(transparent,var(--clr-surface));pointer-events:none;transition:opacity .2s}
.mech-desc.expanded .mech-desc-body::after{opacity:0}
.rm-toggle{margin-top:12px}
.mech-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.mstat{background:var(--clr-bg2);border:1px solid var(--clr-border);border-radius:var(--r-lg);padding:16px;text-align:center}
.mstat-num{font-size:1.5rem;font-weight:800;color:var(--clr-blue)}
.mstat-label{font-size:.8rem;color:var(--clr-text3);margin-top:4px}
@media (max-width:680px){.mech-stats{grid-template-columns:1fr;gap:10px}}

/* =============================================================
   BGG-STYLE GAME DETAIL — hero, toolbar, sidebar
   ============================================================= */
/* ── Hero with blurred background ── */
.bgg-hero{position:relative;overflow:hidden;padding:0;margin-top:-28px}
.bgg-hero__bg{position:absolute;inset:0;background-size:cover;background-position:center;
  filter:blur(28px) brightness(.45);transform:scale(1.15)}
.bgg-hero__overlay{position:absolute;inset:0;
  background:linear-gradient(180deg,rgba(0,0,0,.3) 0%,rgba(0,0,0,.6) 100%)}
.bgg-hero__inner{position:relative;z-index:1;display:grid;
  grid-template-columns:220px 1fr;gap:28px;padding-top:40px;padding-bottom:36px;align-items:start}
.bgg-hero__cover{flex-shrink:0}
.bgg-hero__cover img{width:220px;height:auto;border-radius:var(--r-lg);
  box-shadow:0 8px 32px rgba(0,0,0,.45)}
.bgg-hero__info{color:#fff}
.bgg-hero__top{display:flex;justify-content:space-between;align-items:flex-start;gap:16px}
.bgg-hero__title{margin:0;font-size:1.8rem;font-weight:900;color:#fff;line-height:1.35}
.bgg-hero__year{font-weight:400;opacity:.7;font-size:1.1rem}
.bgg-hero__summary{margin:8px 0 0;opacity:.85;font-size:.98rem;line-height:1.8;max-width:60ch}

/* Rating circle */
.bgg-rating-circle{flex-shrink:0;width:68px;height:68px;border-radius:50%;
  background:linear-gradient(135deg,#ffd86b,#f5a623);color:#1a1a2e;
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  box-shadow:0 4px 16px rgba(0,0,0,.35)}
.bgg-rating-circle__val{font-size:1.4rem;font-weight:900;line-height:1}
.bgg-rating-circle__label{font-size:.6rem;font-weight:600;opacity:.7;margin-top:2px}

/* Specs row */
.bgg-specs{display:flex;flex-wrap:wrap;gap:12px;margin-top:18px}
.bgg-spec{display:flex;align-items:center;gap:8px;background:rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.18);border-radius:var(--r-md);padding:8px 14px}
.bgg-spec i{font-size:20px;opacity:.8}
.bgg-spec div{display:flex;flex-direction:column}
.bgg-spec__val{font-weight:800;font-size:.95rem;line-height:1.2}
.bgg-spec__val small{font-weight:400;opacity:.65;font-size:.75rem}
.bgg-spec__label{font-size:.7rem;opacity:.6;margin-top:1px}

/* Credits */
.bgg-credits{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}
.bgg-credit{display:inline-flex;align-items:center;gap:4px;color:rgba(255,255,255,.85);
  font-size:.85rem;font-weight:500;padding:4px 10px;border-radius:100px;
  background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.12);transition:background .15s}
.bgg-credit:hover{background:rgba(255,255,255,.18);color:#fff}
.bgg-credit--artist{color:rgba(255,220,150,.9)}
.bgg-credit--artist:hover{color:#ffe6a0}

/* Tags inside hero */
.bgg-tags{display:flex;flex-wrap:wrap;gap:6px;margin-top:12px}
.bgg-tags .tag{background:rgba(255,255,255,.1);border-color:rgba(255,255,255,.2);color:rgba(255,255,255,.85)}
.bgg-tags .tag:hover{background:rgba(255,255,255,.2);color:#fff}

@media(max-width:760px){
  .bgg-hero__inner{grid-template-columns:140px 1fr;gap:16px;padding-top:24px;padding-bottom:24px}
  .bgg-hero__cover img{width:140px}
  .bgg-hero__title{font-size:1.3rem}
  .bgg-rating-circle{width:52px;height:52px}
  .bgg-rating-circle__val{font-size:1.1rem}
  .bgg-specs{gap:8px}
  .bgg-spec{padding:6px 10px}
}
/* موبایل: عکس کامل روی توضیحات، نه کنارش */
@media(max-width:600px){
  .bgg-hero__inner{grid-template-columns:1fr;gap:14px;justify-items:center;text-align:center;padding-top:20px;padding-bottom:20px}
  .bgg-hero__cover{width:100%;display:flex;justify-content:center}
  .bgg-hero__cover img{width:min(260px,70vw);height:auto}
  .bgg-hero__info{width:100%}
  .bgg-hero__top{flex-direction:column;align-items:center}
  .bgg-hero__titles{text-align:center}
  .bgg-hero__summary{margin-left:auto;margin-right:auto;text-align:center}
  .bgg-specs{justify-content:center}
  .bgg-credits{justify-content:center}
  .bgg-tags{justify-content:center}
}

/* ── Designer/Artist Hero ── */
.designer-hero__inner {
  grid-template-columns: 200px 1fr !important;
  align-items: center;
  padding-top: 40px !important;
  padding-bottom: 40px !important;
  gap: 32px !important;
}
.designer-hero__photo img {
  width: 180px; height: 180px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(255,255,255,.3);
  box-shadow: 0 8px 32px rgba(0,0,0,.4);
  display: block;
}
@media(max-width:600px){
  .designer-hero__inner { grid-template-columns: 1fr !important; justify-items: center; text-align: center; }
  .designer-hero__photo img { width: min(160px,55vw); height: min(160px,55vw); }
  .designer-hero .bgg-hero__title { text-align: center; }
}

/* ── Action Toolbar ── */
.bgg-toolbar-wrap{background:var(--clr-surface);border-bottom:1px solid var(--clr-border);
  position:sticky;top:0;z-index:50}
.bgg-toolbar{display:flex;align-items:center;gap:8px;padding:10px 0;flex-wrap:wrap}
.bgg-toolbar__btn{display:inline-flex;align-items:center;gap:6px;padding:8px 16px;
  border-radius:var(--r-md);font-size:.88rem;font-weight:600;cursor:pointer;
  background:var(--clr-bg2);border:1px solid var(--clr-border);color:var(--clr-text);transition:all .15s}
.bgg-toolbar__btn:hover{background:var(--clr-accent);color:#fff;border-color:var(--clr-accent)}
.bgg-toolbar__btn i{font-size:18px}
.bgg-toolbar__fan{position:relative}
.bgg-toolbar__fan.active{background:#e0245e;border-color:#e0245e;color:#fff}
.bgg-toolbar__fan.active:hover{background:#c71e52}
.bgg-toolbar__btn--play{background:linear-gradient(135deg,#10204a,#1E4D8C);color:#fff;border-color:#1E4D8C}
.bgg-toolbar__btn--play:hover{filter:brightness(1.15)}
.bgg-toolbar__badges{display:flex;gap:6px;flex-wrap:wrap;margin-right:auto}
@media(max-width:600px){
  .bgg-toolbar__badges{display:none}
}

/* ── Collection Sidebar ── */
.coll-sidebar-backdrop{position:fixed;inset:0;background:rgba(0,0,0,.5);z-index:200;display:none}
.coll-sidebar-backdrop.open{display:block}
.coll-sidebar{position:fixed;top:0;left:0;width:340px;max-width:90vw;height:100vh;
  background:var(--clr-surface);border-right:1px solid var(--clr-border);z-index:201;
  display:none;flex-direction:column;overflow-y:auto;
  transform:translateX(-100%)}
.coll-sidebar.open{display:flex;animation:slideIn .25s forwards}
html[dir="rtl"] .coll-sidebar{left:auto;right:0;border-right:0;border-left:1px solid var(--clr-border);
  transform:translateX(100%)}
@keyframes slideIn{to{transform:translateX(0)}}
.coll-sidebar__head{display:flex;justify-content:space-between;align-items:center;
  padding:16px 18px;border-bottom:1px solid var(--clr-border)}
.coll-sidebar__head h3{margin:0;font-size:1rem;display:flex;align-items:center;gap:6px}
.coll-sidebar__close{background:none;border:none;font-size:22px;cursor:pointer;color:var(--clr-text2);
  padding:4px;border-radius:var(--r-sm)}
.coll-sidebar__close:hover{background:var(--clr-bg2)}
.coll-sidebar__cover{display:flex;align-items:flex-start;gap:12px;padding:14px 18px;
  background:var(--clr-bg2);border-bottom:1px solid var(--clr-border)}
.coll-sidebar__cover img{width:56px;height:auto;border-radius:8px;box-shadow:var(--shadow-sm);flex-shrink:0}
.coll-sidebar__cover>div{display:flex;flex-direction:column;flex:1;min-width:0}
.coll-sidebar__cover span{font-weight:700;font-size:.95rem}
.coll-sidebar__body{padding:14px 18px;flex:1}
.coll-check{display:flex;align-items:center;gap:10px;padding:10px 8px;border-radius:var(--r-md);
  cursor:pointer;transition:background .12s;font-size:.9rem}
.coll-check:hover{background:var(--clr-bg2)}
.coll-check input[type="checkbox"]{width:18px;height:18px;accent-color:var(--clr-accent);cursor:pointer}
.coll-check span{display:flex;align-items:center;gap:6px}
.coll-check i{font-size:18px;color:var(--clr-text3)}
.coll-sidebar__divider{height:1px;background:var(--clr-border);margin:6px 0}
.coll-sidebar__foot{padding:14px 18px;border-top:1px solid var(--clr-border);
  display:flex;gap:8px}
.coll-sidebar__foot .btn{flex:1}

/* ── Star rating row (hero + sidebar) ── */
.star-row{display:flex;align-items:center;gap:2px;margin-top:6px}
.star-btn{background:none;border:none;padding:0;cursor:pointer;font-size:18px;color:#d4b44a;line-height:1;transition:transform .12s}
.star-btn.active{color:#ffd86b}
.star-btn:hover{transform:scale(1.25)}
.star-row--hero .star-btn{font-size:16px}
.star-row--hero{gap:1px}
.star-label{font-size:.75rem;opacity:.7;margin-right:8px;color:#fff}
.star-row--sidebar .star-btn{font-size:15px;color:#c4a43a}
.star-row--sidebar .star-btn.active{color:var(--clr-gold)}
.star-row--sidebar{margin-top:4px;gap:1px}

/* ── Log play form fields ── */
.log-field{margin-bottom:12px}
.log-field label{display:block;font-size:.82rem;font-weight:600;color:var(--clr-text2);margin-bottom:4px}
.log-field .input{width:100%;box-sizing:border-box}
.log-field textarea.input{resize:vertical}

/* ── Admin edit link (staff only) ── */
.admin-edit-link{display:inline-flex;align-items:center;gap:4px;font-size:.7rem;
  font-weight:600;color:var(--clr-accent);background:rgba(var(--clr-accent-rgb,37,99,235),.1);
  padding:2px 8px;border-radius:6px;text-decoration:none;vertical-align:middle;margin-right:6px}
.admin-edit-link:hover{background:rgba(var(--clr-accent-rgb,37,99,235),.2)}
.bgg-hero .admin-edit-link{color:#fff;background:rgba(255,255,255,.18)}
.bgg-hero .admin-edit-link:hover{background:rgba(255,255,255,.3)}

/* ── Comment section ── */
.comment{display:flex;gap:12px;padding:14px 0;border-bottom:1px solid var(--clr-border)}
.comment:last-of-type{border-bottom:none}
.comment-avatar{width:36px;height:36px;border-radius:50%;background:var(--clr-bg2);
  display:flex;align-items:center;justify-content:center;flex-shrink:0;color:var(--clr-text3)}
.comment-form{margin-top:16px}

/* ── Game tag hero ── */
.tag-hero{display:flex;gap:20px;align-items:center;padding:24px;background:var(--clr-surface);
  border:1px solid var(--clr-border);border-radius:var(--r-lg);margin-bottom:20px}
.tag-hero__img{width:80px;height:80px;border-radius:var(--r-md);object-fit:cover;flex-shrink:0}
.game-tags-row{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.game-tags-row .gtag{display:inline-flex;align-items:center;gap:4px;
  font-size:.78rem;font-weight:600;padding:3px 10px;border-radius:100px;
  text-decoration:none;color:#fff;transition:opacity .15s}
.game-tags-row .gtag:hover{opacity:.85}

/* ── Description full-width when no related posts ── */
.desc-full{grid-template-columns:1fr!important}

/* Legacy: keep old spec/cover for other pages */
.cover-img{width:100%;height:auto;border-radius:var(--r-lg);box-shadow:var(--shadow-md)}
.cover-frame{background:var(--clr-surface);border:1px solid var(--clr-border);border-radius:var(--r-xl);
  padding:16px;box-shadow:var(--shadow-md);text-align:center}
.cover-frame img{width:100%;height:auto;border-radius:var(--r-md)}
.spec-list{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin:16px 0}
.spec{background:var(--clr-bg2);border:1px solid var(--clr-border);border-radius:var(--r-md);padding:10px 14px;
  display:flex;justify-content:space-between;align-items:baseline;gap:8px}
.spec-label{color:var(--clr-text3);font-size:.82rem}
.spec-val{font-weight:700}
@media (max-width:760px){
  .spec-list{grid-template-columns:1fr}
}

/* =============================================================
   ONLINE PLAY PROMO — بخش اغواکننده‌ی بازی آنلاین
   ============================================================= */
.online-promo{position:relative;overflow:hidden;border-radius:var(--r-xl);
  background:linear-gradient(135deg,#0f1629 0%,#1a0a3d 55%,#2d1b69 130%);
  color:#fff;display:grid;grid-template-columns:1.7fr 1fr;gap:28px;padding:38px 40px;
  box-shadow:var(--shadow-lg)}
.online-promo-bg{position:absolute;inset:0;pointer-events:none;
  background:radial-gradient(420px 280px at 88% -10%,rgba(124,58,237,.35),transparent),
             radial-gradient(360px 240px at 10% 120%,rgba(168,85,247,.15),transparent)}
.online-promo>*{position:relative;z-index:1}
.online-promo-title{font-size:2rem;font-weight:900;line-height:1.35;margin:6px 0 10px}
.online-promo-title span{background:linear-gradient(90deg,#c4b5fd,#a855f7);-webkit-background-clip:text;background-clip:text;color:transparent}
.online-promo-desc{font-size:1.02rem;opacity:.9;line-height:1.85;max-width:46ch}
.online-features{display:flex;flex-wrap:wrap;gap:10px;margin:18px 0}
.ofeat{display:inline-flex;align-items:center;gap:6px;background:rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.22);border-radius:100px;padding:7px 14px;font-size:.9rem}
.ofeat i{color:#c4b5fd}
.online-cta-row{display:flex;flex-wrap:wrap;gap:12px;margin-top:8px}
.online-cta-primary{background:linear-gradient(135deg,#7c3aed,#a855f7);color:#fff;font-weight:800}
.online-cta-primary:hover{filter:brightness(.95)}
.online-cta-ghost{background:rgba(255,255,255,.12);color:#fff;border:1px solid rgba(255,255,255,.4)}
.online-cta-ghost:hover{background:rgba(255,255,255,.22)}
.online-steps{display:flex;flex-wrap:wrap;gap:18px;margin-top:22px;padding-top:18px;
  border-top:1px solid rgba(255,255,255,.16);font-size:.92rem;opacity:.95}
.ostep{display:inline-flex;align-items:center;gap:8px}
.ostep-n{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;
  border-radius:50%;background:rgba(255,255,255,.18);font-weight:800;font-size:.8rem}
/* side: available games list */
.online-promo-side{background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.16);
  border-radius:var(--r-lg);padding:16px}
.ogames-title{display:flex;align-items:center;gap:8px;font-weight:700;margin-bottom:10px;opacity:.95}
.ogame-row{display:flex;align-items:center;justify-content:space-between;padding:10px 12px;
  border-radius:var(--r-md);color:#fff;transition:background .15s}
.ogame-row:hover{background:rgba(255,255,255,.12)}
.ogame-row+.ogame-row{margin-top:2px}
.ogame-name{font-weight:600}
.ogame-live{display:inline-flex;align-items:center;gap:6px;font-size:.78rem;color:#7CFCB0}
.ogame-soon{font-size:.75rem;background:rgba(255,255,255,.14);border-radius:100px;padding:2px 10px;opacity:.85}
@media (max-width:820px){
  .online-promo{grid-template-columns:1fr;padding:28px 22px}
  .online-promo-title{font-size:1.55rem}
}

/* =============================================================
   BLOG + RICH CONTENT (mentions, embeds, related posts)
   ============================================================= */
.content-body{line-height:2;color:var(--clr-text)}
.content-body p{margin:0 0 14px}
.content-body .content-embed{margin:18px 0}
.content-figure{margin:18px 0;text-align:center}
.content-figure img{border-radius:var(--r-lg);box-shadow:var(--shadow-sm)}
.content-figure figcaption{color:var(--clr-text3);font-size:.85rem;margin-top:6px}
.mention{font-weight:600;border-bottom:1px dashed transparent}
.mention:hover{border-bottom-color:currentColor}
.mention-game{color:var(--clr-accent)}
.mention-designer,.mention-artist{color:#7d3cff}
.mention-mechanism{color:var(--clr-blue)}
.mention-category{color:var(--clr-green)}
.mention-publisher,.mention-type{color:var(--clr-gold)}

.blog-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:20px}
.blog-card{padding:0;overflow:hidden;display:block;margin-bottom:0}
.blog-card-cover{aspect-ratio:16/9;overflow:hidden;background:var(--clr-bg2)}
.blog-card-cover img{width:100%;height:100%;object-fit:cover}
.blog-card-ph{width:100%;height:100%;display:flex;align-items:center;justify-content:center;font-size:34px;color:var(--clr-text3)}
.blog-card-body{padding:14px 16px}
.blog-card-body h3{font-size:1.05rem;margin:0 0 6px}
.blog-post{max-width:820px;margin:0 auto}
.blog-post h1{margin-top:0}
.blog-post-cover{width:100%;max-height:420px;object-fit:cover;border-radius:var(--r-lg);margin:8px 0 18px}

.related-posts{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:14px}
.related-post{display:flex;gap:10px;align-items:center}
.related-post-cover{flex:0 0 64px;width:64px;height:64px;border-radius:var(--r-md);overflow:hidden;background:var(--clr-bg2)}
.related-post-cover img{width:100%;height:100%;object-fit:cover}
.related-post-title{font-weight:600;line-height:1.5}

/* online promo — cover collage (right side) */
.ogames-collage{position:relative;display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.ocover{aspect-ratio:3/4;background-size:cover;background-position:center;border-radius:10px;
  box-shadow:0 6px 16px rgba(0,0,0,.35)}
.ocollage-badge{position:absolute;inset:0;margin:auto;width:66px;height:66px;border-radius:50%;
  background:linear-gradient(135deg,#7c3aed,#a855f7);color:#fff;display:flex;align-items:center;justify-content:center;
  font-size:30px;box-shadow:0 10px 30px rgba(124,58,237,.5)}
.ogames-list{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}
.ogame-chip{background:rgba(255,255,255,.13);border:1px solid rgba(255,255,255,.24);border-radius:100px;
  padding:6px 13px;font-size:.85rem;color:#fff;display:inline-flex;align-items:center;gap:6px}
.ogame-chip:hover{background:rgba(255,255,255,.22)}
@media (max-width:820px){.ogames-collage{grid-template-columns:repeat(6,1fr)}.ocover{aspect-ratio:1}}

/* game page — online-play engagement block */
.game-online{display:grid;grid-template-columns:1.6fr 1fr;gap:24px;align-items:center;
  background:linear-gradient(120deg,#0f1629,#1a0a3d 60%,#4c1d95);color:#fff;
  border-radius:var(--r-xl);padding:26px 28px;margin:24px 0;box-shadow:var(--shadow-lg)}
.game-online-title{color:#fff;font-size:1.4rem;font-weight:900;margin:8px 0}
.game-online-desc{opacity:.9;line-height:1.8}
.game-online-side{background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.18);
  border-radius:var(--r-lg);padding:14px 16px}
.go-lb-title{font-weight:700;margin-bottom:8px}
.go-lb-row{display:flex;justify-content:space-between;align-items:center;padding:7px 0;
  border-bottom:1px solid rgba(255,255,255,.12)}
.go-lb-row:last-child{border-bottom:0}
.go-rank{display:inline-block;width:22px;color:#ffd86b}
.go-rating{color:#7CFCB0}
@media (max-width:760px){.game-online{grid-template-columns:1fr;padding:22px}}

/* game page: description + related-posts aside */
.desc-with-aside{display:grid;grid-template-columns:2fr 1fr;gap:20px;margin-top:24px;align-items:start}
.desc-aside .aside-post{display:flex;gap:10px;align-items:center;padding:9px 0;border-bottom:1px solid var(--clr-border)}
.desc-aside .aside-post:last-child{border-bottom:0}
.aside-post-cover{flex:0 0 52px;width:52px;height:52px;border-radius:8px;overflow:hidden;background:var(--clr-bg2)}
.aside-post-cover img{width:100%;height:100%;object-fit:cover}
.aside-post-title{font-weight:600;line-height:1.5;font-size:.92rem}
@media (max-width:860px){.desc-with-aside{grid-template-columns:1fr}}

/* shortcode 'list' mode */
.content-list{display:grid;gap:10px}
.content-list-item{display:flex;gap:10px;align-items:center;padding:8px;border:1px solid var(--clr-border);
  border-radius:var(--r-md);background:var(--clr-surface)}
.content-list-item:hover{background:var(--clr-bg2)}
.content-list-item img{width:46px;height:46px;border-radius:6px;object-fit:cover;flex:0 0 46px}
.cli-title{font-weight:600;line-height:1.5}
.cli-meta{color:var(--clr-text3);font-size:.82rem}
@media (max-width:640px){.content-list{grid-template-columns:1fr!important}.games-grid[style]{grid-template-columns:repeat(2,1fr)!important}}

/* reaction widget + multi-step popup (game page) */
.react-widget{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.react-btn{display:flex;flex-direction:column;align-items:center;gap:4px;padding:12px 6px;
  border:1.5px solid var(--clr-border);border-radius:var(--r-lg);background:var(--clr-surface);
  color:var(--clr-text2);font-weight:600;font-size:.82rem;cursor:pointer;transition:all .15s}
.react-btn i{font-size:22px}
.react-btn:hover{border-color:var(--clr-accent);color:var(--clr-accent)}
.react-btn.active{background:var(--clr-accent);border-color:var(--clr-accent);color:#fff}
.react-fav.active{background:#e0245e;border-color:#e0245e}
.react-pop{margin-top:12px;border:1px solid var(--clr-border);border-radius:var(--r-lg);
  padding:14px;background:var(--clr-bg2)}
.rp-q{font-weight:600;margin-bottom:10px}
.react-pop .input{width:100%;margin-bottom:10px}
.rp-actions{display:flex;flex-wrap:wrap;gap:8px}

/* collection / shelf board + gamification */
.collector-card{background:var(--clr-surface);border:1px solid var(--clr-border);border-radius:var(--r-lg);padding:16px;margin-bottom:16px}
.collector-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;flex-wrap:wrap}
.collector-badge{display:inline-flex;align-items:center;gap:6px;background:var(--clr-gold-light);color:var(--clr-gold);
  font-weight:800;padding:6px 14px;border-radius:100px}
.genre-bars{margin-top:14px;display:flex;flex-direction:column;gap:8px}
.genre-row{display:grid;grid-template-columns:120px 1fr 34px;align-items:center;gap:10px;font-size:.85rem}
.genre-name{color:var(--clr-text2)}
.genre-bar{height:10px;background:var(--clr-bg3);border-radius:100px;overflow:hidden}
.genre-bar>span{display:block;height:100%;background:linear-gradient(90deg,var(--clr-accent),#e07a52);border-radius:100px}
.genre-n{text-align:left;color:var(--clr-text3)}
.shelf-board{display:grid;grid-template-columns:repeat(auto-fill,minmax(92px,1fr));gap:10px;
  background:var(--clr-bg2);border:1px solid var(--clr-border);border-radius:var(--r-lg);padding:14px}
.shelf-game{aspect-ratio:3/4;border-radius:8px;overflow:hidden;box-shadow:var(--shadow-sm);transition:transform .15s}
.shelf-game:hover{transform:translateY(-3px)}
.shelf-game img{width:100%;height:100%;object-fit:cover}

/* ── Bookshelf (profile collection tab) ── */
.bookshelf{display:inline-block;background:var(--clr-surface);border:1px solid var(--clr-border);border-radius:var(--r-lg);overflow:hidden;margin-bottom:16px}
.bookshelf__header{display:flex;justify-content:space-between;align-items:center;padding:14px 16px 6px}
.bookshelf__header h3{margin:0;font-size:1rem;display:flex;align-items:center;gap:6px}
.bookshelf__row{display:flex;flex-wrap:wrap;gap:10px;padding:10px 16px 0;justify-content:center}
.bookshelf__game{flex:0 0 auto;width:72px;transition:transform .18s}
.bookshelf__game:hover{transform:translateY(-5px)}
.bookshelf__game img{width:72px;height:96px;object-fit:cover;border-radius:6px;box-shadow:0 2px 8px rgba(0,0,0,.18);display:block}
.bookshelf__wood{height:10px;margin:6px 16px 0;border-radius:2px;
  background:linear-gradient(180deg,#6d4c0e 0%,#a07b2a 30%,#8B6914 60%,#6d4c0e 100%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.15),0 2px 4px rgba(0,0,0,.25)}
@media(min-width:768px){
  .bookshelf__game{width:88px}
  .bookshelf__game img{width:88px;height:118px}
}

/* ── Shelf layout: bookshelf + stats side-by-side ── */
.shelf-layout{display:grid;grid-template-columns:1fr 260px;gap:20px;align-items:start}
.shelf-layout__main{min-width:0}
.shelf-layout__side{position:sticky;top:80px}
@media(max-width:900px){
  .shelf-layout{grid-template-columns:1fr}
  .shelf-layout__side{position:static}
}

/* Wishlist shelf */
.bookshelf--wish .bookshelf__game--wish{position:relative}
.bookshelf--wish .bookshelf__game--wish img{opacity:.5;transition:opacity .2s}
.bookshelf--wish .bookshelf__game--wish:hover img{opacity:.8}
.wish-bought-btn{position:absolute;bottom:4px;left:50%;transform:translateX(-50%);
  white-space:nowrap;font-size:.68rem;padding:2px 8px;opacity:0;transition:opacity .2s}
.bookshelf__game--wish:hover .wish-bought-btn{opacity:1}

/* Sub-tabs inside shelf */
.shelf-subtabs .tabbar{gap:6px}
.shelf-subtabs .tabbar button{font-size:.85rem;padding:6px 14px}

@media (max-width:560px){.genre-row{grid-template-columns:90px 1fr 28px}}

/* ── Comparison & Collection ─────────────────────────────── */
.cmp-header{padding:20px}
.cmp-auto-title{font-size:1.15rem;font-weight:700;text-align:center;margin:0 0 16px;
  color:var(--clr-text);line-height:1.4}
.cmp-sides{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:16px}
.cmp-side{text-align:center;display:flex;flex-direction:column;align-items:center;gap:8px}
.cmp-cover{width:90px;height:120px;object-fit:cover;border-radius:8px;box-shadow:var(--shadow-md)}
.cmp-name{font-weight:700;font-size:1.05rem}
.cmp-vs{font-size:.85rem;color:var(--clr-text3);font-weight:700;white-space:nowrap;
  background:var(--clr-bg3);border-radius:100px;padding:6px 12px}

.cmp-table{width:100%;border-collapse:collapse}
.cmp-row{border-bottom:1px solid var(--clr-border)}
.cmp-row:last-child{border-bottom:none}
.cmp-val{padding:10px 12px;font-size:.9rem;width:38%}
.cmp-val-a{text-align:right;font-weight:600;color:var(--clr-accent)}
.cmp-val-b{text-align:left;font-weight:600;color:var(--clr-blue)}
.cmp-label{padding:10px 8px;text-align:center;color:var(--clr-text3);font-size:.82rem;white-space:nowrap;width:24%}
.cmp-label .ti{margin-left:4px}

.cmp-poll-btns{display:flex;gap:12px;flex-wrap:wrap;margin-bottom:16px}
.cmp-poll-btns .btn{flex:1;min-width:120px}

.cmp-bars{display:flex;flex-direction:column;gap:10px}
.cmp-bar-row{display:grid;grid-template-columns:140px 1fr 80px auto;align-items:center;gap:10px;font-size:.88rem}
.cmp-bar-label{color:var(--clr-text2);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cmp-bar-track{height:12px;background:var(--clr-bg3);border-radius:100px;overflow:hidden}
.cmp-bar-fill{height:100%;border-radius:100px;transition:width .4s}
.cmp-bar-a{background:linear-gradient(90deg,var(--clr-accent),#e07a52)}
.cmp-bar-b{background:linear-gradient(90deg,var(--clr-blue),#5ba3e0)}
.cmp-bar-pct{color:var(--clr-text3);font-size:.82rem;text-align:left}

/* ── Comparison Hero ─────────────────────────────────────── */
.cmp-hero{position:relative;border-radius:16px;overflow:hidden;margin-bottom:16px;min-height:220px;display:flex;align-items:flex-end}
.cmp-hero-covers{position:absolute;inset:0;display:flex}
.cmp-hero-img{width:50%;height:100%;object-fit:cover;object-position:center top;flex-shrink:0}
.cmp-hero-img-a{object-position:right top}
.cmp-hero-img-b{object-position:left top}
.cmp-hero-ph{display:flex;align-items:center;justify-content:center;background:var(--clr-bg3);font-size:3rem;color:var(--clr-text3)}
.cmp-hero-grad{position:absolute;inset:0;background:linear-gradient(to top,rgba(10,5,25,.88) 0%,rgba(10,5,25,.35) 55%,transparent 100%)}
.cmp-hero-body{position:relative;z-index:2;padding:24px 20px 20px;width:100%}
.cmp-hero-title{color:#fff;font-size:1.25rem;font-weight:800;line-height:1.4;margin:0 0 10px;text-shadow:0 2px 8px rgba(0,0,0,.5)}
.cmp-hero-sub{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.cmp-hero-game{color:rgba(255,255,255,.85);text-decoration:none;font-size:.88rem;font-weight:600}
.cmp-hero-game:hover{color:#fff}
.cmp-hero-rank{background:var(--clr-accent);color:#fff;border-radius:100px;padding:1px 7px;font-size:.75rem;margin-right:4px}
.cmp-hero-vs{color:rgba(255,255,255,.5);font-size:.8rem}

/* ── Table v2 with cover headers ────────────────────────── */
.cmp-table-v2 thead th{padding:0;border-bottom:2px solid var(--clr-border2)}
.cmp-th-cover{width:38%;padding:12px}
.cmp-th-label{width:24%}
.cmp-th-cover-link{display:flex;flex-direction:column;align-items:center;gap:6px;text-decoration:none;color:inherit}
.cmp-th-a .cmp-th-cover-link{align-items:flex-end}
.cmp-th-b .cmp-th-cover-link{align-items:flex-start}
.cmp-th-img{width:52px;height:70px;object-fit:cover;border-radius:6px;box-shadow:var(--shadow-md)}
.cmp-th-ph{display:flex;align-items:center;justify-content:center;background:var(--clr-bg3);color:var(--clr-text3);font-size:1.5rem}
.cmp-th-name{font-size:.8rem;font-weight:700;color:var(--clr-accent);text-align:center}
.cmp-th-b .cmp-th-name{color:var(--clr-blue)}

/* ── Vote bottom ─────────────────────────────────────────── */
.cmp-vote-bottom{text-align:center}

/* ── Related carousel ────────────────────────────────────── */
.cmp-related-section .cmp-related-scroll{display:flex;gap:12px;overflow-x:auto;padding-bottom:8px;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch}
.cmp-related-scroll::-webkit-scrollbar{height:4px}
.cmp-related-scroll::-webkit-scrollbar-thumb{background:var(--clr-border2);border-radius:4px}
.cmp-rel-card{flex:0 0 140px;scroll-snap-align:start;text-decoration:none;color:inherit;display:flex;flex-direction:column;gap:6px}
.cmp-rel-thumb{width:140px;height:100px;border-radius:10px;overflow:hidden;display:flex;position:relative;flex-shrink:0;background:var(--clr-bg3)}
.cmp-rel-cover{position:absolute;top:0;height:100%;width:50%;object-fit:cover;object-position:center top}
.cmp-rel-cover-a{right:0;object-position:right top}
.cmp-rel-cover-b{left:0;object-position:left top}
.cmp-rel-ph{width:50%;height:100%;display:flex;align-items:center;justify-content:center;font-size:1.5rem;color:var(--clr-text3)}
.cmp-rel-thumb-post{background:var(--clr-bg2);align-items:center;justify-content:center}
.cmp-rel-title{font-size:.8rem;font-weight:600;color:var(--clr-text2);line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.cmp-rel-card:hover .cmp-rel-title{color:var(--clr-accent)}

/* ── Comparison embed (blog aside duo-cover) ─────────────── */
.cmp-embed-duo{position:relative;overflow:hidden;width:56px;height:56px;border-radius:8px;flex-shrink:0}
.cmp-duo-img{position:absolute;top:0;width:50%;height:100%;object-fit:cover}
.cmp-duo-a{right:0;object-position:right top}
.cmp-duo-b{left:0;object-position:left top}
.cmp-duo-ph{display:flex;align-items:center;justify-content:center;background:var(--clr-bg3);color:var(--clr-text3);font-size:1.1rem}

/* Inline embed (in blog posts) */
.cmp-embed{padding:16px}
.cmp-embed-sides{display:flex;align-items:center;gap:16px;flex-wrap:wrap}
.cmp-embed-side{display:flex;flex-direction:column;align-items:center;gap:6px;text-decoration:none;color:inherit;flex:1;min-width:80px}
.cmp-embed-cover{width:64px;height:85px;object-fit:cover;border-radius:6px;box-shadow:var(--shadow-sm)}
.cmp-embed-name{font-size:.85rem;font-weight:600;text-align:center}
.cmp-embed-vs{font-size:.8rem;color:var(--clr-text3);font-weight:700;white-space:nowrap;
  background:var(--clr-bg3);border-radius:100px;padding:5px 10px;text-decoration:none}

/* Collection poll */
.col-vote-bars{display:flex;flex-direction:column;gap:10px}
.col-vote-row{display:grid;grid-template-columns:160px 1fr 60px auto;align-items:center;gap:10px;font-size:.88rem}
.col-vote-label{display:flex;align-items:center;gap:8px;color:var(--clr-text);text-decoration:none;overflow:hidden}
.col-vote-thumb{width:32px;height:32px;object-fit:cover;border-radius:4px;flex-shrink:0}
.col-vote-btns{display:flex;flex-wrap:wrap;gap:8px}

/* Award pages */
.award-year-block{margin-bottom:20px}
.award-year-label{font-size:1.1rem;font-weight:700;color:var(--clr-text2);margin-bottom:8px;
  padding-bottom:6px;border-bottom:1px solid var(--clr-border)}
.award-year-games{display:flex;flex-direction:column;gap:10px;padding-right:12px}
.award-winner-row{display:flex;align-items:center;gap:12px;padding:8px 0;border-bottom:1px solid var(--clr-border2)}
.award-winner-row:last-child{border-bottom:none}
.award-game-thumb{width:44px;height:58px;object-fit:cover;border-radius:5px;flex-shrink:0}
.award-game-title{font-weight:600;text-decoration:none;color:var(--clr-text)}
.award-game-title:hover{color:var(--clr-accent)}

@media (max-width:600px){
  .cmp-sides{grid-template-columns:1fr auto 1fr;gap:10px}
  .cmp-cover{width:64px;height:85px}
  .cmp-bar-row{grid-template-columns:90px 1fr 50px auto;gap:6px}
  .col-vote-row{grid-template-columns:110px 1fr 44px auto}
}

/* ── Platform intro section ──────────────────────────────── */
.platform-intro { padding-top: 28px; padding-bottom: 36px; }
.platform-intro-head { text-align: center; margin-bottom: 28px; }
.platform-intro-title { font-size: 1.5rem; font-weight: 800; color: var(--clr-text); margin-bottom: 6px; }
.platform-intro-sub { font-size: .95rem; color: var(--clr-text3); }
.platform-features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.pf-card { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 20px 18px;
  background: var(--clr-bg2); border: 1px solid var(--clr-border); border-radius: 14px;
  text-decoration: none; color: inherit; transition: border-color .18s, box-shadow .18s; }
.pf-card:hover { border-color: var(--clr-accent); box-shadow: 0 4px 18px rgba(99,102,241,.10); }
.pf-card--highlight { background: linear-gradient(135deg, var(--clr-blue-light), #ede9fe); border-color: #c4b5fd; }
.pf-icon { font-size: 1.7rem; color: var(--clr-accent); margin-bottom: 2px; }
.pf-title { font-size: 1rem; font-weight: 700; color: var(--clr-text); }
.pf-desc { font-size: .82rem; color: var(--clr-text3); line-height: 1.7; }
.pf-badge { position: absolute; top: 12px; left: 12px; font-size: .7rem; font-weight: 700;
  background: var(--clr-accent); color: #fff; padding: 2px 8px; border-radius: 100px; }
@media (max-width: 800px) { .platform-features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .platform-features { grid-template-columns: 1fr; } }

/* ── XP Gamification Banner ─────────────────────────────── */
.xp-banner-section { padding-top: 0; }
.xp-banner {
  display: block; position: relative; overflow: hidden;
  border-radius: var(--r-xl); text-decoration: none; color: #fff;
  padding: 36px 40px;
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #a855f7 100%);
  box-shadow: 0 8px 32px rgba(99,102,241,.35);
  transition: box-shadow .2s, transform .2s;
}
.xp-banner:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(99,102,241,.45); }
.xp-banner-bg {
  position: absolute; inset: 0; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.xp-banner-body { position: relative; z-index: 1; display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.xp-banner-icon { font-size: 3rem; flex-shrink: 0; filter: drop-shadow(0 2px 8px rgba(0,0,0,.25)); }
.xp-banner-text { flex: 1; min-width: 200px; }
.xp-banner-title { font-size: 1.4rem; font-weight: 900; margin: 0 0 6px; letter-spacing: -.01em; }
.xp-banner-desc { font-size: .9rem; opacity: .88; line-height: 1.7; margin: 0; }
.xp-banner-steps { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; flex-shrink: 0; }
.xp-step { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: .8rem; font-weight: 600; opacity: .9; }
.xp-step-icon { width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.18); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; }
.xp-step-arrow { color: rgba(255,255,255,.5); font-size: .85rem; }
.xp-banner-cta { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.3); border-radius: 100px; padding: 8px 18px; font-size: .85rem; font-weight: 700; white-space: nowrap; flex-shrink: 0; transition: background .15s; }
.xp-banner:hover .xp-banner-cta { background: rgba(255,255,255,.28); }
@media (max-width: 700px) {
  .xp-banner { padding: 24px 20px; }
  .xp-banner-body { gap: 16px; }
  .xp-banner-steps { display: none; }
  .xp-banner-title { font-size: 1.15rem; }
}

/* ── Mobile nav always on top ───────────────────────────── */
@media (max-width: 900px) {
  .nav-links { z-index: 1000 !important; }
  body[data-menu="open"]::after { z-index: 999 !important; }
}
