/* =============================================================
   THEME TOKENS — تغییر رنگ‌بندی فقط از اینجا
   BGG-inspired: کرم/بژ روشن با آبی تیره و نارنجی/قرمز accent
   ============================================================= */
body *{text-align: right !important;}
:root {
  /* --- رنگ‌های اصلی --- */
  --clr-bg:          #F6F4EF;   /* پس‌زمینه اصلی: کرم BGG */
  --clr-bg2:         #ECEAE3;   /* سطوح کمی تیره‌تر */
  --clr-bg3:         #E2E0D8;   /* hover/separator */
  --clr-surface:     #FFFFFF;   /* کارت‌ها و پانل‌ها */
  --clr-surface2:    #F9F8F4;   /* کارت‌های secondary */

  /* --- اکسنت‌ها --- */
  --clr-accent:      #C44B2B;   /* قرمز-نارنجی BGG */
  --clr-accent-h:    #A83A1E;   /* hover accent */
  --clr-accent-light:#FBE9E4;   /* پس‌زمینه badge accent */
  --clr-blue:        #1E4D8C;   /* آبی تیره BGG */
  --clr-blue-light:  #E8EEF7;   /* پس‌زمینه badge آبی */
  --clr-green:       #2E7D32;
  --clr-green-light: #E8F5E9;
  --clr-gold:        #B8860B;
  --clr-gold-light:  #FFF8E1;

  /* --- متن --- */
  --clr-text:        #1A1915;   /* متن اصلی تیره */
  --clr-text2:       #4A4840;   /* متن ثانوی */
  --clr-text3:       #7A7870;   /* متن hint */
  --clr-text-inv:    #FFFFFF;   /* متن روی accent */

  /* --- بوردر --- */
  --clr-border:      #D4D0C8;
  --clr-border2:     #B8B4A8;

  /* --- سایه --- */
  --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:          #1A1915;
  --clr-bg2:         #232218;
  --clr-bg3:         #2C2B20;
  --clr-surface:     #2A2920;
  --clr-surface2:    #333228;
  --clr-accent:      #E05A35;
  --clr-accent-h:    #F06A45;
  --clr-accent-light:#3D1F14;
  --clr-blue:        #5B8FD4;
  --clr-blue-light:  #1A2A40;
  --clr-green-light: #1A2E1C;
  --clr-gold-light:  #2A2310;
  --clr-text:        #F0EEE8;
  --clr-text2:       #B0AEA6;
  --clr-text3:       #706E68;
  --clr-border:      #3A3830;
  --clr-border2:     #4A4840;
  --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: var(--clr-blue);
  color: #fff;
  font-size: 12px;
  padding: 6px 0;
  text-align: center;
  letter-spacing: 0.3px;
}
.topbar a { color: #9FC4F8; }

/* ===================== NAVBAR ===================== */
.navbar {
  position: sticky; top: 0; z-index: 200;
  background: var(--clr-surface);
  border-bottom: 1px solid var(--clr-border);
  box-shadow: var(--shadow-sm);
}
.navbar-inner {
  display: flex; align-items: center; gap: 0;
  height: 60px;
}
.logo {
  display: flex; align-items: center; gap: 8px;
  font-weight: 900; font-size: 20px;
  color: var(--clr-accent);
  padding-left: 20px;
  border-left: 1px solid var(--clr-border);
  height: 100%;
  white-space: nowrap;
}
.logo-icon {
  width: 32px; height: 32px;
  background: var(--clr-accent);
  color: #fff;
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
}
.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: var(--clr-text2);
  border-bottom: 2px solid transparent;
  transition: all 0.15s;
  position: relative;
}
.nav-link:hover, .nav-link.active { color: var(--clr-text); }
.nav-link.active { border-bottom-color: var(--clr-accent); color: var(--clr-accent); font-weight: 700; }
.nav-link 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: var(--clr-bg);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-md);
  padding: 0 36px 0 12px;
  font-family: var(--font); font-size: 13px;
  color: var(--clr-text);
  transition: all 0.2s;
  outline: none;
}
.search-input:focus {
  border-color: var(--clr-accent);
  box-shadow: 0 0 0 3px rgba(196,75,43,0.12);
  width: 320px;
}
.search-input::placeholder { color: var(--clr-text3); }
.search-icon {
  position: absolute; left: 10px; top: 50%; transform: translateY(-50%);
  color: var(--clr-text3); font-size: 15px; pointer-events: none;
}

