* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
}
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow-x: hidden;
}
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-image:
    linear-gradient(135deg, rgba(124, 58, 237, 0.87) 0%, rgba(91, 33, 182, 0.87) 50%, rgba(59, 7, 100, 0.9) 100%),
    url('/fond_images/fondglobal.png');
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  color: #fff;
  min-height: 100vh;
  transition: background 0.8s ease;
  position: relative;
}
/* Gradients pour chaque jeu */
body.game-0 {
  background: linear-gradient(135deg, #1a3a52 0%, #0f2845 100%);
}
body.game-1 {
  background: linear-gradient(135deg, #2d1b4e 0%, #1a0f2e 100%);
}
body.game-2 {
  background: linear-gradient(135deg, #3d2a1f 0%, #2a1810 100%);
}
#app {
  width: 100%;
  min-height: 100vh;
  transition: background 0.8s ease;
  position: relative;
  z-index: 1;
}
/* === SECTION AUTH === */
#auth-section {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
  position: relative;
  z-index: 100;
  filter: none;
}
.auth-container {
  background: rgb(56, 3, 89);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 40px 30px;
  width: 100%;
  max-width: 400px;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  animation: fadeInUp 0.6s ease;
  filter: none;
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.auth-container h1 {
  font-size: 3.5rem;
  margin-bottom: 30px;
  font-family: 'Impact', 'Haettenschweiler', 'Arial Black', sans-serif;
  font-weight: 900;
  letter-spacing: 4px;
  background-image: url('/images-stock/logo_ventolign.png');
  background-size: 400px 400px;
  background-repeat: no-repeat;
  background-position: center center;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 
    0 0 30px rgba(102, 126, 234, 0.5),
    0 0 60px rgba(118, 75, 162, 0.4),
    0 0 90px rgba(240, 147, 251, 0.3);
  filter: drop-shadow(0 0 10px rgba(118, 75, 162, 0.7)) drop-shadow(0 0 20px rgba(240, 147, 251, 0.5));
  animation: floatingLogo 4s ease-in-out infinite, glow 3s ease-in-out infinite;
}
@keyframes gradientFlow {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}
@keyframes floatingLogo {
  0%, 100% {
    transform: translateY(0px) scale(1);
    background-position: center center;
  }
  25% {
    transform: translateY(-3px) scale(1.01);
    background-position: calc(center + 5px) calc(center - 5px);
  }
  50% {
    transform: translateY(0px) scale(1);
    background-position: center center;
  }
  75% {
    transform: translateY(-2px) scale(1.005);
    background-position: calc(center - 5px) calc(center + 5px);
  }
}
@keyframes glow {
  0%, 100% {
    text-shadow: 
      0 0 30px rgba(102, 126, 234, 0.5),
      0 0 60px rgba(118, 75, 162, 0.4),
      0 0 90px rgba(240, 147, 251, 0.3);
  }
  50% {
    text-shadow: 
      0 0 40px rgba(102, 126, 234, 0.8),
      0 0 80px rgba(118, 75, 162, 0.6),
      0 0 120px rgba(240, 147, 251, 0.5);
  }
}
.auth-container h2 {
  font-size: 1.3rem;
  margin-bottom: 20px;
  color: #fff;
}
.auth-container input {
  display: block;
  width: 100%;
  padding: 15px;
  margin: 10px 0;
  border: none;
  border-radius: 10px;
  background: rgba(255,255,255,0.15);
  color: #fff;
  font-size: 16px;
}
.auth-container input::placeholder {
  color: rgba(255,255,255,0.6);
}
.auth-container button {
  width: 100%;
  padding: 15px;
  margin-top: 15px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(45deg, #667eea, #764ba2);
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.auth-container button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}
.auth-container button:hover::before {
  width: 300px;
  height: 300px;
}
.auth-container button:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.5);
}
.auth-container button:active {
  transform: translateY(-1px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}
.auth-container p {
  margin-top: 20px;
  color: rgba(255,255,255,0.7);
}
.auth-container a {
  color: #667eea;
  text-decoration: none;
  font-weight: bold;
}
/* === DASHBOARD === */
#dashboard {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
/* Header */
#main-header {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 15px 20px;
  background: rgba(0,0,0,0.3);
  position: sticky;
  top: 0;
  z-index: 100;
  position: relative;
}
#main-header h1 {
  font-size: 2rem;
  margin: 0;
  font-family: 'Impact', 'Haettenschweiler', 'Arial Black', sans-serif;
  font-weight: 900;
  letter-spacing: 3px;
  background-image: url('/images-stock/logo_ventolign.png');
  background-size: 300px 300px;
  background-repeat: no-repeat;
  background-position: center center;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 
    0 0 20px rgba(102, 126, 234, 0.6),
    0 0 40px rgba(118, 75, 162, 0.4),
    0 0 60px rgba(240, 147, 251, 0.3);
  filter: drop-shadow(0 0 8px rgba(118, 75, 162, 0.6)) drop-shadow(0 0 15px rgba(240, 147, 251, 0.4));
  animation: floatingLogo 4s ease-in-out infinite, glow 3s ease-in-out infinite;
}
.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  position: absolute;
  right: 20px;
}
.admin-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: linear-gradient(45deg, #ff6b6b, #feca57);
  border-radius: 50%;
  text-decoration: none;
  font-size: 1.2rem;
  transition: transform 0.2s, box-shadow 0.2s;
}
.admin-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}
#user-info {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 5px 10px;
  border-radius: 20px;
  transition: background 0.2s;
}
#user-info:hover {
  background: rgba(255,255,255,0.1);
}
#user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid #667eea;
}
#user-username {
  font-size: 14px;
  font-weight: 500;
}
/* Navigation Tabs */
#tab-nav {
  display: flex;
  justify-content: space-around;
  background: rgba(0,0,0,0.2);
  padding: 10px 0;
  position: sticky;
  top: 70px;
  z-index: 99;
}
.tab-btn {
  flex: 1;
  padding: 12px 10px;
  border: none;
  background: transparent;
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  border-bottom: 3px solid transparent;
  position: relative;
}
.tab-btn::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, #667eea, #764ba2);
  transform: translateX(-50%);
  transition: width 0.3s ease;
}
.tab-btn:hover::after {
  width: 80%;
}
.tab-btn.active {
  color: #fff;
  border-bottom-color: transparent;
}
.tab-btn.active::after {
  width: 100%;
}
/* Tab Content */
.tab-content {
  display: none;
  flex: 1;
  padding: 20px;
  visibility: hidden;
  height: 0;
  overflow: hidden;
  position: relative;
}
.tab-content.active {
  display: block;
  visibility: visible;
  height: auto;
}
/* Animations de swipe pour les onglets */
.tab-content.slide-left-in {
  display: block;
  visibility: visible;
  height: auto;
  animation: slideInFromRight 0.3s ease-out;
}
.tab-content.slide-left-out {
  animation: slideOutToLeft 0.3s ease-in;
}
.tab-content.slide-right-in {
  display: block;
  visibility: visible;
  height: auto;
  animation: slideInFromLeft 0.3s ease-out;
}
.tab-content.slide-right-out {
  animation: slideOutToRight 0.3s ease-in;
}
/* === SECTION JEUX - SWIPE === */
.swipe-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  touch-action: manipulation;
  -webkit-overflow-scrolling: touch;
  -webkit-user-select: none;
  user-select: none;
}
.swipe-wrapper {
  display: flex;
  transition: transform 0.3s ease-out;
  will-change: transform;
  -webkit-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.game-slide {
  flex: 0 0 100%;
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.game-card-mobile {
  background: linear-gradient(145deg, rgba(255,255,255,0.9), rgba(255,255,255,0.7));
  border-radius: 25px;
  padding: 40px 30px;
  width: 100%;
  max-width: 350px;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  min-height: 500px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.game-bg-video {
  position: absolute;
  top: 45%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%) scale(1.5);
  z-index: 0;
  filter: grayscale(100%) blur(2px);
  opacity: 1;
  transition: all 0.6s ease;
  animation: videoZoom 20s ease-in-out infinite;
}
@keyframes videoZoom {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.02);
  }
}
.game-card-mobile:hover .game-bg-video {
  filter: grayscale(0%) blur(2px);
  opacity: 1;
}
.game-content {
  position: relative;
  z-index: 1;
}
.game-card-mobile::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}
.game-card-mobile:hover::before {
  opacity: 1;
}
.game-card-mobile:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 60px rgba(102, 126, 234, 0.4);
}
.game-card-mobile:active {
  transform: scale(0.85);
  box-shadow: 0 5px 20px rgba(102, 126, 234, 0.6);
  transition: all 0.2s ease;
}
.game-card-mobile:active .game-bg-video {
  transform: translate(-50%, -50%) scale(0.7);
  filter: grayscale(0%) blur(1px);
  opacity: 1;
  transition: all 0.2s ease;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.1);
}
/* Effet glitch/flou pour les jeux restreints */
.game-card-mobile.game-restricted {
  position: relative;
  overflow: hidden;
}
.game-card-mobile.game-restricted::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1;
  animation: glitch 3s infinite;
}
.game-card-mobile.game-restricted .game-icon {
  filter: blur(15px) contrast(0.5);
  opacity: 0.3;
  animation: glitch-icon 4s infinite;
}
.game-card-mobile.game-restricted h3,
.game-card-mobile.game-restricted p {
  position: relative;
  z-index: 2;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8);
}
@keyframes glitch {
  0%, 100% {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }
  25% {
    backdrop-filter: blur(12px) hue-rotate(90deg);
    -webkit-backdrop-filter: blur(12px) hue-rotate(90deg);
  }
  50% {
    backdrop-filter: blur(6px) saturate(200%);
    -webkit-backdrop-filter: blur(6px) saturate(200%);
  }
  75% {
    backdrop-filter: blur(10px) hue-rotate(-90deg);
    -webkit-backdrop-filter: blur(10px) hue-rotate(-90deg);
  }
}
@keyframes glitch-icon {
  0%, 100% {
    filter: blur(15px) contrast(0.5);
    transform: translate(0, 0);
  }
  20% {
    filter: blur(18px) contrast(0.3);
    transform: translate(-2px, 2px);
  }
  40% {
    filter: blur(12px) contrast(0.7);
    transform: translate(2px, -2px);
  }
  60% {
    filter: blur(20px) contrast(0.2);
    transform: translate(-1px, -1px);
  }
  80% {
    filter: blur(14px) contrast(0.6);
    transform: translate(1px, 1px);
  }
}
.game-icon {
  font-size: 4rem;
  margin-bottom: 20px;
}
.game-icon img {
  width: 4.5rem;
  height: 4.5rem;
  object-fit: contain;
  transition: transform 0.3s ease;
}
.game-icon img:hover {
  transform: rotate(360deg);
}
.game-card-mobile h3 {
  font-size: 1.5rem;
  margin: 0 0 15px 0;
  color: #fff;
  background: rgba(0, 0, 0, 0.6);
  padding: 8px 20px;
  border-radius: 15px;
  display: inline-block;
  backdrop-filter: blur(10px);
}
.game-card-mobile p {
  color: rgba(255,255,255,0.95);
  font-size: 14px;
  margin-bottom: 25px;
  line-height: 1.5;
  background: rgba(0, 0, 0, 0.5);
  padding: 10px 15px;
  border-radius: 12px;
  backdrop-filter: blur(8px);
}
.play-btn-mobile {
  padding: 15px 40px;
  border: none;
  border-radius: 25px;
  background: linear-gradient(45deg, #667eea, #764ba2);
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}
.play-btn-mobile::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}
.play-btn-mobile:hover:not(:disabled)::before {
  width: 300px;
  height: 300px;
}
.play-btn-mobile:hover:not(:disabled) {
  transform: scale(1.08);
  box-shadow: 0 8px 35px rgba(102, 126, 234, 0.6);
}
.play-btn-mobile:active:not(:disabled) {
  transform: scale(1.02);
}
.play-btn-mobile:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: rgba(255, 255, 255, 0.1);
}
.swipe-dots {
  display: flex;
  justify-content: center;
  gap: 15px;
  padding: 25px 0;
}
.dot {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  border: 2px solid rgba(255,255,255,0.2);
  position: relative;
  overflow: hidden;
}
.dot::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.4s, height 0.4s;
}
.dot:hover::before {
  width: 100%;
  height: 100%;
}
.dot:hover {
  background: rgba(255,255,255,0.25);
  transform: scale(1.15) rotate(5deg);
  box-shadow: 0 5px 20px rgba(102, 126, 234, 0.3);
}
.dot.active {
  background: linear-gradient(45deg, #667eea, #764ba2);
  border-color: #667eea;
  transform: scale(1.2);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% {
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
  }
  50% {
    box-shadow: 0 8px 35px rgba(102, 126, 234, 0.8);
  }
}
/* Indicateurs de swipe pour les onglets */
.tab-swipe-indicators {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 15px 0;
  margin-top: 10px;
}
.tab-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  cursor: pointer;
  transition: all 0.3s;
}
.tab-dot.active {
  background: rgba(255,255,255,0.9);
  width: 30px;
  border-radius: 5px;
}
.tab-dot:hover {
  background: rgba(255,255,255,0.6);
  transform: scale(1.2);
}
.swipe-hint {
  display: none;
}
/* === SECTION CLASSEMENT === */
.leaderboard-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  overflow-x: auto;
  padding-bottom: 10px;
  -webkit-overflow-scrolling: touch;
}
.lb-tab {
  flex-shrink: 0;
  padding: 10px 20px;
  border: none;
  border-radius: 20px;
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.7);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.3s;
  white-space: nowrap;
}
.lb-tab.active {
  background: linear-gradient(45deg, #667eea, #764ba2);
  color: #fff;
}
/* Style pour les onglets en attente (pending) */
.lb-tab[style*="opacity: 0.5"] {
  cursor: not-allowed;
  position: relative;
}
.lb-tab[style*="opacity: 0.5"]::after {
  content: "⏳";
  margin-left: 5px;
}
.leaderboard-scroll {
  max-height: calc(100vh - 300px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 15px;
  background: rgba(255,255,255,0.05);
}
.leaderboard-content {
  padding: 10px;
}
.lb-item {
  display: flex;
  align-items: center;
  padding: 15px;
  margin-bottom: 10px;
  background: rgba(255,255,255,0.15);
  border-radius: 12px;
  transition: transform 0.2s;
}
.lb-item:first-child {
  background: linear-gradient(45deg, rgba(255,215,0,0.3), rgba(255,215,0,0.2));
  border: 1px solid rgba(255,215,0,0.4);
}
.lb-item:nth-child(2) {
  background: linear-gradient(45deg, rgba(192,192,192,0.3), rgba(192,192,192,0.2));
  border: 1px solid rgba(192,192,192,0.4);
}
.lb-item:nth-child(3) {
  background: linear-gradient(45deg, rgba(205,127,50,0.3), rgba(205,127,50,0.2));
  border: 1px solid rgba(205,127,50,0.4);
}
.lb-rank {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 14px;
  margin-right: 15px;
}
.lb-item:first-child .lb-rank { color: #ffd700; }
.lb-item:nth-child(2) .lb-rank { color: #c0c0c0; }
.lb-item:nth-child(3) .lb-rank { color: #cd7f32; }
.lb-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 15px;
}
.lb-name {
  flex: 1;
  font-weight: 500;
}
.lb-score {
  font-weight: bold;
  color: #667eea;
}
/* === SECTION PROFIL === */
.profile-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
}
.profile-avatar-section {
  text-align: center;
  margin-bottom: 30px;
}
#profile-avatar-large {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 4px solid #667eea;
  margin-bottom: 15px;
}
#profile-username {
  font-size: 1.5rem;
  font-weight: bold;
  display: block;
}
.profile-actions {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 100%;
  max-width: 300px;
  margin-bottom: 30px;
}
.profile-btn {
  padding: 15px 25px;
  border: none;
  border-radius: 12px;
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.3s;
  text-align: center;
}
.profile-btn:hover {
  background: rgba(255,255,255,0.2);
  transform: translateY(-2px);
}
.upload-label {
  display: block;
}
.profile-stats {
  display: flex;
  gap: 30px;
  margin-bottom: 40px;
}
.stat-item {
  text-align: center;
  padding: 20px;
  background: rgba(255,255,255,0.05);
  border-radius: 15px;
  min-width: 100px;
}
.stat-value {
  display: block;
  font-size: 2rem;
  font-weight: bold;
  color: #667eea;
}
.stat-label {
  font-size: 12px;
  color: rgba(255,255,255,0.6);
}
.logout-btn {
  padding: 15px 40px;
  border: none;
  border-radius: 12px;
  background: rgba(231, 76, 60, 0.2);
  color: #e74c3c;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.3s;
}
.logout-btn:hover {
  background: rgba(231, 76, 60, 0.3);
}
/* === RESPONSIVE DESKTOP === */
@media (min-width: 768px) {
  /* Centrage amélioré du formulaire de connexion sur desktop */
  #auth-section {
    padding: 40px;
  }
  .auth-container {
    margin: 0 auto;
    max-width: 450px;
    padding: 50px 40px;
  }
  /* Cacher les dots de swipe sur desktop */
  .swipe-dots {
    display: none;
  }
  /* Cacher les indicateurs d'onglets sur desktop */
  .tab-swipe-indicators {
    display: none;
  }
  /* Afficher tous les jeux côte à côte sur desktop */
  .swipe-wrapper {
    flex-wrap: wrap;
    justify-content: center;
    transform: translateX(0) !important;
  }
  .game-slide {
    flex: 0 0 33.33%;
    min-width: 300px;
  }
  #tab-nav {
    max-width: 500px;
    margin: 0 auto;
    border-radius: 25px;
    margin-top: 10px;
  }
  .swipe-container {
    max-width: 1200px;
    margin: 0 auto;
  }
  .leaderboard-scroll {
    max-width: 600px;
    margin: 0 auto;
    max-height: 500px;
  }
  .profile-stats {
    gap: 50px;
  }
  .stat-item {
    min-width: 150px;
  }
}
/* Petit écran */
@media (max-width: 480px) {
  /* Auth container sur très petit écran */
  #auth-section {
    padding: 15px;
    min-height: auto;
  }
  .auth-container {
    max-width: 100%;
    padding: 25px 15px;
    border-radius: 15px;
  }
  .auth-container h1 {
    font-size: 2rem;
    margin-bottom: 20px;
    letter-spacing: 2px;
    background-size: 250px 250px;
  }
  .auth-container h2 {
    font-size: 1.1rem;
    margin-bottom: 15px;
  }
  .auth-container input {
    padding: 12px;
    font-size: 16px;
    margin: 8px 0;
  }
  .auth-container button {
    padding: 12px;
    font-size: 14px;
    margin-top: 12px;
  }
  .auth-container p {
    margin-top: 15px;
    font-size: 13px;
  }
  
  /* Header sur mobile */
  #main-header {
    padding: 12px 10px;
    min-height: auto;
  }
  #main-header h1 {
    font-size: 1.3rem;
    letter-spacing: 2px;
    background-size: 200px 200px;
    margin: 0;
  }
  .header-right {
    gap: 5px;
    right: 10px;
  }
  .admin-btn {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }
  #user-avatar {
    width: 32px;
    height: 32px;
  }
  #user-username {
    display: none;
  }
  
  /* Tabs navigation - masquer social et adapter */
  #tab-nav {
    top: 60px;
    padding: 8px 0;
    display: flex;
    justify-content: space-around;
  }
  .tab-btn {
    padding: 10px 8px;
    font-size: 12px;
    flex: 1;
    text-align: center;
  }
  /* Masquer le bouton social sur mobile */
  .tab-btn[data-tab="social"] {
    display: none;
  }
  
  /* Masquer les indicateurs de swipe */
  .tab-swipe-indicators {
    display: none;
  }
  
  /* Games section */
  .game-card-mobile {
    padding: 25px 15px;
    max-width: 100%;
    min-height: 400px;
    border-radius: 15px;
  }
  .game-icon {
    font-size: 3rem;
    margin-bottom: 15px;
  }
  .game-icon img {
    width: 3.5rem;
    height: 3.5rem;
  }
  .game-card-mobile h3 {
    font-size: 1.2rem;
    padding: 6px 15px;
    margin: 0 0 10px 0;
  }
  .game-card-mobile p {
    font-size: 12px;
    margin-bottom: 15px;
    padding: 8px 12px;
  }
  .play-btn-mobile {
    padding: 12px 25px;
    font-size: 14px;
  }
  
  /* Swipe dots */
  .swipe-dots {
    gap: 10px;
    padding: 15px 0;
  }
  .dot {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
  
  /* Profil */
  .profile-container {
    padding: 15px;
  }
  #profile-avatar-large {
    width: 100px;
    height: 100px;
  }
  #profile-username {
    font-size: 1.2rem;
  }
  .profile-stats {
    gap: 15px;
    margin-bottom: 25px;
  }
  .stat-item {
    padding: 12px;
    min-width: 70px;
  }
  .stat-value {
    font-size: 1.5rem;
  }
  .stat-label {
    font-size: 11px;
  }
  
  /* Tab content padding */
  .tab-content {
    padding: 15px;
  }
}
/* === BOUTON COLLECTION LEADERBOARD === */
.lb-collection-btn {
  padding: 6px 12px;
  background: linear-gradient(45deg, #9b59b6, #8e44ad);
  border: none;
  border-radius: 15px;
  color: white;
  font-size: 0.8rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
}
.lb-collection-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(155, 89, 182, 0.4);
}
/* === COLLECTION MODAL === */
.collection-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
}
.collection-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
}
.collection-modal-content {
  position: relative;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border-radius: 20px;
  padding: 20px;
  max-width: 90%;
  max-height: 85vh;
  width: 600px;
  overflow-y: auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  animation: modalPop 0.3s ease;
}
@keyframes modalPop {
  0% { transform: scale(0.8); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
.collection-modal-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.collection-modal-header h2 {
  margin: 0;
  font-size: 1.3rem;
  flex: 1;
}
.collection-count {
  background: rgba(255, 215, 0, 0.2);
  padding: 5px 12px;
  border-radius: 15px;
  font-size: 0.9rem;
  color: #ffd700;
}
.collection-modal-close {
  background: rgba(255, 107, 107, 0.3);
  border: none;
  color: white;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s;
}
.collection-modal-close:hover {
  background: rgba(255, 107, 107, 0.5);
}
.collection-modal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 10px;
}
.collection-modal-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 10px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
}
.collection-modal-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}
.collection-modal-card.locked {
  opacity: 0.5;
}
.collection-modal-card .card-img {
  width: 80px;
  height: 100px;
  background-size: cover;
  background-position: center;
  border-radius: 8px;
  margin: 0 auto 8px;
}
.collection-modal-card .card-img.locked-img {
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}
.collection-modal-card .card-name {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.8);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.collection-modal-card .card-count {
  position: absolute;
  top: 5px;
  right: 5px;
  background: rgba(255, 215, 0, 0.9);
  color: #333;
  padding: 2px 6px;
  border-radius: 10px;
  font-size: 0.7rem;
  font-weight: bold;
}
/* Couleurs par rareté */
.collection-modal-card.common { border: 2px solid #95a5a6; }
.collection-modal-card.rare { border: 2px solid #3498db; }
.collection-modal-card.epic { border: 2px solid #9b59b6; }
.collection-modal-card.legendary { border: 2px solid #f1c40f; }
/* === COLLECTION CARD VIEWER === */
.collection-card-viewer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1001;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.collection-card-viewer .viewer-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
}
.collection-card-viewer .viewer-content {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
}
.collection-card-viewer .viewer-nav {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  font-size: 3rem;
  padding: 10px 20px;
  cursor: pointer;
  border-radius: 10px;
  transition: all 0.3s;
}
.collection-card-viewer .viewer-nav:hover {
  background: rgba(255, 255, 255, 0.3);
}
.collection-card-viewer .viewer-card {
  width: 200px;
  height: 280px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}
.collection-card-viewer .viewer-card.common { border: 3px solid #95a5a6; }
.collection-card-viewer .viewer-card.rare { border: 3px solid #3498db; }
.collection-card-viewer .viewer-card.epic { border: 3px solid #9b59b6; }
.collection-card-viewer .viewer-card.legendary { border: 3px solid #f1c40f; }
.collection-card-viewer .viewer-card-img {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}
.collection-card-viewer .viewer-card-img.locked-img {
  background: rgba(50, 50, 50, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}
.collection-card-viewer .viewer-info {
  position: relative;
  margin-top: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.collection-card-viewer .viewer-counter {
  font-size: 0.9rem;
  opacity: 0.7;
}
.collection-card-viewer .viewer-name {
  font-size: 1.3rem;
  font-weight: bold;
}
.collection-card-viewer .viewer-rarity {
  font-size: 0.8rem;
  padding: 4px 12px;
  border-radius: 15px;
  display: inline-block;
}
.collection-card-viewer .viewer-rarity.common { background: #95a5a6; }
.collection-card-viewer .viewer-rarity.rare { background: #3498db; }
.collection-card-viewer .viewer-rarity.epic { background: #9b59b6; }
.collection-card-viewer .viewer-rarity.legendary { background: #f1c40f; color: #333; }
.collection-card-viewer .viewer-count {
  background: rgba(255, 215, 0, 0.9);
  color: #333;
  padding: 4px 12px;
  border-radius: 15px;
  font-weight: bold;
}
.collection-card-viewer .viewer-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 107, 107, 0.5);
  border: none;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s;
}
.collection-card-viewer .viewer-close:hover {
  background: rgba(255, 107, 107, 0.8);
}
/* Responsive Collection Modal */
@media (max-width: 768px) {
  .collection-modal-content {
    padding: 20px;
    width: 90%;
    max-height: 85vh;
  }
  .collection-modal-header {
    margin-bottom: 15px;
  }
  .collection-modal-header h2 {
    font-size: 1.3rem;
  }
  .collection-modal-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
  }
  .collection-modal-card .card-img {
    width: 70px;
    height: 90px;
  }
  .collection-modal-card .card-name {
    font-size: 0.65rem;
  }
  .collection-card-viewer .viewer-card {
    width: 180px;
    height: 250px;
  }
  .collection-card-viewer .viewer-nav {
    width: 50px;
    height: 50px;
    font-size: 2.5rem;
  }
  .collection-card-viewer .viewer-close {
    width: 45px;
    height: 45px;
    top: 15px;
    right: 15px;
    font-size: 1.3rem;
  }
  .collection-card-viewer .viewer-name {
    font-size: 1.2rem;
  }
}
@media (max-width: 480px) {
  .collection-modal-content {
    padding: 15px;
    width: 95%;
    max-height: 90vh;
  }
  .collection-modal-header {
    margin-bottom: 10px;
  }
  .collection-modal-header h2 {
    font-size: 1rem;
  }
  .collection-modal-close {
    width: 35px;
    height: 35px;
    font-size: 1.2rem;
  }
  .collection-modal-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
  .collection-modal-card {
    cursor: pointer;
  }
  .collection-modal-card .card-img {
    width: 65px;
    height: 85px;
  }
  .collection-modal-card .card-name {
    font-size: 0.55rem;
    padding: 3px 0;
  }
  .collection-card-viewer {
    padding: 15px;
  }
  .collection-card-viewer .viewer-card {
    width: 160px;
    height: 220px;
  }
  .collection-card-viewer .viewer-nav {
    width: 45px;
    height: 45px;
    font-size: 2rem;
  }
  .collection-card-viewer .viewer-close {
    width: 40px;
    height: 40px;
    top: 10px;
    right: 10px;
    font-size: 1.2rem;
  }
  .collection-card-viewer .viewer-info {
    margin-top: 15px;
    gap: 6px;
  }
  .collection-card-viewer .viewer-counter {
    font-size: 0.75rem;
  }
  .collection-card-viewer .viewer-name {
    font-size: 1rem;
  }
  .collection-card-viewer .viewer-rarity,
  .collection-card-viewer .viewer-count {
    font-size: 0.7rem;
    padding: 3px 10px;
  }
  .collection-card-viewer .viewer-card-img.locked-img {
    font-size: 3rem;
  }
}
@media (max-width: 360px) {
  .collection-modal-content {
    padding: 10px;
    width: 98%;
  }
  .collection-modal-header h2 {
    font-size: 0.9rem;
  }
  .collection-modal-close {
    width: 30px;
    height: 30px;
    font-size: 1rem;
  }
  .collection-modal-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }
  .collection-modal-card .card-img {
    width: 55px;
    height: 72px;
  }
  .collection-modal-card .card-name {
    font-size: 0.5rem;
  }
  .collection-card-viewer .viewer-card {
    width: 140px;
    height: 190px;
  }
  .collection-card-viewer .viewer-nav {
    width: 40px;
    height: 40px;
    font-size: 1.8rem;
  }
  .collection-card-viewer .viewer-close {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }
  .collection-card-viewer .viewer-name {
    font-size: 0.9rem;
  }
  .collection-card-viewer .viewer-card-img.locked-img {
    font-size: 2.5rem;
  }
}
/* === SECTION SOCIAL === */
.social-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}
.social-header h2 {
  font-size: 1.6rem;
  background: linear-gradient(135deg, #ff6b9d, #feca57, #48dbfb);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
  font-weight: 700;
}
.active-users-widget {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(72, 219, 251, 0.15);
  border: 2px solid rgba(72, 219, 251, 0.3);
  color: #48dbfb;
  padding: 10px 18px;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 600;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.active-users-widget::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(72, 219, 251, 0.2) 0%, transparent 70%);
  animation: rotate 10s linear infinite;
}
@keyframes rotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.active-users-widget:hover {
  background: rgba(72, 219, 251, 0.25);
  border-color: rgba(72, 219, 251, 0.5);
  transform: scale(1.05);
  box-shadow: 0 5px 20px rgba(72, 219, 251, 0.3);
}
.online-dot {
  width: 8px;
  height: 8px;
  background: #2ecc71;
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.2);
  }
}
.social-tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 25px;
  overflow-x: auto;
  padding-bottom: 10px;
}
.social-game-tab {
  min-width: 55px;
  height: 55px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  font-size: 1.8rem;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}
.social-game-tab:hover {
  transform: translateY(-3px) scale(1.05);
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}
.social-game-tab.active {
  background: linear-gradient(135deg, #ff6b9d, #feca57);
  border-color: transparent;
  transform: scale(1.15);
  box-shadow: 0 8px 25px rgba(255, 107, 157, 0.4);
}
.social-content {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 18px;
  padding: 25px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.comment-form {
  margin-bottom: 30px;
  padding: 20px;
  background: linear-gradient(135deg, rgba(255, 107, 157, 0.08), rgba(72, 219, 251, 0.08));
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.comment-form textarea {
  width: 100%;
  min-height: 90px;
  padding: 15px;
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  resize: vertical;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.05);
  color: white;
  backdrop-filter: blur(10px);
}
.comment-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.5);
}
.comment-form textarea:focus {
  outline: none;
  border-color: rgba(255, 107, 157, 0.5);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 20px rgba(255, 107, 157, 0.2);
}
.comment-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
}
.char-count {
  font-size: 0.85rem;
  color: #7f8c8d;
}
#post-comment-btn {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  border: none;
  padding: 10px 25px;
  border-radius: 20px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
#post-comment-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}
#post-comment-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}
.comments-list {
  max-height: 500px;
  overflow-y: auto;
}
.comment-item {
  background: rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 15px;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}
.comment-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s ease;
}
.comment-item:hover::before {
  left: 100%;
}
.comment-item:hover {
  transform: translateX(6px) translateY(-2px);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 107, 157, 0.3);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}
.comment-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.comment-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255, 107, 157, 0.4);
  transition: transform 0.2s;
}
.comment-item:hover .comment-avatar {
  transform: scale(1.1);
  border-color: rgba(255, 107, 157, 0.7);
}
.comment-user-info {
  flex: 1;
}
.comment-username {
  font-weight: 700;
  background: linear-gradient(135deg, #ff6b9d, #feca57);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 0.95rem;
}
.comment-date {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
}
.comment-actions-btn {
  display: flex;
  gap: 8px;
}
.edit-comment-btn,
.delete-comment-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  padding: 5px;
  transition: transform 0.2s;
}
.edit-comment-btn:hover,
.delete-comment-btn:hover {
  transform: scale(1.2);
}
.edit-comment-btn {
  color: #3498db;
}
.delete-comment-btn {
  color: #e74c3c;
}
.comment-text {
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}
.no-comments {
  text-align: center;
  padding: 40px;
  color: #95a5a6;
  font-style: italic;
}
.loading {
  text-align: center;
  padding: 40px;
  color: #95a5a6;
}
/* Responsive pour la section sociale */
@media (max-width: 768px) {
  .social-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .social-header h2 {
    font-size: 1.3rem;
  }
  .active-users-widget {
    font-size: 0.8rem;
    padding: 6px 12px;
  }
  .social-game-tab {
    min-width: 45px;
    height: 45px;
    font-size: 1.5rem;
  }
  .social-content {
    padding: 15px;
  }
  .comment-form textarea {
    min-height: 60px;
    font-size: 0.9rem;
  }
  .comment-item {
    padding: 12px;
  }
  .comment-avatar {
    width: 30px;
    height: 30px;
  }
}
/* === OVERLAY POUR LES JEUX EN ATTENTE === */
.game-status-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}
.overlay-content {
  text-align: center;
  padding: 20px;
  animation: fadeInScale 0.5s ease;
}
@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* Keyframes pour les animations de swipe des onglets */
@keyframes slideInFromRight {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes slideOutToLeft {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(-100%);
  }
}
@keyframes slideInFromLeft {
  from {
    opacity: 0;
    transform: translateX(-100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes slideOutToRight {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(100%);
  }
}
.overlay-icon {
  font-size: 4rem;
  margin-bottom: 15px;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}
.overlay-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: #f1c40f;
  margin-bottom: 10px;
  text-shadow: 0 2px 10px rgba(241, 196, 15, 0.5);
}
.overlay-date {
  font-size: 1rem;
  color: #ecf0f1;
  opacity: 0.9;
  background: rgba(255, 255, 255, 0.1);
  padding: 8px 15px;
  border-radius: 20px;
  display: inline-block;
  margin-top: 10px;
}
/* === BOULE CLICKABLE === */
.falling-ball {
  position: fixed;
  top: 0;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  pointer-events: none;
  z-index: 5000;
  animation: ballFall 2.5s ease-in forwards;
}
@keyframes ballFall {
  0% {
    opacity: 1;
    transform: translate(0, 0) rotateZ(0deg);
  }
  15% {
    transform: translate(80px, 100px) rotateZ(45deg);
  }
  30% {
    transform: translate(-60px, 200px) rotateZ(90deg);
  }
  45% {
    transform: translate(120px, 300px) rotateZ(135deg);
  }
  60% {
    transform: translate(-100px, 400px) rotateZ(180deg);
  }
  75% {
    transform: translate(70px, 500px) rotateZ(270deg);
  }
  90% {
    opacity: 1;
    transform: translate(-80px, 650px) rotateZ(330deg);
  }
  100% {
    opacity: 0;
    transform: translate(0, 100vh) rotateZ(360deg);
  }
}
/* === SHOP STYLES === */
.shop-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding: 0 10px;
}

