/* ============================================================
   لعيب؟ - LA'EEB FOOTBALL TRIVIA - PREMIUM FOOTBALL THEME
   ============================================================ */

:root {
  --laeib-green: #0c8a3e;
  --laeib-green-dark: #064a22;
  --laeib-green-soft: rgba(12, 138, 62, 0.12);
  --laeib-pitch-1: #0f6b32;
  --laeib-pitch-2: #0a4a23;
  --laeib-gold: #e8b730;
  --laeib-white: #f8fafc;
}

/* ===== CARD / PITCH ===== */
.laeib-card {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.02) 100%),
    rgba(8, 18, 12, 0.7);
  border: 1px solid rgba(232, 183, 48, 0.18);
  border-radius: 20px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow:
    0 10px 40px rgba(0,0,0,0.45),
    inset 0 1px 0 rgba(255,255,255,0.04);
  overflow: hidden;
  position: relative;
}

/* The "pitch" - subtle football field stripes behind question */
.laeib-pitch {
  background:
    repeating-linear-gradient(
      180deg,
      rgba(12, 138, 62, 0.06) 0px,
      rgba(12, 138, 62, 0.06) 40px,
      rgba(12, 138, 62, 0.12) 40px,
      rgba(12, 138, 62, 0.12) 80px
    ),
    linear-gradient(180deg, rgba(8,18,12,0.85), rgba(6,12,8,0.95));
  border: 1px solid rgba(232, 183, 48, 0.25);
  box-shadow:
    0 10px 50px rgba(0,0,0,0.55),
    inset 0 1px 0 rgba(255,255,255,0.05),
    inset 0 0 0 1px rgba(12, 138, 62, 0.08);
}
.laeib-pitch::before {
  /* Center circle hint */
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 50%, transparent 60px, rgba(12, 138, 62, 0.18) 61px, rgba(12, 138, 62, 0.18) 63px, transparent 64px);
  opacity: 0.4;
  pointer-events: none;
}

/* ===== CHIPS / BADGES ===== */
.laeib-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--laeib-white);
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
}
.laeib-chip-q {
  background: rgba(232, 183, 48, 0.10);
  color: var(--laeib-gold);
  border-color: rgba(232, 183, 48, 0.32);
}
.laeib-chip-scope {
  background: rgba(12, 138, 62, 0.16);
  color: #6ee7b7;
  border-color: rgba(12, 138, 62, 0.40);
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.laeib-flag {
  font-size: 1.05rem;
  line-height: 1;
}

.laeib-streak {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(251,146,60,0.16), rgba(251,113,133,0.12));
  border: 1px solid rgba(251,146,60,0.40);
  color: #fdba74;
  font-weight: 800;
  font-size: 0.85rem;
  animation: laeib-pulse 1.6s ease-in-out infinite;
}
.laeib-score {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(232,183,48,0.18), rgba(232,183,48,0.08));
  border: 1px solid rgba(232,183,48,0.45);
  color: var(--laeib-gold);
  font-weight: 800;
  font-size: 0.9rem;
}

/* ===== TIMER ===== */
.laeib-timer-wrap {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 14px;
}
.laeib-timer {
  font-family: 'Cairo', 'Poppins', monospace;
  font-size: 4.2rem;
  font-weight: 900;
  line-height: 1;
  color: var(--laeib-gold);
  text-shadow: 0 4px 24px rgba(232,183,48,0.32);
  transition: color 0.2s ease;
  letter-spacing: -2px;
}
.laeib-timer-label {
  font-size: 1rem;
  color: rgba(255,255,255,0.5);
  font-weight: 600;
}
.laeib-timer-bar-wrap {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.06);
  overflow: hidden;
  margin-bottom: 22px;
}
.laeib-timer-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--laeib-gold), #f5d261);
  transition: width 1s linear, background 0.3s ease;
  border-radius: 999px;
  box-shadow: 0 0 18px rgba(232,183,48,0.4);
}

/* ===== QUESTION ===== */
.laeib-question {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.6;
  margin-bottom: 28px;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
  padding: 0 6px;
}
@media (min-width: 768px) {
  .laeib-question { font-size: 1.85rem; }
}
@media (min-width: 1024px) {
  .laeib-question { font-size: 2.1rem; }
}

