/* KICKOFF · Récompense quotidienne + série (composant daily.js).
   S'appuie sur tokens.css : .card .card-head .kicker .pill .btn .h-disp .gold. */

.dl-card { position: relative; overflow: hidden; }

/* Filigrane slash "/" en fond, façon motif de marque. */
.dl-card.claimable::before {
  content: "/";
  position: absolute;
  right: -6px;
  bottom: -34px;
  font-family: var(--disp);
  font-style: italic;
  font-weight: 700;
  font-size: 150px;
  line-height: 1;
  color: rgba(232, 0, 13, .10);
  pointer-events: none;
}
.dl-card.claimed { opacity: .96; }

.dl-badge { flex: none; }

/* ---------- bandeau série ---------- */
.dl-streak {
  display: flex;
  align-items: baseline;
  gap: 9px;
  margin: 4px 0 14px;
  position: relative;
  z-index: 1;
}
.dl-flame {
  display: inline-flex;
  align-self: center;
  color: var(--line-2);
  transition: color .2s ease;
}
.dl-flame .dl-flame-svg { fill: currentColor; display: block; }
.dl-streak.live .dl-flame {
  color: var(--red-glow);
  filter: drop-shadow(0 0 10px rgba(255, 38, 52, .55));
  animation: dl-flicker 2.4s ease-in-out infinite;
}
.dl-streak-n {
  font-size: 40px;
  line-height: .9;
  color: var(--txt);
}
.dl-streak.live .dl-streak-n { color: var(--gold); text-shadow: 0 0 22px rgba(244, 195, 59, .35); }
.dl-streak-cap {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted);
  font-weight: 700;
}
.dl-best { align-self: center; margin-left: auto; flex: none; }

@keyframes dl-flicker {
  0%, 100% { filter: drop-shadow(0 0 8px rgba(255, 38, 52, .45)); }
  50% { filter: drop-shadow(0 0 16px rgba(255, 38, 52, .8)); }
}

/* ---------- paliers de la semaine ---------- */
.dl-tiers {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}
.dl-tier {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 9px 2px 8px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .03);
  min-width: 0;
}
.dl-tier-day {
  font-family: var(--disp);
  font-style: italic;
  font-weight: 700;
  font-size: 10px;
  letter-spacing: .04em;
  color: var(--muted);
}
.dl-tier-pts {
  font-family: var(--disp);
  font-style: italic;
  font-weight: 700;
  font-size: 15px;
  color: var(--txt);
  line-height: 1;
}
.dl-tier-life {
  font-size: 9px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: .02em;
}

/* déjà encaissé dans la série en cours */
.dl-tier.done {
  border-color: rgba(244, 195, 59, .35);
  background: rgba(244, 195, 59, .07);
}
.dl-tier.done .dl-tier-day { color: var(--gold); opacity: .85; }
.dl-tier.done .dl-tier-pts { color: var(--gold); }

/* jour à réclamer maintenant : mis en avant rouge */
.dl-tier.active {
  border-color: var(--red);
  background: linear-gradient(160deg, rgba(232, 0, 13, .28), rgba(232, 0, 13, .08));
  box-shadow: 0 0 0 1px rgba(232, 0, 13, .35), var(--glow-red);
  transform: translateY(-2px);
}
.dl-tier.active .dl-tier-day { color: #fff; }
.dl-tier.active .dl-tier-pts { color: #fff; font-size: 16px; }
.dl-tier-mark {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red-glow);
  box-shadow: 0 0 8px rgba(255, 38, 52, .9);
}
.dl-tier.active { animation: dl-pulse 1.9s ease-in-out infinite; }
@keyframes dl-pulse {
  0%, 100% { box-shadow: 0 0 0 1px rgba(232, 0, 13, .35), 0 6px 18px rgba(232, 0, 13, .28); }
  50% { box-shadow: 0 0 0 1px rgba(232, 0, 13, .6), 0 10px 26px rgba(232, 0, 13, .5); }
}

/* ---------- textes + CTA ---------- */
.dl-teaser {
  font-size: 13.5px;
  color: var(--txt);
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}
.dl-life-txt { color: var(--green); }
.dl-done-msg {
  font-size: 13px;
  color: var(--muted);
  position: relative;
  z-index: 1;
}
.dl-claim { position: relative; z-index: 1; }

/* apparition de la carte après réclamation */
.dl-swap-in { animation: dl-swap .32s ease both; }
@keyframes dl-swap {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .dl-streak.live .dl-flame,
  .dl-tier.active { animation: none; }
  .dl-swap-in { animation: none; }
}
