/* === Street Fight — surcharge identité jeu === */

/* Bandeau joueur le plus actif */
.bandeau-joueur-actif {
  margin-bottom: 16px;
  padding: 9px 18px;
  background: rgba(220, 38, 38, 0.12);
  border: 1px solid rgba(220, 38, 38, 0.3);
  border-radius: 10px;
  text-align: center;
  font-size: 0.82rem;
  color: #cbd5e1;
  overflow: hidden;
  animation: bandeau-apparition 0.8s ease both;
}
.bandeau-joueur-actif strong { color: #ea580c; font-weight: 700; }
.bandeau-carousel { position: relative; height: 1.4em; }
.bandeau-msg {
  position: absolute; inset: 0;
  text-align: center; line-height: 1.4em;
  opacity: 0; transform: translateY(100%);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.bandeau-msg-visible { opacity: 1; transform: translateY(0); }
.bandeau-msg-sortie { opacity: 0; transform: translateY(-100%); }
.bandeau-msg-entree { opacity: 0; transform: translateY(100%); }
@keyframes bandeau-apparition {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 480px) {
  .bandeau-joueur-actif { font-size: 0.78rem; padding: 8px 12px; }
  .bandeau-carousel { height: 3.6em; }
  .bandeau-cta { display: block; }
}

/* Hero arena — palette rouge sang / orange flamme */
.hero-streetfight {
  position: relative;
  padding: 32px 20px 28px;
  margin: -40px -32px 28px;
  border-radius: 24px 24px 0 0;
  background:
    radial-gradient(ellipse at 30% 0%, rgba(251,146,60,0.18) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 100%, rgba(220,38,38,0.18) 0%, transparent 50%),
    rgba(0,0,0,0.25);
  overflow: hidden;
}
.hero-streetfight::before {
  content: '';
  position: absolute;
  top: -20px; right: -30px;
  width: 200px; height: 200px;
  background-image: repeating-linear-gradient(45deg, rgba(220,38,38,0.08) 0 2px, transparent 2px 14px);
  border-radius: 20px;
  transform: rotate(15deg);
  opacity: 0.7;
  pointer-events: none;
}
.hero-streetfight::after {
  content: '';
  position: absolute;
  bottom: -15px; left: -25px;
  width: 160px; height: 160px;
  background-image: repeating-linear-gradient(-45deg, rgba(251,146,60,0.07) 0 2px, transparent 2px 14px);
  border-radius: 16px;
  transform: rotate(-10deg);
  opacity: 0.6;
  pointer-events: none;
}

/* Décor "rays" + VS — éléments flottants au-dessus du hero text */
.hero-rays {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 1.4rem;
  letter-spacing: 0.4em;
  font-weight: 900;
  color: #ea580c;
  text-shadow: 0 0 12px rgba(234,88,12,0.4);
  animation: rays-pulse 2.5s ease-in-out infinite;
  will-change: opacity;
}
@keyframes rays-pulse {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

/* Titre hero */
.hero-streetfight .hero-title {
  font-size: 2.5rem;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 0 0 10px;
  line-height: 1.1;
  background: linear-gradient(90deg, #fb923c, #dc2626, #7f1d1d);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-streetfight .hero-h1 {
  font-size: 1rem;
  font-weight: 400;
  margin: 0 0 10px;
  line-height: 1.4;
}
.hero-streetfight .subtitle {
  margin-bottom: 20px;
}

/* Bouton CTA hero */
.btn-cta-hero {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  padding: 14px 36px;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(135deg, #dc2626, #ea580c);
  box-shadow: 0 6px 24px rgba(220,38,38,0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
}
.btn-cta-hero::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 16px;
  border: 2px solid rgba(234,88,12,0.5);
  pointer-events: none;
  animation: cta-ring 2.5s ease-in-out infinite;
  will-change: transform, opacity;
}
.btn-cta-hero:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 32px rgba(220,38,38,0.5);
}
@keyframes cta-ring {
  0%, 100% { transform: scale(1); opacity: 0; }
  50% { transform: scale(1.08); opacity: 1; }
}

/* Indicateur live */
.hero-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 0.82rem;
  color: #94a3b8;
}
.live-dot {
  position: relative;
  width: 8px; height: 8px;
  background: #22c55e;
  border-radius: 50%;
}
.live-dot::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(34,197,94,0.4);
  animation: live-pulse 2s ease-in-out infinite;
  will-change: transform, opacity;
}
@keyframes live-pulse {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(2.4); opacity: 0; }
}

/* Cartes modes de jeu */
.modes { gap: 14px; margin-bottom: 24px; }
.mode-card {
  position: relative;
  padding: 24px 18px;
  border-radius: 18px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.mode-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-light), var(--color-mid));
  opacity: 0;
  transition: opacity 0.3s;
}
.mode-card:hover::before { opacity: 1; }
.mode-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(220,38,38,0.22);
  border-color: rgba(234,88,12,0.3);
}

