:root{
  --bg:#0f172a;
  --card:rgba(30,41,59,.95);
  --ink:#f1f5f9;
  --muted:#94a3b8;
  --shadow:0 10px 30px rgba(0,0,0,.5);
  --shadow-lg:0 20px 50px rgba(0,0,0,.7);
  --radius:18px;

  --green:#22c55e;
  --red:#ef4444;
  --amber:#f59e0b;
  --blue:#3b82f6;
  --purple:#a855f7;

  --potA:#c2410c; --potB:#7c2d12;
  --rimA:#fb923c; --rimB:#c2410c;
  --soilA:#3f2a1a; --soilB:#2a1c12;
  
  /* Nouvelles variables pour les animations */
  --glow-green: 0 0 30px rgba(34,197,94,.6), 0 0 60px rgba(34,197,94,.3);
  --glow-blue: 0 0 30px rgba(59,130,246,.6), 0 0 60px rgba(59,130,246,.3);
  --glow-purple: 0 0 30px rgba(168,85,247,.6), 0 0 60px rgba(168,85,247,.3);
  --glow-gold: 0 0 30px rgba(251,191,36,.6), 0 0 60px rgba(251,191,36,.3);
}

*{box-sizing:border-box}

/* FIX: Tous les boutons et éléments cliquables au-dessus des décorations */
button, .btn, a, input, select, textarea, [onclick] {
  position: relative;
  z-index: 5;
}

/* FIX: Tous les pseudo-éléments décoratifs ne bloquent pas les clics */
.btn::before, .btn::after,
.card::before, .card::after,
.modal::before, .modal::after,
.topbar::before, .topbar::after,
.statBox::before, .statBox::after,
.shopItem::before, .shopItem::after,
.tab::before, .tab::after,
.msgContainer::before,
.farmItem::before,
.starBtn::before,
.wheel-spin-btn::before,
.potBtn::before,
.pot::before, .pot::after,
.plant::before, .plant::after,
.weatherBox::after {
  pointer-events: none !important;
  z-index: -1;
}

html {
  scroll-behavior: smooth;
}
body{
  margin:0;
  font-family:'Segoe UI',system-ui,-apple-system,Roboto,Arial,sans-serif;
  background:var(--bg);
  color:var(--ink);
  overflow-x:hidden;
  line-height:1.6;
  position:relative;
}

/* Animation de fond dynamique */
body::before {
  content:"";
  position:fixed;
  top:0; left:0; right:0; bottom:0;
  background: 
    radial-gradient(circle at 20% 30%, rgba(34,197,94,.08), transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(59,130,246,.08), transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(168,85,247,.05), transparent 60%);
  pointer-events:none;
  z-index:0;
  animation: bgPulse 8s ease-in-out infinite;
}

body::after {
  content:"";
  position:fixed;
  top:0; left:0; right:0; bottom:0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  opacity: 0.02;
  pointer-events:none;
  z-index:0;
}

@keyframes bgPulse {
  0%, 100% { opacity: 0.8; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.02); }
}

/* Themes météo */
body.theme-sun{ 
  --bg:#1a1625;
  background: radial-gradient(circle at 50% 0%, rgba(251,191,36,.1), transparent 60%), #1a1625;
}
body.theme-rain{ 
  --bg:#0f1828;
  background: radial-gradient(circle at 50% 0%, rgba(59,130,246,.1), transparent 60%), #0f1828;
}
body.theme-cloudy{ 
  --bg:#1a1a2e;
  background: radial-gradient(circle at 50% 0%, rgba(148,163,184,.15), transparent 60%), #1a1a2e;
}
body.theme-wind{ 
  --bg:#0f1f1a;
  background: radial-gradient(circle at 50% 0%, rgba(34,197,94,.1), transparent 60%), #0f1f1a;
}
body.theme-frost{ 
  --bg:#0f1820;
  background: radial-gradient(circle at 50% 0%, rgba(125,211,252,.1), transparent 60%), #0f1820;
}
body.theme-storm{ 
  --bg:#18181b;
  background: radial-gradient(circle at 50% 0%, rgba(168,85,247,.1), transparent 60%), #18181b;
}
body.theme-rainbow{ 
  --bg:#1a1625;
  background: 
    radial-gradient(circle at 20% 20%, rgba(251,191,36,.08), transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(168,85,247,.08), transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(34,197,94,.06), transparent 50%),
    #1a1625;
}

.topbar{
  position:sticky; 
  top:0; 
  z-index:20;
  display:flex; 
  align-items:center; 
  justify-content:space-between;
  padding:10px 20px;
  background: linear-gradient(135deg, #0a0a15 0%, #1a1a2e 40%, #16213e 70%, #0f3460 100%);
  border-bottom:2px solid transparent;
  border-image: linear-gradient(90deg, #22c55e 0%, #3b82f6 50%, #a855f7 100%) 1;
  box-shadow: 
    0 8px 20px rgba(0,0,0,.5), 
    inset 0 1px 0 rgba(255,255,255,.15),
    0 0 40px rgba(34,197,94,.15);
  backdrop-filter: blur(15px);
  position: relative;
  overflow: hidden;
}

.topbar::before {
  content:"";
  position:absolute;
  top:0; left:0; right:0; bottom:0;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(34,197,94,.08) 25%,
    rgba(59,130,246,.08) 50%,
    rgba(168,85,247,.08) 75%,
    transparent 100%);
  animation: shimmer 4s infinite ease-in-out;
  pointer-events:none;
}

.topbar::after {
  content:"";
  position:absolute;
  bottom:0; left:0; right:0;
  height:2px;
  background: linear-gradient(90deg, transparent, #22c55e, #3b82f6, #a855f7, transparent);
  opacity:0.6;
  animation: borderFlow 3s linear infinite;
  pointer-events:none;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); opacity:0.3; }
  50% { transform: translateX(100%); opacity:0.8; }
  100% { transform: translateX(200%); opacity:0.3; }
}

@keyframes borderFlow {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.brand{
  display:flex; 
  gap:12px; 
  align-items:center;
  position:relative;
  z-index:1;
}

.logo{
  width: 38px;
  height: 38px;
  animation: logoPulse 2s ease-in-out infinite, logoFloat 3s ease-in-out infinite;
  filter: drop-shadow(0 0 12px rgba(34,197,94,.6));
}

.logo svg {
  width: 100%;
  height: 100%;
}

.title{
  font-weight:900;
  font-size:20px;
  background: linear-gradient(135deg, #22c55e 0%, #3b82f6 50%, #a855f7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  letter-spacing: 1px;
  text-transform: uppercase;
  filter: drop-shadow(0 0 15px rgba(34,197,94,.5)) drop-shadow(0 2px 4px rgba(0,0,0,.5));
  font-family: 'Arial', sans-serif;
  animation: gradientShift 4s ease-in-out infinite;
  position:relative;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.subtitle{
  font-size:11px; 
  color:#a0aec0;
  font-weight:800; 
  letter-spacing: 2px;
  text-transform: uppercase;
  background: linear-gradient(90deg, #22c55e 0%, #3b82f6 33%, #a855f7 66%, #22c55e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 300% 100%;
  animation: subtitleFlow 6s linear infinite;
  filter: drop-shadow(0 0 10px rgba(59,130,246,.4));
}

@keyframes subtitleFlow {
  0% { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}

.topActions{
  display:flex; 
  gap:8px; 
  flex-wrap:wrap;
  position:relative;
  z-index:10;
}

.topActions .btn {
  position: relative;
  z-index: 11;
}

@keyframes logoPulse {
  0%, 100% { 
    transform: scale(1);
    filter: drop-shadow(0 0 15px rgba(34,197,94,.7));
  }
  50% { 
    transform: scale(1.08);
    filter: drop-shadow(0 0 25px rgba(34,197,94,1));
  }
}

@keyframes logoFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(5deg); }
}

@keyframes logoSpin {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(3deg); }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.layout{
  max-width:1600px;
  margin:12px auto;
  padding:0 16px 20px;
  display:grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap:16px;
}

.card{
  background: 
    radial-gradient(circle at 0% 0%, rgba(34,197,94,.08), transparent 50%),
    radial-gradient(circle at 100% 100%, rgba(168,85,247,.08), transparent 50%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(26, 26, 46, 0.95));
  border-radius:20px;
  box-shadow: 
    0 15px 50px rgba(0,0,0,.5), 
    inset 0 1px 0 rgba(255,255,255,.15),
    0 0 40px rgba(34,197,94,.15);
  padding:32px;
  position:relative;
  border:2px solid transparent;
  border-image: linear-gradient(135deg, rgba(34,197,94,.4), rgba(59,130,246,.4), rgba(168,85,247,.4)) 1;
  backdrop-filter: blur(15px);
  overflow: hidden;
}

.layout > .card:first-child {
  padding: 20px;
}

.card::before {
  content:"";
  position:absolute;
  top:0; left:0; right:0; bottom:0;
  background: 
    radial-gradient(circle at 20% 10%, rgba(34,197,94,.12), transparent 40%),
    radial-gradient(circle at 80% 90%, rgba(168,85,247,.12), transparent 40%);
  pointer-events:none;
  animation: cardGlow 4s ease-in-out infinite;
  z-index: -1;
}

.card::after {
  content:"";
  position:absolute;
  top:-2px; left:-2px; right:-2px; bottom:-2px;
  background: linear-gradient(135deg, #22c55e, #3b82f6, #a855f7, #22c55e);
  background-size: 300% 300%;
  border-radius:20px;
  z-index:-1;
  opacity:0.3;
  animation: borderRotate 6s linear infinite;
  filter: blur(8px);
}

@keyframes cardGlow {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 1; }
}

@keyframes borderRotate {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.cardHead{
  display:flex; 
  align-items:center; 
  justify-content:space-between; 
  gap:8px;
  margin-bottom:12px;
  position:relative;
  z-index:1;
  flex-wrap: wrap;
}

.cardHead h2 {
  margin:0;
  font-size:26px;
  font-weight:900;
  background: linear-gradient(135deg, #22c55e, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 2px 10px rgba(34,197,94,.3);
  letter-spacing: 0.5px;
}

.pill{
  font-size:11px;
  padding:8px 14px;
  border-radius:999px;
  background: linear-gradient(135deg, rgba(34,197,94,.3), rgba(34,197,94,.2));
  border:2px solid rgba(34,197,94,.6);
  color:#22c55e;
  font-weight:800;
  text-transform: uppercase;
  letter-spacing:0.6px;
  box-shadow: 
    0 0 20px rgba(34,197,94,.4), 
    inset 0 1px 0 rgba(255,255,255,.25),
    0 4px 12px rgba(34,197,94,.25);
  position:relative;
  z-index:1;
  animation: pillPulse 3s ease-in-out infinite;
}

@keyframes pillPulse {
  0%, 100% { 
    box-shadow: 0 0 20px rgba(34,197,94,.4), inset 0 1px 0 rgba(255,255,255,.25), 0 4px 12px rgba(34,197,94,.25);
  }
  50% { 
    box-shadow: 0 0 30px rgba(34,197,94,.6), inset 0 1px 0 rgba(255,255,255,.35), 0 6px 18px rgba(34,197,94,.35);
  }
}

.statsGrid{
  margin-top:12px;
  display:grid;
  grid-template-columns: repeat(6, 1fr);
  gap:10px;
}
.statBox{
  padding:14px 12px;
  border-radius:16px;
  background: 
    radial-gradient(circle at top right, rgba(34,197,94,.2), transparent 60%),
    linear-gradient(135deg, rgba(15,23,42,.95), rgba(26,26,46,.85));
  border:2px solid rgba(34,197,94,.35);
  transition: all .4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 
    0 8px 20px rgba(34,197,94,.15), 
    inset 0 1px 0 rgba(255,255,255,.1),
    0 0 25px rgba(34,197,94,.08);
  position:relative;
  overflow:hidden;
  cursor:pointer;
}
.statBox::before {
  content:"";
  position:absolute;
  top:-50%; left:-50%; right:-50%; bottom:-50%;
  background: radial-gradient(circle, rgba(34,197,94,.15), transparent 60%);
  animation: statGlow 4s ease-in-out infinite;
  pointer-events:none;
  z-index: -1;
}
.statBox::after {
  content:"";
  position:absolute;
  top:0; left:-100%;
  width:100%; height:100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.1), transparent);
  transition: left .6s ease;
  pointer-events: none;
  z-index: -1;
}
.statBox:hover::after {
  left:100%;
}
.statBox:hover{
  border-color:rgba(34,197,94,.7);
  background: 
    radial-gradient(circle at top right, rgba(34,197,94,.35), transparent 60%),
    linear-gradient(135deg, rgba(15,23,42,1), rgba(26,26,46,.95));
  transform: translateY(-6px) scale(1.04);
  box-shadow: 
    0 16px 40px rgba(34,197,94,.35), 
    inset 0 1px 0 rgba(255,255,255,.2),
    0 0 50px rgba(34,197,94,.25);
}
.statBox .k{
  font-size:11px; 
  color:#86efac;
  font-weight:800;
  text-transform: uppercase;
  letter-spacing:.6px;
  position:relative;
  z-index:1;
  transition: all .3s ease;
}
.statBox:hover .k {
  color:#4ade80;
  text-shadow: 0 0 10px rgba(34,197,94,.5);
}
.statBox .v{
  font-size:28px; 
  font-weight:900;
  margin-top:6px;
  background: linear-gradient(135deg, #22c55e, #4ade80);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 15px rgba(34,197,94,.5));
  position:relative;
  z-index:1;
  letter-spacing:0.5px;
  transition: all .3s ease;
}
.statBox:hover .v {
  filter: drop-shadow(0 0 25px rgba(34,197,94,.8));
  transform: scale(1.05);
}

/* Animation spéciale pour la valeur qui change */
.statBox .v.changed {
  animation: valueChange .5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes valueChange {
  0% { transform: scale(1); }
  30% { transform: scale(1.2); filter: drop-shadow(0 0 30px rgba(34,197,94,1)); }
  100% { transform: scale(1); filter: drop-shadow(0 0 15px rgba(34,197,94,.5)); }
}

@keyframes statGlow {
  0%, 100% { transform: translate(0, 0); opacity: 0.2; }
  50% { transform: translate(20%, 20%); opacity: 0.5; }
}

/* Argent sale stat box */
.statBox.dirty-money-stat {
  background: linear-gradient(135deg, rgba(220,38,38,0.15), rgba(185,28,28,0.1));
  border: 2px solid rgba(239,68,68,0.4);
}

.statBox.dirty-money-stat .k {
  color: #fca5a5;
}

.statBox.dirty-money-stat .v {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.weatherRow{
  margin-top:12px;
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:10px;
}
.weatherBox{
  padding:12px;
  border-radius:12px;
  background: linear-gradient(135deg, rgba(59,130,246,.15), rgba(59,130,246,.08));
  border:2px solid rgba(59,130,246,.4);
  transition: all .3s ease;
  box-shadow: 0 4px 12px rgba(59,130,246,.15), inset 0 1px 0 rgba(255,255,255,.1);
  position:relative;
  overflow:hidden;
}
.weatherBox::after {
  content:"";
  position:absolute;
  top:0; left:-100%; right:100%;
  height:2px;
  background: linear-gradient(90deg, transparent, #3b82f6, transparent);
  animation: weatherScan 2s linear infinite;
  pointer-events: none;
}
.weatherBox:hover{
  border-color:rgba(59,130,246,.6);
  background: linear-gradient(135deg, rgba(59,130,246,.2), rgba(59,130,246,.12));
  box-shadow: 0 8px 20px rgba(59,130,246,.25);
}
.weatherBox .k{
  font-size:11px; 
  color:#93c5fd;
  font-weight:800;
  text-transform: uppercase;
  letter-spacing:.5px;
}
.weatherBox .v2{
  font-size:18px; 
  font-weight:900;
  margin-top:5px;
  color:#3b82f6;
  text-shadow: 0 0 10px rgba(59,130,246,.4);
}

.weatherTimer{
  font-size:12px; 
  font-weight:700;
  margin-top:4px;
  color:rgba(148,163,184,.8);
  letter-spacing:.5px;
}

@keyframes weatherScan {
  0% { left:-100%; right:100%; }
  100% { left:100%; right:-100%; }
}
.bar{
  height:8px;
  border-radius:999px;
  background:rgba(0,0,0,.10);
  overflow:hidden;
  margin-top:8px;
}
.fill{
  height:100%;
  width:0%;
  background:linear-gradient(90deg, rgba(34,197,94,.9), rgba(245,158,11,.9));
  border-radius:999px;
}

.potWrap{
  display:flex; 
  justify-content:center; 
  margin:16px 0 12px;
  perspective: 1200px;
  position:relative;
}

.potWrap::before {
  content:"";
  position:absolute;
  top:50%; left:50%;
  transform:translate(-50%, -50%);
  width:280px; height:280px;
  background: radial-gradient(circle, rgba(34,197,94,.15), transparent 70%);
  border-radius:50%;
  animation: potGlow 3s ease-in-out infinite;
  pointer-events:none;
}

@keyframes potGlow {
  0%, 100% { 
    opacity:0.5; 
    transform:translate(-50%, -50%) scale(1); 
  }
  50% { 
    opacity:0.8; 
    transform:translate(-50%, -50%) scale(1.1); 
  }
}
.potBtn{
  border:none; 
  background:transparent; 
  cursor:pointer; 
  padding:0;
  transition: transform .15s cubic-bezier(0.34, 1.56, 0.64, 1), filter .2s ease;
  position: relative;
}
.potBtn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120%;
  height: 120%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34,197,94,0.2), transparent 70%);
  transform: translate(-50%, -50%) scale(0);
  transition: transform .3s ease;
  pointer-events: none;
}
.potBtn:hover::before {
  transform: translate(-50%, -50%) scale(1);
  animation: potGlow 1.5s ease-in-out infinite;
}
@keyframes potGlow {
  0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
}
.potBtn:active {
  transform: scale(.92);
}
.potBtn:hover {
  filter: drop-shadow(0 10px 25px rgba(34,197,94,.5)) brightness(1.05);
  transform: scale(1.05);
}

/* === FERME VISUELLE === */
.farmSection{
  margin: 12px 0;
  padding: 10px;
  background: linear-gradient(135deg, rgba(30,41,59,.6), rgba(15,23,42,.4));
  border: 1px solid rgba(34,197,94,.2);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,.3);
}

.farmTitle{
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
  text-align: center;
  color: var(--green);
  text-shadow: 0 0 10px rgba(34,197,94,.4);
}

.farmGrid{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 12px;
  max-height: 220px;
  overflow-y: auto;
  padding: 8px;
}

.farmGrid::-webkit-scrollbar {
  width: 8px;
}

.farmGrid::-webkit-scrollbar-track {
  background: rgba(15,23,42,.5);
  border-radius: 4px;
}

.farmGrid::-webkit-scrollbar-thumb {
  background: rgba(34,197,94,.3);
  border-radius: 4px;
}

.farmGrid::-webkit-scrollbar-thumb:hover {
  background: rgba(34,197,94,.5);
}

.farmItem{
  position: relative;
  background: 
    radial-gradient(circle at 50% 0%, rgba(34,197,94,.15), transparent 60%),
    linear-gradient(135deg, rgba(34,197,94,.12), rgba(34,197,94,.04));
  border: 2px solid rgba(34,197,94,.35);
  border-radius: 14px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all .3s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
  min-height: 80px;
  overflow: hidden;
}

.farmItem::before {
  content: "";
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle, rgba(34,197,94,.2), transparent 60%);
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
  z-index: -1;
}

.farmItem:hover::before {
  opacity: 1;
  animation: farmItemGlow 1.5s ease-in-out infinite;
}

@keyframes farmItemGlow {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.1) rotate(180deg); }
}

.farmItem:hover{
  transform: translateY(-6px) scale(1.08);
  border-color: rgba(34,197,94,.7);
  background: 
    radial-gradient(circle at 50% 0%, rgba(34,197,94,.25), transparent 60%),
    linear-gradient(135deg, rgba(34,197,94,.2), rgba(34,197,94,.1));
  box-shadow: 
    0 12px 30px rgba(34,197,94,.35),
    0 0 30px rgba(34,197,94,.2),
    inset 0 1px 0 rgba(255,255,255,.1);
}

.farmItem:active {
  transform: translateY(-2px) scale(1.02);
}

.farmItemIcon{
  font-size: 36px;
  filter: drop-shadow(0 3px 6px rgba(0,0,0,.4));
  transition: all .3s cubic-bezier(0.34, 1.56, 0.64, 1);
  animation: farmIconFloat 3s ease-in-out infinite;
}

@keyframes farmIconFloat {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-4px) rotate(2deg); }
}

.farmItem:hover .farmItemIcon {
  transform: scale(1.2) rotate(-10deg);
  filter: drop-shadow(0 5px 12px rgba(34,197,94,.5));
}

.farmItemCount{
  font-size: 12px;
  font-weight: 800;
  color: rgba(34,197,94,1);
  background: rgba(0,0,0,.4);
  padding: 3px 10px;
  border-radius: 8px;
  border: 1px solid rgba(34,197,94,.3);
  transition: all .2s ease;
}

.farmItem:hover .farmItemCount {
  background: rgba(34,197,94,.2);
  box-shadow: 0 0 15px rgba(34,197,94,.4);
}

.farmItemEffect{
  font-size: 10px;
  font-weight: 700;
  color: rgba(251,191,36,1);
  text-align: center;
  line-height: 1.4;
  max-width: 100%;
  word-wrap: break-word;
  background: rgba(0,0,0,.3);
  padding: 5px 8px;
  border-radius: 8px;
  border: 1px solid rgba(251,191,36,.3);
  transition: all .2s ease;
}

.farmItem:hover .farmItemEffect {
  border-color: rgba(251,191,36,.6);
  box-shadow: 0 0 12px rgba(251,191,36,.3);
}

.farmEmpty{
  grid-column: 1 / -1;
  text-align: center;
  padding: 32px;
  color: var(--muted);
  font-size: 14px;
  font-style: italic;
}

.center{ text-align:center; }
.smallHint{ 
  font-size:12px; 
  color:var(--muted); 
  margin-top:8px;
  font-weight:500;
}

.msgContainer {
  background: 
    radial-gradient(circle at 50% 0%, rgba(34,197,94,.1), transparent 60%),
    linear-gradient(135deg, rgba(15,23,42,.85), rgba(30,41,59,.7));
  border: 2px solid rgba(34,197,94,.35);
  border-radius: 16px;
  padding: 14px 24px;
  margin: 14px 0;
  min-height: 55px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 
    0 6px 20px rgba(0,0,0,.4), 
    inset 0 1px 0 rgba(255,255,255,.12),
    0 0 30px rgba(34,197,94,.1);
  position: relative;
  overflow: hidden;
}

.msgContainer::before {
  content: "";
  position: absolute;
  top: 0; left: -100%;
  width: 200%; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(34,197,94,.6), transparent);
  animation: msgScan 3s linear infinite;
  pointer-events: none;
  z-index: -1;
}

@keyframes msgScan {
  0% { left: -100%; }
  100% { left: 100%; }
}