/* ===== OPTIONS (football jersey buttons) ===== */
.laeib-option {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 16px 18px;
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
  border: 1.5px solid rgba(255,255,255,0.08);
  color: #fff;
  font-weight: 600;
  font-size: 1.02rem;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  text-align: inherit;
  position: relative;
  overflow: hidden;
}
.laeib-option::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(12,138,62,0.08), transparent);
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}
.laeib-option:hover {
  transform: translateY(-2px);
  border-color: rgba(232,183,48,0.5);
  background:
    linear-gradient(135deg, rgba(232,183,48,0.08), rgba(255,255,255,0.02));
  box-shadow: 0 8px 24px rgba(232,183,48,0.16);
}
.laeib-option:hover::before { opacity: 1; }

.laeib-option-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 12px;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.18), transparent 60%),
    linear-gradient(135deg, var(--laeib-pitch-1), var(--laeib-pitch-2));
  color: #fff;
  font-weight: 900;
  font-size: 1.05rem;
  border: 1.5px solid rgba(232,183,48,0.4);
  box-shadow: 0 2px 10px rgba(0,0,0,0.4);
}
.laeib-option-text {
  flex: 1;
  text-align: start;
}
.laeib-option-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.04);
  color: transparent;
  font-size: 0.85rem;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

/* States */
.laeib-option.laeib-correct {
  background: linear-gradient(135deg, rgba(34,197,94,0.32), rgba(34,197,94,0.12)) !important;
  border-color: #22c55e !important;
  box-shadow: 0 0 30px rgba(34,197,94,0.35);
  animation: laeib-pop 0.4s ease;
}
.laeib-option.laeib-correct .laeib-option-num {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  border-color: #4ade80;
}
.laeib-option.laeib-correct .laeib-option-icon {
  background: #22c55e;
  color: #fff;
}

.laeib-option.laeib-wrong {
  background: linear-gradient(135deg, rgba(239,68,68,0.28), rgba(239,68,68,0.10)) !important;
  border-color: #ef4444 !important;
  box-shadow: 0 0 24px rgba(239,68,68,0.32);
  animation: laeib-shake 0.4s ease;
}
.laeib-option.laeib-wrong .laeib-option-num {
  background: linear-gradient(135deg, #ef4444, #b91c1c);
  border-color: #fca5a5;
}
.laeib-option.laeib-wrong .laeib-option-icon::before {
  content: '\f00d'; /* fa times */
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
}
.laeib-option.laeib-wrong .laeib-option-icon {
  background: #ef4444;
  color: #fff;
}

.laeib-option.laeib-faded {
  opacity: 0.45;
  filter: grayscale(0.5);
}

/* ===== CHAT HINT ===== */
.laeib-chat-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  padding: 10px 14px;
  margin-top: 14px;
  border-radius: 12px;
  background: rgba(255,255,255,0.02);
  border: 1px dashed rgba(255,255,255,0.08);
}
.laeib-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 0 0 rgba(239,68,68,0.7);
  animation: laeib-pulse 1.5s ease infinite;
  display: inline-block;
}

/* ===== CHAT LIVE BADGE ===== */
.laeib-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(239, 68, 68, 0.14);
  border: 1px solid rgba(239, 68, 68, 0.45);
  color: #fca5a5;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.6px;
}
.laeib-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ef4444;
  animation: laeib-pulse 1.4s infinite;
}

/* ===== RESULTS ===== */
.laeib-results-icon {
  font-size: 5rem;
  margin-bottom: 12px;
  filter: drop-shadow(0 6px 14px rgba(232,183,48,0.35));
}
.laeib-results-title {
  font-size: 1.8rem;
  font-weight: 900;
  margin-bottom: 8px;
}
.laeib-results-score {
  font-size: 4.5rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--laeib-gold), #f5d261, #fff7d6);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 10px;
  letter-spacing: -2px;
}
.laeib-results-grade {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--laeib-gold);
  margin-bottom: 24px;
}
.laeib-results-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 18px;
}
.laeib-stat {
  padding: 14px 8px;
  border-radius: 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(232,183,48,0.18);
}
.laeib-stat-value {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--laeib-gold);
}
.laeib-stat-label {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.6);
  margin-top: 2px;
}

