/* صفحة طريقة اللعب */

.how-hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: var(--sp-xxl) var(--sp-sm);
  border-bottom: 1px solid var(--hairline);
}
.how-hero-bg {
  position: absolute;
  inset: 0;
  background: url("/bg/diwaniya-night.webp") center/cover;
  opacity: 0.5;
}
.how-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(24,24,24,0.72), rgba(24,24,24,0.55) 45%, var(--canvas));
}
@media (max-width: 640px) { .how-hero-bg { background-image: url("/bg/diwaniya-night@sm.webp"); } }
.how-hero-inner { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; }
.how-hero h1 {
  font-size: clamp(1.9rem, 5.5vw, 3.4rem);
  font-weight: 500;
  line-height: 1.2;
  margin: var(--sp-xxs) 0 var(--sp-xs);
}
.how-hero .lead {
  color: var(--body);
  font-size: clamp(0.95rem, 2.2vw, 1.1rem);
  line-height: 1.8;
  margin-bottom: var(--sp-md);
}

/* ---------- الفكرة: فريق ضد فريق ---------- */
.idea-split {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--sp-sm);
}
@media (max-width: 700px) { .idea-split { grid-template-columns: 1fr; } }
.idea-card {
  background: var(--canvas-elevated);
  padding: var(--sp-md) var(--sp-sm);
  text-align: center;
  border-top: 3px solid var(--hairline);
}
.idea-card.bad { border-top-color: var(--primary); }
.idea-card.good { border-top-color: var(--success); }
.idea-icon { font-size: 2.6rem; line-height: 1; }
.idea-icon img { width: 64px; height: 64px; image-rendering: pixelated; }
.idea-card h3 { font-size: 1.2rem; font-weight: 700; margin: var(--sp-xxs) 0; }
.idea-card p { color: var(--body); font-size: 0.9rem; line-height: 1.7; }
.idea-win {
  margin-top: var(--sp-xs);
  padding-top: var(--sp-xs);
  border-top: 1px solid var(--hairline);
  font-size: 0.82rem;
  font-weight: 700;
}
.idea-card.bad .idea-win { color: #ff8a80; }
.idea-card.good .idea-win { color: #57d99a; }
.idea-vs {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--muted);
  text-align: center;
}

/* ---------- دورة اللعبة ---------- */
.cycle { list-style: none; display: flex; flex-direction: column; gap: var(--sp-xs); }
.cycle-step {
  display: flex;
  gap: var(--sp-sm);
  align-items: flex-start;
  background: var(--canvas-elevated);
  padding: var(--sp-sm);
  position: relative;
}
.cycle-num {
  flex: 0 0 auto;
  width: 54px; height: 54px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.7rem;
  background: var(--canvas);
  border: 1px solid var(--hairline);
}
.cycle-step h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 4px; }
.cycle-step p { color: var(--body); font-size: 0.9rem; line-height: 1.75; }
.cycle-step p b { color: var(--ink); }
.cycle-end { text-align: center; color: var(--muted); margin-top: var(--sp-sm); font-size: 0.9rem; }

/* ---------- البطاقة التجريبية ---------- */
.flip-demo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-xs);
  margin-bottom: var(--sp-lg);
}
.flip-demo-hint { color: var(--body); font-size: 0.88rem; }

/* ---------- ملاحظة الإعداد ---------- */
.setup-note {
  margin-top: var(--sp-sm);
  background: var(--canvas-elevated);
  border-right: 3px solid var(--primary);
  padding: var(--sp-xs) var(--sp-sm);
  color: var(--body);
  font-size: 0.9rem;
  line-height: 1.7;
  text-align: right;
}
.setup-note b { color: var(--ink); }
