/* ==========================================================================
   DixDés - Style Casino Feutré Bleu Nuit & Bois Noble (Mobile-First)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;600;700;800;900&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --bg-dark: #070d1e;
  --bg-card: rgba(15, 23, 42, 0.85);
  --bg-card-hover: rgba(30, 41, 59, 0.95);
  --gold: #f59e0b;
  --gold-light: #fef08a;
  --gold-dark: #b45309;
  --felt-blue: #0f172a;
  --wood-rim: #2b1509;
  --wood-border: #451a03;
  --accent-blue: #38bdf8;
  --accent-red: #ef4444;
  --accent-green: #22c55e;
  --accent-purple: #a855f7;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --border-glass: rgba(255, 255, 255, 0.12);
  --shadow-gold: 0 0 20px rgba(245, 158, 11, 0.35);
  --shadow-card: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  overscroll-behavior: none;
}

body {
  font-family: 'Outfit', 'Inter', -apple-system, sans-serif;
  background-color: var(--bg-dark);
  background-image: radial-gradient(circle at 50% 30%, #172554 0%, #070d1e 75%);
  color: var(--text-main);
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  touch-action: manipulation;
  overflow: hidden;
}

/* Règle globale absolue pour masquer tout élément */
.hidden {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

/* --- Gestion des Écrans (Vues) --- */
.screen-view {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

.screen-view.hidden {
  display: none !important;
}

#screen-game {
  width: 100%;
  height: 100%;
  max-width: 540px;
  margin: 0 auto;
  position: relative;
}

@media (min-width: 541px) {
  #screen-game {
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.75);
    border-left: 1.5px solid rgba(255, 255, 255, 0.08);
    border-right: 1.5px solid rgba(255, 255, 255, 0.08);
  }
}

/* =========================================================================
   ÉCRAN D'ACCUEIL / MENU DE DÉMARRAGE
   ========================================================================= */
#screen-home {
  overflow: hidden;
  overscroll-behavior: none;
}

.home-container {
  width: 100%;
  height: 100%;
  max-width: 540px;
  margin: 0 auto;
  padding: calc(var(--safe-top) + 8px) 12px calc(var(--safe-bottom) + 10px) 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scrollbar-width: none;
  gap: 8px;
}

.home-container::-webkit-scrollbar {
  display: none;
}

.home-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.home-profile-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 23, 42, 0.9);
  border: 1.5px solid var(--border-glass);
  padding: 6px 12px 6px 10px;
  border-radius: var(--radius-full);
  backdrop-filter: blur(8px);
}

.home-profile-pill.clickable-profile-pill {
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

/* --- En-tête Profil, Son & Monnaie (Cadre Unifié 3D - Image 2) --- */
.home-top-bar-unified {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(180deg, #1b386c 0%, #112549 100%);
  border: 2px solid #2d589f;
  border-radius: 24px;
  padding: 4px 8px 4px 6px;
  box-shadow: 0 5px 0 #0a172f, 0 8px 18px rgba(0, 0, 0, 0.55), inset 0 2px 3px rgba(255, 255, 255, 0.2);
  width: 100%;
  box-sizing: border-box;
  gap: 6px;
  position: relative;
  user-select: none;
}

/* Zone Profil Gauche (Avatar + Pseudo) */
.top-bar-profile-zone {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 2px 6px 2px 2px;
  border-radius: 16px;
  transition: all 0.15s ease;
}

.top-bar-profile-zone:hover {
  filter: brightness(1.15);
}

.top-bar-profile-zone:active {
  transform: scale(0.97);
}

.top-bar-avatar-frame {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(180deg, #38bdf8 0%, #0284c7 100%);
  border: 2px solid #7dd3fc;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.6), 0 3px 6px rgba(0, 0, 0, 0.4);
  flex-shrink: 0;
}

.top-bar-online-dot {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #22c55e;
  border: 2.5px solid #112549;
  box-shadow: 0 0 8px #22c55e;
}

.top-bar-online-dot.offline {
  background: #64748b;
  box-shadow: none;
}

.top-bar-user-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
  line-height: 1.1;
}

.top-bar-user-row1 {
  display: flex;
  align-items: center;
  gap: 6px;
}

.top-bar-user-row2 {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 1px;
}

.top-bar-username {
  font-family: 'Outfit', sans-serif;
  font-size: 1.3rem;
  font-weight: 900;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.85);
  margin: 0;
}

.home-career-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-size: 0.68rem;
  font-weight: 900;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  border: 1px solid #fde047;
  border-radius: var(--radius-full);
  padding: 1px 7px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
  letter-spacing: 0.2px;
  line-height: 1.1;
  flex-shrink: 0;
}

.top-bar-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 900;
  padding: 1px 8px;
  border-radius: var(--radius-full);
  letter-spacing: 0.2px;
  line-height: 1.2;
  white-space: nowrap;
}

.top-bar-status-pill.connected {
  color: #4ade80;
  background: rgba(34, 197, 94, 0.2);
  border: 1.2px solid #22c55e;
}

.top-bar-status-pill.guest {
  color: #94a3b8;
  background: rgba(100, 116, 139, 0.25);
  border: 1.2px solid #64748b;
}

.top-bar-status-pill.guest-cta {
  color: #fef08a;
  background: rgba(245, 158, 11, 0.35);
  border: 1.2px solid #facc15;
  font-weight: 900;
  font-size: 0.68rem;
  padding: 1px 8px;
  box-shadow: 0 0 8px rgba(250, 204, 21, 0.4);
  animation: pulseLoginGlow 2.4s infinite ease-in-out;
}

/* Mode Invité Incitatif - Intégré naturellement sans capsule parasite */
.clickable-profile-pill.is-guest-mode {
  cursor: pointer;
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 2px 6px 2px 2px;
}

.clickable-profile-pill.is-guest-mode:hover {
  filter: brightness(1.18);
}

.guest-login-title {
  display: inline-block;
  white-space: nowrap;
  font-size: 1.05rem;
  font-weight: 900;
  color: #38bdf8;
  letter-spacing: 0.3px;
  line-height: 1.1;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.9);
}

@keyframes pulseLoginGlow {
  0%, 100% {
    box-shadow: 0 0 6px rgba(250, 204, 21, 0.3);
    border-color: #facc15;
  }
  50% {
    box-shadow: 0 0 14px rgba(250, 204, 21, 0.7);
    border-color: #fef08a;
  }
}

/* Bouton Son Central */
.top-bar-sound-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(180deg, #1e3a6c 0%, #0d1e3d 100%);
  border: 2px solid #3361ad;
  box-shadow: 0 3px 0 #071328, 0 4px 8px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.15rem;
  transition: all 0.12s ease;
  flex-shrink: 0;
  padding: 0;
}

.top-bar-sound-btn:hover {
  transform: scale(1.08);
  border-color: var(--gold);
}

.top-bar-sound-btn:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #071328;
}

/* Zone Vies Quotidiennes (Cœur 3D avec nombre au centre) */
.top-bar-lives-zone {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 14px;
  transition: transform 0.15s ease;
  user-select: none;
  flex-shrink: 0;
}

.top-bar-lives-zone:hover {
  transform: scale(1.08);
}

.top-bar-lives-zone:active {
  transform: scale(0.95);
}

.heart-lives-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.45));
  transition: all 0.2s ease;
}

.heart-lives-svg {
  display: block;
  width: 38px;
  height: 34px;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.heart-lives-number {
  position: absolute;
  top: 48%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 900;
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.95), 0 0 4px rgba(0, 0, 0, 0.7);
  pointer-events: none;
  line-height: 1;
}

/* Pulsation douce quand 0 vie pour inciter à recharger / regarder pub */
.heart-lives-wrapper.pulse-empty {
  animation: heartPulseAlert 1.6s infinite ease-in-out;
}

@keyframes heartPulseAlert {
  0%, 100% {
    transform: scale(1);
    filter: drop-shadow(0 2px 5px rgba(239, 68, 68, 0.4));
  }
  50% {
    transform: scale(1.12);
    filter: drop-shadow(0 0 12px rgba(239, 68, 68, 0.85));
  }
}

/* Zone Pièces d'Or Droite (Montant au-dessus, Pièce en-dessous) */
.top-bar-coins-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 1px 4px;
  border-radius: 12px;
  transition: transform 0.12s ease;
  user-select: none;
  gap: 1px;
  flex-shrink: 0;
}

.top-bar-coins-zone:hover {
  transform: scale(1.08);
}

.top-bar-coins-zone:active {
  transform: scale(0.95);
}

.top-bar-coins-val {
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 900;
  color: #facc15;
  text-shadow: 0 1.5px 3px rgba(0, 0, 0, 0.9);
  line-height: 1;
  letter-spacing: 0.2px;
}

.top-bar-coin-icon {
  font-size: 1.25rem;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
  display: inline-block;
}

/* Styles Modale des Vies */
.lives-modal-heart-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  margin: 6px 0;
  animation: modalHeartBeat 2.4s infinite ease-in-out;
}

.lives-modal-number {
  position: absolute;
  top: 48%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Outfit', sans-serif;
  font-size: 2.3rem;
  font-weight: 900;
  color: #ffffff;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9);
  pointer-events: none;
  line-height: 1;
}

@keyframes modalHeartBeat {
  0%, 100% {
    transform: scale(1);
  }
  14% {
    transform: scale(1.08);
  }
  28% {
    transform: scale(1);
  }
  42% {
    transform: scale(1.05);
  }
  70% {
    transform: scale(1);
  }
}

/* --- Studio de Personnalisation d'Avatar (Dressing & Accessoires) --- */
.avatar-studio-section {
  width: 100%;
  background: rgba(15, 23, 42, 0.85);
  border: 1.5px solid var(--border-glass);
  border-radius: 24px;
  padding: 12px 14px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.avatar-studio-preview-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  background: linear-gradient(135deg, rgba(30, 58, 110, 0.6) 0%, rgba(15, 23, 42, 0.85) 100%);
  border: 2px solid rgba(56, 189, 248, 0.3);
  border-radius: 20px;
  padding: 10px 14px;
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.1), 0 6px 16px rgba(0, 0, 0, 0.4);
}

.avatar-studio-preview-box {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  background: radial-gradient(circle at 50% 40%, #1e40af 0%, #0f172a 100%);
  border: 2.5px solid #38bdf8;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(56, 189, 248, 0.4), inset 0 2px 4px rgba(255, 255, 255, 0.3);
  flex-shrink: 0;
}

.avatar-studio-preview-box svg {
  width: 100%;
  height: 100%;
  display: block;
}

.avatar-studio-identity {
  display: flex;
  flex-direction: column;
  text-align: left;
  gap: 2px;
}

.avatar-studio-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.2rem;
  font-weight: 900;
  color: #ffffff;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.avatar-studio-subtitle {
  font-size: 0.82rem;
  color: #94a3b8;
  line-height: 1.3;
}

/* Onglets de Catégories du Dressing */
.avatar-studio-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  width: 100%;
  box-sizing: border-box;
}

@media (min-width: 440px) {
  .avatar-studio-tabs {
    grid-template-columns: repeat(6, 1fr);
  }
}

.avatar-tab-btn {
  background: rgba(30, 41, 59, 0.8);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  padding: 8px 4px;
  border-radius: 12px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.avatar-tab-btn:hover {
  background: rgba(56, 189, 248, 0.2);
  color: #ffffff;
  border-color: #38bdf8;
}

.avatar-tab-btn.active {
  background: linear-gradient(180deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  border-color: #60a5fa;
  box-shadow: 0 3px 8px rgba(37, 99, 235, 0.4);
}

/* Contenu et Grilles d'Accessoires */
.avatar-studio-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-sizing: border-box;
}

.avatar-section-label {
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  font-weight: 800;
  color: #f1f5f9;
  text-align: left;
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.avatar-studio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
}

@media (min-width: 440px) {
  .avatar-studio-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.avatar-item-tile {
  background: linear-gradient(180deg, rgba(30, 58, 110, 0.5) 0%, rgba(15, 23, 42, 0.75) 100%);
  border: 1.8px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  padding: 10px 6px 8px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  min-height: 80px;
  gap: 4px;
  cursor: pointer;
  transition: all 0.15s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-sizing: border-box;
  user-select: none;
}

.avatar-item-tile:hover {
  transform: translateY(-2px);
  border-color: #38bdf8;
  background: rgba(30, 58, 110, 0.8);
}

.avatar-item-tile:active {
  transform: translateY(1px);
}

.avatar-item-tile.is-equipped {
  border: 2.5px solid #22c55e !important;
  background: linear-gradient(180deg, rgba(34, 197, 94, 0.25) 0%, rgba(15, 23, 42, 0.9) 100%) !important;
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.45);
}

.avatar-item-tile.is-locked {
  opacity: 0.9;
  border-color: rgba(245, 158, 11, 0.4);
}

.avatar-tile-preview-icon {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  line-height: 1;
}

.avatar-tile-preview-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.avatar-tile-name {
  font-family: 'Outfit', sans-serif;
  font-size: 0.84rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.15;
}

.avatar-tile-status {
  font-size: 0.76rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 8px;
}

.avatar-tile-status.equipped {
  background: rgba(34, 197, 94, 0.2);
  color: #4ade80;
  border: 1px solid #22c55e;
}

.avatar-tile-status.buy {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid #f59e0b;
}

.avatar-tile-status.owned {
  background: rgba(56, 189, 248, 0.15);
  color: #7dd3fc;
}

/* Palette de Couleurs (Peau & Cheveux) */
.avatar-palette-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 4px 0;
}

.avatar-color-circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.15s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.4);
  position: relative;
}

.avatar-color-circle:hover {
  transform: scale(1.15);
  border-color: #ffffff;
}

.avatar-color-circle.is-active {
  transform: scale(1.22);
  border-color: #facc15 !important;
  box-shadow: 0 0 12px rgba(250, 204, 21, 0.8);
}

.avatar-color-circle.is-active::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.85rem;
  font-weight: 900;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
}

/* Adaptateur pour l'Avatar SVG dans le bandeau supérieur */
.top-bar-avatar-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Hero Banner & 3D Die */
.home-hero-banner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2px 0 10px 0;
  position: relative;
}

.home-hero-dice-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2px;
}

.home-hero-dice {
  font-size: 4.8rem;
  line-height: 1;
  filter: drop-shadow(0 15px 20px rgba(0, 0, 0, 0.65)) drop-shadow(0 0 28px rgba(245, 158, 11, 0.6));
  animation: floatDiceBobbing 3.2s infinite ease-in-out;
  cursor: pointer;
  user-select: none;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.sparkle-star {
  position: absolute;
  font-size: 1.4rem;
  filter: drop-shadow(0 0 8px #fef08a);
  animation: twinkleStar 2.5s infinite ease-in-out;
  pointer-events: none;
}

.star-tl { top: -2px; left: -14px; animation-delay: 0s; }
.star-tr { top: 8px; right: -16px; animation-delay: 0.8s; font-size: 1.6rem; }
.star-bl { bottom: 4px; left: -12px; animation-delay: 1.4s; font-size: 1.2rem; }
.star-br { bottom: 10px; right: -12px; animation-delay: 0.4s; }

@keyframes twinkleStar {
  0%, 100% { transform: scale(0.8) rotate(0deg); opacity: 0.5; }
  50% { transform: scale(1.3) rotate(20deg); opacity: 1; filter: drop-shadow(0 0 14px #facc15); }
}

@keyframes floatDiceBobbing {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
    filter: drop-shadow(0 15px 20px rgba(0, 0, 0, 0.65)) drop-shadow(0 0 22px rgba(245, 158, 11, 0.45));
  }
  50% {
    transform: translateY(-14px) rotate(3deg);
    filter: drop-shadow(0 26px 30px rgba(0, 0, 0, 0.35)) drop-shadow(0 0 36px rgba(245, 158, 11, 0.8));
  }
}

.home-hero-title {
  font-family: 'Outfit', sans-serif;
  font-size: 3.2rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  margin: 0;
  line-height: 1;
  color: #fffdf2;
  text-shadow: 
    0 2px 0 #fde68a,
    0 4px 0 #f59e0b,
    0 7px 0 #b45309,
    0 10px 0 #78350f,
    0 13px 0 #451a03,
    0 16px 24px rgba(0, 0, 0, 0.85);
}

.home-hero-subtitle {
  font-size: 0.92rem;
  font-weight: 800;
  color: #93c5fd;
  margin-top: 4px;
  letter-spacing: 0.3px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
}

/* Grille des Modes de Jeu 2x2 Tactiles 3D */
.home-modes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  width: 100%;
  box-sizing: border-box;
}

.mode-action-card {
  position: relative;
  border-radius: 28px;
  padding: 16px 10px 14px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: space-between;
  gap: 6px;
  cursor: pointer;
  user-select: none;
  transition: all 0.16s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: visible;
  min-height: 182px;
  box-sizing: border-box;
}

.mode-action-card:hover {
  transform: translateY(-4px) scale(1.02);
}

.mode-action-card:active {
  transform: translateY(3px) scale(0.98);
}

/* 1. Solo Chrono (Vert Pomme Émeraude 3D) */
.solo-card {
  background: linear-gradient(180deg, #62c32c 0%, #4da520 60%, #3d8817 100%);
  border: 2.5px solid #8ef054;
  box-shadow: inset 0 3px 2px rgba(255, 255, 255, 0.5), 0 8px 0 #23550c, 0 14px 22px rgba(0, 0, 0, 0.45);
}
.solo-card:active {
  box-shadow: inset 0 2px 1px rgba(255, 255, 255, 0.3), 0 2px 0 #23550c, 0 4px 10px rgba(0, 0, 0, 0.4);
}

/* 2. Pass & Play (Violet Bonbon Royal 3D) */
.passplay-card {
  background: linear-gradient(180deg, #9b3ec7 0%, #822ba9 60%, #681d89 100%);
  border: 2.5px solid #d988fc;
  box-shadow: inset 0 3px 2px rgba(255, 255, 255, 0.5), 0 8px 0 #430e5c, 0 14px 22px rgba(0, 0, 0, 0.45);
}
.passplay-card:active {
  box-shadow: inset 0 2px 1px rgba(255, 255, 255, 0.3), 0 2px 0 #430e5c, 0 4px 10px rgba(0, 0, 0, 0.4);
}

/* 3. Mode Aventure (Orange Flamboyant Mango 3D) */
.adventure-card {
  background: linear-gradient(180deg, #ea730d 0%, #d35b02 60%, #ae4800 100%);
  border: 2.5px solid #fed7aa;
  box-shadow: inset 0 3px 2px rgba(255, 255, 255, 0.5), 0 8px 0 #6e2c00, 0 14px 22px rgba(0, 0, 0, 0.45);
}
.adventure-card:active {
  box-shadow: inset 0 2px 1px rgba(255, 255, 255, 0.3), 0 2px 0 #6e2c00, 0 4px 10px rgba(0, 0, 0, 0.4);
}

/* 4. Ligue en Ligne (Bleu Saphir / Cyan 3D) */
.online-card {
  background: linear-gradient(180deg, #1d95e2 0%, #1178bd 60%, #0c5c93 100%);
  border: 2.5px solid #7dd3fc;
  box-shadow: inset 0 3px 2px rgba(255, 255, 255, 0.5), 0 8px 0 #073b60, 0 14px 22px rgba(0, 0, 0, 0.45);
}
.online-card:active {
  box-shadow: inset 0 2px 1px rgba(255, 255, 255, 0.3), 0 2px 0 #073b60, 0 4px 10px rgba(0, 0, 0, 0.4);
}

.mode-card-disabled {
  opacity: 0.72;
  filter: grayscale(35%);
  cursor: not-allowed !important;
}

.card-corner-lock {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 1.3rem;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6));
  z-index: 5;
}

/* Grand Médaillon 3D avec Double Anneau Doré */
.mode-card-medallion {
  width: 68px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 5px 8px rgba(0, 0, 0, 0.4));
  flex-shrink: 0;
  transition: transform 0.15s ease;
}

.mode-action-card:hover .mode-card-medallion {
  transform: scale(1.06);
}

.medallion-svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Contenu Texte */
.mode-card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 100%;
}

.mode-card-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 900;
  color: #ffffff;
  margin: 0;
  line-height: 1.1;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.85);
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}

.mode-card-sub {
  font-size: 0.82rem;
  font-weight: 800;
  color: #ecfccb;
  margin: 0;
  line-height: 1.2;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85);
}

.passplay-card .mode-card-sub {
  color: #fae8ff;
}

.adventure-card .mode-card-sub {
  color: #fef08a;
}

.online-card .mode-card-sub {
  color: #e0f2fe;
}

/* Boutons Play 3D Bombés Jaune d'Or (Chunky Toy Button) */
.btn-mode-play {
  width: 68px;
  height: 42px;
  background: linear-gradient(180deg, #fffbeb 0%, #facc15 35%, #eab308 100%);
  border: 2px solid #ffffff;
  border-radius: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 0 #92400e, 0 6px 12px rgba(0, 0, 0, 0.4);
  transition: all 0.12s ease;
  margin-top: 2px;
  padding: 0;
}

.btn-mode-play:hover {
  transform: scale(1.06);
}

.btn-mode-play:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 #92400e;
}

.btn-play-triangle {
  font-size: 1.35rem;
  color: #78350f;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 1px 0 #fef08a);
}

.btn-play-disabled {
  background: linear-gradient(180deg, #64748b 0%, #475569 100%) !important;
  box-shadow: 0 5px 0 #1e293b, 0 6px 12px rgba(0, 0, 0, 0.4) !important;
  border-color: #94a3b8 !important;
}

.btn-play-disabled .btn-play-triangle {
  color: #cbd5e1 !important;
  filter: none !important;
  font-size: 1.15rem;
}

/* --- Barre d'accès rapide inférieure (Dock 3D Console avec Bordure d'Appui Ledge - Image 1) --- */
.home-dock-console {
  position: relative;
  width: 100%;
  margin-top: 26px;
  padding: 0 8px 12px 8px;
  background: linear-gradient(180deg, #13274e 0%, #0c1833 100%);
  border-top: 2.5px solid #3c6db8;
  border-left: 2.5px solid #3c6db8;
  border-right: 2.5px solid #3c6db8;
  border-bottom: 2.5px solid #0c1833;
  border-top-left-radius: 28px;
  border-top-right-radius: 28px;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.45), inset 0 2px 3px rgba(255, 255, 255, 0.2);
  box-sizing: border-box;
}

.home-dock-shelf {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  width: 100%;
  margin-top: -18px; /* Fait dépasser les boutons au dessus de la bordure d'appui */
  box-sizing: border-box;
}

.quick-nav-btn {
  position: relative;
  background: linear-gradient(180deg, #244682 0%, #152b54 100%);
  border: 2px solid #3d6fb8;
  border-radius: 18px;
  padding: 8px 3px;
  height: 66px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 0 #0b162d, 0 8px 16px rgba(0, 0, 0, 0.5), inset 0 2px 2px rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: all 0.15s cubic-bezier(0.34, 1.56, 0.64, 1);
  user-select: none;
  box-sizing: border-box;
}

.quick-nav-btn:hover {
  transform: translateY(-4px);
  border-color: #facc15;
  filter: brightness(1.1);
}

.quick-nav-btn:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #0b162d;
}

.quick-nav-icon-box {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.45));
  flex-shrink: 0;
}

.quick-icon-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.quick-nav-label {
  font-family: 'Outfit', sans-serif;
  font-size: 0.86rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 0.2px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.95);
  line-height: 1.1;
  white-space: nowrap;
}

.quick-nav-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  text-align: center;
}

@keyframes pulseBadge {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 6px rgba(239, 68, 68, 0.6);
  }
  50% {
    transform: scale(1.15);
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.95);
  }
}

/* =========================================================================
   ADAPTATION RESPONSIVE DE L'ACCUEIL SELON LA HAUTEUR D'ÉCRAN
   (Pour Galaxy A55, iPhone SE, Pixel et tous mobiles)
   ========================================================================= */
@media (max-height: 880px) {
  .home-container {
    padding: calc(var(--safe-top) + 6px) 12px calc(var(--safe-bottom) + 8px) 12px;
    gap: 6px;
  }
  .home-hero-banner {
    padding: 0;
  }
  .home-hero-dice {
    font-size: 3.4rem;
  }
  .home-hero-title {
    font-size: 2.4rem;
  }
  .home-hero-subtitle {
    font-size: 0.8rem;
    margin-top: 1px;
  }
  .home-season-banner {
    padding: 6px 12px;
    margin-bottom: 4px;
  }
  .home-modes-grid {
    gap: 8px;
  }
  .mode-action-card {
    min-height: 136px;
    padding: 10px 8px 10px 8px;
    border-radius: 20px;
    gap: 4px;
  }
  .mode-card-medallion {
    width: 48px;
    height: 48px;
  }
  .mode-card-title {
    font-size: 1.05rem;
  }
  .mode-card-sub {
    font-size: 0.68rem;
  }
  .btn-mode-play {
    width: 58px;
    height: 32px;
    border-radius: 12px;
  }
  .home-dock-console {
    margin-top: 16px;
    padding: 0 6px 8px 6px;
    border-top-left-radius: 22px;
    border-top-right-radius: 22px;
  }
  .home-dock-shelf {
    margin-top: -14px;
    gap: 6px;
  }
  .quick-nav-btn {
    height: 72px;
    padding: 6px 2px 5px 2px;
    border-radius: 16px;
  }
  .quick-nav-icon-box {
    width: 34px;
    height: 34px;
  }
  .quick-nav-label {
    font-size: 0.68rem;
  }
}

@media (max-height: 720px) {
  .home-container {
    padding: calc(var(--safe-top) + 4px) 8px calc(var(--safe-bottom) + 6px) 8px;
    gap: 4px;
  }
  .home-hero-dice {
    font-size: 2.6rem;
  }
  .home-hero-title {
    font-size: 1.85rem;
  }
  .home-hero-subtitle {
    display: none;
  }
  .home-season-banner {
    padding: 4px 10px;
    margin-bottom: 2px;
  }
  .season-banner-badge {
    font-size: 0.6rem;
  }
  .season-banner-title {
    font-size: 0.75rem;
  }
  .home-modes-grid {
    gap: 6px;
  }
  .mode-action-card {
    min-height: 112px;
    padding: 6px 6px 6px 6px;
    border-radius: 16px;
    gap: 2px;
  }
  .mode-card-medallion {
    width: 38px;
    height: 38px;
  }
  .mode-card-title {
    font-size: 0.92rem;
  }
  .mode-card-sub {
    font-size: 0.6rem;
  }
  .btn-mode-play {
    width: 48px;
    height: 26px;
    border-radius: 10px;
  }
  .btn-play-triangle {
    font-size: 1.05rem;
  }
  .home-dock-console {
    margin-top: 10px;
    padding: 0 4px 5px 4px;
  }
  .home-dock-shelf {
    margin-top: -10px;
    gap: 4px;
  }
  .quick-nav-btn {
    height: 58px;
    padding: 4px 2px 3px 2px;
    border-radius: 12px;
  }
  .quick-nav-icon-box {
    width: 26px;
    height: 26px;
  }
  .quick-nav-label {
    font-size: 0.58rem;
  }
}