.nav-icon-btn {
  width: 36px; height: 36px; border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--clr-border);
  background: var(--clr-bg);
  color: var(--clr-text2);
  font-size: 16px; transition: all 0.15s;
  position: relative;
}
.nav-icon-btn:hover { border-color: var(--clr-border2); color: var(--clr-text); background: var(--clr-bg2); }
.cart-count {
  position: absolute; top: -4px; right: -4px;
  width: 16px; height: 16px; background: var(--clr-accent);
  color: #fff; border-radius: 50%; font-size: 9px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.theme-toggle {
  width: 36px; height: 36px; border-radius: var(--r-md);
  border: 1px solid var(--clr-border);
  background: var(--clr-bg);
  color: var(--clr-text2);
  font-size: 16px; display: flex; align-items: center; justify-content: center;
  transition: all 0.15s;
}
.theme-toggle:hover { color: var(--clr-text); background: var(--clr-bg2); }

/* ===================== HERO ===================== */
.hero {
  background: var(--clr-blue);
  color: #fff;
  padding: 52px 0 40px;
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  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");
}
.hero-inner {
  display: grid; grid-template-columns: 1fr 380px;
  gap: 48px; align-items: center;
  position: relative; z-index: 1;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 100px;
  padding: 5px 14px; font-size: 12px;
  margin-bottom: 16px; color: #9FC4F8;
}
.hero h1 {
  font-size: 40px; font-weight: 900;
  line-height: 1.15; margin-bottom: 16px;
}
.hero h1 span { color: #FFCE6E; }
.hero-desc { font-size: 16px; opacity: 0.85; line-height: 1.7; margin-bottom: 28px; max-width: 520px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 32px; }
.btn-hero-primary {
  background: var(--clr-accent);
  color: #fff; font-weight: 700;
}
.btn-hero-primary:hover { background: #E05A35; transform: translateY(-1px); }
.btn-hero-secondary {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
}
.btn-hero-secondary:hover { background: rgba(255,255,255,0.18); }

.hero-stats { display: flex; gap: 28px; }
.hero-stat-num { font-size: 24px; font-weight: 900; color: #FFCE6E; }
.hero-stat-label { font-size: 12px; opacity: 0.7; margin-top: 2px; }

/* Hero featured card */
.hero-featured {
  background: var(--clr-surface);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  color: var(--clr-text);
}
.hero-feat-img {
  width: 100%; height: 200px;
  background: linear-gradient(135deg, #1E3A5F 0%, #2D5A8E 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 72px; position: relative;
}
.hero-feat-tag {
  position: absolute; top: 12px; right: 12px;
  background: var(--clr-accent); 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; }
.hero-feat-meta { font-size: 12px; color: var(--clr-text3); 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: var(--clr-gold); }
.rating-big small { font-size: 12px; color: var(--clr-text3); 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-blue); }
.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); }

.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; }

