.gr-page {
  --sv-page-radius: 16px;
  --sv-card-radius: 16px;
  --sv-pill-radius: 999px;
  --sv-border: rgba(15, 23, 42, 0.08);
  --sv-surface: #ffffff;
  --sv-ink: #0f172a;
  --sv-text-muted: #64748b;
  --sv-accent-soft: rgba(67, 95, 111, 0.12);
  --gr-accent: #435f6f;
  --gr-accent-soft: rgba(67, 95, 111, 0.12);
  --gr-surface: var(--sv-surface);
  --gr-border: var(--sv-border);
  --gr-text-muted: var(--sv-text-muted);
}
.gs-page {
  --gs-accent: #2563eb;
}
.gs-page .gr-hero {
  --gr-accent: var(--gs-accent);
}
/* Shared global page layout (ranking, statistics, modalities catalog) */
.gr-hero {
  border-radius: var(--sv-page-radius, 16px);
  padding: 24px 28px;
  margin-bottom: 20px;
  color: #fff;
  background: linear-gradient(135deg, var(--gr-accent) 0%, #1e293b 100%);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.18);
  position: relative;
  overflow: hidden;
}
.gr-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.18), transparent 55%);
  pointer-events: none;
}
.gr-hero__eyebrow {
  margin: 0 0 8px;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.85;
}
.gr-hero__title {
  margin: 0 0 6px;
  font-size: 28px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 12px;
}
.gr-hero__meta {
  margin: 0;
  opacity: 0.9;
  font-size: 14px;
}
.gr-filters {
  background: var(--gr-surface);
  border: 1px solid var(--gr-border);
  border-radius: var(--sv-page-radius, 16px);
  padding: 18px;
  margin-bottom: 18px;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04);
}
.gr-filters__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.gr-filters__title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--sv-ink);
}
.gr-filters__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.gr-filters__field label {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--gr-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.gr-filters__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: end;
}
.gr-filters__actions .btn {
  min-width: 120px;
}
.gr-active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}
.gr-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--sv-pill-radius, 999px);
  background: #eef2f7;
  color: #334155;
  font-size: 12px;
  font-weight: 600;
}
.gr-filter-chip a {
  color: inherit;
  opacity: 0.7;
}
.gr-filter-chip a:hover {
  opacity: 1;
  text-decoration: none;
}
.gr-empty {
  border-radius: var(--sv-page-radius, 16px);
  padding: 28px;
  text-align: center;
  background: #f8fafc;
  border: 1px dashed var(--gr-border);
}
.gs-order-nav,
.mod-type-nav,
.ar-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}
.gs-order-pill,
.gr-tier-pill,
.ar-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: var(--sv-pill-radius, 999px);
  border: 1px solid var(--gr-border, var(--sv-border));
  background: var(--gr-surface, var(--sv-surface));
  color: var(--sv-ink, #0f172a);
  text-decoration: none !important;
  font-weight: 600;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.gs-order-pill:hover,
.gr-tier-pill:hover,
.ar-filter-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
  text-decoration: none;
}
.gs-order-pill.is-active {
  border-color: var(--gs-accent, var(--gr-accent));
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
  background: linear-gradient(180deg, #eff6ff, #ffffff);
  color: #1d4ed8;
}
.gr-tier-pill.is-active {
  border-color: var(--gr-accent);
  box-shadow: 0 0 0 3px var(--gr-accent-soft);
  background: linear-gradient(180deg, #fff, #f8fafc);
}
.gs-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.gs-summary-card {
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--gr-border);
  background: #fff;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}
.gs-summary-card__value {
  font-size: 24px;
  font-weight: 800;
  color: var(--sv-ink);
  line-height: 1;
}
.gs-summary-card__label {
  margin-top: 6px;
  font-size: 12px;
  color: var(--gr-text-muted);
  font-weight: 600;
}
@media (max-width: 992px) {
  .gr-filters__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 768px) {
  .gs-summary {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 576px) {
  .gr-filters__grid {
    grid-template-columns: 1fr;
  }
  .gr-hero__title {
    font-size: 22px;
    flex-wrap: wrap;
  }
}
@media (max-width: 1200px) {
  .gs-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
/* Global platform ranking (achievements module) */
.gr-tier-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}
.gr-tier-pill__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}
.gr-podium {
  display: grid;
  grid-template-columns: 1fr 1.1fr 1fr;
  gap: 14px;
  align-items: end;
  margin-bottom: 22px;
}
.gr-podium-card {
  border-radius: 16px;
  padding: 18px 16px 16px;
  text-align: center;
  background: linear-gradient(180deg, #fff, #f8fafc);
  border: 1px solid var(--gr-border);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}
.gr-podium-card--first {
  transform: translateY(-8px);
  border-color: rgba(245, 158, 11, 0.35);
  background: linear-gradient(180deg, #fffbeb, #ffffff);
}
.gr-podium-card__rank {
  width: 42px;
  height: 42px;
  margin: 0 auto 10px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #fff;
  background: var(--gr-accent);
}
.gr-podium-card--first .gr-podium-card__rank {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}
.gr-podium-card--second .gr-podium-card__rank {
  background: linear-gradient(135deg, #94a3b8, #64748b);
}
.gr-podium-card--third .gr-podium-card__rank {
  background: linear-gradient(135deg, #d97706, #92400e);
}
.gr-podium-card__name {
  margin: 8px 0 4px;
  font-weight: 700;
  font-size: 15px;
}
.gr-podium-card__points {
  font-size: 22px;
  font-weight: 800;
  color: var(--sv-ink);
}
.gr-podium-card__meta {
  margin-top: 8px;
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.gr-table-wrap {
  border: 1px solid var(--gr-border);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}
.gr-table {
  margin-bottom: 0;
}
.gr-table thead th {
  background: #f8fafc;
  border-bottom: 1px solid var(--gr-border);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--gr-text-muted);
  vertical-align: middle;
}
.gr-table tbody tr {
  transition: background-color 0.15s ease;
}
.gr-table tbody tr:hover {
  background: #f8fbff;
}
.gr-table tbody tr.gr-row--top1 {
  background: rgba(245, 158, 11, 0.06);
}
.gr-table tbody tr.gr-row--top2,
.gr-table tbody tr.gr-row--top3 {
  background: rgba(148, 163, 184, 0.06);
}
.gr-rank-cell {
  text-align: center;
  width: 72px;
}
.gr-rank-cell__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  border-radius: 10px;
  font-size: 18px;
  font-weight: 800;
  color: var(--sv-ink);
  background: #eef2f7;
}
.gr-player-cell {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}
.gr-player-cell__name {
  font-weight: 700;
  color: var(--sv-ink);
}
.gr-player-cell__username {
  display: block;
  font-size: 12px;
  color: var(--gr-text-muted);
}
.gr-stat-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
}
.gr-stat-pill--points {
  background: rgba(59, 130, 246, 0.12);
  color: #1d4ed8;
}
.gr-stat-pill--games {
  background: rgba(100, 116, 139, 0.12);
  color: #334155;
}
.gr-stat-pill--streak {
  background: rgba(14, 165, 233, 0.12);
  color: #0369a1;
}
.gr-stat-pill--streak-hot {
  background: rgba(239, 68, 68, 0.12);
  color: #b91c1c;
}
.gr-points-wrap {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.gr-elo-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
}
.gr-elo-badge.bronze {
  background: linear-gradient(45deg, #cd7f32, #a97142);
}
.gr-elo-badge.silver {
  background: linear-gradient(45deg, #c0c0c0, #9e9e9e);
}
.gr-elo-badge.gold {
  background: linear-gradient(45deg, #ffd700, #f1c40f);
  color: #5b4600;
}
.gr-elo-badge.platinum {
  background: linear-gradient(45deg, #00e5ff, #00b8d4);
}
.gr-elo-badge.diamond {
  background: linear-gradient(45deg, #b9f2ff, #81d4fa);
  color: var(--sv-ink);
}
.gr-elo-badge.master {
  background: linear-gradient(45deg, #8e44ad, #6a1b9a);
}
.gr-elo-badge.grandmaster {
  background: linear-gradient(45deg, #e67e22, #d35400);
}
.gr-elo-badge.legend {
  background: linear-gradient(45deg, #ff0000, #c0392b);
}
.gr-move {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 54px;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}
.gr-move--up {
  background: rgba(34, 197, 94, 0.14);
  color: #15803d;
}
.gr-move--down {
  background: rgba(239, 68, 68, 0.14);
  color: #b91c1c;
}
.gr-move--stable {
  background: rgba(148, 163, 184, 0.14);
  color: #64748b;
}
.gr-move--new {
  background: rgba(59, 130, 246, 0.14);
  color: #1d4ed8;
}
.gr-move__value--text {
  font-size: 10px;
  text-transform: uppercase;
}
@media (max-width: 992px) {
  .gr-podium {
    grid-template-columns: 1fr;
  }
  .gr-podium-card--first {
    transform: none;
    order: -1;
  }
}