/* --- Barre Supérieure (Header) --- */
.app-header {
  padding: calc(var(--safe-top) + 8px) 16px 8px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(7, 13, 30, 0.75);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-glass);
  position: relative;
  z-index: 50;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.logo-dice-icon {
  font-size: 1.6rem;
  filter: drop-shadow(0 0 8px var(--gold));
}

.logo-text {
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #fff 0%, var(--gold-light) 50%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.coins-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-weight: 700;
  color: var(--gold-light);
  font-size: 0.95rem;
}

.icon-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.icon-btn:active {
  transform: scale(0.92);
  background: rgba(255, 255, 255, 0.18);
}

/* --- Tableau des Scores (HUD Joueurs 2 à 4) --- */
.scoreboard-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
  padding: 10px 14px;
  background: rgba(11, 19, 43, 0.95);
  border-bottom: 1px solid var(--border-glass);
  z-index: 40;
}

.player-card {
  background: rgba(15, 23, 42, 0.85);
  border: 1.5px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.player-card.active-turn-me {
  border-color: var(--gold);
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.28) 0%, rgba(15, 23, 42, 0.95) 100%);
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.55), inset 0 0 12px rgba(245, 158, 11, 0.2);
  transform: translateY(-3px) scale(1.02);
}

.player-card.active-turn-opp {
  border-color: #818cf8;
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.25) 0%, rgba(15, 23, 42, 0.95) 100%);
  box-shadow: 0 0 18px rgba(99, 102, 241, 0.45);
  transform: translateY(-2px);
}

.player-card.inactive-turn {
  opacity: 0.55;
  filter: grayscale(15%);
  transform: scale(0.97);
}

.player-turn-tag {
  font-size: 0.60rem;
  font-weight: 900;
  padding: 2px 6px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  flex-shrink: 0;
}

.player-turn-tag.tag-me {
  background: var(--gold);
  color: #0f172a;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.6);
}

.player-turn-tag.tag-opp {
  background: #6366f1;
  color: #ffffff;
}

.player-card.immune {
  border-color: var(--accent-blue);
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.45);
}

.player-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
  gap: 4px;
}

.player-avatar-name {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
  min-width: 0;
  flex: 1;
}

.player-avatar {
  font-size: 1.35rem;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}

.player-avatar svg {
  width: 100%;
  height: 100%;
  display: block;
}

.player-name-dice-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  gap: 1px;
}

.player-name {
  font-size: 0.90rem;
  font-weight: 800;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  max-width: 78px;
  line-height: 1.1;
}

.player-dice-pill {
  font-size: 0.60rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  opacity: 0.85;
}

.player-status-icons {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.player-shield-svg-wrap,
.player-joker-dice-wrap {
  position: relative;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.player-shield-svg-wrap .joker-logo-container,
.player-joker-dice-wrap .joker-logo-container {
  width: 22px !important;
  height: 22px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.player-shield-svg-wrap .joker-svg,
.player-joker-dice-wrap .joker-svg {
  width: 22px !important;
  height: 22px !important;
  display: block !important;
}

.player-shield-svg-wrap .shield-badge-count,
.player-joker-dice-wrap .deplus-badge-count {
  position: absolute;
  top: -4px;
  right: -5px;
  background: #22c55e;
  color: #ffffff;
  font-size: 0.62rem;
  font-weight: 900;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #0f172a;
}

.player-joker-dice-wrap .deplus-badge-count {
  background: #f59e0b;
}

.player-score-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.player-score-val {
  font-size: 1.65rem;
  font-weight: 900;
  color: var(--gold-light);
  line-height: 1;
}

.player-score-target {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
}

.score-progress-wrap {
  height: 6px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-full);
  margin-top: 6px;
  overflow: hidden;
}

.score-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-blue), var(--gold));
  border-radius: var(--radius-full);
  transition: width 0.4s ease;
}

/* Jauge de Revanche Solo */
.solo-revanche-gauge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  margin-top: 5px;
  background: rgba(245, 158, 11, 0.16);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.38);
  letter-spacing: 0.25px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
  white-space: nowrap;
}

.solo-revanche-gauge.active {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.4), rgba(245, 158, 11, 0.4));
  color: #fef08a;
  border: 1.2px solid #facc15;
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.45);
  animation: pulseRevanche 1.6s infinite ease-in-out;
}

@keyframes pulseRevanche {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.35);
  }
  50% {
    transform: scale(1.04);
    box-shadow: 0 0 18px rgba(245, 158, 11, 0.65);
  }
}

/* --- Arène 3D & Tapis de Jeu --- */
.game-arena-container {
  flex: 1;
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: radial-gradient(circle at 50% 30%, #1e40af 0%, #0f172a 75%, #020617 100%);
  transition: background 0.4s ease;
}

#canvas3d-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
}

#canvas3d-container canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

/* Overlay HUD au-dessus du Canvas (positionné absolument pour afficher les commandes en bas) */
.hud-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 20;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 14px;
  box-sizing: border-box;
}

/* Grand Splash Banner d'Arcade Éphémère (Badge compact au centre) */
.arcade-banner-container {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -40%) scale(0.85);
  z-index: 120;
  pointer-events: none;
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 92%;
  width: max-content;
  opacity: 0;
  transition: opacity 0.22s ease-out, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.arcade-banner-container.active {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.arcade-banner-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 28px;
  border-radius: var(--radius-lg);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.9), 0 0 25px rgba(245, 158, 11, 0.35);
  white-space: nowrap;
  pointer-events: auto;
  box-sizing: border-box;
  max-width: 100%;
}

/* En mode Fin de tour avec boutons d'actions : agencement en 2 lignes ultra-propre */
.arcade-banner-card.has-actions-layout {
  flex-direction: column;
  border-radius: var(--radius-lg);
  padding: 16px 24px;
  gap: 12px;
}

.arcade-banner-header {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  max-width: 100%;
}

.arcade-banner-icon {
  font-size: 2.2rem;
  line-height: 1;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.6));
}

.arcade-banner-text-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-align: center;
  min-width: 0;
  max-width: 100%;
}

.arcade-banner-title {
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: 0.5px;
  line-height: 1.2;
  white-space: normal;
  word-break: break-word;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
}

.arcade-banner-subtitle {
  font-size: 1.15rem;
  font-weight: 900;
  line-height: 1.25;
  color: #fef08a;
  white-space: normal;
  word-break: break-word;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.85);
}

/* Actions & Boutons intégrés dans le cadre du message */
.arcade-banner-actions {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin: 0;
}

.arcade-banner-deplus-btn {
  background: transparent;
  border: none;
  padding: 0;
  position: relative;
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  pointer-events: auto;
  transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1);
  margin-right: 4px;
}

.arcade-banner-deplus-btn .joker-logo-container {
  width: 58px;
  height: 58px;
}

/* Animation Clignotement + Grossissement (Pulsation quand utilisable) */
@keyframes jokerPulseScaleGlow {
  0% {
    transform: scale(1);
    filter: drop-shadow(0 0 4px rgba(245, 158, 11, 0.4));
  }
  50% {
    transform: scale(1.22);
    filter: drop-shadow(0 0 16px rgba(245, 158, 11, 0.95)) drop-shadow(0 0 24px rgba(56, 189, 248, 0.9));
  }
  100% {
    transform: scale(1);
    filter: drop-shadow(0 0 4px rgba(245, 158, 11, 0.4));
  }
}

.arcade-banner-deplus-btn.has-stock {
  animation: jokerPulseScaleGlow 1.05s infinite ease-in-out !important;
}

.arcade-banner-deplus-btn.has-stock:hover {
  transform: scale(1.28) !important;
}

.arcade-banner-deplus-btn:disabled,
.arcade-banner-deplus-btn.no-stock {
  opacity: 0.35;
  filter: grayscale(80%);
  cursor: not-allowed !important;
  animation: none !important;
  pointer-events: none;
}

.banner-badge-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #dc2626;
  border: 1.5px solid #ffffff;
  color: #ffffff;
  font-size: 0.84rem;
  font-weight: 900;
  border-radius: var(--radius-full);
  padding: 1px 7px;
  min-width: 18px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.7);
  z-index: 10;
  line-height: 1.2;
  pointer-events: none;
}

.arcade-banner-next-btn {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border: 1.5px solid #60a5fa;
  color: #93c5fd;
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.3px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  pointer-events: auto;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.arcade-banner-next-btn:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  border-color: #93c5fd;
  color: #ffffff;
  transform: scale(1.05);
  box-shadow: 0 0 16px rgba(37, 99, 235, 0.6);
}

.arcade-banner-next-btn:active {
  transform: scale(0.96);
}

@keyframes pulseDePlusBtn {
  0%, 100% { transform: scale(1); box-shadow: 0 0 14px rgba(16, 185, 129, 0.6); }
  50% { transform: scale(1.06); box-shadow: 0 0 26px rgba(16, 185, 129, 0.95); }
}

/* Thèmes des Bannières avec Contrastes et Lisibilité Maximale */
.banner-combo {
  background: linear-gradient(135deg, #1e1b4b 0%, #0f172a 100%);
  border: 2px solid #fbbf24;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.85), 0 0 20px rgba(245, 158, 11, 0.5);
}
.banner-combo .arcade-banner-title { color: #fbbf24; text-shadow: 0 2px 8px rgba(0,0,0,0.6); }

.banner-score {
  background: linear-gradient(135deg, #064e3b 0%, #022c22 100%);
  border: 2px solid #34d399;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.85), 0 0 20px rgba(52, 211, 153, 0.5);
}
.banner-score .arcade-banner-title { color: #34d399; text-shadow: 0 2px 8px rgba(0,0,0,0.6); }

.banner-grand-chelem {
  background: linear-gradient(135deg, #831843 0%, #3b0764 100%);
  border: 2.5px solid #f472b6;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.85), 0 0 25px rgba(244, 114, 182, 0.6);
}
.banner-grand-chelem .arcade-banner-title { color: #fbbf24; text-shadow: 0 2px 8px rgba(0,0,0,0.6); }

.banner-malus {
  background: linear-gradient(135deg, #581c87 0%, #2e1065 100%);
  border: 2px solid #c084fc;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.85), 0 0 22px rgba(192, 132, 252, 0.6);
}
.banner-malus .arcade-banner-title { color: #f0abfc; text-shadow: 0 2px 8px rgba(0,0,0,0.6); }

.banner-fail {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border: 2px solid #64748b;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.85);
}
.banner-fail .arcade-banner-title { color: #e2e8f0; }

/* --- Commandes de Choix : S'arrêter ou Continuer (Stop ou Encore) --- */
.turn-choice-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
}

.btn-turn-choice {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--radius-lg);
  border: 2px solid transparent;
  cursor: pointer;
  pointer-events: auto;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
  user-select: none;
}

.btn-turn-choice:hover {
  transform: translateY(-3px) scale(1.03);
}

.btn-turn-choice:active {
  transform: translateY(1px) scale(0.97);
}

.btn-turn-choice .choice-icon {
  font-size: 1.8rem;
  line-height: 1;
  flex-shrink: 0;
}

.btn-turn-choice .choice-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
}

.btn-turn-choice .choice-title {
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: 0.3px;
}

.btn-turn-choice .choice-sub {
  font-size: 0.88rem;
  font-weight: 800;
  opacity: 0.95;
}

/* Bouton S'arrêter (Sécuriser les points) */
.btn-choice-stop {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  border-color: #6ee7b7;
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(5, 150, 105, 0.45), inset 0 1px 2px rgba(255, 255, 255, 0.35);
}

.btn-choice-stop .choice-sub {
  color: #fef08a;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.btn-choice-stop:hover {
  box-shadow: 0 0 24px rgba(16, 185, 129, 0.75), inset 0 1px 2px rgba(255, 255, 255, 0.5);
}

/* Bouton Continuer (Prendre le risque de relancer) */
.btn-choice-continue {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  border-color: #93c5fd;
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45), inset 0 1px 2px rgba(255, 255, 255, 0.35);
}

.btn-choice-continue .choice-sub {
  color: #bae6fd;
}

.btn-choice-continue:hover {
  box-shadow: 0 0 24px rgba(59, 130, 246, 0.75), inset 0 1px 2px rgba(255, 255, 255, 0.5);
}

/* Bandeau Spectateur / Observation Tour Adversaire */
.spectator-watch-bar {
  width: 100%;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 27, 75, 0.95) 100%);
  border: 1.5px solid rgba(129, 140, 248, 0.45);
  border-radius: var(--radius-lg);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
}

.spectator-avatar-pulse {
  font-size: 1.8rem;
  line-height: 1;
  animation: pulseAvatar 1.5s infinite ease-in-out;
}

@keyframes pulseAvatar {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

.spectator-text-wrap {
  display: flex;
  flex-direction: column;
  flex: 1;
  margin-left: 12px;
}

.spectator-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #e0e7ff;
}

.spectator-status {
  font-size: 0.78rem;
  font-weight: 600;
  color: #a5b4fc;
}

.spectator-dots-spinner {
  display: flex;
  gap: 5px;
  align-items: center;
}

.spectator-dots-spinner span {
  width: 7px;
  height: 7px;
  background: #818cf8;
  border-radius: 50%;
  display: inline-block;
  animation: bounceDots 1.4s infinite ease-in-out both;
}

.spectator-dots-spinner span:nth-child(1) { animation-delay: -0.32s; }
.spectator-dots-spinner span:nth-child(2) { animation-delay: -0.16s; }

@keyframes bounceDots {
  0%, 80%, 100% { transform: scale(0); opacity: 0.3; }
  40% { transform: scale(1); opacity: 1; }
}

/* Banque des Familles Validées pendant le tour (Géré visuellement sur le canvas) */
.families-bank-drawer {
  display: none !important;
}

.family-pill-card {
  background: rgba(15, 23, 42, 0.95);
  border: 1.5px solid var(--gold);
  border-radius: var(--radius-md);
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5);
  animation: popIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  white-space: nowrap;
}

.family-pill-card.malus-family {
  border-color: var(--accent-red);
  background: rgba(69, 10, 10, 0.95);
}

.family-symbol-badge {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--gold);
  color: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.25rem;
}

.malus-family .family-symbol-badge {
  background: var(--accent-red);
  color: #fff;
}

.family-details {
  display: flex;
  flex-direction: column;
}

.family-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
}

.family-pts {
  font-size: 1rem;
  font-weight: 900;
  color: var(--gold-light);
}

.malus-family .family-pts {
  color: #fca5a5;
}

/* Panneau d'Actions Inférieur */
.hud-bottom-actions {
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding-bottom: calc(var(--safe-bottom) + 8px);
}

/* Boutons principaux */
.main-roll-controls {
  display: flex;
  align-items: stretch;
  gap: 10px;
  width: 100%;
}

.btn-primary-roll {
  flex: 1;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%);
  color: #0f172a;
  border: none;
  padding: 18px 24px;
  border-radius: var(--radius-lg);
  font-family: 'Outfit', sans-serif;
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.5), inset 0 2px 3px rgba(255, 255, 255, 0.4);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary-roll:active {
  transform: translateY(2px);
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.3);
}

.btn-primary-roll:disabled {
  background: #334155;
  color: #64748b;
  box-shadow: none;
  cursor: not-allowed;
}



/* --- Modales et Menus (Popups) --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(7, 13, 30, 0.85);
  backdrop-filter: blur(12px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 1;
  transition: opacity 0.25s ease;
}

.modal-overlay.hidden {
  opacity: 0;
  pointer-events: none;
  display: none;
}

.modal-box {
  background: var(--bg-card);
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.85);
  width: 100%;
  max-width: 520px;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modalScale 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalScale {
  from { transform: scale(0.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* Modale de Confirmation d'Achat (Anti-sursaut et fluidité instantanée) */
#modal-confirm-purchase {
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  background: rgba(7, 13, 30, 0.72);
}

#modal-confirm-purchase .modal-box {
  animation: confirmModalIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: center center;
  will-change: transform, opacity;
}

@keyframes confirmModalIn {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.modal-header {
  padding: 18px 24px;
  border-bottom: 1.5px solid var(--border-glass);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title {
  font-size: 1.45rem;
  font-weight: 900;
  color: var(--gold-light);
  letter-spacing: -0.3px;
}

.modal-body {
  padding: 22px 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-size: 1.05rem;
  line-height: 1.6;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1.5px solid var(--border-glass);
  display: flex;
  gap: 12px;
}

/* Boutons Menu Principal */
.menu-options-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.menu-card-btn {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
  color: var(--text-main);
}

.menu-card-btn:active, .menu-card-btn:hover {
  background: rgba(30, 41, 59, 0.95);
  border-color: var(--gold);
  transform: translateX(4px);
}

.menu-card-icon {
  font-size: 2rem;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(245, 158, 11, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-card-info h3 {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 2px;
}

.menu-card-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Configuration Pass & Play */
.player-count-picker {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.btn-count-choice {
  flex: 1;
  padding: 12px;
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--text-main);
  cursor: pointer;
}

.btn-count-choice.active {
  background: var(--gold);
  color: #1e1b4b;
  border-color: var(--gold);
}

.player-input-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(15, 23, 42, 0.6);
  padding: 8px 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-glass);
}

.player-input-avatar {
  font-size: 1.4rem;
  cursor: pointer;
}

.player-input-name {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  outline: none;
}

/* Modale Choix Joker */
.joker-choices-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.joker-choice-card {
  background: rgba(30, 41, 59, 0.8);
  border: 2px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.joker-choice-card:hover, .joker-choice-card:active {
  border-color: var(--gold);
  background: rgba(245, 158, 11, 0.15);
  transform: scale(1.03);
}

.joker-choice-symbol {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--gold-light);
}

/* Modale Ciblage Malus -5 */
.target-players-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.target-card-btn {
  background: rgba(69, 10, 10, 0.4);
  border: 1px solid var(--accent-red);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--text-main);
}

.target-card-btn:hover, .target-card-btn:active {
  background: rgba(220, 38, 38, 0.3);
  transform: scale(1.02);
}

/* =========================================================================
   STYLE CARNAVAL SUSPENDU (IMAGES 1 & 2 - ROUE BOOSTER & PACKS)
   ========================================================================= */
.carnival-hanging-wrapper {
  position: relative;
  width: 94%;
  max-width: 380px;
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.carnival-rope-line {
  width: 4px;
  height: 36px;
  background: linear-gradient(180deg, #f43f5e 0%, #fb7185 100%);
  box-shadow: 0 0 8px rgba(244, 63, 94, 0.5);
  border-radius: 2px;
}

.carnival-knot-badge {
  width: 26px;
  height: 14px;
  background: #e11d48;
  border: 2.5px solid #ffffff;
  border-radius: 14px;
  margin-top: -7px;
  z-index: 6;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.35);
}

.carnival-card-box {
  width: 100%;
  background: linear-gradient(180deg, #fff1f2 0%, #ffe4e6 45%, #fed7aa 100%);
  border: 4.5px solid #f43f5e;
  border-radius: 28px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.65), inset 0 2px 4px rgba(255, 255, 255, 0.8);
  box-sizing: border-box;
  padding: 14px 16px 16px;
  position: relative;
  color: #881337;
  overflow: hidden;
}

.carnival-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 6px;
}

.carnival-card-title {
  font-family: cursive, 'Outfit', sans-serif;
  font-size: 1.65rem;
  font-weight: 900;
  color: #e11d48;
  text-shadow: 0 1px 0 #ffffff, 0 2px 6px rgba(225, 29, 72, 0.35);
  font-style: italic;
  margin: 0;
  text-align: center;
}

.carnival-info-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #ec4899;
  border: 2px solid #ffffff;
  color: #ffffff;
  font-weight: 900;
  font-size: 1.1rem;
  font-style: italic;
  font-family: serif;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(236, 72, 153, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s;
}

.carnival-info-btn:hover {
  transform: scale(1.1);
}

.carnival-close-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  border: 2.5px solid #ffffff;
  color: #ffffff;
  font-weight: 900;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(220, 38, 38, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s;
}

.carnival-close-btn:hover {
  transform: scale(1.1);
}

/* Roue Booster dans le Cadre Carnaval */
.carnival-wheel-body {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.carnival-wheel-wrapper {
  position: relative;
  width: 270px;
  height: 270px;
  margin: 4px auto 0;
}

.carnival-canvas-rim {
  width: 270px;
  height: 270px;
  border-radius: 50%;
  position: relative;
  border: 6px solid #fb7185;
  box-shadow: 0 6px 20px rgba(225, 29, 72, 0.35), inset 0 0 10px rgba(0, 0, 0, 0.2);
  background: #2b1509;
}

#wheel-canvas {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: block;
}

.carnival-wheel-pointer {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-top: 26px solid #e11d48;
  filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.45));
  z-index: 15;
}

