body {
  margin: 0;
  padding: 40px 20px;
  font-family: 'Segoe UI', sans-serif;
  background-color: #0d1117; /* вот он — тёмный фон */
  color: #ffffff;
  text-align: center;
  background: linear-gradient(-45deg, #0d1117, #1b2735, #232a39, #0d1117);
  background-size: 400% 400%;
  animation: gradientFlow 15s ease infinite;  
}

@keyframes gradientFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

body.no-gradient {
  background: #0d1117 !important;
  animation: none !important;
}

/* Таблица лидеров */
table.top-table {
  width: 100%;
  max-width: 600px;
  margin: 20px auto;
  border-collapse: collapse;
  background-color: #2e2e3e;
  border-radius: 10px;
  overflow: hidden;
  font-size: 15px;
  box-shadow: 0 0 12px rgba(0,0,0,0.3);
}

table.top-table th,
table.top-table td {
  padding: 10px;
  border-bottom: 1px solid #444;
  text-align: center;
}

table.top-table th {
  background-color: #444;
  font-size: 16px;
  color: #ffcc00;
}

table.top-table tr:nth-child(even) {
  background-color: #3e3e4e;
}

table.top-table tr:hover {
  background-color: #555;
}

table.top-table td.rank {
  width: 50px;
  font-weight: bold;
  font-size: 18px;
}

table.top-table td.name {
  text-align: left;
}

table.top-table td.score {
  width: 100px;
  font-family: monospace;
}

/* Медаль подсветка */
table.top-table tr:nth-child(2) td.rank {
  color: gold;
}
table.top-table tr:nth-child(3) td.rank {
  color: silver;
}
table.top-table tr:nth-child(4) td.rank {
  color: #cd7f32; /* бронза */
}

/* Пагинация */
.pagination {
  margin-top: 20px;
}

.pagination a {
  text-decoration: none;
  color: #ffffff;
  background-color: #444;
  padding: 10px 15px;
  border-radius: 5px;
  margin: 5px;
  transition: 0.3s;
}

.pagination a:hover {
  background-color: #666;
}
.server-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.server-card {
  display: inline-block;
  width: 240px;
  padding: 25px;
  background-color: #161b22;
  border: 2px solid #30363d;
  border-radius: 12px;
  font-size: 20px;
  color: #ffffff;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.05);
}

.server-card:hover {
  border-color: #ffcc00;
  background-color: #1f2630;
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(255, 204, 0, 0.3);
}
.info-note {
  background-color: #1a1f2b;
  color: #ccc;
  padding: 14px 20px;
  margin: 40px auto 20px;
  max-width: 600px;
  border-left: 4px solid #ffcc00;
  border-radius: 6px;
  font-size: 0.95em;
  text-align: left;
  line-height: 1.5;
}
