.rankings-button {
  border-color: #ffe066 !important;
  color: #ffe066 !important;
}

.rankings-title-button {
  margin-top: 6px !important;
  padding: 9px 22px !important;
  font-size: 0.95rem !important;
  background: #241430 !important;
  box-shadow: 0 3px 0 #0c0710 !important;
}

#rankingsModal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(4, 5, 14, 0.88);
  font-family: Nunito, Arial, sans-serif;
}

#rankingsModal[hidden] { display: none; }

.rankings-card {
  width: min(720px, calc(100vw - 36px));
  max-height: min(720px, calc(100vh - 36px));
  overflow: auto;
  color: #fff;
  background: linear-gradient(180deg, #28113d, #10182d 70%);
  border: 4px solid #7fe73e;
  border-radius: 18px;
  box-shadow: 0 20px 70px #000, 0 0 25px rgba(127, 231, 62, 0.3);
  padding: 22px;
}

.rankings-head,
.rankings-tabs,
.rankings-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.rankings-head h2 { margin: 0; color: #7fe73e; }
.rankings-version { color: #cfc6dd; font-size: 13px; }
.rankings-close { min-width: 44px; }

.rankings-submit {
  margin: 18px 0;
  padding: 14px;
  border: 2px solid #ffe066;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.25);
}

.rankings-submit label { display: block; margin-bottom: 8px; font-weight: 800; }
.rankings-submit-row { display: flex; gap: 8px; }
.rankings-submit input {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  border: 2px solid #8f75a8;
  border-radius: 8px;
  font: inherit;
}

.rankings-tabs { justify-content: flex-start; margin: 14px 0 8px; }
.rankings-tabs button.active { background: #7fe73e; color: #10121c; }

.rankings-table { width: 100%; border-collapse: collapse; }
.rankings-table th,
.rankings-table td { padding: 9px 6px; border-bottom: 1px solid #49385d; text-align: left; }
.rankings-table th:nth-child(1), .rankings-table td:nth-child(1) { width: 48px; text-align: center; }
.rankings-table th:nth-child(3), .rankings-table td:nth-child(3) { text-align: right; }
.rankings-table th:nth-child(4), .rankings-table td:nth-child(4),
.rankings-table th:nth-child(5), .rankings-table td:nth-child(5) { text-align: center; }
.rankings-empty { padding: 24px 8px; text-align: center; color: #cfc6dd; }
.rankings-note { min-height: 20px; margin: 10px 0 0; color: #ffe066; }

@media (max-width: 560px) {
  .rankings-card { padding: 14px; }
  .rankings-submit-row { flex-direction: column; }
  .rankings-table th:nth-child(5), .rankings-table td:nth-child(5) { display: none; }
}