/* ===== GAME CARD on the games grid - football-themed accent ===== */
.game-card[data-category="football"] .game-image::after,
.game-card[data-category="laeib"] .game-image::after {
  content: '⚽';
  position: absolute;
  bottom: 10px;
  left: 10px;
  font-size: 1.8rem;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.6));
  z-index: 2;
}

/* ===== ANIMATIONS ===== */
@keyframes laeib-pulse {
  0%, 100% { transform: scale(1);   box-shadow: 0 0 0 0 rgba(239,68,68,0.5); }
  50%      { transform: scale(1.1); box-shadow: 0 0 0 8px rgba(239,68,68,0); }
}
@keyframes laeib-pop {
  0%   { transform: scale(0.95); }
  50%  { transform: scale(1.04); }
  100% { transform: scale(1); }
}
@keyframes laeib-shake {
  0%, 100% { transform: translateX(0); }
  25%      { transform: translateX(-6px); }
  75%      { transform: translateX(6px); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
  .laeib-timer       { font-size: 3.2rem; }
  .laeib-question    { font-size: 1.2rem; }
  .laeib-option      { padding: 13px 12px; font-size: 0.94rem; }
  .laeib-option-num  { width: 32px; height: 32px; font-size: 0.95rem; }
  .laeib-results-score { font-size: 3.2rem; }
  .laeib-results-icon  { font-size: 3.8rem; }
}

/* ============================================================
   ===== CHAT LEADERBOARD (end-of-game results panel) =========
   Added 2026-05-13 — shows ranking of chat users + per-user
   trail of every answer they gave during the rounds.
   ============================================================ */

.laeib-results-wrap {
  width: 100%;
}

.laeib-leaderboard {
  background: linear-gradient(180deg, rgba(12,138,62,0.12), rgba(0,0,0,0.4));
  border: 1px solid rgba(232,183,48,0.22);
}

.laeib-lb-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--laeib-gold, #e8b730);
  margin-bottom: 4px;
}
.laeib-lb-title-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(232,183,48,0.25), rgba(232,183,48,0.05));
  border: 1px solid rgba(232,183,48,0.35);
  font-size: 1rem;
}
.laeib-lb-count {
  margin-inline-start: auto;
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(255,255,255,0.75);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 4px 10px;
  border-radius: 999px;
}
.laeib-lb-subtitle {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 14px;
}

.laeib-lb-empty {
  text-align: center;
  padding: 28px 12px;
  color: rgba(255,255,255,0.55);
}
.laeib-lb-empty-icon {
  font-size: 2.6rem;
  margin-bottom: 8px;
  opacity: 0.7;
}

.laeib-lb-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.laeib-lb-row {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.18s, background 0.18s;
}
.laeib-lb-row:hover {
  border-color: rgba(232,183,48,0.35);
  background: rgba(232,183,48,0.04);
}
.laeib-lb-row.laeib-rank-1 {
  border-color: rgba(255,215,0,0.6);
  background: linear-gradient(135deg, rgba(255,215,0,0.10), rgba(255,215,0,0.02));
  box-shadow: 0 0 0 1px rgba(255,215,0,0.15) inset, 0 4px 18px rgba(255,215,0,0.08);
}
.laeib-lb-row.laeib-rank-2 {
  border-color: rgba(192,192,192,0.5);
  background: linear-gradient(135deg, rgba(192,192,192,0.08), rgba(192,192,192,0.02));
}
.laeib-lb-row.laeib-rank-3 {
  border-color: rgba(205,127,50,0.5);
  background: linear-gradient(135deg, rgba(205,127,50,0.08), rgba(205,127,50,0.02));
}

.laeib-lb-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  cursor: pointer;
  user-select: none;
}

.laeib-lb-rank {
  min-width: 42px;
  text-align: center;
  font-size: 1.6rem;
  font-weight: 800;
  color: rgba(255,255,255,0.85);
}
.laeib-rank-1 .laeib-lb-rank,
.laeib-rank-2 .laeib-lb-rank,
.laeib-rank-3 .laeib-lb-rank {
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
}

