/* 🏙️ بطاقة «مدينتي» المميزة تحت بطاقة التوب (علي 2026-11-21: «خل شكل البطاقة عريض وواضح»)
   الجوال: صورة عريضة فوق بعرض البطاقة كامل، وتحتها العنوان والوصف وزر كبير بعرض البطاقة.
   الكمبيوتر: الصورة يمين والكلام يسار. نفس النيون البنفسجي. */
.cf-card {
  position: relative;
  grid-column: 1 / -1; /* الرئيسية شبكة عمودين: البطاقة تاخذ العرض كامل مثل بطاقة التوب */
  display: flex;
  flex-direction: column;
  margin: 14px 0 6px;
  border-radius: 22px;
  overflow: hidden;
  text-decoration: none;
  color: #f5f3ff;
  background: linear-gradient(160deg, rgba(76, 29, 149, .6), rgba(20, 10, 51, .95) 65%);
  border: 1.5px solid rgba(34, 211, 238, .55);
  box-shadow: 0 0 0 1px rgba(168, 85, 247, .35), 0 0 26px -4px rgba(34, 211, 238, .45), 0 0 34px -10px rgba(236, 72, 153, .5), 0 18px 40px -20px rgba(0, 0, 0, .8);
  transition: box-shadow .2s, transform .2s;
}
.cf-card:hover, .cf-card:focus-visible { box-shadow: 0 0 0 1px rgba(34, 211, 238, .7), 0 0 34px -2px rgba(34, 211, 238, .6), 0 18px 40px -20px rgba(0, 0, 0, .8); transform: translateY(-1px); }
.cf-card:focus-visible { outline: 2px solid #22d3ee; outline-offset: 3px; }
.cf-pic { position: relative; aspect-ratio: 2 / 1; background: #140a33; }
.cf-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; display: block; }
/* تلاشي ناعم من الصورة للكلام */
.cf-pic::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 62%, rgba(20, 10, 51, .9)); pointer-events: none; }
.cf-new {
  position: absolute; top: 10px; right: 10px; z-index: 1;
  padding: 4px 14px; border-radius: 999px;
  font-size: 14px; font-weight: 800; line-height: 1.5;
  color: #fff; background: linear-gradient(90deg, #ec4899, #a855f7);
  box-shadow: 0 0 14px rgba(236, 72, 153, .8);
}
.cf-body { display: flex; flex-direction: column; gap: 8px; padding: 12px 16px 16px; min-width: 0; }
.cf-body h2 {
  margin: 0; font-size: clamp(24px, 7vw, 30px); font-weight: 800; line-height: 1.2;
  background: linear-gradient(180deg, #fff 30%, #c4b5fd); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 12px rgba(168, 85, 247, .7));
}
.cf-body p { margin: 0; font-size: clamp(15px, 4.2vw, 17px); line-height: 1.6; color: #ece8ff; font-weight: 700; }
.cf-go {
  display: flex; align-items: center; justify-content: center;
  min-height: 52px; margin-top: 4px; padding: 0 18px; border-radius: 16px;
  font-weight: 800; font-size: 18px; white-space: nowrap;
  color: #06122a; background: linear-gradient(90deg, #22d3ee, #3b82f6);
  box-shadow: 0 0 20px rgba(34, 211, 238, .5);
}
.cf-card:hover .cf-go { background: linear-gradient(90deg, #67e8f9, #60a5fa); }

/* كمبيوتر وتابلت عريض: الصورة يمين والكلام يسار */
@media (min-width: 760px) {
  .cf-card { flex-direction: row; }
  .cf-pic { flex: 0 0 52%; aspect-ratio: auto; min-height: 240px; }
  .cf-pic::after { background: linear-gradient(270deg, transparent 60%, rgba(20, 10, 51, .9)); }
  .cf-body { justify-content: center; padding: 24px 30px; gap: 12px; }
  .cf-go { align-self: flex-start; min-width: 220px; }
}
/* 🟢 كم واحد داخل المدينة (نفس شارة باقي الألعاب من game-modes.js، هني مكانها فوق يسار الصورة) */
.cf-pic .cf-online {
  position: absolute; top: 10px; left: 10px; right: auto; transform: none; z-index: 2;
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 99px;
  background: rgba(6, 30, 18, .9); border: 1.5px solid #39ff88; color: #bbf7d0;
  font-size: 13px; font-weight: 900; white-space: nowrap; box-shadow: 0 0 12px rgba(57, 255, 136, .55); pointer-events: none;
}
.cf-pic .cf-online i { width: 8px; height: 8px; border-radius: 50%; background: #39ff88; box-shadow: 0 0 8px #39ff88; }
.cf-pic .cf-online.hot { border-color: #fb923c; color: #fed7aa; background: rgba(40, 14, 4, .9); box-shadow: 0 0 14px rgba(251, 146, 60, .6); }
.cf-pic .cf-online.hot i { background: #fb923c; box-shadow: 0 0 8px #fb923c; }
@media (prefers-reduced-motion: reduce) { .cf-card, .cf-card:hover { transition: none; transform: none; } }

/* 👁️ زر «مشاهدة» جنب «ادخل مدينتي» (علي 23/11) */
.cf-row { display: flex; gap: 8px; align-items: stretch; flex-wrap: wrap; }
.cf-row .cf-go { flex: 1 1 auto; }
.cf-watch { flex: 0 0 auto; padding: 10px 14px; border: 1.5px solid #a855f7; border-radius: 14px; background: rgba(124, 58, 237, .35); color: #fff; font: inherit; font-weight: 900; cursor: pointer; }
.cf-watch:active { transform: scale(.97); }