.msg{
  min-height: auto; 
  text-align: center;
  width: 100%;
}
.msg:empty {
  display: none;
}
.lootMsg{
  font-weight:900; 
  font-size:22px; 
  padding: 10px 0;
  animation: lootMsgPop .4s cubic-bezier(0.34, 1.56, 0.64, 1);
  background: linear-gradient(135deg, #22c55e, #4ade80, #3b82f6);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 15px rgba(34,197,94,.6));
  animation: lootMsgPop .4s cubic-bezier(0.34, 1.56, 0.64, 1), lootGradient 2s ease-in-out infinite;
}

@keyframes lootMsgPop {
  0% { transform: scale(0.5) rotate(-5deg); opacity: 0; }
  60% { transform: scale(1.15) rotate(2deg); opacity: 1; }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

@keyframes lootGradient {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.unlockMsg{
  font-weight:900; 
  font-size: 18px;
  color:#4ade80; 
  padding: 8px 0;
  animation: unlockMsgPop .5s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-shadow: 0 0 20px rgba(34,197,94,.7);
}

@keyframes unlockMsgPop {
  0% { transform: translateY(20px) scale(0.8); opacity: 0; }
  60% { transform: translateY(-5px) scale(1.1); }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}
  text-shadow: 0 0 15px rgba(34,197,94,.6);
}
.toastMsg{
  font-size:13px; 
  color:#94a3b8; 
  padding: 4px 0;
  font-weight: 600;
  animation: toastFadeIn 0.3s ease-out;
}

@keyframes toastFadeIn {
  0% { opacity: 0; transform: translateX(20px); }
  100% { opacity: 1; transform: translateX(0); }
}

@keyframes popIn {
  0% { transform: scale(0.8); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes slideInRight {
  0% { transform: translateX(400px); opacity: 0; }
  100% { transform: translateX(0); opacity: 1; }
}

@keyframes slideOutRight {
  0% { transform: translateX(0); opacity: 1; }
  100% { transform: translateX(400px); opacity: 0; }
}

@keyframes slideInDown {
  0% { transform: translateY(-100px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

@keyframes slideOutUp {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(-100px); opacity: 0; }
}

.h3{
  margin:12px 0 8px;
  font-size:14px;
  font-weight:900;
  color:#e2e8f0;
  background: linear-gradient(135deg, #22c55e, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.history{
  margin:0; 
  padding-left:14px;
  max-height:80px;
  overflow-y:auto;
}
.history li{
  margin:2px 0; 
  font-size:11px; 
  color:#94a3b8;
  line-height:1.5;
}

.miniRow{
  margin-top:12px;
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:10px;
}
.miniCard{
  padding:12px;
  border-radius:12px;
  background: linear-gradient(135deg, rgba(168,85,247,.15), rgba(168,85,247,.08));
  border:2px solid rgba(168,85,247,.35);
  transition: all .3s ease;
  box-shadow: 0 4px 12px rgba(168,85,247,.15), inset 0 1px 0 rgba(255,255,255,.1);
}
.miniCard:hover{
  border-color:rgba(168,85,247,.6);
  background: linear-gradient(135deg, rgba(168,85,247,.2), rgba(168,85,247,.12));
  box-shadow: 0 8px 20px rgba(168,85,247,.25);
}
.miniTitle{
  font-weight:900; 
  font-size:12px; 
  margin-bottom:6px;
  color:#c084fc;
  text-transform: uppercase;
  letter-spacing:.4px;
  text-shadow: 0 0 8px rgba(168,85,247,.4);
}
.miniLine{
  font-size:11px; 
  color:#94a3b8; 
  margin:4px 0;
  line-height:1.5;
}
.miniLine b {
  color:#e2e8f0;
  font-weight:700;
}
.buffList{
  display:flex; 
  flex-direction:column; 
  gap:6px;
}
.buffRow{
  display:flex; 
  justify-content:space-between; 
  align-items:center;
  padding:9px 12px;
  border-radius:12px;
  background: linear-gradient(135deg, rgba(34,197,94,.12), rgba(34,197,94,.06));
  border:2px solid rgba(34,197,94,.25);
  font-size:12px;
  font-weight:600;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}
.buffRow span:first-child { color:#e2e8f0; }
.buffRow .t{
  color:#22c55e; 
  font-weight:800;
  background:rgba(34,197,94,.2);
  padding:3px 8px;
  border-radius:6px;
  border:1px solid rgba(34,197,94,.3);
  box-shadow: 0 0 8px rgba(34,197,94,.2);
}
.dim{opacity:.6}

/* Buttons */
.btn{
  border:none;
  border-radius:14px;
  padding:12px 20px;
  cursor:pointer;
  background:linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color:white;
  font-weight:900;
  font-size:14px;
  transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    0 6px 18px rgba(34,197,94,.5), 
    inset 0 1px 0 rgba(255,255,255,.3),
    0 0 20px rgba(34,197,94,.3);
  border:2px solid rgba(34,197,94,.6);
  text-shadow: 0 2px 4px rgba(0,0,0,.4);
  letter-spacing: 0.5px;
  position:relative;
  overflow:hidden;
  text-transform: uppercase;
}
.btn::before {
  content:"";
  position:absolute;
  top:0; left:-100%;
  width:100%; height:100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.4), transparent);
  transition: left .6s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  z-index: -1;
}
.btn::after {
  content:"";
  position:absolute;
  inset:0;
  background: radial-gradient(circle at center, rgba(255,255,255,.2), transparent 70%);
  pointer-events: none;
  opacity:0;
  transition: opacity .3s ease;
  z-index: -1;
}
.btn:hover:not(:disabled)::before {
  left:100%;
}
.btn:hover:not(:disabled)::after {
  opacity:1;
  animation: btnPulse 1s ease-in-out infinite;
}
.btn:hover:not(:disabled){
  transform: translateY(-4px) scale(1.03);
  box-shadow: 
    0 12px 40px rgba(34,197,94,.6), 
    inset 0 1px 0 rgba(255,255,255,.4),
    0 0 50px rgba(34,197,94,.4),
    0 0 80px rgba(34,197,94,.2);
  background:linear-gradient(135deg, #16a34a 0%, #22c55e 100%);
  filter: brightness(1.1);
}
.btn:active:not(:disabled){
  transform: translateY(-1px) scale(0.98);
  box-shadow: 0 4px 12px rgba(34,197,94,.4);
  filter: brightness(0.95);
}
@keyframes btnPulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.5); opacity: 0; }
}
.btn.small{
  padding:7px 12px; 
  font-size:12px;
  box-shadow: 0 2px 8px rgba(34,197,94,.25);
}
.btn.danger{
  background:linear-gradient(135deg, #ef4444, #dc2626);
  box-shadow: 0 4px 14px rgba(239,68,68,.4), inset 0 1px 0 rgba(255,255,255,.2);
  border-color: rgba(239,68,68,.6);
}
.btn.danger:hover:not(:disabled){
  box-shadow: 0 8px 30px rgba(239,68,68,.6), 0 0 50px rgba(239,68,68,.3);
  background:linear-gradient(135deg, #dc2626, #ef4444);
}
.btn.ghost{
  background:linear-gradient(135deg, rgba(34,197,94,.15), rgba(34,197,94,.08));
  border:2px solid rgba(34,197,94,.4);
  color:#22c55e;
  box-shadow: 0 2px 8px rgba(34,197,94,.15);
  text-shadow: 0 0 10px rgba(34,197,94,.3);
}
.btn.ghost:hover:not(:disabled){
  background:linear-gradient(135deg, rgba(34,197,94,.3), rgba(34,197,94,.2));
  border-color:rgba(34,197,94,.8);
  box-shadow: 0 6px 20px rgba(34,197,94,.35), 0 0 30px rgba(34,197,94,.2);
  color:#4ade80;
  text-shadow: 0 0 15px rgba(34,197,94,.5);
}
.btn:disabled{opacity:.5; cursor:not-allowed; transform: none !important; filter: grayscale(50%);}

/* Animation de bouton spéciale */
.btn.pulse-anim {
  animation: buttonPulseSpecial 2s ease-in-out infinite;
}
@keyframes buttonPulseSpecial {
  0%, 100% { box-shadow: 0 6px 18px rgba(34,197,94,.5), 0 0 20px rgba(34,197,94,.3); }
  50% { box-shadow: 0 8px 25px rgba(34,197,94,.7), 0 0 40px rgba(34,197,94,.5); }
}

/* POT + PLANTE */
.pot{
  width:200px; 
  height:200px;
  position:relative;
  display:grid; 
  place-items:center;
  user-select:none;
  overflow:visible;
  transform: scale(1);
  transform-origin: center center;
  margin-top: 30px;
}
.pot::before{
  content:"";
  position:absolute;
  left:50%; 
  bottom:14px;
  width:180px; 
  height:120px;
  transform:translateX(-50%);
  border-radius:20px 20px 36px 36px;
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,.16), transparent 44%),
    linear-gradient(180deg, var(--potA), var(--potB));
  box-shadow:0 20px 34px rgba(0,0,0,.18);
  border:1px solid rgba(255,255,255,.12);
  pointer-events: none;
}
.pot::after{
  content:"";
  position:absolute;
  left:50%; bottom:118px;
  width:196px; height:26px;
  transform:translateX(-50%);
  border-radius:999px;
  background:
    radial-gradient(circle at 30% 40%, rgba(255,255,255,.22), transparent 56%),
    linear-gradient(180deg, var(--rimA), var(--rimB));
  box-shadow:0 10px 18px rgba(0,0,0,.10);
  border:1px solid rgba(255,255,255,.10);
  pointer-events: none;
}
.soil{
  position:absolute;
  left:50%; bottom:108px;
  width:158px; height:34px;
  transform:translateX(-50%);
  border-radius:999px;
  background:
    radial-gradient(circle at 50% 35%, rgba(255,255,255,.08), transparent 55%),
    linear-gradient(180deg, var(--soilA), var(--soilB));
  border:1px solid rgb(255, 255, 255);
  z-index: -2;
}
.plant{
  position:absolute;
  left:50%;
  bottom:116px;
  width:128px;
  height:128px;
  transform:translateX(-50%);
  transform-origin:50% 100%;
  animation: plantIdle 2.8s ease-in-out infinite;
  filter: drop-shadow(0 5px 15px rgba(34,197,94,.3));
}
.plant::before{
  content:"";
  position:absolute;
  left:50%; bottom:6px;
  width:14px; height:78px;
  transform:translateX(-50%);
  border-radius:999px;
  background:linear-gradient(#22c55e,#15803d);
  box-shadow: 0 0 20px rgba(34,197,94,.4);
  pointer-events: none;
  z-index: -1;
}
.plant::after{
  content:"";
  position:absolute;
  left:50%; bottom:26px;
  width:108px; height:56px;
  transform:translateX(-50%);
  background:
    radial-gradient(ellipse at 25% 60%, rgba(34,197,94,.96) 0 40%, transparent 41%),
    radial-gradient(ellipse at 75% 55%, rgba(22,163,74,.94) 0 40%, transparent 41%);
  filter: drop-shadow(0 10px 16px rgba(0,0,0,.10)) drop-shadow(0 0 20px rgba(34,197,94,.3));
  pointer-events: none;
}
.plant .flower{
  position:absolute;
  left:50%;
  bottom:62px;
  width:62px;
  height:62px;
  transform:translateX(-50%);
  border-radius:999px;
  background:
    radial-gradient(circle at 50% 50%, #fbbf24 0 18%, transparent 19%),
    conic-gradient(from 0deg,
      #fb7185 0 20deg, transparent 20deg 40deg,
      #fb7185 40deg 60deg, transparent 60deg 80deg,
      #fb7185 80deg 100deg, transparent 100deg 120deg,
      #fb7185 120deg 140deg, transparent 140deg 160deg,
      #fb7185 160deg 180deg, transparent 180deg 200deg,
      #fb7185 200deg 220deg, transparent 220deg 240deg,
      #fb7185 240deg 260deg, transparent 260deg 280deg,
      #fb7185 280deg 300deg, transparent 300deg 320deg,
      #fb7185 320deg 340deg, transparent 340deg 360deg
    );
  filter: drop-shadow(0 12px 16px rgba(244,63,94,.18)) drop-shadow(0 0 25px rgba(251,191,36,.4));
  animation: flowerGlow 2s ease-in-out infinite, flowerRotate 20s linear infinite;
}
@keyframes flowerGlow {
  0%, 100% { filter: drop-shadow(0 12px 16px rgba(244,63,94,.18)) drop-shadow(0 0 25px rgba(251,191,36,.4)); }
  50% { filter: drop-shadow(0 12px 16px rgba(244,63,94,.3)) drop-shadow(0 0 40px rgba(251,191,36,.6)); }
}
@keyframes flowerRotate {
  0% { transform: translateX(-50%) rotate(0deg); }
  100% { transform: translateX(-50%) rotate(360deg); }
}
@keyframes plantIdle{
  0%,100%{ transform:translateX(-50%) rotate(-2deg) scale(1); }
  50%{ transform:translateX(-50%) rotate(2deg) scale(1.02); }
}
.potBtn:active .pot{ transform: scale(.96); }
.pot{ transition: transform .1s cubic-bezier(0.4, 0, 0.2, 1); }
.pot.grow .plant{ animation: plantPop .15s cubic-bezier(0.34, 1.56, 0.64, 1) 1; }
@keyframes plantPop{
  0%{ transform:translateX(-50%) scale(1) rotate(0deg); }
  40%{ transform:translateX(-50%) scale(1.15) rotate(-3deg); }
  70%{ transform:translateX(-50%) scale(0.95) rotate(2deg); }
  100%{ transform:translateX(-50%) scale(1) rotate(0deg); }
}

/* Animation de clic sur le pot */
.pot-click {
  animation: potClickRipple .3s ease-out;
}
@keyframes potClickRipple {
  0% { filter: brightness(1) drop-shadow(0 0 0 rgba(34,197,94,0)); }
  50% { filter: brightness(1.3) drop-shadow(0 0 40px rgba(34,197,94,.8)); }
  100% { filter: brightness(1) drop-shadow(0 0 0 rgba(34,197,94,0)); }
}

/* SHOP (scroll interne) */
.shop{
  height: calc(100vh - 100px);
  overflow:hidden;
  display:flex;
  flex-direction:column;
  background: linear-gradient(135deg, rgba(15,23,42,.98), rgba(22,33,62,.98));
  border-radius:16px;
  border:2px solid rgba(34,197,94,.25);
  box-shadow: 0 10px 30px rgba(0,0,0,.4);
  backdrop-filter: blur(10px);
  position:relative;
  padding: 0;
}

.shopSticky{
  position:sticky; 
  top:0; 
  z-index:10;
  background:rgba(22,33,62,.95);
  backdrop-filter: blur(12px);
  padding:8px 10px;
  border-bottom:2px solid rgba(34,197,94,.2);
  box-shadow: 0 4px 12px rgba(0,0,0,.3);
}
.shopSticky.compact{
  padding:6px 8px;
}
.shopHeader{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:4px;
}
.shopHeader h2{
  margin:0;
  font-size:14px;
}
.shopOptions{
  padding:8px 0 4px;
  border-top:1px solid rgba(34,197,94,.2);
  margin-top:8px;
}
.shopOptions.hidden{
  display:none;
}
.tabs.compact{
  margin-top:6px;
  padding:4px;
  gap:4px;
}
.tabs.compact .tab{
  padding:6px 10px;
  font-size:11px;
  min-width:auto;
}
.row.compact{
  margin-top:6px;
  gap:4px;
}
.input.compact, .select.compact{
  padding:6px 10px;
  font-size:12px;
}
.chip{
  padding:6px 10px;
  font-size:11px;
}
.select.compact{
  width:auto;
  flex:1;
  max-width:100px;
}
.shopList{
  overflow:auto;
  padding:0 12px 10px;
  margin-top:4px;
  flex:1;
}
.input, .select{
  width:100%;
  padding:11px 14px;
  border-radius:12px;
  border:2px solid rgba(34,197,94,.3);
  outline:none;
  background:rgba(15,23,42,.8);
  font-family: inherit;
  font-size:14px;
  transition: all .2s ease;
  color:#e2e8f0;
  box-shadow: inset 0 2px 4px rgba(0,0,0,.3);
}
.input:focus, .select:focus{
  border-color:rgba(34,197,94,.6);
  background:rgba(15,23,42,.95);
  box-shadow: 0 0 0 3px rgba(34,197,94,.15), inset 0 2px 4px rgba(0,0,0,.3);
}
.input::placeholder {
  color:#64748b;
}
.row{
  display:flex; 
  gap:8px; 
  flex-wrap:wrap; 
  margin-top:10px;
}
.chip{
  padding:9px 14px;
  border-radius:999px;
  border:2px solid rgba(34,197,94,.3);
  background:linear-gradient(135deg, rgba(34,197,94,.1), rgba(34,197,94,.05));
  cursor:pointer;
  font-size:12px;
  font-weight:700;
  transition: all .2s ease;
  color:#86efac;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}
.chip:hover{
  border-color:rgba(34,197,94,.5);
  background:linear-gradient(135deg, rgba(34,197,94,.2), rgba(34,197,94,.1));
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(34,197,94,.2);
}
.chip.active{
  border-color: rgba(34,197,94,.6);
  background: linear-gradient(135deg, rgba(34,197,94,.3), rgba(34,197,94,.2));
  font-weight:900;
  color:#22c55e;
  box-shadow: 0 0 15px rgba(34,197,94,.3), inset 0 1px 0 rgba(255,255,255,.15);
}
.tabs{
  display:flex; 
  gap:5px; 
  margin-top:8px; 
  flex-wrap:wrap;
  background: linear-gradient(135deg, rgba(0,0,0,.4), rgba(15,23,42,.3));
  padding:6px;
  border-radius:12px;
  border:1px solid rgba(34,197,94,.25);
  box-shadow: inset 0 2px 4px rgba(0,0,0,.2);
}
.tab{
  flex:1;
  min-width:72px;
  padding:8px 10px;
  border-radius:10px;
  border:2px solid rgba(34,197,94,.2);
  background:linear-gradient(135deg, rgba(34,197,94,.08), rgba(34,197,94,.03));
  cursor:pointer;
  font-weight:800;
  font-size:10px;
  transition: all .3s cubic-bezier(0.34, 1.56, 0.64, 1);
  color:#86efac;
  text-shadow: 0 1px 3px rgba(0,0,0,.4);
  position:relative;
  overflow:hidden;
}
.tab::before {
  content:"";
  position:absolute;
  top:0; left:-100%;
  width:100%; height:100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.15), transparent);
  transition: left .4s ease;
  pointer-events: none;
  z-index: -1;
}
.tab:hover::before {
  left:100%;
}
.tab:hover{
  border-color:rgba(34,197,94,.5);
  background:linear-gradient(135deg, rgba(34,197,94,.18), rgba(34,197,94,.08));
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(34,197,94,.2);
}
.tab.active{
  border-color: rgba(34,197,94,.7);
  background: linear-gradient(135deg, rgba(34,197,94,.35), rgba(34,197,94,.2));
  color:#4ade80;
  box-shadow: 0 0 20px rgba(34,197,94,.3), inset 0 1px 0 rgba(255,255,255,.15);
  transform: translateY(-1px);
}
.tab.active::after {
  content:"";
  position:absolute;
  bottom:0; left:10%; right:10%;
  height:2px;
  background: linear-gradient(90deg, transparent, #22c55e, transparent);
  animation: tabActiveGlow 2s ease-in-out infinite;
  pointer-events: none;
  z-index: -1;
}
@keyframes tabActiveGlow {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* Tab locked style */
.tab.locked {
  opacity: 0.5;
  cursor: not-allowed;
  filter: grayscale(50%);
  border-style: dashed;
}
.tab.locked:hover {
  transform: none;
  box-shadow: none;
  background: linear-gradient(135deg, rgba(100,100,100,.1), rgba(100,100,100,.05));
}
.section{
  border-radius:10px;
  border:1px solid rgba(34,197,94,.3);
  overflow:hidden;
  margin-bottom:8px;
  background:linear-gradient(135deg, rgba(22,33,62,.8), rgba(15,23,42,.8));
  transition: all .2s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,.3), inset 0 1px 0 rgba(255,255,255,.05);
}
.section:hover{
  border-color:rgba(34,197,94,.5);
}
.sectionHead{
  padding:10px 12px;
  display:flex; 
  justify-content:space-between; 
  align-items:center;
  cursor:pointer;
  background: linear-gradient(135deg, rgba(34,197,94,.15), rgba(34,197,94,.08));
  font-weight:800;
  font-size:12px;
  user-select:none;
  border-bottom:1px solid rgba(34,197,94,.2);
  color:#86efac;
  letter-spacing:0.3px;
}
.sectionHead:hover{
  background: linear-gradient(135deg, rgba(34,197,94,.2), rgba(34,197,94,.12));
  color:#22c55e;
}
.sectionBody{ 
  padding:8px; 
  display:flex; 
  flex-direction:column; 
  gap:8px;
}
.section.collapsed .sectionBody{ display:none; }

/* === FERME ILLÉGALE === */
.illegal-section {
  margin-top: 16px;
  border: 1px solid rgba(139, 69, 19, 0.4) !important;
  background: linear-gradient(135deg, rgba(139, 69, 19, 0.15), rgba(85, 45, 25, 0.1)) !important;
}

.illegal-section .sectionHead.illegal-head {
  background: linear-gradient(135deg, rgba(139, 69, 19, 0.4), rgba(85, 45, 25, 0.3)) !important;
  border-color: rgba(139, 69, 19, 0.6) !important;
  cursor: pointer;
  transition: all 0.3s ease;
}

.illegal-section .sectionHead.illegal-head:hover {
  background: linear-gradient(135deg, rgba(139, 69, 19, 0.5), rgba(85, 45, 25, 0.4)) !important;
  transform: translateX(3px);
}

.illegal-section .sectionHead.illegal-head::after {
  content: '▼';
  position: absolute;
  right: 12px;
  font-size: 10px;
  opacity: 0.6;
  transition: transform 0.3s ease;
}

.illegal-section.collapsed .sectionHead.illegal-head::after {
  transform: rotate(-90deg);
}

.illegal-item {
  border-left: 3px solid #8B4513 !important;
  background: linear-gradient(135deg, rgba(139, 69, 19, 0.12), rgba(85, 45, 25, 0.08)) !important;
}

.illegal-item:hover {
  background: linear-gradient(135deg, rgba(139, 69, 19, 0.22), rgba(85, 45, 25, 0.15)) !important;
  border-color: rgba(139, 69, 19, 0.6) !important;
}

.illegal-item .name {
  color: #d4a574;
}

.illegal-item .price {
  color: #c4956d;
}

/* === INVENTAIRE === */
.inventory-container {
  padding: 10px;
}

.inventory-weather-group {
  margin-bottom: 12px;
  background: rgba(22, 33, 62, 0.6);
  border-radius: 10px;
  padding: 10px;
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.inventory-weather-title {
  font-weight: bold;
  font-size: 13px;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
}

.inventory-items {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.inventory-item-row {
  display: flex;
  gap: 6px;
  align-items: stretch;
}

.inventory-item-row .inventory-item {
  flex: 1;
}

.inventory-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
}

.inventory-sell-btns {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.sell-btn {
  padding: 8px 12px;
  border: none;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.sell-btn.sell-one {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.9), rgba(22, 163, 74, 0.9));
  color: white;
  font-weight: bold;
  box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3);
}

.sell-btn.sell-one:hover {
  background: linear-gradient(135deg, rgba(34, 197, 94, 1), rgba(22, 163, 74, 1));
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.5);
}

.sell-btn.sell-all {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
  font-size: 10px;
  padding: 6px 10px;
}

.sell-btn.sell-all:hover {
  background: rgba(239, 68, 68, 0.4);
}

.inventory-rarity {
  font-size: 12px;
}

.inventory-name {
  flex: 1;
  color: var(--ink);
}

.inventory-count {
  font-weight: bold;
  color: var(--green);
  font-size: 11px;
}

.inventory-stats {
  margin-top: 15px;
  padding: 12px;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(34, 197, 94, 0.05));
  border-radius: 10px;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.inventory-stat {
  font-size: 12px;
  color: var(--muted);
  margin: 4px 0;
}

.inventory-stat strong {
  color: var(--ink);
}

.inventory-empty {
  text-align: center;
  color: var(--muted);
  padding: 30px 10px;
  font-style: italic;
  font-size: 13px;
}

/* === FUSION === */
.fusion-panel {
  margin-top: 15px;
  padding: 15px;
  background: linear-gradient(135deg, rgba(155, 89, 182, 0.2), rgba(155, 89, 182, 0.05));
  border-radius: 12px;
  border: 1px solid rgba(155, 89, 182, 0.4);
  text-align: center;
}

.fusion-title {
  font-size: 14px;
  font-weight: bold;
  color: #9b59b6;
  margin-bottom: 8px;
}

.fusion-desc {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 12px;
  line-height: 1.6;
}

.fusion-desc strong {
  color: var(--ink);
}

.fusion-desc.fusion-rare {
  color: #3498db;
  font-weight: bold;
  font-size: 12px;
  background: rgba(52, 152, 219, 0.15);
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid rgba(52, 152, 219, 0.3);
}

.fusion-desc.fusion-ultra {
  color: #9b59b6;
  font-weight: bold;
  font-size: 12px;
  background: rgba(155, 89, 182, 0.15);
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid rgba(155, 89, 182, 0.3);
}

.fusion-slots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 10px;
}

.fusion-slot {
  width: 90px;
  padding: 8px 6px;
  border-radius: 8px;
  font-size: 10px;
  text-align: center;
  border: 2px dashed rgba(155, 89, 182, 0.4);
  background: rgba(0, 0, 0, 0.3);
  color: var(--muted);
}

.fusion-slot.filled {
  border: 2px solid #3498db;
  background: rgba(52, 152, 219, 0.2);
  color: var(--ink);
}

.fusion-arrow {
  font-size: 18px;
  margin: 8px 0;
}

.fusion-result {
  font-size: 12px;
  font-weight: bold;
  color: #9b59b6;
  margin-bottom: 12px;
}

.fusion-buttons {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.fusion-btn {
  padding: 8px 20px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, #9b59b6, #8e44ad);
  color: white;
  font-weight: bold;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.fusion-btn:hover:not(.disabled) {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(155, 89, 182, 0.4);
}

.fusion-btn.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.fusion-clear-btn {
  padding: 8px 15px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.3);
  color: var(--muted);
  font-size: 11px;
  cursor: pointer;
  transition: all 0.2s;
}

.fusion-clear-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.4);
  color: #ef4444;
}

/* Items sélectionnables pour fusion */
.inventory-item.fusion-selectable {
  cursor: pointer;
}

.inventory-item.fusion-selectable:hover {
  background: rgba(52, 152, 219, 0.15);
}

.inventory-item.fusion-selected {
  background: rgba(52, 152, 219, 0.25);
  border-left-color: #3498db !important;
  box-shadow: 0 0 10px rgba(52, 152, 219, 0.3);
}

.fusion-check {
  color: #22c55e;
  font-weight: bold;
  margin-left: auto;
}

/* Popup d'erreur fusion */
.fusion-error-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  z-index: 9999;
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
}

.fusion-error-popup.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.fusion-error-content {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.95), rgba(185, 28, 28, 0.95));
  border: 2px solid #ef4444;
  border-radius: 16px;
  padding: 20px 30px;
  text-align: center;
  box-shadow: 0 10px 40px rgba(239, 68, 68, 0.5), 0 0 60px rgba(239, 68, 68, 0.3);
  min-width: 250px;
  animation: fusionErrorShake 0.4s ease;
}

@keyframes fusionErrorShake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-8px); }
  40%, 80% { transform: translateX(8px); }
}

.fusion-error-icon {
  font-size: 40px;
  margin-bottom: 10px;
}

.fusion-error-text {
  color: white;
  font-size: 14px;
  font-weight: bold;
  line-height: 1.5;
}

.fusion-error-text small {
  display: block;
  margin-top: 5px;
  font-size: 12px;
  opacity: 0.8;
  font-weight: normal;
}

.shopItem{
  padding:14px;
  border-radius:14px;
  border:2px solid rgba(34,197,94,.25);
  background: 
    radial-gradient(circle at 100% 0%, rgba(34,197,94,.08), transparent 50%),
    rgba(22,33,62,.7);
  transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
  position:relative;
  overflow:hidden;
  cursor:pointer;
}
.shopItem::before {
  content:"";
  position:absolute;
  top:0; left:-100%;
  width:50%; height:100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.08), transparent);
  transition: left .5s ease;
  pointer-events: none;
  z-index: -1;
}
.shopItem:hover:not(.locked)::before {
  left:150%;
}
.shopItem:hover:not(.locked){
  border-color:rgba(34,197,94,.6);
  background: 
    radial-gradient(circle at 100% 0%, rgba(34,197,94,.15), transparent 50%),
    rgba(34,197,94,.12);
  transform: translateY(-4px) scale(1.02);
  box-shadow: 
    0 12px 30px rgba(34,197,94,.25),
    0 0 20px rgba(34,197,94,.15),
    inset 0 1px 0 rgba(255,255,255,.1);
}
.shopItem:active:not(.locked) {
  transform: translateY(-2px) scale(0.98);
  box-shadow: 0 4px 12px rgba(34,197,94,.2);
}
.shopItem.locked{ 
  opacity:.4;
  border-color:rgba(100,100,100,.2);
  background:rgba(0,0,0,.3);
  filter: grayscale(50%);
}
.topline{
  display:flex; 
  justify-content:space-between; 
  gap:8px; 
  align-items:center;
}
.item-icon{
  font-size:28px;
  line-height:1;
  filter: drop-shadow(0 3px 6px rgba(0,0,0,.4));
  transition: all .3s ease;
  display:inline-block;
}
.shopItem:hover:not(.locked) .item-icon {
  transform: scale(1.15) rotate(-5deg);
  filter: drop-shadow(0 4px 10px rgba(34,197,94,.4));
}
.name{
  font-weight:800;
  font-size:14px;
  color:#e2e8f0;
  text-shadow: 0 1px 2px rgba(0,0,0,.3);
  transition: color .2s ease;
}
.shopItem:hover:not(.locked) .name {
  color:#4ade80;
}
.price{
  font-weight:800; 
  color:#22c55e;
  font-size:14px;
  transition: all .2s ease;
  text-shadow: 0 0 8px rgba(34,197,94,.3);
}
.shopItem:hover:not(.locked) .price {
  text-shadow: 0 0 15px rgba(34,197,94,.6);
}
.desc{
  font-size:12px; 
  color:#94a3b8; 
  margin-top:6px;
  line-height:1.5;
}
.meta{
  font-size:11px; 
  color:#64748b; 
  margin-top:6px;
  font-weight:600;
}
.buyrow{
  display:flex; 
  gap:8px; 
  align-items:center; 
  margin-top:8px; 
  flex-wrap:wrap;
}
.badge{
  font-size:9px;
  padding:4px 8px;
  border-radius:999px;
  background: rgba(34,197,94,.15);
  border:1px solid rgba(34,197,94,.3);
  font-weight:700;
  color:#86efac;
  box-shadow: 0 0 10px rgba(34,197,94,.2);
  transition: all .2s ease;
  animation: badgePulse 2s ease-in-out infinite;
}
@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 10px rgba(34,197,94,.2); }
  50% { box-shadow: 0 0 15px rgba(34,197,94,.4); }
}
.badge.green{ 
  background: rgba(34,197,94,.25); 
  border-color: rgba(34,197,94,.5);
  color:#22c55e;
  box-shadow: 0 0 15px rgba(34,197,94,.3);
}
.badge.red{ 
  background: rgba(239,68,68,.25); 
  border-color: rgba(239,68,68,.5);
  color:#f87171;
  box-shadow: 0 0 15px rgba(239,68,68,.3);
  animation: badgePulseRed 2s ease-in-out infinite;
}
@keyframes badgePulseRed {
  0%, 100% { box-shadow: 0 0 15px rgba(239,68,68,.3); }
  50% { box-shadow: 0 0 25px rgba(239,68,68,.5); }
}
.badge.hot{ 
  background: rgba(245,158,11,.25); 
  border-color: rgba(245,158,11,.5);
  color:#fbbf24;
  box-shadow: 0 0 15px rgba(245,158,11,.3);
  animation: badgePulseHot 1.5s ease-in-out infinite;
}
@keyframes badgePulseHot {
  0%, 100% { box-shadow: 0 0 15px rgba(245,158,11,.3); transform: scale(1); }
  50% { box-shadow: 0 0 25px rgba(245,158,11,.6); transform: scale(1.05); }
}
.starBtn{
  width:38px; 
  height:38px;
  border-radius:12px;
  border:2px solid rgba(245,158,11,.25);
  background: rgba(15,23,42,.8);
  cursor:pointer;
  font-size:20px;
  transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:0;
  position:relative;
  overflow:hidden;
}
.starBtn::before {
  content:"";
  position:absolute;
  inset:0;
  background: radial-gradient(circle, rgba(245,158,11,.3), transparent);
  opacity:0;
  transform: scale(0);
  transition: all .3s ease;
  pointer-events: none;
  z-index: -1;
}
.starBtn:hover{
  border-color:rgba(245,158,11,.5);
  background: rgba(245,158,11,.1);
  transform: scale(1.1) rotate(15deg);
}
.starBtn:hover::before {
  opacity:1;
  transform: scale(1.5);
}
.starBtn.on{ 
  background: rgba(245,158,11,.25); 
  border-color: rgba(245,158,11,.6);
  animation: starGlow 1.5s ease-in-out infinite;
}
@keyframes starGlow {
  0%, 100% { box-shadow: 0 0 15px rgba(245,158,11,.4); }
  50% { box-shadow: 0 0 30px rgba(245,158,11,.7); }
}

/* MODAL */
.modalBg{
  position:fixed; 
  inset:0;
  background:rgba(0,0,0,.8);
  backdrop-filter: blur(12px);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:16px;
  z-index:100;
  animation: modalBgFadeIn 0.3s ease-out;
}
@keyframes modalBgFadeIn {
  from { opacity: 0; backdrop-filter: blur(0); }
  to { opacity: 1; backdrop-filter: blur(12px); }
}
.modal{
  width:min(980px, 96vw);
  max-height:92vh;
  background: linear-gradient(135deg, rgba(20,25,40,.98), rgba(15,23,42,.98));
  border-radius:24px;
  border:2px solid;
  border-image: linear-gradient(135deg, rgba(34,197,94,.5), rgba(59,130,246,.5), rgba(168,85,247,.5)) 1;
  box-shadow: 
    0 25px 80px rgba(0,0,0,.8),
    0 0 60px rgba(34,197,94,.15),
    inset 0 2px 0 rgba(255,255,255,.1),
    inset 0 -1px 0 rgba(0,0,0,.3);
  overflow:hidden;
  display:flex;
  flex-direction:column;
  backdrop-filter: blur(20px);
  position:relative;
  animation: modalSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform-origin: center center;
}
@keyframes modalSlideIn {
  0% { 
    opacity: 0; 
    transform: scale(0.9) translateY(30px); 
  }
  100% { 
    opacity: 1; 
    transform: scale(1) translateY(0); 
  }
}
.modal::before {
  content:"";
  position:absolute;
  top:0; left:0; right:0; bottom:0;
  background: 
    radial-gradient(circle at 50% 0%, rgba(34,197,94,.1), transparent 50%),
    radial-gradient(circle at 0% 100%, rgba(59,130,246,.08), transparent 50%),
    radial-gradient(circle at 100% 100%, rgba(168,85,247,.08), transparent 50%);
  pointer-events:none;
  animation: modalGlowPulse 4s ease-in-out infinite;
  z-index: -1;
}
@keyframes modalGlowPulse {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 1; }
}
.modal::after {
  content:"";
  position:absolute;
  top:-50%; left:-50%;
  width:200%; height:200%;
  background: conic-gradient(from 0deg, transparent, rgba(34,197,94,.1), transparent, rgba(59,130,246,.1), transparent);
  animation: modalRotateGlow 10s linear infinite;
  pointer-events:none;
  opacity: 0.5;
  z-index: -1;
}
@keyframes modalRotateGlow {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.modalHead{
  padding:18px 20px;
  border-bottom:2px solid rgba(34,197,94,.25);
  display:flex;
  justify-content:space-between;
  align-items:center;
  background: linear-gradient(135deg, rgba(34,197,94,.12), rgba(34,197,94,.06));
  position:relative;
  z-index:1;
}
.modalTitle{
  font-weight:900;
  font-size:20px;
  background: linear-gradient(135deg, #22c55e, #3b82f6, #a855f7);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing:0.5px;
  animation: titleGradient 3s ease-in-out infinite;
}
@keyframes titleGradient {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.modalBody{
  padding:20px;
  overflow:auto;
  position:relative;
  z-index:1;
}

/* === UNLOCK POPUP (Ferme Illégale, etc.) === */
.unlock-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: unlockFadeIn 0.4s ease-out;
}

@keyframes unlockFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.unlock-popup {
  background: linear-gradient(145deg, rgba(30, 20, 10, 0.98), rgba(50, 35, 20, 0.95));
  border: 2px solid #8B4513;
  border-radius: 20px;
  padding: 0;
  max-width: 420px;
  width: 90%;
  box-shadow: 
    0 0 60px rgba(139, 69, 19, 0.5),
    0 0 120px rgba(139, 69, 19, 0.3),
    inset 0 1px 0 rgba(255, 200, 100, 0.2);
  animation: unlockPopIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
  position: relative;
}

@keyframes unlockPopIn {
  from { 
    transform: scale(0.5) rotate(-5deg); 
    opacity: 0; 
  }
  to { 
    transform: scale(1) rotate(0deg); 
    opacity: 1; 
  }
}

.unlock-popup::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Ctext x='50' y='50' font-size='20' text-anchor='middle' fill='rgba(139,69,19,0.1)'%3E🚬%3C/text%3E%3C/svg%3E");
  background-size: 40px 40px;
  opacity: 0.3;
  pointer-events: none;
}

.unlock-header {
  background: linear-gradient(135deg, rgba(139, 69, 19, 0.6), rgba(85, 45, 25, 0.5));
  padding: 20px;
  text-align: center;
  border-bottom: 1px solid rgba(139, 69, 19, 0.5);
  position: relative;
}

.unlock-icon {
  font-size: 64px;
  display: block;
  margin-bottom: 10px;
  animation: unlockIconPulse 1.5s ease-in-out infinite;
  filter: drop-shadow(0 0 20px rgba(139, 69, 19, 0.8));
}

@keyframes unlockIconPulse {
  0%, 100% { transform: scale(1) rotate(-3deg); }
  50% { transform: scale(1.1) rotate(3deg); }
}

.unlock-title {
  font-size: 24px;
  font-weight: bold;
  color: #d4a574;
  text-shadow: 0 0 20px rgba(139, 69, 19, 0.8);
  margin: 0;
  letter-spacing: 1px;
}

.unlock-subtitle {
  font-size: 14px;
  color: rgba(212, 165, 116, 0.7);
  margin-top: 5px;
}

.unlock-body {
  padding: 25px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.unlock-description {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
  margin-bottom: 20px;
}

.unlock-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 25px;
}

.unlock-feature {
  background: rgba(139, 69, 19, 0.3);
  border: 1px solid rgba(139, 69, 19, 0.5);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 12px;
  color: #d4a574;
  display: flex;
  align-items: center;
  gap: 5px;
}

.unlock-btn {
  background: linear-gradient(135deg, #8B4513, #654321);
  border: none;
  border-radius: 12px;
  padding: 14px 40px;
  font-size: 16px;
  font-weight: bold;
  color: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(139, 69, 19, 0.4);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.unlock-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(139, 69, 19, 0.6);
  background: linear-gradient(135deg, #9B5523, #754331);
}

.unlock-btn:active {
  transform: translateY(0);
}

.unlock-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.unlock-particle {
  position: absolute;
  width: 8px;
  height: 8px;
  background: #8B4513;
  border-radius: 50%;
  animation: unlockParticleFloat 3s ease-in-out infinite;
}

@keyframes unlockParticleFloat {
  0%, 100% { 
    transform: translateY(0) rotate(0deg); 
    opacity: 0.3;
  }
  50% { 
    transform: translateY(-20px) rotate(180deg); 
    opacity: 0.7;
  }
}

.grid{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap:10px;
}

/* CONFETTI + SHAKE */
.confettiLayer{ position:fixed; inset:0; pointer-events:none; z-index:120; overflow:hidden; }
.confetti{
  position:absolute;
  top:-20px;
  width:12px; height:16px;
  border-radius:4px;
  animation: confettiFall 2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  box-shadow: 0 0 10px currentColor;
}
.confetti:nth-child(odd) {
  border-radius: 50%;
  animation: confettiFallSpin 2.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}
.confetti:nth-child(3n) {
  width: 8px; height: 8px;
  animation-duration: 2.5s;
}
@keyframes confettiFall{
  0%{ transform: translateY(-30px) rotate(0deg) scale(0); opacity:0;}
  10%{ opacity:1; transform: translateY(0) rotate(45deg) scale(1);}
  100%{ transform: translateY(110vh) rotate(720deg) scale(0.5); opacity:0;}
}
@keyframes confettiFallSpin{
  0%{ transform: translateY(-30px) rotate(0deg) scale(0); opacity:0;}
  10%{ opacity:1; transform: translateY(0) rotate(-45deg) scale(1.2);}
  50%{ transform: translateY(55vh) rotate(540deg) scale(1);}
  100%{ transform: translateY(110vh) rotate(1080deg) scale(0.3); opacity:0;}
}

/* Level Up Animation */
.levelup-flash {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at center, rgba(34,197,94,.5), transparent 70%);
  pointer-events: none;
  z-index: 9999;
  animation: levelUpFlash 0.8s ease-out forwards;
}
@keyframes levelUpFlash {
  0% { opacity: 0; transform: scale(0.5); }
  30% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.5); }
}