.laeib-lb-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(232,183,48,0.35);
  background: #1a1a1a;
  flex-shrink: 0;
}
.laeib-lb-avatar-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #fff;
  font-size: 1.05rem;
  text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}

.laeib-lb-info {
  flex: 1;
  min-width: 0;
}
.laeib-lb-name {
  font-weight: 800;
  font-size: 1.02rem;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}
.laeib-lb-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.laeib-lb-badge {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid transparent;
}
.laeib-lb-badge.ok {
  background: rgba(34,197,94,0.15);
  color: #4ade80;
  border-color: rgba(34,197,94,0.3);
}
.laeib-lb-badge.bad {
  background: rgba(239,68,68,0.12);
  color: #f87171;
  border-color: rgba(239,68,68,0.25);
}
.laeib-lb-badge.pct {
  background: rgba(232,183,48,0.14);
  color: var(--laeib-gold, #e8b730);
  border-color: rgba(232,183,48,0.3);
}

.laeib-lb-caret {
  width: 32px; height: 32px;
  display: flex;
  align-items: center; justify-content: center;
  color: rgba(255,255,255,0.5);
  transition: transform 0.18s, color 0.18s;
}
.laeib-lb-caret.open {
  transform: rotate(180deg);
  color: var(--laeib-gold, #e8b730);
}

.laeib-trail {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  border-top: 1px solid transparent;
  padding: 0 14px;
}
.laeib-trail.open {
  max-height: 1200px;
  border-top-color: rgba(255,255,255,0.06);
  padding: 10px 14px 14px;
  overflow-y: auto;
}
.laeib-trail-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 8px 10px;
  margin-bottom: 6px;
  border-radius: 10px;
  background: rgba(0,0,0,0.18);
  border: 1px solid rgba(255,255,255,0.05);
  font-size: 0.86rem;
}
.laeib-trail-row.ok {
  border-left: 3px solid #22c55e;
  background: rgba(34,197,94,0.06);
}
.laeib-trail-row.bad {
  border-left: 3px solid #ef4444;
  background: rgba(239,68,68,0.06);
}
[dir="rtl"] .laeib-trail-row.ok,
[dir="rtl"] .laeib-trail-row.bad {
  border-left: none;
}
[dir="rtl"] .laeib-trail-row.ok  { border-right: 3px solid #22c55e; }
[dir="rtl"] .laeib-trail-row.bad { border-right: 3px solid #ef4444; }

.laeib-trail-q {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
}
.laeib-trail-idx {
  flex-shrink: 0;
  font-weight: 800;
  font-size: 0.78rem;
  color: var(--laeib-gold, #e8b730);
  background: rgba(232,183,48,0.12);
  border: 1px solid rgba(232,183,48,0.25);
  border-radius: 6px;
  padding: 2px 7px;
  margin-top: 1px;
}
.laeib-trail-text {
  color: rgba(255,255,255,0.85);
  line-height: 1.4;
  word-break: break-word;
}
.laeib-trail-ans {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
  font-size: 0.84rem;
}
.laeib-trail-icon {
  font-size: 0.95rem;
}
.laeib-trail-given {
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
}
.laeib-trail-given.is-ok {
  background: rgba(34,197,94,0.18);
  color: #4ade80;
}
.laeib-trail-given.is-bad {
  background: rgba(239,68,68,0.15);
  color: #f87171;
  text-decoration: line-through;
  text-decoration-color: rgba(239,68,68,0.5);
}
.laeib-trail-sep {
  color: rgba(255,255,255,0.4);
  font-weight: 700;
}
.laeib-trail-correct {
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(34,197,94,0.14);
  color: #4ade80;
  border: 1px dashed rgba(34,197,94,0.4);
}
.laeib-trail-empty {
  text-align: center;
  color: rgba(255,255,255,0.4);
  font-size: 0.85rem;
  padding: 12px;
}

/* ===== Responsive ===== */
@media (max-width: 640px) {
  .laeib-lb-head     { gap: 8px; padding: 10px; }
  .laeib-lb-rank     { font-size: 1.3rem; min-width: 32px; }
  .laeib-lb-avatar   { width: 38px; height: 38px; }
  .laeib-lb-name     { font-size: 0.94rem; }
  .laeib-lb-badge    { font-size: 0.72rem; padding: 2px 6px; }
  .laeib-trail-row   { grid-template-columns: 1fr; }
  .laeib-trail-ans   { justify-content: flex-start; }
}

/* ============================================================
   How-to-play popup (semi-transparent, glassmorphism)
   ============================================================ */
.laeib-howto-overlay {
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(8,80,40,0.55) 0%, rgba(0,0,0,0.78) 100%);
  backdrop-filter: blur(8px) saturate(140%);
  -webkit-backdrop-filter: blur(8px) saturate(140%);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.22s ease;
}
.laeib-howto-overlay.show { opacity: 1; }

.laeib-howto-card {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(20, 30, 22, 0.88) 0%, rgba(8, 18, 12, 0.92) 100%);
  border: 1.5px solid rgba(232,183,48,0.35);
  box-shadow:
    0 30px 80px rgba(0,0,0,0.6),
    0 0 0 1px rgba(232,183,48,0.10),
    inset 0 1px 0 rgba(255,255,255,0.06);
  padding: 28px 26px 22px;
  color: #fff;
  font-family: 'Cairo', 'Poppins', sans-serif;
  transform: translateY(12px) scale(0.97);
  transition: transform 0.26s cubic-bezier(.2,.9,.3,1);
}
.laeib-howto-overlay.show .laeib-howto-card { transform: translateY(0) scale(1); }

.laeib-howto-close {
  position: absolute;
  top: 12px;
  inset-inline-start: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.18s;
}
.laeib-howto-close:hover {
  background: rgba(239,68,68,0.18);
  border-color: rgba(239,68,68,0.5);
  color: #fff;
}

.laeib-howto-hero {
  text-align: center;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px dashed rgba(232,183,48,0.18);
}
.laeib-howto-ball {
  font-size: 2.6rem;
  display: inline-block;
  animation: laeibBallSpin 6s linear infinite;
  filter: drop-shadow(0 6px 14px rgba(232,183,48,0.25));
}
@keyframes laeibBallSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.laeib-howto-title {
  margin: 6px 0 4px;
  font-size: 1.55rem;
  font-weight: 900;
  color: #e8b730;
  letter-spacing: 0.2px;
}
.laeib-howto-sub {
  margin: 0;
  font-size: 0.92rem;
  color: rgba(255,255,255,0.62);
}

.laeib-howto-steps {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.laeib-howto-steps li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.06);
  transition: all 0.2s;
}
.laeib-howto-steps li:hover {
  background: rgba(232,183,48,0.06);
  border-color: rgba(232,183,48,0.22);
}
.laeib-howto-num {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e8b730, #d4a017);
  color: #1a1a1a;
  font-weight: 900;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(232,183,48,0.25);
}
.laeib-howto-steps li b {
  display: block;
  font-size: 0.95rem;
  color: #fff;
  margin-bottom: 2px;
  font-weight: 700;
}
.laeib-howto-steps li p {
  margin: 0;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.5;
}

.laeib-howto-tip {
  margin: 0 0 18px;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(232,183,48,0.07);
  border: 1px dashed rgba(232,183,48,0.30);
  font-size: 0.82rem;
  color: rgba(255,255,255,0.78);
  display: flex;
  align-items: center;
  gap: 8px;
}
.laeib-howto-tip i { color: #e8b730; }

.laeib-howto-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.laeib-howto-dont {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.72);
  cursor: pointer;
  user-select: none;
}
.laeib-howto-dont input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #e8b730;
  cursor: pointer;
}
.laeib-howto-btn {
  padding: 10px 22px;
  border-radius: 12px;
  background: linear-gradient(135deg, #e8b730 0%, #d4a017 100%);
  color: #1a1a1a;
  font-weight: 800;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 6px 16px rgba(232,183,48,0.28);
}
.laeib-howto-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(232,183,48,0.40);
}
.laeib-howto-btn:active { transform: translateY(0); }

