/* ===================== базовое / переменные ===================== */

:root {
  --bg: #f3f5f8;
  --card: #ffffff;
  --text: #1c2430;
  --muted: #6b7686;
  --line: #e4e8ee;
  --accent: #2563eb;
  --accent-dark: #1d4ed8;
  --accent-soft: #e8effd;
  --green: #16a34a;
  --green-soft: #e7f6ec;
  --red: #dc2626;
  --red-soft: #fdeaea;
  --radius: 14px;
  --shadow: 0 1px 3px rgba(16, 24, 40, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.4;
}

.hidden {
  display: none !important;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 13px;
}

.strong {
  font-weight: 700;
}

.empty {
  color: var(--muted);
  text-align: center;
  padding: 14px 8px;
  font-size: 15px;
}

/* ===================== шапка и вкладки ===================== */

.app-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--card);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.header-inner {
  max-width: 640px;
  margin: 0 auto;
  padding: 10px 16px 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.app-title {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.tabs {
  max-width: 640px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  padding: 4px 8px 8px;
}

.tab {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.15;
  padding: 10px 2px;
  min-height: 44px;
  border-radius: 10px;
  cursor: pointer;
}

.tab.active {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

/* ===================== админ-режим ===================== */

.admin-btn {
  min-height: 36px;
  padding: 6px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
}

.admin-btn.active {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

/* админ-элементы видны только при body.admin-mode */
body:not(.admin-mode) .admin-only {
  display: none !important;
}

.admin-form {
  margin-top: 14px;
}

.admin-form .check-item {
  border-bottom: none;
  margin-bottom: 4px;
}

/* ===================== каркас ===================== */

.container {
  max-width: 640px;
  margin: 0 auto;
  padding: 14px 12px 48px;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 4px 4px 10px;
}

.panel-head h2 {
  margin: 0;
  font-size: 20px;
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px;
  margin-bottom: 14px;
}

/* ===================== кнопки и поля ===================== */

button {
  font: inherit;
}

.btn-primary {
  display: block;
  width: 100%;
  min-height: 50px;
  border: none;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 6px;
}

.btn-primary:active {
  background: var(--accent-dark);
}

.btn-primary:disabled {
  opacity: 0.55;
  cursor: default;
}

.btn-secondary {
  display: block;
  width: 100%;
  min-height: 44px;
  border: 1px dashed var(--accent);
  border-radius: 12px;
  background: transparent;
  color: var(--accent);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 12px;
}

.btn-small {
  min-height: 40px;
  padding: 8px 14px;
  border: none;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.field {
  margin-bottom: 14px;
}

.field-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 6px;
}

select,
input[type="text"],
input[type="number"] {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  font: inherit;
  font-size: 16px;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}

select:focus,
input:focus {
  outline: 2px solid var(--accent);
  outline-offset: -1px;
}

/* ===================== Рейтинг ===================== */

.table-wrap {
  padding: 4px 0;
  overflow-x: auto;
}

.rating-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.rating-table th {
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  padding: 8px 6px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.rating-table td {
  padding: 12px 6px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.rating-table tr:last-child td {
  border-bottom: none;
}

.rating-row {
  cursor: pointer;
}

.rating-row:active {
  background: var(--accent-soft);
}

.rating-row.inactive {
  color: var(--muted);
}

.col-place {
  width: 28px;
  color: var(--muted);
  padding-left: 12px !important;
}

.col-name {
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 600;
}

.col-num {
  text-align: right;
}

.rating-table th.col-num,
.rating-table td.col-num {
  text-align: right;
}

.rating-table td:last-child,
.rating-table th:last-child {
  padding-right: 12px;
}

/* ===================== дельты ===================== */

.delta {
  font-weight: 700;
}

.delta.pos {
  color: var(--green);
}

.delta.neg {
  color: var(--red);
}

.pd {
  display: inline-block;
  margin-right: 14px;
  white-space: nowrap;
}

.pd-name {
  font-weight: 600;
}

/* ===================== модалки ===================== */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(15, 23, 42, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal {
  position: relative;
  background: var(--card);
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(16, 24, 40, 0.25);
  width: 100%;
  max-width: 460px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 20px 16px 16px;
}

.modal h3 {
  margin: 0 28px 12px 0;
  font-size: 19px;
}

.modal-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-size: 17px;
  cursor: pointer;
}

.modal-close:active {
  background: var(--bg);
}

/* карточка игрока */

.player-name {
  font-size: 20px;
}

.player-rating {
  font-size: 36px;
  font-weight: 800;
  color: var(--accent-dark);
  margin: 2px 0 6px;
}

.player-stats {
  font-size: 14px;
  margin-bottom: 4px;
}

.hist-title {
  margin: 16px 0 8px;
  font-size: 15px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.history-mini {
  border-top: 1px solid var(--line);
}

.hist-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.hist-left {
  min-width: 0;
}

.hist-opp {
  font-weight: 600;
  font-size: 15px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hist-right {
  text-align: right;
  flex-shrink: 0;
}

/* выбор стартового уровня */

.level-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.level-option input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.level-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 12px 4px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
}

.level-box small {
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
}

.level-option input:checked + .level-box {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-dark);
}

/* ===================== Матч ===================== */

/* комбобокс выбора игрока с поиском */

.combo {
  position: relative;
}

.combo input:disabled {
  background: var(--bg);
  color: var(--muted);
}

.combo-list {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 60;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(16, 24, 40, 0.18);
  max-height: 264px;
  overflow-y: auto;
}

.combo-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 48px;
  padding: 8px 14px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}

.combo-item:last-child {
  border-bottom: none;
}

.combo-item:active {
  background: var(--accent-soft);
}

.combo-item.selected {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.combo-name {
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.combo-rating {
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

.combo-empty {
  padding: 14px;
  color: var(--muted);
  text-align: center;
  font-size: 15px;
}

/* журнал геймов текущего матча */

.match-log {
  margin-bottom: 14px;
}

.mlog-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.mlog-score {
  font-weight: 700;
  font-size: 18px;
  font-variant-numeric: tabular-nums;
}

.mlog-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
}

#mlog-rows .mlog-row:first-child {
  border-top: 1px solid var(--line);
}

.mlog-num {
  flex-shrink: 0;
  width: 24px;
  color: var(--muted);
  font-size: 13px;
}

.mlog-winner {
  flex: 1;
  min-width: 0;
  font-weight: 600;
  color: var(--green);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mlog-sc {
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

.mlog-del {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  cursor: pointer;
}

.mlog-del:active {
  background: var(--red-soft);
  color: var(--red);
}

/* счёт текущего гейма */

.score-grid {
  display: flex;
  align-items: center;
  gap: 8px;
}

.score-col {
  flex: 1;
  min-width: 0;
}

.score-col input {
  text-align: center;
}

.score-grid .game-sep {
  padding-bottom: 0;
}

.btn-ghost {
  display: block;
  width: 100%;
  min-height: 44px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 4px;
}

/* незавершённые матчи (черновики) на вкладке «Матч» */

.draft-bar {
  margin-bottom: 14px;
}

.draft-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.draft-chip {
  padding: 8px 14px;
  min-height: 38px;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border: 1px solid var(--line, #d7dbe0);
  border-radius: 19px;
  background: transparent;
  color: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.draft-chip.selected {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.draft-chip.new {
  border-style: dashed;
  border-color: var(--accent);
  color: var(--accent);
}

/* бейдж числа незавершённых матчей на вкладке */

.tab-badge {
  display: inline-block;
  min-width: 18px;
  height: 18px;
  margin-left: 5px;
  padding: 0 4px;
  border-radius: 9px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  vertical-align: 1px;
}

.btn-danger {
  display: block;
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--red);
  border-radius: 12px;
  background: transparent;
  color: var(--red);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 10px;
}

.btn-danger:active {
  background: var(--red-soft);
}

.btn-danger:disabled {
  opacity: 0.55;
  cursor: default;
}

.btn-ghost:active {
  color: var(--red);
}

/* галочка «игра на рейтинг» */

.rated-row {
  border-bottom: none;
  min-height: 44px;
  margin-bottom: 2px;
}

.rated-hint {
  margin: -2px 0 10px 34px;
}

/* бейдж ничьей в истории */

.badge-draw {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}

/* блок гейма в админ-модалке */

.egame {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  margin-bottom: 10px;
}

.egame .winner-row {
  margin-bottom: 8px;
}

.egame-btn {
  min-height: 44px;
  padding: 6px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  overflow: hidden;
  text-overflow: ellipsis;
}

.egame-btn.selected {
  border-color: var(--green);
  background: var(--green-soft);
  color: var(--green);
}

.egame .game-row {
  margin-bottom: 0;
}

.winner-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.winner-btn {
  min-height: 56px;
  padding: 8px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: #fff;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  overflow: hidden;
  text-overflow: ellipsis;
}

.winner-btn:disabled {
  color: var(--muted);
  opacity: 0.6;
  cursor: default;
}

.winner-btn.selected {
  border-color: var(--green);
  background: var(--green-soft);
  color: var(--green);
}

.game-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.game-row input {
  flex: 1;
  min-width: 0;
  text-align: center;
}

.game-sep {
  font-size: 18px;
  font-weight: 700;
  color: var(--muted);
}

.row-remove {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 10px;
  background: var(--red-soft);
  color: var(--red);
  font-size: 15px;
  cursor: pointer;
}

.match-result {
  margin-top: 14px;
  padding: 12px;
  background: var(--green-soft);
  border-radius: 12px;
  font-size: 15px;
}

.result-line {
  margin-top: 4px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 0;
}

/* ===================== Клубный день ===================== */

.club-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 4px;
}

.checklist {
  border-top: 1px solid var(--line);
  margin-bottom: 12px;
}

.check-item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 50px;
  padding: 4px 2px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}

.check-item input[type="checkbox"] {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  accent-color: var(--accent);
}

.check-name {
  flex: 1;
  min-width: 0;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.check-rating {
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

/* ===================== История ===================== */

.match-card {
  padding: 12px 14px;
  margin-bottom: 10px;
}

.match-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2px;
}

.match-actions {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: -6px -8px -2px 0;
}

.delete-btn,
.edit-btn {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-size: 15px;
  cursor: pointer;
}

.delete-btn:active {
  background: var(--red-soft);
  color: var(--red);
}

.edit-btn:active {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.match-names {
  font-size: 17px;
  margin-bottom: 2px;
  word-break: break-word;
}

.match-names .winner {
  font-weight: 700;
}

.match-score {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 4px;
  font-variant-numeric: tabular-nums;
}

.match-deltas {
  font-size: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 2px 0;
}

/* ===================== toast ===================== */

.toast {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 18px;
  z-index: 200;
  max-width: 600px;
  margin: 0 auto;
  padding: 13px 16px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  color: #fff;
  box-shadow: 0 6px 24px rgba(16, 24, 40, 0.25);
}

.toast-success {
  background: var(--green);
}

.toast-error {
  background: var(--red);
}

/* ===================== узкие экраны ===================== */

@media (max-width: 380px) {
  .rating-table {
    font-size: 13px;
  }

  .rating-table th,
  .rating-table td {
    padding-left: 4px;
    padding-right: 4px;
  }

  .col-name {
    max-width: 104px;
  }

  .tab {
    font-size: 12px;
  }
}

@media (min-width: 480px) {
  .container {
    padding: 18px 16px 56px;
  }

  .tab {
    font-size: 14px;
  }
}

/* плашки геймов в истории и карточке игрока */

.game-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
}

.game-chip {
  min-width: 34px;
  padding: 3px 8px;
  border-radius: 8px;
  background: var(--bg);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.game-chip.won {
  background: var(--green-soft);
  color: var(--green);
}

.game-chip.lost {
  background: var(--red-soft);
  color: var(--red);
}

/* массовая отметка на клубном дне */

.club-bulk {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.btn-mini {
  padding: 8px 18px;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.btn-mini:active {
  background: var(--accent-soft);
}

/* шахматка клубного дня */

.day-grid-wrap {
  overflow-x: auto;              /* широкая таблица скроллится внутри карточки */
  margin: 4px -14px 0;           /* от края до края карточки */
  padding-bottom: 4px;
}

.day-grid {
  border-collapse: separate;
  border-spacing: 3px;
  width: 100%;
  font-size: 13px;
}

.day-grid th.dg-col,
.day-grid th.dg-wins {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-align: center;
  min-width: 44px;
  padding: 2px 0;
}

.day-grid th.dg-wins,
.day-grid td.dg-wins {
  min-width: 34px;
}

.day-grid .dg-name {
  position: sticky;              /* имя не уезжает при горизонтальном скролле */
  left: 0;
  z-index: 1;
  background: var(--card);
  text-align: left;
  max-width: 34vw;
  padding: 2px 8px 2px 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  /* Зазоры border-spacing вокруг прилипшей колонки делаем непрозрачными,
     иначе цветные клетки просвечивают в них при горизонтальном скролле. */
  box-shadow: 3px 0 0 var(--card), 0 3px 0 var(--card), 0 -3px 0 var(--card),
    3px 3px 0 var(--card), 3px -3px 0 var(--card);
}

.dg-num {
  color: var(--muted);
  font-weight: 400;
  margin-right: 4px;
}

.dg-pname {
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
}

.day-grid td.dg-cell {
  min-width: 44px;
  height: 42px;
  text-align: center;
  vertical-align: middle;
  border-radius: 9px;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  cursor: pointer;
}

.dg-cell.self {
  background: repeating-linear-gradient(
    45deg, var(--line) 0 2px, transparent 2px 7px);
  cursor: default;
}

.dg-cell.todo {
  border: 1px dashed var(--line);
  background: var(--bg);
}

.dg-cell.todo:active {
  background: var(--accent-soft);
  border-color: var(--accent);
}

.dg-cell.win {
  background: var(--green-soft);
  color: var(--green);
}

.dg-cell.loss {
  background: var(--red-soft);
  color: var(--red);
}

.dg-cell.draw {
  background: var(--bg);
  color: var(--muted);
}

.day-grid td.dg-wins {
  text-align: center;
  font-weight: 700;
}

.dg-hint {
  margin: 8px 0 12px;
}

/* подсказка режима «пара из сетки дня» на вкладке «Матч» */

.club-pair-hint {
  background: var(--accent-soft);
  color: var(--accent-dark);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  margin-bottom: 14px;
}

/* список прошедших клубных дней */

.day-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 2px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}

.day-row:last-child {
  border-bottom: none;
}

.day-row:active {
  background: var(--accent-soft);
}

.day-row-main {
  flex: 1;
  min-width: 0;
}

.day-row-title {
  font-weight: 600;
}

/* график динамики рейтинга в карточке игрока */

.rating-chart {
  margin: 12px 0 6px;
}

.rating-chart svg {
  display: block;
  width: 100%;
  height: auto;
}

.rc-grid {
  stroke: var(--line);
  stroke-width: 1;
}

.rc-area {
  fill: var(--accent-soft);
}

.rc-line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.rc-dot {
  fill: var(--accent);
}

.rc-lbl {
  font-size: 10px;
  fill: var(--muted);
}

/* рейтинговость и сортировка таблицы рейтинга */

.badge-rated {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 600;
}

/* элементы для обычных игроков, скрытые у админа (подсказка вместо галочки) */
body.admin-mode .non-admin-only {
  display: none !important;
}

/* разрез «Общая статистика»: колонка Elo скрыта */
.rating-table.no-elo .col-rating {
  display: none;
}

.rating-table th[data-sort] {
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}

.rating-table th.sorted-desc::after {
  content: ' ▼';
  font-size: 8px;
}

.rating-table th.sorted-asc::after {
  content: ' ▲';
  font-size: 8px;
}