.carnival-center-pin {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: radial-gradient(circle, #fef08a 20%, #f59e0b 80%);
  border: 3px solid #ffffff;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.35);
  z-index: 10;
}

/* Socle Piédestal 3D */
.carnival-pedestal-base {
  width: 284px;
  height: 62px;
  margin: -18px auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 12;
  position: relative;
  overflow: visible;
}

.carnival-pedestal-base::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #0284c7 0%, #0369a1 60%, #075985 100%);
  clip-path: polygon(3.5% 0%, 96.5% 0%, 100% 100%, 0% 100%);
  border-radius: 10px;
  box-shadow: 0 8px 22px rgba(2, 132, 199, 0.5);
  z-index: 0;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.carnival-pedestal-base:has(.carnival-spin-action-btn:disabled)::before {
  background: linear-gradient(180deg, #64748b 0%, #475569 60%, #334155 100%);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Gros Bouton d'Action Tourner Spectaculaire & Gourmand */
.carnival-spin-action-btn {
  width: 90%;
  max-width: 250px;
  height: 44px;
  padding: 0 12px;
  border-radius: 24px;
  background: linear-gradient(180deg, #fde047 0%, #f59e0b 35%, #ea580c 80%, #c2410c 100%);
  border: 2.5px solid #ffffff;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  box-shadow: 0 6px 18px rgba(234, 88, 12, 0.6), inset 0 2px 4px rgba(255, 255, 255, 0.85);
  transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.18s ease, box-shadow 0.18s ease;
  white-space: nowrap;
  box-sizing: border-box;
  position: relative;
  z-index: 1;
}

.carnival-spin-action-btn.is-ready-to-spin {
  animation: carnivalBtnPulse 1.8s infinite ease-in-out;
}

@keyframes carnivalBtnPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 6px 18px rgba(234, 88, 12, 0.6), inset 0 2px 4px rgba(255, 255, 255, 0.85);
  }
  50% {
    transform: scale(1.04);
    filter: brightness(1.12);
    box-shadow: 0 8px 26px rgba(245, 158, 11, 0.8), inset 0 3px 6px rgba(255, 255, 255, 0.95);
  }
}

.carnival-spin-action-btn:hover:not(:disabled) {
  transform: scale(1.05);
  filter: brightness(1.15);
  box-shadow: 0 8px 24px rgba(234, 88, 12, 0.7);
}

.carnival-spin-action-btn:active:not(:disabled) {
  transform: scale(0.97);
  box-shadow: 0 2px 8px rgba(234, 88, 12, 0.4);
}

.carnival-spin-action-btn:disabled {
  background: linear-gradient(180deg, #475569 0%, #334155 100%);
  border-color: rgba(255, 255, 255, 0.35);
  color: #f1f5f9;
  opacity: 0.95;
  cursor: not-allowed;
  transform: none;
  animation: none;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.15), 0 2px 4px rgba(0, 0, 0, 0.2);
}

.pedestal-btn-text {
  font-family: 'Outfit', sans-serif;
  font-weight: 950;
  font-size: 1.05rem;
  letter-spacing: 0.4px;
  white-space: nowrap;
  line-height: 1;
}

.carnival-spin-action-btn:disabled .pedestal-btn-text {
  font-size: 0.88rem;
  font-weight: 850;
  letter-spacing: 0.2px;
}

.pedestal-badge-token {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 9999px;
  background: #ffffff;
  color: #c2410c;
  border: 1.5px solid #ffedd5;
  font-family: 'Outfit', sans-serif;
  font-size: 0.76rem;
  font-weight: 900;
  white-space: nowrap;
  line-height: 1.1;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.carnival-spin-action-btn:disabled .pedestal-badge-token {
  background: rgba(15, 23, 42, 0.45);
  border-color: rgba(255, 255, 255, 0.25);
  color: #e2e8f0;
  font-size: 0.70rem;
  padding: 3px 8px;
  box-shadow: none;
}

.carnival-dashed-separator {
  width: 92%;
  border-top: 2px dashed rgba(244, 63, 94, 0.3);
  margin: 12px auto 8px;
}

.carnival-timer-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.carnival-stopwatch-capsule {
  border-radius: 20px;
  padding: 4px 14px 4px 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.carnival-stopwatch-capsule.status-available {
  background: rgba(34, 197, 94, 0.12);
  border: 1.5px solid rgba(34, 197, 94, 0.35);
  box-shadow: none;
  cursor: pointer;
}

.carnival-stopwatch-capsule.status-available:hover {
  background: rgba(34, 197, 94, 0.2);
  border-color: rgba(34, 197, 94, 0.55);
}

.carnival-stopwatch-capsule.status-available .stopwatch-golden-circle {
  background: linear-gradient(135deg, #4ade80 0%, #16a34a 100%);
  color: #ffffff;
  width: 24px;
  height: 24px;
}

.carnival-stopwatch-capsule.status-available .carnival-timer-digits {
  color: #15803d;
  font-size: 0.94rem;
  font-weight: 800;
}

.carnival-stopwatch-capsule.status-waiting {
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.carnival-stopwatch-capsule.status-waiting .stopwatch-golden-circle {
  background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%);
  color: #ffffff;
  width: 26px;
  height: 26px;
}

.carnival-stopwatch-capsule.status-waiting .carnival-timer-digits {
  color: #475569;
  font-size: 1.05rem;
  font-weight: 900;
}

.stopwatch-golden-circle {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carnival-timer-digits {
  font-weight: 900;
  font-size: 1.05rem;
  color: #b45309;
  letter-spacing: 0.5px;
}

.carnival-timer-caption {
  font-size: 0.82rem;
  font-weight: 700;
  color: #e11d48;
  text-align: center;
}

.carnival-bottom-banner {
  background: #fffbeb;
  border: 1.5px solid #fef08a;
  border-radius: 14px;
  padding: 8px 12px;
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #92400e;
}

/* =========================================================================
   BOUTIQUE FUN & COLORÉE AVEC PACKS
   ========================================================================= */
/* Wrapper & Box pour Boutique Style Carnaval Fun & Coloré */
#modal-shop {
  padding: 6px 8px;
}

.shop-hanging-wrapper {
  max-width: 490px;
  width: 96%;
  height: calc(100vh - 12px);
  height: calc(100dvh - 12px);
  max-height: 98vh;
  max-height: 98dvh;
}

.shop-hanging-wrapper .carnival-rope-line {
  height: 10px;
}

.shop-carnival-box {
  background: linear-gradient(180deg, #fff1f2 0%, #fce7f3 40%, #fed7aa 100%);
  border: 4px solid #f43f5e;
  border-radius: 26px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.75), inset 0 2px 4px rgba(255, 255, 255, 0.85);
  height: 100%;
  max-height: calc(98vh - 14px);
  max-height: calc(98dvh - 14px);
  display: flex;
  flex-direction: column;
  padding: 10px 12px 12px;
  box-sizing: border-box;
}

.shop-carnival-header {
  margin-bottom: 6px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.shop-modal-title {
  font-family: cursive, 'Outfit', sans-serif;
  font-size: 1.65rem;
  font-weight: 900;
  color: #e11d48;
  text-shadow: 0 1px 0 #ffffff, 0 2px 6px rgba(225, 29, 72, 0.35);
  font-style: italic;
  margin: 0;
}

.shop-carnival-scroll {
  overflow-y: auto;
  overflow-x: hidden;
  flex: 1;
  min-height: 0;
  padding: 4px 4px 12px 4px;
  box-sizing: border-box;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

/* Liste des 6 vignettes d'égale importance visuelle */
.shop-equal-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Carte égale d'achat / cosmétique */
.shop-equal-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 12px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), inset 0 1px 1px rgba(255, 255, 255, 0.9);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer;
  box-sizing: border-box;
  min-height: 66px;
}

.shop-equal-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.14);
}

.shop-equal-card:active {
  transform: scale(0.99);
}

/* Thèmes colorés funs pour chacune des 5 vignettes */
.card-theme-deplus {
  border: 2.5px solid #10b981;
  background: linear-gradient(135deg, #ffffff 0%, #ecfdf5 60%, #d1fae5 100%);
}

.card-theme-bouclier {
  border: 2.5px solid #a855f7;
  background: linear-gradient(135deg, #ffffff 0%, #faf5ff 60%, #f3e8ff 100%);
}

.card-theme-dice {
  border: 2.5px solid #f43f5e;
  background: linear-gradient(135deg, #ffffff 0%, #fff1f2 60%, #ffe4e6 100%);
}

.card-theme-table {
  border: 2.5px solid #0284c7;
  background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 60%, #e0f2fe 100%);
}

.card-theme-avatar {
  border: 2.5px solid #f59e0b;
  background: linear-gradient(135deg, #ffffff 0%, #fffbeb 60%, #fef3c7 100%);
}

/* =========================================================================
   VIGNETTE VEDETTE DU PASS MENSUEL (Hero Card Taller, Slightly Narrower & Shimmer)
   ========================================================================= */
/* =========================================================================
   VIGNETTE VEDETTE DU PASS MENSUEL (Hero Card Aéré, Non-débordant & Shimmer)
   ========================================================================= */
.shop-vip-hero-card {
  width: 95%;
  margin: 0 auto 8px auto;
  padding: 8px 12px 9px 12px;
  min-height: 96px;
  border-radius: 18px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 6px;
  background: linear-gradient(120deg, #fffbeb 0%, #fef3c7 20%, #fde68a 40%, #fff7ed 55%, #fde047 70%, #fef3c7 85%, #fffbeb 100%);
  background-size: 260% 100%;
  animation: vipGoldSheen 5s ease infinite;
  border: 2.5px solid #f59e0b;
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.3), 0 2px 6px rgba(217, 119, 6, 0.15), inset 0 2px 4px rgba(255, 255, 255, 0.9);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
}

.shop-vip-hero-card:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 10px 26px rgba(245, 158, 11, 0.42), inset 0 2px 4px rgba(255, 255, 255, 1);
}

.shop-vip-hero-card:active {
  transform: scale(0.99);
}

/* Reflet de balayage lumineux */
.vip-hero-shine-fx {
  position: absolute;
  top: 0;
  left: -140%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.65) 50%, transparent 100%);
  transform: skewX(-25deg);
  pointer-events: none;
  animation: vipShimmerSweep 4.5s ease-in-out infinite;
}

/* Ligne Supérieure : Titre & Prix */
.vip-hero-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.vip-hero-title-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.vip-hero-sparkle {
  font-size: 0.85rem;
  animation: sparkleTwinkle 2.5s ease-in-out infinite;
}

.vip-hero-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 900;
  color: #78350f;
  letter-spacing: 0.2px;
  line-height: 1.1;
  white-space: nowrap;
}

.vip-hero-price-tag {
  font-family: 'Outfit', sans-serif;
  font-size: 0.82rem;
  font-weight: 900;
  background: linear-gradient(180deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1.2px solid #fef08a;
  box-shadow: 0 2px 5px rgba(217, 119, 6, 0.3);
  white-space: nowrap !important;
  flex-shrink: 0;
  line-height: 1.1;
  display: inline-block;
}

/* Ligne Inférieure */
.vip-hero-main-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

/* Médaillon Couronne 3D */
.vip-hero-badge-wrap {
  flex-shrink: 0;
}

.vip-hero-crown-circle {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, #fef08a 0%, #f59e0b 50%, #b45309 100%);
  border: 2px solid #ffffff;
  box-shadow: 0 3px 10px rgba(180, 83, 9, 0.3), inset 0 2px 4px rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
}

.vip-hero-crown-icon {
  font-size: 1.65rem;
  line-height: 1;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.2));
  animation: crownFloat 3s ease-in-out infinite;
}

/* Avantages courts */
.vip-hero-perks {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.vip-perk-item {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid #fde047;
  border-radius: 8px;
  padding: 2px 7px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #713f12;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.vip-perk-bullet {
  font-size: 0.8rem;
  line-height: 1;
  flex-shrink: 0;
}

.vip-perk-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Bouton d'Action */
.vip-hero-action-wrap {
  flex-shrink: 0;
}

.vip-hero-btn-action {
  background: linear-gradient(180deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff;
  border: 2px solid #fef08a;
  border-radius: 13px;
  padding: 8px 12px;
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 3px 10px rgba(217, 119, 6, 0.35);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.vip-hero-btn-action:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 14px rgba(217, 119, 6, 0.5);
}

/* État Pass Actif (Émeraude & Or) */
.shop-vip-hero-card.is-active-pass {
  border-color: #22c55e;
  background: linear-gradient(120deg, #f0fdf4 0%, #dcfce7 20%, #86efac 40%, #f0fdf4 55%, #86efac 70%, #dcfce7 85%, #f0fdf4 100%);
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.3), inset 0 2px 4px rgba(255, 255, 255, 0.9);
}

.shop-vip-hero-card.is-active-pass .vip-hero-title {
  color: #14532d;
}

.shop-vip-hero-card.is-active-pass .vip-hero-price-tag {
  background: #16a34a;
  border-color: #86efac;
}

.shop-vip-hero-card.is-active-pass .vip-hero-btn-action {
  background: linear-gradient(180deg, #22c55e 0%, #16a34a 100%);
  border-color: #86efac;
  box-shadow: 0 3px 10px rgba(22, 163, 74, 0.35);
}

/* Animations Clés */
@keyframes vipGoldSheen {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes vipShimmerSweep {
  0%, 25% { left: -140%; }
  55%, 100% { left: 160%; }
}

@keyframes crownFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2.5px); }
}

@keyframes sparkleTwinkle {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.25); opacity: 1; }
}

/* Visual Wrapper & Médaillons */
.shop-card-visual-wrap {
  flex-shrink: 0;
}

.shop-card-badge-circle {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12), inset 0 2px 4px rgba(255, 255, 255, 0.4);
  border: 2px solid #ffffff;
}

.badge-circle-deplus {
  background: linear-gradient(135deg, #34d399 0%, #059669 100%);
}

.badge-circle-bouclier {
  background: linear-gradient(135deg, #c084fc 0%, #7e22ce 100%);
}

.badge-circle-dice {
  background: radial-gradient(circle at 40% 35%, #f43f5e 0%, #be123c 60%, #881337 100%);
}

.badge-circle-table {
  background: linear-gradient(135deg, #1e3a8a 0%, #0f172a 100%);
}

.badge-circle-avatar {
  background: linear-gradient(135deg, #fef08a 0%, #d97706 100%);
}

.shop-card-badge-circle .joker-logo-container {
  width: 44px !important;
  height: 44px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.shop-card-badge-circle .joker-svg {
  width: 44px !important;
  height: 44px !important;
  display: block !important;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.3));
}

.shop-card-icon-emoji {
  font-size: 1.85rem;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.shop-table-icon-emoji {
  font-size: 1.9rem;
  line-height: 1;
}

.shop-equipped-dice-target {
  width: 52px;
  height: 52px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.shop-equipped-dice-target canvas {
  width: 52px !important;
  height: 52px !important;
  border-radius: 14px;
  background: transparent !important;
}

/* Détails Centraux */
.shop-card-details {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
}

.shop-card-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: 1.05rem;
  color: #1e293b;
  letter-spacing: -0.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.shop-card-sub {
  display: flex;
  align-items: center;
}

.shop-stock-pill {
  font-size: 0.75rem;
  font-weight: 800;
  color: #065f46;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  padding: 2px 8px;
  border-radius: 999px;
}

.shop-stock-pill.pill-bouclier {
  color: #581c87;
  background: rgba(168, 85, 247, 0.15);
  border-color: rgba(168, 85, 247, 0.35);
}

.shop-equipped-name-pill {
  font-size: 0.74rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 155px;
}

.pill-dice {
  color: #9f1239;
  background: rgba(244, 63, 94, 0.12);
  border: 1px solid rgba(244, 63, 94, 0.3);
}

.pill-table {
  color: #075985;
  background: rgba(2, 132, 199, 0.12);
  border: 1px solid rgba(2, 132, 199, 0.3);
}

.pill-avatar {
  color: #92400e;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.35);
}

/* Boutons d'Action à Droite */
.shop-card-action-wrap {
  flex-shrink: 0;
}

.shop-btn-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 800;
  font-size: 0.85rem;
  color: #ffffff;
  border: none;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.22);
  transition: transform 0.15s ease, filter 0.15s ease;
  white-space: nowrap;
}

.shop-btn-action:hover {
  transform: scale(1.06);
  filter: brightness(1.1);
}

.shop-btn-action:active {
  transform: scale(0.96);
}

.btn-plus-icon {
  font-size: 1.25rem;
  font-weight: 900;
  line-height: 1;
  display: inline-block;
  margin-top: -1px;
}

.btn-arrow-icon {
  font-size: 0.88rem;
  line-height: 1;
  display: inline-block;
  transition: transform 0.15s ease;
}

.shop-btn-action:hover .btn-arrow-icon {
  transform: translateX(2px);
}

.btn-action-deplus {
  background: linear-gradient(180deg, #10b981 0%, #059669 100%);
}

.btn-action-bouclier {
  background: linear-gradient(180deg, #a855f7 0%, #7e22ce 100%);
}

.btn-action-dice {
  background: linear-gradient(180deg, #f43f5e 0%, #e11d48 100%);
}

.btn-action-table {
  background: linear-gradient(180deg, #0ea5e9 0%, #0284c7 100%);
}

.btn-action-avatar {
  background: linear-gradient(180deg, #f59e0b 0%, #d97706 100%);
}

/* Sous-galerie Cosmétiques */
.shop-subgallery-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  min-height: 0;
}

.subgallery-header {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
  text-align: center;
  width: 100%;
}

.subgallery-title {
  font-size: 1.18rem;
  font-weight: 900;
  color: #881337;
  font-family: 'Outfit', sans-serif;
  text-align: center;
  letter-spacing: -0.2px;
}

/* Onglets Switcher Matières / Motifs */
.shop-subgallery-switch-bar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
  margin: 8px 0 12px 0;
  background: rgba(255, 255, 255, 0.7);
  padding: 4px;
  border-radius: var(--radius-full);
  border: 2px solid #fb7185;
  box-sizing: border-box;
}

.subgallery-tab-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  border: none;
  background: transparent;
  color: #881337;
  font-family: 'Outfit', sans-serif;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  user-select: none;
}

.subgallery-tab-btn .tab-btn-icon {
  font-size: 1.15rem;
  line-height: 1;
}

.subgallery-tab-btn .tab-btn-label {
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: 0.2px;
}

.subgallery-tab-btn.active {
  background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
  color: #ffffff;
  box-shadow: 0 3px 10px rgba(225, 29, 72, 0.35);
  transform: scale(1.02);
}

.subgallery-tab-btn:not(.active):hover {
  background: rgba(255, 255, 255, 0.9);
  color: #be123c;
}

/* Aperçu 2D des motifs sur fond uni (ultra léger, 0 WebGL) */
.shop-pattern-flat-box {
  background: radial-gradient(circle at 50% 50%, #1e293b 0%, #0f172a 100%) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.shop-pattern-flat-slot {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.shop-pattern-flat-canvas {
  width: 78px !important;
  height: 78px !important;
  display: block;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.45));
}

/* =========================================================================
   MODAL SPÉCIFIQUE D'ACHAT DE PACK (STYLE IMAGE 2)
   ========================================================================= */
.pack-purchase-box {
  background: linear-gradient(180deg, #fff0f3 0%, #fde2e8 45%, #ffccd5 100%);
  border: 4.5px solid #fb7185;
  border-radius: 30px;
  padding: 12px 18px 20px;
}

.pack-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.pack-user-coins-badge {
  background: #ffffff;
  border: 2px solid #fde047;
  border-radius: 18px;
  padding: 4px 14px;
  font-weight: 900;
  color: #b45309;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 3px 8px rgba(245, 158, 11, 0.3);
}

.pack-sunburst-medallion {
  width: 110px;
  height: 110px;
  margin: 4px auto;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pack-sunburst-medallion::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, #fde047 30%, #f59e0b 70%, #d97706 100%);
  clip-path: polygon(50% 0%, 63% 12%, 80% 5%, 85% 22%, 100% 25%, 95% 42%, 100% 58%, 88% 70%, 93% 88%, 76% 87%, 68% 100%, 50% 93%, 32% 100%, 24% 87%, 7% 88%, 12% 70%, 0% 58%, 5% 42%, 0% 25%, 15% 22%, 20% 5%, 37% 12%);
  filter: drop-shadow(0 6px 14px rgba(217, 119, 6, 0.45));
  z-index: 1;
}

.pack-hero-icon-display {
  position: relative;
  z-index: 2;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  line-height: 1;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.35));
}

.pack-hero-icon-display .joker-logo-container {
  width: 78px !important;
  height: 78px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.pack-hero-icon-display .joker-svg {
  width: 78px !important;
  height: 78px !important;
  display: block !important;
}

.tier-mini-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.tier-mini-icon .joker-logo-container {
  width: 26px !important;
  height: 26px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.tier-mini-icon .joker-svg {
  width: 26px !important;
  height: 26px !important;
  display: block !important;
}

.pack-hero-title {
  font-family: cursive, 'Outfit', sans-serif;
  font-size: 1.7rem;
  font-weight: 900;
  color: #9f1239;
  margin: 6px 0 4px;
  font-style: italic;
  text-shadow: 0 1px 0 #ffffff;
  text-align: center;
}

.pack-hero-desc {
  font-size: 0.85rem;
  color: #881337;
  line-height: 1.35;
  max-width: 320px;
  margin: 0 auto 14px;
  font-weight: 600;
  text-align: center;
}

.pack-tiers-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pack-tier-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.75);
  border: 2px solid #fbcfe8;
  border-radius: 22px;
  padding: 6px 10px 6px 14px;
  box-shadow: 0 3px 8px rgba(225, 29, 72, 0.1);
}

.tier-left-display {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tier-mini-icon {
  font-size: 1.6rem;
  line-height: 1;
}

.tier-quantity-text {
  font-family: 'Outfit', system-ui, -apple-system, sans-serif;
  font-size: 1.55rem;
  font-weight: 900;
  color: #9f1239;
  font-style: normal;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  line-height: 1;
}

.tier-times-cross {
  font-size: 1.4rem;
  font-weight: 900;
  color: #be123c;
  display: inline-block;
  line-height: 1;
  vertical-align: middle;
}

.pack-buy-btn-green {
  width: 130px;
  height: 42px;
  border-radius: 21px;
  background: linear-gradient(180deg, #22c55e 0%, #16a34a 60%, #15803d 100%);
  border: 2px solid #86efac;
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.45), inset 0 2px 3px rgba(255, 255, 255, 0.5);
  color: #ffffff;
  font-weight: 900;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  position: relative;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  transition: transform 0.12s, filter 0.12s;
}

.pack-buy-btn-green:hover {
  transform: scale(1.04);
  filter: brightness(1.1);
}

.pack-buy-btn-green:active {
  transform: scale(0.96);
}

.pack-promo-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: radial-gradient(circle, #ef4444 0%, #dc2626 100%);
  border: 2px solid #ffffff;
  border-radius: 12px;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 900;
  padding: 2px 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  transform: rotate(12deg);
}



/* En-tête / Explication de l'onglet actif */
.shop-section-banner {
  background: rgba(30, 41, 59, 0.6);
  border-left: 3.5px solid var(--gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 8px 12px;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
  box-sizing: border-box;
}

.shop-section-title {
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--gold-light);
  letter-spacing: 0.3px;
}

.shop-section-subtitle {
  font-size: 0.84rem;
  color: #cbd5e1;
  font-weight: 500;
}

/* Grille des articles */
.shop-items-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
  padding: 2px 2px 14px 2px;
  align-content: start;
}

.shop-items-grid.grid-dice-layout {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  align-content: start;
}

/* Cartes Simplifiées pour les Dés & Motifs (Inspirées de l'image 2) */
.shop-dice-card {
  background: rgba(30, 41, 59, 0.75);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 7px 5px 6px 5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  position: relative;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-sizing: border-box;
  user-select: none;
  min-width: 0;
  width: 100%;
}

.shop-dice-card:hover {
  transform: translateY(-2px) scale(1.02);
  border-color: rgba(245, 158, 11, 0.6);
}

.shop-dice-card.is-equipped {
  border-color: #38bdf8;
  background: rgba(14, 116, 144, 0.25);
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.45);
}

.shop-dice-card.is-locked {
  opacity: 1;
}

/* Zone d'Aperçu du Dé */
.shop-dice-preview-box {
  width: 100%;
  height: 80px;
  position: relative;
  background: radial-gradient(circle at 50% 50%, rgba(30, 58, 138, 0.25) 0%, rgba(15, 23, 42, 0.8) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.shop-dice-preview-box .shop-item-3d-target {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.shop-dice-preview-canvas,
.shop-dice-preview-box canvas {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  pointer-events: auto;
  touch-action: pan-y;
}

/* Bandeau ÉQUIPÉ sur le dé */
.shop-dice-badge-equipped {
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  border: 1px solid #86efac;
  color: #ffffff;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.4px;
  padding: 1px 7px;
  border-radius: var(--radius-full);
  box-shadow: 0 2px 8px rgba(22, 163, 74, 0.6);
  z-index: 10;
  pointer-events: none;
}

/* Badge Cadenas compact dans le coin pour laisser le dé 3D 100% net et visible */
.shop-dice-lock-overlay {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 20px;
  height: 20px;
  background: rgba(15, 23, 42, 0.88);
  border: 1.5px solid rgba(245, 158, 11, 0.7);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.66rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
  z-index: 10;
  pointer-events: none;
}

/* Ligne d'info en bas de la carte */
.shop-dice-info-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  width: 100%;
  min-width: 0;
}

.shop-dice-name {
  font-size: 0.85rem;
  font-weight: 900;
  color: #f8fafc;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.shop-dice-price {
  font-size: 0.78rem;
  font-weight: 900;
  color: var(--gold-light);
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.shop-dice-status-eq {
  font-size: 0.72rem;
  font-weight: 800;
  color: #86efac;
}

.shop-dice-status-ready {
  font-size: 0.72rem;
  font-weight: 800;
  color: #38bdf8;
}

/* Carte Standard (pour Jokers et Tapis) */
.shop-item-card {
  background: rgba(15, 23, 42, 0.92);
  border: 1.5px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 16px 12px 14px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: space-between;
  height: 100%;
  gap: 6px;
  position: relative;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
  transition: all 0.25s ease;
  box-sizing: border-box;
}

.shop-item-card:hover {
  border-color: rgba(245, 158, 11, 0.8);
  transform: translateY(-2px);
}

.shop-joker-logo-wrap {
  width: 88px;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2px;
  flex-shrink: 0;
}

.shop-item-icon {
  font-size: 2.5rem;
  line-height: 1;
}

.shop-item-name {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1.2;
  margin: 0;
  min-height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.shop-item-desc {
  font-size: 0.85rem;
  color: #cbd5e1;
  line-height: 1.35;
  min-height: 52px; /* Hauteur harmonisée garantissant un alignement pixel-perfect */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin: 0;
  padding: 0 4px;
}

.shop-item-cost {
  font-family: 'Outfit', sans-serif;
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--gold-light);
  margin-top: auto;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.btn-buy {
  width: 100%;
  padding: 12px 8px;
  background: var(--gold);
  color: #1e1b4b;
  border: none;
  border-radius: var(--radius-md);
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: 1.05rem;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
}

.btn-buy:hover {
  transform: scale(1.02);
}

.btn-buy.equipped {
  background: var(--accent-green);
  color: #fff;
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.35);
}

/* Règle globale pour masquer les éléments */
.hidden {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Badges dynamiques des cartes d'accueil */
.mode-card-badge.video-badge {
  background: rgba(168, 85, 247, 0.25);
  border-color: #c084fc;
  color: #f3e8ff;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.25);
}

/* Logo Composite Pub Vidéo (Clap + Caméra Superposés en badge unifié) */
.ad-composite-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35em;
  height: 1.35em;
  vertical-align: middle;
  flex-shrink: 0;
  margin-right: 3px;
}

.ad-composite-icon .ad-icon-clap {
  position: absolute;
  top: -2px;
  left: -2px;
  font-size: 1.15em;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6));
}

.ad-composite-icon .ad-icon-camera {
  position: absolute;
  bottom: -3px;
  right: -3px;
  font-size: 0.85em;
  line-height: 1;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.95));
  transform: scale(0.95);
}

/* Voile de chargement d'annonce plein écran anti-spam et anti-clic */
.ad-loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 7, 18, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 100001;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px;
  box-sizing: border-box;
  pointer-events: auto;
  user-select: none;
  touch-action: none;
}

.ad-loading-overlay.hidden {
  display: none !important;
}

.ad-loading-card {
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.98));
  border: 1.5px solid rgba(168, 85, 247, 0.45);
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.85), 0 0 35px rgba(168, 85, 247, 0.25);
  border-radius: 24px;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 320px;
  width: 100%;
  animation: adCardPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes adCardPop {
  0% { transform: scale(0.9); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.ad-loading-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(168, 85, 247, 0.2);
  border-top-color: #a855f7;
  border-right-color: #ec4899;
  border-radius: 50%;
  animation: adSpin 0.9s linear infinite;
  margin-bottom: 14px;
}

@keyframes adSpin {
  to { transform: rotate(360deg); }
}

.ad-loading-icon {
  font-size: 2.2rem;
  margin-bottom: 8px;
}

.ad-loading-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 8px;
  line-height: 1.3;
}

.ad-loading-sub {
  font-size: 0.85rem;
  color: #94a3b8;
  font-weight: 500;
  line-height: 1.4;
}

/* Modale Plein Écran Publicité Vidéo Sponsorisée */
.ad-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.98);
  backdrop-filter: blur(16px);
  z-index: 100000;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: calc(var(--safe-top) + 12px) 16px calc(var(--safe-bottom) + 14px) 16px;
  box-sizing: border-box;
}

.ad-modal-overlay.hidden {
  display: none !important;
}

.ad-fullscreen-container {
  width: 100%;
  max-width: 440px;
  height: 100%;
  max-height: 640px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}

.ad-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.ad-sponsor-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(30, 41, 59, 0.85);
  border: 1px solid var(--border-glass);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
}

.ad-timer-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(245, 158, 11, 0.18);
  border: 1.5px solid var(--gold);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 900;
  color: var(--gold-light);
}

.ad-timer-pill.completed {
  background: rgba(34, 197, 94, 0.25);
  border-color: #22c55e;
  color: #4ade80;
}

.ad-video-screen {
  flex: 1;
  background: radial-gradient(circle at 50% 50%, #1e293b 0%, #070d1e 100%);
  border: 2px solid rgba(245, 158, 11, 0.35);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px 16px;
  gap: 14px;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.8);
  position: relative;
}

.ad-video-icon {
  font-size: 3.5rem;
  animation: floatDice 2.5s infinite ease-in-out;
}

.ad-video-title {
  font-size: 1.25rem;
  font-weight: 900;
  color: #fff;
}

.ad-video-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 260px;
}

.ad-progress-track {
  width: 85%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-top: 10px;
}

.ad-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #38bdf8, var(--gold));
  border-radius: var(--radius-full);
  transition: width 0.3s linear;
}

.ad-bottom-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  gap: 8px;
}