@media (max-width: 560px) {
  .laeib-howto-card { padding: 22px 18px 18px; border-radius: 18px; }
  .laeib-howto-title { font-size: 1.3rem; }
  .laeib-howto-ball { font-size: 2.1rem; }
  .laeib-howto-actions { flex-direction: column-reverse; align-items: stretch; }
  .laeib-howto-btn { width: 100%; }
  .laeib-howto-dont { justify-content: center; }
}

/* ============================================================
   Help (?) FAB next to the timer — lets the user reopen the popup
   ============================================================ */
.laeib-help-fab {
  position: absolute;
  top: 12px;
  inset-inline-start: 12px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(232,183,48,0.12);
  border: 1.5px solid rgba(232,183,48,0.35);
  color: #e8b730;
  font-weight: 900;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.18s;
  z-index: 5;
}
.laeib-help-fab:hover {
  background: rgba(232,183,48,0.22);
  transform: scale(1.06);
}

/* ============================================================
   Chat Picks — horizontal bar UNDER the answer options.
   This restores the question card to its full width and gives
   the chat answers a clear, full-width strip that doesn't
   compete with the game for attention.
   ============================================================ */
.laeib-chat-bar {
  margin-top: 14px;
  padding: 12px 14px 10px;
  border-radius: 14px;
  background: linear-gradient(180deg,
    rgba(232,183,48,0.08) 0%,
    rgba(232,183,48,0.03) 100%);
  border: 1px solid rgba(232,183,48,0.22);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.04),
    0 4px 18px -8px rgba(0,0,0,0.35);
  position: relative;
  overflow: hidden;
}
.laeib-chat-bar::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 60px at 50% -10px, rgba(232,183,48,0.10), transparent 60%);
  pointer-events: none;
}
.laeib-chat-bar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}
.laeib-chat-bar-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  color: var(--gold, #E8B730);
  font-size: 0.92rem;
  letter-spacing: 0.2px;
}
.laeib-chat-bar-title > i {
  font-size: 0.95rem;
  opacity: 0.95;
}
.laeib-chat-bar-title .laeib-live-badge {
  margin-inline-start: 4px;
}
.laeib-chat-bar-hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: rgba(229,231,235,0.78);
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  padding: 5px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.laeib-chat-bar-hint .laeib-kick-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  background: #53fc18;
  color: #0b0b0b;
  font-weight: 900;
  font-size: 0.7rem;
  border-radius: 4px;
  line-height: 1;
}
.laeib-chat-bar-body {
  position: relative;
  z-index: 1;
  max-height: 140px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-inline-end: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(232,183,48,0.35) transparent;
}
.laeib-chat-bar-body::-webkit-scrollbar { width: 6px; }
.laeib-chat-bar-body::-webkit-scrollbar-thumb {
  background: rgba(232,183,48,0.35);
  border-radius: 3px;
}
.laeib-chat-bar-body::-webkit-scrollbar-track { background: transparent; }
.laeib-chat-bar-empty {
  text-align: center;
  color: rgba(156,163,175,0.85);
  font-size: 0.82rem;
  padding: 14px 8px;
  margin: 0;
}
/* Make the inner panel render as a horizontal flow of "vote pills"
   so it stays compact and readable in the strip. */
