/* styles.css */
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: #f5f7fa;
  padding: 1rem;
  max-width: 1200px;
  margin: auto;
}
.card {
  background: white;
  border-radius: 14px;
  padding: 1rem 1.25rem;
  box-shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.08);
  margin-bottom: 1rem;
}
h1 {
  margin: 0;
  font-size: 1.75rem;
}
.sub {
  font-size: 0.85rem;
  color: #555;
  margin-top: 4px;
}
.flex {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.spacer {
  flex: 1;
}
.btn {
  padding: 8px 14px;
  border: 1px solid #444;
  background: #fff;
  cursor: pointer;
  border-radius: 6px;
  font-size: 0.9rem;
}
.btn:hover:not(:disabled) {
  background: #f0f0f5;
}
.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
  font-size: 0.9rem;
}
th,
td {
  padding: 8px 10px;
  border: 1px solid #e2e8f0;
}
th {
  background: #f1f5fa;
  text-align: left;
  position: sticky;
  top: 0;
}
tr:nth-child(even) {
  background: #fcfcff;
}
.small {
  font-size: 0.75rem;
  color: #555;
}
.input {
  padding: 6px 10px;
  border: 1px solid #bbb;
  border-radius: 6px;
  font-size: 0.9rem;
}
.badge {
  background: #2563eb;
  color: #fff;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.65rem;
  margin-right: 6px;
  display: inline-block;
}
.highlight {
  background: #fff8d7 !important;
}
.error {
  background: #ffe8e8;
  padding: 8px 12px;
  border-radius: 6px;
  color: #8b1c1c;
  margin-bottom: 6px;
  font-size: 0.9rem;
}
.leaderboards {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.leaderboard-box {
  flex: 1;
  min-width: 320px;
}
.table-wrapper {
  max-height: 550px;
  overflow: auto;
}