.btn-ad-finish {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 900;
  font-size: 1.05rem;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(34, 197, 94, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  animation: popIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-ad-finish:active {
  transform: scale(0.97);
}

.ad-waiting-msg {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  animation: pulseMessage 2s infinite ease-in-out;
}

/* Toast Notifications */
.toast-msg {
  position: fixed;
  top: calc(var(--safe-top) + 65px);
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.98) 0%, rgba(15, 23, 42, 0.98) 100%);
  border: 1.5px solid #facc15;
  color: #ffffff;
  padding: 9px 18px;
  border-radius: 20px;
  font-weight: 800;
  font-size: 0.88rem;
  line-height: 1.35;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 16px rgba(250, 204, 21, 0.35);
  z-index: 15000;
  opacity: 0;
  pointer-events: none;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: normal;
  max-width: min(92vw, 420px);
  width: max-content;
  box-sizing: border-box;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  user-select: none;
}

.toast-msg.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
  cursor: pointer;
}

.toast-msg.show:active {
  transform: translateX(-50%) scale(0.96);
  opacity: 0.9;
}

/* Onglets & Formulaires Authentification (Modèle Hybride) */
.auth-tabs {
  display: flex;
  gap: 8px;
  background: rgba(15, 23, 42, 0.85);
  padding: 5px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-glass);
  width: 100%;
}

.auth-tab-btn {
  flex: 1;
  padding: 11px 8px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
}

.auth-tab-btn.active {
  background: var(--gold);
  color: #0f172a;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.35);
  font-weight: 900;
}

.auth-banner-info {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(245, 158, 11, 0.14);
  border: 1.5px dashed rgba(245, 158, 11, 0.55);
  color: #fef08a;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  line-height: 1.45;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

.form-group label {
  font-size: 0.95rem;
  font-weight: 800;
  color: #cbd5e1;
}

.form-input {
  background: rgba(15, 23, 42, 0.95);
  border: 1.5px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 13px 16px;
  color: #ffffff;
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.form-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.35);
}

.auth-error-msg {
  background: rgba(239, 68, 68, 0.2);
  border: 1.5px solid #ef4444;
  color: #fca5a5;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 800;
  text-align: center;
}

.profile-stat-card {
  background: rgba(15, 23, 42, 0.85);
  border: 1.5px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.profile-stat-val {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--gold-light);
}

.profile-stat-lbl {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--text-muted);
}

/* Barre d'onglets du Classement (4 catégories) */
.leaderboard-tabs-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  width: 100%;
  box-sizing: border-box;
}

.leaderboard-tab-btn {
  background: rgba(15, 23, 42, 0.85);
  border: 1.5px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 8px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  color: var(--text-muted);
}

.leaderboard-tab-btn .tab-emoji {
  font-size: 1.25rem;
  line-height: 1;
}

.leaderboard-tab-btn .tab-label {
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
}

.leaderboard-tab-btn:hover {
  background: rgba(30, 41, 59, 0.9);
  color: #ffffff;
  border-color: rgba(245, 158, 11, 0.4);
}

.leaderboard-tab-btn.active {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.25) 0%, rgba(217, 119, 6, 0.18) 100%);
  border-color: var(--gold);
  color: var(--gold-light);
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.35);
  transform: translateY(-1px);
}

/* En-tête informatif du classement */
.leaderboard-info-header {
  background: rgba(30, 41, 59, 0.6);
  border-left: 3.5px solid var(--gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 8px 12px;
  font-size: 0.82rem;
  color: #cbd5e1;
  display: flex;
  align-items: center;
  gap: 6px;
  box-sizing: border-box;
}

/* Liste & Lignes du Leaderboard */
.leaderboard-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 380px;
  overflow-y: auto;
  padding-right: 4px;
}

.leaderboard-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(15, 23, 42, 0.88);
  border: 1.5px solid var(--border-glass);
  padding: 10px 14px;
  border-radius: var(--radius-md);
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.leaderboard-item:hover {
  transform: translateX(3px);
  border-color: rgba(245, 158, 11, 0.35);
}

.leaderboard-item.rank-1 {
  border-color: #fbbf24;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.25) 0%, rgba(15, 23, 42, 0.95) 100%);
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.2);
}
.leaderboard-item.rank-2 {
  border-color: #cbd5e1;
  background: linear-gradient(135deg, rgba(203, 213, 225, 0.2) 0%, rgba(15, 23, 42, 0.95) 100%);
}
.leaderboard-item.rank-3 {
  border-color: #d97706;
  background: linear-gradient(135deg, rgba(217, 119, 6, 0.2) 0%, rgba(15, 23, 42, 0.95) 100%);
}

.leaderboard-item.is-me {
  border-color: #38bdf8;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.22) 0%, rgba(15, 23, 42, 0.95) 100%);
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.25);
}

.leaderboard-user-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.leaderboard-rank-badge {
  font-size: 1rem;
  font-weight: 900;
  min-width: 30px;
  text-align: center;
  color: var(--gold-light);
  flex-shrink: 0;
}

.leaderboard-pseudo {
  font-size: 1rem;
  font-weight: 800;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.leaderboard-value {
  font-size: 0.98rem;
  font-weight: 900;
  color: var(--gold-light);
  white-space: nowrap;
  flex-shrink: 0;
}

/* Carte épinglée "Votre Rang" en bas du Leaderboard */
.leaderboard-my-rank-container {
  width: 100%;
}

.leaderboard-my-rank-sticky {
  margin-top: 4px;
  padding: 10px 14px;
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.45) 0%, rgba(15, 23, 42, 0.95) 100%);
  border: 1.5px solid #38bdf8;
  border-radius: var(--radius-md);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.4), 0 0 12px rgba(56, 189, 248, 0.25);
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
}

.leaderboard-my-rank-sticky .my-rank-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.leaderboard-my-rank-sticky .my-rank-badge {
  font-size: 0.92rem;
  font-weight: 900;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.4);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.leaderboard-my-rank-sticky .my-rank-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.leaderboard-my-rank-sticky .my-rank-pseudo {
  font-size: 0.95rem;
  font-weight: 800;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.leaderboard-my-rank-sticky .my-rank-sub {
  font-size: 0.72rem;
  color: #94a3b8;
  font-weight: 600;
}

.leaderboard-my-rank-sticky .my-rank-val {
  font-size: 1rem;
  font-weight: 900;
  color: var(--gold-light);
  white-space: nowrap;
}

/* Modale des Règles - Confort de lecture & Accessibilité */
.rules-modal-body {
  font-size: 1.05rem;
  line-height: 1.65;
  color: #f1f5f9;
}

.rules-section-title {
  color: var(--gold-light);
  font-size: 1.25rem;
  font-weight: 900;
  margin-top: 10px;
  margin-bottom: 2px;
}

.rules-modal-body p {
  margin: 0;
  color: #cbd5e1;
}

.rules-modal-body code {
  background: rgba(245, 158, 11, 0.18);
  color: #fef08a;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-family: inherit;
}

.rules-modal-body strong {
  color: #ffffff;
  font-weight: 900;
}

.modal-box-alert {
  max-width: 440px;
  text-align: center;
  padding: 28px 24px;
}

/* =========================================================================
   BANNIÈRE SAISONNIÈRE DU MOIS (ACCUEIL)
   ========================================================================= */
.home-season-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: linear-gradient(135deg, rgba(30, 27, 75, 0.9) 0%, rgba(88, 28, 135, 0.8) 50%, rgba(15, 23, 42, 0.9) 100%);
  border: 1.5px solid rgba(192, 132, 252, 0.5);
  box-shadow: 0 4px 18px rgba(147, 51, 234, 0.25), inset 0 1px 1px rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  padding: 10px 16px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  margin-bottom: 12px;
  width: 100%;
}

.home-season-banner:hover {
  transform: translateY(-2px) scale(1.01);
  border-color: #d8b4fe;
  box-shadow: 0 8px 24px rgba(168, 85, 247, 0.4), inset 0 1px 2px rgba(255, 255, 255, 0.3);
}

.season-banner-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.season-banner-badge {
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.8px;
  color: #facc15;
  text-transform: uppercase;
}

.season-banner-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: #f8fafc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.season-banner-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.season-star-count {
  font-size: 0.92rem;
  font-weight: 900;
  color: var(--gold-light);
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(245, 158, 11, 0.4);
  padding: 4px 10px;
  border-radius: 999px;
}

.season-chest-teaser {
  font-size: 1.5rem;
  line-height: 1;
  transition: transform 0.2s;
}

.season-chest-teaser.chest-pulse-ready {
  animation: chestPulse 1.2s infinite ease-in-out;
}

@keyframes chestPulse {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 4px #facc15); }
  50% { transform: scale(1.25) rotate(-6deg); filter: drop-shadow(0 0 14px #f59e0b); }
}

/* =========================================================================
   CARTE D'AVENTURE VERTICALE STYLE CANDY CRUSH (NIVEAUX 1 À 1000)
   ========================================================================= */
.modal-adventure-map-box {
  max-width: 480px;
  width: 95vw;
  height: 90vh;
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  background: linear-gradient(180deg, #1e293b 0%, #1e3a8a 35%, #0f172a 100%);
  border: 3px solid var(--gold);
  border-radius: var(--radius-xl);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.85), 0 0 35px rgba(245, 158, 11, 0.45);
}

.adventure-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: linear-gradient(180deg, rgba(30, 27, 75, 0.98) 0%, rgba(15, 23, 42, 0.98) 100%);
  border-bottom: 2px solid rgba(245, 158, 11, 0.4);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  flex-shrink: 0;
}

.modal-adventure-map-box .modal-title {
  font-size: 1.45rem;
  font-weight: 900;
  color: #ffffff;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
}

.adventure-map-subtitle {
  font-size: 1.02rem;
  font-weight: 900;
  color: #fde047;
  margin-top: 3px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

.btn-focus-current-level {
  background: linear-gradient(180deg, #f59e0b 0%, #d97706 100%);
  border: 2px solid #fef08a;
  color: #0f172a;
  font-size: 0.92rem;
  font-weight: 900;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.6);
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-focus-current-level:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(250, 204, 21, 0.85);
}

/* Vue Défilable Verticale Colorée & Vivante (Ciel Bleu Royal Lumineux) */
.adventure-vertical-scroll-view {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 30px 10px 150px 10px;
  scroll-behavior: smooth;
  position: relative;
  background: 
    radial-gradient(circle at 50% 12%, rgba(59, 130, 246, 0.45) 0%, transparent 60%),
    radial-gradient(circle at 15% 45%, rgba(245, 158, 11, 0.35) 0%, transparent 55%),
    radial-gradient(circle at 85% 75%, rgba(168, 85, 247, 0.4) 0%, transparent 55%),
    radial-gradient(circle at 50% 95%, rgba(16, 185, 129, 0.35) 0%, transparent 50%),
    linear-gradient(180deg, #1e3a8a 0%, #1e1b4b 35%, #0f172a 70%, #060d1a 100%);
}

.adventure-track-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  position: relative;
  width: 100%;
}

/* Fil d'Ariane Courbe SVG dynamique reliant les bulles de niveau */
.adv-track-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: visible;
}

/* Séparateur de Biome / Monde Épuré (Pilule Compacte) */
.adv-biome-divider {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 0.95) 100%);
  border: 1.5px solid var(--gold);
  border-left: 4px solid var(--gold);
  border-radius: 999px;
  padding: 6px 16px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
  margin: 10px 0;
  z-index: 2;
}

.biome-divider-badge {
  font-size: 1.2rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  flex-shrink: 0;
}

.biome-divider-title {
  font-size: 0.95rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 0.5px;
}

/* Nœud d'Étape Candy Crush (Style 3D Bombé) */
.adv-step-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  position: relative;
  z-index: 2;
  cursor: pointer;
  user-select: none;
}

.adv-step-node:hover .adv-node-bubble {
  transform: scale(1.12);
}

/* Bulle de base 3D Bombée avec reflet brillant */
.adv-node-bubble {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 25%, #60a5fa 0%, #2563eb 50%, #1e3a8a 100%);
  border: 3.5px solid #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.6), inset 0 3px 6px rgba(255, 255, 255, 0.85);
  position: relative;
  transition: all 0.2s ease;
}

/* Reflet brillant supérieur façon bonbon Candy Crush */
.adv-node-bubble::after {
  content: '';
  position: absolute;
  top: 5px;
  left: 11px;
  width: 24px;
  height: 12px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  transform: rotate(-30deg);
  pointer-events: none;
}

.adv-node-num {
  font-size: 1.45rem;
  font-weight: 900;
  color: #ffffff;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.8);
  z-index: 1;
}

/* 1. Étape Validée (Vert Émeraude Bonbon avec Grandes Étoiles) */
.adv-step-node.is-completed .adv-node-bubble {
  background: radial-gradient(circle at 35% 25%, #86efac 0%, #22c55e 40%, #16a34a 75%, #052e16 100%);
  border-color: #fef08a;
  box-shadow: 0 8px 18px rgba(34, 197, 94, 0.7), inset 0 3px 6px rgba(255, 255, 255, 0.9);
}

.adv-node-stars {
  font-size: 1.05rem;
  letter-spacing: 2px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.95));
}

/* 2. Étape Actuelle (Dorée / Ambre Flamboyante avec Double Pulsation) */
.adv-step-node.is-current .adv-node-bubble {
  width: 74px;
  height: 74px;
  background: radial-gradient(circle at 35% 25%, #fef08a 0%, #f59e0b 45%, #ea580c 80%, #7c2d12 100%);
  border: 4px solid #ffffff;
  box-shadow: 0 0 30px rgba(245, 158, 11, 1), inset 0 4px 8px rgba(255, 255, 255, 0.95);
  animation: pulseNodeGlow 1.6s infinite ease-in-out;
}

.adv-step-node.is-current .adv-node-num {
  font-size: 1.75rem;
}

.adv-node-current-tag {
  font-size: 0.78rem;
  font-weight: 900;
  color: #0f172a;
  background: linear-gradient(180deg, #fef08a 0%, #facc15 100%);
  border: 1.5px solid #ffffff;
  border-radius: 999px;
  padding: 2px 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.7);
  white-space: nowrap;
  letter-spacing: 0.5px;
}

@keyframes pulseNodeGlow {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.9), inset 0 4px 8px rgba(255, 255, 255, 0.9);
  }
  50% {
    transform: scale(1.08);
    box-shadow: 0 0 40px rgba(250, 204, 21, 1), 0 0 18px rgba(234, 88, 12, 0.9), inset 0 4px 10px rgba(255, 255, 255, 1);
  }
}

/* 3. Boss Géant Épique (Violet Royal & Or avec Couronne 3D) */
.adv-step-node.is-boss-node .adv-node-bubble {
  width: 82px;
  height: 82px;
  background: radial-gradient(circle at 35% 25%, #f472b6 0%, #c084fc 35%, #9333ea 70%, #3b0764 100%);
  border: 4.5px solid var(--gold);
  box-shadow: 0 0 32px rgba(168, 85, 247, 0.9), inset 0 4px 10px rgba(255, 255, 255, 0.95);
}

.adv-step-node.is-boss-node .adv-node-num {
  font-size: 1.85rem;
  font-weight: 900;
  color: #ffffff;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.7);
}

.adv-boss-crown {
  position: absolute;
  top: -24px;
  font-size: 2rem;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.95));
  animation: bounceMini 1.5s infinite ease-in-out;
  z-index: 3;
}

/* 4. Étape Verrouillée */
.adv-step-node.is-locked .adv-node-bubble {
  background: radial-gradient(circle at 35% 25%, #64748b 0%, #334155 55%, #0f172a 100%);
  border-color: #475569;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  opacity: 0.85;
}

.adv-step-node.is-locked .adv-node-num {
  font-size: 1.35rem;
}

.adv-step-node.is-locked {
  cursor: not-allowed;
}

/* 5. Étape Sélectionnée */
.adv-step-node.is-selected .adv-node-bubble {
  outline: 4px solid #38bdf8;
  outline-offset: 4px;
}

/* Piédestal de départ tout en bas */
.adv-start-pedestal {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  z-index: 2;
}

.start-pedestal-badge {
  font-size: 0.88rem;
  font-weight: 900;
  color: #fef08a;
  background: linear-gradient(135deg, #166534 0%, #15803d 100%);
  border: 2px solid #4ade80;
  border-radius: 999px;
  padding: 6px 18px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
  letter-spacing: 0.8px;
}

/* Fiche compacte et épurée du Niveau Sélectionné (Fixée en bas) */
.adventure-selected-stage-card {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.98) 0%, rgba(9, 13, 22, 0.99) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 2.5px solid var(--gold);
  padding: 13px 18px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  box-shadow: 0 -10px 32px rgba(0, 0, 0, 0.85);
  z-index: 10;
}

.adv-card-header-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.adv-card-badges-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.adv-card-level-badge {
  font-size: 0.95rem;
  font-weight: 900;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.18);
  border: 1.5px solid rgba(56, 189, 248, 0.5);
  padding: 4px 13px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.adv-card-level-badge.is-boss-badge {
  color: #fef08a;
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.25) 0%, rgba(220, 38, 38, 0.3) 100%);
  border-color: #facc15;
  box-shadow: 0 0 14px rgba(250, 204, 21, 0.5);
}

.adv-card-format-badge {
  font-size: 0.92rem;
  font-weight: 800;
  padding: 4px 13px;
  border-radius: 999px;
  letter-spacing: 0.3px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.adv-card-format-badge.format-1v1 {
  background: rgba(34, 197, 94, 0.18);
  border: 1.5px solid rgba(34, 197, 94, 0.5);
  color: #86efac;
}

.adv-card-format-badge.format-multi {
  background: rgba(168, 85, 247, 0.2);
  border: 1.5px solid rgba(168, 85, 247, 0.55);
  color: #d8b4fe;
}

.adv-card-format-badge.format-boss {
  background: rgba(245, 158, 11, 0.25);
  border: 1.5px solid rgba(245, 158, 11, 0.65);
  color: #fef08a;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.35);
}

.adv-card-opponents-section {
  width: 100%;
}

.adv-opponents-pills-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.adv-opp-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(30, 41, 59, 0.75);
  border: 1px solid rgba(148, 163, 184, 0.25);
  padding: 3px 10px 3px 6px;
  border-radius: 999px;
  font-size: 0.88rem;
  color: #f1f5f9;
}

.adv-opp-pill.is-boss-pill {
  background: linear-gradient(135deg, rgba(88, 28, 135, 0.5) 0%, rgba(180, 83, 9, 0.4) 100%);
  border: 1.5px solid var(--gold);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.3);
  color: #fffbeb;
  font-weight: 800;
}

.adv-opp-avatar {
  font-size: 1.25rem;
  line-height: 1;
}

.adv-opp-name {
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.boss-tag {
  font-size: 0.65rem;
  background: #dc2626;
  color: #ffffff;
  padding: 1px 5px;
  border-radius: 4px;
  font-weight: 900;
  letter-spacing: 0.5px;
}

.adv-card-mutators-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mutator-pill {
  font-size: 0.92rem;
  font-weight: 800;
  padding: 5px 13px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.18);
  border: 1.5px solid rgba(245, 158, 11, 0.45);
  color: #fef08a;
  white-space: nowrap;
}

.adv-card-reward-box {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.adv-reward-badge {
  font-size: 1.15rem;
  font-weight: 900;
  color: #fef08a;
  background: rgba(245, 158, 11, 0.25);
  border: 1.5px solid var(--gold);
  border-radius: 999px;
  padding: 4px 14px;
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.45);
}

.btn-card-battle {
  width: 100%;
  font-size: 1.25rem;
  font-weight: 900;
  padding: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.6);
}

/* Bouton / Logo Clapperboard Vectoriel */
.btn-ad-clapper-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}

.btn-ad-clapper-svg {
  display: block;
}

/* =========================================================================
   BANNIÈRE SAISON SUR L'ÉCRAN D'ACCUEIL
   ========================================================================= */
.home-season-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: linear-gradient(135deg, rgba(88, 28, 135, 0.65) 0%, rgba(30, 27, 75, 0.9) 100%);
  border: 1.5px solid rgba(245, 158, 11, 0.45);
  border-radius: var(--radius-lg);
  padding: 10px 14px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.15);
  cursor: pointer;
  margin-bottom: 12px;
  transition: all 0.2s ease;
  user-select: none;
}

.home-season-banner:hover {
  transform: translateY(-2px) scale(1.01);
  border-color: var(--gold);
  box-shadow: 0 6px 22px rgba(245, 158, 11, 0.35);
}

.home-season-banner.has-gift-ready {
  border-color: #facc15;
  background: linear-gradient(135deg, rgba(126, 34, 206, 0.75) 0%, rgba(30, 27, 75, 0.95) 100%);
  animation: bannerGiftGlow 1.8s infinite ease-in-out;
}

@keyframes bannerGiftGlow {
  0%, 100% {
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4), 0 0 10px rgba(250, 204, 21, 0.4);
    border-color: rgba(250, 204, 21, 0.7);
  }
  50% {
    box-shadow: 0 6px 26px rgba(245, 158, 11, 0.75), 0 0 22px rgba(250, 204, 21, 0.9), inset 0 0 12px rgba(250, 204, 21, 0.25);
    border-color: #ffffff;
  }
}

.season-banner-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.season-banner-badge {
  font-size: 0.68rem;
  font-weight: 900;
  color: #38bdf8;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.season-banner-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: #fef08a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.season-banner-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.season-star-count {
  font-size: 0.84rem;
  font-weight: 900;
  color: #fef08a;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(245, 158, 11, 0.5);
  padding: 3px 8px;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.season-chest-teaser {
  font-size: 1.6rem;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
  display: inline-block;
  transition: transform 0.2s;
}

.season-chest-teaser.chest-pulse-ready {
  animation: giftWiggleBounce 1.1s infinite ease-in-out;
  filter: drop-shadow(0 0 12px #facc15) drop-shadow(0 0 4px #ef4444);
  cursor: pointer;
}

@keyframes giftWiggleBounce {
  0%, 100% {
    transform: translateY(0) rotate(0deg) scale(1.08);
  }
  15% {
    transform: translateY(-5px) rotate(-14deg) scale(1.26);
  }
  30% {
    transform: translateY(0) rotate(14deg) scale(1.28);
  }
  45% {
    transform: translateY(-3px) rotate(-8deg) scale(1.2);
  }
  60% {
    transform: translateY(0) rotate(8deg) scale(1.18);
  }
  75% {
    transform: translateY(-1px) rotate(0deg) scale(1.12);
  }
}


/* =========================================================================
   PASS SAISON & COFFRE MENSUEL (MODAL)
   ========================================================================= */
.modal-season-pass-box {
  max-width: 480px;
  width: 95vw;
  background: radial-gradient(circle at 50% 0%, #1e1b4b 0%, #090d16 100%);
  border: 1.5px solid rgba(245, 158, 11, 0.35);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8), 0 0 25px rgba(168, 85, 247, 0.2);
}

.season-pass-modal-header {
  border-bottom: 1px solid rgba(245, 158, 11, 0.2);
  padding: 14px 18px;
}

.season-modal-subtitle {
  font-size: 0.82rem;
  font-weight: 800;
  color: #fbcfe8;
  letter-spacing: 0.2px;
}

/* En-tête Grand Cadeau Mensuel */
.season-hero-chest-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(135deg, rgba(88, 28, 135, 0.6) 0%, rgba(30, 27, 75, 0.85) 100%);
  border: 1.5px solid rgba(245, 158, 11, 0.45);
  border-radius: var(--radius-lg);
  padding: 12px 14px;
  box-shadow: 0 4px 18px rgba(126, 34, 206, 0.25), inset 0 1px 1px rgba(255, 255, 255, 0.15);
}

.season-hero-chest-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  min-width: 76px;
}

.season-chest-icon-glow {
  font-size: 2.8rem;
  line-height: 1;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.season-chest-icon-glow.is-ready {
  animation: chestPulse 2.2s infinite ease-in-out;
  filter: drop-shadow(0 0 14px #facc15);
}

.season-chest-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.season-chest-title {
  font-size: 0.92rem;
  font-weight: 900;
  color: #fef08a;
  margin: 0;
  line-height: 1.25;
  white-space: nowrap;
}

.season-chest-desc {
  font-size: 0.76rem;
  color: #e2e8f0;
  margin: 0;
  line-height: 1.35;
}

.season-countdown-pill {
  font-size: 0.68rem;
  font-weight: 900;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.4);
  padding: 2px 7px;
  border-radius: 999px;
  white-space: nowrap !important;
  letter-spacing: 0.2px;
  text-align: center;
}

/* Jauge d'Étoiles Quotidienne */
.season-stars-progression-bar-card {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.season-stars-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 800;
  color: #f1f5f9;
}

.season-stars-title {
  font-size: 0.88rem;
  color: #fef08a;
  display: flex;
  align-items: center;
  gap: 4px;
}

.season-progress-track {
  width: 100%;
  height: 9px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  overflow: hidden;
}

.season-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #f59e0b 0%, #fbbf24 50%, #fef08a 100%);
  border-radius: 999px;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.8);
  transition: width 0.4s ease-out;
}

.season-stars-sub-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-top: 5px;
}

.season-catchup-badge {
  font-size: 0.72rem;
  font-weight: 800;
  color: #fef08a;
  background: rgba(245, 158, 11, 0.16);
  border: 1px solid rgba(245, 158, 11, 0.45);
  padding: 2px 9px;
  border-radius: 999px;
  white-space: nowrap !important;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Grille 3 Colonnes des Boîtes Cadeaux */
.season-gifts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

@media (max-width: 380px) {
  .season-gifts-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }
}

.season-gift-tile {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.75) 0%, rgba(15, 23, 42, 0.9) 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 8px 4px 6px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  min-height: 106px;
  position: relative;
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  user-select: none;
}

.season-gift-tile::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

/* En-tête Jour */
.gift-tile-day-tag {
  font-size: 0.72rem;
  font-weight: 900;
  color: #94a3b8;
  line-height: 1;
  white-space: nowrap !important;
  text-align: center;
  max-width: 95%;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* =========================================================================
   1. CADEAU DU JOUR EN COURS (ÉCLAIRÉ, LUMINEUX & MIS EN VALEUR)
   ========================================================================= */
.season-gift-tile.is-today-active {
  opacity: 1 !important;
  border-width: 2px !important;
  border-color: #38bdf8 !important;
  background: linear-gradient(135deg, rgba(14, 116, 144, 0.45) 0%, rgba(30, 41, 59, 0.95) 100%) !important;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.5), inset 0 0 12px rgba(56, 189, 248, 0.25) !important;
  transform: translateY(-2px);
  z-index: 2;
  animation: todayGlowPulse 2.4s infinite ease-in-out;
}

