body {
  font-family: Arial, sans-serif;
  position: relative;
  margin: 0;
  background: #001428;
  color: white;
  overflow: hidden;
}

#app {
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 2rem;
  box-sizing: border-box;
}

.screen {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: 1000px;
  width: 100%;
  min-height: 80vh;
}

.screen:not(.hidden) {
  display: flex;
}

button {
  background-color: #002866;
  border: none;
  color: white;
  font-size: 1.5rem;
  padding: 20px 35px;
  margin: 15px;
  border-radius: 12px;
  cursor: pointer;
  transition: background-color 0.3s;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

button:hover {
  background-color: #4455cc;
}

h1 {
  color: gold;
  font-size: 3rem;
  margin-bottom: 30px;
}

h2 {
  color: gold;
  font-size: 2.5rem;
  margin-bottom: 20px;
}

/* Global box-sizing */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Question : largeur et centrage identiques aux choix */
#questionText {
  font-size: 1.8rem;
  padding: 20px 40px;
  background-color: #002040;
  border-radius: 12px;
  margin-bottom: 30px;
  box-shadow: 0 0 15px rgba(0,0,0,0.5);
  max-width: 700px;       /* même max-width que choices */
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* Conteneur des choix : même largeur max et centrage que question */
#choices {
  max-width: 700px;
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(140px, 1fr)); /* colonnes flexibles */
  gap: 24px;
  margin-top: 20px;
  padding: 0;
}

/* Boutons choix : s’adaptent au texte, avec min et max width */
.choiceBtn {
  min-width: 140px;      /* min confortable */
  max-width: 100%;       /* ne dépassent pas la colonne */
  height: auto;
  min-height: 60px;
  padding: 12px 20px;
  font-weight: bold;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  box-shadow: inset 0 0 5px rgba(255,255,255,0.1);
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s ease;
  white-space: normal;   /* texte peut revenir à la ligne */
  text-align: center;
  word-wrap: break-word;
}

.choiceBtn:hover {
  background-color: #6a42c1;
  transform: scale(1.05);
}

#lives span {
  font-size: 2.8rem;
  margin: 8px;
}

#muteBtn {
  position: absolute;
  top: -5px;
  right: 140px;
  font-size: 1.8rem;
  background-color: gold;
  color: black;
  border: none;
  border-radius: 8px;
  padding: 10px 10px;
  cursor: pointer;
  z-index: 999;
}

#volumeControl {
  position: absolute;
  top: 26px;
  right: 20px;
  z-index: 999;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  padding: 4px 10px;
  border-radius: 8px;
}

#volumeControl input[type="range"] {
  width: 100px;
  cursor: pointer;
}

ul {
  text-align: left;
  max-width: 800px;
  margin-bottom: 30px;
  font-size: 1.3rem;
  line-height: 1.6;
}

ul li {
  margin-bottom: 15px;
}

#progressContainer {
  position: absolute;
  bottom: 20px;
  right: 20px;
  width: 150px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-family: 'Segoe UI', sans-serif;
}

#progressText {
  font-size: 12px;
  color: #ccc;
  margin-bottom: 4px;
  text-align: right;
}

#progressBar {
  width: 100%;
  height: 8px;
  background-color: #2d2e50;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 0 4px rgba(0,0,0,0.2);
  position: relative;
}

#progressFill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #c77dff, #f48fb1);
  border-radius: 20px;
  transition: width 0.4s ease-in-out;
}

/* SKIP BUTTONS EMOJIS FIXÉS EN BAS À GAUCHE */

#skipButtons {
  position: fixed;
  bottom: 0px; /* Au lieu de 20px, descend les boutons */
  left: 10px;
  display: flex;
  gap: 8px;
  z-index: 1000;
  user-select: none;
}

#skipButtons button {
  font-size: 1.4rem;          /* plus petit que les boutons classiques */
  background: transparent;
  border: none;
  color: #c77dff;             /* violet Ado */
  text-shadow: 0 0 4px #f48fb1;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 8px;
  transition: transform 0.2s ease, color 0.3s ease;
}

#skipButtons button:hover:not(:disabled) {
  transform: scale(1.3);
  color: #f48fb1;
}

#skipButtons button:disabled {
  cursor: not-allowed;
  color: #555;
  box-shadow: none;
  transform: none;
}

/* Si tu utilises un message d’instruction à côté des boutons */

#skipMessage {
  position: fixed;
  bottom: 85px; /* augmenté de 50px à 70px pour remonter */
  left: 20px;
  font-size: 0.85rem;
  color: #ccc;
  font-family: 'Segoe UI', sans-serif;
  text-shadow: 0 0 2px #000;
  opacity: 0.7;
  user-select: none;
  z-index: 1000;
}

/* Tu peux cacher #skipText, #skipBtn, #skipContainer et #skipDisplay si tu remplaces par #skipButtons */

