.bg-grid {
  background-image:
    linear-gradient(rgba(34, 211, 238, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 211, 238, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
}

.nav-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.7rem 0.85rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  color: #8b95a8;
  text-align: left;
  transition: all 0.15s ease;
  border: 1px solid transparent;
}

.nav-btn:hover {
  color: #e8edf5;
  background: rgba(18, 23, 31, 0.8);
}

.nav-btn.active {
  color: #22d3ee;
  background: rgba(34, 211, 238, 0.08);
  border-color: rgba(34, 211, 238, 0.2);
  box-shadow: 0 0 16px rgba(34, 211, 238, 0.08);
}

.stat-card,
.panel {
  background: #12171f;
  border: 1px solid #1e2633;
  border-radius: 0.75rem;
  padding: 1.25rem;
}

.stat-card {
  background: linear-gradient(145deg, #12171f 0%, #0d1017 100%);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.stat-card:hover {
  border-color: rgba(34, 211, 238, 0.25);
  box-shadow: 0 0 24px rgba(34, 211, 238, 0.08);
}

.feed-item {
  display: flex;
  gap: 0.875rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #1e2633;
}

.feed-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.feed-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  margin-top: 0.4rem;
  flex-shrink: 0;
}

.quick-action {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 0.5rem;
  background: #0d1017;
  border: 1px solid #1e2633;
  color: #e8edf5;
  font-size: 0.875rem;
  transition: all 0.15s ease;
}

.quick-action:hover {
  border-color: rgba(34, 211, 238, 0.35);
  background: rgba(34, 211, 238, 0.05);
}

.score-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 4.5rem;
  padding: 0.5rem 0.85rem;
  background: #12171f;
  border: 1px solid #1e2633;
  border-radius: 0.5rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.4rem;
  border-radius: 0.5rem;
  background: linear-gradient(135deg, #22d3ee, #0891b2);
  color: #07080c;
  font-weight: 600;
  font-size: 0.875rem;
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 24px rgba(34, 211, 238, 0.35);
}

.btn-sm {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.85rem;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  font-weight: 500;
  background: rgba(34, 211, 238, 0.1);
  color: #22d3ee;
  border: 1px solid rgba(34, 211, 238, 0.25);
  transition: all 0.15s ease;
}

.btn-sm:hover {
  background: rgba(34, 211, 238, 0.2);
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.15);
}

.btn-sm.joined {
  background: rgba(52, 211, 153, 0.1);
  color: #34d399;
  border-color: rgba(52, 211, 153, 0.25);
  pointer-events: none;
}

.filter-btn {
  padding: 0.4rem 0.9rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  color: #8b95a8;
  background: #12171f;
  border: 1px solid #1e2633;
  transition: all 0.15s ease;
}

.filter-btn:hover {
  color: #e8edf5;
}

.filter-btn.active {
  color: #07080c;
  background: #22d3ee;
  border-color: #22d3ee;
}

.league-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.league-badge.nesf {
  background: rgba(34, 211, 238, 0.12);
  color: #22d3ee;
}

.league-badge.komplett {
  background: rgba(167, 139, 250, 0.12);
  color: #a78bfa;
}

.app-card {
  background: linear-gradient(145deg, #12171f 0%, #0d1017 100%);
  border: 1px solid #1e2633;
  border-radius: 0.75rem;
  padding: 1.25rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.app-card:hover {
  border-color: rgba(167, 139, 250, 0.3);
  box-shadow: 0 0 24px rgba(167, 139, 250, 0.08);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.status-badge.live {
  background: rgba(52, 211, 153, 0.12);
  color: #34d399;
}

.status-badge.beta {
  background: rgba(251, 191, 36, 0.12);
  color: #fbbf24;
}

.status-badge.planned {
  background: rgba(139, 149, 168, 0.12);
  color: #8b95a8;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.9rem;
  border-radius: 0.5rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: #8b95a8;
  background: #12171f;
  border: 1px solid #1e2633;
  transition: all 0.15s ease;
}

.btn-ghost:hover {
  color: #e8edf5;
  border-color: rgba(52, 211, 153, 0.35);
}

.mode-card {
  position: relative;
  display: flex;
  flex-direction: column;
  text-align: left;
  padding: 1.35rem;
  border-radius: 0.85rem;
  background: linear-gradient(160deg, #0f172a 0%, #0a1220 55%, #071018 100%);
  border: 1px solid rgba(51, 65, 85, 0.7);
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  overflow: hidden;
}

.mode-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top right, rgba(52, 211, 153, 0.08), transparent 55%);
  pointer-events: none;
}

.mode-card:hover {
  transform: translateY(-3px);
  border-color: rgba(52, 211, 153, 0.45);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35), 0 0 28px rgba(52, 211, 153, 0.1);
}

.mode-card-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(52, 211, 153, 0.25);
  color: #34d399;
  margin-bottom: 1rem;
}

.mode-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(52, 211, 153, 0.12);
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.25);
}

.mode-hs {
  font-size: 0.7rem;
  color: #64748b;
}

.mode-hs strong {
  color: #94a3b8;
  font-weight: 600;
}

.go-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.85rem 0.5rem;
  background: #0d1017;
  border: 1px solid #1e2633;
  border-radius: 0.65rem;
}

.prompt-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #ecfdf5;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(52, 211, 153, 0.45);
  box-shadow: 0 0 20px rgba(52, 211, 153, 0.15);
}

#game-canvas:focus {
  outline: none;
}

#tournament-tbody tr {
  border-bottom: 1px solid #1e2633;
  transition: background 0.15s;
}

#tournament-tbody tr:last-child {
  border-bottom: none;
}

#tournament-tbody tr:hover {
  background: rgba(34, 211, 238, 0.03);
}

#toast.show {
  display: block;
  opacity: 1;
  transform: translateY(0);
}