@keyframes todayGlowPulse {
  0%, 100% {
    box-shadow: 0 0 14px rgba(56, 189, 248, 0.35), inset 0 0 8px rgba(56, 189, 248, 0.2);
    border-color: #38bdf8;
  }
  50% {
    box-shadow: 0 0 26px rgba(56, 189, 248, 0.75), 0 0 10px #38bdf8, inset 0 0 16px rgba(56, 189, 248, 0.4);
    border-color: #7dd3fc;
  }
}

.season-gift-tile.is-today .gift-tile-day-tag {
  color: #0f172a !important;
  background: linear-gradient(90deg, #38bdf8 0%, #7dd3fc 100%) !important;
  border: 1px solid #bae6fd !important;
  border-radius: 999px !important;
  padding: 2px 6px !important;
  font-size: 0.62rem !important;
  font-weight: 900 !important;
  letter-spacing: 0.2px;
  white-space: nowrap !important;
  box-shadow: 0 2px 6px rgba(56, 189, 248, 0.4);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.season-gift-tile.is-today-active .gift-tile-box-icon {
  font-size: 2.7rem !important;
  filter: drop-shadow(0 0 14px rgba(56, 189, 248, 0.9)) drop-shadow(0 0 4px #facc15) !important;
  animation: todayFloat 3s infinite ease-in-out;
}

@keyframes todayFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-3px) scale(1.06); }
}

/* Badge de progression du jour (ex: ⭐ 2 / 10) */
.tile-badge-progress {
  font-size: 0.72rem;
  font-weight: 900;
  border-radius: 999px;
  padding: 2px 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  white-space: nowrap !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
}

.tile-badge-progress.active-progress {
  color: #fffbeb;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.45) 0%, rgba(15, 23, 42, 0.95) 100%);
  border: 1.5px solid #facc15;
  box-shadow: 0 0 10px rgba(250, 204, 21, 0.6);
}

.tile-badge-progress.zero-progress {
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(148, 163, 184, 0.35);
}

/* =========================================================================
   2. CADEAU EN COURS DE REMPLISSAGE (Palier Actif de Rattrapage ou Jour J)
   ========================================================================= */
.season-gift-tile.is-tier-filling {
  opacity: 1 !important;
  border-width: 2px !important;
  border-color: #f59e0b !important;
  background: linear-gradient(135deg, rgba(180, 83, 9, 0.35) 0%, rgba(30, 41, 59, 0.95) 100%) !important;
  box-shadow: 0 0 18px rgba(245, 158, 11, 0.5), inset 0 0 10px rgba(245, 158, 11, 0.25) !important;
  transform: translateY(-2px);
  z-index: 2;
  animation: fillingPulse 2.4s infinite ease-in-out;
}

@keyframes fillingPulse {
  0%, 100% {
    box-shadow: 0 0 14px rgba(245, 158, 11, 0.4);
    border-color: #f59e0b;
  }
  50% {
    box-shadow: 0 0 24px rgba(250, 204, 21, 0.8), 0 0 10px #facc15;
    border-color: #fde047;
  }
}

.season-gift-tile.is-tier-filling .gift-tile-day-tag {
  color: #0f172a !important;
  background: linear-gradient(90deg, #f59e0b 0%, #fef08a 100%) !important;
  border: 1px solid #fef08a !important;
  border-radius: 999px !important;
  padding: 2px 7px !important;
  font-size: 0.65rem !important;
  font-weight: 900 !important;
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.4);
}

.season-gift-tile.is-tier-filling .gift-tile-box-icon {
  animation: fillingFloat 2.6s infinite ease-in-out;
  filter: drop-shadow(0 0 12px rgba(250, 204, 21, 0.85)) !important;
}

@keyframes fillingFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-3px) scale(1.08); }
}

/* Paliers débloqués disponibles pour rattrapage (visibles et colorés) */
.season-gift-tile.is-tier-unlocked {
  opacity: 0.9 !important;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.85) 0%, rgba(15, 23, 42, 0.95) 100%) !important;
  border: 1.5px solid rgba(245, 158, 11, 0.35) !important;
}

.season-gift-tile.is-tier-unlocked .gift-tile-day-tag {
  color: #fef08a;
}

.season-gift-tile.is-tier-unlocked .gift-tile-box-icon {
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.6));
}

/* =========================================================================
   3. CADEAU FERMÉ & PRÊT À OUVRIR (10/10 ⭐ Atteint / Festif)
   ========================================================================= */
.season-gift-tile.is-ready-open {
  opacity: 1 !important;
  border-width: 2px !important;
  border-color: var(--gold) !important;
  background: linear-gradient(135deg, rgba(146, 64, 14, 0.55) 0%, rgba(30, 27, 75, 0.95) 100%) !important;
  box-shadow: 0 0 22px rgba(245, 158, 11, 0.6), inset 0 0 12px rgba(245, 158, 11, 0.3) !important;
  cursor: pointer;
  z-index: 3;
}

.season-gift-tile.is-ready-open:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 6px 26px rgba(245, 158, 11, 0.85) !important;
}

.season-gift-tile.is-ready-open .gift-tile-day-tag {
  color: #0f172a !important;
  background: linear-gradient(90deg, #f59e0b 0%, #fef08a 100%) !important;
  border-color: #fef08a !important;
}

.season-gift-tile.is-ready-open .gift-tile-box-icon {
  animation: giftShake 2.2s infinite ease-in-out;
  filter: drop-shadow(0 0 16px #facc15) !important;
}

@keyframes giftShake {
  0%, 85%, 100% { transform: rotate(0deg) scale(1); }
  88% { transform: rotate(-8deg) scale(1.12); }
  92% { transform: rotate(8deg) scale(1.12); }
  96% { transform: rotate(-4deg) scale(1.06); }
}

/* =========================================================================
   4. CADEAU DÉJÀ OUVERT (Réclamé)
   ========================================================================= */
.season-gift-tile.is-opened {
  opacity: 0.5;
  background: rgba(15, 23, 42, 0.4);
  border-color: rgba(255, 255, 255, 0.04);
}

/* =========================================================================
   5. JOURS FUTURS BLOQUÉS (Après la date d'aujourd'hui)
   ========================================================================= */
.season-gift-tile.is-future-gift {
  opacity: 0.35 !important;
  background: rgba(15, 23, 42, 0.25) !important;
  border-color: rgba(255, 255, 255, 0.03) !important;
}

.season-gift-tile.is-future-gift .gift-tile-box-icon {
  filter: grayscale(0.5);
  opacity: 0.65;
}

/* Dernier Jour Boss Chest */
.season-gift-tile.is-boss-chest {
  border-color: #f59e0b;
}

/* Icône Cadeau 3D */
.gift-tile-box-icon {
  font-size: 2.3rem;
  line-height: 1;
  margin: 4px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}

/* Pied de la Tuile */
.gift-tile-footer {
  width: 100%;
  display: flex;
  justify-content: center;
}

.btn-tile-open {
  background: linear-gradient(180deg, #f59e0b 0%, #d97706 100%);
  border: none;
  color: #0f172a;
  font-size: 0.68rem;
  font-weight: 900;
  padding: 4px 8px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.5);
  width: 100%;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  animation: pulseButton 1.5s infinite;
}

@keyframes pulseButton {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.tile-badge-status {
  font-size: 0.72rem;
  font-weight: 800;
}

.tile-badge-status.opened {
  color: #86efac;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 999px;
  padding: 1px 7px;
}

.tile-badge-status.locked {
  color: #64748b;
}

/* =========================================================================
   SCÈNE D'UNBOXING FESTIF (Confettis, Rayons, Explosion)
   ========================================================================= */
.modal-gift-reveal-box {
  max-width: 360px;
  width: 90vw;
  background: radial-gradient(circle at 50% 25%, #312e81 0%, #090d16 100%);
  border: 2px solid var(--gold);
  box-shadow: 0 0 60px rgba(245, 158, 11, 0.6);
  padding: 26px 20px 20px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Couche de Confettis */
.gift-reveal-confetti-layer {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.confetti-piece {
  position: absolute;
  opacity: 0;
  animation: confettiFall 2.4s ease-out forwards;
}

@keyframes confettiFall {
  0% { transform: translateY(-20px) rotate(0deg) scale(0.5); opacity: 1; }
  80% { opacity: 1; }
  100% { transform: translateY(400px) rotate(720deg) scale(1); opacity: 0; }
}

.gift-reveal-burst-bg {
  position: absolute;
  top: 40%;
  left: 50%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.4) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  animation: burstRotate 12s linear infinite;
  pointer-events: none;
}

.gift-reveal-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.gift-reveal-box-icon {
  font-size: 5rem;
  line-height: 1;
  filter: drop-shadow(0 0 24px #facc15);
  animation: prizePopIn 0.75s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes prizePopIn {
  0% { transform: scale(0.1) rotate(-25deg); opacity: 0; }
  60% { transform: scale(1.35) rotate(12deg); opacity: 1; }
  80% { transform: scale(0.92) rotate(-4deg); }
  100% { transform: scale(1) rotate(0deg); }
}

.gift-reveal-title {
  font-size: 1.35rem;
  font-weight: 900;
  color: #fef08a;
  margin: 0;
  letter-spacing: 0.5px;
  text-shadow: 0 0 15px rgba(245, 158, 11, 0.8), 0 2px 4px rgba(0,0,0,0.8);
}

.gift-reveal-reward-name {
  font-size: 1.25rem;
  font-weight: 900;
  color: #ffffff;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.3) 0%, rgba(120, 53, 15, 0.5) 100%);
  border: 2px solid var(--gold);
  border-radius: var(--radius-md);
  padding: 10px 22px;
  box-shadow: 0 4px 18px rgba(245, 158, 11, 0.4);
  animation: rewardPulse 1.8s infinite ease-in-out;
}

@keyframes rewardPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 4px 16px rgba(245, 158, 11, 0.35); }
  50% { transform: scale(1.04); box-shadow: 0 6px 24px rgba(245, 158, 11, 0.65); }
}

.btn-gift-collect {
  background: linear-gradient(180deg, #10b981 0%, #059669 100%);
  box-shadow: 0 4px 18px rgba(16, 185, 129, 0.5);
  font-size: 1rem;
  font-weight: 900;
  padding: 12px 24px;
  margin-top: 4px;
  width: 100%;
}

/* Modal Interception Bouclier */
.modal-shield-intercept-box {
  max-width: 360px;
  width: 90vw;
  border: 2px solid #ef4444;
  box-shadow: 0 0 35px rgba(239, 68, 68, 0.4);
}

/* Scale des Avatars Vectoriels SVG dans toute l'app */
.player-avatar svg,
.spectator-avatar svg,
.top-bar-avatar-icon svg {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: inherit;
}

/* =========================================================================
   MATCHMAKING AUTOMATIQUE 1-CLIC (STYLE SCRABBLE GO)
   ========================================================================= */

.modal-matchmaking-box {
  background: linear-gradient(180deg, #0f172a 0%, #090d16 100%);
  border: 2px solid #38bdf8;
  box-shadow: 0 0 35px rgba(56, 189, 248, 0.35);
  max-width: 440px;
}

.matchmaking-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 16px 14px 22px 14px;
}

.matchmaking-arena {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 10px;
}

.mm-player-card {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 8px;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.6);
  position: relative;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mm-card-local {
  background: linear-gradient(180deg, rgba(30, 58, 138, 0.6) 0%, rgba(15, 23, 42, 0.9) 100%);
  border: 2px solid #38bdf8;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.25);
}

.mm-card-remote {
  background: linear-gradient(180deg, rgba(88, 28, 135, 0.55) 0%, rgba(15, 23, 42, 0.9) 100%);
  border: 2px solid #a855f7;
  box-shadow: 0 0 16px rgba(168, 85, 247, 0.25);
}

.mm-card-remote.is-revealed {
  border-color: #facc15;
  box-shadow: 0 0 24px rgba(250, 204, 21, 0.6);
  transform: scale(1.04);
}

.mm-avatar-glow {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.3rem;
  background: radial-gradient(circle at 35% 25%, #60a5fa 0%, #1e40af 100%);
  border: 2.5px solid #ffffff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
}

.mm-avatar-glow svg {
  width: 100%;
  height: 100%;
}

.mm-avatar-mystery {
  background: radial-gradient(circle, #334155 0%, #0f172a 100%);
  border: 2px dashed #94a3b8;
  box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.8);
}

.mm-mystery-mark {
  font-size: 2.4rem;
  font-weight: 900;
  color: #facc15;
  animation: pulseMystery 1.2s ease-in-out infinite;
  text-shadow: 0 0 10px rgba(250, 204, 21, 0.8);
}

@keyframes pulseMystery {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.25); opacity: 1; }
}

.mm-player-name {
  font-weight: 900;
  font-size: 0.92rem;
  color: #ffffff;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

.mm-name-mystery {
  color: #94a3b8;
  font-style: italic;
  font-weight: 600;
}

.mm-player-badge {
  font-size: 0.65rem;
  font-weight: 900;
  padding: 2px 8px;
  border-radius: 999px;
  letter-spacing: 0.5px;
}

.mm-badge-you {
  background: #0284c7;
  color: #ffffff;
}

.mm-badge-opp {
  background: #9333ea;
  color: #ffffff;
}

/* Zone Centrale Hub Radar */
.mm-center-hub {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 72px;
  flex-shrink: 0;
  position: relative;
}

.mm-radar-wrap {
  position: relative;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mm-radar-ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid rgba(56, 189, 248, 0.4);
}

.mm-ring-1 {
  width: 30px;
  height: 30px;
}

.mm-ring-2 {
  width: 50px;
  height: 50px;
}

.mm-ring-3 {
  width: 68px;
  height: 68px;
  animation: radarPulse 2s ease-out infinite;
}

@keyframes radarPulse {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(1.3); opacity: 0; }
}

.mm-radar-sweep {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(56, 189, 248, 0.75) 0deg, transparent 75deg);
  animation: radarSweep 2s linear infinite;
  pointer-events: none;
}

@keyframes radarSweep {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.mm-radar-center-icon {
  font-size: 1.7rem;
  z-index: 2;
  animation: diceSpin 4s linear infinite;
  filter: drop-shadow(0 0 8px #38bdf8);
}

@keyframes diceSpin {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.15); }
  100% { transform: rotate(360deg) scale(1); }
}

.mm-vs-badge {
  font-size: 1.15rem;
  font-weight: 900;
  color: #facc15;
  text-shadow: 0 0 12px rgba(250, 204, 21, 0.9);
  margin-top: 4px;
  letter-spacing: 1px;
}

/* Statut & Progression */
.mm-status-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 100%;
}

.mm-status-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #e2e8f0;
  text-align: center;
}

.mm-status-sub {
  font-size: 0.8rem;
  color: #94a3b8;
  font-weight: 600;
}

.mm-progress-bar-wrap {
  width: 100%;
  height: 7px;
  background: rgba(30, 41, 59, 0.8);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.25);
  margin-top: 4px;
}

.mm-progress-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #38bdf8 0%, #a855f7 50%, #f59e0b 100%);
  transition: width 0.4s ease;
}

/* Célébration Révélation Adversaire */
.mm-found-banner {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.25) 0%, rgba(59, 130, 246, 0.3) 100%);
  border: 2px solid #10b981;
  border-radius: 14px;
  padding: 10px 14px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  box-shadow: 0 0 24px rgba(16, 185, 129, 0.5);
  animation: foundPop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes foundPop {
  0% { transform: scale(0.7); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.mm-found-title {
  font-size: 1.15rem;
  font-weight: 900;
  color: #34d399;
  letter-spacing: 0.5px;
}

.mm-countdown-number {
  font-size: 2.6rem;
  font-weight: 900;
  color: #facc15;
  text-shadow: 0 0 16px rgba(250, 204, 21, 0.9);
  line-height: 1;
}

/* Bouton Annuler */
.btn-cancel-mm {
  background: rgba(239, 68, 68, 0.15);
  border: 1.5px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
  font-weight: 800;
  font-size: 0.92rem;
  padding: 10px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
}

.btn-cancel-mm:hover {
  background: rgba(239, 68, 68, 0.25);
  color: #ffffff;
  border-color: #ef4444;
}

/* Écran de Fin de Partie / Victoire */
.victory-avatar-badge {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.25) 0%, rgba(30, 27, 75, 0.9) 100%);
  border: 3px solid #facc15;
  box-shadow: 0 0 20px rgba(250, 204, 21, 0.45), inset 0 2px 4px rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin: 6px auto 2px auto;
  flex-shrink: 0;
}

.victory-reward-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: rgba(245, 158, 11, 0.14);
  border: 1.5px solid rgba(245, 158, 11, 0.45);
  padding: 10px 24px;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.15);
  margin: 2px auto;
}

/* Bouton Gains x2 dynamique & attractif */
.btn-double-gains {
  position: relative;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 20px;
  font-family: inherit;
  font-size: 1.15rem;
  font-weight: 900;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b 0%, #ea580c 50%, #d97706 100%);
  border: 2px solid #fef08a;
  border-radius: var(--radius-full);
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(245, 158, 11, 0.55), inset 0 2px 3px rgba(255, 255, 255, 0.4);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.35);
  animation: doubleGainsPulse 2.4s infinite ease-in-out;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.btn-double-gains:hover {
  transform: scale(1.03);
  filter: brightness(1.1);
}

.btn-double-gains:active {
  transform: scale(0.97);
}

.btn-double-gains::after {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.45) 50%, rgba(255, 255, 255, 0) 100%);
  transform: skewX(-25deg);
  animation: doubleGainsShimmer 3s infinite ease-in-out;
  pointer-events: none;
}

@keyframes doubleGainsPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 4px 18px rgba(245, 158, 11, 0.55), 0 0 0 0 rgba(245, 158, 11, 0.6);
  }
  50% {
    transform: scale(1.03);
    box-shadow: 0 6px 26px rgba(234, 88, 12, 0.85), 0 0 0 8px rgba(245, 158, 11, 0);
  }
}

@keyframes doubleGainsShimmer {
  0% {
    left: -120%;
  }
  30%, 100% {
    left: 220%;
  }
}

.btn-double-ad-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Bouton Rejouer dynamique dans l'écran de fin de partie */
.btn-victory-replay {
  position: relative;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 20px;
  font-family: inherit;
  font-size: 1.12rem;
  font-weight: 800;
  color: #ffffff;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 50%, #0c4a6e 100%);
  border: 2px solid #38bdf8;
  border-radius: var(--radius-full);
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(2, 132, 199, 0.45), inset 0 2px 3px rgba(255, 255, 255, 0.3);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
}

.btn-victory-replay:hover {
  transform: scale(1.02);
  filter: brightness(1.1);
  box-shadow: 0 6px 24px rgba(2, 132, 199, 0.65);
}

.btn-victory-replay:active {
  transform: scale(0.98);
}

.btn-replay-icon {
  font-size: 1.25rem;
  line-height: 1;
}

.btn-replay-ad-slot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 2px;
}

.btn-replay-ad-slot:empty {
  display: none;
}

/* Bouton Menu Principal dans l'écran de fin de partie */
.btn-victory-home {
  width: 100%;
  padding: 12px 18px;
  font-family: inherit;
  font-size: 0.98rem;
  font-weight: 700;
  color: #94a3b8;
  background: rgba(30, 41, 59, 0.85);
  border: 1.5px solid rgba(100, 116, 139, 0.35);
  border-radius: var(--radius-full);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.btn-victory-home:hover {
  background: rgba(51, 65, 85, 0.95);
  color: #f1f5f9;
  border-color: rgba(148, 163, 184, 0.6);
  transform: translateY(-1px);
}

.btn-victory-home:active {
  transform: translateY(1px);
}

/* Badge indicateur des dés du joueur dans le tableau des scores */
.player-name-dice-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 0;
}

.player-dice-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 1px 6px;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.2;
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 9999px;
  backdrop-filter: blur(4px);
  white-space: nowrap;
  letter-spacing: 0.2px;
  transition: transform 0.15s ease;
}

.player-card.active-turn-me .player-dice-pill {
  background: rgba(30, 58, 138, 0.65);
  border-color: rgba(96, 165, 250, 0.45);
  box-shadow: 0 0 6px rgba(59, 130, 246, 0.3);
}

.player-card.active-turn-opp .player-dice-pill {
  background: rgba(120, 53, 15, 0.65);
  border-color: rgba(245, 158, 11, 0.45);
  box-shadow: 0 0 6px rgba(245, 158, 11, 0.3);
}

/* ==========================================================================
   MODALE PARAMÈTRES AUDIO & MUSIQUE
   ========================================================================== */
.modal-audio-box {
  max-width: 480px;
}

.audio-settings-body {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.audio-setting-card {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 14px 16px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px 14px;
  backdrop-filter: blur(8px);
  transition: all 0.2s ease;
}

.audio-setting-card.master-audio-card {
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.5) 0%, rgba(15, 23, 42, 0.75) 100%);
  border-color: rgba(96, 165, 250, 0.4);
  box-shadow: 0 4px 16px rgba(30, 58, 138, 0.25);
}

.audio-setting-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.audio-setting-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.audio-setting-icon {
  font-size: 1.25rem;
  line-height: 1;
}

.audio-setting-label {
  font-size: 0.98rem;
  font-weight: 800;
  color: #f8fafc;
  letter-spacing: 0.2px;
}

.audio-badge-live {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.22);
  border: 1px solid rgba(245, 158, 11, 0.45);
  color: #fde047;
  letter-spacing: 0.5px;
}

.audio-setting-sub {
  font-size: 0.78rem;
  color: #94a3b8;
  margin: 0;
}

/* Interrupteur Bascule (Toggle Switch) */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 28px;
  flex-shrink: 0;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #334155;
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 999px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 2px;
  bottom: 2px;
  background-color: #ffffff;
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.35);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.toggle-switch input:checked + .toggle-slider {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border-color: #34d399;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

.toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(22px);
}

/* Curseur de Volume (Slider) */
.audio-volume-slider-row {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.volume-slider-icon {
  font-size: 0.85rem;
  color: #64748b;
  flex-shrink: 0;
}

.audio-volume-range {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 999px;
  background: #334155;
  outline: none;
  transition: background 0.15s;
}

.audio-volume-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #f59e0b;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
  cursor: pointer;
  transition: transform 0.1s;
}

.audio-volume-range::-webkit-slider-thumb:active {
  transform: scale(1.25);
}

.audio-volume-range::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #f59e0b;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
  cursor: pointer;
}

/* --- Mini-Jukebox : Sélecteur de Musiques d'Ambiance --- */
.jukebox-selector-container {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.jukebox-selector-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2px;
}

.jukebox-selector-title {
  font-size: 0.82rem;
  font-weight: 800;
  color: #e2e8f0;
  letter-spacing: 0.3px;
}

.jukebox-track-counter {
  font-size: 0.70rem;
  font-weight: 700;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.jukebox-tracks-grid {
  display: flex;
  flex-direction: column;
  gap: 7px;
  max-height: 195px;
  overflow-y: auto;
  overflow-x: hidden !important;
  padding-right: 6px;
  scrollbar-width: thin;
  scrollbar-color: rgba(245, 158, 11, 0.45) rgba(15, 23, 42, 0.3);
  box-sizing: border-box;
}

.jukebox-tracks-grid::-webkit-scrollbar {
  width: 5px;
  height: 0;
}

.jukebox-tracks-grid::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.3);
  border-radius: 999px;
}

.jukebox-tracks-grid::-webkit-scrollbar-thumb {
  background: rgba(245, 158, 11, 0.45);
  border-radius: 999px;
}

.jukebox-tracks-grid::-webkit-scrollbar-thumb:hover {
  background: #f59e0b;
}

.jukebox-track-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: left;
  user-select: none;
  box-sizing: border-box;
  width: 100%;
}

.jukebox-track-card:hover {
  background: rgba(30, 41, 59, 0.8);
  border-color: rgba(245, 158, 11, 0.4);
  transform: translateY(-1px);
}

.jukebox-track-card:active {
  transform: translateY(0);
}

.jukebox-track-card.active {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.16) 0%, rgba(217, 119, 6, 0.06) 100%);
  border: 1.5px solid #f59e0b;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.2), inset 0 0 8px rgba(245, 158, 11, 0.05);
}

.jukebox-track-icon {
  font-size: 1.25rem;
  line-height: 1;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  flex-shrink: 0;
}

.jukebox-track-card.active .jukebox-track-icon {
  background: rgba(245, 158, 11, 0.2);
}

.jukebox-track-details {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
  gap: 2px;
}

.jukebox-track-name {
  font-size: 0.85rem;
  font-weight: 800;
  color: #f8fafc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.jukebox-track-card.active .jukebox-track-name {
  color: #fef08a;
}

.jukebox-track-sub {
  font-size: 0.70rem;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.jukebox-track-status {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  flex-shrink: 0;
  letter-spacing: 0.3px;
  transition: all 0.2s ease;
}

.jukebox-track-card.active .jukebox-track-status {
  background: #f59e0b;
  color: #78350f;
  box-shadow: 0 1px 6px rgba(245, 158, 11, 0.4);
}

.jukebox-track-card:not(.active) .jukebox-track-status {
  background: rgba(255, 255, 255, 0.06);
  color: #94a3b8;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.jukebox-track-card:not(.active):hover .jukebox-track-status {
  background: rgba(245, 158, 11, 0.15);
  color: #fde047;
  border-color: rgba(245, 158, 11, 0.4);
}

/* Responsive & Mobile tweaks */
@media (min-width: 768px) {
  .modal-box {
    max-width: 520px;
  }
  .hud-overlay {
    padding: 20px 40px;
  }
  .scoreboard-bar {
    padding: 10px 40px;
    gap: 16px;
  }
}

/* ==========================================================================
   Tapis de Jeu 3D - Échantillons Réalistes & Effets Spéciaux de Luxe
   ========================================================================== */

/* Swatch d'aperçu de Tapis de Jeu Réaliste (Taille compacte optimisée) */
.shop-table-swatch-box {
  width: 100%;
  height: 50px;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.15), inset 0 -2px 6px rgba(0, 0, 0, 0.6), 0 3px 8px rgba(0, 0, 0, 0.35);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  background-repeat: repeat;
  background-size: auto, 100% 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Carte Tapis compacte (évite les débordements verticaux et horizontaux) */
.shop-dice-card.card-table-mat {
  padding: 6px 5px 6px 5px;
  gap: 3px;
  border-radius: 12px;
}

.shop-dice-card.card-table-mat .shop-dice-name {
  font-size: 0.85rem;
  line-height: 1.15;
  margin-top: 1px;
}

.shop-dice-card.card-table-mat .shop-dice-price {
  font-size: 0.78rem;
  gap: 2px;
}

.shop-dice-card.card-table-mat .shop-dice-status-eq,
.shop-dice-card.card-table-mat .shop-dice-status-ready {
  font-size: 0.72rem;
}

.shop-dice-card.card-table-mat .shop-dice-lock-overlay {
  width: 20px;
  height: 20px;
  font-size: 0.66rem;
  top: 3px;
  right: 3px;
}

.shop-dice-card.card-table-mat .shop-dice-badge-equipped {
  font-size: 0.60rem;
  padding: 1px 6px;
  top: 3px;
}

.shop-dice-card.card-table-mat .shop-color-category-pill {
  font-size: 0.60rem;
  padding: 1px 5px;
}

/* Grille Tapis optimisée avec espacement compact */
.shop-items-grid.grid-table-layout {
  gap: 8px;
  padding: 2px 2px 14px 2px;
}

/* Texture feutrine subtile sur les bords des échantillons sans masquer le motif central */
.shop-table-swatch-box::after {
  content: '';
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.35);
  pointer-events: none;
  border-radius: inherit;
}