body.shake{ animation: shake .4s cubic-bezier(0.36, 0.07, 0.19, 0.97); }
@keyframes shake{
  0%,100%{ transform: translateX(0) rotate(0deg); }
  15%{ transform: translateX(-10px) rotate(-1deg); }
  30%{ transform: translateX(10px) rotate(1deg); }
  45%{ transform: translateX(-8px) rotate(-0.5deg); }
  60%{ transform: translateX(8px) rotate(0.5deg); }
  75%{ transform: translateX(-4px); }
  90%{ transform: translateX(4px); }
}

/* WEATHER FX */
.fxLayer{ position:fixed; inset:0; pointer-events:none; z-index:1; overflow:hidden; }
.fx{ position:absolute; }

/* 🌧️ PLUIE - Gouttes réalistes */
.fx.rain{
  width:3px; border-radius:3px;
  background: linear-gradient(180deg, 
    rgba(147,197,253,0) 0%, 
    rgba(96,165,250,.6) 20%, 
    rgba(59,130,246,.95) 80%, 
    rgba(147,197,253,.7) 100%);
  box-shadow: 0 0 6px rgba(59,130,246,.5), 0 0 12px rgba(59,130,246,.3);
  animation: rainFall linear forwards;
}
.fx.rain::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 4px; height: 4px;
  border-radius: 50%;
  background: rgba(59,130,246,.4);
  opacity: 0;
}
@keyframes rainFall{
  0%{ transform: translateY(-20vh) translateX(0) rotate(12deg); opacity:0; }
  5%{ opacity:1; }
  85%{ opacity:0.95; }
  100%{ transform: translateY(115vh) translateX(var(--dx)) rotate(12deg); opacity:0; }
}

/* ❄️ NEIGE - Flocons détaillés */
.fx.snow{
  width:8px; height:8px; border-radius:999px;
  background: 
    radial-gradient(circle at 30% 30%, white, rgba(200,220,255,.9));
  box-shadow: 0 0 10px rgba(255,255,255,.8), 0 0 20px rgba(200,220,255,.5);
  animation: snowFall linear forwards;
}
.fx.snow::before {
  content: "❄";
  position: absolute;
  font-size: 10px;
  color: rgba(255,255,255,.8);
  animation: snowSparkle 1s ease-in-out infinite;
}
@keyframes snowSparkle {
  0%, 100% { opacity: 0.5; transform: rotate(0deg); }
  50% { opacity: 1; transform: rotate(180deg); }
}
@keyframes snowFall{
  0%{ transform: translateY(-12vh) translateX(0) rotate(0deg); opacity:0; }
  10%{ opacity:.95; }
  100%{ transform: translateY(112vh) translateX(var(--dx)) rotate(360deg); opacity:.9; }
}

/* 🍃 FEUILLES - Plus réalistes */
.fx.leaf{
  width:16px; height:12px;
  background: linear-gradient(135deg, rgba(22,163,74,.9), rgba(34,197,94,.7));
  border-radius: 12px 12px 3px 12px;
  animation: leafFly linear forwards;
  box-shadow: 0 2px 6px rgba(0,0,0,.2);
}
.fx.leaf::before {
  content: "";
  position: absolute;
  top: 50%; left: 2px;
  width: 60%; height: 1px;
  background: rgba(255,255,255,.3);
  transform: translateY(-50%) rotate(-10deg);
}
.fx.leaf.alt{ 
  background: linear-gradient(135deg, rgba(234,88,12,.9), rgba(249,115,22,.7)); 
}
@keyframes leafFly{
  0%{ transform: translateX(-10vw) translateY(-10vh) rotate(0deg) scale(0.8); opacity:0; }
  10%{ opacity:1; transform: translateX(0vw) translateY(0vh) rotate(90deg) scale(1); }
  50%{ transform: translateX(60vw) translateY(50vh) rotate(360deg) scale(1.1); }
  100%{ transform: translateX(120vw) translateY(110vh) rotate(900deg) scale(0.7); opacity:0; }
}

/* ☀️ HALO SOLEIL - Plus brillant */
.fx.halo{
  width:260px; height:260px;
  border-radius:999px;
  background: 
    radial-gradient(circle, rgba(251,191,36,.3) 0%, rgba(245,158,11,.15) 40%, transparent 70%);
  filter: blur(2px);
  animation: haloPulse 3s ease-in-out infinite;
  box-shadow: 0 0 60px rgba(251,191,36,.3);
}
.fx.halo::after {
  content: "";
  position: absolute;
  inset: 20%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,220,100,.4), transparent 60%);
  animation: haloInnerPulse 2s ease-in-out infinite;
}
@keyframes haloInnerPulse{
  0%,100%{ transform: scale(1); opacity:.8; }
  50%{ transform: scale(1.15); opacity:1; }
}
@keyframes haloPulse{
  0%,100%{ transform: translate(-50%,-50%) scale(1); opacity:.6; }
  50%{ transform: translate(-50%,-50%) scale(1.1); opacity:1; }
}

/* ✨ SPARKLES - Plus magiques */
.fx.sparkle{
  width:14px; height:14px;
  border-radius:999px;
  position:absolute;
  background: radial-gradient(circle, currentColor, transparent 70%);
  box-shadow: 0 0 15px 5px currentColor, 0 0 30px 2px currentColor;
  animation: sparkleFade ease-in-out forwards;
  pointer-events:none;
}
.fx.sparkle::before,
.fx.sparkle::after {
  content: "";
  position: absolute;
  background: currentColor;
  border-radius: 999px;
}
.fx.sparkle::before {
  top: 50%; left: -50%;
  width: 200%; height: 2px;
  transform: translateY(-50%);
}
.fx.sparkle::after {
  left: 50%; top: -50%;
  width: 2px; height: 200%;
  transform: translateX(-50%);
}
@keyframes sparkleFade{
  0%{ transform: scale(0); opacity:0; }
  20%{ transform: scale(1.2); opacity:1; }
  100%{ transform: scale(0.8); opacity:0; }
}

.fx.cloud{
  width:120px; height:50px;
  position:absolute;
  background: 
    radial-gradient(circle at 30% 50%, rgba(148,163,184,.7), transparent 70%),
    radial-gradient(circle at 60% 40%, rgba(148,163,184,.6), transparent 70%),
    radial-gradient(circle at 80% 60%, rgba(148,163,184,.7), transparent 70%);
  border-radius: 50%;
  animation: cloudFloat linear forwards;
  pointer-events:none;
  filter: blur(8px);
}
@keyframes cloudFloat{
  0%{ transform: translateX(0); }
  100%{ transform: translateX(120vw); }
}

/* SKINS (vraiment différents) */
body.skin-default{
  --potA:#c2410c; --potB:#7c2d12;
  --rimA:#fb923c; --rimB:#c2410c;
}