#skipText, #skipBtn, #skipContainer, #skipDisplay {
  display: none !important;
}

#questionImage {
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

/* Conteneur user */
#userContainer {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1000;
}

/* Bouton utilisateur (avatar + nom) */
#userBtn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background-color: #002040; /* bleu foncé profond */
  border-radius: 12px;
  color: #E0D7F3;
  font-weight: 600;
  border: none;
  box-shadow: 0 0 8px rgba(59, 47, 92, 0.6);
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease;
}
#userBtn:hover {
  background-color: #003060; /* légèrement plus clair au hover */
}

/* Avatar dans bouton */
#userAvatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(224, 215, 243, 0.9);
}

/* Nom utilisateur dans bouton */
#userName {
  font-size: 1rem;
  color: #E0D7F3;
}

/* Mini-menu popup sous le bouton */
#userMenu {
  position: absolute;
  top: 70px; /* juste sous le bouton utilisateur, ni trop bas ni trop haut */
  left: 0;
  background-color: #002040;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.7);
  min-width: 160px; /* largeur suffisante */
  display: none;
  flex-direction: column;
  user-select: none;
  z-index: 1100;
  max-height: 150px; /* limite la hauteur */
  overflow-y: auto; /* scroll si trop de contenu */
}

/* Boutons du mini-menu (stats privés + déconnexion) */
#userMenu button {
  background-color: #002040; /* violet moyen */
  border: none;
  border-radius: 8px;
  color: #E0D7F3;
  font-weight: 600;
  text-align: center;
  padding: 5px;
  cursor: pointer;
  font-size: 1rem;
  box-shadow: 0 0 8px rgba(59, 47, 92, 0.8);
  transition: background-color 0.3s ease;
  text-align: center;
  user-select: none;
}
#userMenu button:hover {
  background-color: #002040; /* violet clair au hover */
}

/* Lien-style bouton dans le menu user */
.link-button {
  background: none;
  border: none;
  color: #E0D7F3;
  cursor: pointer;
  font-size: 1rem;
  text-align: left;
  text-decoration: underline;
  padding: 4px 0;
  transition: color 0.2s ease;
}
.link-button:hover {
  color: #f093fb;
}

/* Bouton login Discord (quand pas connecté) */
#discordLoginBtn {
  background-color: #002040;
  color: #E0D7F3;
  border: none;
  padding: 8px 16px;
  font-size: 1rem;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(59, 47, 92, 0.7);
  transition: background-color 0.3s ease;
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1000;
}
#discordLoginBtn:hover {
  background-color: #003060;
}

/* Conteneur centré verticalement et horizontalement */
.stats-container {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  max-width: 400px;
  padding: 20px;
  background-color: #002040; /* même style sombre */
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.7);
  color: #E0D7F3;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Liste stats */
.stats-container ul {
  list-style: none;
  padding: 0;
  margin: 20px 0;
  font-size: 1.1rem;
  line-height: 1.6;
}

/* Bouton retour - même style que #startBtn */
#backToMenuBtn {
  background-color: #002040;
  color: #E0D7F3;
  border: none;
  padding: 12px 24px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 0 8px rgba(59, 47, 92, 0.7);
  transition: background-color 0.3s ease;
  user-select: none;
}

#backToMenuBtn:hover {
  background-color: #003060;
}

/* Ton CSS existant, ajusté */
#publicStatsList {
  list-style-type: none;
  padding: 0;
  text-align: center;
  margin: 1rem 0;
  width: 100%;
  max-width: 400px;
}

#publicStatsList li {
  margin: 0.5rem 0;
  font-weight: 600;
  font-size: 1.1rem;
  color: #ffd633; /* couleur accent */
}

#yourStats {
  margin-top: 1rem;
  font-size: 1rem;
  color: #ffd633;
  max-width: 400px;
}

.input-custom {
  background-color: #003060;
  border: 0px solid;   
  padding: 8px;
  border-radius: 5px;
  font-size: 16px;
  color: #ccc;
  height: 60px;
  width: 275px;
  border-radius: 12px;
  margin-top: 10px;
  margin-left: 10px;
}

.input-custom:focus {
  outline: none;
  border-color: none;
  box-shadow: 0 0 5px rgba(41, 128, 185, 0.5);
}

/* Styles communs : ne pas toucher */
.side-img {
  position: fixed;
  top: 50%;                     /* milieu vertical */
  transform: translateY(-50%);  /* recentrage vertical */
  max-height: 40vh;
  max-width: 20vw;
  opacity: 0.85;
  pointer-events: none;
  user-select: none;
  z-index: -1;
}

/* 3) Décalage à gauche */
.side-img.left {
  left: 2vw;   /* tu peux ajuster la valeur (en vw, %, px...) */
}

/* 4) Décalage à droite */
.side-img.right {
  right: 2vw;  /* ajustable aussi */
  max-height: 30vh;
}

/* Utilitaire */
.hidden {
  display: none !important;
}