/* Effets Spéciaux des 15 Teintes de Luxe sur les Cartes Boutique */
/* 1. Métaux (Or, Argent, Bronze, Champagne) : Reflet satiné métallique animé */
.shop-table-swatch-box.effect-metal::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 20%, rgba(255, 255, 255, 0.3) 45%, rgba(255, 255, 255, 0.5) 50%, rgba(255, 255, 255, 0.3) 55%, transparent 80%);
  background-size: 200% 100%;
  animation: tableMetalSweep 4s ease-in-out infinite;
  pointer-events: none;
  border-radius: inherit;
  z-index: 2;
}

@keyframes tableMetalSweep {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* 2. Gemmes (Émeraude, Saphir, Rubis, Améthyste) : Caustiques & éclat lumineux */
.shop-table-swatch-box.effect-gem::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 35%, rgba(255, 255, 255, 0.38) 0%, rgba(255, 255, 255, 0.1) 40%, transparent 70%);
  box-shadow: inset 0 0 16px rgba(255, 255, 255, 0.25);
  animation: tableGemGlow 3s ease-in-out infinite alternate;
  pointer-events: none;
  border-radius: inherit;
  z-index: 2;
}

@keyframes tableGemGlow {
  0% { opacity: 0.65; transform: scale(0.98); }
  100% { opacity: 1; transform: scale(1.02); }
}

/* 3. Profondes (Bordeaux, Bleu Nuit, Anthracite, Pourpre) : Velours sombre royal */
.shop-table-swatch-box.effect-deep::before {
  content: '';
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 24px rgba(0, 0, 0, 0.88);
  pointer-events: none;
  border-radius: inherit;
  z-index: 2;
}

/* 4. Matières (Cognac, Ivoire, Taupe) : Grain et patine feutrée noble */
.shop-table-swatch-box.effect-material::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 30%, rgba(255, 255, 255, 0.16) 0%, transparent 65%);
  box-shadow: inset 0 0 14px rgba(0, 0, 0, 0.48);
  pointer-events: none;
  border-radius: inherit;
  z-index: 2;
}

/* Badges de catégorie de couleur */
.shop-color-category-pill {
  font-size: 0.60rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.2px;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  white-space: nowrap;
}
.pill-cat-metal {
  background: rgba(234, 179, 8, 0.2);
  color: #fde047;
  border: 1px solid rgba(234, 179, 8, 0.45);
}
.pill-cat-gem {
  background: rgba(16, 185, 129, 0.2);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.45);
}
.pill-cat-deep {
  background: rgba(136, 19, 55, 0.3);
  color: #fda4af;
  border: 1px solid rgba(225, 29, 72, 0.45);
}
.pill-cat-material {
  background: rgba(180, 83, 9, 0.25);
  color: #fcd34d;
  border: 1px solid rgba(180, 83, 9, 0.45);
}
.pill-cat-classique {
  background: rgba(59, 130, 246, 0.2);
  color: #93c5fd;
  border: 1px solid rgba(59, 130, 246, 0.4);
}

/* Barre de filtres pour les couleurs de tapis */
.shop-color-filter-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  padding: 4px 2px 10px 2px;
  width: 100%;
  box-sizing: border-box;
  scrollbar-width: none;
}
.shop-color-filter-bar::-webkit-scrollbar {
  display: none;
}
.color-filter-btn {
  flex-shrink: 0;
  padding: 5px 12px;
  font-size: 0.78rem;
  font-weight: 800;
  color: #94a3b8;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}
.color-filter-btn:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-1px);
}
.color-filter-btn.active {
  color: #0f172a;
  background: #facc15;
  border-color: #facc15;
  box-shadow: 0 0 10px rgba(250, 204, 21, 0.4);
}

/* Effets de Luxe sur le Tapis d'Arène 3D en Jeu */
.game-arena-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.game-arena-container.effect-metal::before {
  opacity: 1;
  background: linear-gradient(115deg, transparent 20%, rgba(255, 255, 255, 0.08) 45%, rgba(255, 255, 255, 0.18) 50%, rgba(255, 255, 255, 0.08) 55%, transparent 80%);
  background-size: 200% 100%;
  animation: arenaMetalSweep 8s ease-in-out infinite;
}

@keyframes arenaMetalSweep {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.game-arena-container.effect-gem::before {
  opacity: 1;
  background: radial-gradient(circle at 50% 35%, rgba(255, 255, 255, 0.12) 0%, transparent 65%);
  box-shadow: inset 0 0 65px rgba(255, 255, 255, 0.08);
  animation: arenaGemPulse 5s ease-in-out infinite alternate;
}

@keyframes arenaGemPulse {
  0% { opacity: 0.7; transform: scale(0.99); }
  100% { opacity: 1; transform: scale(1.01); }
}

.game-arena-container.effect-deep::before {
  opacity: 1;
  box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.88);
}

.game-arena-container.effect-material::before {
  opacity: 1;
  background: radial-gradient(ellipse at 50% 30%, rgba(255, 255, 255, 0.06) 0%, transparent 70%);
  box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.55);
}

/* =========================================================================
   STUDIO AVATAR EN BOUTIQUE (MODE BUSTE / TRONC & CATALOGUE VESTIAIRE)
   ========================================================================= */
.shop-avatar-studio-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
}

/* Carte Présentoir Mannequin Buste */
.shop-avatar-mannequin-card {
  width: 100%;
  height: 160px;
  background: radial-gradient(circle at 50% 35%, #ffffff 0%, #fdf2f8 55%, #fce7f3 100%);
  border: 2.5px solid #fb7185;
  border-radius: 22px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.9), 0 6px 16px rgba(244, 63, 94, 0.18);
  box-sizing: border-box;
}

.shop-avatar-pedestal-glow {
  position: absolute;
  bottom: 0;
  width: 80%;
  height: 25px;
  background: radial-gradient(ellipse at 50% 100%, rgba(244, 63, 94, 0.35) 0%, transparent 75%);
  border-radius: 50%;
  pointer-events: none;
}

.shop-avatar-live-bust {
  width: 130px;
  height: 155px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  position: relative;
}

.shop-avatar-live-bust svg {
  width: 100%;
  height: 100%;
  display: block;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
}

/* Barre d'onglets Catégories Sticky (Toujours visible au scroll) */
.shop-avatar-cat-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 8px 6px;
  width: 100%;
  box-sizing: border-box;
  position: sticky;
  top: 0;
  z-index: 25;
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1.5px solid rgba(244, 63, 94, 0.25);
  border-radius: 0 0 16px 16px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
}

.avatar-cat-pill {
  flex: 1;
  max-width: 190px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #ffffff;
  border: 1.5px solid #fecdd3;
  color: #9f1239;
  font-family: 'Outfit', sans-serif;
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.avatar-cat-pill:hover {
  border-color: #fb7185;
  color: #e11d48;
  transform: translateY(-1px);
}

.avatar-cat-pill.active {
  background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
  color: #ffffff;
  border-color: #f43f5e;
  box-shadow: 0 3px 10px rgba(225, 29, 72, 0.35);
  transform: scale(1.02);
}

/* Palette de Couleurs Contextuelle (Teint, Cheveux, Yeux) */
.shop-avatar-palette-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  overflow-x: auto;
  padding: 6px 4px 10px 4px;
  width: 100%;
  box-sizing: border-box;
  scrollbar-width: none;
}
.shop-avatar-palette-row::-webkit-scrollbar {
  display: none;
}

.avatar-color-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2.5px solid #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.15s;
  box-sizing: border-box;
}

.avatar-color-circle:hover {
  transform: scale(1.15);
}

.avatar-color-circle.is-active {
  transform: scale(1.22);
  border-color: #facc15;
  box-shadow: 0 0 10px #facc15, 0 3px 8px rgba(0, 0, 0, 0.4);
}

/* Carte Article Avatar dans la Grille */
.shop-dice-card.card-avatar-item {
  min-width: 0;
  width: 100%;
  padding: 6px 5px 6px 5px;
  gap: 3px;
  border-radius: 14px;
}

.shop-avatar-item-preview-box {
  width: 100%;
  height: 72px;
  position: relative;
  background: radial-gradient(circle at 50% 45%, #ffffff 0%, #f1f5f9 60%, #e2e8f0 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.8);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.9), 0 2px 6px rgba(0, 0, 0, 0.08);
}

.shop-avatar-item-preview-box svg {
  width: 66px;
  height: 66px;
  display: block;
}

.btn-test-mode-toggle:hover {
  transform: scale(1.04);
  filter: brightness(1.15);
}

.btn-test-mode-toggle:active {
  transform: scale(0.96);
}

/* Badge Niveau de Carrière (En-tête & Profil) */
.home-career-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 900;
  padding: 1px 6px;
  border-radius: 999px;
  border: 1px solid #fbbf24;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
  letter-spacing: 0.02em;
}

/* Cartes de Statistiques du Profil */
.profile-stat-card {
  background: rgba(15, 23, 42, 0.6);
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.profile-stat-val {
  display: block;
  font-size: 1.5rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1.15;
}

.profile-stat-lbl {
  display: block;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-top: 3px;
  text-transform: none;
}

/* Carte Carrière Détaillée et Aérée */
.profile-career-card {
  grid-column: span 2;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.16) 0%, rgba(180, 83, 9, 0.08) 100%);
  border: 1.5px solid rgba(250, 204, 21, 0.45);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.profile-career-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.profile-career-title-badge {
  font-size: 0.75rem;
  font-weight: 900;
  color: #fef08a;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 5px;
}

.profile-career-stars-badge {
  font-size: 0.95rem;
  font-weight: 900;
  color: #facc15;
  background: rgba(0, 0, 0, 0.25);
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(250, 204, 21, 0.3);
}

.profile-career-main-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.profile-career-level-val {
  font-size: 1.55rem;
  font-weight: 900;
  color: #facc15;
  line-height: 1;
  text-shadow: 0 2px 8px rgba(245, 158, 11, 0.35);
}

.profile-career-bar-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.profile-career-ratio-text {
  font-size: 0.76rem;
  font-weight: 800;
  color: #cbd5e1;
}

.profile-career-progress-track {
  width: 110px;
  height: 6px;
  background: rgba(15, 23, 42, 0.7);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-career-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #f59e0b, #facc15);
  border-radius: 999px;
  transition: width 0.3s ease;
}

/* =========================================================================
   BANNIÈRE DE RAPPEL DE L'ACCUEIL GUIDÉ DANS LES RÈGLES
   ========================================================================= */
.rules-welcome-recap-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, rgba(250, 204, 21, 0.14) 0%, rgba(245, 158, 11, 0.06) 100%);
  border: 1.5px solid rgba(250, 204, 21, 0.35);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-bottom: 16px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.rules-welcome-recap-banner:hover {
  background: linear-gradient(135deg, rgba(250, 204, 21, 0.22) 0%, rgba(245, 158, 11, 0.12) 100%);
  border-color: rgba(250, 204, 21, 0.6);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.2);
}

.rules-welcome-banner-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 8px rgba(250, 204, 21, 0.5));
}

.rules-welcome-banner-content {
  flex: 1;
  text-align: left;
}

.rules-welcome-banner-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: #fef08a;
  letter-spacing: 0.2px;
}

.rules-welcome-banner-subtitle {
  font-size: 0.78rem;
  color: #cbd5e1;
  line-height: 1.35;
  margin-top: 2px;
}

.rules-welcome-banner-arrow {
  font-size: 1.1rem;
  color: #facc15;
  font-weight: 900;
  transition: transform 0.2s ease;
}

.rules-welcome-recap-banner:hover .rules-welcome-banner-arrow {
  transform: translateX(4px);
}

/* =========================================================================
   MODALE D'ACCUEIL & ONBOARDING DÉCOUVERTE (3 ÉTAPES)
   ========================================================================= */
