.stats-card {
  background: linear-gradient(180deg, #1f262c, #1a2127);
  border: var(--border);
  border-radius: var(--radius);
  padding: 14px;
}

.lobby-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.lobby-greeting {
  width: 100%;
  text-align: center;
}

.lobby-actions {
  display: flex;
  gap: 8px;
}

.is-hidden {
  display: none !important;
}

.btn-resume {
  background: var(--accent-2);
  padding: 6px 12px;
}

.btn-logout {
  background: var(--danger);
  padding: 6px 12px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.stat-item {
  background: #20272d;
  border: var(--border);
  border-radius: 8px;
  padding: 8px;
  text-align: center;
  font-size: 0.84rem;
}

.stat-item b {
  display: block;
  margin-top: 4px;
  color: var(--accent);
  font-size: 1rem;
}

.lobby-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 14px;
}

.challenge-wait {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #365c7c;
  background: rgba(42, 132, 198, 0.16);
  color: #c8e7ff;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.wait-dots {
  display: inline-flex;
  width: 24px;
  justify-content: space-between;
}

.wait-dots span {
  animation: wait-bounce 1.2s infinite ease-in-out;
  opacity: 0.2;
}

.wait-dots span:nth-child(2) {
  animation-delay: 0.2s;
}

.wait-dots span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes wait-bounce {
  0%,
  80%,
  100% {
    opacity: 0.2;
  }
  40% {
    opacity: 1;
  }
}

.panel {
  background: linear-gradient(180deg, #1c2329, #181f24);
  border: var(--border);
  border-radius: var(--radius);
  padding: 12px;
  display: flex;
  flex-direction: column;
}

.panel h4 {
  margin-bottom: 8px;
}

.panel-title-center {
  text-align: center;
}

.scroll-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
}

.user-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  background: #232b33;
  border: 1px solid #364250;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 0.92rem;
}

.btn-challenge {
  background: var(--accent);
  border: 0;
  color: #fff;
  border-radius: 6px;
  padding: 5px 9px;
  cursor: pointer;
  font-weight: 600;
}

.bot-challenges {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.btn-bot {
  background: #3b4650;
  padding: 8px 10px;
  text-transform: lowercase;
}

.bot-separator {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid #364250;
  text-align: center;
}

.bot-separator span {
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.empty-online {
  color: var(--muted);
  text-align: center;
  padding: 10px 6px;
}

@media (max-width: 1100px) {
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .lobby-grid {
    grid-template-columns: 1fr;
  }

  .lobby-header {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .lobby-actions {
    width: 100%;
  }

  .btn-resume,
  .btn-logout {
    flex: 1;
    text-align: center;
  }

  .panel {
    min-height: 0;
  }
}

@media (max-width: 560px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
}
