/* Кнопки */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .02em;
  white-space: nowrap;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.btn--primary { background: var(--yellow); color: #14100a; }
.btn--primary:hover { background: #ffc847; }

.btn--ghost { border-color: var(--line-strong); color: var(--text); background: transparent; }
.btn--ghost:hover { border-color: var(--yellow); color: var(--yellow); }

.btn--sm { padding: 8px 14px; font-size: 12.5px; }

/* Таблица зачёта */
.table-wrap {
  overflow-x: auto;
  background: transparent;
  border: 0;
  border-radius: 0;
}

@media (min-width: 860px) {
  .table-wrap { max-width: 780px; }
}

.standings {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
}

.standings th {
  padding: 12px 6px;
  border-bottom: 1px solid var(--line);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--dim);
  text-align: center;
}

.standings td { border-bottom: 1px solid var(--line); vertical-align: middle; }
.standings tbody tr:last-child td { border-bottom: none; }

.col-rank {
  width: 38px;
  position: sticky;
  left: 0;
  z-index: 3;
  background: var(--bg);
  text-align: center;
  font-size: 12px;
  color: var(--dim);
}

.col-team {
  position: sticky;
  left: 38px;
  z-index: 3;
  background: var(--bg);
  padding: 9px 10px;
  text-align: left;
  font-size: 13.5px;
  font-weight: 500;
  white-space: nowrap;
  min-width: 170px;
}

.team-avatar {
  display: inline-block;
  width: 24px;
  height: 24px;
  margin-right: 8px;
  border-radius: 50%;
  object-fit: cover;
  vertical-align: middle;
  background: var(--panel-2);
}

.cell {
  width: 56px;
  padding: 9px 4px;
  text-align: center;
  background: var(--tint, transparent);
}

.cell__pts { display: block; font-size: 15px; font-weight: 700; line-height: 1.1; }
.cell__place { display: block; margin-top: 2px; font-size: 9.5px; color: rgba(255, 255, 255, .55); }
.cell--empty { color: var(--dim); font-size: 13px; }

.col-total {
  position: sticky;
  right: 0;
  z-index: 3;
  padding: 9px 10px;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  background: var(--bg);
}

th.col-total { z-index: 4; }

.legend { margin: 12px 0 0; font-size: 11.5px; color: var(--dim); }

/* Заглушки */
.empty {
  padding: 32px 20px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-md);
  text-align: center;
  color: var(--muted);
  font-size: 13.5px;
}