.shop-header h2 {
  font-size: 1.8em;
  background: linear-gradient(45deg, #ffd700, #ffed4e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.shop-info {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  padding: 20px;
  margin-bottom: 30px;
  border: 2px solid rgba(255, 215, 0, 0.3);
}

.shop-info h3 {
  font-size: 1.3em;
  margin-bottom: 10px;
  color: #ffd700;
}

.shop-info p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 15px;
}

.pack-counters {
  display: flex;
  gap: 15px;
  margin-top: 15px;
}

.counter-item {
  flex: 1;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 15px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.counter-icon {
  font-size: 2em;
}

.counter-info {
  display: flex;
  flex-direction: column;
}

.counter-label {
  font-size: 0.85em;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 5px;
}

.counter-value {
  font-size: 1.5em;
  font-weight: bold;
  color: #ffd700;
}

.shop-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  padding: 0 10px;
}

.shop-item {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  border-radius: 20px;
  padding: 25px;
  text-align: center;
  border: 2px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  position: relative;
}

.shop-item:hover:not(.disabled) {
  transform: translateY(-5px);
  border-color: rgba(255, 215, 0, 0.5);
  box-shadow: 0 10px 30px rgba(255, 215, 0, 0.2);
}

.shop-item.featured {
  border-color: rgba(255, 215, 0, 0.6);
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 237, 78, 0.1));
}