.laeib-chat-bar-body .laeib-chat-row,
.laeib-chat-bar-body > .grid,
.laeib-chat-bar-body > .flex {
  display: flex !important;
  flex-wrap: wrap;
  gap: 8px;
  align-items: stretch;
}
.laeib-chat-bar-body .laeib-card {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px;
  padding: 6px 10px !important;
}

/* Mobile: keep the strip readable, slightly taller scroll area */
@media (max-width: 640px) {
  .laeib-chat-bar { padding: 10px 12px; }
  .laeib-chat-bar-head { gap: 6px; }
  .laeib-chat-bar-title { font-size: 0.85rem; }
  .laeib-chat-bar-hint { font-size: 0.72rem; padding: 4px 8px; }
  .laeib-chat-bar-body { max-height: 160px; }
}

/* ============================================================
   LA'EEB CHAT PICKS — POLISH FIX  (2026-05-13)
   Goals:
     1) Remove the duplicate "إجابات الشات" header that comes
        from the inner renderChatAnswersPanel() — the outer
        .laeib-chat-bar-head already shows the title + LIVE.
     2) Enlarge the chat answers area so users can read picks
        without scrolling (golden-ratio-friendly proportions).
     3) Cleaner spacing, alignment and visual rhythm so the
        section matches the rest of the football theme.
   ============================================================ */