/* 🌵 CACTUS */
body.skin-cactus{
  --potA:#9a3412; --potB:#7c2d12;
  --rimA:#fdba74; --rimB:#9a3412;
}
body.skin-cactus .plant{ width:110px; height:120px; }
body.skin-cactus .plant::before{
  width:40px; height:82px;
  border-radius:18px;
  background:linear-gradient(#16a34a,#14532d);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.08);
}
body.skin-cactus .plant::after{
  width:78px; height:38px;
  bottom:26px;
  background:
    radial-gradient(circle at 20% 50%, #15803d 0 18px, transparent 19px),
    radial-gradient(circle at 80% 50%, #15803d 0 18px, transparent 19px);
}
body.skin-cactus .plant .flower{
  width:34px; height:34px;
  bottom:74px;
  background:
    radial-gradient(circle at 50% 50%, #fbbf24 0 22%, transparent 23%),
    conic-gradient(
      #fb7185 0 45deg, transparent 45deg 90deg,
      #fb7185 90deg 135deg, transparent 135deg 180deg,
      #fb7185 180deg 225deg, transparent 225deg 270deg,
      #fb7185 270deg 315deg, transparent 315deg 360deg
    );
}

/* � MOSS */
body.skin-moss{
  --potA:#4d7c0f; --potB:#365314;
  --rimA:#84cc16; --rimB:#4d7c0f;
}
body.skin-moss .plant::before{ 
  background:linear-gradient(#15803d,#14532d);
}
body.skin-moss .plant::after{ 
  background:radial-gradient(circle, #22c55e 0 36%, transparent 37%),
             radial-gradient(circle at 30% 60%, #16a34a 0 26%, transparent 27%),
             radial-gradient(circle at 70% 60%, #16a34a 0 26%, transparent 27%);
}
body.skin-moss .plant .flower{
  background:
    radial-gradient(circle at 50% 50%, #fef3c7 0 28%, transparent 29%),
    conic-gradient(
      #86efac 0 72deg, transparent 72deg 144deg,
      #86efac 144deg 216deg, transparent 216deg 288deg,
      #86efac 288deg 360deg
    );
}

/* 🌻 SUNFLOWER */
body.skin-sunflower{
  --potA:#ca8a04; --potB:#713f12;
  --rimA:#fde047; --rimB:#ca8a04;
}
body.skin-sunflower .plant::before{ 
  width:14px; height:90px;
  background:linear-gradient(#16a34a,#14532d);
}
body.skin-sunflower .plant::after{ 
  width:120px; height:50px; bottom:28px;
  background:
    radial-gradient(ellipse at 25% 50%, #15803d 0 24px, transparent 25px),
    radial-gradient(ellipse at 75% 50%, #15803d 0 24px, transparent 25px),
    radial-gradient(ellipse at 50% 30%, #15803d 0 20px, transparent 21px);
}
body.skin-sunflower .plant .flower{
  width:72px; height:72px; bottom:72px;
  background:
    radial-gradient(circle at 50% 50%, #713f12 0 20%, transparent 21%),
    conic-gradient(from 22.5deg,
      #fbbf24 0deg 45deg, transparent 45deg 90deg,
      #fbbf24 90deg 135deg, transparent 135deg 180deg,
      #fbbf24 180deg 225deg, transparent 225deg 270deg,
      #fbbf24 270deg 315deg, transparent 315deg 360deg
    );
  filter: drop-shadow(0 8px 16px rgba(202,138,4,.3));
}

/* �🌹 ROSE */
body.skin-rose{
  --potA:#be123c; --potB:#7f1d1d;
  --rimA:#fecdd3; --rimB:#be123c;
}
body.skin-rose .plant::before{ width:10px; height:82px; }
body.skin-rose .plant::after{ width:110px; height:52px; bottom:24px; }
body.skin-rose .plant .flower{
  width:66px; height:66px; bottom:68px;
  background:
    radial-gradient(circle at center, #7f1d1d 0 14%, transparent 15%),
    conic-gradient(from 0deg,
      #be123c 0 25deg,
      #fb7185 25deg 55deg,
      #be123c 55deg 85deg,
      #fb7185 85deg 115deg,
      #be123c 115deg 145deg,
      #fb7185 145deg 175deg,
      #be123c 175deg 205deg,
      #fb7185 205deg 235deg,
      #be123c 235deg 265deg,
      #fb7185 265deg 295deg,
      #be123c 295deg 325deg,
      #fb7185 325deg 360deg
    );
  filter: drop-shadow(0 14px 22px rgba(190,18,60,.32));
}

/* ⚡ NEON (Cyberpunk) */
body.skin-neon{
  --potA:#0c4a6e; --potB:#082f49;
  --rimA:#06b6d4; --rimB:#0e7490;
  --soilA:#164e63; --soilB:#134e4a;
}
body.skin-neon .pot::before{
  box-shadow: 0 20px 34px rgba(0,0,0,.18),
              0 0 20px rgba(6,182,212,.4),
              inset 0 0 30px rgba(6,182,212,.2);
  border:2px solid rgba(6,182,212,.6);
}
body.skin-neon .pot::after{
  box-shadow: 0 0 20px rgba(6,182,212,.5),
              inset 0 0 15px rgba(6,182,212,.3);
  border:2px solid rgba(6,182,212,.7);
}
body.skin-neon .plant::before{
  background: linear-gradient(#06b6d4, #0e7490);
  box-shadow: 0 0 15px rgba(6,182,212,.6),
              inset 0 0 10px rgba(6,182,212,.4);
}
body.skin-neon .plant::after{
  background:
    radial-gradient(ellipse at 25% 60%, rgba(6,182,212,.96) 0 40%, transparent 41%),
    radial-gradient(ellipse at 75% 55%, rgba(14,116,144,.94) 0 40%, transparent 41%);
  filter: drop-shadow(0 0 15px rgba(6,182,212,.7));
  animation: neonPulse 1.5s ease-in-out infinite;
}
body.skin-neon .plant .flower{
  background:
    radial-gradient(circle at 50% 50%, #ec4899 0 18%, transparent 19%),
    conic-gradient(from 0deg,
      #f0abfc 0 20deg, transparent 20deg 40deg,
      #f0abfc 40deg 60deg, transparent 60deg 80deg,
      #f0abfc 80deg 100deg, transparent 100deg 120deg,
      #f0abfc 120deg 140deg, transparent 140deg 160deg,
      #f0abfc 160deg 180deg, transparent 180deg 200deg,
      #f0abfc 200deg 220deg, transparent 220deg 240deg,
      #f0abfc 240deg 260deg, transparent 260deg 280deg,
      #f0abfc 280deg 300deg, transparent 300deg 320deg,
      #f0abfc 320deg 340deg, transparent 340deg 360deg
    );
  filter: drop-shadow(0 0 20px rgba(236,72,153,.8));
  box-shadow: 0 0 25px rgba(236,72,153,.6),
              inset 0 0 15px rgba(240,171,252,.5);
  animation: neonFlowerPulse 2s ease-in-out infinite;
}
@keyframes neonPulse{
  0%,100%{ filter: drop-shadow(0 0 15px rgba(6,182,212,.7)) brightness(1); }
  25%{ filter: drop-shadow(0 0 30px rgba(236,72,153,1)) brightness(1.1); }
  50%{ filter: drop-shadow(0 0 25px rgba(6,182,212,1)) brightness(1.2); }
  75%{ filter: drop-shadow(0 0 30px rgba(168,85,247,1)) brightness(1.1); }
}
@keyframes neonFlowerPulse{
  0%,100%{ 
    filter: drop-shadow(0 0 20px rgba(236,72,153,.8));
    box-shadow: 0 0 25px rgba(236,72,153,.6), inset 0 0 15px rgba(240,171,252,.5);
  }
  50%{ 
    filter: drop-shadow(0 0 40px rgba(6,182,212,1));
    box-shadow: 0 0 50px rgba(6,182,212,.9), inset 0 0 30px rgba(240,171,252,.8);
  }
}

/* 💎 CRYSTAL (Cristal) */
body.skin-crystal{
  --potA:#7c3aed; --potB:#5b21b6;
  --rimA:#c4b5fd; --rimB:#8b5cf6;
  --soilA:#6d28d9; --soilB:#5b21b6;
}
body.skin-crystal .pot::before{
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,.35), transparent 44%),
    radial-gradient(circle at 70% 60%, rgba(255,255,255,.25), transparent 40%),
    linear-gradient(180deg, var(--potA), var(--potB));
  box-shadow: 0 20px 34px rgba(124,58,237,.3),
              0 0 30px rgba(167,139,250,.4),
              inset 0 8px 20px rgba(255,255,255,.2);
  border:2px solid rgba(196,181,253,.8);
}
body.skin-crystal .pot::after{
  background:
    radial-gradient(circle at 30% 40%, rgba(255,255,255,.4), transparent 56%),
    radial-gradient(circle at 70% 50%, rgba(255,255,255,.3), transparent 45%),
    linear-gradient(180deg, var(--rimA), var(--rimB));
  box-shadow: 0 0 20px rgba(196,181,253,.6),
              inset 0 4px 15px rgba(255,255,255,.3);
  border:2px solid rgba(196,181,253,.9);
}
body.skin-crystal .plant::before{
  background: linear-gradient(#a78bfa, #7c3aed);
  box-shadow: inset 0 0 8px rgba(255,255,255,.3),
              0 0 15px rgba(167,139,250,.5);
}
body.skin-crystal .plant::after{
  background:
    radial-gradient(ellipse at 25% 60%, rgba(139,92,246,.96) 0 40%, transparent 41%),
    radial-gradient(ellipse at 75% 55%, rgba(109,40,217,.94) 0 40%, transparent 41%);
  filter: drop-shadow(0 0 12px rgba(167,139,250,.6));
  animation: crystalShimmer 2s ease-in-out infinite;
}
body.skin-crystal .plant .flower{
  background:
    radial-gradient(circle at 50% 50%, #fde047 0 18%, transparent 19%),
    radial-gradient(circle at 30% 30%, rgba(255,255,255,.6) 0 8%, transparent 9%),
    conic-gradient(from 0deg,
      #c4b5fd 0 20deg, transparent 20deg 40deg,
      #c4b5fd 40deg 60deg, transparent 60deg 80deg,
      #c4b5fd 80deg 100deg, transparent 100deg 120deg,
      #c4b5fd 120deg 140deg, transparent 140deg 160deg,
      #c4b5fd 160deg 180deg, transparent 180deg 200deg,
      #c4b5fd 200deg 220deg, transparent 220deg 240deg,
      #c4b5fd 240deg 260deg, transparent 260deg 280deg,
      #c4b5fd 280deg 300deg, transparent 300deg 320deg,
      #c4b5fd 320deg 340deg, transparent 340deg 360deg
    );
  filter: drop-shadow(0 0 15px rgba(196,181,253,.8));
  box-shadow: 0 0 30px rgba(196,181,253,.6),
              inset 0 0 20px rgba(255,255,255,.4);
}
@keyframes crystalShimmer{
  0%,100%{ 
    filter: drop-shadow(0 0 12px rgba(167,139,250,.6)) brightness(1);
  }
  25%{ 
    filter: drop-shadow(0 0 25px rgba(236,72,153,.8)) brightness(1.15);
  }
  50%{ 
    filter: drop-shadow(0 0 30px rgba(196,181,253,1)) brightness(1.2);
  }
  75%{ 
    filter: drop-shadow(0 0 25px rgba(34,211,238,.8)) brightness(1.15);
  }
}
@keyframes crystalSparkle{
  0%,100%{ 
    box-shadow: 0 0 30px rgba(196,181,253,.6), inset 0 0 20px rgba(255,255,255,.4);
  }
  50%{ 
    box-shadow: 0 0 50px rgba(236,72,153,.8), inset 0 0 30px rgba(255,255,255,.6), 0 0 60px rgba(167,139,250,.5);
  }
}

/* 🌌 COSMIC (Galactique) */
body.skin-cosmic{
  --potA:#1e1b4b; --potB:#0f172a;
  --rimA:#818cf8; --rimB:#4338ca;
  --soilA:#312e81; --soilB:#1e1b4b;
}
body.skin-cosmic .pot::before{
  background:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,.15) 0 2px, transparent 3px),
    radial-gradient(circle at 60% 50%, rgba(255,255,255,.15) 0 1px, transparent 2px),
    radial-gradient(circle at 80% 70%, rgba(255,255,255,.15) 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 40% 80%, rgba(255,255,255,.15) 0 2px, transparent 3px),
    radial-gradient(ellipse at 30% 40%, rgba(139,92,246,.3), transparent 60%),
    linear-gradient(180deg, var(--potA), var(--potB));
  box-shadow: 0 20px 34px rgba(0,0,0,.4),
              0 0 25px rgba(99,102,241,.3),
              inset 0 0 40px rgba(139,92,246,.2);
  border:2px solid rgba(129,140,248,.5);
}
body.skin-cosmic .pot::after{
  background:
    radial-gradient(circle at 30% 40%, rgba(255,255,255,.25), transparent 56%),
    linear-gradient(180deg, var(--rimA), var(--rimB));
  box-shadow: 0 0 20px rgba(129,140,248,.5),
              inset 0 0 15px rgba(167,139,250,.3);
  border:2px solid rgba(129,140,248,.7);
}
body.skin-cosmic .plant::before{
  background: linear-gradient(#6366f1, #4338ca);
  box-shadow: 0 0 15px rgba(99,102,241,.5);
}
body.skin-cosmic .plant::after{
  background:
    radial-gradient(ellipse at 25% 60%, rgba(99,102,241,.96) 0 40%, transparent 41%),
    radial-gradient(ellipse at 75% 55%, rgba(67,56,202,.94) 0 40%, transparent 41%);
  filter: drop-shadow(0 0 15px rgba(129,140,248,.6));
  animation: cosmicGlow 3s ease-in-out infinite;
}
body.skin-cosmic .plant .flower{
  background:
    radial-gradient(circle at 50% 50%, #fef3c7 0 18%, transparent 19%),
    radial-gradient(circle at 30% 30%, rgba(255,255,255,.8) 0 6%, transparent 7%),
    radial-gradient(circle at 65% 40%, rgba(255,255,255,.6) 0 4%, transparent 5%),
    conic-gradient(from 0deg,
      #c084fc 0 30deg,
      #a78bfa 30deg 60deg,
      #818cf8 60deg 90deg,
      #60a5fa 90deg 120deg,
      #22d3ee 120deg 150deg,
      #34d399 150deg 180deg,
      #fde047 180deg 210deg,
      #fb923c 210deg 240deg,
      #f472b6 240deg 270deg,
      #e879f9 270deg 300deg,
      #c084fc 300deg 330deg,
      #a78bfa 330deg 360deg
    );
  filter: drop-shadow(0 0 20px rgba(192,132,252,.8));
  box-shadow: 0 0 35px rgba(192,132,252,.7),
              inset 0 0 20px rgba(255,255,255,.3);
  animation: cosmicFlowerRotate 8s linear infinite;
}
@keyframes cosmicGlow{
  0%,100%{ 
    filter: drop-shadow(0 0 15px rgba(129,140,248,.6)) brightness(1);
  }
  25%{ 
    filter: drop-shadow(0 0 30px rgba(192,132,252,.9)) brightness(1.1);
  }
  50%{ 
    filter: drop-shadow(0 0 35px rgba(167,139,250,1)) brightness(1.2);
  }
  75%{ 
    filter: drop-shadow(0 0 30px rgba(99,102,241,.9)) brightness(1.1);
  }
}
@keyframes cosmicFlowerRotate{
  0%{ 
    filter: drop-shadow(0 0 20px rgba(192,132,252,.8)) hue-rotate(0deg);
  }
  100%{ 
    filter: drop-shadow(0 0 20px rgba(192,132,252,.8)) hue-rotate(360deg);
  }
}

/* 👑 GOLDEN (Or) */
body.skin-golden{
  --potA:#ca8a04; --potB:#854d0e;
  --rimA:#fde047; --rimB:#eab308;
  --soilA:#a16207; --soilB:#713f12;
}
body.skin-golden .pot::before{
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,.35), transparent 44%),
    radial-gradient(circle at 65% 70%, rgba(255,237,213,.25), transparent 50%),
    linear-gradient(180deg, var(--potA), var(--potB));
  box-shadow: 0 20px 34px rgba(133,77,14,.3),
              0 0 30px rgba(234,179,8,.5),
              inset 0 8px 25px rgba(253,224,71,.2);
  border:2px solid rgba(253,224,71,.8);
}
body.skin-golden .pot::after{
  background:
    radial-gradient(circle at 30% 40%, rgba(255,255,255,.35), transparent 56%),
    linear-gradient(180deg, var(--rimA), var(--rimB));
  box-shadow: 0 0 25px rgba(253,224,71,.7),
              inset 0 4px 20px rgba(255,255,255,.3);
  border:2px solid rgba(253,224,71,1);
}
body.skin-golden .plant::before{
  background: linear-gradient(#16a34a, #15803d);
  box-shadow: 0 0 10px rgba(34,197,94,.4);
}
body.skin-golden .plant::after{
  background:
    radial-gradient(ellipse at 25% 60%, rgba(22,163,74,.96) 0 40%, transparent 41%),
    radial-gradient(ellipse at 75% 55%, rgba(21,128,61,.94) 0 40%, transparent 41%);
  filter: drop-shadow(0 10px 16px rgba(0,0,0,.10));
}
body.skin-golden .plant .flower{
  background:
    radial-gradient(circle at 50% 50%, #713f12 0 20%, transparent 21%),
    radial-gradient(circle at 35% 35%, rgba(255,255,255,.5) 0 8%, transparent 9%),
    conic-gradient(from 0deg,
      #fde047 0 20deg, transparent 20deg 40deg,
      #fde047 40deg 60deg, transparent 60deg 80deg,
      #fde047 80deg 100deg, transparent 100deg 120deg,
      #fde047 120deg 140deg, transparent 140deg 160deg,
      #fde047 160deg 180deg, transparent 180deg 200deg,
      #fde047 200deg 220deg, transparent 220deg 240deg,
      #fde047 240deg 260deg, transparent 260deg 280deg,
      #fde047 280deg 300deg, transparent 300deg 320deg,
      #fde047 320deg 340deg, transparent 340deg 360deg
    );
  filter: drop-shadow(0 0 20px rgba(253,224,71,.7));
  box-shadow: 0 0 30px rgba(234,179,8,.6),
              inset 0 0 15px rgba(255,255,255,.4);
  animation: goldenShine 2s ease-in-out infinite;
}
@keyframes goldenShine{
  0%,100%{ 
    filter: drop-shadow(0 0 20px rgba(253,224,71,.7)) brightness(1);
    box-shadow: 0 0 30px rgba(234,179,8,.6), inset 0 0 15px rgba(255,255,255,.4);
  }
  25%{ 
    filter: drop-shadow(0 0 40px rgba(255,200,50,1)) brightness(1.3);
  }
  50%{ 
    filter: drop-shadow(0 0 50px rgba(253,224,71,1)) brightness(1.4);
    box-shadow: 0 0 60px rgba(234,179,8,1), inset 0 0 35px rgba(255,255,255,.7), 0 0 80px rgba(253,224,71,.5);
  }
  75%{ 
    filter: drop-shadow(0 0 40px rgba(255,200,50,1)) brightness(1.3);
  }
}

/* Skin Tomate */
/* Skin Tomate - Tomate seule réaliste */
body.skin-tomato{
  --potA:transparent; --potB:transparent; 
  --rimA:transparent; --rimB:transparent;
  --soilA:transparent; --soilB:transparent;
}
body.skin-tomato .pot{
  background: none;
  box-shadow: none;
  border: none;
}
body.skin-tomato .pot::before,
body.skin-tomato .pot::after,
body.skin-tomato .soil{
  display: none !important;
}
body.skin-tomato .plant::before{
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  background: transparent !important;
}
body.skin-tomato .plant::after{
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  background: transparent !important;
}
body.skin-tomato .plant{
  bottom: 40px; /* Ajustement de la hauteur */
  width: 150px;
  height: 150px;
  animation: none;
}
body.skin-tomato .plant .flower{
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 150px;
  height: 135px;
  transform: translateX(-50%);
  /* Forme bien ronde et charnue */
  border-radius: 50% 50% 45% 45% / 55% 55% 40% 40%;
  background: radial-gradient(circle at 35% 25%, #ff4d4d 0%, #d92828 45%, #991b1b 100%);
  box-shadow: 
    inset 15px 15px 30px rgba(255,255,255,0.25),
    inset -10px -15px 40px rgba(0,0,0,0.35),
    0 20px 35px rgba(0,0,0,0.2);
  z-index: 10;
}
/* Feuilles (Sépales) plus fines et naturelles */
body.skin-tomato .plant .flower::before{
  content: "";
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%) rotate(15deg);
  width: 110px;
  height: 110px;
  background: radial-gradient(circle at center, #4ade80 0%, #16a34a 60%, #14532d 100%);
  /* Forme d'étoile à 5 branches plus fines et longues */
  clip-path: polygon(
    50% 0%, 55% 42%, 
    90% 25%, 60% 55%, 
    80% 90%, 50% 65%, 
    20% 90%, 40% 55%, 
    10% 25%, 45% 42%
  );
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
  z-index: 11;
}
body.skin-tomato .plant .flower::after{
  display: none !important;
}

/* ===== TOMATE RAINBOW ===== */
body.skin-tomato-rainbow{
  --potA:transparent; --potB:transparent;
  --rimA:transparent; --rimB:transparent;
  --soilA:transparent; --soilB:transparent;
}
body.skin-tomato-rainbow .pot{
  background: none; box-shadow: none; border: none;
}
body.skin-tomato-rainbow .pot::before,
body.skin-tomato-rainbow .pot::after,
body.skin-tomato-rainbow .soil{
  display: none !important;
}
body.skin-tomato-rainbow .plant::before,
body.skin-tomato-rainbow .plant::after{
  display: none !important;
}
body.skin-tomato-rainbow .plant{
  bottom: 40px; width: 150px; height: 150px; animation: none;
}
body.skin-tomato-rainbow .plant .flower{
  position: absolute; left: 50%; bottom: 0;
  width: 150px; height: 135px;
  transform: translateX(-50%);
  border-radius: 50% 50% 45% 45% / 55% 55% 40% 40%;
  background: linear-gradient(135deg, 
    #ff6b6b 0%, #ffa500 15%, #ffd700 30%, #7cfc00 45%, 
    #00ced1 60%, #6a5acd 75%, #ff69b4 90%, #ff6b6b 100%);
  box-shadow: 
    inset 15px 15px 30px rgba(255,255,255,0.35),
    inset -10px -15px 40px rgba(0,0,0,0.25),
    0 20px 35px rgba(0,0,0,0.2),
    0 0 30px rgba(255,200,100,0.3);
  animation: rainbowShift 3s linear infinite;
  z-index: 10;
}
@keyframes rainbowShift{
  0%{ filter: hue-rotate(0deg); }
  100%{ filter: hue-rotate(360deg); }
}
body.skin-tomato-rainbow .plant .flower::before{
  content: ""; position: absolute; top: -15px; left: 50%;
  transform: translateX(-50%) rotate(15deg);
  width: 110px; height: 110px;
  background: linear-gradient(135deg, #22c55e, #06b6d4, #8b5cf6);
  clip-path: polygon(50% 0%, 55% 42%, 90% 25%, 60% 55%, 80% 90%, 50% 65%, 20% 90%, 40% 55%, 10% 25%, 45% 42%);
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
  z-index: 11;
}
body.skin-tomato-rainbow .plant .flower::after{ display: none !important; }

/* ===== TOMATE CYBERPUNK ===== */
body.skin-tomato-cyber{
  --potA:transparent; --potB:transparent;
  --rimA:transparent; --rimB:transparent;
  --soilA:transparent; --soilB:transparent;
}
body.skin-tomato-cyber .pot{
  background: none; box-shadow: none; border: none;
}
body.skin-tomato-cyber .pot::before,
body.skin-tomato-cyber .pot::after,
body.skin-tomato-cyber .soil{
  display: none !important;
}
body.skin-tomato-cyber .plant::before,
body.skin-tomato-cyber .plant::after{
  display: none !important;
}
body.skin-tomato-cyber .plant{
  bottom: 40px; width: 150px; height: 150px; animation: none;
}
body.skin-tomato-cyber .plant .flower{
  position: absolute; left: 50%; bottom: 0;
  width: 150px; height: 135px;
  transform: translateX(-50%);
  border-radius: 50% 50% 45% 45% / 55% 55% 40% 40%;
  background: radial-gradient(circle at 35% 25%, #ff00ff 0%, #8b00ff 40%, #1a0033 100%);
  box-shadow: 
    inset 15px 15px 30px rgba(255,0,255,0.4),
    inset -10px -15px 40px rgba(0,0,0,0.5),
    0 0 40px rgba(255,0,255,0.6),
    0 0 80px rgba(0,255,255,0.3),
    0 20px 35px rgba(0,0,0,0.3);
  animation: cyberPulse 1.5s ease-in-out infinite;
  z-index: 10;
}
@keyframes cyberPulse{
  0%, 100%{ box-shadow: inset 15px 15px 30px rgba(255,0,255,0.4), inset -10px -15px 40px rgba(0,0,0,0.5), 0 0 40px rgba(255,0,255,0.6), 0 0 80px rgba(0,255,255,0.3); }
  50%{ box-shadow: inset 15px 15px 30px rgba(0,255,255,0.4), inset -10px -15px 40px rgba(0,0,0,0.5), 0 0 60px rgba(0,255,255,0.8), 0 0 100px rgba(255,0,255,0.4); }
}
body.skin-tomato-cyber .plant .flower::before{
  content: ""; position: absolute; top: -15px; left: 50%;
  transform: translateX(-50%) rotate(15deg);
  width: 110px; height: 110px;
  background: linear-gradient(135deg, #00ffff, #ff00ff);
  clip-path: polygon(50% 0%, 55% 42%, 90% 25%, 60% 55%, 80% 90%, 50% 65%, 20% 90%, 40% 55%, 10% 25%, 45% 42%);
  filter: drop-shadow(0 0 10px rgba(0,255,255,0.8));
  z-index: 11;
}
body.skin-tomato-cyber .plant .flower::after{ display: none !important; }

/* ===== TOMATE GOLD ===== */
body.skin-tomato-gold{
  --potA:transparent; --potB:transparent;
  --rimA:transparent; --rimB:transparent;
  --soilA:transparent; --soilB:transparent;
}
body.skin-tomato-gold .pot{
  background: none; box-shadow: none; border: none;
}
body.skin-tomato-gold .pot::before,
body.skin-tomato-gold .pot::after,
body.skin-tomato-gold .soil{
  display: none !important;
}
body.skin-tomato-gold .plant::before,
body.skin-tomato-gold .plant::after{
  display: none !important;
}
body.skin-tomato-gold .plant{
  bottom: 40px; width: 150px; height: 150px; animation: none;
}
body.skin-tomato-gold .plant .flower{
  position: absolute; left: 50%; bottom: 0;
  width: 150px; height: 135px;
  transform: translateX(-50%);
  border-radius: 50% 50% 45% 45% / 55% 55% 40% 40%;
  background: radial-gradient(circle at 35% 25%, #fff7a0 0%, #ffd700 35%, #b8860b 70%, #8b6914 100%);
  box-shadow: 
    inset 15px 15px 30px rgba(255,255,255,0.5),
    inset -10px -15px 40px rgba(0,0,0,0.3),
    0 0 50px rgba(255,215,0,0.5),
    0 20px 35px rgba(0,0,0,0.2);
  animation: goldShine 2s ease-in-out infinite;
  z-index: 10;
}
@keyframes goldShine{
  0%, 100%{ filter: brightness(1); }
  50%{ filter: brightness(1.2); }
}
body.skin-tomato-gold .plant .flower::before{
  content: ""; position: absolute; top: -15px; left: 50%;
  transform: translateX(-50%) rotate(15deg);
  width: 110px; height: 110px;
  background: linear-gradient(135deg, #ffd700, #b8860b);
  clip-path: polygon(50% 0%, 55% 42%, 90% 25%, 60% 55%, 80% 90%, 50% 65%, 20% 90%, 40% 55%, 10% 25%, 45% 42%);
  filter: drop-shadow(0 2px 8px rgba(255,215,0,0.6));
  z-index: 11;
}
body.skin-tomato-gold .plant .flower::after{ display: none !important; }

/* ===== TOMATE FROST ===== */
body.skin-tomato-frost{
  --potA:transparent; --potB:transparent;
  --rimA:transparent; --rimB:transparent;
  --soilA:transparent; --soilB:transparent;
}
body.skin-tomato-frost .pot{
  background: none; box-shadow: none; border: none;
}
body.skin-tomato-frost .pot::before,
body.skin-tomato-frost .pot::after,
body.skin-tomato-frost .soil{
  display: none !important;
}
body.skin-tomato-frost .plant::before,
body.skin-tomato-frost .plant::after{
  display: none !important;
}
body.skin-tomato-frost .plant{
  bottom: 40px; width: 150px; height: 150px; animation: none;
}
body.skin-tomato-frost .plant .flower{
  position: absolute; left: 50%; bottom: 0;
  width: 150px; height: 135px;
  transform: translateX(-50%);
  border-radius: 50% 50% 45% 45% / 55% 55% 40% 40%;
  background: radial-gradient(circle at 35% 25%, #ffffff 0%, #a5f3fc 30%, #22d3ee 60%, #0891b2 100%);
  box-shadow: 
    inset 15px 15px 30px rgba(255,255,255,0.6),
    inset -10px -15px 40px rgba(0,100,150,0.3),
    0 0 40px rgba(34,211,238,0.4),
    0 20px 35px rgba(0,0,0,0.15);
  z-index: 10;
}
body.skin-tomato-frost .plant .flower::before{
  content: ""; position: absolute; top: -15px; left: 50%;
  transform: translateX(-50%) rotate(15deg);
  width: 110px; height: 110px;
  background: linear-gradient(135deg, #67e8f9, #06b6d4, #0e7490);
  clip-path: polygon(50% 0%, 55% 42%, 90% 25%, 60% 55%, 80% 90%, 50% 65%, 20% 90%, 40% 55%, 10% 25%, 45% 42%);
  filter: drop-shadow(0 2px 6px rgba(6,182,212,0.5));
  z-index: 11;
}
body.skin-tomato-frost .plant .flower::after{ display: none !important; }

/* ===== TOMATE GALAXY ===== */
body.skin-tomato-galaxy{
  --potA:transparent; --potB:transparent;
  --rimA:transparent; --rimB:transparent;
  --soilA:transparent; --soilB:transparent;
}
body.skin-tomato-galaxy .pot{
  background: none; box-shadow: none; border: none;
}
body.skin-tomato-galaxy .pot::before,
body.skin-tomato-galaxy .pot::after,
body.skin-tomato-galaxy .soil{
  display: none !important;
}
body.skin-tomato-galaxy .plant::before,
body.skin-tomato-galaxy .plant::after{
  display: none !important;
}
body.skin-tomato-galaxy .plant{
  bottom: 40px; width: 150px; height: 150px; animation: none;
}
body.skin-tomato-galaxy .plant .flower{
  position: absolute; left: 50%; bottom: 0;
  width: 150px; height: 135px;
  transform: translateX(-50%);
  border-radius: 50% 50% 45% 45% / 55% 55% 40% 40%;
  background: 
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.8) 0%, transparent 8%),
    radial-gradient(circle at 70% 20%, rgba(255,255,255,0.6) 0%, transparent 5%),
    radial-gradient(circle at 85% 60%, rgba(255,255,255,0.7) 0%, transparent 4%),
    radial-gradient(circle at 40% 80%, rgba(255,255,255,0.5) 0%, transparent 6%),
    radial-gradient(circle at 35% 25%, #9333ea 0%, #4c1d95 40%, #1e1b4b 80%, #0f0a1e 100%);
  box-shadow: 
    inset 15px 15px 30px rgba(168,85,247,0.3),
    inset -10px -15px 40px rgba(0,0,0,0.5),
    0 0 50px rgba(147,51,234,0.5),
    0 0 100px rgba(79,70,229,0.3),
    0 20px 35px rgba(0,0,0,0.3);
  animation: galaxyTwinkle 2s ease-in-out infinite;
  z-index: 10;
}
@keyframes galaxyTwinkle{
  0%, 100%{ filter: brightness(1) saturate(1); }
  50%{ filter: brightness(1.15) saturate(1.1); }
}
body.skin-tomato-galaxy .plant .flower::before{
  content: ""; position: absolute; top: -15px; left: 50%;
  transform: translateX(-50%) rotate(15deg);
  width: 110px; height: 110px;
  background: linear-gradient(135deg, #a78bfa, #7c3aed, #4c1d95);
  clip-path: polygon(50% 0%, 55% 42%, 90% 25%, 60% 55%, 80% 90%, 50% 65%, 20% 90%, 40% 55%, 10% 25%, 45% 42%);
  filter: drop-shadow(0 0 10px rgba(167,139,250,0.6));
  z-index: 11;
}
body.skin-tomato-galaxy .plant .flower::after{ display: none !important; }

/* ===================== */
/* MINI-JEU BONUS */
/* ===================== */
.minigameLayer{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 100;
}

.minigame-entity{
  position: absolute;
  font-size: 40px;
  cursor: pointer;
  pointer-events: auto;
  user-select: none;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  animation: entityFloat 2s ease-in-out infinite;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,.5)) drop-shadow(0 0 10px rgba(251,191,36,.3));
  z-index: 101;
}

.minigame-entity:hover{
  transform: scale(1.4) rotate(10deg);
  filter: drop-shadow(0 6px 15px rgba(0,0,0,.6)) drop-shadow(0 0 20px rgba(251,191,36,.6));
}

.minigame-entity.bee{
  animation: beeMove 3s ease-in-out infinite, beeWings 0.1s ease-in-out infinite;
  filter: drop-shadow(0 4px 10px rgba(251,191,36,.4));
}

.minigame-entity.bee::after {
  content: "✨";
  position: absolute;
  font-size: 12px;
  top: -5px; right: -5px;
  animation: beeSparkle 0.5s ease-in-out infinite;
  opacity: 0.8;
}

@keyframes beeSparkle {
  0%, 100% { opacity: 0.4; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.2); }
}

@keyframes beeWings {
  0%, 100% { transform: scaleX(1); }
  50% { transform: scaleX(0.95); }
}

.minigame-entity.pest{
  animation: pestWiggle 0.25s ease-in-out infinite;
  filter: drop-shadow(0 3px 6px rgba(239,68,68,.3));
}

.minigame-entity.pest.warning{
  animation: pestWarning 0.12s ease-in-out infinite;
  filter: drop-shadow(0 0 15px #ef4444) drop-shadow(0 0 30px rgba(239,68,68,.5));
}

.minigame-entity.caught{
  animation: catchPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  color: #22c55e;
  font-size: 22px;
  font-weight: bold;
  pointer-events: none;
  text-shadow: 0 0 20px rgba(34,197,94,.8);
}

.minigame-entity.crushed{
  animation: crushPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  pointer-events: none;
}

.minigame-entity.escaped{
  animation: escapeFade 0.6s ease-out forwards;
  color: #ef4444;
  font-size: 20px;
  font-weight: bold;
  pointer-events: none;
  text-shadow: 0 0 15px rgba(239,68,68,.6);
}

.minigame-entity.fadeout{
  animation: fadeOut 0.4s ease-out forwards;
}

.minigame-particle{
  position: fixed;
  font-size: 18px;
  pointer-events: none;
  animation: particleBurst 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  z-index: 102;
  filter: drop-shadow(0 0 8px currentColor);
}

@keyframes beeMove{
  0%, 100%{ transform: translate(0, 0) rotate(-8deg) scale(1); }
  25%{ transform: translate(var(--moveX, 25px), var(--moveY, -18px)) rotate(8deg) scale(1.05); }
  50%{ transform: translate(calc(var(--moveX, 25px) * 0.5), calc(var(--moveY, -18px) * -1)) rotate(-5deg) scale(0.98); }
  75%{ transform: translate(calc(var(--moveX, 25px) * -0.5), var(--moveY, -18px)) rotate(10deg) scale(1.03); }
}

@keyframes pestWiggle{
  0%, 100%{ transform: rotate(-5deg) scale(1); }
  50%{ transform: rotate(5deg) scale(1.05); }
}

@keyframes pestWarning{
  0%, 100%{ transform: scale(1) rotate(-8deg); }
  50%{ transform: scale(1.15) rotate(8deg); }
}

@keyframes catchPop{
  0%{ transform: scale(1); opacity: 1; }
  40%{ transform: scale(1.6) rotate(15deg); opacity: 1; }
  100%{ transform: scale(0.3) translateY(-50px) rotate(-30deg); opacity: 0; }
}

@keyframes crushPop{
  0%{ transform: scale(1); opacity: 1; }
  25%{ transform: scale(1.4) rotate(20deg); }
  100%{ transform: scale(0) rotate(360deg); opacity: 0; }
}

@keyframes escapeFade{
  0%{ transform: scale(1); opacity: 1; }
  100%{ transform: translateY(-30px) scale(1.3) rotate(10deg); opacity: 0; }
}

@keyframes fadeOut{
  0%{ opacity: 1; transform: scale(1) rotate(0deg); }
  100%{ opacity: 0; transform: scale(0.3) rotate(180deg); }
}

@keyframes particleBurst{
  0%{ 
    transform: translate(0, 0) scale(0.5) rotate(0deg); 
    opacity: 1; 
  }
  50% {
    transform: translate(var(--dx, 30px), var(--dy, -30px)) scale(1.2) rotate(180deg);
    opacity: 1;
  }
  100%{ 
    transform: translate(
      calc(cos(var(--angle)) * var(--distance)),
      calc(sin(var(--angle)) * var(--distance))
    ) scale(0.5); 
    opacity: 0; 
  }
}

@keyframes entityFloat{
  0%, 100%{ transform: translateY(0); }
  50%{ transform: translateY(-5px); }
}

/* ===================== */
/* ÉVÉNEMENTS MINI-JEU */
/* ===================== */
.event-banner{
  position: fixed;
  top: 120px;
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  padding: 16px 40px;
  border-radius: 16px;
  font-size: 24px;
  font-weight: 900;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0,0,0,.5);
  z-index: 9999;
  opacity: 0;
  transition: all 0.4s ease;
  box-shadow: 0 8px 30px rgba(0,0,0,.6), 0 0 50px rgba(255,255,255,.2);
  border: 3px solid rgba(255,255,255,.4);
}

.event-banner.show{
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  animation: bannerPulse 1s ease-in-out infinite;
}

.event-entity{
  font-size: 42px !important;
  filter: drop-shadow(0 0 10px currentColor) drop-shadow(0 2px 4px rgba(0,0,0,.4));
}

@keyframes bannerPulse{
  0%, 100%{ transform: translateX(-50%) scale(1); }
  50%{ transform: translateX(-50%) scale(1.05); }
}

/* Responsive */
@media (max-width: 980px){
  .layout{ grid-template-columns: 1fr; }
  .shop{ height:auto; }
  .miniRow{ grid-template-columns: 1fr; }
  .statsGrid{ grid-template-columns: 1fr 1fr; }
  .weatherRow{ grid-template-columns: 1fr; }
  .grid{ grid-template-columns: 1fr; }
}

/* ===================== */
/* 🎆 MEGA FX ANIMATIONS */
/* ===================== */

/* Règle globale: TOUS les FX ne doivent pas bloquer les clics */
.click-particle,
.star-particle,
.impact-ring,
.sparkle,
.coin-float,
.pollen-particle,
.damage-pop,
.levelup-explosion,
.mega-combo,
.screen-flash,
.loot-drop,
.combo-flames {
  pointer-events: none !important;
}

/* Particules de clic flottantes */
.click-particle {
  position: fixed;
  pointer-events: none;
  font-size: 26px;
  font-weight: 900;
  z-index: 9999;
  animation: floatUp 1.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  text-shadow: 
    0 0 12px currentColor,
    0 0 24px currentColor,
    0 0 40px currentColor,
    0 3px 6px rgba(0,0,0,.6);
  filter: drop-shadow(0 0 15px currentColor);
}

.click-particle::before {
  content: "✨";
  position: absolute;
  left: -15px;
  top: -5px;
  font-size: 12px;
  animation: sparkleOrbit 0.5s ease-out forwards;
  opacity: 0.8;
}

@keyframes floatUp {
  0% { 
    opacity: 1; 
    transform: translateY(0) scale(0.5) rotate(-5deg); 
  }
  15% {
    opacity: 1;
    transform: translateY(-10px) scale(1.4) rotate(3deg);
  }
  40% { 
    opacity: 1; 
    transform: translateY(-50px) scale(1.2) rotate(8deg); 
  }
  100% { 
    opacity: 0; 
    transform: translateY(-120px) scale(0.4) rotate(-15deg); 
  }
}

@keyframes sparkleOrbit {
  0% { transform: rotate(0deg) translateX(10px); opacity: 1; }
  100% { transform: rotate(180deg) translateX(20px); opacity: 0; }
}

/* Particules d'étoiles */
.star-particle {
  position: fixed;
  pointer-events: none;
  font-size: 20px;
  z-index: 9998;
  animation: starBurst 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  filter: drop-shadow(0 0 12px gold);
}

@keyframes starBurst {
  0% { 
    opacity: 1; 
    transform: translate(0, 0) scale(0.3) rotate(0deg); 
  }
  30% {
    opacity: 1;
    transform: translate(calc(var(--tx) * 0.3), calc(var(--ty) * 0.3)) scale(1.3) rotate(180deg);
  }
  100% { 
    opacity: 0; 
    transform: translate(var(--tx), var(--ty)) scale(0) rotate(360deg); 
  }
}

/* Effet de vague d'impact */
.impact-ring {
  position: fixed;
  pointer-events: none;
  border: 4px solid rgba(34, 197, 94, 0.9);
  border-radius: 50%;
  z-index: 9997;
  animation: ringExpand 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  box-shadow: 
    0 0 20px rgba(34, 197, 94, 0.6),
    inset 0 0 20px rgba(34, 197, 94, 0.3);
}

.impact-ring::after {
  content: "";
  position: absolute;
  inset: -8px;
  border: 2px solid rgba(34, 197, 94, 0.4);
  border-radius: 50%;
  animation: ringExpandInner 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes ringExpand {
  0% { 
    width: 10px; 
    height: 10px; 
    opacity: 1;
    transform: translate(-50%, -50%) scale(0.5);
    border-width: 6px;
  }
  50% {
    opacity: 0.8;
    border-width: 4px;
  }
  100% { 
    width: 180px; 
    height: 180px; 
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.2);
    border-width: 1px;
  }
}

@keyframes ringExpandInner {
  0% { transform: scale(0.8); opacity: 0.5; }
  100% { transform: scale(1.3); opacity: 0; }
}

/* Combo streak flames */
.combo-flames {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  font-size: 30px;
  pointer-events: none;
  animation: flameRise 0.5s ease-out infinite;
  filter: drop-shadow(0 0 10px #f59e0b);
}

@keyframes flameRise {
  0%, 100% { transform: translateX(-50%) translateY(0) scale(1); }
  50% { transform: translateX(-50%) translateY(-10px) scale(1.1); }
}

/* Rainbow shimmer effect */
.rainbow-shimmer {
  background: linear-gradient(
    90deg, 
    #ff0000, #ff7700, #ffdd00, 
    #00ff00, #0077ff, #7700ff, #ff00ff
  );
  background-size: 400% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: rainbowShift 2s linear infinite;
}

@keyframes rainbowShift {
  0% { background-position: 0% 50%; }
  100% { background-position: 400% 50%; }
}

/* Glow pulse effect */
.glow-pulse {
  animation: glowPulse 1.5s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { 
    filter: drop-shadow(0 0 5px currentColor); 
  }
  50% { 
    filter: drop-shadow(0 0 20px currentColor) drop-shadow(0 0 40px currentColor); 
  }
}

/* Bounce in animation */
.bounce-in {
  animation: bounceIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes bounceIn {
  0% { transform: scale(0); opacity: 0; }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); opacity: 1; }
}

/* Shake effect */
.shake {
  animation: shake 0.5s ease-in-out;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-10px) rotate(-2deg); }
  40% { transform: translateX(10px) rotate(2deg); }
  60% { transform: translateX(-10px) rotate(-2deg); }
  80% { transform: translateX(10px) rotate(2deg); }
}

/* Pot click animation améliorée */
.pot-click {
  animation: potClick 0.15s ease-out;
}

@keyframes potClick {
  0% { transform: scale(1); }
  50% { transform: scale(0.92) rotate(-2deg); }
  100% { transform: scale(1); }
}

/* Critical hit effect */
.crit-effect {
  animation: critFlash 0.3s ease-out;
}

@keyframes critFlash {
  0% { filter: brightness(1); }
  50% { filter: brightness(2) saturate(1.5); }
  100% { filter: brightness(1); }
}

/* Floating coins animation */
.coin-float {
  position: fixed;
  pointer-events: none !important;
  font-size: 28px;
  z-index: 9999;
  animation: coinDrop 1s ease-in forwards;
}

@keyframes coinDrop {
  0% { 
    opacity: 1; 
    transform: translateY(0) rotateY(0deg); 
  }
  50% { 
    opacity: 1; 
    transform: translateY(-60px) rotateY(180deg); 
  }
  100% { 
    opacity: 0; 
    transform: translateY(30px) rotateY(360deg); 
  }
}

/* Level up explosion */
.levelup-explosion {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 80px;
  font-weight: 900;
  z-index: 10000;
  pointer-events: none;
  animation: levelUpBoom 1.5s ease-out forwards;
  text-shadow: 
    0 0 20px #fbbf24,
    0 0 40px #f59e0b,
    0 0 60px #d97706;
  color: #fbbf24;
}

@keyframes levelUpBoom {
  0% { 
    opacity: 0; 
    transform: translate(-50%, -50%) scale(0) rotate(-180deg); 
  }
  30% { 
    opacity: 1; 
    transform: translate(-50%, -50%) scale(1.3) rotate(10deg); 
  }
  50% { 
    transform: translate(-50%, -50%) scale(1) rotate(0deg); 
  }
  100% { 
    opacity: 0; 
    transform: translate(-50%, -50%) scale(2) rotate(20deg); 
  }
}

/* Sparkle burst */
.sparkle {
  position: fixed;
  pointer-events: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  z-index: 9998;
  animation: sparkleBurst 0.6s ease-out forwards;
}

@keyframes sparkleBurst {
  0% { 
    opacity: 1; 
    transform: translate(0, 0) scale(1);
    box-shadow: 0 0 10px currentColor, 0 0 20px currentColor;
  }
  100% { 
    opacity: 0; 
    transform: translate(var(--tx), var(--ty)) scale(0);
    box-shadow: 0 0 0 currentColor;
  }
}

/* Shop item hover enhanced */
.shopItem {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.shopItem:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 
    0 15px 40px rgba(34, 197, 94, 0.3),
    0 0 30px rgba(34, 197, 94, 0.2),
    inset 0 1px 0 rgba(255,255,255,.2);
}

.shopItem:active {
  transform: translateY(0) scale(0.98);
}

/* Button hover glow */
.btn {
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.btn::after {
  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.3s, height 0.3s;
}

.btn:hover::after {
  width: 200%;
  height: 200%;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(34, 197, 94, 0.4);
}

.btn:active {
  transform: translateY(1px) scale(0.98);
}

/* Toast animations enhanced */
.toast {
  animation: toastSlide 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes toastSlide {
  0% { 
    transform: translateX(100%) scale(0.5); 
    opacity: 0; 
  }
  100% { 
    transform: translateX(0) scale(1); 
    opacity: 1; 
  }
}

/* Loot drop animation */
.loot-drop {
  animation: lootDrop 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes lootDrop {
  0% { 
    transform: translateY(-100px) rotate(-180deg) scale(0); 
    opacity: 0;
  }
  60% { 
    transform: translateY(10px) rotate(10deg) scale(1.2); 
  }
  100% { 
    transform: translateY(0) rotate(0deg) scale(1); 
    opacity: 1;
  }
}

/* Screen flash for boss damage */
.screen-flash {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle, rgba(239,68,68,0.3), transparent);
  pointer-events: none;
  z-index: 9996;
  animation: screenFlash 0.3s ease-out forwards;
}

@keyframes screenFlash {
  0% { opacity: 1; }
  100% { opacity: 0; }
}

/* Number counter animation */
.counter-up {
  animation: counterPop 0.3s ease-out;
}

@keyframes counterPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.2); color: #22c55e; }
  100% { transform: scale(1); }
}

/* Card entrance */
.card {
  animation: cardEnter 0.5s ease-out;
}

@keyframes cardEnter {
  0% { 
    opacity: 0; 
    transform: translateY(30px); 
  }
  100% { 
    opacity: 1; 
    transform: translateY(0); 
  }
}

/* Pulsing border for active elements */
.pulse-border {
  animation: pulseBorder 2s ease-in-out infinite;
}

@keyframes pulseBorder {
  0%, 100% { 
    border-color: rgba(34, 197, 94, 0.5);
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.3);
  }
  50% { 
    border-color: rgba(34, 197, 94, 1);
    box-shadow: 0 0 30px rgba(34, 197, 94, 0.6);
  }
}

/* Heat bar pulse animation */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* Floating animation for icons */
.float-icon {
  animation: floatIcon 3s ease-in-out infinite;
}

@keyframes floatIcon {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* XP bar fill animation */
.xpBar .fill {
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.xpBar .fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg, 
    transparent, 
    rgba(255,255,255,0.4), 
    transparent
  );
  animation: xpShine 2s ease-in-out infinite;
}

@keyframes xpShine {
  0% { left: -100%; }
  50%, 100% { left: 100%; }
}

/* Weather icon special effects */
.weatherIcon {
  transition: all 0.3s ease;
}

.weatherIcon:hover {
  transform: scale(1.2) rotate(10deg);
  filter: drop-shadow(0 0 15px currentColor);
}

/* Damage number pop */
.damage-pop {
  position: fixed;
  pointer-events: none;
  font-size: 32px;
  font-weight: 900;
  z-index: 9999;
  animation: damagePop 0.8s ease-out forwards;
  color: #ef4444;
  text-shadow: 
    0 0 10px #ef4444,
    0 2px 4px rgba(0,0,0,.8),
    -1px -1px 0 #000,
    1px -1px 0 #000,
    -1px 1px 0 #000,
    1px 1px 0 #000;
}

@keyframes damagePop {
  0% { 
    opacity: 1; 
    transform: translateY(0) scale(0.5); 
  }
  20% { 
    transform: translateY(-20px) scale(1.4); 
  }
  100% { 
    opacity: 0; 
    transform: translateY(-80px) scale(0.8); 
  }
}

/* Boss health bar shake */
.boss-shake {
  animation: bossShake 0.3s ease-in-out;
}

@keyframes bossShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

/* Mega combo effect */
.mega-combo {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 60px;
  font-weight: 900;
  z-index: 10000;
  pointer-events: none;
  animation: megaCombo 1s ease-out forwards;
  background: linear-gradient(45deg, #ff6b6b, #feca57, #48dbfb, #ff9ff3);
  background-size: 400% 400%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@keyframes megaCombo {
  0% { 
    opacity: 0; 
    transform: translate(-50%, -50%) scale(0) rotate(-30deg); 
    background-position: 0% 50%;
  }
  50% { 
    opacity: 1; 
    transform: translate(-50%, -50%) scale(1.3) rotate(5deg); 
    background-position: 100% 50%;
  }
  100% { 
    opacity: 0; 
    transform: translate(-50%, -50%) scale(0.8) rotate(0deg); 
    background-position: 200% 50%;
  }
}

/* Pollen particle - Improved */
.pollen-particle {
  position: fixed;
  pointer-events: none;
  font-size: 22px;
  z-index: 9998;
  animation: pollenFloat 1.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  filter: drop-shadow(0 0 10px rgba(251, 191, 36, 0.6)) drop-shadow(0 0 20px rgba(251, 191, 36, 0.4));
}

.pollen-particle::after {
  content: "✦";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 8px;
  color: gold;
  animation: pollenSparkle 0.3s ease-in-out infinite alternate;
}

@keyframes pollenSparkle {
  0% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 1; transform: translate(-50%, -50%) scale(1.5); }
}

@keyframes pollenFloat {
  0% { 
    opacity: 1; 
    transform: translate(0, 0) rotate(0deg) scale(0.5); 
  }
  20% {
    opacity: 1;
    transform: translate(calc(var(--dx, 30px) * 0.2), -20px) rotate(90deg) scale(1.2);
  }
  100% { 
    opacity: 0; 
    transform: translate(var(--tx), -100px) rotate(360deg); 
  }
}

/* === POPUP RAID DE POLICE === */
.raid-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.raid-popup-overlay.visible {
  opacity: 1;
}

.raid-popup {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f0f23 100%);
  border: 3px solid #ff0000;
  border-radius: 16px;
  padding: 30px 40px;
  text-align: center;
  max-width: 400px;
  box-shadow: 0 0 50px rgba(255, 0, 0, 0.5), inset 0 0 30px rgba(255, 0, 0, 0.1);
  animation: raidShake 0.5s ease-in-out;
}

@keyframes raidShake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
  20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.raid-cars, .raid-cars-bottom {
  font-size: 40px;
  animation: carsFlash 0.5s infinite alternate;
}

@keyframes carsFlash {
  0% { filter: brightness(1); }
  100% { filter: brightness(1.5) drop-shadow(0 0 10px #ff0000); }
}

.raid-title {
  font-size: 28px;
  font-weight: bold;
  color: #ff0000;
  margin: 15px 0;
  text-shadow: 0 0 20px #ff0000;
  animation: titlePulse 0.3s infinite alternate;
}

@keyframes titlePulse {
  0% { transform: scale(1); }
  100% { transform: scale(1.05); }
}

.raid-sirens {
  font-size: 30px;
  margin: 10px 0;
  animation: sirenRotate 0.2s infinite alternate;
}

@keyframes sirenRotate {
  0% { transform: rotate(-5deg); }
  100% { transform: rotate(5deg); }
}

.raid-message {
  font-size: 16px;
  color: #ccc;
  margin: 20px 0;
}

.raid-loss {
  background: rgba(255, 0, 0, 0.2);
  border: 2px solid #ff4444;
  border-radius: 10px;
  padding: 15px;
  margin: 20px 0;
}

.raid-loss-label {
  display: block;
  font-size: 14px;
  color: #aaa;
  margin-bottom: 8px;
}

.raid-loss-amount {
  display: block;
  font-size: 32px;
  font-weight: bold;
  color: #ff4444;
  text-shadow: 0 0 10px #ff0000;
}

.raid-loss-percent {
  display: block;
  font-size: 14px;
  color: #ff8888;
  margin-top: 5px;
}

.raid-close-btn {
  margin-top: 20px;
  padding: 12px 30px;
  font-size: 16px;
  font-weight: bold;
  background: linear-gradient(135deg, #ff4444, #cc0000);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.raid-close-btn:hover {
  background: linear-gradient(135deg, #ff6666, #ff0000);
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(255, 0, 0, 0.5);
}

/* ===================== */
/* SERRE / GREENHOUSE */
/* ===================== */
.greenhouse-container {
  padding: 15px;
}

.greenhouse-stats {
  display: flex;
  gap: 15px;
  justify-content: center;
  padding: 10px 15px;
  background: rgba(34, 197, 94, 0.1);
  border-radius: 10px;
  margin-bottom: 15px;
  font-size: 13px;
  font-weight: 600;
}

.greenhouse-grid {
  display: grid;
  gap: 8px;
  margin-bottom: 20px;
}

.plot {
  aspect-ratio: 1;
  background: linear-gradient(135deg, rgba(139, 69, 19, 0.3), rgba(101, 67, 33, 0.4));
  border: 2px solid rgba(139, 69, 19, 0.5);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}

.plot:hover {
  transform: scale(1.05);
  border-color: rgba(34, 197, 94, 0.7);
  box-shadow: 0 0 15px rgba(34, 197, 94, 0.3);
}

.plot-empty {
  font-size: 24px;
  color: rgba(139, 69, 19, 0.5);
}

.plot-seedling {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(139, 69, 19, 0.3));
}

.plot-growing {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.25), rgba(139, 69, 19, 0.25));
}

.plot-ready {
  animation: plotReady 0.5s infinite alternate;
  border-color: #22c55e;
  box-shadow: 0 0 15px rgba(34, 197, 94, 0.5);
}

@keyframes plotReady {
  0% { transform: scale(1); }
  100% { transform: scale(1.05); }
}

.plot-rotten {
  background: linear-gradient(135deg, rgba(100, 100, 100, 0.3), rgba(50, 50, 50, 0.4));
  border-color: rgba(100, 100, 100, 0.5);
  opacity: 0.7;
}

.plot-progress {
  position: absolute;
  bottom: 4px;
  left: 4px;
  right: 4px;
  height: 4px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 2px;
  overflow: hidden;
}

.plot-progress > div {
  height: 100%;
  background: linear-gradient(90deg, #22c55e, #86efac);
  border-radius: 2px;
  transition: width 0.3s;
}

/* Sélection des graines */
.seed-selection {
  background: rgba(30, 41, 59, 0.6);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 15px;
}

.seed-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #86efac;
}

.seed-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.seed-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 12px;
  border-radius: 8px;
  border: 2px solid rgba(34, 197, 94, 0.3);
  background: rgba(34, 197, 94, 0.1);
  cursor: pointer;
  transition: all 0.2s;
  min-width: 80px;
}

.seed-btn:hover {
  border-color: rgba(34, 197, 94, 0.7);
  transform: translateY(-2px);
}

.seed-btn.selected {
  border-color: #22c55e;
  background: rgba(34, 197, 94, 0.25);
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.4);
}

.seed-btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.seed-emoji {
  font-size: 24px;
}

.seed-name {
  font-size: 11px;
  font-weight: 600;
  color: #e2e8f0;
  margin-top: 2px;
}

.seed-cost {
  font-size: 10px;
  color: #86efac;
}

.seed-time {
  font-size: 9px;
  color: #94a3b8;
}

/* Rareté des graines */
.seed-common {
  border-color: rgba(148, 163, 184, 0.3);
  background: rgba(148, 163, 184, 0.1);
}

.seed-rare {
  border-color: rgba(59, 130, 246, 0.4);
  background: rgba(59, 130, 246, 0.15);
}

.seed-rare .seed-name {
  color: #93c5fd;
}

.seed-ultra {
  border-color: rgba(168, 85, 247, 0.4);
  background: rgba(168, 85, 247, 0.15);
}

.seed-ultra .seed-name {
  color: #d8b4fe;
}

.seed-legendary {
  border-color: rgba(251, 191, 36, 0.4);
  background: rgba(251, 191, 36, 0.15);
  animation: legendaryGlow 2s infinite alternate;
}

.seed-legendary .seed-name {
  color: #fcd34d;
}

@keyframes legendaryGlow {
  0% { box-shadow: 0 0 5px rgba(251, 191, 36, 0.3); }
  100% { box-shadow: 0 0 15px rgba(251, 191, 36, 0.5); }
}

/* Améliorations de serre */
.greenhouse-upgrades {
  background: rgba(30, 41, 59, 0.6);
  border-radius: 12px;
  padding: 12px;
}

.upgrade-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.upgrade-btn {
  padding: 10px 15px;
  border-radius: 8px;
  border: 2px solid rgba(59, 130, 246, 0.4);
  background: rgba(59, 130, 246, 0.15);
  color: #93c5fd;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.upgrade-btn:hover {
  border-color: #3b82f6;
  background: rgba(59, 130, 246, 0.25);
  transform: translateY(-2px);
}

.upgrade-btn small {
  display: block;
  font-size: 10px;
  color: #94a3b8;
  margin-top: 4px;
}

/* ===============================
   MINI-JEUX MODALS
   =============================== */

.minigame-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: fadeIn 0.3s ease;
}

.minigame-content {
  background: linear-gradient(145deg, #1e293b, #0f172a);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 30px;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.minigame-content h2 {
  margin: 0 0 10px 0;
  font-size: 28px;
  text-align: center;
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s;
}

.modal-close:hover {
  background: rgba(239, 68, 68, 0.4);
  transform: scale(1.1);
}

/* ===============================
   ROUE DE LA FORTUNE
   =============================== */

.wheel-subtitle {
  text-align: center;
  color: #94a3b8;
  margin-bottom: 20px;
  animation: fadeInDown 0.5s ease-out;
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

.wheel-container {
  position: relative;
  width: 300px;
  height: 300px;
  margin: 25px auto;
  filter: drop-shadow(0 10px 30px rgba(251, 191, 36, 0.3));
}

.wheel-container::before {
  content: "";
  position: absolute;
  inset: -15px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #fbbf24, #f97316, #ef4444, #f97316, #fbbf24);
  animation: wheelOuterGlow 3s linear infinite;
  opacity: 0.5;
  filter: blur(10px);
  z-index: -1;
}

@keyframes wheelOuterGlow {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.wheel-pointer {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 36px;
  color: #fbbf24;
  z-index: 10;
  filter: drop-shadow(0 0 15px rgba(251, 191, 36, 0.8));
  animation: pointerBounce 1s ease-in-out infinite;
}

@keyframes pointerBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-5px); }
}

.wheel {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  position: relative;
  overflow: hidden;
  border: 5px solid #fbbf24;
  box-shadow: 
    0 0 40px rgba(251, 191, 36, 0.4),
    inset 0 0 30px rgba(0,0,0,0.3),
    0 0 0 3px rgba(249,115,22,0.6);
  transition: transform 0.1s ease-out;
}

.wheel::after {
  content: "";
  position: absolute;
  inset: 30%;
  border-radius: 50%;
  background: 
    radial-gradient(circle, rgba(251,191,36,.9), rgba(249,115,22,.9));
  border: 3px solid rgba(255,255,255,0.3);
  box-shadow: 
    0 0 20px rgba(251,191,36,.5),
    inset 0 2px 5px rgba(255,255,255,0.3);
  z-index: 5;
}

.wheel-segment {
  position: absolute;
  width: 50%;
  height: 50%;
  left: 50%;
  top: 0;
  transform-origin: 0% 100%;
  transform: rotate(calc(var(--i) * 36deg)) skewY(-54deg);
  background: var(--color);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: filter 0.3s ease;
}

.wheel-segment::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent 50%);
}

.wheel-segment span {
  transform: skewY(54deg) rotate(18deg);
  font-size: 11px;
  font-weight: bold;
  color: white;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.7), 0 0 10px rgba(0,0,0,0.3);
  position: absolute;
  top: 35%;
  left: 5%;
}

.wheel-result {
  text-align: center;
  font-size: 22px;
  font-weight: bold;
  min-height: 50px;
  margin: 20px 0;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform: scale(0.8);
}

.wheel-result.show {
  opacity: 1;
  transform: scale(1);
}

.wheel-result.jackpot {
  color: #fbbf24;
  animation: jackpotPulse 0.4s ease infinite;
  font-size: 28px;
  text-shadow: 0 0 30px rgba(251,191,36,.8);
}

@keyframes jackpotPulse {
  0%, 100% { transform: scale(1); filter: brightness(1); }
  50% { transform: scale(1.1); filter: brightness(1.3); }
}

.wheel-spin-btn {
  width: 100%;
  padding: 16px;
  font-size: 18px;
  border-radius: 14px;
  background: linear-gradient(135deg, #fbbf24, #f97316);
  border: none;
  color: #0f172a;
  font-weight: 900;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
}

.wheel-spin-btn::before {
  content: "";
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  animation: btnShine 2s linear infinite;
  pointer-events: none;
  z-index: -1;
}

@keyframes btnShine {
  0% { left: -100%; }
  100% { left: 100%; }
}

.wheel-spin-btn:hover:not(:disabled) {
  transform: scale(1.05) translateY(-3px);
  box-shadow: 
    0 8px 30px rgba(251, 191, 36, 0.6),
    0 0 50px rgba(251, 191, 36, 0.3);
}

.wheel-spin-btn:active:not(:disabled) {
  transform: scale(0.98);
}

.wheel-spin-btn:disabled {
  background: linear-gradient(135deg, #374151, #1f2937);
  color: #6b7280;
  cursor: not-allowed;
}

/* ===============================
   COURSE DE LIMACES
   =============================== */

.slug-subtitle {
  text-align: center;
  color: #94a3b8;
  margin-bottom: 20px;
}

.slug-bet-section {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-bottom: 20px;
}

.slug-bet-section input {
  width: 120px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 2px solid rgba(251, 191, 36, 0.4);
  background: rgba(0, 0, 0, 0.3);
  color: #fbbf24;
  font-size: 16px;
  font-weight: bold;
  text-align: center;
}

.slug-max {
  color: #94a3b8;
  font-size: 12px;
}

.slug-selection {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}

.slug-choice {
  padding: 15px;
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  background: rgba(30, 41, 59, 0.5);
  cursor: pointer;
  transition: all 0.3s;
  text-align: center;
}

.slug-choice:hover {
  border-color: var(--slug-color);
  transform: translateY(-3px);
}

.slug-choice.selected {
  border-color: var(--slug-color);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 20px color-mix(in srgb, var(--slug-color) 30%, transparent);
}

.slug-emoji {
  font-size: 32px;
  display: block;
  margin-bottom: 5px;
}

.slug-name {
  display: block;
  font-weight: bold;
  color: var(--slug-color);
  margin-bottom: 5px;
}

.slug-odds {
  display: block;
  font-size: 14px;
  color: #86efac;
}

.slug-track {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 12px;
  padding: 15px;
  margin-bottom: 15px;
}

.slug-lane {
  display: flex;
  align-items: center;
  margin: 8px 0;
  position: relative;
  height: 30px;
}

.slug-runner {
  position: absolute;
  left: 0;
  font-size: 24px;
  transition: left 0.1s linear;
  z-index: 2;
}

.slug-progress {
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  margin: 0 35px;
}

.slug-finish {
  font-size: 20px;
}

.slug-result {
  text-align: center;
  font-size: 18px;
  font-weight: bold;
  min-height: 30px;
  margin: 10px 0;
  opacity: 0;
  transition: opacity 0.3s;
}

.slug-result.show {
  opacity: 1;
}

.slug-result.win {
  color: #22c55e;
}

.slug-result.lose {
  color: #ef4444;
}

/* ===============================
   CHASSE AU TRÉSOR
   =============================== */

.treasure-subtitle {
  text-align: center;
  color: #94a3b8;
  margin-bottom: 20px;
}

.treasure-clues {
  margin-bottom: 25px;
}

.treasure-clue {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 15px;
  background: rgba(30, 41, 59, 0.5);
  border: 2px solid rgba(139, 92, 246, 0.3);
  border-radius: 10px;
  margin-bottom: 10px;
  transition: all 0.3s;
}

.treasure-clue.solved {
  border-color: #22c55e;
  background: rgba(34, 197, 94, 0.1);
}

.clue-number {
  width: 28px;
  height: 28px;
  background: rgba(139, 92, 246, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 14px;
}

.treasure-clue.solved .clue-number {
  background: rgba(34, 197, 94, 0.3);
}

.clue-text {
  flex: 1;
  font-size: 14px;
}

.clue-hint {
  font-size: 11px;
  color: #94a3b8;
  font-style: italic;
}

.treasure-chest {
  width: 100px;
  height: 100px;
  margin: 20px auto;
  font-size: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s;
}

.treasure-chest.locked {
  background: rgba(107, 114, 128, 0.2);
  border: 3px solid #6b7280;
}

.treasure-chest.found {
  background: rgba(251, 191, 36, 0.2);
  border: 3px solid #fbbf24;
  animation: pulse 1s ease infinite;
  box-shadow: 0 0 30px rgba(251, 191, 36, 0.4);
}

.treasure-result {
  text-align: center;
  font-size: 20px;
  font-weight: bold;
  color: #fbbf24;
  min-height: 30px;
  margin: 15px 0;
  opacity: 0;
  transition: opacity 0.3s;
}

.treasure-result.show {
  opacity: 1;
}

.treasure-claim {
  width: 100%;
  padding: 15px;
  font-size: 18px;
  border-radius: 12px;
  background: linear-gradient(135deg, #fbbf24, #f97316);
  border: none;
  color: #0f172a;
  font-weight: bold;
  cursor: pointer;
  animation: pulse 1.5s ease infinite;
}

/* ===============================
   BOUTONS MINI-JEUX
   =============================== */

.minigames-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 15px 0;
}

.minigame-btn {
  padding: 10px 16px;
  border-radius: 10px;
  border: 2px solid;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.minigame-btn.wheel {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.2), rgba(249, 115, 22, 0.1));
  border-color: rgba(251, 191, 36, 0.5);
  color: #fbbf24;
}

.minigame-btn.slug {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(16, 185, 129, 0.1));
  border-color: rgba(34, 197, 94, 0.5);
  color: #22c55e;
}

.minigame-btn.treasure {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(168, 85, 247, 0.1));
  border-color: rgba(139, 92, 246, 0.5);
  color: #a78bfa;
}

.minigame-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.minigame-btn .cooldown {
  font-size: 10px;
  opacity: 0.7;
}

/* ===============================
   � BADGE ÉVÉNEMENT BOUTIQUE
   =============================== */

.event-badge {
  font-size: 14px;
  margin-left: 4px;
  animation: eventBadgePulse 2s ease-in-out infinite;
  cursor: help;
  filter: drop-shadow(0 0 3px rgba(255, 215, 0, 0.5));
}

@keyframes eventBadgePulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.15); opacity: 0.8; }
}

/* ===============================
   �🎁 ÉVÉNEMENTS D'OBJETS POPUP
   =============================== */

.item-event-popup {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 280px;
  background: linear-gradient(145deg, #1a1a2e, #16213e);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(34, 197, 94, 0.3);
  z-index: 9999;
  transform: translateX(350px) scale(0.9);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  border: 2px solid rgba(34, 197, 94, 0.5);
}

.item-event-popup.show {
  transform: translateX(0) scale(1);
  opacity: 1;
}

.item-event-popup.hide {
  transform: translateX(350px) scale(0.9);
  opacity: 0;
}

.item-event-header {
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
}

.item-event-source {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 10px;
  border-radius: 12px;
  background: rgba(34, 197, 94, 0.2);
  color: #86efac;
}

.item-event-icon {
  font-size: 42px;
  text-align: center;
  margin: 8px 0;
  animation: itemEventBounce 0.6s ease-out;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.3));
}

@keyframes itemEventBounce {
  0% { transform: scale(0) rotate(-15deg); }
  50% { transform: scale(1.2) rotate(5deg); }
  70% { transform: scale(0.9) rotate(-3deg); }
  100% { transform: scale(1) rotate(0deg); }
}

.item-event-message {
  font-size: 13px;
  color: #e2e8f0;
  text-align: center;
  line-height: 1.4;
  margin-bottom: 12px;
  font-style: italic;
}

.item-event-reward {
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  padding: 10px 14px;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(16, 185, 129, 0.15));
  border: 1px solid rgba(34, 197, 94, 0.4);
  border-radius: 10px;
  color: #86efac;
  animation: rewardGlow 1.5s ease-in-out infinite;
}

@keyframes rewardGlow {
  0%, 100% { box-shadow: 0 0 10px rgba(34, 197, 94, 0.2); }
  50% { box-shadow: 0 0 20px rgba(34, 197, 94, 0.4); }
}

/* =============================================
   � SYSTÈME DE DÉCORATION DU JARDIN - GAMING EDITION
   Ultra stylé avec effets FX et raretés !
   ============================================= */

/* Container principal du jardin avec décoration */
.gardenContainer {
  position: relative;
  padding: 20px;
  border-radius: 20px;
  margin: 10px 0;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

/* ═══════════════════════════════════════════════
   🖼️ ARRIÈRE-PLANS ÉPIQUES - Gaming Themed
   ═══════════════════════════════════════════════ */

/* DEFAULT - Base mystique */
.gardenContainer[data-bg="default"] {
  background: 
    radial-gradient(ellipse at 50% 0%, rgba(34,197,94,.15) 0%, transparent 60%),
    linear-gradient(180deg, rgba(15,23,42,.95) 0%, rgba(30,41,59,.9) 100%);
}

/* 🌲 FORÊT MYSTIQUE - Common */
.gardenContainer[data-bg="bg_mysticForest"] {
  background: 
    url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><text y="80" font-size="40" opacity="0.08">🌲</text><text x="60" y="90" font-size="30" opacity="0.06">🌳</text></svg>') repeat,
    radial-gradient(ellipse at 30% 80%, rgba(34,197,94,.2) 0%, transparent 50%),
    linear-gradient(180deg, rgba(22,101,52,.3) 0%, rgba(6,78,59,.4) 100%);
  animation: forestMist 8s ease-in-out infinite;
}

@keyframes forestMist {
  0%, 100% { filter: brightness(1) saturate(1); }
  50% { filter: brightness(1.1) saturate(1.2); }
}

/* 🏖️ PLAGE PIXEL - Common */
.gardenContainer[data-bg="bg_pixelBeach"] {
  background: 
    repeating-linear-gradient(0deg, transparent 0px, transparent 4px, rgba(251,191,36,.05) 4px, rgba(251,191,36,.05) 8px),
    linear-gradient(180deg, rgba(135,206,250,.2) 0%, rgba(251,191,36,.15) 60%, rgba(59,130,246,.2) 100%);
  animation: beachWaves 4s ease-in-out infinite;
}

@keyframes beachWaves {
  0%, 100% { background-position: 0 0; }
  50% { background-position: 0 8px; }
}

/* 🌙 NUIT ÉTOILÉE - Common */
.gardenContainer[data-bg="bg_starryNight"] {
  background: 
    radial-gradient(circle at 15% 15%, #fff 1px, transparent 1px),
    radial-gradient(circle at 85% 25%, #fff 1.5px, transparent 1.5px),
    radial-gradient(circle at 45% 10%, #fef08a 2px, transparent 2px),
    radial-gradient(circle at 75% 65%, #fff 1px, transparent 1px),
    radial-gradient(circle at 25% 75%, #fff 1.5px, transparent 1.5px),
    radial-gradient(circle at 95% 85%, #fef08a 1px, transparent 1px),
    radial-gradient(circle at 55% 45%, #fff 1px, transparent 1px),
    linear-gradient(180deg, rgba(15,23,42,1) 0%, rgba(30,41,59,.95) 100%);
  animation: starTwinkle 3s ease-in-out infinite;
}

@keyframes starTwinkle {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.3); }
}

/* 🌋 VOLCAN ARDENT - Rare */
.gardenContainer[data-bg="bg_volcanicCore"] {
  background: 
    radial-gradient(ellipse at 50% 120%, rgba(239,68,68,.6) 0%, rgba(220,38,38,.4) 20%, transparent 50%),
    radial-gradient(circle at 30% 90%, rgba(251,146,60,.3) 0%, transparent 30%),
    radial-gradient(circle at 70% 85%, rgba(251,146,60,.25) 0%, transparent 25%),
    linear-gradient(180deg, rgba(55,48,48,.95) 0%, rgba(30,20,20,.98) 100%);
  animation: volcanoRumble 2s ease-in-out infinite;
  box-shadow: inset 0 -30px 60px rgba(239,68,68,.2);
}

@keyframes volcanoRumble {
  0%, 100% { transform: translateY(0); }
  25% { transform: translateY(-1px) translateX(1px); }
  75% { transform: translateY(1px) translateX(-1px); }
}

/* 🏰 DONJON SOMBRE - Rare */
.gardenContainer[data-bg="bg_darkDungeon"] {
  background: 
    repeating-linear-gradient(90deg, rgba(0,0,0,.1) 0px, rgba(0,0,0,.1) 40px, rgba(30,30,30,.2) 40px, rgba(30,30,30,.2) 42px),
    repeating-linear-gradient(0deg, rgba(0,0,0,.1) 0px, rgba(0,0,0,.1) 20px, rgba(30,30,30,.15) 20px, rgba(30,30,30,.15) 22px),
    radial-gradient(ellipse at 50% 20%, rgba(168,85,247,.1) 0%, transparent 50%),
    linear-gradient(180deg, rgba(20,15,25,.98) 0%, rgba(10,5,15,1) 100%);
  box-shadow: inset 0 0 100px rgba(0,0,0,.5);
}

/* ❄️ TOUNDRA GELÉE - Rare */
.gardenContainer[data-bg="bg_frozenTundra"] {
  background: 
    radial-gradient(ellipse at 20% 30%, rgba(147,197,253,.15) 0%, transparent 40%),
    radial-gradient(ellipse at 80% 60%, rgba(165,243,252,.1) 0%, transparent 35%),
    linear-gradient(180deg, rgba(224,242,254,.15) 0%, rgba(186,230,253,.1) 50%, rgba(125,211,252,.15) 100%);
  animation: snowfall 10s linear infinite;
  position: relative;
}

.gardenContainer[data-bg="bg_frozenTundra"]::before {
  content: '❄️';
  position: absolute;
  font-size: 10px;
  opacity: 0.3;
  animation: snowflakeFall 5s linear infinite;
  top: -20px;
  left: 20%;
}

@keyframes snowfall {
  0% { background-position: 0 0; }
  100% { background-position: 0 100px; }
}

@keyframes snowflakeFall {
  0% { transform: translateY(-20px) rotate(0deg); opacity: 0; }
  10% { opacity: 0.5; }
  90% { opacity: 0.5; }
  100% { transform: translateY(300px) rotate(360deg); opacity: 0; }
}

/* 🌀 VORTEX DU NÉANT - Epic */
.gardenContainer[data-bg="bg_voidVortex"] {
  background: 
    radial-gradient(circle at 50% 50%, rgba(88,28,135,.8) 0%, rgba(59,7,100,.9) 30%, rgba(15,3,30,1) 70%),
    conic-gradient(from 0deg at 50% 50%, rgba(168,85,247,.3), rgba(139,92,246,.1), rgba(168,85,247,.3));
  animation: voidPulse 3s ease-in-out infinite, voidRotate 20s linear infinite;
}

@keyframes voidPulse {
  0%, 100% { box-shadow: inset 0 0 50px rgba(168,85,247,.3); }
  50% { box-shadow: inset 0 0 100px rgba(168,85,247,.5); }
}

@keyframes voidRotate {
  0% { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(360deg); }
}

/* 🐉 REPAIRE DU DRAGON - Epic */
.gardenContainer[data-bg="bg_dragonLair"] {
  background: 
    radial-gradient(ellipse at 50% 80%, rgba(220,38,38,.4) 0%, transparent 40%),
    radial-gradient(ellipse at 20% 60%, rgba(251,146,60,.2) 0%, transparent 30%),
    radial-gradient(ellipse at 80% 40%, rgba(234,179,8,.15) 0%, transparent 25%),
    url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><text x="50" y="50" font-size="60" opacity="0.03" text-anchor="middle">🐉</text></svg>') center/contain no-repeat,
    linear-gradient(180deg, rgba(40,20,10,.95) 0%, rgba(20,10,5,1) 100%);
  animation: dragonBreath 4s ease-in-out infinite;
  box-shadow: inset 0 -40px 80px rgba(239,68,68,.15);
}

@keyframes dragonBreath {
  0%, 100% { filter: brightness(1) saturate(1); }
  50% { filter: brightness(1.2) saturate(1.3); }
}

/* 🌈 DIMENSION PRISMATIQUE - Epic */
.gardenContainer[data-bg="bg_prismaticRealm"] {
  background: 
    linear-gradient(45deg, 
      rgba(239,68,68,.15) 0%, 
      rgba(251,146,60,.15) 10%, 
      rgba(250,204,21,.15) 20%, 
      rgba(74,222,128,.15) 30%, 
      rgba(34,211,238,.15) 40%, 
      rgba(59,130,246,.15) 50%, 
      rgba(139,92,246,.15) 60%, 
      rgba(236,72,153,.15) 70%, 
      rgba(239,68,68,.15) 80%, 
      rgba(251,146,60,.15) 90%, 
      rgba(250,204,21,.15) 100%);
  background-size: 400% 400%;
  animation: rainbowCycle 5s ease infinite;
}

@keyframes rainbowCycle {
  0% { background-position: 0% 50%; filter: hue-rotate(0deg); }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; filter: hue-rotate(360deg); }
}

/* 🌌 COSMOS INFINI - Legendary */
.gardenContainer[data-bg="bg_cosmicInfinity"] {
  background: 
    radial-gradient(ellipse at 20% 20%, rgba(139,92,246,.4) 0%, transparent 30%),
    radial-gradient(ellipse at 80% 30%, rgba(59,130,246,.3) 0%, transparent 25%),
    radial-gradient(ellipse at 60% 70%, rgba(236,72,153,.25) 0%, transparent 30%),
    radial-gradient(ellipse at 30% 80%, rgba(34,211,238,.2) 0%, transparent 25%),
    radial-gradient(circle at 50% 50%, rgba(168,85,247,.1) 0%, transparent 50%),
    radial-gradient(circle at 10% 10%, #fff 1px, transparent 1px),
    radial-gradient(circle at 90% 20%, #fff 1px, transparent 1px),
    radial-gradient(circle at 30% 40%, #fef08a 1.5px, transparent 1.5px),
    radial-gradient(circle at 70% 60%, #fff 1px, transparent 1px),
    radial-gradient(circle at 50% 80%, #c4b5fd 1.5px, transparent 1.5px),
    linear-gradient(180deg, rgba(0,0,10,1) 0%, rgba(10,5,30,.98) 100%);
  animation: cosmicPulse 6s ease-in-out infinite, cosmicShimmer 15s linear infinite;
  box-shadow: inset 0 0 150px rgba(139,92,246,.2);
}

@keyframes cosmicPulse {
  0%, 100% { filter: brightness(1) contrast(1); }
  50% { filter: brightness(1.2) contrast(1.1); }
}

@keyframes cosmicShimmer {
  0% { background-position: 0 0; }
  100% { background-position: 100px 100px; }
}

/* ⚡ TEMPÊTE ÉLECTRIQUE - Legendary */
.gardenContainer[data-bg="bg_electricStorm"] {
  background: 
    radial-gradient(ellipse at 50% 0%, rgba(34,211,238,.3) 0%, transparent 40%),
    linear-gradient(180deg, rgba(15,23,42,.95) 0%, rgba(30,58,138,.3) 50%, rgba(15,23,42,.95) 100%);
  animation: stormFlash 0.5s ease-in-out infinite;
  position: relative;
}

@keyframes stormFlash {
  0%, 90%, 100% { filter: brightness(1); box-shadow: none; }
  92% { filter: brightness(2); box-shadow: inset 0 0 100px rgba(250,204,21,.5); }
  94% { filter: brightness(1); }
  96% { filter: brightness(1.8); box-shadow: inset 0 0 80px rgba(34,211,238,.4); }
}

/* 🕳️ TROU NOIR ABSOLU - Legendary */
.gardenContainer[data-bg="bg_eventHorizon"] {
  background: 
    radial-gradient(circle at 50% 50%, rgba(0,0,0,1) 0%, rgba(15,3,30,.95) 20%, rgba(30,10,50,.9) 40%, rgba(88,28,135,.3) 60%, transparent 80%),
    conic-gradient(from 0deg at 50% 50%, 
      rgba(168,85,247,.4), rgba(59,130,246,.3), rgba(34,211,238,.3), 
      rgba(74,222,128,.3), rgba(250,204,21,.3), rgba(251,146,60,.3), 
      rgba(239,68,68,.3), rgba(236,72,153,.3), rgba(168,85,247,.4)),
    linear-gradient(180deg, rgba(0,0,0,1) 0%, rgba(10,5,20,1) 100%);
  animation: blackholeSpiral 10s linear infinite, blackholePulse 3s ease-in-out infinite;
}

@keyframes blackholeSpiral {
  0% { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(360deg); }
}

@keyframes blackholePulse {
  0%, 100% { box-shadow: inset 0 0 80px rgba(168,85,247,.4), 0 0 30px rgba(168,85,247,.2); }
  50% { box-shadow: inset 0 0 120px rgba(168,85,247,.6), 0 0 50px rgba(168,85,247,.3); }
}

/* ═══════════════════════════════════════════════
   🚧 CLÔTURES GAMING - Avec effets lumineux
   ═══════════════════════════════════════════════ */

.gardenFence {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 35px;
  pointer-events: none;
  z-index: 1;
  transition: all 0.3s ease;
}

/* 🪵 Barrière en Bois - Common */
.gardenContainer[data-fence="fence_woodenBarrier"] .gardenFence {
  background: 
    repeating-linear-gradient(90deg, 
      transparent 0px, transparent 12px, 
      rgba(139,90,43,.7) 12px, rgba(139,90,43,.7) 16px,
      transparent 16px, transparent 18px);
  border-top: 4px solid rgba(160,110,60,.9);
  box-shadow: 0 -2px 10px rgba(139,90,43,.3);
}

/* 🪨 Mur de Pierre - Common */
.gardenContainer[data-fence="fence_stoneWall"] .gardenFence {
  background: 
    repeating-linear-gradient(90deg, 
      rgba(100,100,100,.6) 0px, rgba(100,100,100,.6) 20px, 
      rgba(70,70,70,.5) 20px, rgba(70,70,70,.5) 22px,
      rgba(90,90,90,.6) 22px, rgba(90,90,90,.6) 45px,
      rgba(60,60,60,.5) 45px, rgba(60,60,60,.5) 47px);
  border-top: 5px solid rgba(130,130,130,.8);
  border-radius: 3px;
}

/* ⚔️ Palissade Guerrière - Rare */
.gardenContainer[data-fence="fence_warriorPalisade"] .gardenFence {
  background: 
    repeating-linear-gradient(90deg, 
      transparent 0px, transparent 8px, 
      rgba(80,60,40,.8) 8px, rgba(80,60,40,.8) 12px);
  border-top: 6px solid rgba(100,80,60,.9);
  position: relative;
}

.gardenContainer[data-fence="fence_warriorPalisade"] .gardenFence::before {
  content: '⚔️';
  position: absolute;
  top: -25px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 16px;
  opacity: 0.6;
}

/* 🔮 Barrière Magique - Rare */
.gardenContainer[data-fence="fence_magicBarrier"] .gardenFence {
  background: linear-gradient(180deg, rgba(168,85,247,.4) 0%, rgba(139,92,246,.5) 100%);
  border-top: 3px solid rgba(196,181,253,.7);
  box-shadow: 0 0 20px rgba(168,85,247,.4), 0 0 40px rgba(168,85,247,.2);
  animation: magicBarrierPulse 2s ease-in-out infinite;
}

@keyframes magicBarrierPulse {
  0%, 100% { box-shadow: 0 0 20px rgba(168,85,247,.4), 0 0 40px rgba(168,85,247,.2); }
  50% { box-shadow: 0 0 30px rgba(168,85,247,.6), 0 0 60px rgba(168,85,247,.3); }
}

/* 🌿 Haie Enchantée - Rare */
.gardenContainer[data-fence="fence_enchantedHedge"] .gardenFence {
  background: linear-gradient(180deg, rgba(34,197,94,.7) 0%, rgba(22,101,52,.8) 100%);
  border-top: 4px solid rgba(74,222,128,.7);
  border-radius: 20px 20px 0 0;
  height: 40px;
  box-shadow: 0 -5px 20px rgba(34,197,94,.3);
}

.gardenContainer[data-fence="fence_enchantedHedge"] .gardenFence::after {
  content: '✨';
  position: absolute;
  top: -10px;
  animation: sparkleMove 3s ease-in-out infinite;
}

@keyframes sparkleMove {
  0%, 100% { left: 10%; opacity: 1; }
  50% { left: 90%; opacity: 0.5; }
}

/* 🔥 Muraille Infernale - Epic */
.gardenContainer[data-fence="fence_infernalWall"] .gardenFence {
  background: linear-gradient(180deg, rgba(220,38,38,.6) 0%, rgba(127,29,29,.8) 100%);
  border-top: 4px solid rgba(252,165,165,.7);
  box-shadow: 0 0 25px rgba(239,68,68,.5), 0 -10px 30px rgba(251,146,60,.3);
  animation: fireFlicker 0.5s ease-in-out infinite;
}

@keyframes fireFlicker {
  0%, 100% { box-shadow: 0 0 25px rgba(239,68,68,.5), 0 -10px 30px rgba(251,146,60,.3); }
  50% { box-shadow: 0 0 35px rgba(239,68,68,.7), 0 -15px 40px rgba(251,146,60,.5); }
}

/* 💎 Cristal Éternel - Epic */
.gardenContainer[data-fence="fence_eternalCrystal"] .gardenFence {
  background: linear-gradient(180deg, rgba(34,211,238,.5) 0%, rgba(6,182,212,.6) 50%, rgba(14,116,144,.7) 100%);
  border-top: 3px solid rgba(165,243,252,.8);
  box-shadow: 0 0 30px rgba(34,211,238,.5), inset 0 0 20px rgba(255,255,255,.2);
  animation: crystalShine 3s ease-in-out infinite;
}

@keyframes crystalShine {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.3); }
}

/* 🌈 Arc-en-ciel Dimensionnel - Legendary */
.gardenContainer[data-fence="fence_rainbowGate"] .gardenFence {
  background: linear-gradient(90deg, 
    rgba(239,68,68,.6), rgba(251,146,60,.6), rgba(250,204,21,.6), 
    rgba(74,222,128,.6), rgba(59,130,246,.6), rgba(168,85,247,.6), rgba(236,72,153,.6));
  border-top: 4px solid rgba(255,255,255,.7);
  box-shadow: 0 0 30px rgba(255,255,255,.3), 0 0 60px rgba(168,85,247,.3);
  animation: rainbowFenceGlow 3s linear infinite;
  height: 40px;
}

@keyframes rainbowFenceGlow {
  0% { filter: hue-rotate(0deg) brightness(1); }
  50% { filter: hue-rotate(180deg) brightness(1.2); }
  100% { filter: hue-rotate(360deg) brightness(1); }
}

/* ⚡ Champ de Force Plasma - Legendary */
.gardenContainer[data-fence="fence_plasmaField"] .gardenFence {
  background: 
    repeating-linear-gradient(90deg, 
      transparent 0px, transparent 5px, 
      rgba(34,211,238,.4) 5px, rgba(34,211,238,.4) 7px);
  border-top: 3px solid rgba(34,211,238,.9);
  box-shadow: 0 0 40px rgba(34,211,238,.6), 0 0 80px rgba(34,211,238,.3), inset 0 0 30px rgba(34,211,238,.2);
  animation: plasmaWave 1s ease-in-out infinite;
}

@keyframes plasmaWave {
  0%, 100% { 
    box-shadow: 0 0 40px rgba(34,211,238,.6), 0 0 80px rgba(34,211,238,.3); 
    transform: scaleY(1);
  }
  50% { 
    box-shadow: 0 0 60px rgba(34,211,238,.8), 0 0 100px rgba(34,211,238,.4); 
    transform: scaleY(1.05);
  }
}

/* ═══════════════════════════════════════════════
   🎁 OBJETS DÉCORATIFS GAMING - Avec FX uniques
   ═══════════════════════════════════════════════ */

.gardenObjects {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 35px;
  pointer-events: none;
  z-index: 2;
}

.decorObject {
  position: absolute;
  font-size: 28px;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,.5));
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: default;
}

.decorObject:hover {
  transform: scale(1.3);
  filter: drop-shadow(0 6px 12px rgba(0,0,0,.6)) brightness(1.2);
}

/* ═══ OBJETS COMMUNS ═══ */

/* 🍄 Champignon Magique */
.decorObject[data-obj="obj_magicMushroom"] { 
  left: 8%; bottom: 40px; font-size: 26px; 
  animation: mushroomBounce 2s ease-in-out infinite;
}

@keyframes mushroomBounce {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-5px) scale(1.05); }
}

/* 🪨 Pierre Runique */
.decorObject[data-obj="obj_runeStone"] { 
  right: 12%; bottom: 45px; font-size: 30px;
  animation: runeGlow 3s ease-in-out infinite;
}

@keyframes runeGlow {
  0%, 100% { filter: drop-shadow(0 0 5px rgba(168,85,247,.3)); }
  50% { filter: drop-shadow(0 0 15px rgba(168,85,247,.6)); }
}

/* 🏮 Lanterne Ancienne */
.decorObject[data-obj="obj_ancientLantern"] { 
  left: 15%; top: 15%; font-size: 24px;
  animation: lanternFlicker 1.5s ease-in-out infinite;
}

@keyframes lanternFlicker {
  0%, 100% { filter: drop-shadow(0 0 10px rgba(251,191,36,.6)); opacity: 1; }
  25% { filter: drop-shadow(0 0 15px rgba(251,191,36,.8)); opacity: 0.9; }
  75% { filter: drop-shadow(0 0 8px rgba(251,191,36,.5)); opacity: 1; }
}

/* 🌻 Tournesol Géant */
.decorObject[data-obj="obj_giantSunflower"] { 
  right: 8%; top: 10%; font-size: 32px;
  animation: sunflowerSway 4s ease-in-out infinite;
}

@keyframes sunflowerSway {
  0%, 100% { transform: rotate(-5deg); }
  50% { transform: rotate(5deg); }
}

/* ═══ OBJETS RARES ═══ */

/* ⚔️ Épée Plantée */
.decorObject[data-obj="obj_plantedSword"] { 
  left: 25%; bottom: 35px; font-size: 34px;
  animation: swordGleam 2.5s ease-in-out infinite;
}

@keyframes swordGleam {
  0%, 100% { filter: drop-shadow(0 0 8px rgba(148,163,184,.4)) brightness(1); }
  50% { filter: drop-shadow(0 0 20px rgba(148,163,184,.8)) brightness(1.3); }
}

/* 🏆 Trophée Doré */
.decorObject[data-obj="obj_goldenTrophy"] { 
  right: 20%; top: 20%; font-size: 28px;
  animation: trophyShine 3s ease-in-out infinite;
}

@keyframes trophyShine {
  0%, 100% { filter: drop-shadow(0 0 10px rgba(234,179,8,.5)); transform: scale(1); }
  50% { filter: drop-shadow(0 0 25px rgba(234,179,8,.9)); transform: scale(1.1); }
}

/* 🔮 Orbe Mystique */
.decorObject[data-obj="obj_mysticOrb"] { 
  left: 5%; top: 30%; font-size: 26px;
  animation: orbFloat 3s ease-in-out infinite, orbPulse 2s ease-in-out infinite;
}

@keyframes orbFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes orbPulse {
  0%, 100% { filter: drop-shadow(0 0 15px rgba(168,85,247,.6)) hue-rotate(0deg); }
  50% { filter: drop-shadow(0 0 25px rgba(168,85,247,.9)) hue-rotate(30deg); }
}

/* 🎪 Tente de Cirque */
.decorObject[data-obj="obj_circusTent"] { 
  right: 5%; bottom: 50px; font-size: 36px;
  animation: tentWave 5s ease-in-out infinite;
}

@keyframes tentWave {
  0%, 100% { transform: skewX(-2deg); }
  50% { transform: skewX(2deg); }
}

/* ═══ OBJETS ÉPIQUES ═══ */

/* 🐉 Dragon Miniature */
.decorObject[data-obj="obj_miniDragon"] { 
  left: 50%; top: 5%; font-size: 38px;
  transform: translateX(-50%);
  animation: dragonFly 4s ease-in-out infinite;
}

@keyframes dragonFly {
  0%, 100% { transform: translateX(-50%) translateY(0) rotate(-5deg); }
  25% { transform: translateX(-40%) translateY(-15px) rotate(0deg); }
  50% { transform: translateX(-50%) translateY(-20px) rotate(5deg); }
  75% { transform: translateX(-60%) translateY(-15px) rotate(0deg); }
}

/* 🔥 Brasier Éternel */
.decorObject[data-obj="obj_eternalBrazier"] { 
  left: 35%; bottom: 40px; font-size: 32px;
  animation: brazierBurn 0.8s ease-in-out infinite;
}

@keyframes brazierBurn {
  0%, 100% { 
    filter: drop-shadow(0 -5px 15px rgba(239,68,68,.7)) drop-shadow(0 -10px 25px rgba(251,146,60,.5)); 
    transform: scaleY(1);
  }
  50% { 
    filter: drop-shadow(0 -8px 20px rgba(239,68,68,.9)) drop-shadow(0 -15px 35px rgba(251,146,60,.7)); 
    transform: scaleY(1.05);
  }
}

/* 🌀 Portail Dimensionnel */
.decorObject[data-obj="obj_dimensionalPortal"] { 
  right: 25%; top: 40%; font-size: 42px;
  animation: portalVortex 3s linear infinite;
}

@keyframes portalVortex {
  0% { transform: rotate(0deg) scale(1); filter: hue-rotate(0deg) drop-shadow(0 0 20px rgba(168,85,247,.6)); }
  50% { transform: rotate(180deg) scale(1.1); filter: hue-rotate(180deg) drop-shadow(0 0 30px rgba(168,85,247,.8)); }
  100% { transform: rotate(360deg) scale(1); filter: hue-rotate(360deg) drop-shadow(0 0 20px rgba(168,85,247,.6)); }
}

/* ⚡ Cristal de Foudre */
.decorObject[data-obj="obj_lightningCrystal"] { 
  left: 70%; bottom: 50px; font-size: 30px;
  animation: crystalZap 2s ease-in-out infinite;
}

@keyframes crystalZap {
  0%, 90%, 100% { 
    filter: drop-shadow(0 0 10px rgba(250,204,21,.5)) brightness(1); 
    transform: scale(1);
  }
  92%, 96% { 
    filter: drop-shadow(0 0 30px rgba(250,204,21,1)) brightness(1.5); 
    transform: scale(1.15);
  }
}

/* ═══ OBJETS LÉGENDAIRES ═══ */

/* 🦅 Phoenix Renaissant */
.decorObject[data-obj="obj_phoenixStatue"] { 
  left: 10%; top: 8%; font-size: 40px;
  animation: phoenixFlame 2s ease-in-out infinite;
}

@keyframes phoenixFlame {
  0%, 100% { 
    filter: drop-shadow(0 0 15px rgba(239,68,68,.6)) drop-shadow(0 0 30px rgba(251,146,60,.4)) brightness(1);
    transform: translateY(0) scale(1);
  }
  50% { 
    filter: drop-shadow(0 0 25px rgba(239,68,68,.9)) drop-shadow(0 0 50px rgba(251,146,60,.7)) brightness(1.3);
    transform: translateY(-8px) scale(1.1);
  }
}

/* 👑 Couronne Céleste */
.decorObject[data-obj="obj_celestialCrown"] { 
  right: 10%; top: 5%; font-size: 36px;
  animation: crownFloat 4s ease-in-out infinite, crownSparkle 2s ease-in-out infinite;
}

@keyframes crownFloat {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-12px) rotate(3deg); }
}

@keyframes crownSparkle {
  0%, 100% { filter: drop-shadow(0 0 20px rgba(234,179,8,.7)) brightness(1); }
  50% { filter: drop-shadow(0 0 40px rgba(234,179,8,1)) brightness(1.4); }
}

/* 🕳️ Mini Trou Noir */
.decorObject[data-obj="obj_miniBlackhole"] { 
  left: 50%; top: 50%; font-size: 35px;
  transform: translate(-50%, -50%);
  animation: blackholeSuck 5s linear infinite;
}

@keyframes blackholeSuck {
  0% { 
    transform: translate(-50%, -50%) rotate(0deg) scale(1);
    filter: drop-shadow(0 0 30px rgba(88,28,135,.8)) hue-rotate(0deg);
  }
  50% { 
    transform: translate(-50%, -50%) rotate(180deg) scale(1.2);
    filter: drop-shadow(0 0 50px rgba(88,28,135,1)) hue-rotate(180deg);
  }
  100% { 
    transform: translate(-50%, -50%) rotate(360deg) scale(1);
    filter: drop-shadow(0 0 30px rgba(88,28,135,.8)) hue-rotate(360deg);
  }
}

/* 🌟 Étoile du Destin */
.decorObject[data-obj="obj_destinyStar"] { 
  right: 15%; bottom: 60px; font-size: 38px;
  animation: starDestiny 3s ease-in-out infinite;
}

@keyframes starDestiny {
  0%, 100% { 
    transform: rotate(0deg) scale(1);
    filter: drop-shadow(0 0 20px rgba(250,204,21,.8)) drop-shadow(0 0 40px rgba(255,255,255,.5));
  }
  25% { transform: rotate(5deg) scale(1.1); }
  50% { 
    transform: rotate(0deg) scale(1.2);
    filter: drop-shadow(0 0 35px rgba(250,204,21,1)) drop-shadow(0 0 70px rgba(255,255,255,.8));
  }
  75% { transform: rotate(-5deg) scale(1.1); }
}

/* ═══════════════════════════════════════════════
   🏷️ BADGES DE RARETÉ - Style Gaming
   ═══════════════════════════════════════════════ */

.rarity-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-left: 8px;
  animation: rarityPulse 2s ease-in-out infinite;
}

.rarity-common {
  background: linear-gradient(135deg, rgba(148,163,184,.3), rgba(100,116,139,.4));
  color: #cbd5e1;
  border: 1px solid rgba(148,163,184,.5);
  text-shadow: 0 1px 2px rgba(0,0,0,.3);
}

.rarity-rare {
  background: linear-gradient(135deg, rgba(59,130,246,.4), rgba(37,99,235,.5));
  color: #93c5fd;
  border: 1px solid rgba(59,130,246,.6);
  box-shadow: 0 0 10px rgba(59,130,246,.3);
  text-shadow: 0 1px 2px rgba(0,0,0,.4);
}

.rarity-epic {
  background: linear-gradient(135deg, rgba(168,85,247,.4), rgba(139,92,246,.5));
  color: #c4b5fd;
  border: 1px solid rgba(168,85,247,.6);
  box-shadow: 0 0 15px rgba(168,85,247,.4);
  text-shadow: 0 1px 2px rgba(0,0,0,.4);
  animation: rarityPulse 2s ease-in-out infinite, epicGlow 3s ease-in-out infinite;
}

@keyframes epicGlow {
  0%, 100% { box-shadow: 0 0 15px rgba(168,85,247,.4); }
  50% { box-shadow: 0 0 25px rgba(168,85,247,.7); }
}

.rarity-legendary {
  background: linear-gradient(135deg, rgba(234,179,8,.5), rgba(251,146,60,.5), rgba(234,179,8,.5));
  background-size: 200% 200%;
  color: #fef08a;
  border: 1px solid rgba(234,179,8,.7);
  box-shadow: 0 0 20px rgba(234,179,8,.5), 0 0 40px rgba(251,146,60,.3);
  text-shadow: 0 1px 3px rgba(0,0,0,.5);
  animation: legendaryShine 2s ease-in-out infinite;
}

@keyframes legendaryShine {
  0%, 100% { 
    background-position: 0% 50%;
    box-shadow: 0 0 20px rgba(234,179,8,.5), 0 0 40px rgba(251,146,60,.3);
  }
  50% { 
    background-position: 100% 50%;
    box-shadow: 0 0 30px rgba(234,179,8,.8), 0 0 60px rgba(251,146,60,.5);
  }
}

@keyframes rarityPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}

/* ═══════════════════════════════════════════════
   🛒 ITEMS DÉCORATION DANS LE SHOP
   ═══════════════════════════════════════════════ */

.decor-item {
  position: relative;
  border-radius: 12px;
  padding: 12px;
  margin: 8px 0;
  transition: all 0.3s ease;
}

.decor-item.decor-common {
  background: linear-gradient(135deg, rgba(148,163,184,.1), rgba(100,116,139,.15));
  border: 1px solid rgba(148,163,184,.3);
}

.decor-item.decor-rare {
  background: linear-gradient(135deg, rgba(59,130,246,.1), rgba(37,99,235,.15));
  border: 1px solid rgba(59,130,246,.4);
  box-shadow: 0 0 15px rgba(59,130,246,.1);
}

.decor-item.decor-epic {
  background: linear-gradient(135deg, rgba(168,85,247,.1), rgba(139,92,246,.15));
  border: 1px solid rgba(168,85,247,.4);
  box-shadow: 0 0 20px rgba(168,85,247,.15);
}

.decor-item.decor-legendary {
  background: linear-gradient(135deg, rgba(234,179,8,.15), rgba(251,146,60,.1));
  border: 1px solid rgba(234,179,8,.5);
  box-shadow: 0 0 25px rgba(234,179,8,.2);
  animation: legendaryItemGlow 3s ease-in-out infinite;
}

@keyframes legendaryItemGlow {
  0%, 100% { box-shadow: 0 0 25px rgba(234,179,8,.2); }
  50% { box-shadow: 0 0 40px rgba(234,179,8,.4); }
}

.decor-item:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

.decor-item.equipped {
  border-width: 2px;
  box-shadow: 0 0 20px currentColor;
}

.decor-item.equipped::after {
  content: '✓ ÉQUIPÉ';
  position: absolute;
  top: 5px;
  right: 8px;
  font-size: 9px;
  font-weight: bold;
  color: #22c55e;
  text-shadow: 0 0 10px rgba(34,197,94,.5);
}

/* =============================================
   🌪️ SYSTÈME DE CATASTROPHES - QTE
   ============================================= */

.disaster-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,.9);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: disasterShake 0.5s ease-in-out infinite;
}

@keyframes disasterShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

.disaster-popup {
  background: linear-gradient(135deg, rgba(30,41,59,.98), rgba(15,23,42,.98));
  border: 3px solid #ef4444;
  border-radius: 20px;
  padding: 24px;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 0 50px rgba(239,68,68,.5), 0 0 100px rgba(239,68,68,.3);
  animation: disasterPulse 1s ease-in-out infinite;
}

@keyframes disasterPulse {
  0%, 100% { box-shadow: 0 0 50px rgba(239,68,68,.5); }
  50% { box-shadow: 0 0 80px rgba(239,68,68,.8); }
}

.disaster-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
}

.disaster-emoji {
  font-size: 48px;
  animation: disasterSpin 2s linear infinite;
}

@keyframes disasterSpin {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(10deg) scale(1.1); }
  100% { transform: rotate(0deg) scale(1); }
}

.disaster-name {
  font-size: 24px;
  font-weight: 900;
  color: #fca5a5;
  text-shadow: 0 0 20px rgba(239,68,68,.5);
}

.disaster-desc {
  text-align: center;
  color: #e2e8f0;
  font-size: 14px;
  margin-bottom: 16px;
}

.disaster-timer {
  height: 8px;
  background: rgba(0,0,0,.5);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 20px;
}

.timer-bar {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #22c55e, #eab308, #ef4444);
  transition: width linear;
}

.disaster-qte {
  background: rgba(0,0,0,.3);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
}

.qte-instruction {
  text-align: center;
  font-size: 18px;
  font-weight: 900;
  color: #fef08a;
  margin-bottom: 12px;
  animation: qtePulse 0.5s ease-in-out infinite;
}

@keyframes qtePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.qte-progress {
  height: 24px;
  background: rgba(0,0,0,.5);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 10px;
  border: 2px solid rgba(34,197,94,.5);
}

.qte-bar {
  height: 100%;
  background: linear-gradient(90deg, #22c55e, #86efac);
  transition: width 0.1s ease-out;
  box-shadow: 0 0 20px rgba(34,197,94,.5);
}

.qte-counter {
  text-align: center;
  font-size: 20px;
  font-weight: 900;
  color: #22c55e;
  margin-bottom: 12px;
}

.qte-btn {
  display: block;
  width: 100%;
  padding: 16px;
  font-size: 20px;
  font-weight: 900;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  border: none;
  border-radius: 12px;
  color: white;
  cursor: pointer;
  transition: all 0.1s ease;
  box-shadow: 0 4px 15px rgba(34,197,94,.4);
}

.qte-btn:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 20px rgba(34,197,94,.6);
}

.qte-btn:active {
  transform: scale(0.98);
}

/* Séquence */
.qte-sequence {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
}

.seq-key {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.5);
  border: 2px solid rgba(148,163,184,.3);
  border-radius: 8px;
  font-size: 20px;
  transition: all 0.2s ease;
}

.seq-key.active {
  border-color: #eab308;
  background: rgba(234,179,8,.2);
  box-shadow: 0 0 15px rgba(234,179,8,.5);
  animation: seqPulse 0.5s ease-in-out infinite;
}

@keyframes seqPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.seq-key.done {
  border-color: #22c55e;
  background: rgba(34,197,94,.3);
}

.qte-keys {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.qte-key-btn {
  width: 50px;
  height: 50px;
  font-size: 24px;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  border: none;
  border-radius: 10px;
  color: white;
  cursor: pointer;
  transition: all 0.1s ease;
}

.qte-key-btn:hover {
  transform: scale(1.1);
}

/* Timing */
.qte-timing-bar {
  height: 40px;
  background: linear-gradient(90deg, #ef4444 0%, #ef4444 35%, #22c55e 35%, #22c55e 65%, #ef4444 65%, #ef4444 100%);
  border-radius: 20px;
  position: relative;
  margin-bottom: 12px;
  overflow: hidden;
}

.qte-timing-zone {
  position: absolute;
  left: 35%;
  width: 30%;
  height: 100%;
  background: rgba(34,197,94,.3);
}

.qte-timing-cursor {
  position: absolute;
  top: 0;
  width: 4px;
  height: 100%;
  background: white;
  box-shadow: 0 0 10px white;
  transition: left 0.02s linear;
}

/* Alternate */
.qte-alternate {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 12px;
}

.qte-alt-btn {
  width: 80px;
  height: 80px;
  font-size: 32px;
  font-weight: 900;
  background: rgba(100,100,100,.3);
  border: 3px solid rgba(148,163,184,.3);
  border-radius: 16px;
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.1s ease;
}

.qte-alt-btn.ready {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  border-color: #22c55e;
  color: white;
  box-shadow: 0 0 20px rgba(34,197,94,.5);
}

/* Combo */
.qte-combo {
  text-align: center;
  font-size: 24px;
  font-weight: 900;
  color: #f59e0b;
  margin-bottom: 8px;
  text-shadow: 0 0 15px rgba(245,158,11,.5);
}

/* Stakes */
.disaster-stakes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.stakes-fail {
  padding: 10px;
  background: rgba(239,68,68,.15);
  border: 1px solid rgba(239,68,68,.4);
  border-radius: 8px;
  font-size: 11px;
  color: #fca5a5;
  text-align: center;
}

.stakes-success {
  padding: 10px;
  background: rgba(34,197,94,.15);
  border: 1px solid rgba(34,197,94,.4);
  border-radius: 8px;
  font-size: 11px;
  color: #86efac;
  text-align: center;
}

/* =============================================
   🎁 BOÎTES MYSTÈRES
   ============================================= */

.mystery-box {
  position: absolute;
  z-index: 100;
  cursor: pointer;
  transition: all 0.3s ease;
  animation: boxFloat 2s ease-in-out infinite, boxSparkle 1s ease-in-out infinite;
}

@keyframes boxFloat {
  0%, 100% { transform: translateY(0) rotate(-5deg); }
  50% { transform: translateY(-10px) rotate(5deg); }
}

@keyframes boxSparkle {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.3); }
}

.mystery-box:hover {
  transform: scale(1.3) rotate(0deg) !important;
}

.box-emoji {
  font-size: 40px;
  display: block;
}

.box-common .box-emoji {
  filter: drop-shadow(0 0 10px rgba(148,163,184,.5));
}

.box-rare .box-emoji {
  filter: drop-shadow(0 0 15px rgba(59,130,246,.6));
  animation: boxFloat 2s ease-in-out infinite, rareGlow 1.5s ease-in-out infinite;
}

@keyframes rareGlow {
  0%, 100% { filter: drop-shadow(0 0 15px rgba(59,130,246,.6)); }
  50% { filter: drop-shadow(0 0 25px rgba(59,130,246,.9)); }
}

.box-epic .box-emoji {
  filter: drop-shadow(0 0 20px rgba(168,85,247,.7));
  animation: boxFloat 2s ease-in-out infinite, epicBoxGlow 1s ease-in-out infinite;
}

@keyframes epicBoxGlow {
  0%, 100% { filter: drop-shadow(0 0 20px rgba(168,85,247,.7)) hue-rotate(0deg); }
  50% { filter: drop-shadow(0 0 35px rgba(168,85,247,1)) hue-rotate(20deg); }
}

.box-legendary .box-emoji {
  filter: drop-shadow(0 0 25px rgba(234,179,8,.8));
  animation: boxFloat 1.5s ease-in-out infinite, legendaryBoxGlow 0.8s ease-in-out infinite;
}

@keyframes legendaryBoxGlow {
  0%, 100% { filter: drop-shadow(0 0 25px rgba(234,179,8,.8)); transform: translateY(0) rotate(-5deg) scale(1); }
  50% { filter: drop-shadow(0 0 45px rgba(234,179,8,1)); transform: translateY(-10px) rotate(5deg) scale(1.1); }
}

.box-mythic .box-emoji {
  filter: drop-shadow(0 0 30px rgba(236,72,153,.9)) drop-shadow(0 0 60px rgba(168,85,247,.6));
  animation: mythicBoxGlow 0.5s ease-in-out infinite;
}

@keyframes mythicBoxGlow {
  0%, 100% { 
    filter: drop-shadow(0 0 30px rgba(236,72,153,.9)) drop-shadow(0 0 60px rgba(168,85,247,.6)); 
    transform: translateY(0) rotate(-10deg) scale(1);
  }
  25% { transform: translateY(-15px) rotate(5deg) scale(1.15); }
  50% { 
    filter: drop-shadow(0 0 50px rgba(236,72,153,1)) drop-shadow(0 0 100px rgba(168,85,247,.9)); 
    transform: translateY(-20px) rotate(10deg) scale(1.2);
  }
  75% { transform: translateY(-15px) rotate(-5deg) scale(1.15); }
}

/* =============================================
   🔔 NOTIFICATIONS IN-GAME
   ============================================= */

.game-notification {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: linear-gradient(135deg, rgba(30,41,59,.98), rgba(15,23,42,.98));
  border: 2px solid rgba(251,191,36,.5);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,.5), 0 0 30px rgba(251,191,36,.2);
  pointer-events: auto;
  transform: translateX(120%);
  opacity: 0;
  transition: all 0.3s ease;
}

.game-notification.show {
  transform: translateX(0);
  opacity: 1;
}

.game-notif-icon {
  font-size: 32px;
  flex-shrink: 0;
}

.game-notif-content {
  flex: 1;
  min-width: 0;
}

.game-notif-title {
  font-weight: 900;
  color: #fef08a;
  font-size: 14px;
  margin-bottom: 4px;
}

.game-notif-body {
  color: #cbd5e1;
  font-size: 12px;
  line-height: 1.4;
}

.game-notif-close {
  background: none;
  border: none;
  color: #64748b;
  font-size: 20px;
  cursor: pointer;
  padding: 0 4px;
  transition: color 0.2s;
}

.game-notif-close:hover {
  color: #ef4444;
}

/* =============================================
   📦 ANIMATION OUVERTURE BOÎTE MYSTÈRE
   ============================================= */

#boxOpenOverlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,.85);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: overlayFadeIn 0.3s ease;
  cursor: pointer;
}

#boxOpenOverlay.closing {
  animation: overlayFadeOut 0.3s ease forwards;
}

@keyframes overlayFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes overlayFadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

.box-open-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.box-open-box {
  position: relative;
  font-size: 100px;
  filter: drop-shadow(0 0 30px rgba(255,255,255,.3));
}

.box-open-box.common { filter: drop-shadow(0 0 30px rgba(148,163,184,.5)); }
.box-open-box.rare { filter: drop-shadow(0 0 40px rgba(59,130,246,.6)); }
.box-open-box.epic { filter: drop-shadow(0 0 50px rgba(168,85,247,.7)); }
.box-open-box.legendary { filter: drop-shadow(0 0 60px rgba(234,179,8,.8)); }
.box-open-box.mythic { filter: drop-shadow(0 0 70px rgba(236,72,153,.9)); }

.box-lid {
  position: relative;
  z-index: 2;
  transition: transform 0.8s cubic-bezier(.17,.67,.3,1.33);
}

.box-base {
  position: absolute;
  top: 30px;
  left: 0;
  opacity: 0.5;
  z-index: 1;
}

/* Tremblement */
.box-open-box.shaking {
  animation: boxShake 0.15s ease-in-out infinite;
}

@keyframes boxShake {
  0%, 100% { transform: translateX(0) rotate(0deg); }
  25% { transform: translateX(-8px) rotate(-3deg); }
  75% { transform: translateX(8px) rotate(3deg); }
}

/* Ouverture */
.box-open-box.opening .box-lid {
  transform: translateY(-60px) rotateX(45deg) scale(1.2);
  opacity: 0;
}

.box-open-box.opening .box-base {
  animation: boxBaseGlow 0.8s ease forwards;
}

@keyframes boxBaseGlow {
  0% { opacity: 0.5; filter: brightness(1); }
  50% { opacity: 1; filter: brightness(2); transform: scale(1.3); }
  100% { opacity: 0; filter: brightness(3); transform: scale(1.5); }
}

/* Particules */
.box-particles {
  position: absolute;
  width: 200px;
  height: 200px;
  pointer-events: none;
}

@keyframes boxParticleExplode {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: 
      translate(
        calc(-50% + cos(var(--angle)) * var(--distance)),
        calc(-50% + sin(var(--angle)) * var(--distance))
      ) 
      rotate(360deg);
    opacity: 0;
  }
}

@keyframes boxStarExplode {
  0% {
    transform: translate(-50%, -50%) scale(0) rotate(0deg);
    opacity: 1;
  }
  50% {
    transform: 
      translate(
        calc(-50% + cos(var(--angle)) * var(--distance) * 0.5),
        calc(-50% + sin(var(--angle)) * var(--distance) * 0.5)
      ) 
      scale(1.5) rotate(180deg);
    opacity: 1;
  }
  100% {
    transform: 
      translate(
        calc(-50% + cos(var(--angle)) * var(--distance)),
        calc(-50% + sin(var(--angle)) * var(--distance))
      ) 
      scale(0) rotate(360deg);
    opacity: 0;
  }
}

/* Récompense */
.box-reward {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  opacity: 0;
  transform: scale(0.5);
}

.box-reward.reveal {
  animation: rewardReveal 0.5s cubic-bezier(.17,.67,.3,1.33) forwards;
}

@keyframes rewardReveal {
  0% { opacity: 0; transform: scale(0.5) translateY(30px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

.reward-icon {
  font-size: 80px;
  animation: rewardBounce 0.6s ease-in-out infinite;
}

@keyframes rewardBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

.reward-text {
  font-size: 28px;
  font-weight: 900;
  color: #fff;
  text-shadow: 0 0 20px rgba(255,255,255,.5);
  text-align: center;
}

.reward-rarity {
  font-size: 14px;
  padding: 6px 16px;
  border-radius: 20px;
  font-weight: 700;
}

.reward-rarity.common {
  background: rgba(148,163,184,.2);
  color: #cbd5e1;
  border: 2px solid rgba(148,163,184,.4);
}

.reward-rarity.rare {
  background: rgba(59,130,246,.2);
  color: #93c5fd;
  border: 2px solid rgba(59,130,246,.5);
}

.reward-rarity.epic {
  background: rgba(168,85,247,.2);
  color: #d8b4fe;
  border: 2px solid rgba(168,85,247,.5);
  animation: epicRarityGlow 1s ease-in-out infinite;
}

@keyframes epicRarityGlow {
  0%, 100% { box-shadow: 0 0 10px rgba(168,85,247,.4); }
  50% { box-shadow: 0 0 25px rgba(168,85,247,.7); }
}

.reward-rarity.legendary {
  background: rgba(234,179,8,.2);
  color: #fef08a;
  border: 2px solid rgba(234,179,8,.6);
  animation: legendaryRarityGlow 0.8s ease-in-out infinite;
}

@keyframes legendaryRarityGlow {
  0%, 100% { box-shadow: 0 0 15px rgba(234,179,8,.5); }
  50% { box-shadow: 0 0 35px rgba(234,179,8,.9); }
}

.reward-rarity.mythic {
  background: linear-gradient(135deg, rgba(236,72,153,.3), rgba(168,85,247,.3));
  color: #f9a8d4;
  border: 2px solid rgba(236,72,153,.6);
  animation: mythicRarityGlow 0.5s ease-in-out infinite;
}

@keyframes mythicRarityGlow {
  0%, 100% { 
    box-shadow: 0 0 20px rgba(236,72,153,.6), 0 0 40px rgba(168,85,247,.4); 
    filter: hue-rotate(0deg);
  }
  50% { 
    box-shadow: 0 0 40px rgba(236,72,153,.9), 0 0 60px rgba(168,85,247,.7); 
    filter: hue-rotate(30deg);
  }
}

.box-click-hint {
  font-size: 16px;
  color: #94a3b8;
  animation: hintPulse 1s ease-in-out infinite;
}

@keyframes hintPulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}

/* ===================== */
/* 🏆 CLASSEMENT EN LIGNE */
/* ===================== */
.leaderboard-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.leaderboard-header {
  text-align: center;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.leaderboard-header h3 {
  margin: 0;
  font-size: 24px;
  color: #ffd700;
}

.leaderboard-pseudo-section {
  background: rgba(59,130,246,.1);
  border: 1px solid rgba(59,130,246,.3);
  border-radius: 10px;
  padding: 12px;
}

.leaderboard-pseudo-section label {
  font-weight: 600;
  color: #93c5fd;
}

.leaderboard-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.leaderboard-my-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  background: rgba(34,197,94,.1);
  border: 1px solid rgba(34,197,94,.3);
  border-radius: 10px;
  padding: 12px;
}

.leaderboard-my-stats .stat-item {
  text-align: center;
}

.leaderboard-my-stats .stat-label {
  font-size: 11px;
  color: #94a3b8;
  display: block;
}

.leaderboard-my-stats .stat-value {
  font-size: 18px;
  font-weight: 700;
  color: #86efac;
}

.leaderboard-list {
  max-height: 400px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.leaderboard-row {
  display: grid;
  grid-template-columns: 50px 1fr 100px 60px 60px;
  align-items: center;
  padding: 10px 12px;
  background: rgba(30,41,59,.6);
  border-radius: 8px;
  border: 1px solid transparent;
  transition: all .2s;
}

.leaderboard-row:hover {
  background: rgba(51,65,85,.8);
  transform: translateX(4px);
}

.leaderboard-row.is-me {
  background: rgba(34,197,94,.2);
  border: 1px solid rgba(34,197,94,.5);
  box-shadow: 0 0 15px rgba(34,197,94,.3);
}

.leaderboard-row.top-three {
  background: linear-gradient(135deg, rgba(251,191,36,.1), rgba(245,158,11,.1));
}

.leaderboard-row .rank {
  font-size: 18px;
  font-weight: 700;
  text-align: center;
}

.leaderboard-row .pseudo {
  font-weight: 600;
  color: #f1f5f9;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.leaderboard-row .score {
  text-align: right;
  font-weight: 700;
  color: #fbbf24;
}

.leaderboard-row .level {
  text-align: center;
  font-size: 12px;
  color: #60a5fa;
}

.leaderboard-row .prestige {
  text-align: center;
  font-size: 12px;
  color: #a78bfa;
}

.leaderboard-empty {
  text-align: center;
  padding: 40px;
  color: #64748b;
  font-style: italic;
}

/* =============================================
   💬 SYSTÈME SOCIAL
   ============================================= */

.social-container {
  display: flex;
  flex-direction: column;
  height: 500px;
}

.social-offline {
  text-align: center;
  padding: 40px;
  background: rgba(251,191,36,.1);
  border: 2px solid rgba(251,191,36,.3);
  border-radius: 12px;
}

.social-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 15px;
  border-bottom: 2px solid rgba(255,255,255,.1);
  padding-bottom: 10px;
}

.social-tab {
  padding: 8px 16px;
  background: rgba(30,41,59,.6);
  border: none;
  border-radius: 8px 8px 0 0;
  color: #94a3b8;
  cursor: pointer;
  transition: all .2s;
  font-size: 13px;
}

.social-tab:hover {
  background: rgba(51,65,85,.8);
  color: #f1f5f9;
}

.social-tab.active {
  background: linear-gradient(135deg, rgba(236,72,153,.3), rgba(168,85,247,.2));
  color: #f472b6;
  font-weight: 600;
}

.social-tab .notif-badge {
  background: #ef4444;
  color: white;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 10px;
  margin-left: 5px;
}

.social-tab-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Chat */
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
  background: rgba(15,23,42,.5);
  border-radius: 10px;
  margin-bottom: 10px;
}

.chat-message {
  padding: 6px 10px;
  margin-bottom: 6px;
  border-radius: 8px;
  background: rgba(30,41,59,.6);
  font-size: 13px;
}

.chat-message.is-me {
  background: rgba(34,197,94,.15);
  border-left: 3px solid #22c55e;
}

.chat-time {
  color: #64748b;
  font-size: 10px;
  margin-right: 8px;
}

.chat-pseudo {
  color: #f472b6;
  font-weight: 600;
  cursor: pointer;
  margin-right: 8px;
}

.chat-pseudo:hover {
  text-decoration: underline;
}

.chat-text {
  color: #e2e8f0;
}

.chat-empty {
  text-align: center;
  padding: 30px;
  color: #64748b;
}

.chat-input-container {
  display: flex;
  gap: 8px;
}

.chat-input-container input {
  flex: 1;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #444;
  background: #1a1a2e;
  color: #fff;
}

/* Notifications */
.notifs-list {
  flex: 1;
  overflow-y: auto;
}

.notif-item {
  padding: 12px;
  background: rgba(30,41,59,.6);
  border-radius: 8px;
  margin-bottom: 8px;
  border-left: 3px solid transparent;
}

.notif-item.unread {
  border-left-color: #22c55e;
  background: rgba(34,197,94,.1);
}

.notif-message {
  color: #e2e8f0;
  margin-bottom: 5px;
}

.notif-time {
  color: #64748b;
  font-size: 11px;
}

.notifs-empty {
  text-align: center;
  padding: 30px;
  color: #64748b;
}

/* Profile Popup */
.profile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  animation: fadeIn .2s ease;
}

.profile-popup {
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border: 2px solid rgba(236,72,153,.4);
  border-radius: 16px;
  padding: 25px;
  min-width: 320px;
  max-width: 400px;
  position: relative;
  box-shadow: 0 20px 50px rgba(0,0,0,.5);
}

.profile-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 18px;
  cursor: pointer;
}

