/* === Mastermind — surcharge identité jeu === */
/* Les blocs communs (bandeau, hero structure, btn-cta-hero, hero-live, modes/mode-card,
   mode-badge, modes-header, rules) sont dans fichiers-partages-des-jeux/css/accueil.css */

/* Wrapper hero — gradients et motifs spécifiques */
.hero-mastermind {
  position: relative;
  padding: 32px 20px 28px;
  margin: -40px -32px 28px;
  border-radius: 24px 24px 0 0;
  background:
    radial-gradient(ellipse at 30% 0%, rgba(253,164,175,0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 100%, rgba(244,63,94,0.1) 0%, transparent 50%),
    rgba(0,0,0,0.2);
  overflow: hidden;
}
.hero-mastermind::before {
  content: '';
  position: absolute;
  top: -20px; right: -30px;
  width: 180px; height: 180px;
  background-image: radial-gradient(circle 6px, rgba(253,164,175,0.15) 99%, transparent 100%);
  background-size: 30px 30px;
  border-radius: 20px;
  transform: rotate(15deg);
  opacity: 0.7;
  pointer-events: none;
}
.hero-mastermind::after {
  content: '';
  position: absolute;
  bottom: -15px; left: -25px;
  width: 140px; height: 140px;
  background-image: radial-gradient(circle 5px, rgba(244,63,94,0.12) 99%, transparent 100%);
  background-size: 24px 24px;
  border-radius: 16px;
  transform: rotate(-10deg);
  opacity: 0.6;
  pointer-events: none;
}

/* Pions décoratifs flottants (colored code pegs) */
.hero-pions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 12px;
}
.pion-deco {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; font-weight: 900;
  animation: pion-float 3s ease-in-out infinite;
  will-change: transform;
}
.pion-deco:nth-child(2) { animation-delay: -1s; }
.pion-deco:nth-child(3) { animation-delay: -2s; }
.pion-rouge {
  background: radial-gradient(circle at 35% 35%, #ff6b6b, #dc2626);
  box-shadow: 0 4px 12px rgba(220,38,38,0.5), inset 0 -2px 4px rgba(255,255,255,0.2);
}
.pion-bleu {
  background: radial-gradient(circle at 35% 35%, #60a5fa, #2563eb);
  box-shadow: 0 4px 12px rgba(37,99,235,0.5), inset 0 -2px 4px rgba(255,255,255,0.2);
}
.pion-vert {
  background: radial-gradient(circle at 35% 35%, #4ade80, #16a34a);
  box-shadow: 0 4px 12px rgba(22,163,74,0.5), inset 0 -2px 4px rgba(255,255,255,0.2);
}
@keyframes pion-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* Surcharges spécifiques au hero Mastermind (subtitle plus petite, marges responsive) */
.hero-mastermind .subtitle { margin-bottom: 20px; }

/* Mode-icon plus grandes (override accueil.css) */
.mode-icon {
  font-size: 2.8rem !important;
  display: block;
  margin-bottom: 4px;
  transition: transform 0.3s ease;
}

/* Badge spécifique Mastermind */
.badge-quotidien {
  background: rgba(139,92,246,0.15);
  color: #a78bfa;
  border: 1px solid rgba(139,92,246,0.2);
}

/* Symbole décoratif rules (Mastermind = cercle plein) */
.rules::before {
  content: '\25CF';
  position: absolute;
  top: 16px; right: 20px;
  font-size: 2rem;
  opacity: 0.08;
}

/* Responsive hero spécifique */
@media (max-width: 600px) {
  .hero-mastermind .hero-text { text-align: center; align-items: center; }
  .hero-mastermind .subtitle { font-size: 0.8rem; }
}
@media (max-width: 480px) {
  .hero-mastermind { padding: 24px 14px 22px; margin: -28px -18px 22px; }
  .pion-deco { width: 30px; height: 30px; font-size: 0.9rem; }
}
