/* === Vol Panique — page multijoueur === */
/* S'utilise en complément de vol-panique-solo.css (body, #app, boutons, overlays). */

.hidden { display: none !important; }

/* === Lobby === */
.lobby-msg {
  color: #94a3b8;
  margin: 12px 0 20px;
  font-size: 0.95rem;
  min-height: 1.3em;
}
.lobby-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 320px;
  margin: 0 auto 14px;
}
.lobby-actions .btn {
  width: 100%;
  padding: 12px 18px;
  font-size: 0.95rem;
}
.lobby-sep {
  color: #64748b;
  font-size: 0.78rem;
  margin: 6px 0;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.lobby-join {
  display: flex;
  gap: 8px;
  max-width: 320px;
  margin: 0 auto;
}
.lobby-join input {
  flex: 1;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  outline: none;
  text-align: center;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}
.lobby-join input:focus { border-color: rgba(125, 211, 252, 0.6); }

.match-info {
  margin-top: 12px;
  font-size: 0.95rem;
  color: #fbbf24;
  font-weight: 600;
}

.spinner {
  display: inline-block;
  width: 14px; height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-top-color: #fbbf24;
  border-radius: 50%;
  animation: vp-spin 0.8s linear infinite;
  vertical-align: middle;
  margin-right: 6px;
}
@keyframes vp-spin { to { transform: rotate(360deg); } }

.btn-cancel {
  margin-top: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: #cbd5e1;
  padding: 6px 14px;
  font-size: 0.82rem;
  cursor: pointer;
  font-family: inherit;
}
.btn-cancel:hover { background: rgba(255, 255, 255, 0.14); }

/* === Code de partie privée === */
.code-display {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: 0.35em;
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.10);
  border: 1px solid rgba(251, 191, 36, 0.30);
  border-radius: 14px;
  padding: 18px 24px;
  margin: 10px auto;
  display: inline-block;
}
.private-share {
  color: #cbd5e1;
  font-size: 0.88rem;
  margin: 6px 0 12px;
}
.private-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

/* === Vue jeu : compteur de manches en haut === */
.compteur-manches {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin: 12px 0 14px;
  flex-wrap: wrap;
}
.manche-bloc {
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 600;
  color: #e2e8f0;
}
.manche-bloc strong {
  font-size: 1.2rem;
  margin: 0 4px;
}
.manche-moi { border-color: rgba(249, 115, 22, 0.35); }
.manche-moi strong { color: #fb923c; }
.manche-adv { border-color: rgba(14, 165, 233, 0.35); }
.manche-adv strong { color: #38bdf8; }
.manche-sep {
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

/* === Countdown 3-2-1 plein écran === */
.countdown-overlay {
  position: fixed;
  inset: 0;
  display: none;
  justify-content: center;
  align-items: center;
  background: rgba(7, 29, 51, 0.75);
  z-index: 200;
}
.countdown-overlay.visible { display: flex; }
.countdown-number {
  font-size: 7rem;
  font-weight: 900;
  color: #fbbf24;
  text-shadow: 0 4px 24px rgba(251, 191, 36, 0.5);
  animation: countdown-pop 1s ease;
}
@keyframes countdown-pop {
  0%   { transform: scale(0.4); opacity: 0; }
  30%  { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

/* === Overlay fin de manche (réutilise .game-overlay du solo CSS) === */
.win-text  { color: #4ade80; }
.lose-text { color: #f87171; }
.draw-text { color: #fbbf24; }

#fin-manches {
  font-size: 1.1rem;
  color: #e0f2fe;
  margin-top: 6px;
}
#fin-manches .win-text, #fin-manches .lose-text {
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0 4px;
}

@media (max-width: 480px) {
  .countdown-number { font-size: 4.5rem; }
  .compteur-manches { gap: 8px; }
  .manche-bloc { padding: 5px 10px; font-size: 0.85rem; }
  .code-display { font-size: 1.8rem; padding: 14px 18px; }
}