.profile-close:hover {
  color: #ef4444;
}

.profile-card {
  text-align: center;
}

.profile-header {
  margin-bottom: 20px;
}

.profile-avatar {
  font-size: 48px;
  margin-bottom: 10px;
}

.profile-name {
  font-size: 24px;
  font-weight: 700;
  color: #f1f5f9;
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 15px;
}

.profile-stat {
  background: rgba(30,41,59,.6);
  padding: 12px;
  border-radius: 10px;
}

.profile-stat .stat-value {
  font-size: 18px;
  font-weight: 700;
  color: #fbbf24;
}

.profile-stat .stat-label {
  font-size: 11px;
  color: #94a3b8;
}

.profile-extra-stats {
  display: flex;
  justify-content: center;
  gap: 15px;
  font-size: 12px;
  color: #94a3b8;
  margin-bottom: 15px;
}

.profile-actions {
  margin-top: 15px;
}

.gift-popup {
  text-align: center;
}

.gift-popup h3 {
  color: #fbbf24;
  margin-bottom: 15px;
}

/* ========== VISITE DE FERMES ========== */
.farms-overlay,
.visit-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,.85);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
}

.farms-modal,
.visit-modal {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border: 2px solid rgba(34,197,94,.4);
  border-radius: 20px;
  padding: 30px;
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,.5), 0 0 40px rgba(34,197,94,.2);
}

