:root {
  --bg: #b8b8be;
  --surface: #2e323d;
  --card: #595744;
  --accent: #ed3a3a;
  --accent-light: #fa8b8b;
  --gold: #f59e0b;
  --gold-light: #fcd34d;
  --text-primary: #f1f5f9;
  --text-secondary: #cebfbf;
  --border: rgba(237, 58, 58, 0.2);
  --radius: 12px;
}

/*body {
  background-color: var(--bg);
  font-family: 'DM Sans', sans-serif;
  color: var(--text-primary);
  padding: 40px 20px;
  min-height: 100vh;
}

.container {
  max-width: 860px;
  margin: 0 auto;
}

.header {
  text-align: center;
  margin-bottom: 36px;
}

.header .label {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent), #ea3333);
  color: white;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 14px;
}

.header h1 {
  font-family: 'Sora', sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.header p {
  font-size: 13px;
  color: var(--text-secondary);
}*/

/* TABLE */
.table-wrapper {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 0 1px var(--border);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
}

thead tr {
  background: linear-gradient(135deg, #691b1b, #4b1b1b);
}

thead th {
  padding: 16px 22px;
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent-light);
}

thead th:first-child {
  width: 200px;
}

tbody tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.2s ease;
}

tbody tr:hover {
  background: rgba(237, 58, 58, 0.08);
}

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

/* First row — highlighted (gold/winner) */
tbody tr:first-child {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(124, 58, 237, 0.08));
}

tbody tr:first-child:hover {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.18), rgba(124, 58, 237, 0.12));
}

td {
  padding: 18px 22px;
  font-size: 14px;
  color: var(--text-primary);
  vertical-align: middle;
}

/* Ranking cell */
.rank-cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.rank-number {
  font-family: 'Sora', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--accent-light);
  line-height: 1;
}

tbody tr:first-child .rank-number {
  color: var(--gold);
}

.rank-label {
  font-size: 11px;
  color: var(--text-secondary);
  font-weight: 400;
}

/* Name cell */
.name-cell {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.school-name {
  font-weight: 600;
  font-size: 15px;
  color: var(--text-primary);
}

tbody tr:first-child .school-name {
  color: var(--gold-light);
}

.school-note {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 400;
}

/* Badge for first place */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(135deg, var(--gold), #d97706);
  color: #303043;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
  width: fit-content;
  margin-top: 4px;
}

/* Gap indicator */
.gap-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  color: #f87171;
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.25);
  padding: 2px 9px;
  border-radius: 20px;
  margin-top: 4px;
  width: fit-content;
}

/* Footer */
.footer {
  text-align: center;
  margin-top: 20px;
  font-size: 12px;
  color: var(--text-secondary);
}