.welcome-onboarding-modal-box {
  max-width: 520px;
  width: 95%;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #0d172e 0%, #060b17 100%);
  border: 1.5px solid rgba(250, 204, 21, 0.45);
  box-shadow: 0 0 50px rgba(245, 158, 11, 0.25), 0 25px 60px rgba(0, 0, 0, 0.85);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.welcome-onboarding-header {
  padding: 16px 20px 14px;
  background: rgba(15, 23, 42, 0.75);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.welcome-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.welcome-badge-tag {
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.8px;
  color: #fde047;
  background: rgba(250, 204, 21, 0.12);
  border: 1px solid rgba(250, 204, 21, 0.35);
  padding: 3px 10px;
  border-radius: 999px;
  text-transform: uppercase;
}

.welcome-skip-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.2s;
}

.welcome-skip-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.welcome-steps-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.welcome-step-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(30, 41, 59, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 5px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.welcome-step-tab .step-num {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #334155;
  color: #cbd5e1;
  font-size: 0.72rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.welcome-step-tab .step-label {
  font-size: 0.78rem;
  font-weight: 800;
  color: #94a3b8;
  transition: color 0.2s;
}

.welcome-step-tab.active {
  background: linear-gradient(135deg, rgba(250, 204, 21, 0.2), rgba(245, 158, 11, 0.28));
  border-color: rgba(250, 204, 21, 0.65);
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.35);
}

.welcome-step-tab.active .step-num {
  background: #facc15;
  color: #0f172a;
}

.welcome-step-tab.active .step-label {
  color: #ffffff;
}

.welcome-step-tab.completed .step-num {
  background: #10b981;
  color: #ffffff;
}

.welcome-step-line {
  flex: 1;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 1px;
}

.welcome-onboarding-body {
  padding: 16px 20px;
  overflow-y: auto;
  flex: 1;
  max-height: calc(90vh - 170px);
}

.welcome-step-panel {
  display: flex;
  flex-direction: column;
  animation: welcomeStepFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes welcomeStepFadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.welcome-hero-banner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 14px 10px;
  margin-bottom: 12px;
  border-radius: 14px;
  background: radial-gradient(circle at 50% 50%, rgba(245, 158, 11, 0.18) 0%, rgba(15, 23, 42, 0.4) 80%);
  border: 1px solid rgba(250, 204, 21, 0.25);
}

.welcome-gift-banner {
  background: radial-gradient(circle at 50% 50%, rgba(234, 179, 8, 0.25) 0%, rgba(30, 41, 59, 0.4) 80%);
}

.welcome-hero-icon-bounce {
  font-size: 2.8rem;
  filter: drop-shadow(0 4px 14px rgba(245, 158, 11, 0.45));
  animation: iconFloat 2.6s ease-in-out infinite;
  line-height: 1.2;
}

@keyframes iconFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

.welcome-hero-chips {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.welcome-chip {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.welcome-chip.chip-gold {
  background: rgba(250, 204, 21, 0.18);
  color: #fde047;
  border-color: rgba(250, 204, 21, 0.4);
}

.welcome-step-title {
  font-size: 1.35rem;
  font-weight: 900;
  color: #ffffff;
  text-align: center;
  margin: 4px 0 6px;
  letter-spacing: 0.2px;
}

.welcome-step-lead {
  font-size: 0.84rem;
  color: #94a3b8;
  text-align: center;
  margin-bottom: 14px;
  line-height: 1.4;
}

.welcome-features-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.welcome-feature-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(30, 41, 59, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 10px 14px;
  text-align: left;
}

.welcome-feature-card.wf-warning {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.25);
}

.wf-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  line-height: 1.2;
}

.wf-content {
  font-size: 0.8rem;
  color: #cbd5e1;
  line-height: 1.35;
}

.wf-content strong {
  display: block;
  color: #ffffff;
  font-weight: 800;
  font-size: 0.84rem;
  margin-bottom: 2px;
}

.welcome-modes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.welcome-mode-item {
  background: rgba(30, 41, 59, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 10px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  text-align: left;
}

.wmi-icon {
  font-size: 1.35rem;
  flex-shrink: 0;
}

.wmi-title {
  font-size: 0.82rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 2px;
}

.wmi-desc {
  font-size: 0.73rem;
  color: #94a3b8;
  line-height: 1.3;
}

.welcome-jokers-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.wjb-pill {
  font-size: 0.75rem;
  background: rgba(250, 204, 21, 0.12);
  border: 1px solid rgba(250, 204, 21, 0.28);
  color: #fde047;
  padding: 4px 10px;
  border-radius: 8px;
}

.welcome-onboarding-footer {
  padding: 14px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(15, 23, 42, 0.75);
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  align-items: center;
}

.btn-welcome-secondary {
  background: rgba(51, 65, 85, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 12px 18px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-welcome-secondary:hover {
  background: rgba(71, 85, 105, 0.8);
  color: #ffffff;
}

.btn-welcome-primary {
  flex: 1;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%);
  color: #0f172a;
  border: none;
  font-family: inherit;
  font-weight: 900;
  font-size: 0.98rem;
  padding: 12px 20px;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-welcome-primary:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5);
}

.btn-welcome-primary:active {
  transform: translateY(1px);
}

.btn-welcome-primary.btn-pulse-gold {
  animation: pulseGoldBtn 2s infinite;
}

@keyframes pulseGoldBtn {
  0%, 100% {
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
  }
  50% {
    box-shadow: 0 4px 25px rgba(250, 204, 21, 0.7);
  }
}

/* Responsive petits mobiles */
@media (max-width: 480px) {
  .welcome-onboarding-modal-box {
    width: 96%;
    max-height: 94vh;
  }
  .welcome-onboarding-header {
    padding: 12px 14px 10px;
  }
  .welcome-onboarding-body {
    padding: 12px 14px;
  }
  .welcome-onboarding-footer {
    padding: 12px 14px;
  }
  .welcome-step-tab {
    padding: 4px 8px;
    gap: 5px;
  }
  .welcome-step-tab .step-label {
    font-size: 0.72rem;
  }
  .welcome-step-title {
    font-size: 1.2rem;
  }
  .welcome-hero-banner {
    padding: 10px 8px;
  }
  .welcome-hero-icon-bounce {
    font-size: 2.3rem;
  }
  .welcome-modes-grid {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

/* =========================================================================
   MODALE DE SÉLECTION DU PERSONNAGE STARTER (DECK DE DÉPART)
   ========================================================================= */
.starter-selection-modal-box {
  max-width: 520px;
  max-height: 92vh;
  overflow-y: auto;
  background: linear-gradient(180deg, #0f172a 0%, #070d1e 100%);
  border: 1.5px solid rgba(250, 204, 21, 0.4);
  box-shadow: 0 0 40px rgba(245, 158, 11, 0.25), 0 20px 40px rgba(0, 0, 0, 0.8);
}

.starter-hero-preview-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.95));
  border: 1.5px solid rgba(250, 204, 21, 0.3);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  box-shadow: inset 0 0 20px rgba(245, 158, 11, 0.08);
}

.starter-hero-bust {
  width: 90px;
  height: 105px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 40%, rgba(245, 158, 11, 0.15) 0%, transparent 70%);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.starter-hero-bust svg,
.starter-hero-bust img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.starter-hero-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
  flex: 1;
}

.starter-hero-name {
  font-size: 1.35rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 0.3px;
}

.starter-hero-badges-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.starter-badge-pill {
  font-size: 0.7rem;
  font-weight: 800;
  background: rgba(250, 204, 21, 0.15);
  border: 1px solid rgba(250, 204, 21, 0.4);
  color: #fef08a;
  padding: 2px 8px;
  border-radius: 999px;
  text-transform: uppercase;
}

.starter-hero-desc {
  font-size: 0.78rem;
  color: #94a3b8;
  line-height: 1.35;
  margin-top: 2px;
}

.starter-characters-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  max-height: 240px;
  overflow-y: auto;
  padding: 4px;
}

@media (min-width: 440px) {
  .starter-characters-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

.starter-char-card {
  background: rgba(30, 41, 59, 0.6);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 6px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.starter-char-card:hover {
  background: rgba(30, 41, 59, 0.95);
  border-color: rgba(250, 204, 21, 0.5);
  transform: translateY(-2px);
}

.starter-char-card.selected {
  background: linear-gradient(180deg, rgba(234, 179, 8, 0.25), rgba(30, 41, 59, 0.9));
  border-color: #facc15;
  box-shadow: 0 0 14px rgba(250, 204, 21, 0.4);
}

.starter-char-thumb {
  width: 50px;
  height: 55px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 6px;
}

.starter-char-thumb svg,
.starter-char-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.starter-char-card-name {
  font-size: 0.75rem;
  font-weight: 800;
  color: #e2e8f0;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

.starter-char-card.selected .starter-char-card-name {
  color: #fef08a;
  font-weight: 900;
}

/* =========================================================================
   BANNIÈRE TEASER DE COLLECTION VERROUILLÉE (BOUTIQUE)
   ========================================================================= */
.shop-empty-teaser-card {
  grid-column: 1 / -1;
  width: 100%;
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.16) 0%, rgba(15, 23, 42, 0.95) 100%);
  border: 1.5px solid rgba(250, 204, 21, 0.4);
  border-radius: var(--radius-md);
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), inset 0 0 20px rgba(245, 158, 11, 0.1);
  margin-bottom: 6px;
}

.shop-empty-teaser-icon {
  font-size: 2.2rem;
  line-height: 1;
  filter: drop-shadow(0 2px 8px rgba(245, 158, 11, 0.5));
}

.shop-empty-teaser-title {
  font-size: 1.15rem;
  font-weight: 900;
  color: #fef08a;
  letter-spacing: 0.3px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

.shop-empty-teaser-desc {
  font-size: 0.82rem;
  color: #cbd5e1;
  line-height: 1.45;
  max-width: 380px;
}

.shop-empty-teaser-pills {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.shop-empty-teaser-pill {
  font-size: 0.74rem;
  font-weight: 800;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(250, 204, 21, 0.3);
  color: #facc15;
  padding: 3px 12px;
  border-radius: 999px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* =========================================================================
   MODAL RÉVÉLATION DE CADEAU (Grand Effet Festif VIP / Saisons)
   ========================================================================= */
.modal-gift-reveal-box {
  background: radial-gradient(circle at 50% 30%, #1e1b4b 0%, #0f172a 70%, #020617 100%) !important;
  border: 3.5px solid #f59e0b !important;
  border-radius: 28px !important;
  box-shadow: 0 0 50px rgba(245, 158, 11, 0.6), inset 0 0 25px rgba(245, 158, 11, 0.25) !important;
  max-width: 380px !important;
  width: 90% !important;
  padding: 24px 20px !important;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

.gift-reveal-burst-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 500px;
  height: 500px;
  margin-top: -250px;
  margin-left: -250px;
  background: repeating-conic-gradient(from 0deg, rgba(245, 158, 11, 0.12) 0deg 15deg, transparent 15deg 30deg);
  border-radius: 50%;
  animation: rotateBurst 20s linear infinite;
  pointer-events: none;
  z-index: 1;
}

@keyframes rotateBurst {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.gift-reveal-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.gift-reveal-box-icon {
  width: 96px;
  height: 96px;
  border-radius: 28px;
  background: linear-gradient(135deg, #fef08a 0%, #f59e0b 50%, #b45309 100%);
  border: 3px solid #ffffff;
  box-shadow: 0 0 25px rgba(245, 158, 11, 0.7), inset 0 2px 5px rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.8rem;
  line-height: 1;
  animation: giftIconPop 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) infinite alternate;
}

@keyframes giftIconPop {
  0% { transform: scale(0.96) rotate(-2deg); }
  100% { transform: scale(1.05) rotate(2deg); }
}

.gift-reveal-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.45rem;
  font-weight: 900;
  color: #fef08a;
  text-shadow: 0 0 12px rgba(245, 158, 11, 0.8);
  margin: 0;
  letter-spacing: 0.5px;
}

.gift-reveal-reward-name {
  font-size: 1.15rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1.3;
}

.gift-reveal-desc {
  font-size: 0.85rem;
  color: #cbd5e1;
  line-height: 1.35;
  max-width: 280px;
}

.gift-reveal-pill {
  background: rgba(34, 197, 94, 0.2);
  border: 1.5px solid #22c55e;
  color: #4ade80;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 4px 14px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.btn-gift-collect {
  width: 100%;
  padding: 14px;
  font-size: 1.15rem;
  font-weight: 900;
  background: linear-gradient(180deg, #f59e0b 0%, #d97706 100%) !important;
  border: 2px solid #fef08a !important;
  box-shadow: 0 4px 18px rgba(245, 158, 11, 0.6) !important;
  border-radius: 16px;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
  color: #ffffff !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.btn-gift-collect:hover {
  transform: scale(1.03);
}

.btn-gift-collect:active {
  transform: scale(0.97);
}

.btn-gift-collect:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

/* Confettis */
.gift-reveal-confetti-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.confetti-particle {
  position: absolute;
  width: 8px;
  height: 12px;
  border-radius: 2px;
  animation: confettiFall 2.8s linear infinite;
}

@keyframes confettiFall {
  0% { transform: translateY(-20px) rotate(0deg); opacity: 1; }
  100% { transform: translateY(400px) rotate(720deg); opacity: 0; }
}

/* VIP Frame sur Avatar Header */
.top-bar-avatar-frame.is-vip-frame {
  border-color: #f59e0b !important;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.8), inset 0 0 4px rgba(254, 240, 138, 0.6) !important;
  animation: vipFrameGlow 2.5s ease-in-out infinite alternate;
}

@keyframes vipFrameGlow {
  0% { box-shadow: 0 0 6px rgba(245, 158, 11, 0.5); }
  100% { box-shadow: 0 0 14px rgba(245, 158, 11, 0.95); }
}

.top-bar-vip-pill {
  background: linear-gradient(180deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 900;
  padding: 1px 7px;
  border-radius: var(--radius-full);
  border: 1.2px solid #fef08a;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 3px;
  line-height: 1.2;
  white-space: nowrap;
  letter-spacing: 0.2px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
  flex-shrink: 0;
}

/* Bouton Gains x2 VIP */
.btn-double-gains.is-vip-instant-btn {
  background: linear-gradient(180deg, #f59e0b 0%, #d97706 100%) !important;
  border: 2px solid #fef08a !important;
  box-shadow: 0 4px 18px rgba(245, 158, 11, 0.55) !important;
}

.btn-vip-instant-chip {
  background: rgba(255, 255, 255, 0.25);
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.5px;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

/* =========================================================================
   SÉPARATION DES PERSONNAGES (OBTENUS vs À OBTENIR) & EXPÉRIENCE STYLES
   ========================================================================= */

/* Séparateurs de Sections dans la Grille des Personnages */
.shop-avatar-section-title {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  margin: 8px 0 4px 0;
  background: linear-gradient(90deg, rgba(30, 41, 59, 0.9) 0%, rgba(15, 23, 42, 0.5) 100%);
  border-left: 4px solid #22c55e;
  border-radius: 10px;
  box-sizing: border-box;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.shop-avatar-section-title.section-locked-title {
  border-left-color: #64748b;
  margin-top: 18px;
  background: linear-gradient(90deg, rgba(30, 41, 59, 0.65) 0%, rgba(15, 23, 42, 0.35) 100%);
}

.section-title-left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.88rem;
  font-weight: 800;
  color: #f8fafc;
  letter-spacing: 0.2px;
}

.section-title-badge {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.2);
  color: #86efac;
  border: 1px solid rgba(34, 197, 94, 0.4);
  letter-spacing: 0.2px;
}

.section-title-badge.count-locked {
  background: rgba(100, 116, 139, 0.2);
  color: #94a3b8;
  border-color: rgba(100, 116, 139, 0.4);
}

/* Cartes de Personnages Verrouillés (Grisées et Pédagogiques) */
.shop-dice-card.card-avatar-item.is-locked-char {
  filter: grayscale(0.85);
  opacity: 0.65;
  border-color: rgba(255, 255, 255, 0.08) !important;
  transition: all 0.25s ease;
  background: rgba(15, 23, 42, 0.5) !important;
}

.shop-dice-card.card-avatar-item.is-locked-char:hover {
  filter: grayscale(0.35);
  opacity: 0.95;
  transform: translateY(-2px);
  border-color: rgba(244, 63, 94, 0.4) !important;
}

/* Pastille Compteur de Styles sur la Carte */
.card-styles-count-pill {
  display: inline-block;
  font-size: 0.66rem;
  font-weight: 700;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.08);
  padding: 1px 6px;
  border-radius: 6px;
  margin-top: 2px;
}

/* Bouton Rapide "Voir les Styles" sur la Carte Active */
.btn-card-goto-styles {
  margin-top: 5px;
  width: 100%;
  padding: 5px 6px;
  background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  box-shadow: 0 2px 8px rgba(244, 63, 94, 0.4);
  transition: transform 0.15s ease, filter 0.15s ease;
}

.btn-card-goto-styles:hover {
  transform: scale(1.03);
  filter: brightness(1.12);
}

.btn-card-goto-styles:active {
  transform: scale(0.97);
}

/* Animation de pulsation sur l'onglet Styles pour inviter le joueur */
@keyframes stylesPulseGlow {
  0% { transform: scale(1); box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05); }
  35% { transform: scale(1.08); box-shadow: 0 0 18px rgba(244, 63, 94, 0.8), 0 0 10px #facc15; border-color: #facc15; }
  70% { transform: scale(1.03); box-shadow: 0 0 12px rgba(244, 63, 94, 0.5); border-color: #fb7185; }
  100% { transform: scale(1); box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05); }
}

.avatar-cat-pill.pulse-attention {
  animation: stylesPulseGlow 1.1s ease-in-out 2;
  border-color: #facc15 !important;
}

/* =========================================================================
   BOUTON REDIRECTION VERS BOUTIQUE AUDIO DANS LE JUKEBOX
   ========================================================================= */
.btn-goto-shop-audio {
  width: 100%;
  margin-top: 10px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.22) 0%, rgba(30, 27, 75, 0.85) 100%);
  border: 1.5px solid rgba(167, 139, 250, 0.4);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  color: #f5f3ff;
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 800;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.btn-goto-shop-audio:hover {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.4) 0%, rgba(46, 16, 101, 0.9) 100%);
  border-color: #c4b5fd;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(139, 92, 246, 0.35);
}

.btn-goto-shop-audio:active {
  transform: scale(0.98);
}

.btn-goto-shop-audio .btn-goto-arrow {
  color: #c4b5fd;
  font-size: 1rem;
  transition: transform 0.15s ease;
}

.btn-goto-shop-audio:hover .btn-goto-arrow {
  transform: translateX(3px);
}

/* =========================================================================
   VIGNETTE AMBIANCES MUSICALES (BOUTIQUE PRINCIPALE)
   ========================================================================= */
.card-theme-audio {
  border: 2.5px solid #8b5cf6;
  background: linear-gradient(135deg, #ffffff 0%, #f5f3ff 60%, #ede9fe 100%);
}

.pill-audio {
  color: #5b21b6;
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.btn-action-audio {
  background: linear-gradient(180deg, #8b5cf6 0%, #6d28d9 100%);
}

.badge-circle-audio {
  background: radial-gradient(circle at 40% 35%, #ddd6fe 0%, #c4b5fd 60%, #8b5cf6 100%);
  border-color: #8b5cf6;
  display: flex;
  align-items: center;
  justify-content: center;
}

.shop-audio-circle-icon {
  font-size: 1.6rem;
  line-height: 1;
}

/* =========================================================================
   SOUS-GALERIE AMBIANCES MUSICALES (ÉCOUTE & ACHAT 1 000 🪙)
   ========================================================================= */
.shop-audio-gallery-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.shop-audio-header-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, rgba(76, 29, 149, 0.4) 0%, rgba(30, 27, 75, 0.8) 100%);
  border: 1.5px solid rgba(167, 139, 250, 0.3);
  border-radius: var(--radius-md);
  padding: 10px 14px;
}

.audio-banner-sparkle {
  font-size: 2rem;
  flex-shrink: 0;
}

.audio-banner-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.audio-banner-heading {
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 900;
  color: #fef08a;
}

.audio-banner-sub {
  font-size: 0.78rem;
  color: #cbd5e1;
  line-height: 1.25;
}

.shop-audio-tracks-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.shop-audio-track-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #182234;
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.22);
  transition: all 0.2s ease;
}

.shop-audio-track-card:hover {
  background: #1e2a3e;
  border-color: rgba(167, 139, 250, 0.5);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.32);
}

/* Carte ÉQUIPÉE / ACTIVE : fond sombre solide et net identique aux musiques débloquées, plus aucun effet flouté/embrumé */
.shop-audio-track-card.equipped {
  background: #152232;
  border: 2px solid #22c55e;
  box-shadow: 0 0 14px rgba(34, 197, 94, 0.35), 0 4px 12px rgba(0, 0, 0, 0.3);
}

.shop-audio-track-card.equipped:hover {
  background: #192a3e;
}

.shop-audio-track-card.equipped .shop-audio-track-title {
  color: #86efac;
}

.shop-audio-track-card.previewing {
  border-color: #f59e0b;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.35), 0 4px 12px rgba(0, 0, 0, 0.3);
}

.shop-audio-play-btn {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4f46e5 0%, #3730a3 100%);
  border: 1.5px solid #818cf8;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 3px 8px rgba(79, 70, 229, 0.4);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.shop-audio-play-btn:hover {
  transform: scale(1.06);
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.7);
}

.shop-audio-play-btn.playing {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  border-color: #fef08a;
  animation: audioPulsePlay 1.2s infinite ease-in-out;
}

@keyframes audioPulsePlay {
  0%, 100% { transform: scale(1); box-shadow: 0 0 6px rgba(245, 158, 11, 0.5); }
  50% { transform: scale(1.1); box-shadow: 0 0 16px rgba(245, 158, 11, 0.9); }
}

.shop-audio-track-icon-badge {
  position: absolute;
  bottom: -3px;
  right: -3px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: #0f172a;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  line-height: 1;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.6);
  pointer-events: none;
}

.shop-audio-track-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
}

.shop-audio-track-title-row {
  display: block;
  min-width: 0;
}

.shop-audio-track-title {
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  color: #f8fafc;
  line-height: 1.25;
  margin: 0;
  white-space: normal;
  word-break: break-word;
}

.shop-audio-track-sub-row {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.shop-audio-badge {
  font-size: 0.65rem;
  font-weight: 800;
  color: #c4b5fd;
  background: rgba(139, 92, 246, 0.25);
  border: 1px solid rgba(139, 92, 246, 0.4);
  border-radius: 999px;
  padding: 1px 6px;
  white-space: nowrap;
  flex-shrink: 0;
}

.shop-audio-track-subtitle {
  font-size: 0.74rem;
  color: #94a3b8;
  line-height: 1.3;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.shop-audio-track-action {
  flex-shrink: 0;
  margin-left: auto;
}

.btn-shop-audio-equip {
  background: rgba(255, 255, 255, 0.1);
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  color: #f8fafc;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.btn-shop-audio-equip:hover {
  background: rgba(56, 189, 248, 0.25);
  border-color: #38bdf8;
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-shop-audio-equip.active-equipped {
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
  border-color: #4ade80;
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(34, 197, 94, 0.45);
  cursor: default;
}

.btn-shop-audio-equip.active-equipped:hover {
  transform: none;
}

.btn-shop-audio-buy {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  border: 1.5px solid #fef08a;
  color: #0f172a;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 900;
  padding: 7px 12px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  box-shadow: 0 3px 10px rgba(245, 158, 11, 0.4);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-shop-audio-buy:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.6);
}

.shop-audio-track-card.is-locked-audio {
  background: #161e2b;
  border-color: rgba(148, 163, 184, 0.15);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.shop-audio-track-card.is-locked-audio .shop-audio-track-title {
  color: #94a3b8;
}

.shop-audio-track-card.is-locked-audio .shop-audio-track-subtitle {
  color: #64748b;
}

.shop-audio-track-card.is-locked-audio .shop-audio-play-btn {
  background: linear-gradient(135deg, #334155 0%, #1e293b 100%);
  border-color: #64748b;
  color: #cbd5e1;
}

.shop-audio-track-card.is-locked-audio:hover {
  background: #1c2738;
  border-color: rgba(148, 163, 184, 0.3);
}

.btn-shop-audio-locked {
  background: rgba(30, 41, 59, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.3);
  color: #94a3b8;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 7px 12px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.btn-shop-audio-locked:hover {
  background: rgba(51, 65, 85, 0.95);
  border-color: rgba(148, 163, 184, 0.5);
  color: #f1f5f9;
}

/* =========================================================================
   PACKS DE PIÈCES D'OR EN BAS DE LA BOUTIQUE
   ========================================================================= */
.shop-coin-packs-section {
  width: 92%;
  margin: 18px auto 10px auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.shop-section-divider {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.section-divider-line {
  flex: 1;
  height: 1.5px;
  background: linear-gradient(90deg, transparent 0%, rgba(245, 158, 11, 0.4) 50%, transparent 100%);
}

.section-divider-badge {
  font-family: 'Outfit', sans-serif;
  font-size: 0.82rem;
  font-weight: 900;
  color: #fef08a;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
  white-space: nowrap;
}

.shop-coin-packs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

@media (max-width: 440px) {
  .shop-coin-packs-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

.coin-pack-card {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.92) 0%, rgba(30, 41, 59, 0.95) 100%);
  border: 1.5px solid rgba(245, 158, 11, 0.35);
  border-radius: var(--radius-md);
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.2s ease;
}

.coin-pack-card:hover {
  transform: translateY(-2px);
  border-color: var(--gold);
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.3);
}

.coin-pack-card.featured-pack {
  border-color: #f59e0b;
  background: linear-gradient(135deg, rgba(69, 26, 3, 0.45) 0%, rgba(15, 23, 42, 0.95) 100%);
}

.coin-pack-card.royal-pack {
  border-color: #ec4899;
  background: linear-gradient(135deg, rgba(80, 7, 36, 0.45) 0%, rgba(15, 23, 42, 0.95) 100%);
}

.pack-ribbon-tag {
  position: absolute;
  top: 0;
  right: 0;
  background: #22c55e;
  color: #ffffff;
  font-size: 0.6rem;
  font-weight: 900;
  padding: 2px 6px;
  border-bottom-left-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.pack-ribbon-tag.royal-ribbon {
  background: linear-gradient(135deg, #ec4899 0%, #be185d 100%);
}

.coin-pack-visual {
  position: relative;
  margin: 4px 0 6px 0;
}

.coin-pack-icon {
  font-size: 2rem;
  line-height: 1;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
}

.coin-pack-info {
  display: flex;
  flex-direction: column;
  margin-bottom: 8px;
}

.coin-pack-amount {
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 900;
  color: #fef08a;
  line-height: 1.2;
}

.coin-pack-sub {
  font-size: 0.68rem;
  color: #94a3b8;
  font-weight: 600;
}

.coin-pack-buy-btn {
  width: 100%;
  background: linear-gradient(180deg, #fbbf24 0%, #f59e0b 100%);
  border: 1px solid #fef08a;
  border-radius: 999px;
  color: #0f172a;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 900;
  padding: 7px 10px;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(245, 158, 11, 0.35);
  transition: transform 0.15s ease, filter 0.15s ease;
}

.coin-pack-buy-btn:hover {
  transform: scale(1.05);
  filter: brightness(1.1);
}

.coin-pack-buy-btn:active {
  transform: scale(0.96);
}

/* --- Chronomètre 20s en Ligue en Ligne --- */
.online-turn-timer-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(15, 23, 42, 0.94);
  border: 1.5px solid rgba(56, 189, 248, 0.5);
  backdrop-filter: blur(12px);
  padding: 6px 18px;
  border-radius: 9999px;
  color: #f8fafc;
  font-size: 0.88rem;
  font-weight: 700;
  margin: 0 auto;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
  width: auto;
  min-width: 220px;
  max-width: 320px;
  justify-content: center;
  box-sizing: border-box;
}

.online-turn-timer-pill .timer-clock-icon {
  font-size: 1rem;
}

.online-turn-timer-pill .timer-countdown-text {
  font-size: 0.82rem;
  color: #e2e8f0;
  white-space: nowrap;
}

.online-turn-timer-pill .timer-countdown-text strong {
  color: #38bdf8;
  font-size: 0.95rem;
  font-weight: 900;
}

.online-turn-timer-pill .timer-bar-track {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 9999px;
  overflow: hidden;
  min-width: 60px;
}

.online-turn-timer-pill .timer-bar-fill {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #38bdf8, #0284c7);
  border-radius: 9999px;
  transition: width 1s linear;
}

.online-turn-timer-pill.warning {
  border-color: #f59e0b;
}

.online-turn-timer-pill.warning .timer-countdown-text strong {
  color: #fbbf24;
}

.online-turn-timer-pill.warning .timer-bar-fill {
  background: linear-gradient(90deg, #fbbf24, #d97706);
}

.online-turn-timer-pill.critical {
  border-color: #ef4444;
  animation: timerPulseRed 0.6s infinite alternate;
}

.online-turn-timer-pill.critical .timer-countdown-text strong {
  color: #f87171;
}

.online-turn-timer-pill.critical .timer-bar-fill {
  background: linear-gradient(90deg, #f87171, #dc2626);
}

@keyframes timerPulseRed {
  from { box-shadow: 0 0 6px rgba(239, 68, 68, 0.4); transform: scale(1); }
  to { box-shadow: 0 0 16px rgba(239, 68, 68, 0.9); transform: scale(1.02); }
}

/* ==========================================================================
   CÉLÉBRATION FESTIVE : NIVEAUX DE CARRIÈRE (LEVEL UP ! ⭐)
   ========================================================================== */

.modal-levelup-box {
  background: linear-gradient(180deg, #1e1b4b 0%, #0f172a 100%);
  border: 2px solid #facc15;
  box-shadow: 0 0 40px rgba(250, 204, 21, 0.4), 0 20px 45px rgba(0, 0, 0, 0.85);
  border-radius: var(--radius-lg, 24px);
  position: relative;
  overflow: hidden;
  max-width: 440px;
  width: 92%;
  padding: 0;
  box-sizing: border-box;
}

.levelup-sunburst-rays {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: repeating-conic-gradient(from 0deg, rgba(250, 204, 21, 0.09) 0deg 15deg, transparent 15deg 30deg);
  animation: rotateSunburst 25s linear infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes rotateSunburst {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.levelup-body {
  position: relative;
  z-index: 2;
  padding: 20px 16px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}

.levelup-tag {
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #fef08a;
  background: rgba(250, 204, 21, 0.18);
  border: 1px solid rgba(250, 204, 21, 0.45);
  padding: 4px 12px;
  border-radius: 999px;
  display: inline-block;
}

.levelup-badge-large {
  font-size: 1.95rem;
  font-weight: 950;
  color: #ffffff;
  text-shadow: 0 0 18px rgba(250, 204, 21, 0.9), 0 4px 10px rgba(0,0,0,0.8);
  letter-spacing: 1px;
  margin-top: 2px;
}

.levelup-subtitle {
  font-size: 0.86rem;
  color: #cbd5e1;
  font-weight: 600;
  margin: 0;
  max-width: 320px;
  line-height: 1.35;
}

/* Cadeau / Coffre Interactif */
.career-gift-box-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin: 10px 0 4px;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.career-gift-box {
  width: 116px;
  height: 116px;
  border-radius: 26px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.35) 0%, rgba(217, 119, 6, 0.12) 70%);
  border: 2.5px solid #facc15;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 0 28px rgba(245, 158, 11, 0.5), inset 0 0 20px rgba(250, 204, 21, 0.2);
  animation: giftVibrate 2s ease-in-out infinite;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.career-gift-box:active {
  transform: scale(0.92);
}

@keyframes giftVibrate {
  0%, 100% { transform: scale(1) rotate(0deg); }
  10%, 30% { transform: scale(1.06) rotate(-3deg); }
  20%, 40% { transform: scale(1.06) rotate(3deg); }
  50% { transform: scale(1.08) rotate(0deg); }
  60% { transform: scale(1) rotate(0deg); }
}

.gift-box-emoji {
  font-size: 4.4rem;
  line-height: 1;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,0.6));
}

.gift-box-sparks {
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 1.4rem;
  animation: sparkPulse 1.2s infinite alternate;
}

@keyframes sparkPulse {
  from { opacity: 0.4; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1.2); }
}

.career-gift-tap-hint {
  font-size: 0.84rem;
  font-weight: 800;
  color: #fef08a;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(250, 204, 21, 0.35);
  border-radius: 999px;
  padding: 7px 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  animation: pulseHint 1.2s infinite alternate;
}

@keyframes pulseHint {
  from { transform: scale(0.98); opacity: 0.85; }
  to { transform: scale(1.03); opacity: 1; border-color: #facc15; }
}

/* Récompenses Révélées */
.career-rewards-revealed {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  animation: popInRewards 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes popInRewards {
  from { opacity: 0; transform: scale(0.85) translateY(15px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.career-rewards-title {
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 1.5px;
  color: #cbd5e1;
  text-transform: uppercase;
}

.career-rewards-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-height: 380px;
  overflow-y: auto;
  padding: 8px 6px;
  box-sizing: border-box;
}

/* Carte Centrée Hero pour Pièces (Le "Sous-Sous" en Gros) */
.career-reward-card.reward-coins-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, rgba(234, 179, 8, 0.22) 0%, rgba(15, 23, 42, 0.95) 75%);
  border: 2px solid #facc15;
  border-radius: 18px;
  padding: 14px 14px 16px;
  text-align: center;
  box-shadow: 0 0 25px rgba(250, 204, 21, 0.3), inset 0 0 15px rgba(250, 204, 21, 0.15);
  animation: glowPulseCoins 2s infinite alternate;
}

@keyframes glowPulseCoins {
  from { box-shadow: 0 0 18px rgba(250, 204, 21, 0.25); }
  to { box-shadow: 0 0 32px rgba(250, 204, 21, 0.55); }
}

.career-reward-coin-visual {
  font-size: 3rem;
  line-height: 1;
  margin: 4px 0 6px;
  filter: drop-shadow(0 4px 14px rgba(234, 179, 8, 0.65));
  animation: coinBounce 1.8s ease-in-out infinite;
}

@keyframes coinBounce {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-6px) scale(1.08); }
}

.career-reward-coin-value {
  font-size: 1.6rem;
  font-weight: 950;
  color: #fef08a;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7), 0 0 16px rgba(250, 204, 21, 0.5);
  white-space: nowrap;
}

/* Carte Centrée Hero pour Objet Unique (Dés, Tapis, Motifs) */
.career-reward-card.reward-item-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, rgba(168, 85, 247, 0.2) 0%, rgba(15, 23, 42, 0.95) 75%);
  border: 2px solid #a855f7;
  border-radius: 18px;
  padding: 14px 14px;
  text-align: center;
  box-shadow: 0 0 25px rgba(168, 85, 247, 0.3);
}

.career-reward-card.reward-item-hero.reward-free {
  background: radial-gradient(circle at center, rgba(34, 197, 94, 0.2) 0%, rgba(15, 23, 42, 0.95) 75%);
  border-color: #4ade80;
  box-shadow: 0 0 25px rgba(34, 197, 94, 0.3);
}

.career-reward-item-visual {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
  line-height: 1;
  margin: 4px auto;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.6));
}

.career-reward-item-name {
  font-size: 1.2rem;
  font-weight: 950;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.career-reward-item-price {
  font-size: 0.95rem;
  font-weight: 850;
  color: #fef08a;
  margin-top: 4px;
}

/* Carte Ligne compacte si plusieurs récompenses au même palier */
.career-reward-card.reward-item-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(15, 23, 42, 0.9);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 10px 14px;
  text-align: left;
}

.career-reward-card.reward-item-row.reward-free {
  border-color: rgba(34, 197, 94, 0.45);
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.14) 0%, rgba(15, 23, 42, 0.9) 100%);
}

.career-reward-card.reward-item-row.reward-unlock {
  border-color: rgba(250, 204, 21, 0.45);
  background: linear-gradient(135deg, rgba(250, 204, 21, 0.14) 0%, rgba(15, 23, 42, 0.9) 100%);
}

.career-reward-row-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  line-height: 1;
  flex-shrink: 0;
}

.career-reward-row-name {
  flex: 1;
  font-size: 1.05rem;
  font-weight: 900;
  color: #ffffff;
}

/* Badge Tag */
.career-reward-badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 900;
  padding: 3px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.career-reward-badge-tag.tag-free {
  background: rgba(34, 197, 94, 0.25);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.5);
}

.career-reward-badge-tag.tag-unlock {
  background: rgba(234, 179, 8, 0.25);
  color: #fef08a;
  border: 1px solid rgba(234, 179, 8, 0.5);
}

.levelup-actions-row {
  display: flex;
  gap: 10px;
  width: 100%;
  margin-top: 6px;
}

.btn-levelup-primary {
  flex: 1;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  padding: 13px 18px;
  font-size: 1rem;
  font-weight: 900;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 16px rgba(217, 119, 6, 0.4);
  transition: transform 0.2s;
}

.btn-levelup-primary:active {
  transform: scale(0.96);
}

.btn-levelup-secondary {
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(250, 204, 21, 0.4);
  color: #fef08a;
  border-radius: 12px;
  padding: 13px 16px;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ==========================================================================
   BOUTIQUE & ACCUEIL : BADGES ET PASTILLES NOUVEAUTÉ
   ========================================================================== */

.badge-shop-new {
  position: absolute;
  top: 6px;
  right: 6px;
  background: linear-gradient(135deg, #ef4444, #f59e0b);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 950;
  letter-spacing: 0.5px;
  padding: 2px 7px;
  border-radius: 999px;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.8);
  animation: pulseNewBadge 1s infinite alternate;
  z-index: 6;
  pointer-events: none;
}

@keyframes pulseNewBadge {
  from { transform: scale(0.95); box-shadow: 0 0 6px rgba(239, 68, 68, 0.6); }
  to { transform: scale(1.05); box-shadow: 0 0 14px rgba(245, 158, 11, 0.9); }
}

/* Sécurité : un élément déjà équipé ou porté ne doit jamais afficher le badge NOUVEAU */
.shop-dice-card.is-equipped .badge-shop-new,
.shop-item-card.is-equipped .badge-shop-new {
  display: none !important;
}

.shop-dice-card.is-newly-unlocked,
.shop-item-card.is-newly-unlocked {
  border-color: #facc15 !important;
  box-shadow: 0 0 16px rgba(250, 204, 21, 0.4) !important;
  animation: borderPulseGold 1.5s infinite alternate;
}

@keyframes borderPulseGold {
  from { border-color: rgba(250, 204, 21, 0.5); }
  to { border-color: rgba(250, 204, 21, 1); box-shadow: 0 0 20px rgba(250, 204, 21, 0.6); }
}

/* Badge NOUVEAU sur les vignettes principales de la boutique */
.badge-shop-category-new {
  position: absolute;
  top: -6px;
  right: 14px;
  background: linear-gradient(135deg, #ef4444, #f59e0b);
  color: #ffffff;
  font-family: 'Outfit', sans-serif;
  font-size: 0.65rem;
  font-weight: 950;
  letter-spacing: 0.5px;
  padding: 2px 8px;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.6);
  border: 1.5px solid #ffffff;
  animation: pulseNewBadge 1s infinite alternate;
  z-index: 5;
  pointer-events: none;
  white-space: nowrap;
}

.shop-equal-card.has-new-items {
  border-color: #f59e0b !important;
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.4), 0 4px 12px rgba(0, 0, 0, 0.08) !important;
  animation: borderPulseGold 1.5s infinite alternate;
}

/* Pastille rouge de nouveauté sur les onglets de sous-galerie (Couleurs/Motifs/Styles) */
.tab-sub-notif-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
  border: 1.5px solid #ffffff;
  box-shadow: 0 0 6px rgba(239, 68, 68, 0.8);
  animation: pulseNewBadge 1s infinite alternate;
  display: inline-block;
  margin-left: 5px;
  vertical-align: middle;
}