.farms-modal h2,
.visit-modal h2 {
  color: #22c55e;
  margin: 0 0 10px;
  font-size: 24px;
  text-align: center;
}

.farms-subtitle {
  text-align: center;
  color: #94a3b8;
  margin-bottom: 20px;
}

.farms-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 15px;
}

.farm-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  padding: 15px;
  cursor: pointer;
  transition: all .2s ease;
  text-align: center;
}

.farm-card:hover:not(.own-farm) {
  background: rgba(34,197,94,.15);
  border-color: rgba(34,197,94,.5);
  transform: translateY(-3px);
}

.farm-card.own-farm {
  opacity: .6;
  cursor: default;
  border-color: rgba(99,102,241,.3);
}

.farm-preview {
  width: 80px;
  height: 80px;
  margin: 0 auto 10px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.farm-preview .farm-plant-emoji {
  font-size: 40px;
  animation: farmCardPlantBounce 2s ease-in-out infinite;
}

.farm-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.farm-name {
  font-weight: 600;
  color: #f1f5f9;
  font-size: 14px;
}

.farm-level {
  color: #94a3b8;
  font-size: 12px;
}

.farm-stats {
  display: flex;
  gap: 10px;
  justify-content: center;
  font-size: 12px;
  color: #94a3b8;
}

.no-farms {
  text-align: center;
  color: #64748b;
  padding: 40px;
  grid-column: 1 / -1;
}

/* Modal de visite */
.visit-farm-display {
  width: 200px;
  height: 200px;
  margin: 20px auto;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.visit-farm-display .pot {
  transform: scale(0.9);
}

.visit-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 20px 0;
}

.stat-item {
  background: rgba(255,255,255,.05);
  padding: 12px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.stat-icon {
  font-size: 20px;
}

.stat-value {
  color: #f1f5f9;
  font-weight: 500;
}

.visit-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 20px;
}

.visit-btn {
  padding: 12px 24px !important;
  font-size: 16px !important;
  border-radius: 12px !important;
}

.water-btn:not(.disabled) {
  background: linear-gradient(135deg, #0ea5e9, #0284c7) !important;
  border-color: #38bdf8 !important;
}

.water-btn:not(.disabled):hover {
  box-shadow: 0 0 20px rgba(14,165,233,.5);
}

.like-btn:not(.disabled):not(.liked) {
  background: linear-gradient(135deg, #ec4899, #db2777) !important;
  border-color: #f472b6 !important;
}

.like-btn:not(.disabled):hover {
  box-shadow: 0 0 20px rgba(236,72,153,.5);
}

.visit-btn.disabled {
  opacity: .5;
  cursor: not-allowed;
}

.like-btn.liked {
  background: linear-gradient(135deg, #be185d, #9d174d) !important;
}
/* =====================================================
   👥 SYSTÈME DE CARTELS & TERRITOIRES
   ===================================================== */

/* Panel Cartel */
#cartelPanel {
  padding: 20px;
}

.cartel-section {
  background: rgba(30,41,59,.8);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 20px;
  border: 1px solid rgba(255,255,255,.1);
}

.cartel-section h3 {
  margin: 0 0 15px 0;
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.cartel-desc {
  color: #94a3b8;
  font-size: 13px;
  margin-bottom: 15px;
}

/* Formulaire création cartel */
.create-cartel-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.create-cartel-form input {
  flex: 1;
  min-width: 150px;
  padding: 12px 16px;
  background: rgba(0,0,0,.3);
  border: 2px solid rgba(255,255,255,.1);
  border-radius: 12px;
  color: #f1f5f9;
  font-size: 14px;
  transition: all .3s;
}

.create-cartel-form input:focus {
  outline: none;
  border-color: #ef4444;
  box-shadow: 0 0 20px rgba(239,68,68,.3);
}

.create-cartel-form select {
  padding: 12px 16px;
  background: rgba(0,0,0,.3);
  border: 2px solid rgba(255,255,255,.1);
  border-radius: 12px;
  color: #f1f5f9;
  font-size: 18px;
  cursor: pointer;
}

.btn-create-cartel {
  padding: 12px 24px;
  background: linear-gradient(135deg, #dc2626, #991b1b);
  border: 2px solid #ef4444;
  border-radius: 12px;
  color: white;
  font-weight: 700;
  cursor: pointer;
  transition: all .3s;
}

.btn-create-cartel:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(239,68,68,.4);
}

/* Liste des cartels */
.cartel-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 300px;
  overflow-y: auto;
}

.cartel-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  background: rgba(0,0,0,.2);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.05);
  transition: all .3s;
}

.cartel-item:hover {
  background: rgba(239,68,68,.1);
  border-color: rgba(239,68,68,.3);
}

.cartel-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cartel-emoji {
  font-size: 28px;
}

.cartel-name {
  font-weight: 600;
  font-size: 15px;
}

.cartel-members {
  color: #94a3b8;
  font-size: 13px;
}

.btn-join-cartel {
  padding: 8px 18px;
  background: linear-gradient(135deg, #4f46e5, #3730a3);
  border: 2px solid #6366f1;
  border-radius: 10px;
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: all .3s;
}

.btn-join-cartel:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(99,102,241,.4);
}

/* Mon cartel */
.my-cartel-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.header-dirty-money {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(34,197,94,0.2), rgba(34,197,94,0.1));
  border: 1px solid rgba(34,197,94,0.4);
  border-radius: 12px;
  padding: 8px 14px;
  cursor: pointer;
  transition: all 0.3s;
}