/* 1) Hide the duplicate inner header inside the strip.
      It is rendered by chat-answers-helper.js but the outer
      .laeib-chat-bar already has its own header. */
.laeib-chat-bar .laeib-chat-bar-body .chat-answers-header-v7 {
  display: none !important;
}

/* 2) Flatten the inner panel chrome so it blends with the strip
      (no double border / double background). */
.laeib-chat-bar .laeib-chat-bar-body .chat-answers-panel-v7 {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  overflow: visible !important;
  margin: 0 !important;
  padding: 0 !important;
  max-height: none !important;
}

.laeib-chat-bar .laeib-chat-bar-body .chat-answers-body-v7 {
  padding: 4px 2px 2px !important;
  max-height: none !important;
  overflow: visible !important;
}

/* 3) Enlarge the visible chat strip so 3-4 picks fit without
      forcing the user to scroll. Uses a min-height (always
      visible) + a comfortable max-height (scrolls when many). */
.laeib-chat-bar {
  margin-top: 18px;
  padding: 14px 16px 12px;
}
.laeib-chat-bar-body {
  min-height: 220px;          /* answers visible at-a-glance   */
  max-height: 320px;          /* scrolls only when many picks  */
}

/* 4) Make the inner items a 2-column responsive grid so multiple
      chat answers fit horizontally — no vertical scroll needed
      for typical stream traffic. */
.laeib-chat-bar .laeib-chat-bar-body .chat-answers-body-v7 {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  align-content: start;
}

/* Single-column on small / narrow screens */
@media (max-width: 720px) {
  .laeib-chat-bar .laeib-chat-bar-body .chat-answers-body-v7 {
    grid-template-columns: 1fr;
  }
}

/* 5) Tighter, more legible chat-answer cards inside the strip. */
.laeib-chat-bar .laeib-chat-bar-body .ca-item-v7 {
  margin: 0 !important;
  padding: 8px 10px !important;
  border-radius: 12px !important;
  background: rgba(255,255,255,0.025) !important;
  border: 1px solid rgba(255,255,255,0.05) !important;
}
.laeib-chat-bar .laeib-chat-bar-body .ca-item-v7.ca-correct {
  border-color: rgba(16,185,129,0.30) !important;
  background: rgba(16,185,129,0.08) !important;
}
.laeib-chat-bar .laeib-chat-bar-body .ca-item-v7.ca-wrong {
  border-color: rgba(239,68,68,0.22) !important;
  background: rgba(239,68,68,0.05) !important;
}
.laeib-chat-bar .laeib-chat-bar-body .ca-item-v7.ca-latest {
  border-color: rgba(232,183,48,0.22) !important;
  background: rgba(232,183,48,0.06) !important;
}

/* 6) Slightly larger avatars + username for stream readability. */
.laeib-chat-bar .laeib-chat-bar-body .ca-avatar-v7 {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  font-size: 0.85rem;
}
.laeib-chat-bar .laeib-chat-bar-body .ca-username-v7 {
  font-size: 0.82rem;
}
.laeib-chat-bar .laeib-chat-bar-body .ca-answer-v7 {
  font-size: 0.8rem;
}

/* 7) Empty-state: center it nicely inside the now-taller strip. */
.laeib-chat-bar .laeib-chat-bar-body .ca-empty-v7 {
  grid-column: 1 / -1;
  padding: 28px 16px !important;
}

/* 8) Mobile tuning */
@media (max-width: 640px) {
  .laeib-chat-bar-body {
    min-height: 180px;
    max-height: 280px;
  }
  .laeib-chat-bar .laeib-chat-bar-body .ca-avatar-v7 {
    width: 30px; height: 30px; font-size: 0.78rem;
  }
}