.shop-item.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.shop-item .badge {
  position: absolute;
  top: -10px;
  right: 20px;
  background: linear-gradient(135deg, #ff6b6b, #ff8e53);
  color: white;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.75em;
  font-weight: bold;
  box-shadow: 0 4px 10px rgba(255, 107, 107, 0.4);
}

.shop-item .item-icon {
  font-size: 3.5em;
  margin-bottom: 15px;
}

.shop-item h3 {
  font-size: 1.4em;
  margin-bottom: 10px;
  color: #ffd700;
}

.shop-item p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 20px;
  font-size: 0.9em;
}

.item-price {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 1.5em;
  font-weight: bold;
  color: #ffd700;
}

.original-price {
  font-size: 0.7em;
  color: rgba(255, 255, 255, 0.4);
  text-decoration: line-through;
  margin-left: 5px;
}

.buy-btn {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, #ffd700, #ffed4e);
  color: #000;
  border: none;
  border-radius: 10px;
  font-size: 1em;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.buy-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 20px rgba(255, 215, 0, 0.4);
}

.buy-btn:active {
  transform: scale(0.95);
}

.coming-soon {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  padding: 12px;
  border-radius: 10px;
  font-weight: bold;
  letter-spacing: 1px;
}

@media (max-width: 768px) {
  .shop-items {
    grid-template-columns: 1fr;
  }
  
  .pack-counters {
    flex-direction: column;
  }
}