.header-dirty-money:hover {
  background: linear-gradient(135deg, rgba(34,197,94,0.3), rgba(34,197,94,0.2));
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(34,197,94,0.3);
}

.header-dirty-money .dirty-icon {
  font-size: 20px;
}

.header-dirty-money .dirty-amount {
  font-size: 18px;
  font-weight: 700;
  color: #22c55e;
}

.cartel-emoji-big {
  font-size: 48px;
  filter: drop-shadow(0 4px 10px rgba(239,68,68,.4));
}

.cartel-title h3 {
  margin: 0;
  font-size: 22px;
}

.cartel-role {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.cartel-role.boss {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #1a1a2e;
}

.cartel-role.member {
  background: rgba(255,255,255,.1);
  color: #94a3b8;
}

.cartel-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-cartel-action {
  flex: 1;
  min-width: 120px;
  padding: 12px 20px;
  border-radius: 12px;
  border: 2px solid;
  font-weight: 600;
  cursor: pointer;
  transition: all .3s;
}

.btn-cartel-action.war {
  background: linear-gradient(135deg, #dc2626, #991b1b);
  border-color: #ef4444;
  color: white;
}

.btn-cartel-action.war:hover {
  box-shadow: 0 8px 25px rgba(239,68,68,.5);
  transform: translateY(-2px);
}

.btn-cartel-action.leave {
  background: transparent;
  border-color: rgba(255,255,255,.2);
  color: #94a3b8;
}

.btn-cartel-action.leave:hover {
  border-color: #ef4444;
  color: #ef4444;
}

/* ===== CARTE DES TERRITOIRES ===== */

.cartel-map-header {
  margin-bottom: 20px;
}

.cartel-stats {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: center;
}

.cartel-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 20px;
  background: rgba(0,0,0,.3);
  border-radius: 12px;
  min-width: 100px;
}

.cartel-stat .stat-emoji {
  font-size: 24px;
  margin-bottom: 5px;
}

.cartel-stat .stat-value {
  font-size: 18px;
  font-weight: 700;
  color: #f1f5f9;
}

.cartel-stat .stat-label {
  font-size: 11px;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Grille des territoires */
.territory-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  padding: 15px;
  background: rgba(0,0,0,.2);
  border-radius: 16px;
  border: 2px solid rgba(255,255,255,.05);
}

.territory-cell {
  position: relative;
  padding: 15px 10px;
  border-radius: 12px;
  text-align: center;
  border: 2px solid rgba(255,255,255,.1);
  transition: all .3s;
  cursor: pointer;
  overflow: hidden;
  min-height: 130px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.territory-cell::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--territory-color);
  opacity: 0.15;
  pointer-events: none;
  z-index: 0;
}

.territory-cell:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0,0,0,.4);
}

/* États des territoires */
.territory-cell.neutral {
  border-color: rgba(148,163,184,.3);
}

.territory-cell.neutral:hover {
  border-color: var(--territory-color);
}

.territory-cell.owned {
  border-color: #22c55e;
  box-shadow: 0 0 15px rgba(34,197,94,.3);
}

.territory-cell.owned::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(34,197,94,.1), transparent);
  pointer-events: none;
}

.territory-cell.enemy {
  border-color: #ef4444;
  box-shadow: 0 0 15px rgba(239,68,68,.2);
}

.territory-cell.enemy::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(239,68,68,.1), transparent);
  pointer-events: none;
}

.territory-cell.special {
  border-width: 3px;
  background: linear-gradient(135deg, rgba(251,191,36,.1), rgba(168,85,247,.1));
}

.territory-cell.police {
  border-color: #3b82f6;
  opacity: 0.7;
  cursor: not-allowed;
}

/* Contenu des territoires */
.territory-emoji {
  font-size: 32px;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.3));
}

.territory-name {
  font-size: 11px;
  font-weight: 600;
  color: #f1f5f9;
  position: relative;
  z-index: 1;
  margin: 5px 0;
  line-height: 1.2;
}

.territory-income {
  font-size: 10px;
  color: #22c55e;
  font-weight: 600;
  position: relative;
  z-index: 1;
}

.territory-actions {
  position: relative;
  z-index: 1;
  margin-top: 8px;
}

.territory-btn {
  width: 100%;
  padding: 6px 8px;
  border-radius: 8px;
  border: none;
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all .3s;
}

.territory-btn.buy-btn {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: white;
}

.territory-btn.buy-btn:hover:not(.disabled) {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(34,197,94,.4);
}

.territory-btn.attack-btn {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
}

.territory-btn.attack-btn:hover:not(.disabled) {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(239,68,68,.4);
}

.territory-btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.territory-owned {
  color: #22c55e;
  font-size: 11px;
  font-weight: 700;
}

.territory-locked {
  color: #64748b;
  font-size: 10px;
}

.territory-owner {
  font-size: 9px;
  color: #f87171;
  margin-top: 4px;
}

/* Légende de la carte */
.map-legend {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 15px;
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #94a3b8;
}

.legend-color {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 2px solid;
}

.legend-color.owned {
  background: rgba(34,197,94,.2);
  border-color: #22c55e;
}

.legend-color.enemy {
  background: rgba(239,68,68,.2);
  border-color: #ef4444;
}

.legend-color.neutral {
  background: rgba(148,163,184,.2);
  border-color: #94a3b8;
}

.legend-color.special {
  background: linear-gradient(135deg, rgba(251,191,36,.3), rgba(168,85,247,.3));
  border-color: #fbbf24;
}

/* Section Guerres */
.wars-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.war-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px;
  background: linear-gradient(135deg, rgba(239,68,68,.1), rgba(168,85,247,.1));
  border-radius: 12px;
  border: 1px solid rgba(239,68,68,.3);
}

.war-attacker, .war-defender {
  font-weight: 600;
  font-size: 14px;
}

.war-vs {
  font-size: 20px;
  animation: pulse 1s ease-in-out infinite;
}

.war-score {
  background: rgba(0,0,0,.3);
  padding: 6px 14px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
  .territory-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .territory-cell {
    min-height: 110px;
    padding: 10px 6px;
  }
  
  .territory-emoji {
    font-size: 24px;
  }
  
  .territory-name {
    font-size: 10px;
  }
  
  .cartel-stats {
    gap: 10px;
  }
  
  .cartel-stat {
    min-width: 80px;
    padding: 10px 12px;
  }
}

@media (max-width: 480px) {
  .territory-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }
  
  .create-cartel-form {
    flex-direction: column;
  }
  
  .btn-create-cartel {
    width: 100%;
  }
}

/* ===== Cartel Simplifié - Nouveaux styles ===== */
.cartel-price {
  font-size: 12px;
  color: #fbbf24;
  margin-top: 8px;
}

.cartel-item-desc {
  font-size: 11px;
  color: #94a3b8;
  font-style: italic;
  margin-top: 4px;
}

.cartel-bonuses-summary {
  background: rgba(0,0,0,.3);
  border-radius: 12px;
  padding: 15px;
  margin: 20px 0;
  border: 1px solid rgba(255,255,255,.1);
}

.cartel-bonuses-summary h4 {
  margin: 0 0 12px 0;
  font-size: 14px;
  color: #e2e8f0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.bonuses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
}

.bonus-item {
  background: rgba(255,255,255,.05);
  border-radius: 8px;
  padding: 10px 12px;
  text-align: center;
  border: 1px solid rgba(255,255,255,.1);
}

.bonus-item .bonus-value {
  font-size: 18px;
  font-weight: 700;
  color: #22c55e;
}

.bonus-item .bonus-label {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 4px;
}

.bonus-note {
  font-size: 11px;
  color: #64748b;
  text-align: center;
  margin-top: 12px;
  font-style: italic;
}

.cartel-welcome {
  text-align: center;
  padding: 20px;
}

.cartel-welcome-emoji {
  font-size: 64px;
  margin-bottom: 15px;
}

.cartel-welcome h3 {
  margin: 0 0 10px 0;
  font-size: 24px;
  background: linear-gradient(135deg, #ef4444, #f97316);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cartel-welcome p {
  color: #94a3b8;
  margin-bottom: 20px;
}

.cartel-login-warning {
  background: rgba(251,191,36,0.15);
  border: 1px solid rgba(251,191,36,0.4);
  border-radius: 8px;
  padding: 12px 16px;
  margin: 15px 0;
  color: #fbbf24;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.cartel-login-warning span {
  font-size: 18px;
}

.cartel-login-warning strong {
  color: #fcd34d;
}

.available-cartels-grid {
  display: grid;
  gap: 15px;
  margin-top: 20px;
}

.cartel-option {
  background: rgba(0,0,0,.3);
  border-radius: 12px;
  padding: 20px;
  border: 2px solid rgba(255,255,255,.1);
  transition: all .3s;
  cursor: pointer;
}

.cartel-option:hover {
  border-color: rgba(239,68,68,.5);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0,0,0,.3);
}

.cartel-option-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 12px;
}

.cartel-option-emoji {
  font-size: 40px;
}

.cartel-option-info h4 {
  margin: 0;
  font-size: 16px;
  color: #f1f5f9;
}

.cartel-option-info .members-count {
  font-size: 12px;
  color: #64748b;
  margin-top: 4px;
}

.cartel-option-bonus {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(34,197,94,.1);
  border: 1px solid rgba(34,197,94,.3);
  border-radius: 8px;
  font-size: 13px;
  color: #22c55e;
  margin-bottom: 12px;
}

.btn-join-cartel-option {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  border: none;
  border-radius: 10px;
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: all .3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-join-cartel-option:hover {
  transform: scale(1.02);
  box-shadow: 0 5px 20px rgba(239,68,68,.4);
}

.btn-join-cartel-option:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.cartel-territories-count {
  font-size: 12px;
  color: #64748b;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,.1);
}

/* Mon cartel simplifié */
.my-cartel-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 12px;
  margin: 15px 0;
}

.summary-stat {
  background: rgba(0,0,0,.3);
  border-radius: 10px;
  padding: 12px;
  text-align: center;
  border: 1px solid rgba(255,255,255,.1);
}

.summary-stat .stat-value {
  font-size: 20px;
  font-weight: 700;
  color: #f59e0b;
}

.summary-stat .stat-label {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 4px;
}

.leave-cartel-warning {
  background: rgba(239,68,68,.1);
  border: 1px solid rgba(239,68,68,.3);
  border-radius: 8px;
  padding: 12px;
  margin-top: 15px;
  font-size: 12px;
  color: #fca5a5;
  text-align: center;
}

/* ===== CARTE DES TERRITOIRES v2 ===== */
.dirty-money-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 20px;
  background: linear-gradient(135deg, rgba(220,38,38,0.15), rgba(185,28,28,0.1));
  border: 2px solid rgba(239,68,68,0.4);
  border-radius: 15px;
  margin: 15px 0;
}

.dirty-money-display.large {
  padding: 20px 30px;
  margin: 20px 0;
}

.dirty-money-display .dirty-icon {
  font-size: 28px;
}

.dirty-money-display .dirty-amount {
  font-size: 24px;
  font-weight: 700;
  color: #ef4444;
}

.dirty-money-display.large .dirty-amount {
  font-size: 32px;
}

.dirty-money-display .dirty-label {
  font-size: 12px;
  color: #64748b;
}

.join-price-info {
  text-align: center;
  padding: 10px;
  background: rgba(0,0,0,0.3);
  border-radius: 10px;
  color: #94a3b8;
  font-size: 13px;
  margin-top: 10px;
}

.join-price-info strong {
  color: #fbbf24;
}

.cartel-desc {
  font-size: 12px;
  color: #64748b;
  margin: 5px 0 0 0;
}

/* Carte des territoires */
.territory-map-container {
  margin-top: 20px;
  padding: 15px;
  background: rgba(0,0,0,0.3);
  border-radius: 15px;
  border: 1px solid rgba(255,255,255,0.1);
}

.territory-map-container h4 {
  margin: 0 0 15px 0;
  font-size: 16px;
  color: #e2e8f0;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

/* Badge LIVE synchronisation temps réel */
.live-sync-badge {
  font-size: 10px;
  padding: 3px 8px;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: white;
  border-radius: 20px;
  animation: live-pulse 2s ease-in-out infinite;
  font-weight: bold;
  letter-spacing: 0.5px;
}

@keyframes live-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(0.95); }
}

.territory-map {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 15px;
  background: rgba(0,0,0,0.4);
  border-radius: 12px;
  overflow-x: auto;
}

.map-row {
  display: flex;
  gap: 6px;
  justify-content: center;
}

.territory-cell {
  width: 70px;
  height: 70px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 3px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.08);
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}

.territory-cell:hover {
  transform: scale(1.15);
  z-index: 10;
  box-shadow: 0 8px 25px rgba(0,0,0,0.6);
  border-color: rgba(255,255,255,0.5);
}

.territory-cell .cell-emoji {
  font-size: 28px;
}

.territory-cell .cell-name {
  font-size: 8px;
  color: rgba(255,255,255,0.7);
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  max-width: 60px;
  text-align: center;
  margin-top: 2px;
}

.territory-cell .cell-owner {
  position: absolute;
  top: -8px;
  right: -8px;
  font-size: 16px;
  background: rgba(0,0,0,0.9);
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255,255,255,0.3);
}

/* Badge bâtiment sur la carte */
.territory-cell .cell-building {
  position: absolute;
  top: -8px;
  left: -8px;
  font-size: 14px;
  background: rgba(0,0,0,0.9);
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #22c55e;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.5);
}

.territory-cell .cell-capturable {
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 16px;
  animation: pulse 1s infinite;
}

.territory-cell.owned {
  box-shadow: 0 0 20px rgba(34,197,94,0.6);
  border-color: rgba(34,197,94,0.8);
}

.territory-cell.enemy {
  opacity: 0.9;
  box-shadow: 0 0 15px rgba(239,68,68,0.4);
}

.territory-cell.capturable {
  border-color: rgba(251,191,36,0.8);
  animation: capturable-glow 1.5s infinite;
  box-shadow: 0 0 15px rgba(251,191,36,0.4);
}

.territory-cell.capturable.stealable {
  border-color: rgba(239,68,68,0.8);
  animation: stealable-glow 1s infinite;
  box-shadow: 0 0 15px rgba(239,68,68,0.4);
  background: rgba(239,68,68,0.2);
}

@keyframes stealable-glow {
  0%, 100% { box-shadow: 0 0 15px rgba(239,68,68,0.4); }
  50% { box-shadow: 0 0 25px rgba(239,68,68,0.7); }
}

.territory-cell.capturable.start-point {
  animation: start-point-pulse 1s infinite;
  border-width: 4px;
}

@keyframes start-point-pulse {
  0%, 100% { 
    transform: scale(1); 
    box-shadow: 0 0 20px rgba(251,191,36,0.6);
  }
  50% { 
    transform: scale(1.08); 
    box-shadow: 0 0 35px rgba(251,191,36,0.9);
  }
}

