:root {
--bg: #004d25;
--card-bg: white;
--accent: #f1c40f;
--muted: #94a3b8;
}

* { box-sizing: border-box; font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial; }
body {
margin:0; padding:16px;
background: radial-gradient(circle at center, #006633 0%, #003d1a 100%);
color:#f5f5f5;
}

.app { max-width:960px; margin:0 auto; padding:8px; }
header { display:flex; justify-content:center; margin-bottom:20px; }
h1 { margin:0; font-size:28px; color: var(--accent); text-shadow: 0 2px 4px rgba(0,0,0,0.6); }

.controls { display:flex; flex-wrap:wrap; gap:12px; justify-content:center; margin-top:16px; }

.board {
display:flex; flex-wrap:nowrap; gap:10px; margin-top:18px;
overflow-x:auto; padding-bottom:8px; justify-content:center;
}

.player-hands {
display:flex; flex-direction:column; gap:12px; margin-top:20px;
align-items:center;
}

.card {
flex:0 0 auto;
width:70px; height:100px; border-radius:10px; background:var(--card-bg);
display:flex; flex-direction:column; align-items:center; justify-content:center;
box-shadow:0 4px 10px rgba(0,0,0,0.5);
transform: translateY(-20px) rotate(-5deg);
opacity: 0; animation: deal 0.4s ease forwards;
}
.card .value {
font-size:22px; font-weight:800; margin-bottom:6px; color:#000;
}
.symbol.red   { color:#e63946; font-size:30px; }
.symbol.black { color:#000;    font-size:30px; }

@keyframes deal { to { transform: translateY(0) rotate(0); opacity: 1; } }

button{
background:var(--accent); border:none; padding:10px 14px; border-radius:8px;
color:#1a1a1a; font-weight:600; box-shadow:0 3px 6px rgba(0,0,0,0.4);
cursor:pointer; transition: background 0.2s ease, transform 0.1s ease;
}
button:hover { background:#ffdf4d; transform: translateY(-2px); }

.nuts-list { margin-top:16px; text-align:center; }
pre { background:rgba(255,255,255,0.08); padding:10px; border-radius:8px; font-size:16px; display:inline-block; margin:4px; }

.menu { display:flex; flex-direction:column; gap:16px; margin-top:40px; }
.player{
display:flex; align-items:center; gap:8px; padding:8px; border-radius:8px; cursor:pointer;
background:rgba(255,255,255,0.05); transition: background 0.2s ease;
max-width: 720px; width: 100%;
border: 2px solid transparent;
}
.player:hover { background:rgba(255,255,255,0.12); }
.player.selected { outline:3px solid var(--accent); background:rgba(255,255,255,0.12); }
.player.winner { box-shadow: 0 0 0 3px rgba(241,196,15,0.25) inset; }

.result { margin-top:16px; font-weight:bold; text-align:center; color: var(--accent); }

@media (max-width:480px){
.card{width:60px;height:85px}
.card .value {font-size:20px;}
.symbol.red, .symbol.black {font-size:26px;}
}

.chip-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 18px;
  margin: 6px 0;
}

.chip-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-block;
  border: 2px solid #000;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Couleurs des jetons */
.chip-05 { background: brown; }
.chip-1 { background: white; }
.chip-2 { background: pink; }
.chip-5 { background: red; }
.chip-10 { background: blue; }
.chip-20 { background: green; }
.chip-50 { background: purple; }
.chip-100 { background: black; }
.chip-500 { background: orange; }
.chip-1000 { background: gold; }

/* Ajoutez ou modifiez le CSS existant */
#progressBar.expired {
    background-color: #e74c3c !important; /* Rouge si le temps est écoulé */
}  
  
/* Mobile */
@media (max-width:480px){
  .chip-line { font-size: 16px; }
  .chip-icon { width: 22px; height: 22px; }
}    
    
.submenu {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 40px;
  align-items: center;
}
.submenu h3 {
  color: var(--accent);
  margin-bottom: 10px;
}

/* Style du conteneur de pluie d'emoji */
.emoji-rain {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none; /* Permet de cliquer à travers la pluie */
  overflow: hidden;
  z-index: 999;
}

.emoji-rain.active .broccoli {
  animation: fall linear forwards;
}

/* Style de l'emoji individuel */
.broccoli {
  position: absolute;
  font-size: 2em;
  opacity: 0;
  user-select: none;
}

/* Animation de chute */
@keyframes fall {
  0% {
    transform: translateY(-100vh);
    opacity: 0;
  }
  1% {
    opacity: 1;
  }
  100% {
    transform: translateY(100vh);
    opacity: 1;
  }

}

/* === Styles Login / Register (mobile-friendly) === */
.auth-container {
  background: rgba(0, 0, 0, 0.7);
  padding: 25px;
  border-radius: 12px;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.5);
  text-align: center;
  margin: auto;
}

.auth-container h2 {
  margin-bottom: 20px;
  font-size: 1.8rem;
}

.auth-container input {
  width: 100%;
  padding: 12px;
  margin: 10px 0;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
}

.auth-container button {
  width: 100%;
  padding: 12px;
  background: #27ae60;
  color: white;
  font-size: 1.1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s ease-in-out;
}

.auth-container button:hover {
  background: #219150;
}

.auth-container p {
  margin-top: 15px;
  font-size: 0.95rem;
}

.auth-container a {
  color: #1abc9c;
  text-decoration: none;
}

.auth-container a:hover {
  text-decoration: underline;
}

/* Responsive pour petits écrans */
@media (max-width: 500px) {
  .auth-container {
    padding: 20px;
  }

  .auth-container h2 {
    font-size: 1.5rem;
  }

  .auth-container input,
  .auth-container button {
    font-size: 1rem;
    padding: 10px;
  }
}
