/**
 * LexiBlade - Effets Spéciaux, Raretés de Reliques et Écrans Dark Fantasy
 */

/* --- ÉCRAN DE RÉCOMPENSE ROGUELIKE --- */
.reward-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 95vw;
  max-width: 950px;
}

.relic-cards-row {
  display: flex;
  gap: 20px;
  justify-content: center;
  width: 100%;
}

.relic-choice-card {
  flex: 1;
  background: radial-gradient(circle, #1c1917 0%, #0c0a09 100%);
  border: 2px solid #78716c;
  border-radius: 8px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  transition: all 0.25s ease;
  box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.9), 0 8px 25px rgba(0, 0, 0, 0.7);
  cursor: pointer;
}

.relic-choice-card:hover {
  transform: translateY(-6px);
}

.relic-choice-card.rarity-common {
  border-color: #a8a29e;
  box-shadow: 0 0 15px rgba(168, 162, 158, 0.25);
}

.relic-choice-card.rarity-uncommon {
  border-color: #22c55e;
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.35);
}

.relic-choice-card.rarity-rare {
  border-color: #38bdf8;
  box-shadow: 0 0 25px rgba(56, 189, 248, 0.45);
}

.relic-choice-card.rarity-epic {
  border-color: #facc15;
  box-shadow: 0 0 35px rgba(250, 204, 21, 0.55);
  animation: epicCardGlow 2.5s infinite alternate;
}

@keyframes epicCardGlow {
  0% { filter: drop-shadow(0 0 10px rgba(250, 204, 21, 0.4)); }
  100% { filter: drop-shadow(0 0 20px rgba(250, 204, 21, 0.8)); }
}

.relic-icon {
  font-size: 2.8rem;
  filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.8));
}

.relic-name {
  font-family: 'Cinzel', serif;
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: 1px;
  color: #f5f5f4;
}

.relic-desc {
  font-size: 0.82rem;
  color: #d6d3d1;
  line-height: 1.4;
  min-height: 48px;
}

.btn-select-relic {
  font-size: 0.85rem !important;
  padding: 8px 16px !important;
  width: 100%;
}

/* --- ÉCRANS DE FIN (VICTOIRE / DÉFAITE) --- */
.end-screen-box {
  background: radial-gradient(circle, rgba(24, 24, 27, 0.97) 0%, rgba(9, 9, 11, 0.99) 100%);
  border: 2px solid var(--gold-primary);
  padding: 35px 50px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.9), 0 0 50px rgba(0, 0, 0, 0.9);
  max-width: 650px;
  width: 92%;
}

.end-title-victory {
  font-family: 'Cinzel Decorative', serif;
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 900;
  color: #facc15;
  letter-spacing: 4px;
  text-shadow: 0 0 30px rgba(250, 204, 21, 0.8);
}

.end-title-gameover {
  font-family: 'Cinzel Decorative', serif;
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 900;
  color: #ef4444;
  letter-spacing: 4px;
  text-shadow: 0 0 30px rgba(239, 68, 68, 0.8);
}

.stats-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 24px;
  width: 100%;
  text-align: left;
  background: rgba(0, 0, 0, 0.4);
  padding: 16px 24px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.95rem;
  font-family: 'Cinzel', serif;
}

.stat-label {
  color: #a8a29e;
}

.stat-value {
  font-weight: 900;
  color: #f5f5f4;
}

/* Heatmap des touches */
.key-stats-container {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-width: 600px;
  justify-content: center;
  max-height: 160px;
  overflow-y: auto;
}

.key-stat-badge {
  border: 1px solid #22c55e;
  background: #18181b;
  padding: 4px 10px;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.75rem;
}