.territory-cell.neutral {
  opacity: 0.6;
}

/* Légende volable */
.legend-color.stealable {
  background: rgba(239,68,68,0.6);
  border-color: #ef4444;
}

.territory-cell.neutral:hover {
  opacity: 0.9;
}

.territory-cell.special {
  background: linear-gradient(135deg, rgba(255,215,0,0.3), rgba(255,165,0,0.15));
  border-color: rgba(255,215,0,0.5);
}

.territory-cell.special::after {
  content: '⭐';
  position: absolute;
  top: -10px;
  left: -10px;
  font-size: 14px;
  pointer-events: none;
}

@keyframes capturable-glow {
  0%, 100% { box-shadow: 0 0 5px rgba(251,191,36,0.3); }
  50% { box-shadow: 0 0 20px rgba(251,191,36,0.6); }
}

/* Légende de la carte */
.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #94a3b8;
}

.legend-color {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 2px solid;
}

.legend-color.owned {
  background: rgba(34,197,94,0.4);
  border-color: #22c55e;
}

.legend-color.enemy {
  background: rgba(239,68,68,0.4);
  border-color: #ef4444;
}

.legend-color.capturable {
  background: rgba(251,191,36,0.2);
  border-color: #fbbf24;
  animation: capturable-glow 1.5s infinite;
}

.legend-color.neutral {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.3);
}

/* Modal territoire */
.territory-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  padding: 20px;
  animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.territory-modal-content {
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  border-radius: 20px;
  padding: 25px;
  max-width: 400px;
  width: 100%;
  position: relative;
  border: 2px solid rgba(255,255,255,0.15);
  box-shadow: 0 25px 80px rgba(0,0,0,0.6);
  animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.territory-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: none;
  color: white;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.2s;
}

.territory-modal-close:hover {
  background: rgba(239,68,68,0.5);
}

.territory-modal-header {
  text-align: center;
  margin-bottom: 20px;
}

.territory-modal-emoji {
  font-size: 48px;
  display: block;
  margin-bottom: 10px;
}

.territory-modal-header h3 {
  margin: 0;
  font-size: 20px;
  color: #f1f5f9;
}

.territory-special-badge {
  display: inline-block;
  padding: 4px 10px;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  border-radius: 20px;
  font-size: 11px;
  color: #1a1a2e;
  font-weight: 600;
  margin-top: 8px;
}

.territory-legal-badge {
  display: inline-block;
  padding: 4px 10px;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  border-radius: 20px;
  font-size: 11px;
  color: white;
  font-weight: 600;
  margin-top: 8px;
  margin-left: 5px;
}

.territory-info-row.legal-bonus .info-value {
  color: #22c55e;
  font-weight: 600;
}

.territory-info-row.special-bonus .info-value {
  color: #fbbf24;
  font-weight: 600;
  font-size: 12px;
}

.territory-info-row.special-bonus .info-label {
  color: #fbbf24;
}

.bonus-text {
  text-align: right;
  max-width: 150px;
}

.territory-modal-info {
  background: rgba(0,0,0,0.3);
  border-radius: 12px;
  padding: 15px;
  margin-bottom: 20px;
}

.territory-info-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.territory-info-row:last-child {
  border-bottom: none;
}

.territory-info-row .info-label {
  color: #64748b;
  font-size: 13px;
}

.territory-info-row .info-value {
  color: #e2e8f0;
  font-weight: 600;
  font-size: 13px;
}

.territory-info-row .info-value.player-name {
  color: #fbbf24;
  background: rgba(251,191,36,0.15);
  padding: 2px 8px;
  border-radius: 4px;
  font-style: italic;
}

.territory-capture-section {
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.3);
  border-radius: 12px;
  padding: 15px;
  text-align: center;
}

.territory-capture-section.steal-mode {
  background: rgba(239,68,68,0.15);
  border: 1px solid rgba(239,68,68,0.4);
}

.territory-capture-section.war-mode {
  background: rgba(147,51,234,0.2);
  border: 2px solid rgba(147,51,234,0.6);
  animation: war-pulse 1s infinite;
}

@keyframes war-pulse {
  0%, 100% { box-shadow: 0 0 10px rgba(147,51,234,0.3); }
  50% { box-shadow: 0 0 25px rgba(147,51,234,0.6); }
}

.steal-warning {
  background: rgba(239,68,68,0.2);
  border: 1px solid rgba(239,68,68,0.5);
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 12px;
  font-size: 12px;
  color: #fca5a5;
}

.war-warning {
  background: rgba(147,51,234,0.2);
  border: 1px solid rgba(147,51,234,0.5);
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 12px;
  font-size: 12px;
  color: #c4b5fd;
  font-weight: bold;
  text-align: center;
}

.price-note.steal {
  color: #ef4444;
  font-weight: bold;
}

.price-note.enemy {
  color: #a855f7;
  font-weight: bold;
  animation: blink 0.5s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.btn-capture-territory.steal-btn {
  background: linear-gradient(135deg, #ef4444, #dc2626);
}

.btn-capture-territory.steal-btn:hover:not(:disabled) {
  box-shadow: 0 5px 20px rgba(239,68,68,0.4);
}

.btn-capture-territory.war-btn {
  background: linear-gradient(135deg, #9333ea, #7c3aed);
  animation: war-btn-pulse 1s infinite;
}

.btn-capture-territory.war-btn:hover:not(:disabled) {
  box-shadow: 0 5px 25px rgba(147,51,234,0.5);
}

@keyframes war-btn-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}

.capture-price {
  font-size: 14px;
  color: #94a3b8;
  margin-bottom: 12px;
}

.capture-price strong {
  color: #22c55e;
  font-size: 18px;
}

.price-note {
  display: block;
  font-size: 11px;
  color: #ef4444;
  margin-top: 4px;
}

.btn-capture-territory {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  border: none;
  border-radius: 12px;
  color: white;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-capture-territory:hover:not(:disabled) {
  transform: scale(1.02);
  box-shadow: 0 5px 20px rgba(34,197,94,0.4);
}

.btn-capture-territory.disabled,
.btn-capture-territory:disabled {
  background: #374151;
  cursor: not-allowed;
  opacity: 0.6;
}

.territory-owned-section {
  text-align: center;
  padding: 15px;
}

.owned-badge {
  color: #22c55e;
  font-size: 14px;
}

.territory-locked-section {
  text-align: center;
  padding: 15px;
  background: rgba(100,116,139,0.1);
  border-radius: 12px;
}

.locked-badge {
  color: #64748b;
  font-size: 13px;
}

.btn-leave-cartel {
  width: 100%;
  margin-top: 20px;
  padding: 12px;
  background: rgba(239,68,68,0.1);
  border: 2px solid rgba(239,68,68,0.3);
  border-radius: 12px;
  color: #fca5a5;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-leave-cartel:hover {
  background: rgba(239,68,68,0.2);
  border-color: #ef4444;
}

/* Responsive carte */
@media (max-width: 600px) {
  .territory-cell {
    width: 40px;
    height: 40px;
  }
  
  .territory-cell .cell-emoji {
    font-size: 16px;
  }
  
  .territory-cell .cell-owner {
    width: 16px;
    height: 16px;
    font-size: 10px;
  }
  
  .map-legend {
    gap: 10px;
  }
  
  .legend-item {
    font-size: 10px;
  }
}

/* Cartel loading */
.cartel-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
}

.cartel-loading .loading-spinner {
  font-size: 48px;
  animation: spin 1s linear infinite;
}

.cartel-loading p {
  color: #94a3b8;
  margin-top: 15px;
  font-size: 14px;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ===== BÂTIMENTS SUR TERRITOIRES ===== */
.territory-building-section {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.territory-building-section h4 {
  color: #e2e8f0;
  margin-bottom: 12px;
  font-size: 14px;
}

.current-building {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(59,130,246,0.15);
  border: 1px solid rgba(59,130,246,0.3);
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 10px;
}

.building-emoji {
  font-size: 32px;
}

.building-info {
  display: flex;
  flex-direction: column;
}

.building-name {
  color: #e2e8f0;
  font-weight: 600;
  font-size: 14px;
}

.building-desc {
  color: #94a3b8;
  font-size: 12px;
}

.btn-demolish {
  width: 100%;
  padding: 8px 15px;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  border: none;
  border-radius: 8px;
  color: white;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-demolish:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 15px rgba(239,68,68,0.4);
}

.build-options-grid {
  display: grid;
  gap: 10px;
}

.build-option {
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 12px;
  transition: all 0.2s;
}

.build-option:not(.disabled):hover {
  border-color: rgba(59,130,246,0.5);
  background: rgba(59,130,246,0.1);
}

.build-option.disabled {
  opacity: 0.5;
}

.build-option-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
}

.build-emoji {
  font-size: 24px;
}

.build-name {
  color: #e2e8f0;
  font-weight: 600;
  font-size: 13px;
}

.build-desc {
  color: #94a3b8;
  font-size: 11px;
  margin: 0 0 10px 0;
}

.btn-build {
  width: 100%;
  padding: 8px 12px;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  border: none;
  border-radius: 6px;
  color: white;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-build:hover:not(.disabled) {
  transform: scale(1.02);
  box-shadow: 0 4px 15px rgba(34,197,94,0.4);
}

.btn-build.disabled {
  background: #334155;
  cursor: not-allowed;
}

/* ===== BLANCHIMENT D'ARGENT ===== */
.cartel-actions-row {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.btn-launder-main {
  flex: 1;
  padding: 12px 20px;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  border: none;
  border-radius: 10px;
  color: #1a1a2e;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-launder-main:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 20px rgba(251,191,36,0.5);
}

.laundering-panel {
  max-width: 400px;
}

.laundering-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.laundering-icon {
  font-size: 40px;
}

.laundering-header h3 {
  color: #e2e8f0;
  margin: 0;
}

.laundering-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 20px;
}

.dirty-balance, .clean-balance {
  background: rgba(0,0,0,0.3);
  border-radius: 10px;
  padding: 15px;
  text-align: center;
}

.dirty-balance {
  border: 1px solid rgba(239,68,68,0.3);
}

.clean-balance {
  border: 1px solid rgba(34,197,94,0.3);
}

.dirty-balance .label, .clean-balance .label {
  display: block;
  color: #94a3b8;
  font-size: 12px;
  margin-bottom: 5px;
}

.dirty-balance .value {
  display: block;
  color: #ef4444;
  font-size: 20px;
  font-weight: 700;
}

.clean-balance .value {
  display: block;
  color: #22c55e;
  font-size: 20px;
  font-weight: 700;
}

.laundering-rate {
  background: rgba(251,191,36,0.1);
  border: 1px solid rgba(251,191,36,0.3);
  border-radius: 10px;
  padding: 12px;
  text-align: center;
  margin-bottom: 15px;
}

.laundering-rate span {
  color: #fbbf24;
  font-size: 14px;
}

.laundering-rate strong {
  font-size: 18px;
}

.rate-hint {
  color: #94a3b8;
  font-size: 11px;
  margin: 5px 0 0 0;
}

.legal-territories-list {
  margin-bottom: 20px;
}

.legal-territories-list h4 {
  color: #e2e8f0;
  font-size: 13px;
  margin-bottom: 10px;
}

.legal-territory {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: rgba(0,0,0,0.2);
  border-radius: 6px;
  margin-bottom: 5px;
  font-size: 12px;
}

.legal-territory span:first-child {
  color: #94a3b8;
}

.legal-territory span:last-child {
  color: #ef4444;
}

.legal-territory.owned span:first-child {
  color: #e2e8f0;
}

.legal-territory.owned span:last-child {
  color: #22c55e;
}

.laundering-actions h4 {
  color: #e2e8f0;
  font-size: 13px;
  margin-bottom: 12px;
}

.launder-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 15px;
}

.btn-launder {
  padding: 12px 15px;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  border: none;
  border-radius: 8px;
  color: white;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-launder:hover:not(:disabled) {
  transform: scale(1.03);
  box-shadow: 0 4px 15px rgba(59,130,246,0.4);
}

.btn-launder:disabled {
  background: #334155;
  cursor: not-allowed;
  opacity: 0.5;
}

.btn-launder.all {
  grid-column: span 2;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #1a1a2e;
  font-size: 14px;
}

.btn-launder.all:hover:not(:disabled) {
  box-shadow: 0 4px 20px rgba(251,191,36,0.5);
}

.launder-preview {
  text-align: center;
  color: #94a3b8;
  font-size: 12px;
  margin: 0;
}

.launder-preview strong {
  color: #22c55e;
  font-size: 16px;
}

/* ===================== */
/* 🔐 AUTHENTIFICATION   */
/* ===================== */

#auth-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(5px);
}

.auth-box {
  position: relative;
  background: linear-gradient(145deg, #1e293b, #0f172a);
  border: 2px solid rgba(34,211,238,0.3);
  border-radius: 20px;
  padding: 30px;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 40px rgba(34,211,238,0.1);
}

.auth-box h2 {
  text-align: center;
  color: #f1f5f9;
  margin: 0 0 20px 0;
  font-size: 24px;
}

.auth-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 20px;
  cursor: pointer;
  transition: color 0.2s;
}

.auth-close:hover {
  color: #ef4444;
}

.auth-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.auth-tab {
  flex: 1;
  padding: 10px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.2s;
}

.auth-tab:hover {
  background: rgba(255,255,255,0.1);
}

.auth-tab.active {
  background: rgba(34,211,238,0.2);
  border-color: rgba(34,211,238,0.5);
  color: #22d3ee;
}

#auth-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

#auth-form input {
  padding: 15px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  color: #f1f5f9;
  font-size: 16px;
  outline: none;
  transition: all 0.2s;
}

#auth-form input:focus {
  border-color: #22d3ee;
  background: rgba(34,211,238,0.1);
}

#auth-form input::placeholder {
  color: #64748b;
}

.auth-btn {
  padding: 15px;
  background: linear-gradient(135deg, #22d3ee, #06b6d4);
  border: none;
  border-radius: 10px;
  color: #0f172a;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s;
}

.auth-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(34,211,238,0.4);
}

.auth-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.auth-error {
  color: #ef4444;
  text-align: center;
  font-size: 14px;
  margin: 10px 0 0 0;
  min-height: 20px;
}

#auth-status-btn small {
  opacity: 0.7;
  font-size: 10px;
}

/* =======================================
   💰 BONUS BLANCHIMENT
======================================= */
.active-bonuses {
  background: linear-gradient(145deg, rgba(34,197,94,0.1), rgba(34,197,94,0.05));
  border: 1px solid rgba(34,197,94,0.3);
  border-radius: 12px;
  padding: 15px;
  margin: 15px 0;
}

.active-bonuses h4 {
  margin: 0 0 12px 0;
  font-size: 14px;
  color: #22c55e;
}

.special-territories-list {
  background: rgba(251,191,36,0.08);
  border: 1px solid rgba(251,191,36,0.2);
  border-radius: 12px;
  padding: 15px;
  margin: 15px 0;
}

.special-territories-list h4 {
  margin: 0 0 12px 0;
  font-size: 14px;
  color: #fbbf24;
}

.special-territory {
  display: flex;
  flex-direction: column;
  padding: 10px;
  background: rgba(0,0,0,0.2);
  border-radius: 8px;
  margin-bottom: 8px;
  border-left: 3px solid #fbbf24;
}

.special-territory.owned {
  border-left-color: #22c55e;
}

.special-territory span:first-child {
  font-weight: 600;
  font-size: 14px;
}

.special-desc {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 4px;
}

/* =======================================
   ⚔️ SYSTÈME GUERRE/PAIX
======================================= */
.war-section {
  background: linear-gradient(145deg, rgba(15,23,42,0.9), rgba(30,41,59,0.8));
  border-radius: 12px;
  padding: 15px;
  margin: 15px 0;
  text-align: center;
}

.war-section.war {
  border: 2px solid #ef4444;
  background: linear-gradient(145deg, rgba(239,68,68,0.15), rgba(239,68,68,0.05));
  animation: war-pulse 2s ease-in-out infinite;
}

.war-section.peace {
  border: 2px solid #22c55e;
  background: linear-gradient(145deg, rgba(34,197,94,0.15), rgba(34,197,94,0.05));
}

@keyframes war-pulse {
  0%, 100% { box-shadow: 0 0 10px rgba(239,68,68,0.3); }
  50% { box-shadow: 0 0 25px rgba(239,68,68,0.6); }
}

.war-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 12px;
}

.war-icon {
  font-size: 24px;
}

.war-title {
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.war-section.war .war-title {
  color: #ef4444;
}

.war-section.peace .war-title {
  color: #22c55e;
}

.war-info {
  display: flex;
  justify-content: center;
  gap: 25px;
  margin: 12px 0;
}

.war-timer {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.war-timer .timer-icon {
  font-size: 16px;
}

.war-timer .timer-value {
  font-size: 24px;
  font-weight: 700;
  color: #22d3ee;
  font-family: monospace;
}

.war-timer .timer-label {
  font-size: 11px;
  color: #64748b;
}

.war-hint {
  font-size: 12px;
  color: #94a3b8;
  margin: 10px 0 0 0;
}

.war-section.war .war-hint {
  color: #fca5a5;
}

.war-section.peace .war-hint {
  color: #86efac;
}

/* Ancien système raid - désactivé */
.raid-section {
  display: none;
}

.btn-start-raid {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(245,158,11,0.4);
}

.btn-start-raid:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(245,158,11,0.6);
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
}

.btn-start-raid:active {
  transform: translateY(0);
}

/* ==========================================
   TIERS DE RARETÉ DES TERRITOIRES
   ========================================== */
.territory-cell.tier-legendary,
.territory-cell.special.tier-legendary,
.territory-cell.owned.tier-legendary,
.territory-cell.enemy.tier-legendary,
.territory-cell.capturable.tier-legendary,
.territory-cell.neutral.tier-legendary {
  border-color: #ffd700 !important;
  border-width: 3px !important;
  box-shadow: 0 0 20px #ffd700, 0 0 40px rgba(255,215,0,0.5) !important;
  animation: glow-legendary 2s infinite alternate !important;
}

@keyframes glow-legendary {
  from { box-shadow: 0 0 15px #ffd700, 0 0 30px rgba(255,215,0,0.3); }
  to { box-shadow: 0 0 30px #ffd700, 0 0 60px rgba(255,215,0,0.6); }
}

.territory-cell.tier-epic,
.territory-cell.special.tier-epic,
.territory-cell.owned.tier-epic,
.territory-cell.enemy.tier-epic,
.territory-cell.capturable.tier-epic,
.territory-cell.neutral.tier-epic {
  border-color: #a855f7 !important;
  border-width: 3px !important;
  box-shadow: 0 0 15px #a855f7, 0 0 30px rgba(168,85,247,0.5) !important;
  animation: glow-epic 2s infinite alternate !important;
}

@keyframes glow-epic {
  from { box-shadow: 0 0 12px #a855f7, 0 0 25px rgba(168,85,247,0.3); }
  to { box-shadow: 0 0 25px #a855f7, 0 0 50px rgba(168,85,247,0.6); }
}

.territory-cell.tier-rare,
.territory-cell.special.tier-rare,
.territory-cell.owned.tier-rare,
.territory-cell.enemy.tier-rare,
.territory-cell.capturable.tier-rare,
.territory-cell.neutral.tier-rare {
  border-color: #3b82f6 !important;
  border-width: 3px !important;
  box-shadow: 0 0 12px #3b82f6, 0 0 25px rgba(59,130,246,0.4) !important;
}

.territory-cell.tier-uncommon,
.territory-cell.special.tier-uncommon,
.territory-cell.owned.tier-uncommon,
.territory-cell.enemy.tier-uncommon,
.territory-cell.capturable.tier-uncommon,
.territory-cell.neutral.tier-uncommon {
  border-color: #22c55e !important;
  border-width: 2px !important;
  box-shadow: 0 0 10px #22c55e, 0 0 20px rgba(34,197,94,0.4) !important;
}

.territory-cell.tier-common,
.territory-cell.special.tier-common,
.territory-cell.owned.tier-common,
.territory-cell.enemy.tier-common,
.territory-cell.capturable.tier-common,
.territory-cell.neutral.tier-common {
  border-color: #94a3b8 !important;
  border-width: 2px !important;
}

.territory-cell.tier-basic,
.territory-cell.special.tier-basic,
.territory-cell.owned.tier-basic,
.territory-cell.enemy.tier-basic,
.territory-cell.capturable.tier-basic,
.territory-cell.neutral.tier-basic {
  border-color: #a1887f !important;
  border-width: 2px !important;
}

/* Badge de tier sur les cellules */
.cell-tier {
  position: absolute !important;
  top: 3px !important;
  right: 3px !important;
  font-size: 9px !important;
  padding: 2px 5px !important;
  border-radius: 6px !important;
  font-weight: bold !important;
  z-index: 10 !important;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.cell-tier.tier-legendary { background: linear-gradient(135deg, #ffd700, #ff8c00) !important; color: #000 !important; }
.cell-tier.tier-epic { background: linear-gradient(135deg, #a855f7, #7c3aed) !important; color: #fff !important; }
.cell-tier.tier-rare { background: linear-gradient(135deg, #3b82f6, #1d4ed8) !important; color: #fff !important; }
.cell-tier.tier-uncommon { background: linear-gradient(135deg, #22c55e, #16a34a) !important; color: #fff !important; }
.cell-tier.tier-common { background: linear-gradient(135deg, #64748b, #475569) !important; color: #fff !important; }
.cell-tier.tier-basic { background: linear-gradient(135deg, #8d6e63, #6d4c41) !important; color: #fff !important; }

/* Badge de protection */
.cell-protection {
  position: absolute !important;
  top: 3px !important;
  left: 3px !important;
  font-size: 12px !important;
  background: linear-gradient(135deg, #06b6d4, #0891b2) !important;
  padding: 2px 5px !important;
  border-radius: 6px !important;
  z-index: 10 !important;
}

/* Territoire protégé */
.territory-cell.protected {
  border: 2px dashed #06b6d4 !important;
  position: relative;
}

.territory-cell.protected::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(6,182,212,0.1);
  pointer-events: none;
  z-index: 1;
}

/* ==========================================
   SYSTÈME DE VISITE DE FERMES
   ========================================== */

/* Overlay et Modal */
.farms-overlay, .visit-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.85);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  backdrop-filter: blur(5px);
}

.farms-modal {
  background: linear-gradient(145deg, #1e293b, #0f172a);
  border-radius: 20px;
  padding: 30px;
  max-width: 800px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  border: 2px solid rgba(34,197,94,0.3);
  box-shadow: 0 25px 50px rgba(0,0,0,0.5), 0 0 100px rgba(34,197,94,0.1);
}

.farms-modal h2 {
  text-align: center;
  font-size: 28px;
  margin-bottom: 5px;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.farms-subtitle {
  text-align: center;
  color: #94a3b8;
  margin-bottom: 20px;
}

/* Barre de recherche */
.farms-search-container {
  margin-bottom: 20px;
}

.farms-search-input {
  width: 100%;
  padding: 15px 20px;
  background: rgba(30,41,59,0.8);
  border: 2px solid rgba(34,197,94,0.3);
  border-radius: 12px;
  color: #fff;
  font-size: 16px;
  outline: none;
  transition: all 0.3s ease;
}

.farms-search-input:focus {
  border-color: #22c55e;
  box-shadow: 0 0 20px rgba(34,197,94,0.3);
}

.farms-search-input::placeholder {
  color: #64748b;
}

/* Liste des fermes */
.farms-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 15px;
}

/* Carte de ferme */
.farm-card {
  background: linear-gradient(145deg, rgba(30,41,59,0.9), rgba(15,23,42,0.9));
  border-radius: 16px;
  padding: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid rgba(255,255,255,0.1);
  position: relative;
  overflow: hidden;
}

.farm-card:hover {
  transform: translateY(-5px);
  border-color: #22c55e;
  box-shadow: 0 15px 40px rgba(34,197,94,0.2);
}

.farm-card.own-farm {
  border-color: rgba(251,191,36,0.5);
  cursor: default;
}

.farm-card.own-farm:hover {
  transform: none;
  box-shadow: none;
}

/* Aperçu de la ferme */
.farm-preview-container {
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 12px;
}

.farm-preview {
  height: 100px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
  position: relative;
  border-radius: 12px;
}

.farm-plant-emoji {
  font-size: 50px;
  animation: farmCardPlantBounce 2s ease-in-out infinite;
  filter: drop-shadow(0 3px 6px rgba(0,0,0,0.3));
}

@keyframes farmCardPlantBounce {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-5px) scale(1.08); }
}

/* Décors de fond */
.farm-preview.decor-bg-default, .decor-bg-default {
  background: linear-gradient(180deg, #87CEEB 0%, #98D8AA 50%, #4a7c29 100%);
}

.farm-preview.decor-bg-sunset, .decor-bg-sunset {
  background: linear-gradient(180deg, #ff7e5f, #feb47b, #ffb88c);
}

.farm-preview.decor-bg-night, .decor-bg-night {
  background: linear-gradient(180deg, #0f0c29, #302b63, #24243e);
}

.farm-preview.decor-bg-spring, .decor-bg-spring {
  background: linear-gradient(180deg, #a8edea, #fed6e3, #d4fc79);
}

.farm-preview.decor-bg-autumn, .decor-bg-autumn {
  background: linear-gradient(180deg, #f2994a, #f2c94c, #eb5757);
}

.farm-preview.decor-bg-winter, .decor-bg-winter {
  background: linear-gradient(180deg, #e0eafc, #cfdef3, #a8d8ea);
}

.farm-preview.decor-bg-space, .decor-bg-space {
  background: linear-gradient(180deg, #0c0c1e, #1a1a3e, #2d1b4e);
}

.farm-preview.decor-bg-beach, .decor-bg-beach {
  background: linear-gradient(180deg, #00d2ff, #3a7bd5, #f0e68c);
}

/* Mini pot dans l'aperçu */
.farm-preview-pot {
  width: 50px;
  height: 40px;
  background: linear-gradient(to bottom, #c2410c, #7c2d12);
  border-radius: 5px 5px 8px 8px;
  position: relative;
  display: flex;
  justify-content: center;
}

.mini-plant {
  width: 8px;
  height: 30px;
  background: linear-gradient(to top, #22c55e, #16a34a);
  position: absolute;
  bottom: 35px;
  border-radius: 4px;
}

.mini-plant::before {
  content: '';
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 25px;
  height: 25px;
  background: radial-gradient(circle, #fbbf24 30%, #f59e0b 70%);
  border-radius: 50%;
}

/* Infos de la ferme */
.farm-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.farm-name {
  font-weight: 700;
  font-size: 16px;
  color: #fff;
}

.you-badge {
  font-size: 12px;
  color: #fbbf24;
  font-weight: 400;
}

.farm-level {
  font-size: 13px;
  color: #22c55e;
}

.farm-score {
  font-size: 12px;
  color: #fbbf24;
}

.farm-stats {
  display: flex;
  gap: 12px;
  margin-top: 5px;
}

.farm-stat {
  font-size: 12px;
  color: #94a3b8;
}

/* Badge du skin */
.farm-skin-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0,0,0,0.6);
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 10px;
  color: #fff;
  text-transform: uppercase;
  font-weight: 600;
}

/* ===== PAGE VISITE D'UNE FERME ===== */
.visit-modal {
  background: linear-gradient(145deg, #1e293b, #0f172a);
  border-radius: 20px;
  padding: 30px;
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  border: 2px solid rgba(34,197,94,0.3);
  box-shadow: 0 25px 50px rgba(0,0,0,0.5);
}

.visit-modal h2 {
  text-align: center;
  font-size: 24px;
  margin-bottom: 20px;
  color: #22c55e;
}

.visit-farm-container {
  margin-bottom: 20px;
}

.visit-farm-display {
  height: 250px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.visit-plant-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2;
}

.visit-plant-preview .plant-emoji {
  font-size: 80px;
  animation: plantBounce 2s ease-in-out infinite;
  filter: drop-shadow(0 5px 10px rgba(0,0,0,0.3));
}

.visit-plant-preview .plant-pot {
  font-size: 50px;
  margin-top: -15px;
}

@keyframes plantBounce {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-8px) scale(1.05); }
}

.visit-decor-row {
  display: flex;
  gap: 15px;
  margin-top: 15px;
  z-index: 1;
}

.visit-decor-row .decor-emoji {
  font-size: 35px;
  animation: decorFloat 3s ease-in-out infinite;
}

.visit-decor-row .decor-emoji:nth-child(2n) {
  animation-delay: 0.5s;
}

.visit-decor-row .decor-emoji:nth-child(3n) {
  animation-delay: 1s;
}

@keyframes decorFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.visit-pot-area {
  position: relative;
  z-index: 2;
}

.visit-pot-area .pot {
  width: 80px;
  height: 60px;
}

.visit-fence {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  z-index: 1;
}

.fence-wooden {
  background: repeating-linear-gradient(90deg, #8B4513 0px, #8B4513 10px, #654321 10px, #654321 12px);
  border-top: 4px solid #654321;
}

.fence-white {
  background: repeating-linear-gradient(90deg, #fff 0px, #fff 8px, #e0e0e0 8px, #e0e0e0 10px);
  border-top: 4px solid #f0f0f0;
}

.fence-metal {
  background: repeating-linear-gradient(90deg, #555 0px, #555 5px, transparent 5px, transparent 15px);
  border-top: 2px solid #777;
}

.visit-skin-label {
  position: absolute;
  bottom: 10px;
  right: 10px;
  z-index: 3;
}

.skin-name-badge {
  background: rgba(0,0,0,0.7);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  color: #fff;
}

.visit-decor-object {
  position: absolute;
  width: 40px;
  height: 40px;
  z-index: 1;
}

.decor-obj-flower { background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><text y="20" font-size="20">🌸</text></svg>'); background-size: contain; }
.decor-obj-tree { background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><text y="20" font-size="20">🌳</text></svg>'); background-size: contain; }
.decor-obj-mushroom { background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><text y="20" font-size="20">🍄</text></svg>'); background-size: contain; }
.decor-obj-rock { background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><text y="20" font-size="20">🪨</text></svg>'); background-size: contain; }
.decor-obj-gnome { background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><text y="20" font-size="20">🧙</text></svg>'); background-size: contain; }

/* Stats de visite */
.visit-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.visit-stats .stat-item {
  background: rgba(30,41,59,0.8);
  padding: 12px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.visit-stats .stat-icon {
  font-size: 20px;
}

.visit-stats .stat-value {
  font-size: 14px;
  color: #fff;
}

/* Boutons d'action */
.visit-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.visit-btn {
  padding: 12px 24px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.water-btn {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: #fff;
}

.water-btn:hover:not(.disabled) {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(59,130,246,0.5);
}

.like-btn {
  background: linear-gradient(135deg, #ec4899, #be185d);
  color: #fff;
}

.like-btn:hover:not(.disabled) {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(236,72,153,0.5);
}

.visit-btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.visit-btn.liked {
  background: linear-gradient(135deg, #22c55e, #16a34a);
}

/* Pas de fermes */
.no-farms {
  text-align: center;
  color: #64748b;
  padding: 40px;
  grid-column: 1 / -1;
}

/* Responsive */
@media (max-width: 600px) {
  .farms-list {
    grid-template-columns: 1fr;
  }
  
  .farms-modal, .visit-modal {
    padding: 20px;
    margin: 10px;
  }
  
  .visit-stats {
    grid-template-columns: 1fr;
  }
  
  .visit-actions {
    flex-direction: column;
  }
}