/* ============================================================
   DAILY-CHALLENGE — Desafío Diario (Fase 2)
   Reusa tokens de lm-tokens.css (cargado globalmente) — acá solo
   lo específico de esta pantalla. Mismo lenguaje visual que
   async-leagues.css (Liga OSM) para que ambas pantallas nuevas
   se sientan parte de la misma familia.
   ============================================================ */

.dc-wrap {
  max-width: 640px;
  margin: 0 auto;
  padding: 20px 16px 60px;
  color: var(--lm-text-1, var(--text));
}
.dc-title { font-size: 1.4rem; font-weight: 800; margin: 6px 0 2px; }
.dc-date { color: var(--lm-text-3, var(--text-muted)); font-size: 0.82rem; margin-bottom: 16px; text-transform: capitalize; }
.dc-loading { padding: 40px 0; text-align: center; color: var(--lm-text-3, var(--text-muted)); }

.dc-scenario-card {
  background: var(--lm-surface-2, var(--bg-surface));
  border: 1px solid var(--lm-tbl-border, rgba(128,128,128,0.18));
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
}
.dc-scenario-header { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.dc-badge {
  font-size: 0.66rem; font-weight: 800; letter-spacing: 0.04em;
  padding: 3px 9px; border-radius: 6px; text-transform: uppercase;
}
.dc-badge.partido { background: rgba(5,150,105,0.18); color: #059669; }
.dc-badge.draft    { background: rgba(59,130,246,0.18); color: #3b82f6; }
.dc-badge.mercado  { background: rgba(217,164,6,0.18); color: #d9a406; }
.dc-scenario-title { font-size: 1.05rem; font-weight: 800; margin: 0; }
.dc-scenario-desc { color: var(--lm-text-2, var(--text)); font-size: 0.88rem; line-height: 1.5; margin: 0 0 10px; }
.dc-objetivo {
  font-size: 0.84rem; padding: 8px 10px; border-radius: 8px;
  background: rgba(5,150,105,0.08); border-left: 3px solid #059669;
}
.dc-objetivo strong { color: #059669; }
.dc-estado-inicial {
  margin-top: 8px; font-size: 0.8rem; color: var(--lm-text-3, var(--text-muted));
  padding: 8px 10px; border-radius: 8px; background: rgba(0,0,0,0.04);
}
.dark .dc-estado-inicial { background: rgba(255,255,255,0.04); }
.dc-estado-inicial strong { color: var(--lm-text-1, var(--text)); }

.dc-actions { margin-bottom: 20px; }
.dc-btn {
  width: 100%; padding: 13px; border-radius: 10px; border: none;
  font-size: 0.95rem; font-weight: 800; cursor: pointer;
}
.dc-btn.primario { background: #059669; color: #fff; }
.dc-btn.primario:hover { background: #047857; }
.dc-btn.practica {
  background: transparent; color: var(--lm-text-1, var(--text));
  border: 1px solid var(--lm-tbl-border, rgba(128,128,128,0.25));
}
.dc-btn.practica:hover { border-color: #059669; color: #059669; }

.dc-ya-rankeado {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; margin-bottom: 10px; border-radius: 10px;
  background: rgba(5,150,105,0.1); border: 1px solid rgba(5,150,105,0.3);
}
.dc-ya-rankeado-icon {
  width: 32px; height: 32px; border-radius: 50%; background: #059669; color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 800; flex-shrink: 0;
}
.dc-ya-rankeado-title { font-weight: 700; font-size: 0.88rem; }
.dc-ya-rankeado-score { color: var(--lm-text-3, var(--text-muted)); font-size: 0.8rem; }

.dc-lb-title, .dc-hist-title { font-size: 0.9rem; font-weight: 700; margin: 0 0 8px; }
.dc-leaderboard, .dc-historial { margin-bottom: 20px; }
.dc-lb-list, .dc-hist-list { display: flex; flex-direction: column; gap: 4px; }
.dc-lb-row {
  display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: 8px;
  background: var(--lm-surface-2, var(--bg-surface));
  border: 1px solid var(--lm-tbl-border, rgba(128,128,128,0.12));
  font-size: 0.84rem;
}
.dc-lb-row.mine { border-color: #059669; background: rgba(5,150,105,0.1); }
.dc-lb-pos { font-weight: 800; color: var(--lm-text-3, var(--text-muted)); text-align: center; }
.dc-lb-name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dc-lb-score { font-weight: 800; color: #059669; font-variant-numeric: tabular-nums; }

.dc-hist-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 7px 10px; border-radius: 8px;
  background: var(--lm-surface-2, var(--bg-surface));
  border: 1px solid var(--lm-tbl-border, rgba(128,128,128,0.1));
  font-size: 0.8rem;
}
.dc-hist-date { color: var(--lm-text-3, var(--text-muted)); }
.dc-hist-score { font-weight: 800; font-variant-numeric: tabular-nums; }