.mode-icon {
  font-size: 2.8rem !important;
  display: block;
  margin-bottom: 4px;
  transition: transform 0.3s ease;
}
.mode-card:hover .mode-icon { transform: scale(1.15); }

.mode-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 10px;
  border-radius: 20px;
  margin-top: 6px;
}
.badge-solo {
  background: rgba(59,130,246,0.15);
  color: #60a5fa;
  border: 1px solid rgba(59,130,246,0.2);
}
.badge-action {
  background: rgba(234,88,12,0.18);
  color: #fdba74;
  border: 1px solid rgba(234,88,12,0.3);
}
.badge-arcade {
  background: rgba(220,38,38,0.18);
  color: #f87171;
  border: 1px solid rgba(220,38,38,0.3);
}

.modes-header {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #64748b;
  margin-bottom: 14px;
}

.btn-primary {
  font-size: 1rem;
  padding: 14px 24px;
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(220,38,38,0.4);
}
.btn-primary:active { transform: translateY(0); }

/* Roster grid (sélection perso) */
.roster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.roster-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 12px 10px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.roster-card:hover {
  transform: translateY(-3px);
  border-color: rgba(234,88,12,0.5);
  background: rgba(220,38,38,0.08);
}
.roster-card.selected {
  border-color: #ea580c;
  background: rgba(234,88,12,0.15);
  box-shadow: 0 6px 18px rgba(234,88,12,0.3);
}
.roster-portrait {
  width: 64px; height: 64px;
  margin: 0 auto 6px;
  border-radius: 50%;
  background: rgba(0,0,0,0.4);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
}
.roster-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: #f8fafc;
}
.roster-style {
  font-size: 0.72rem;
  color: #94a3b8;
  margin-top: 2px;
}

/* Section rules */
.rules {
  position: relative;
  padding: 24px;
  background: rgba(255,255,255,0.03);
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.06);
}
.rules::before {
  content: '\1F94B';
  position: absolute;
  top: 16px; right: 20px;
  font-size: 2rem;
  opacity: 0.08;
}

/* Tableau commandes */
.cmd-table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
  font-size: 0.9rem;
}
.cmd-table th, .cmd-table td {
  padding: 8px 10px;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.cmd-table th {
  color: #fdba74;
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.cmd-key {
  display: inline-block;
  padding: 2px 8px;
  background: rgba(220,38,38,0.18);
  border: 1px solid rgba(220,38,38,0.35);
  border-radius: 6px;
  font-family: 'Courier New', monospace;
  font-size: 0.82rem;
  color: #fecaca;
}

/* Responsive hero */
@media (max-width: 480px) {
  .hero-streetfight { padding: 24px 14px 22px; margin: -28px -18px 22px; }
  .hero-streetfight .hero-title { font-size: 1.8rem; }
  .hero-streetfight .hero-h1 { font-size: 0.95rem; }
  .btn-cta-hero { font-size: 1rem; padding: 12px 28px; }
}
