/* ===== FAKKAR LOBBY ===== */

.lobby-wrapper {
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 1.2rem 1.8rem;
  box-sizing: border-box;
  gap: 1.2rem;
  overflow-y: auto;
}

/* ===== HEADER ===== */
.game-header-lobby {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2.5rem;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
  min-height: 90px;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.logo-icon {
  position: relative;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  border-radius: var(--radius-md);
  box-shadow: 0 4px 14px var(--primary-glow);
  flex-shrink: 0;
}

.logo-bulb {
  font-size: 2.2rem;
  animation: float 4s ease-in-out infinite;
  position: relative;
  z-index: 2;
}

.logo-text { display: flex; flex-direction: column; }

.game-title {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.5px;
  line-height: 1;
}
.game-title span { color: var(--primary); }

.game-subtitle {
  font-size: 1rem;
  color: var(--text-3);
  font-weight: 500;
  margin-top: 0.3rem;
}

.version-badge {
  background: var(--surface-2);
  border: 1.5px solid var(--border);
  color: var(--text-3);
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 700;
}

/* ===== MAIN GRID ===== */
.lobby-content {
  display: grid;
  grid-template-columns: 1fr 1.6fr 1fr;
  gap: 1.2rem;
  flex: 1;
  min-height: 0;
  height: 100%;
}

/* ===== PANELS SHARED ===== */
.info-panel,
.setup-panel,
.stats-panel {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}

/* ===== INFO PANEL ===== */
.info-panel { padding: 2rem; gap: 1.2rem; justify-content: space-between; }

.feature-showcase { display: flex; flex-direction: column; gap: 0.9rem; flex: 1; }

.feature-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.4rem;
  background: var(--surface-2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  transition: var(--transition);
  cursor: default;
  flex: 1;
}
.feature-card:hover {
  border-color: var(--primary);
  background: rgba(245,166,35,0.04);
  transform: translateX(4px);
}
.feature-card .feature-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px var(--primary-glow);
}
.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.25rem;
  font-family: var(--font-display);
}
.feature-card p {
  font-size: 0.88rem;
  color: var(--text-3);
  line-height: 1.4;
}

.game-stats {
  display: flex;
  justify-content: space-around;
  padding: 1.6rem;
  background: linear-gradient(135deg, rgba(245,166,35,0.06), rgba(79,70,229,0.06));
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
}
.stat-item { text-align: center; }
.stat-number {
  display: block;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary-dark);
  font-family: var(--font-display);
}
.stat-label {
  font-size: 0.82rem;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 600;
}

/* ===== SETUP PANEL ===== */
.setup-panel {
  padding: 2.5rem 3rem;
  justify-content: center;
  position: relative;
  gap: 0;
}
.setup-panel::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--indigo), var(--primary));
  background-size: 200% 100%;
  animation: gradientShift 3s ease infinite;
}

.panel-header { text-align: center; margin-bottom: 2.2rem; }
.panel-header h2 {
  font-size: 2.2rem;
  font-weight: 800;
  font-family: var(--font-display);
  color: var(--text);
  margin-bottom: 0.5rem;
}
.panel-header p { color: var(--text-3); font-size: 1.05rem; }

.team-form { display: flex; flex-direction: column; }
.team-setup { display: flex; flex-direction: column; gap: 1.4rem; margin-bottom: 2rem; }

.team-input-group {
  padding: 1.8rem 2rem;
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--border);
  background: var(--surface-2);
  transition: var(--transition);
  position: relative;
}
.team-input-group.alpha-team { border-left: 4px solid var(--primary); }
.team-input-group.beta-team  { border-left: 4px solid var(--indigo); }
.team-input-group:hover { box-shadow: var(--shadow-md); }
.team-input-group:focus-within {
  border-color: var(--primary);
  background: var(--surface);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.team-input-group label {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-2);
  margin-bottom: 1rem;
  font-family: var(--font-display);
}
.team-input-group .team-icon { font-size: 1.4rem; }

.team-input {
  width: 100%;
  padding: 1.2rem 1.5rem;
  font-size: 1.15rem;
  font-weight: 600;
  font-family: var(--font-body);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--text);
  text-align: center;
  transition: var(--transition);
}
.team-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}
.team-input::placeholder { color: var(--text-3); }
.input-glow { display: none; }

.vs-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 0.8rem 0;
}
.vs-text {
  background: var(--surface);
  border: 1.5px solid var(--border);
  color: var(--text-3);
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 1px;
}
.connector-line { flex: 1; height: 1.5px; background: var(--border); }

/* ===== LAUNCH BUTTON ===== */
.launch-button {
  position: relative;
  padding: 1.5rem 2rem;
  font-size: 1.2rem;
  font-weight: 800;
  font-family: var(--font-display);
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  color: white;
  transition: var(--transition);
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  box-shadow: 0 4px 18px var(--primary-glow);
}
.launch-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px var(--primary-glow);
  filter: brightness(1.05);
}
.launch-button:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.btn-content { display: flex; align-items: center; justify-content: center; gap: 0.7rem; }
.btn-icon { font-size: 1.3rem; }
.btn-particles, .btn-glow { display: none; }

/* ===== STATS PANEL ===== */
.stats-panel { padding: 2rem; gap: 1.2rem; justify-content: space-between; }

.stats-panel .panel-header h3 {
  font-size: 1.3rem;
  font-weight: 800;
  font-family: var(--font-display);
  color: var(--text);
  margin-bottom: 0.3rem;
}

.mission-details { display: flex; flex-direction: column; gap: 0.9rem; flex: 1; }
.detail-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem;
  background: var(--surface-2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  transition: var(--transition);
  flex: 1;
}
.detail-item:hover { border-color: var(--primary); transform: translateX(3px); }
.detail-icon { font-size: 1.5rem; flex-shrink: 0; }
.detail-content h4 { font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 0.25rem; }
.detail-content p  { font-size: 0.88rem; color: var(--text-3); line-height: 1.4; }

.difficulty-preview {
  background: var(--surface-2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}
.difficulty-preview h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1rem;
  font-family: var(--font-display);
}
.difficulty-bars { display: flex; flex-direction: column; gap: 0.6rem; }
.diff-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 1.2rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 700;
}
.diff-bar.easy   { background: rgba(16,185,129,0.1);  color: #059669; border: 1px solid rgba(16,185,129,0.2); }
.diff-bar.medium { background: rgba(245,166,35,0.12); color: var(--primary-dark); border: 1px solid rgba(245,166,35,0.25); }
.diff-bar.hard   { background: rgba(239,68,68,0.08);  color: #DC2626; border: 1px solid rgba(239,68,68,0.18); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
  .lobby-content { grid-template-columns: 1fr; gap: 1rem; }
  .setup-panel { order: -1; }
  .lobby-wrapper { padding: 1rem; }
}
@media (max-width: 768px) {
  .game-header-lobby { flex-direction: column; gap: 0.75rem; text-align: center; padding: 1rem; }
  .game-title { font-size: 2rem; }
  .team-setup { gap: 0.9rem; }
}