/* ==========================================================================
   FRISE DE CARRIÈRE (ROADMAP DES 100 PALIERS)
   ========================================================================== */

.modal-roadmap-box {
  max-width: 480px;
  width: 94%;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  background: #0b1120;
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.85);
}

.roadmap-modal-header {
  padding: 16px 20px 12px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.roadmap-modal-title {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 1.35rem;
  font-weight: 900;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.roadmap-body {
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Carte Résumé du Niveau Actuel */
.roadmap-summary-card {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(15, 23, 42, 0.85) 100%);
  border: 1.5px solid rgba(250, 204, 21, 0.35);
  border-radius: 18px;
  padding: 18px 18px 14px 18px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.roadmap-summary-top-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.roadmap-summary-lvl {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 1.8rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1.1;
}

.roadmap-summary-sub {
  font-size: 0.82rem;
  color: #94a3b8;
  font-weight: 600;
  margin-top: 4px;
}

.roadmap-summary-stars {
  font-size: 0.88rem;
  font-weight: 850;
  color: #facc15;
  background: rgba(0, 0, 0, 0.5);
  border: 1.5px solid rgba(250, 204, 21, 0.5);
  padding: 4px 12px;
  border-radius: 999px;
  white-space: nowrap;
}

.roadmap-progress-bar-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  margin: 14px 0 8px 0;
  overflow: hidden;
}

.roadmap-progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #f59e0b, #facc15);
  border-radius: 999px;
  transition: width 0.4s ease-out;
}

.roadmap-progress-text-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: #94a3b8;
}

.roadmap-quota-notice {
  margin-top: 12px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 12px;
  padding: 9px 12px;
  font-size: 0.78rem;
  line-height: 1.45;
  color: #fef08a;
  text-align: center;
}

/* Timeline Verticale Continue */
.roadmap-timeline {
  display: flex;
  flex-direction: column;
  position: relative;
  padding: 4px 0;
}

.roadmap-milestone {
  display: flex;
  position: relative;
}

/* Colonne de gauche avec le Nœud et la Ligne continue */
.roadmap-node-col {
  width: 38px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.roadmap-node-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  z-index: 2;
}

/* Nœud Validé (Vert) */
.roadmap-milestone.is-done .roadmap-node-circle {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #4ade80;
  color: #0f172a;
  font-size: 0.75rem;
  font-weight: 950;
  box-shadow: 0 0 10px rgba(74, 222, 128, 0.5);
}

/* Nœud En Cours (Grand Médaillon Doré) */
.roadmap-milestone.is-current .roadmap-node-circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #facc15;
  border: 3px solid #ca8a04;
  color: #1e1b4b;
  font-size: 0.88rem;
  font-weight: 950;
  box-shadow: 0 0 16px rgba(250, 204, 21, 0.7);
  animation: pulseCurrentNode 1.5s infinite alternate;
}

@keyframes pulseCurrentNode {
  from { box-shadow: 0 0 10px rgba(250, 204, 21, 0.5); }
  to { box-shadow: 0 0 22px rgba(250, 204, 21, 0.85); }
}

/* Nœud Verrouillé (Gris/Sombre) */
.roadmap-milestone.is-locked .roadmap-node-circle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #1e293b;
  border: 1.5px solid #475569;
  color: #94a3b8;
  font-size: 0.72rem;
  font-weight: 800;
}

/* Segment de Ligne Verticale entre Nœuds */
.roadmap-line-segment {
  width: 2px;
  flex: 1;
  min-height: 24px;
}

.roadmap-milestone.is-done .roadmap-line-segment {
  background: #4ade80;
}

.roadmap-milestone.is-current .roadmap-line-segment {
  background: #334155;
}

.roadmap-milestone.is-locked .roadmap-line-segment {
  background: #334155;
}

.roadmap-milestone:last-child .roadmap-line-segment {
  display: none;
}

/* Contenu du Palier à droite de la ligne */
.roadmap-milestone-body {
  flex: 1;
  min-width: 0;
  padding-left: 10px;
  padding-bottom: 22px;
}

.roadmap-milestone-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  min-height: 26px;
}

.roadmap-milestone-title {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 900;
  color: #ffffff;
}

.roadmap-milestone-badge {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 9px;
  border-radius: 999px;
  text-transform: capitalize;
}

.roadmap-milestone-badge.badge-done {
  background: rgba(34, 197, 94, 0.2);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.4);
}

.roadmap-milestone-badge.badge-current {
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.4);
}

.roadmap-milestone-badge.badge-locked {
  background: rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Cartes Récompenses Déroulées */
.roadmap-milestone-cards {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.roadmap-reward-card {
  background: #141b2d;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  transition: transform 0.15s ease;
}

.roadmap-reward-card.card-gain {
  border-left: 3px solid #4ade80;
  background: linear-gradient(90deg, rgba(74, 222, 128, 0.05) 0%, #141b2d 100%);
}

.roadmap-reward-card.card-unlock {
  border-left: 3px solid #60a5fa;
  background: linear-gradient(90deg, rgba(96, 165, 250, 0.05) 0%, #141b2d 100%);
}

.roadmap-milestone.is-locked .roadmap-reward-card {
  opacity: 0.55;
}

.roadmap-reward-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  flex-shrink: 0;
}

.roadmap-reward-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.roadmap-reward-badge-row,
.roadmap-reward-top-row {
  display: flex;
  align-items: center;
  margin-bottom: 3px;
}

.roadmap-reward-name {
  font-size: 0.95rem;
  font-weight: 800;
  color: #ffffff;
  white-space: normal;
  word-break: break-word;
  line-height: 1.25;
  margin-bottom: 2px;
}

/* Badges distinctifs : GAIN vs DÉBLOCAGE */
.roadmap-badge-type {
  font-size: 0.68rem;
  font-weight: 850;
  padding: 2px 8px;
  border-radius: 999px;
  letter-spacing: 0.3px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.roadmap-badge-type.type-gain {
  background: rgba(34, 197, 94, 0.2);
  color: #4ade80;
  border: 1px solid rgba(74, 222, 128, 0.45);
}

.roadmap-badge-type.type-unlock {
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
  border: 1px solid rgba(96, 165, 250, 0.45);
}

.roadmap-reward-sub {
  font-size: 0.78rem;
  color: #94a3b8;
  font-weight: 600;
  margin-top: 3px;
}

.roadmap-scroll-hint {
  text-align: center;
  font-size: 0.8rem;
  color: #64748b;
  font-weight: 600;
  padding: 12px 0 6px 0;
}

/* ==========================================================================
   MODALE TICKET DU MOIS & ASSIDUITÉ MENSUELLE (DESIGN ÉLÉGANT CASINO/OR)
   ========================================================================== */
.modal-scratch-box {
  max-width: 440px;
  width: 92%;
  background: linear-gradient(180deg, #0f1527 0%, #090d19 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.8), 0 0 20px rgba(15, 23, 42, 0.6);
  overflow: hidden;
}

.scratch-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 12px 20px;
  border-bottom: none;
}

.scratch-modal-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ticket-header-pill {
  width: 36px;
  height: 25px;
  border-radius: 7px;
  background: linear-gradient(135deg, #f43f5e, #e11d48);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px rgba(244, 63, 94, 0.4);
}

.scratch-modal-title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.45rem;
  font-weight: 800;
  color: #fefce8;
  letter-spacing: 0.3px;
  margin: 0;
}

.scratch-close-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #172138;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.scratch-close-btn:hover {
  background: #233050;
  color: #ffffff;
}

.scratch-modal-body {
  padding: 6px 16px 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Carte Récapitulative d'Assiduité */
.attendance-summary-card {
  background: #111628;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 16px 16px 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.attendance-top-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.attendance-title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.12rem;
  font-weight: 800;
  color: #fefce8;
}

.attendance-sub {
  font-size: 0.78rem;
  color: #64748b;
  margin-top: 3px;
  font-weight: 500;
}

.attendance-badge-days {
  background: #080c18;
  border: 1.5px solid #d97706;
  color: #f59e0b;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 0.85rem;
  padding: 4px 12px;
  border-radius: 999px;
  box-shadow: 0 0 10px rgba(217, 119, 6, 0.2);
  white-space: nowrap;
}

/* Stepper Horizontal */
.attendance-stepper-wrap {
  position: relative;
  margin: 6px 0 0 0;
  padding: 8px 0;
}

.attendance-timeline-line {
  position: absolute;
  top: 22px;
  left: 20px;
  right: 20px;
  height: 2px;
  background: #1e293b;
  z-index: 1;
}

.attendance-milestones-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  position: relative;
  z-index: 2;
}

.attendance-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: default;
}

.step-node-bubble {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #0c1122;
  border: 1.5px solid #26324e;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}

.attendance-step.step-target .step-node-bubble {
  width: 28px;
  height: 28px;
  border: 1.5px dashed #475569;
  background: #0b1120;
  box-shadow: none;
}

.attendance-step.step-ready .step-node-bubble {
  width: 32px;
  height: 32px;
  border: 2px solid #f59e0b;
  background: rgba(245, 158, 11, 0.25);
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.6);
  animation: pulseReadyStep 1.8s infinite;
  cursor: pointer;
}

.attendance-step.step-claimed .step-node-bubble {
  width: 30px;
  height: 30px;
  border: 2px solid #22c55e;
  background: rgba(34, 197, 94, 0.22);
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.35);
}

.attendance-step.step-future {
  opacity: 0.65;
}

@keyframes pulseReadyStep {
  0%, 100% { transform: scale(1); box-shadow: 0 0 6px rgba(245, 158, 11, 0.4); }
  50% { transform: scale(1.08); box-shadow: 0 0 14px rgba(245, 158, 11, 0.8); }
}

.step-label {
  margin-top: 10px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
}

.attendance-step.step-future .step-label {
  color: #94a3b8;
}

.step-status {
  margin-top: 2px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #64748b;
}

.attendance-step.step-target .step-status {
  color: #94a3b8;
  font-weight: 700;
}

.attendance-step.step-ready .step-status {
  color: #facc15;
  font-weight: 800;
}

.attendance-step.step-claimed .step-status {
  color: #4ade80;
  font-weight: 700;
}

/* Zone Interactive de Grattage */
.scratch-ticket-interactive-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  background: #111628;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 16px 14px;
}

.scratch-ticket-header {
  text-align: center;
}

.scratch-ticket-title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: #fefce8;
  display: block;
}

.scratch-ticket-sub {
  font-size: 0.78rem;
  color: #94a3b8;
  margin-top: 2px;
}

.scratch-card-wrapper {
  position: relative;
  width: 320px;
  height: 190px;
  max-width: 100%;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 15px rgba(245, 158, 11, 0.3);
  border: 3px solid #ca8a04;
  background: #1e293b;
  touch-action: none;
}

.scratch-reward-reveal {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px;
  text-align: center;
  background: radial-gradient(circle at 50% 40%, #1e3a8a 0%, #0f172a 100%);
  user-select: none;
}

.scratch-reward-reveal.revealed-pop {
  animation: rewardRevealPop 0.65s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes rewardRevealPop {
  0% { transform: scale(0.8); opacity: 0.4; filter: brightness(1.8); }
  65% { transform: scale(1.06); filter: brightness(1.25); }
  100% { transform: scale(1); opacity: 1; filter: brightness(1); }
}

.scratch-reward-art {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
  margin-bottom: 6px;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.5));
}

.scratch-reward-art img,
.scratch-reward-art svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.scratch-reward-title {
  font-size: 1.15rem;
  font-weight: 900;
  color: #fde047;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.scratch-reward-desc {
  font-size: 0.82rem;
  color: #e2e8f0;
  margin-top: 2px;
}

.scratch-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: crosshair;
  z-index: 2;
  transition: opacity 0.4s ease;
}

.scratch-action-footer {
  width: 100%;
  margin-top: 4px;
}

/* État Verrouillé / En attente */
.scratch-locked-area {
  padding: 28px 18px;
  text-align: center;
  background: #111628;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.scratch-locked-icon {
  font-size: 2.8rem;
  line-height: 1;
}

.scratch-locked-title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: #fefce8;
}

.scratch-locked-desc {
  font-size: 0.94rem;
  line-height: 1.6;
  color: #94a3b8;
  max-width: 320px;
}

.highlight-gold {
  color: #f59e0b;
  font-weight: 800;
}

/* =========================================================================
   EFFETS D'EMPOCHAGE ET DE VALIDATION D'ACHAT (FEEDBACK IN-MODAL)
   ========================================================================= */

/* 1. Animation d'absorption et d'empochage de l'objet/icône */
.reward-absorbed-pop {
  animation: rewardAbsorbedAnim 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards !important;
  pointer-events: none;
}

@keyframes rewardAbsorbedAnim {
  0% {
    transform: scale(1);
    filter: drop-shadow(0 0 10px rgba(245, 158, 11, 0.4));
  }
  38% {
    transform: scale(1.22) translateY(-8px);
    filter: drop-shadow(0 0 32px #facc15) brightness(1.25);
  }
  100% {
    transform: scale(0.85) translateY(4px);
    opacity: 0.9;
    filter: drop-shadow(0 0 18px rgba(16, 185, 129, 0.85)) brightness(1.05);
  }
}

/* 2. Bouton d'action transformé en état de succès vert émeraude feutré */
.btn-action-success {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  color: #ffffff !important;
  border-color: #34d399 !important;
  box-shadow: 0 0 24px rgba(16, 185, 129, 0.7), 0 4px 14px rgba(0, 0, 0, 0.4) !important;
  transform: scale(1.03) !important;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

/* =========================================================================
   MODALE CÉLÉBRATION DE FIN DE SAISON (BILAN & DÉBLOCAGE PERSONNAGE)
   ========================================================================= */
.modal-season-end-box {
  max-width: 440px;
  width: 92%;
  background: radial-gradient(circle at 50% 10%, #2e1065 0%, #0f172a 75%, #050814 100%);
  border: 2px solid rgba(245, 158, 11, 0.6);
  border-radius: 26px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 35px rgba(245, 158, 11, 0.35);
  overflow: hidden;
  position: relative;
  text-align: center;
  padding: 0;
}

.season-end-content {
  padding: 24px 20px 22px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 2;
}

.season-end-trophy {
  font-size: 3.2rem;
  line-height: 1;
  filter: drop-shadow(0 0 16px rgba(245, 158, 11, 0.8));
  animation: bounceTrophy 2s infinite ease-in-out;
}

@keyframes bounceTrophy {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-6px) scale(1.06); }
}

.season-end-title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.5rem;
  font-weight: 900;
  color: #fef08a;
  margin: 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.season-end-subtitle {
  font-size: 0.9rem;
  color: #e2e8f0;
  margin: 0;
  line-height: 1.4;
}

.season-end-char-card {
  width: 100%;
  background: linear-gradient(135deg, rgba(30, 27, 75, 0.85) 0%, rgba(15, 23, 42, 0.95) 100%);
  border: 1.5px solid rgba(250, 204, 21, 0.5);
  border-radius: 20px;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.2);
}

.season-end-char-badge {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #0b0f19;
  font-family: 'Outfit', sans-serif;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.5px;
  padding: 4px 12px;
  border-radius: 999px;
  box-shadow: 0 3px 8px rgba(245, 158, 11, 0.4);
  margin-bottom: 8px;
}

.season-end-char-avatar-preview {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(234, 179, 8, 0.2) 0%, rgba(15, 23, 42, 0.8) 100%);
  border: 2.5px solid #facc15;
  box-shadow: 0 0 20px rgba(250, 204, 21, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 8px;
}

.season-end-char-name {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
}

.season-end-char-origin {
  font-size: 0.78rem;
  color: #94a3b8;
  margin: 2px 0 0 0;
}

.season-end-loot-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  width: 100%;
}

.season-end-loot-item {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 10px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.season-end-loot-icon {
  font-size: 1.4rem;
}

.season-end-loot-val {
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 900;
  color: #facc15;
}

.season-end-loot-label {
  font-size: 0.68rem;
  color: #94a3b8;
  font-weight: 600;
}

.btn-season-end-collect {
  width: 100%;
  padding: 14px;
  font-size: 1rem;
  font-weight: 900;
  border-radius: 16px;
  background: linear-gradient(180deg, #f59e0b 0%, #b45309 100%);
  color: #ffffff;
  border: 1.5px solid #fef08a;
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5);
  cursor: pointer;
  transition: transform 0.15s ease;
}

.btn-season-end-collect:active {
  transform: scale(0.97);
}

.season-end-next-hint {
  font-size: 0.76rem;
  color: #f97316;
  font-weight: 700;
  margin: 0;
}

/* --- VRAI CADEAU MYSTÈRE ANIMÉ À DÉBALLER --- */
.season-gift-interactive-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 18px 0 10px 0;
  cursor: pointer;
  user-select: none;
  touch-action: manipulation;
}

.season-gift-halo {
  position: absolute;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.45) 0%, rgba(217, 119, 6, 0.15) 50%, transparent 75%);
  filter: blur(14px);
  animation: giftHaloPulse 2.8s infinite ease-in-out;
  pointer-events: none;
}

@keyframes giftHaloPulse {
  0%, 100% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.15); opacity: 1; }
}

.season-gift-package-box {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  animation: giftWiggle 3.2s infinite ease-in-out;
}

.season-gift-interactive-wrapper:hover .season-gift-package-box {
  transform: scale(1.08) translateY(-4px);
}

.season-gift-interactive-wrapper:active .season-gift-package-box {
  transform: scale(0.94);
}

@keyframes giftWiggle {
  0%, 80%, 100% { transform: rotate(0deg) scale(1); }
  85% { transform: rotate(-7deg) scale(1.05); }
  90% { transform: rotate(7deg) scale(1.05); }
  95% { transform: rotate(-4deg) scale(1.03); }
}

.season-gift-big-icon {
  font-size: 5.5rem;
  line-height: 1;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 16px rgba(245, 158, 11, 0.7));
}

.season-gift-sparkles {
  position: absolute;
  top: -12px;
  right: -10px;
  font-size: 1.8rem;
  animation: giftSparkleTwinkle 1.5s infinite alternate ease-in-out;
}

@keyframes giftSparkleTwinkle {
  0% { transform: scale(0.8) rotate(-10deg); opacity: 0.6; }
  100% { transform: scale(1.2) rotate(15deg); opacity: 1; filter: drop-shadow(0 0 8px #fef08a); }
}

.season-gift-ribbon-tag {
  margin-top: 8px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #0b0f19;
  font-family: 'Outfit', sans-serif;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.4px;
  padding: 4px 14px;
  border-radius: 999px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.season-gift-tap-prompt {
  font-size: 0.85rem;
  color: #fef08a;
  font-weight: 700;
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  animation: giftTapBlink 2s infinite ease-in-out;
}

@keyframes giftTapBlink {
  0%, 100% { opacity: 0.85; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-2px); text-shadow: 0 0 10px rgba(254, 240, 138, 0.8); }
}

.tap-finger-icon {
  font-size: 1.1rem;
  animation: fingerTap 1.2s infinite ease-in-out;
}

@keyframes fingerTap {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.btn-season-end-open {
  width: 100%;
  padding: 15px;
  font-size: 1.05rem;
  font-weight: 900;
  border-radius: 16px;
  background: linear-gradient(180deg, #10b981 0%, #047857 100%);
  color: #ffffff;
  border: 1.5px solid #a7f3d0;
  box-shadow: 0 6px 22px rgba(16, 185, 129, 0.5);
  cursor: pointer;
  transition: transform 0.15s ease;
  animation: btnOpenPulse 2.2s infinite ease-in-out;
}

@keyframes btnOpenPulse {
  0%, 100% { box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45); }
  50% { box-shadow: 0 8px 30px rgba(16, 185, 129, 0.85); transform: scale(1.02); }
}

.season-gift-opening-anim {
  animation: giftExplode 0.65s cubic-bezier(0.22, 1, 0.36, 1) forwards !important;
}

@keyframes giftExplode {
  0% { transform: scale(1) rotate(0deg); }
  25% { transform: scale(1.25) rotate(-10deg); filter: brightness(1.4); }
  50% { transform: scale(1.35) rotate(10deg); filter: brightness(1.8) drop-shadow(0 0 35px #fef08a); }
  100% { transform: scale(0.1) rotate(360deg); opacity: 0; }
}

.attendance-milestones-row.attendance-streak-5 {
  grid-template-columns: repeat(5, 1fr);
}

/* =========================================================================
   MODE SOLO : INDICATEUR REVANCHE EN 3 BLOCS LUMINEUX (OPTIMISÉ MOBILE)
   ========================================================================= */
.solo-revanche-bar {
  margin-top: 6px;
  padding: 5px 8px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  box-sizing: border-box;
  transition: all 0.3s ease;
}

.solo-revanche-bar .revanche-bar-top {
  display: flex;
  align-items: baseline;
  gap: 5px;
  min-width: 0;
  line-height: 1.1;
}

.solo-revanche-bar .revanche-label-title {
  font-family: 'Outfit', sans-serif;
  font-size: 0.73rem;
  font-weight: 800;
  color: #e2e8f0;
  letter-spacing: 0.2px;
  white-space: nowrap;
}

.solo-revanche-bar .revanche-label-sub {
  font-size: 0.67rem;
  font-weight: 700;
  color: var(--text-muted, #94a3b8);
  white-space: nowrap;
}

.solo-revanche-bar .revanche-blocks {
  display: flex;
  align-items: center;
  gap: 4px;
}

.solo-revanche-bar .revanche-block {
  width: 14px;
  height: 9px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-sizing: border-box;
}

/* Bloc Échec Allumé en Rouge */
.solo-revanche-bar .revanche-block.is-failed {
  background: linear-gradient(180deg, #ef4444 0%, #b91c1c 100%);
  border-color: #fca5a5;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.85);
  transform: scale(1.08);
}

/* Mode Revanche Actif (Super 6) : Flamme Dorée */
.solo-revanche-bar.is-active {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.35) 0%, rgba(245, 158, 11, 0.35) 100%);
  border: 1.5px solid #fde047;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.6), inset 0 0 12px rgba(239, 68, 68, 0.3);
  animation: revancheGlowPulse 1.4s infinite ease-in-out;
}

@keyframes revancheGlowPulse {
  0%, 100% {
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.5), inset 0 0 8px rgba(239, 68, 68, 0.25);
    border-color: #fde047;
  }
  50% {
    box-shadow: 0 0 22px rgba(245, 158, 11, 0.85), inset 0 0 14px rgba(239, 68, 68, 0.5);
    border-color: #fffbeb;
  }
}

.solo-revanche-bar .revanche-fire-title {
  font-family: 'Outfit', sans-serif;
  font-size: 0.78rem;
  font-weight: 900;
  color: #fef08a;
  letter-spacing: 0.4px;
  text-shadow: 0 0 8px rgba(245, 158, 11, 0.8);
  white-space: nowrap;
}

.solo-revanche-bar .revanche-fire-sub {
  font-size: 0.68rem;
  font-weight: 800;
  color: #fed7aa;
  white-space: nowrap;
}

.solo-revanche-bar .revanche-block.on-fire {
  background: linear-gradient(180deg, #fef08a 0%, #f59e0b 60%, #dc2626 100%);
  border-color: #ffffff;
  box-shadow: 0 0 10px rgba(254, 240, 138, 0.9);
  animation: revancheBlockFlicker 0.8s infinite alternate ease-in-out;
}

.solo-revanche-bar .revanche-block.on-fire:nth-child(2) {
  animation-delay: 0.15s;
}

.solo-revanche-bar .revanche-block.on-fire:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes revancheBlockFlicker {
  0% { transform: scale(1); filter: brightness(1); }
  100% { transform: scale(1.15); filter: brightness(1.3); }
}

/* =========================================================================
   ÉCRAN DE LANCEMENT PRO (SPLASH SCREEN - 3 SECONDES)
   ========================================================================= */
.dixdes-splash-screen {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: radial-gradient(circle at 50% 35%, #151e3f 0%, #080c18 65%, #03060c 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  user-select: none;
  -webkit-user-select: none;
  cursor: pointer;
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.5s ease;
  overflow: hidden;
}

.dixdes-splash-screen.splash-fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Si la landing vitrine web est active sur dixdes.fr, on masque le splash screen pour ne pas bloquer la vitrine */
.dixdes-landing-active .dixdes-splash-screen {
  display: none !important;
}

.splash-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px;
  max-width: 360px;
  width: 90%;
  animation: splashContentIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes splashContentIn {
  0% {
    opacity: 0;
    transform: scale(0.92) translateY(12px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.splash-logo-wrap {
  position: relative;
  width: 110px;
  height: 110px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.splash-logo-glow {
  position: absolute;
  inset: -12px;
  border-radius: 30px;
  background: radial-gradient(circle, rgba(234, 179, 8, 0.45) 0%, rgba(245, 158, 11, 0.15) 50%, transparent 70%);
  animation: splashGlowPulse 2s infinite ease-in-out;
  pointer-events: none;
}

@keyframes splashGlowPulse {
  0%, 100% {
    transform: scale(0.95);
    opacity: 0.6;
  }
  50% {
    transform: scale(1.15);
    opacity: 1;
  }
}

.splash-logo-img {
  width: 100px;
  height: 100px;
  border-radius: 22px;
  object-fit: contain;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6), 0 0 0 2px rgba(254, 240, 138, 0.3);
  position: relative;
  z-index: 2;
}

.splash-title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 2.5rem;
  font-weight: 900;
  letter-spacing: 1px;
  margin: 0;
  background: linear-gradient(135deg, #ffffff 0%, #fef08a 45%, #eab308 85%, #ca8a04 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 8px rgba(234, 179, 8, 0.35));
}

.splash-subtitle {
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: #94a3b8;
  letter-spacing: 0.8px;
  margin: 6px 0 0 0;
}

.splash-loader-wrap {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 160px;
}

.splash-progress-bar {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}

.splash-progress-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #f59e0b, #fef08a, #f59e0b);
  border-radius: 999px;
  animation: splashFillProgress 2.6s cubic-bezier(0.2, 0.8, 0.3, 1) forwards;
}

@keyframes splashFillProgress {
  0% { width: 0%; }
  30% { width: 45%; }
  70% { width: 85%; }
  100% { width: 100%; }
}

.splash-loading-text {
  font-family: 'Outfit', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  color: #64748b;
  letter-spacing: 0.6px;
  animation: splashTextBlink 1.4s infinite ease-in-out;
}

@keyframes splashTextBlink {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; color: #94a3b8; }
}


