/* Reset et base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Arcade Rules Page Styles */
.arcade-rules-page {
  width: 100%;
  height: 100%;
  height: 100vh; /* Fallback for older browsers */
  height: 100dvh; /* Dynamic viewport height for mobile */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 60px 20px 30px 20px;
  overflow-y: auto;
  position: relative;
  z-index: 1000;
}

.arcade-header {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.arcade-rules-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  min-height: 0;
}

.arcade-rules-wrapper {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  text-align: center;
  width: 100%;
  /* Add height constraints like regular challenge pages */
  flex: 1;
  min-height: 350px;
  max-height: 500px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.arcade-title h1 {
  font-size: 42px;
  color: #1A1A1A;
  margin-bottom: 20px;
  text-shadow: 2px 2px 0 #FFD500;
  line-height: 1.2;
}

.arcade-description p {
  font-size: 18px;
  color: #1A1A1A;
  margin-bottom: 25px;
  line-height: 1.4;
  font-weight: normal;
}

.arcade-rules h3 {
  font-size: 24px;
  color: #1A1A1A;
  margin-bottom: 15px;
  text-shadow: 1px 1px 0 #FFD500;
}

.arcade-rules .rules-content p {
  font-size: 16px;
  color: #1A1A1A;
  line-height: 1.5;
  text-align: left;
  font-weight: normal;
}

.arcade-play-button-container {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  margin-top: 30px;
  height: 60px;
  flex-shrink: 0;
  min-height: 60px;
}

.arcade-play-button {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 280px;
  height: 100%;
  transition: transform 0.2s ease;
  position: relative;
  font-family: 'Bungee', sans-serif;
  font-size: 18px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.arcade-play-button:hover {
  transform: scale(1.05);
}

.arcade-play-button:active {
  transform: scale(0.95);
}

.arcade-play-button img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

.arcade-play-button span {
  font-family: 'Bungee', cursive;
  font-size: 18px; 
  font-weight: 400;
  color: #1A1A1A;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  z-index: 2;
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  padding: 0;
  margin: 0;
  width: auto;
  line-height: 1.2;
  display: flex;
  align-items: center;
  justify-content: center;
  height: auto;
  white-space: nowrap;
  vertical-align: middle;
}

/* Temporary Test Button Styles */
.test-arcade-button {
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: transform 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
}

.test-arcade-button:hover {
  transform: scale(1.05);
}

.test-arcade-button:active {
  transform: scale(0.95);
}

.test-arcade-button img {
  width: 100%;
  height: auto;
  max-width: 300px;
  filter: hue-rotate(120deg) saturate(1.5); /* Make it green to distinguish from main button */
}

.test-arcade-button span {
  position: absolute;
  color: #FFFFFF;
  font-size: 16px;
  font-weight: bold;
  text-shadow: 2px 2px 0 #1A1A1A;
  z-index: 2;
}

/* Responsive design for arcade rules */
@media (max-width: 375px) {
  .arcade-rules-page {
    padding: 40px 15px 20px 15px;
  }
  
  .arcade-rules-wrapper {
    padding: 20px;
    min-height: 320px;
    max-height: 400px;
  }
  
  .arcade-title h1 {
    font-size: 32px;
  }
  
  .arcade-description p {
    font-size: 16px;
  }
  
  .arcade-rules h3 {
    font-size: 20px;
  }
  
  .arcade-rules .rules-content p {
    font-size: 14px;
  }
  
  .arcade-play-button span {
    font-size: 18px;
  }
  
  .arcade-play-button-container {
    margin-top: 20px;
    height: 50px;
    min-height: 50px;
    flex-shrink: 0;
  }
}

@media (min-width: 376px) and (max-width: 428px) {
  .arcade-rules-wrapper {
    padding: 25px;
  }
  
  .arcade-title h1 {
    font-size: 36px;
  }
  
  .arcade-description p {
    font-size: 17px;
  }
  
  .arcade-rules h3 {
    font-size: 22px;
  }
  
  .arcade-rules .rules-content p {
    font-size: 15px;
  }
}

@media (min-width: 429px) {
  .arcade-rules-wrapper {
    padding: 35px;
  }
  
  .arcade-title h1 {
    font-size: 42px;
  }
  
  .arcade-description p {
    font-size: 18px;
  }
  
  .arcade-rules h3 {
    font-size: 24px;
  }
  
  .arcade-rules .rules-content p {
    font-size: 16px;
  }
  
  .arcade-play-button span {
    font-size: 22px;
  }
}

body {
  font-family: 'Bungee', cursive;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh;
  height: 100dvh; /* Dynamic viewport height pour mobile */
  background-color: #f0f0f0;
  position: relative;
  overflow: hidden; /* Empêche le scroll */
}

/* Menu de sélection de langue - DANS LE FRAME */
.language-menu {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  gap: 10px;
  z-index: 1000;
}

.lang-btn {
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid #1A1A1A;
  border-radius: 8px;
  padding: 8px 12px;
  font-family: 'Bungee', cursive;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #1A1A1A;
}

.lang-btn:hover {
  background: rgba(255, 255, 255, 1);
  transform: scale(1.05);
}

.lang-btn.active {
  background: #FFD500;
  border-color: #1A1A1A;
  color: #1A1A1A;
  font-weight: bold;
}

/* Frame principal - RESPONSIVE */
.frame {
  width: 100vw;
  height: 100vh;
  height: 100dvh; /* Dynamic viewport height pour mobile */
  display: flex;
  flex-direction: column;
  background: url("Assets/BSE_HomePage/HomePage_UI_Background_Turquoise.png") center center / cover no-repeat;
  background-attachment: fixed;
  position: relative;
  overflow: hidden; /* Empêche le scroll */
  margin: 0;
  padding: 0;
}

/* Landing page container - RESPONSIVE */
.landing-page {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 60px 20px 30px 20px; /* Réduit le padding pour économiser l'espace */
  height: 100%;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  overflow: hidden; /* Empêche le scroll */
  /* Assure la cohérence sur tous les appareils */
  -webkit-overflow-scrolling: touch;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}



/* Espaces vides (zones 1, 3, 5) - ADAPTÉS */
.spacer {
  height: 20px; /* Réduit de 40px à 20px */
  width: 100%;
}

/* Zone 2: Logo container - CORRIGÉ */
.logo-container {
  height: 350px; /* Augmenté de 200px à 280px */
  width: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 10px 0; /* Réduit de 20px à 10px */
  /* Assure la cohérence sur tous les appareils */
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.logo-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  position: absolute;
  top: 0;
  left: 0;
}

.logo-text {
  position: absolute;
  top: 50%;
  left: 15%; /* Position de base pour les écrans moyens */
  transform: translateY(-50%);
  text-align: left;
  z-index: 2;
  width: 80%; /* Augmenté pour donner plus d'espace au texte plus grand */
  max-width: 320px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  /* Assure la cohérence sur tous les appareils */
  -webkit-transform: translateY(-50%);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  /* Empêche le redimensionnement automatique du texte */
  -webkit-text-size-adjust: none;
  -moz-text-size-adjust: none;
  -ms-text-size-adjust: none;
  text-size-adjust: none;
}

.logo-text h1 {
  font-family: 'Bungee', cursive;
  font-size: 32px; /* Augmenté pour un texte plus grand */
  font-weight: 400;
  font-style: italic;
  color: #FFD500;
  text-shadow: 
    -5px -5px 0 #000,
    5px -5px 0 #000,
    -5px 5px 0 #000,
    5px 5px 0 #000,
    -3px -3px 0 #000,
    3px -3px 0 #000,
    -3px 3px 0 #000,
    3px 3px 0 #000,
    -1px -1px 0 #000,
    1px -1px 0 #000,
    -1px 1px 0 #000,
    1px 1px 0 #000,
    0 0 10px rgba(0, 0, 0, 1); /* Contour noir très épais */
  line-height: 0.9;
  word-wrap: break-word;
  white-space: normal;
  padding: 0; /* Supprimé le padding pour rapprocher le texte de la flamme */
  text-transform: uppercase;
  margin: 0;
  transform: rotate(-5deg);
  /* Assure la cohérence sur tous les appareils */
  -webkit-transform: rotate(-5deg);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  /* Empêche le redimensionnement automatique du texte */
  -webkit-text-size-adjust: none;
  -moz-text-size-adjust: none;
  -ms-text-size-adjust: none;
  text-size-adjust: none;
}

.battle-word {
  font-size: 48px !important; /* Augmenté pour un texte plus grand */
  font-style: italic !important;
  transform: rotate(-5deg) !important;
  margin-top: 5px !important;
  margin-bottom: 0 !important;
  line-height: 0.8 !important;
  /* Assure la cohérence sur tous les appareils */
  -webkit-transform: rotate(-5deg) !important;
  -webkit-backface-visibility: hidden !important;
  backface-visibility: hidden !important;
  /* Empêche le redimensionnement automatique du texte */
  -webkit-text-size-adjust: none !important;
  -moz-text-size-adjust: none !important;
  -ms-text-size-adjust: none !important;
  text-size-adjust: none !important;
}

/* Zone 4: Subtitle container - CORRIGÉ */
.subtitle-container {
  height: 50px; /* Réduit de 60px à 50px */
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  margin: 5px 0; /* Réduit de 10px à 5px pour remonter le texte */
}

.subtitle-container p {
  font-family: 'Bungee', cursive;
  font-size: 20px; 
  font-weight: 400;
  line-height: 1.3;
  color: #1A1A1A;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  text-align: center;
  max-width: 300px;
  word-wrap: break-word;
}

/* Zone 6: Espace flexible */
.flexible-space {
  flex: 0.5; /* Réduit de 1 à 0.5 pour économiser l'espace */
  min-height: 0;
}

/* Zone 7: Button container - CORRIGÉ */
.button-container {
  height: 60px; /* Réduit de 80px à 60px */
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  margin-top: 5px; /* Réduit de 10px à 5px pour remonter le bouton */
}

.challenge-button {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 280px;
  height: 100%;
  transition: transform 0.2s ease;
  position: relative;
}

.challenge-button:hover {
  transform: scale(1.05);
}

.button-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

.button-text {
  font-family: 'Bungee', cursive;
  font-size: 18px; 
  font-weight: 400;
  color: #1A1A1A;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  z-index: 2;
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  padding: 0;
  margin: 0;
  width: auto;
  line-height: 1.2;
  display: flex;
  align-items: center;
  justify-content: center;
  height: auto;
  white-space: nowrap;
  vertical-align: middle;
}

/* Styles pour les pages de défi, gage et score */
.challenge-page, .dare-page, .score-page {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
}

/* Styles spécifiques pour la page de défi */
.challenge-page {
  padding: 0;
  background: #1A1A1A; /* Dark Text comme spécifié */
  position: relative;
  overflow: hidden;
  /* Structure flex pour un meilleur contrôle de l'espacement */
  display: flex;
  flex-direction: column;
  height: 100%;
}

.challenge-header, .dare-header, .score-header {
  text-align: center;
  margin-bottom: 30px;
}

/* Header spécifique pour la page de défi - RESPONSIVE */
.challenge-header {
  width: 100%;
  padding: 20px 0;
  position: relative;
  z-index: 10;
  margin-top: 35px; /* Marge fixe en haut */
  margin-bottom: 0; /* Supprime la marge négative */
  flex-shrink: 0; /* Empêche le header de rétrécir */
}

.category-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 0 20px;
}

.category-icon-container {
  background: #FFD500;
  padding: 10px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.category-icon {
  width: 24px;
  height: 24px;
  filter: brightness(0); /* Rend l'icône noire */
}

.category-text-container {
  background: #000000;
  padding: 10px 18px;
  border-radius: 6px;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  margin-left: -1px;
}

.category-name {
  font-family: 'Bungee', cursive;
  font-size: 18px;
  color: #FFD500; /* Yellow Punch */
  line-height: 20px;
  text-transform: uppercase;
  text-shadow: 
    -1px -1px 0 #000,
    1px -1px 0 #000,
    -1px 1px 0 #000,
    1px 1px 0 #000;
}

.challenge-header h2 {
  font-family: 'Bungee', cursive;
  font-size: 18px;
  color: #FFD500;
  margin-bottom: 10px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.challenge-header h1, .dare-header h1, .score-header h1 {
  font-family: 'Bungee', cursive;
  font-size: 28px;
  color: #1A1A1A;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.dare-header p, .score-header p {
  font-family: 'Bungee', cursive;
  font-size: 16px;
  color: #1A1A1A;
  margin-top: 10px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.challenge-content, .dare-content, .score-content {
  flex: 1;
  width: 100%;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
}

/* Contenu spécifique pour la page de défi - RESPONSIVE */
.challenge-content {
  flex: 1;
  width: 100%;
  max-width: 375px;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  z-index: 1;
  min-height: 0; /* Permet au flex de rétrécir */
  /* Espacement uniforme basé sur le contenu */
  justify-content: space-between;
}

/* Conteneur principal du défi avec contour - RESPONSIVE */
.challenge-content-wrapper {
  background: #FFF3DD;
  border: 3px solid #000000;
  border-radius: 12px;
  padding: 45px 10px 20px 10px; /* Réduit le padding horizontal */
  margin: 0; /* Supprime les marges pour un contrôle plus précis */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  /* Hauteur responsive basée sur le contenu disponible */
  flex: 1;
  min-height: 350px; /* Hauteur minimale */
  max-height: 500px; /* Hauteur maximale pour éviter l'étirement excessif */
  display: flex;
  flex-direction: column;
  overflow: hidden; /* Cache le débordement */
}

.punchline {
  background: rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: 15px;
  text-align: center;
}

.punchline p {
  font-family: 'Bungee', cursive;
  font-size: 18px;
  color: #1A1A1A;
  line-height: 1.4;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Titre du défi */
.challenge-title {
  background: transparent;
  padding: 10px;
  border-radius: 8px;
  text-align: center;
  margin-bottom: 10px;
  flex-shrink: 0; /* Empêche le titre de rétrécir */
}

.challenge-title h1 {
  font-family: 'Bungee', cursive;
  font-size: 38px;
  font-weight: 900;
  color: #FFD500; /* Yellow Punch */
  line-height: 40px;
  text-transform: uppercase;
  margin: 0;
  text-shadow: 
  -5px -5px 0 #000,
  5px -5px 0 #000,
  -5px 5px 0 #000,
  5px 5px 0 #000,
  -4px -4px 0 #000,
  4px -4px 0 #000,
  -4px 4px 0 #000,
  4px 4px 0 #000,
  -3px -3px 0 #000,
  3px -3px 0 #000,
  -3px 3px 0 #000,
  3px 3px 0 #000,
  2px -5px 0 #000,
  2px 5px 0 #000,
  -5px 2px 0 #000,
  5px 2px 0 #000,
  2px -4px 0 #000,
  2px 4px 0 #000,
  -4px 2px 0 #000,
  4px 2px 0 #000,
  2px -3px 0 #000,
  2px 3px 0 #000,
  -3px 2px 0 #000,
  3px 2px 0 #000;
}

/* Sous-titre avec description */
.challenge-punchline {
  background: transparent;
  padding: 15px 10px; /* Réduit le padding horizontal */
  text-align: center;
  margin: 0 -10px; /* Ajuste la marge négative pour correspondre au nouveau padding du parent */
  border-radius: 0; /* Supprime les coins arrondis */
  flex-shrink: 0; /* Empêche la punchline de rétrécir */
}

.challenge-punchline p {
  font-family: 'Bungee', cursive;
  font-size: 18px;
  color: #FFFFFF; /* White */
  line-height: 20px;
  margin: 0;
  text-transform: uppercase;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.rules h3 {
  font-family: 'Bungee', cursive;
  font-size: 16px;
  color: #FFD500;
  margin-bottom: 10px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.rules p {
  font-family: 'Bungee', cursive;
  font-size: 14px;
  color: #1A1A1A;
  line-height: 1.5;
  text-align: left;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Bloc des règles - SANS CADRE VISIBLE */
.challenge-rules {
  background: transparent; /* Supprime le fond pour enlever le cadre visible */
  padding: 20px;
  border-radius: 0; /* Supprime les coins arrondis */
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0; /* Permet au flex de rétrécir */
}

.challenge-rules h3 {
  font-family: 'Bungee', cursive;
  font-size: 18px;
  color: #000000; /* Black */
  line-height: 20px;
  margin: 0 0 15px 0;
  text-transform: uppercase;
  flex-shrink: 0; /* Empêche le titre de rétrécir */
}

.rules-content {
  flex: 1;
  overflow-y: scroll; /* Barre de scroll toujours visible */
  min-height: 0; /* Permet au flex de rétrécir */
  /* Hauteur responsive au lieu d'une hauteur fixe */
  max-height: none; /* Supprime la hauteur maximale fixe */
  /* Force l'apparition de la barre de scroll */
  scrollbar-gutter: stable;
  /* Amélioration de l'apparence générale */
  padding-right: 8px; /* Espace pour la barre de scroll */
  border-radius: 6px;
  /* Animation subtile pour attirer l'attention */
  transition: all 0.3s ease;
}

/* Suppression de l'effet de survol pour éviter les problèmes visuels */

.rules-content p {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; /* Police système normale */
  font-size: 16px;
  font-weight: normal; /* Enlève le gras */
  color: #000000; /* Black */
  line-height: 1.4; /* Espacement normal pour un corps de texte */
  margin: 0;
  text-align: left;
  text-transform: none; /* Enlève les majuscules forcées */
  letter-spacing: normal; /* Espacement normal entre les lettres */
}

/* Style de la barre de scroll - AMÉLIORÉ POUR PLUS DE VISIBILITÉ */
.rules-content::-webkit-scrollbar {
  width: 16px; /* Augmenté de 12px à 16px pour plus de visibilité */
  background-color: #FFD500; /* Fond jaune pour attirer l'attention */
  border-radius: 8px;
  border: 2px solid #000000; /* Bordure noire pour plus de contraste */
}

.rules-content::-webkit-scrollbar-track {
  background: #FFD500; /* Fond jaune pour plus de visibilité */
  border-radius: 8px;
  border: 1px solid #000000;
  box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3); /* Ombre intérieure */
}

.rules-content::-webkit-scrollbar-thumb {
  background: #000000 !important; /* Noir pour un contraste maximum */
  border-radius: 8px;
  border: 2px solid #FFD500; /* Bordure jaune autour du thumb */
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.5); /* Ombre pour plus de profondeur */
  min-height: 40px; /* Hauteur minimale pour plus de visibilité */
}

.rules-content::-webkit-scrollbar-thumb:hover {
  background: #333333 !important; /* Gris foncé au survol */
  border-color: #FFD500;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.7);
}

.rules-content::-webkit-scrollbar-thumb:active {
  background: #666666 !important; /* Gris plus clair quand on clique */
}

.rules-content::-webkit-scrollbar-corner {
  background: #FFD500;
  border-radius: 8px;
}

/* Styles unifiés pour la barre de scroll - TOUS NAVIGATEURS */
.rules-content {
  /* Styles WebKit (Chrome, Safari, Edge) */
  scrollbar-width: auto; /* Pour Firefox - largeur automatique */
  scrollbar-color: #000000 #FFD500; /* Pour Firefox - noir sur jaune */
  
  /* Force l'apparition de la barre de scroll sur tous les navigateurs */
  overflow-y: scroll !important;
  scrollbar-gutter: stable;
  
  /* Styles spécifiques pour s'assurer de la cohérence */
  -webkit-overflow-scrolling: touch; /* Pour iOS */
}

.dare-card {
  background: rgba(255, 0, 0, 0.2);
  padding: 25px;
  border-radius: 15px;
  border: 2px solid rgba(255, 0, 0, 0.3);
  text-align: center;
}

.dare-card p {
  font-family: 'Bungee', cursive;
  font-size: 16px;
  color: #1A1A1A;
  line-height: 1.4;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.score-display {
  text-align: center;
}

.score-display h2 {
  font-family: 'Bungee', cursive;
  font-size: 48px;
  color: #FFD500;
  margin-bottom: 20px;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
}

.tier-message {
  font-family: 'Bungee', cursive;
  font-size: 18px;
  color: #FFD500;
  line-height: 1.4;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.challenge-actions, .dare-actions, .score-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 20px;
  flex-wrap: wrap;
}

/* Actions spécifiques pour la page de défi - RESPONSIVE */
.challenge-actions {
  width: 100%;
  padding: 20px;
  gap: 10px;
  margin: 0; /* Supprime la marge pour un contrôle plus précis */
  flex-shrink: 0; /* Empêche les boutons de rétrécir */
}

.lose-btn, .win-btn, .score-btn, .share-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  transition: transform 0.2s ease;
  min-width: 120px;
  min-height: 60px;
  position: relative;
  flex: 1; /* Permet aux boutons de s'adapter à l'espace disponible */
  max-width: 200px; /* Limite la largeur maximale */
}

.lose-btn:hover, .win-btn:hover, .score-btn:hover, .share-btn:hover {
  transform: scale(1.05);
}

.lose-btn img, .win-btn img, .score-btn img, .share-btn img {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

.lose-btn span, .win-btn span, .score-btn span, .share-btn span {
  font-family: 'Bungee', cursive;
  font-size: 16px;
  font-weight: bold;
  color: #FFFFFF;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
  position: relative;
  z-index: 2;
  text-transform: uppercase;
}

.back-btn {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  color: #1A1A1A;
  font-family: 'Bungee', cursive;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  margin-top: 20px;
}

.back-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}



/* Texte pour les réseaux sociaux */
.social-media-text {
  font-family: 'Bungee', cursive;
  font-size: 18px;
  color: #1A1A1A;
  text-align: center;
  margin-bottom: 8px; /* Espace réduit entre le texte et les icônes */
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Conteneur des icônes de réseaux sociaux */
.social-media-icons {
  display: flex;
  justify-content: center;
  gap: 30px;
  align-items: center;
}

.social-icon {
  width: 60px;
  height: 60px;
  cursor: pointer;
  transition: transform 0.2s ease;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.social-icon:hover {
  transform: scale(1.1);
}

.social-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}



/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Notification */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: rgba(0, 255, 0, 0.9);
  color: white;
  padding: 15px 20px;
  border-radius: 8px;
  font-family: 'Bungee', cursive;
  font-weight: bold;
  z-index: 1000;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Responsive design pour la page de défi - NOUVEAU */
/* Styles pour écrans très petits (iPhone SE, etc.) */
@media (max-width: 375px) and (max-height: 667px) {
  .challenge-page {
    padding: 10px;
  }
  
  .challenge-header {
    margin-top: 20px;
    padding: 15px 0;
  }
  
  .challenge-content {
    padding: 0 15px;
    gap: 15px; /* Espacement uniforme */
  }
  
  .challenge-content-wrapper {
    padding: 35px 8px 15px 8px;
    min-height: 320px;
    max-height: 400px;
  }
  
  .challenge-title h1 {
    font-size: 32px;
    line-height: 34px;
  }
  
  .challenge-punchline p {
    font-size: 16px;
    line-height: 18px;
  }
  
  .challenge-rules h3 {
    font-size: 16px;
    margin-bottom: 10px;
  }
  
  .rules-content p {
    font-size: 14px;
  }
  
  .challenge-actions {
    padding: 15px;
    gap: 8px; /* Espacement réduit entre les boutons */
  }
  
  .lose-btn, .win-btn {
    min-width: 100px;
    min-height: 50px;
    max-width: 150px; /* Largeur maximale réduite */
  }
  
  .lose-btn span, .win-btn span {
    font-size: 14px;
  }
}

/* Styles pour écrans moyens (iPhone 12, 13, etc.) */
@media (min-width: 376px) and (max-width: 428px) and (max-height: 926px) {
  .challenge-content {
    gap: 20px; /* Espacement uniforme */
  }
  
  .challenge-content-wrapper {
    min-height: 350px;
    max-height: 450px;
  }
  
  .challenge-title h1 {
    font-size: 36px;
    line-height: 38px;
  }
  
  .challenge-punchline p {
    font-size: 17px;
    line-height: 19px;
  }
  
  .challenge-actions {
    gap: 12px; /* Espacement moyen entre les boutons */
  }
  
  .lose-btn, .win-btn {
    min-width: 110px;
    min-height: 55px;
    max-width: 170px;
  }
  
  .lose-btn span, .win-btn span {
    font-size: 15px;
  }
}

/* Styles pour écrans plus grands (iPhone 14 Pro Max, etc.) */
@media (min-width: 429px) and (max-width: 500px) {
  .challenge-content {
    gap: 25px; /* Espacement uniforme */
  }
  
  .challenge-content-wrapper {
    min-height: 380px;
    max-height: 480px;
  }
  
  .challenge-title h1 {
    font-size: 40px;
    line-height: 42px;
  }
  
  .challenge-punchline p {
    font-size: 18px;
    line-height: 20px;
  }
  
  .challenge-actions {
    gap: 15px; /* Espacement standard entre les boutons */
  }
  
  .lose-btn, .win-btn {
    min-width: 120px;
    min-height: 60px;
    max-width: 180px;
  }
  
  .lose-btn span, .win-btn span {
    font-size: 16px;
  }
}

/* Styles pour tablettes et écrans plus larges */
@media (min-width: 501px) {
  .challenge-content {
    gap: 30px; /* Espacement uniforme */
  }
  
  .challenge-content-wrapper {
    min-height: 400px;
    max-height: 500px;
  }
  
  .challenge-title h1 {
    font-size: 42px;
    line-height: 44px;
  }
  
  .challenge-punchline p {
    font-size: 19px;
    line-height: 21px;
  }
  
  .rules-content p {
    font-size: 17px;
  }
  
  .challenge-actions {
    gap: 18px; /* Espacement plus large entre les boutons */
  }
  
  .lose-btn, .win-btn {
    min-width: 130px;
    min-height: 65px;
    max-width: 190px;
  }
  
  .lose-btn span, .win-btn span {
    font-size: 17px;
  }
}

/* Optimisation pour les écrans très courts */
@media (max-height: 600px) {
  .challenge-header {
    margin-top: 15px;
    padding: 10px 0;
  }
  
  .challenge-content {
    gap: 10px; /* Espacement réduit */
  }
  
  .challenge-content-wrapper {
    padding: 30px 8px 12px 8px;
    min-height: 280px;
    max-height: 350px;
  }
  
  .challenge-title h1 {
    font-size: 28px;
    line-height: 30px;
  }
  
  .challenge-punchline p {
    font-size: 14px;
    line-height: 16px;
  }
  
  .challenge-rules h3 {
    font-size: 14px;
    margin-bottom: 8px;
  }
  
  .rules-content p {
    font-size: 13px;
  }
  
  .challenge-actions {
    padding: 10px;
    gap: 6px; /* Espacement minimal entre les boutons */
  }
  
  .lose-btn, .win-btn {
    min-width: 90px;
    min-height: 45px;
    max-width: 140px;
  }
  
  .lose-btn span, .win-btn span {
    font-size: 12px;
  }
}

/* Optimisation pour les écrans très larges */
@media (min-width: 768px) {
  .challenge-content {
    max-width: 400px;
    gap: 35px; /* Espacement uniforme */
  }
  
  .challenge-content-wrapper {
    min-height: 420px;
    max-height: 520px;
  }
  
  .challenge-title h1 {
    font-size: 44px;
    line-height: 46px;
  }
  
  .challenge-punchline p {
    font-size: 20px;
    line-height: 22px;
  }
  
  .rules-content p {
    font-size: 18px;
  }
  
  .challenge-actions {
    gap: 20px; /* Espacement large entre les boutons */
  }
  
  .lose-btn, .win-btn {
    min-width: 140px;
    min-height: 70px;
    max-width: 200px;
  }
  
  .lose-btn span, .win-btn span {
    font-size: 18px;
  }
}

/* Responsive design - MOBILE FIRST */
/* Styles pour écrans plus grands (tablettes et desktop) */
@media (min-width: 768px) {
  .frame {
    width: 375px;
    height: 812px;
    border-radius: 25px;
    margin: 20px;
  }
  
  .landing-page {
    padding: 60px 20px 30px 20px;
    max-width: 375px;
  }
  
  .spacer {
    height: 15px;
  }
  
  .logo-container {
    min-height: 180px;
    max-height: 45vh;
    margin: 10px 0;
  }
  
  .logo-text {
    left: 15%;
    width: 80%;
    max-width: 320px;
  }
  
  .logo-text h1 {
    font-size: 32px;
    line-height: 0.9;
  }
  
  .battle-word {
    font-size: 48px !important;
    line-height: 0.8 !important;
  }
  
  .subtitle-container {
    min-height: 35px;
    margin: 5px 0;
  }
  
  .subtitle-container p {
    font-size: 20px;
    line-height: 1.3;
  }
  
  .flexible-space {
    flex: 0.3;
  }
  
  .button-container {
    min-height: 55px;
    margin-top: 5px;
  }
  
  .button-text {
    font-size: 19px;
  }
  
  .language-menu {
    top: 15px;
    right: 15px;
  }
  
  .lang-btn {
    padding: 8px 12px;
    font-size: 14px;
  }
}

/* Optimisation pour très petits écrans - éviter le scroll */
@media (max-width: 375px) and (max-height: 667px) {
  .landing-page {
    padding: 50px 15px 20px 15px;
  }
  
  .spacer {
    height: 15px;
  }
  
  .logo-container {
    height: 180px;
    margin: 8px 0;
  }
  
  .logo-text {
    left: 20%; /* Plus éloigné de la flamme sur petits écrans */
    width: 75%;
    max-width: 280px;
  }
  
  .logo-text h1 {
    font-size: 28px;
  }
  
  .battle-word {
    font-size: 42px !important;
  }
  
  .subtitle-container {
    height: 40px;
    margin: 3px 0;
  }
  
  .subtitle-container p {
    font-size: 18px;
  }
  
  .flexible-space {
    flex: 0.3;
  }
  
  .button-container {
    height: 50px;
    margin-top: 5px;
  }
  
  .button-text {
    font-size: 15px;
  }
}

/* Optimisation spécifique pour iPhone 13 mini et écrans similaires */
@media (max-width: 375px) and (min-height: 668px) and (max-height: 850px) {
  .landing-page {
    padding: 45px 15px 25px 15px;
  }
  
  .spacer {
    height: 12px;
  }
  
  .logo-container {
    height: 200px;
    margin: 10px 0;
  }
  
  .logo-text {
    left: 18%; /* Position intermédiaire pour éviter le chevauchement */
    width: 78%;
    max-width: 290px;
  }
  
  .logo-text h1 {
    font-size: 26px;
  }
  
  .battle-word {
    font-size: 38px !important;
  }
  
  .subtitle-container {
    height: 45px;
    margin: 5px 0;
  }
  
  .subtitle-container p {
    font-size: 17px;
  }
  
  .flexible-space {
    flex: 0.4;
  }
  
  .button-container {
    height: 55px;
    margin-top: 5px;
  }
  
  .button-text {
    font-size: 17px;
  }
}

/* Optimisation pour les écrans très courts */
@media (max-height: 600px) {
  .landing-page {
    padding: 40px 15px 15px 15px;
  }
  
  .spacer {
    height: 10px;
  }
  
  .logo-container {
    height: 150px;
    margin: 5px 0;
  }
  
  .logo-text {
    left: 22%; /* Encore plus éloigné sur écrans très courts */
    width: 72%;
    max-width: 260px;
  }
  
  .logo-text h1 {
    font-size: 24px;
  }
  
  .battle-word {
    font-size: 36px !important;
  }
  
  .subtitle-container {
    height: 35px;
    margin: 3px 0;
  }
  
  .subtitle-container p {
    font-size: 17px;
  }
  
  .flexible-space {
    flex: 0.2;
  }
  
  .button-container {
    height: 45px;
    margin-top: 5px;
  }
  
  .button-text {
    font-size: 15px;
  }
}

/* Optimisation pour les écrans moyens (iPhone 12, 13, etc.) */
@media (min-width: 376px) and (max-width: 428px) {
  .logo-text {
    left: 16%; /* Position légèrement ajustée pour les écrans moyens */
    width: 78%;
    max-width: 300px;
  }
}

/* Optimisation pour les écrans plus grands (iPhone 14 Pro Max, etc.) */
@media (min-width: 429px) and (max-width: 500px) {
  .logo-text {
    left: 14%; /* Position optimale pour les écrans plus grands */
    width: 80%;
    max-width: 320px;
  }
}

/* Optimisation pour les écrans très larges */
@media (min-width: 501px) {
  .logo-text {
    left: 12%; /* Position optimale pour les très grands écrans */
    width: 82%;
    max-width: 340px;
  }
}

/* Animation pour le bouton */
@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.challenge-button:active {
  animation: pulse 0.2s ease;
}

/* Styles pour la page de gage */
.dare-page {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: url('Assets/BSE_HomePage/HomePage_UI_Background_Turquoise.png') no-repeat center center;
  background-size: cover;
  position: relative;
  overflow: hidden;
}

.dare-header {
  text-align: center;
  margin-top: 60px; /* Descend le titre et sous-titre */
  margin-bottom: 30px;
  flex-shrink: 0;
  max-width: 300px; /* Force le retour à la ligne pour le titre et le sous-titre */
  margin-left: auto; /* Centre le bloc */
  margin-right: auto; /* Centre le bloc */
}

.dare-header h1 {
  font-family: 'Bungee', cursive;
  font-size: 38px;
  font-weight: 900;
  color: #FFD500; /* Yellow Punch */
  line-height: 40px;
  text-transform: uppercase;
  margin: 0 0 20px 0; /* Plus d'espace entre titre et sous-titre */
  text-shadow: 
  -5px -5px 0 #000,
  5px -5px 0 #000,
  -5px 5px 0 #000,
  5px 5px 0 #000,
  -4px -4px 0 #000,
  4px -4px 0 #000,
  -4px 4px 0 #000,
  4px 4px 0 #000,
  -3px -3px 0 #000,
  3px -3px 0 #000,
  -3px 3px 0 #000,
  3px 3px 0 #000,
  2px -5px 0 #000,
  2px 5px 0 #000,
  -5px 2px 0 #000,
  5px 2px 0 #000,
  2px -4px 0 #000,
  2px 4px 0 #000,
  -4px 2px 0 #000,
  4px 2px 0 #000,
  2px -3px 0 #000,
  2px 3px 0 #000,
  -3px 2px 0 #000,
  3px 2px 0 #000;
}

.dare-header p {
  font-family: 'Bungee', cursive;
  font-size: 18px;
  line-height: 20px;
  color: #FFFFFF;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  text-transform: uppercase;
}

.dare-content {
  flex: 1;
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 15px;
}

.dare-selection {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 100%;
}

.dare-option {
  background: #FFF3DD;
  border: 2px solid #000000;
  border-radius: 25px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.dare-option:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.dare-option.selected {
  border-color: #000000;
  border-width: 4px;
  background: #FFF8E7;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
  transform: scale(1.02);
}

.dare-icon {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Suppression du fond jaune et de la bordure */
}

.dare-icon img {
  width: 50px;
  height: 50px;
}

.dare-text {
  flex: 1;
}

.dare-text p {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; /* Police système normale comme les règles */
  font-size: 16px;
  font-weight: normal;
  color: #000000; /* Black comme les règles */
  line-height: 1.4; /* Espacement normal comme les règles */
  margin: 0;
  text-align: left;
  text-transform: none; /* Enlève les majuscules forcées */
  letter-spacing: normal; /* Espacement normal entre les lettres */
}

.dare-actions {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 20px;
  flex-shrink: 0;
  gap: 10px;
}

.dare-confirm-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  transition: transform 0.2s ease;
  width: 100%; /* Bouton de la même largeur que les blocs de gages */
  min-height: 70px; /* Bouton plus grand */
  position: relative;
  opacity: 0.5;
}

.dare-confirm-btn:not(:disabled) {
  opacity: 1;
  cursor: pointer;
}

.dare-confirm-btn:not(:disabled):hover {
  transform: scale(1.05);
}

.dare-confirm-btn img {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

.dare-confirm-btn span {
  font-family: 'Bungee', cursive;
  font-size: 18px; 
  font-weight: 400;
  color: #1A1A1A;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  z-index: 2;
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  padding: 0;
  margin: 0;
  width: auto;
  line-height: 1.2;
  display: flex;
  align-items: center;
  justify-content: center;
  height: auto;
  white-space: nowrap;
  vertical-align: middle;
}

.dare-error-message {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 14px;
  font-weight: normal;
  color: #FF0000;
  text-align: center;
  margin-top: 10px;
  line-height: 1.4;
  height: 20px; /* Hauteur fixe pour réserver l'espace */
  opacity: 0; /* Invisible par défaut */
  visibility: hidden; /* Caché par défaut */
  transition: opacity 0.3s ease, visibility 0.3s ease; /* Animation douce */
}

.dare-error-message.show {
  opacity: 1; /* Visible */
  visibility: visible; /* Affiché */
}

/* Responsive design pour la page de gage */
@media (max-width: 375px) and (max-height: 667px) {
  .dare-page { padding: 15px; }
  .dare-header { margin-top: 40px; max-width: 280px; }
  .dare-header h1 { font-size: 34px; line-height: 32px; }
  .dare-header p { font-size: 16px; line-height: 18px; }
  .dare-content { gap: 12px; }
  .dare-selection { gap: 12px; }
  .dare-option { padding: 15px; gap: 12px; border-radius: 20px; }
  .dare-icon { width: 45px; height: 45px; }
  .dare-icon img { width: 25px; height: 25px; }
  .dare-text p { font-size: 14px; line-height: 1.4; }
  .dare-confirm-btn { width: 100%; min-height: 60px; }
  .dare-confirm-btn span { font-size: 16px; }
}

@media (min-width: 376px) and (max-width: 428px) {
  .dare-header { margin-top: 50px; max-width: 290px; }
  .dare-header h1 { font-size: 36px; line-height: 34px; }
  .dare-header p { font-size: 17px; line-height: 19px; }
  .dare-option { padding: 18px; }
  .dare-text p { font-size: 15px; line-height: 1.4; }
}

@media (min-width: 429px) {
  .dare-header { margin-top: 60px; max-width: 300px; }
  .dare-header h1 { font-size: 38px; line-height: 40px; }
  .dare-header p { font-size: 18px; line-height: 20px; }
  .dare-option { padding: 22px; }
  .dare-text p { font-size: 16px; line-height: 1.4; }
  .dare-confirm-btn { width: 100%; min-height: 75px; }
  .dare-confirm-btn span { font-size: 18px; }
}

/* Styles pour la page de score */
.score-page {
  display: grid;
  width: 100%;
  height: 100%;
  row-gap: 0;
  column-gap: 0;
  grid-template-rows: auto 1fr auto auto auto;
  grid-template-columns: 20px 1fr 20px;
  border-radius: 0;
  background: url('Assets/BSE_PageScore/PageScore_UI_Background_TurquoiseSplashed.png') no-repeat center center;
  background-size: cover;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  padding: 10px 0;
  justify-items: center;
  align-items: center;
}

.score-avatar {
  grid-row: 1;
  grid-column: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 0;
}

.score-avatar img {
  width: 350px;
  height: 350px;
  object-fit: contain;
}

.score-content {
  grid-row: 2;
  grid-column: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 25px;
  text-align: center;
  padding: 10px 0;
  width: 100%;
  max-width: 100%;
}

.score-percentage {
  font-family: 'Bungee', cursive;
  font-size: 96px;
  line-height: 40px;
  color: #FFD500;
  text-shadow: 
    -4px -4px 0 #000,
    4px -4px 0 #000,
    -4px 4px 0 #000,
    4px 4px 0 #000;
  text-transform: uppercase;
  text-align: center;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.score-rating {
  font-family: 'Bungee', cursive;
  font-size: 24px;
  line-height: 24px;
  color: #1A1A1A;
  text-transform: uppercase;
  text-align: center;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.score-message {
  grid-row: 3;
  grid-column: 2;
  background: #0743B4;
  border: 4px solid #000000;
  border-radius: 25px;
  padding: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin: 5px 0; /* Espace réduit autour du bloc bleu */
  width: 100%;
  max-width: 100%;
}

.score-message p {
  font-family: 'Bungee', cursive;
  font-size: 24px;
  line-height: 24px;
  color: #FFFFFF;
  margin: 0;
  text-transform: uppercase;
}

.score-actions {
  grid-row: 5;
  grid-column: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 100%;
  padding: 5px 0;
  margin-bottom: 40px; /* Espace réduit pour faire remonter les icônes */
}

.share-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  transition: transform 0.2s ease;
  width: 100%; /* Bouton de la même largeur que les blocs de gages */
  min-height: 90px; /* Bouton encore plus grand */
  position: relative;
}

.share-btn:hover {
  transform: scale(1.05);
}

.share-btn img {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

.share-btn span {
  font-family: 'Bungee', cursive;
  font-size: 18px; 
  font-weight: 400;
  color: #1A1A1A;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  z-index: 2;
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  padding: 0;
  margin: 0;
  width: auto;
  line-height: 1.2;
  display: flex;
  align-items: center;
  justify-content: center;
  height: auto;
  white-space: nowrap;
  vertical-align: middle;
}

/* Responsive design pour la page de score */
@media (max-width: 375px) {
  .score-page {
    padding: 10px 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
  }
  
  .score-avatar img {
    width: 250px;
    height: 250px;
  }
  
  .score-percentage {
    font-size: 72px;
    line-height: 30px;
  }
  
  .score-rating {
    font-size: 20px;
    line-height: 20px;
  }
  
  .score-message p {
    font-size: 18px;
    line-height: 20px;
  }
  
  .score-actions {
    margin-bottom: 30px; /* Espace réduit pour faire remonter les icônes */
    padding: 3px 0;
  }
  
  .social-media-text {
    font-size: 16px;
    margin-bottom: 6px; /* Espace réduit entre le texte et les icônes */
  }
  
  .social-icon {
    width: 50px;
    height: 50px;
  }
}

@media (min-width: 376px) and (max-width: 428px) {
  .score-page {
    width: 100%;
    height: 100%;
    padding: 15px 0;
    overflow: hidden;
  }
  
  .score-avatar img {
    width: 300px;
    height: 300px;
  }
  
  .score-percentage {
    font-size: 84px;
    line-height: 35px;
  }
  
  .score-rating {
    font-size: 22px;
    line-height: 22px;
  }
  
  .score-message p {
    font-size: 22px;
    line-height: 22px;
  }
  
  .score-actions {
    margin-bottom: 35px; /* Espace réduit pour faire remonter les icônes */
    padding: 4px 0;
  }
}

@media (min-width: 429px) {
  .score-page {
    width: 100%;
    height: 100%;
    padding: 20px 0;
    overflow: hidden;
  }
  
  .score-avatar img {
    width: 350px;
    height: 350px;
  }
  
  .score-percentage {
    font-size: 96px;
    line-height: 40px;
  }
  
  .score-rating {
    font-size: 24px;
    line-height: 24px;
  }
  
  .score-message p {
    font-size: 24px;
    line-height: 24px;
  }
  
  .score-actions {
    margin-bottom: 40px; /* Espace réduit pour faire remonter les icônes */
    padding: 5px 0;
  }
}

/* Optimisation pour les écrans très courts - garantir la visibilité des icônes */
@media (max-height: 700px) {
  .score-actions {
    margin-bottom: 25px; /* Espace réduit pour faire remonter les icônes */
  }
}

/* ===== MODE PAYSAGE - PAGE D'ACCUEIL ===== */
@media (orientation: landscape) {
  /* Forcer visuellement le mode portrait */
  body {
    transform: rotate(-90deg);
    transform-origin: left top;
    width: 100vh;
    height: 100vw;
    overflow-x: hidden;
    position: absolute;
    top: 100%;
    left: 0;
  }
  
  /* Ajuster le frame pour la rotation */
  .frame {
    width: 100vh;
    height: 100vw;
    background: url("Assets/BSE_HomePage/HomePage_UI_Background_Turquoise.png") center center / cover no-repeat;
    background-attachment: fixed;
    margin: 0;
    padding: 0;
  }
  
  /* Ajuster tous les conteneurs de pages */
  .landing-page,
  .challenge-page,
  .dare-page,
  .score-page {
    width: 100vh;
    height: 100vw;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 60px 20px 30px 20px;
    overflow-y: auto;
  }
  
  /* Ajuster les conteneurs pour l'espace disponible */
  .logo-container {
    width: 100%;
    height: auto;
    min-height: 300px;
    margin: 0;
  }
  
  .subtitle-container,
  .button-container {
    width: 100%;
    text-align: center;
    margin: 0;
  }
  
  /* Espaces vides - ajustés */
  .spacer {
    height: 20px;
    width: 100%;
  }
  
  .flexible-space {
    height: 15px;
    width: 100%;
  }
  
  /* Arcade rules page responsive in landscape */
  .arcade-title h1 {
    font-size: 28px;
  }
  .arcade-description p {
    font-size: 14px;
  }
  .arcade-rules h3 {
    font-size: 18px;
  }
  .arcade-rules .rules-content p {
    font-size: 12px;
  }
  .arcade-play-button {
    font-size: 14px;
  }
}

/* Arcade rules page responsive for small screens */
@media (max-width: 480px) {
  .arcade-title h1 {
    font-size: 32px;
  }
  .arcade-description p {
    font-size: 16px;
  }
  .arcade-rules h3 {
    font-size: 20px;
  }
  .arcade-rules .rules-content p {
    font-size: 14px;
  }
  .arcade-play-button {
    font-size: 16px;
  }
}