
.notes-jeu {
  max-width: 520px;
  margin: 2.5rem auto;
  padding: 1.75rem 1.5rem;
  text-align: center;
  background: none;
  border: none;
  border-top: 1px solid var(--line);
  border-radius: 0;
}

.notes-jeu-titre {
  font-family: var(--font-display);
  margin: 0 0 1rem;
  font-size: 1.15rem;
  font-weight: 700;
}

.notes-jeu-etoiles {
  display: inline-flex;
  gap: 0.25rem;
}

.notes-jeu-etoile {
  background: none;
  border: none;
  padding: 0 0.1rem;
  font-size: 2.4rem;
  line-height: 1;
  cursor: pointer;
  color: var(--line-forte);
  transition: color 0.12s ease;
}


.notes-jeu-etoile.is-active, .notes-jeu-etoile.is-hover {
  color: var(--theme-mid, #fb7185);
}

.notes-jeu-etoile.is-hover {
  color: var(--theme-light, #fda4af);
}

.notes-jeu-etoile:focus-visible {
  outline: 2px solid var(--theme-light, #fda4af);
  outline-offset: 2px;
  border-radius: 4px;
}

.notes-jeu[data-connecte="0"] .notes-jeu-etoile {
  cursor: default;
}

.notes-jeu-resume {
  margin: 0.85rem 0 0.35rem;
  font-size: 1rem;
}

.notes-jeu-moyenne {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--theme-light, #fda4af);
}

.notes-jeu-sur5 {
  font-weight: 700;
  opacity: 0.7;
}

.notes-jeu-compte {
  margin-left: 0.4rem;
  opacity: 0.7;
  font-size: 0.9rem;
}

.notes-jeu-message {
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
  opacity: 0.85;
  min-height: 1.2em;
}

.notes-jeu-message a {
  color: var(--theme-light, #fda4af);
  font-weight: 600;
}

.notes-jeu-message.is-erreur {
  color: #fca5a5;
  opacity: 1;
}

@media (max-width: 480px) {

  .notes-jeu-etoile {
    font-size: 2rem;
  }
}


.notes-entete {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin-top: 10px;
  
  padding: 2px 12px 2px 8px;
  border: 1px solid var(--line-forte, rgba(255, 255, 255, 0.2));
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface-2, #1c2027) 70%, transparent);
  font-size: 0.85rem;
  color: var(--texte-doux, rgba(255, 255, 255, 0.7));
}

.notes-entete .notes-jeu-etoiles {
  gap: 0;
}

.notes-entete .notes-jeu-etoile {
  font-size: 1.15rem;
  padding: 2px 1px;
  
  min-width: 24px;
  min-height: 28px;
  color: var(--line-forte, rgba(255, 255, 255, 0.25));
}

.notes-entete .notes-jeu-etoile.is-active {
  color: #fbbf24;
}


.notes-entete .est-moyenne .notes-jeu-etoile.is-active {
  color: color-mix(in srgb, #fbbf24 75%, transparent);
}


.notes-entete .en-survol .notes-jeu-etoile {
  color: var(--line-forte, rgba(255, 255, 255, 0.25));
}

.notes-entete .en-survol .notes-jeu-etoile.is-hover {
  color: #fcd34d;
}

.notes-entete[data-connecte="0"] .notes-jeu-etoile {
  cursor: pointer;
}

.notes-entete-info strong {
  color: var(--texte, #fff);
  font-weight: 700;
}

.notes-entete-bulle {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 5;
  padding: 7px 12px;
  border-radius: 8px;
  border: 1px solid var(--line, rgba(255, 255, 255, 0.15));
  background: var(--surface-2, #1c2027);
  color: var(--texte, #e5e7eb);
  font-size: 0.82rem;
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.notes-entete-bulle[hidden] {
  display: none;
}

.notes-entete-bulle a {
  color: var(--theme-light, #fda4af);
  font-weight: 600;
}

.notes-entete-bulle.is-erreur {
  color: #fca5a5;
}


@media (max-width: 600px) {
  .notes-entete {
    justify-content: center;
  }

  .notes-entete-bulle {
    left: 50%;
    transform: translateX(-50%);
  }
}