/* ===================== 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;
}
.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: var(--clr-blue);
  color: rgba(255,255,255,0.85);
  padding: 48px 0 0; margin-top: 56px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer-brand {}
.footer-logo { font-size: 20px; font-weight: 900; color: #fff; display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.footer-desc { font-size: 13px; line-height: 1.7; opacity: 0.7; }
.footer-col h5 { font-size: 13px; font-weight: 700; color: #fff; margin-bottom: 14px; letter-spacing: 0.3px; }
.footer-col a { display: block; font-size: 13px; color: rgba(255,255,255,0.65); padding: 4px 0; transition: color 0.15s; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 16px 0; display: flex;
  justify-content: space-between; align-items: center;
  font-size: 12px; color: rgba(255,255,255,0.5);
}

/* ============================================================
   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:26px;color:var(--clr-text);padding:4px 8px}
.nav-mobile-head,.nav-mobile-actions{display:none}
.nav-close{display:none;background:none;border:0;font-size:26px;color:var(--clr-text);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:330px;
    flex-direction:column;align-items:stretch;justify-content:flex-start;gap:0;margin:0;
    background:var(--clr-surface);box-shadow:var(--shadow-lg);padding:0;
    transform:translateX(100%);transition:transform .25s;z-index:60;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,.45);z-index:50}
  .nav-mobile-head{display:flex;align-items:center;justify-content:space-between;
    padding:14px 16px;border-bottom:1px solid var(--clr-border)}
  .nav-close{display:block}
  .nav-link{height:auto!important;padding:15px 18px;justify-content:flex-start;
    border-bottom:1px solid var(--clr-border);font-size:1rem}
  .nav-link.active{border-bottom-color:var(--clr-border);background:var(--clr-bg2)}
  .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}
}
@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-cover{position:relative;height:220px;border-radius:var(--r-xl);overflow:hidden;
  background:linear-gradient(120deg,var(--clr-blue),var(--clr-accent))}
.profile-cover img{width:100%;height:100%;object-fit:cover}
.profile-head{display:flex;gap:20px;align-items:flex-end;margin-top:-56px;padding:0 24px;position:relative;z-index:2}
.profile-avatar{width:120px;height:120px;border-radius:50%;border:4px solid var(--clr-surface);
  object-fit:cover;background:var(--clr-bg2);box-shadow:var(--shadow-md)}
.profile-meta{flex:1;padding-bottom:8px}
.profile-meta h1{margin:0}
.profile-actions{display:flex;gap:10px;align-items:center}
.profile-stats{display:flex;gap:26px;flex-wrap:wrap;margin:14px 0}
.profile-stats .p-stat b{font-size:1.3rem;display:block;color:var(--clr-text)}
.profile-stats .p-stat span{color:var(--clr-text3);font-size:.82rem}
.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}
.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)}
.post-item{display:flex;gap:12px;padding:14px 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}
.level-pill{background:var(--clr-gold-light);color:var(--clr-gold);border-radius:999px;padding:3px 12px;font-size:.8rem;font-weight:600}

/* --- 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-wrap{display:grid;grid-template-columns:248px 1fr;gap:22px;align-items:start;
  max-width:1280px;margin:0 auto;padding:24px 20px}
.panel-side{background:var(--clr-surface);border:1px solid var(--clr-border);border-radius:var(--r-xl);
  padding:14px;position:sticky;top:84px;box-shadow:var(--shadow-sm)}
.panel-user{display:flex;gap:10px;align-items:center;padding:8px 8px 14px;border-bottom:1px solid var(--clr-border);margin-bottom:10px}
.panel-user img{width:46px;height:46px;border-radius:50%;object-fit:cover;background:var(--clr-bg2)}
.panel-nav a{display:flex;align-items:center;gap:10px;padding:11px 12px;border-radius:var(--r-md);
  color:var(--clr-text2);font-weight:500;font-size:.93rem}
.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)}
.panel-nav a i{font-size:19px}
.panel-main{min-width:0}
.kpi-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:14px}
.kpi{background:var(--clr-surface);border:1px solid var(--clr-border);border-radius:var(--r-lg);
  padding:16px;box-shadow:var(--shadow-sm)}
.kpi .ic{width:42px;height:42px;border-radius:12px;display:flex;align-items:center;justify-content:center;font-size:22px;margin-bottom:10px}
.kpi b{font-size:1.6rem;display:block;line-height:1.2}
.kpi span{color:var(--clr-text3);font-size:.85rem}
.xp-card{background:linear-gradient(120deg,var(--clr-blue),var(--clr-accent));color:#fff;
  border-radius:var(--r-xl);padding:22px;box-shadow:var(--shadow-md)}
.xp-bar{height:12px;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}
.badge-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:12px}
.badge-card{background:var(--clr-surface);border:1px solid var(--clr-border);border-radius:var(--r-lg);
  padding:14px;text-align:center;opacity:.42;filter:grayscale(1);transition:.15s}
.badge-card.on{opacity:1;filter:none;border-color:var(--clr-gold)}
.badge-card .bi{width:48px;height:48px;border-radius:50%;background:var(--clr-gold-light);color:var(--clr-gold);
  display:flex;align-items:center;justify-content:center;font-size:24px;margin:0 auto 8px}
.badge-card.on .bi{background:var(--clr-gold);color:#fff}
.panel-card{background:var(--clr-surface);border:1px solid var(--clr-border);border-radius:var(--r-xl);
  padding:20px;box-shadow:var(--shadow-sm);margin-bottom:18px}
.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)}
@media (max-width:860px){
  .panel-wrap{grid-template-columns:1fr;padding:14px}
  .panel-side{position:static;display:none}
  .panel-mobile-nav{display:flex;gap:8px;overflow:auto;padding-bottom:6px;margin-bottom:6px}
  .panel-mobile-nav a{white-space:nowrap;padding:8px 14px;border-radius:999px;background:var(--clr-surface);
    border:1px solid var(--clr-border);color:var(--clr-text2);font-size:.85rem}
  .panel-mobile-nav a.active{background:var(--clr-accent);color:#fff;border-color:var(--clr-accent)}
}

/* =============================================================
   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:
    radial-gradient(1200px 240px at 90% -20%, var(--clr-blue-light), transparent),
    var(--clr-surface2);
}
.section-sub{color:var(--clr-text3);font-size:.9rem;margin-top:-6px;margin-bottom:14px}

/* Promo banners between sections */
.promo-row{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:26px 0}
.promo{
  position:relative;overflow:hidden;border-radius:var(--r-xl);padding:26px 28px;
  color:#fff;min-height:148px;display:flex;flex-direction:column;justify-content:center;
  box-shadow:var(--shadow-md);transition:transform .18s,box-shadow .18s;
}
.promo:hover{transform:translateY(-3px);box-shadow:var(--shadow-lg)}
.promo.blue{background:linear-gradient(120deg,#16335e,#2E6FB8)}
.promo.accent{background:linear-gradient(120deg,#A83A1E,#E06A45)}
.promo.dark{background:linear-gradient(120deg,#1A1915,#3A3830)}
.promo h3{font-size:1.3rem;font-weight:800;margin-bottom:6px}
.promo p{opacity:.92;font-size:.92rem;max-width:30ch}
.promo .promo-cta{margin-top:14px;align-self:flex-start;background:rgba(255,255,255,.16);
  border:1px solid rgba(255,255,255,.3);color:#fff;padding:8px 18px;border-radius:999px;
  font-size:.86rem;font-weight:600;backdrop-filter:blur(4px)}
.promo .promo-cta:hover{background:rgba(255,255,255,.28)}
.promo .promo-ico{position:absolute;inset-inline-start:auto;inset-inline-end:-12px;bottom:-18px;
  font-size:120px;opacity:.16;line-height:1}
@media (max-width:640px){.promo-row{grid-template-columns:1fr;gap:14px;margin:18px 0}
  .promo{min-height:120px;padding:22px}}

/* =============================================================
   TOP HERO BLOCK: SLIDER + SIDE BANNERS (Electro-style)
   ============================================================= */
.hero-block{display:grid;grid-template-columns:2.2fr 1fr;gap:18px;align-items:stretch}
.hero-side{display:flex;flex-direction:column;gap:18px}
.hero-side .promo{flex:1;min-height:0}

.slider{position:relative;border-radius:var(--r-xl);overflow:hidden;box-shadow:var(--shadow-md);background:var(--clr-bg2)}
.slider-track{display:flex;direction:ltr;transition:transform .55s cubic-bezier(.4,0,.2,1);height:100%}
.slide{flex:0 0 100%;direction:rtl;min-height:340px;display:flex;align-items:center;
  padding:44px;color:#fff;text-decoration:none;background-size:cover;background-position:center}
.slide--blue{background:linear-gradient(120deg,#16335e,#2E6FB8)}
.slide--accent{background:linear-gradient(120deg,#A83A1E,#E06A45)}
.slide--dark{background:linear-gradient(120deg,#1A1915,#3A3830)}
.slide--green{background:linear-gradient(120deg,#1B5E20,#43A047)}
.slide--gold{background:linear-gradient(120deg,#8a6508,#D4A017)}
.slide-body{max-width:60%}
.slide-title{font-size:2.1rem;font-weight:900;line-height:1.3;margin-bottom:10px;text-shadow:0 2px 12px rgba(0,0,0,.25)}
.slide-sub{font-size:1.05rem;opacity:.94;margin-bottom:18px}
.slide-cta{display:inline-block;background:#fff;color:var(--clr-text);padding:10px 22px;border-radius:999px;font-weight:700;font-size:.92rem}
.slider-arrow{position:absolute;top:50%;transform:translateY(-50%);z-index:4;width:42px;height:42px;
  border-radius:50%;background:rgba(255,255,255,.85);border:0;cursor:pointer;display:flex;
  align-items:center;justify-content:center;font-size:22px;color:#222;box-shadow:var(--shadow-sm)}
.slider-arrow:hover{background:#fff}
.slider-arrow.prev{right:14px}.slider-arrow.next{left:14px}
.slider-dots{position:absolute;bottom:14px;left:0;right:0;display:flex;gap:8px;justify-content:center;z-index:4}
.slider-dots .dot{width:9px;height:9px;border-radius:50%;border:0;background:rgba(255,255,255,.5);cursor:pointer;padding:0;transition:width .25s,background .25s}
.slider-dots .dot.active{width:24px;border-radius:6px;background:#fff}
@media (max-width:860px){
  .hero-block{grid-template-columns:1fr}
  .hero-side{flex-direction:row}
  .slide{min-height:240px;padding:28px}
  .slide-title{font-size:1.5rem}.slide-body{max-width:80%}
}
@media (max-width:560px){.hero-side{flex-direction:column}.slide-sub{font-size:.92rem}}

/* =============================================================
   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}
}

/* ── 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,#10204a 0%,#1E4D8C 55%,#6a2bd9 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(108,123,255,.45),transparent),
             radial-gradient(360px 240px at 10% 120%,rgba(0,200,150,.25),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,#ffd86b,#ff9d54);-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:#ffd86b}
.online-cta-row{display:flex;flex-wrap:wrap;gap:12px;margin-top:8px}
.online-cta-primary{background:#fff;color:#16335e;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:rgba(255,255,255,.95);color:#16335e;display:flex;align-items:center;justify-content:center;
  font-size:30px;box-shadow:0 10px 30px rgba(0,0,0,.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,#10204a,#1E4D8C 60%,#6a2bd9);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}}
