:root {
  color-scheme: dark;
  --bg: #0f1115;
  --glass: rgba(34, 34, 36, 0.75);
  --glass-strong: rgba(34, 34, 36, 0.92);
  --border: rgba(255, 255, 255, 0.06);
  --text: #e6e6e6;
  --muted: #9a9a9a;
  /*--accent: #3b82f6;*/
    --accent: #23b1d0;
  --accent-hover: #60a5fa;
  --layout-side-gap: 32px;
  --main-content-width: 1000px;
  --main-grid-width: 1408px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  /* Убираем радиальный градиент, чтобы на фоне не появлялся полукруглый артефакт. */
  background: linear-gradient(180deg, #17181c 0%, var(--bg) 45%);
  color: var(--text);
}

a { color: inherit; text-decoration: none; }

.app-shell { min-height: 100vh; display: flex; flex-direction: column; }

.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: 64px;
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  background: rgba(15, 17, 21, 0.82);
}

/* Общие переменные ширины используются из основного :root, чтобы header/footer/main-content были синхронны. */

.header-inner,
.footer-inner {
  width: min(var(--main-content-width), calc(100% - var(--layout-side-gap)));
  margin: 0 auto;
}

.main-grid {
  width: min(var(--main-grid-width), calc(100% - var(--layout-side-gap)));
  margin: 0 auto;
}

.header-inner { height: 100%; display: flex; justify-content: space-between; align-items: center; }
.logo-link {
  font-size: 20px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.logo-image {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex: 0 0 auto;
}
.header-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--glass);
  backdrop-filter: blur(12px);
}

.language-switcher__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1;
  border: 0;
  min-width: 44px;
  height: 30px;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: color 0.16s ease, background-color 0.16s ease;
}

.language-switcher__btn:hover {
  color: var(--text);
}

.language-switcher__btn.is-active {
  color: #02131a;
  background: var(--accent);
}

.search-box { position: relative; }

.search-input {
  width: 360px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--glass);
  backdrop-filter: blur(12px);
  color: var(--text);
  padding: 0 14px;
}

.search-input:focus { outline: 1px solid var(--accent); border-color: transparent; }

.search-dd {
  position: absolute;
  top: 48px;
  right: 0;
  width: 360px;
  background: var(--glass-strong);
  backdrop-filter: blur(12px);
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.search-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; }
.search-row img { width: 32px; height: 32px; border-radius: 8px; object-fit: cover; }
.search-row:hover { background: rgba(255, 255, 255, 0.04); }

.main-grid {
  display: grid;
  /* Суммарная ширина колонок + два gap должна совпадать с --main-grid-width. */
  grid-template-columns: 180px 1000px 180px;
  gap: 24px;
  padding: 88px 0 24px;
  flex: 1;
}

.card {
  background: var(--glass);
  backdrop-filter: blur(14px);
  border-radius: 10px;
  border: 1px solid var(--border);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.banner {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-self: start;
  min-height: 0;
}

/* Пустая колонка не должна создавать видимый фон, рамку или тень. */
.banner--empty {
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.banner__item {
  display: block;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--glass);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.banner__item:hover {
  transform: translateY(-2px);
  border-color: rgba(35, 177, 208, 0.28);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.4);
}

.banner__item:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(35, 177, 208, 0.16), 0 12px 34px rgba(0, 0, 0, 0.4);
  border-color: rgba(35, 177, 208, 0.42);
}

.banner__image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: inherit;
}

.main-content {
  width: min(var(--main-content-width), 100%);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.card { padding: 20px; }

.section-title-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.section-title { margin: 0; font-size: 24px; font-weight: 650; }
.section-title-action { margin-left: auto; text-align: right; flex-shrink: 0; }
.section-switch-link {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.03) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03), 0 8px 18px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(12px);
  color: rgba(230, 230, 230, 0.88);
  text-decoration: none;
  transition: background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.section-switch-link__label {
  font-size: 12px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.section-switch-link:hover {
  color: #8ae3f6;
  border-color: rgba(35, 177, 208, 0.32);
  background: linear-gradient(180deg, rgba(35, 177, 208, 0.14) 0%, rgba(255, 255, 255, 0.05) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 10px 22px rgba(0, 0, 0, 0.22);
}
.section-switch-link:focus-visible {
  outline: none;
  color: #b7f3ff;
  border-color: rgba(35, 177, 208, 0.48);
  background: linear-gradient(180deg, rgba(35, 177, 208, 0.18) 0%, rgba(255, 255, 255, 0.06) 100%);
  box-shadow: 0 0 0 4px rgba(35, 177, 208, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 10px 22px rgba(0, 0, 0, 0.22);
}
.section-switch-link:active { transform: translateY(1px); }
.page-title { margin: 0; font-size: 40px; font-weight: 700; }
.home-intro {
  padding: 18px 20px;
}

.top200-intro-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.top200-intro-text {
  flex: 1;
  padding: 0;
}

.top200-intro-action {
  padding-top: 2px;
}

.home-intro__title {
  margin: 0;
  font-size: 24px;
  font-weight: 650;
  line-height: 1.3;
}

.home-intro__summary {
  margin: 10px 0 0;
  /*max-width: 72ch;*/
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.welcome-page {
  width: 100%;
  padding: 32px;
}

.welcome-page__intro {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}

.welcome-page__eyebrow {
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.welcome-page__title {
  font-size: clamp(32px, 5vw, 40px);
}

.welcome-page__lead {
  margin: 0;
  max-width: 62ch;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.welcome-page__content {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.welcome-page__language-block {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.welcome-page__language-block p {
  margin: 0;
  color: var(--text);
  line-height: 1.75;
}

.welcome-page__section-title {
  margin: 0;
  font-size: clamp(22px, 3vw, 28px);
  line-height: 1.3;
}

.welcome-page__list {
  margin: 0;
  padding-left: 22px;
  color: var(--text);
  display: grid;
  gap: 10px;
}

.welcome-page__list li::marker {
  color: var(--accent);
}

.welcome-page__contact-link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid rgba(35, 177, 208, 0.28);
  background: rgba(35, 177, 208, 0.1);
  color: #8ae3f6;
  font-weight: 600;
  word-break: break-word;
}

.welcome-page__contact-link:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(35, 177, 208, 0.18);
  border-color: rgba(35, 177, 208, 0.5);
}

.welcome-page__divider {
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(35, 177, 208, 0.36), rgba(255, 255, 255, 0));
}

.metric-value { font-size: 18px; font-weight: 700; }
.muted-text { color: var(--muted); }
.empty-state { color: var(--muted); }

.loading-indicator {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.14);
  border-top-color: var(--accent);
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.hoverable,
.table-row,
.new-card { transition: all 0.2s ease; }
.hoverable:hover,
.new-card:hover { transform: translateY(-2px); }
.table-row:hover { background: rgba(255, 255, 255, 0.04); }

.grid-new { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.new-card { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 14px; }
/* Делаем превью-иконки в блоке New прямоугольными и фиксируем высоту 60px. */
.new-card img { width: 120px; height: 60px; border-radius: 10px; object-fit: cover; }
.rank { color: var(--muted); width: 36px; font-weight: 600; }
.game-link { color: var(--text); }
.game-link:hover { color: var(--accent-hover); }

.section-subtitle { margin: -4px 0 12px; color: var(--muted); font-size: 13px; }

/* Используем тот же каркас table/table-wrap, что и в Best, чтобы хедер совпадал пиксель-в-пиксель. */
.trending-table-wrap { overflow-y: visible; }
.trending-table { min-width: 0; }

.search-form { margin-bottom: 12px; }
.games-page-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}
.games-page-search-form { margin-bottom: 0; }
.games-page-release-filters {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}
.games-page-release-filter {
  display: inline-flex;
  flex-direction: column;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
}
.games-page-date-input-wrap { position: relative; width: fit-content; }
.games-page-date-input {
  height: 40px;
  min-width: 152px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--glass);
  color: var(--text);
  padding: 0 10px;
}
.games-page-date-input:focus {
  outline: 1px solid var(--accent);
  border-color: transparent;
}
.search-input-wrap { position: relative; width: fit-content; }
.search-input-with-clear { padding-right: 42px; appearance: textfield; }
.search-input-with-clear::-webkit-search-cancel-button,
.search-input-with-clear::-webkit-search-decoration { -webkit-appearance: none; appearance: none; }
.search-input-with-clear::-ms-clear,
.search-input-with-clear::-ms-reveal { display: none; width: 0; height: 0; }
.search-clear-btn {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #ef4444;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.search-clear-btn:hover { color: #f87171; }
.search-clear-btn:focus-visible { outline: 1px solid #ef4444; outline-offset: 2px; }
.search-clear-btn[hidden] { display: none !important; }

.table-block { margin-top: 12px; }
.table-wrap {
  width: 100%;
  /* Оставляем горизонтальный скролл, а по вертикали используем clip, чтобы исключить скрытую прокрутку и смещение строк. */
  overflow-x: auto;
  overflow-y: clip;
  border-radius: 14px;
}
.table { width: 100%; border-collapse: separate; border-spacing: 0; min-width: 860px; }
.table th,
.table td { font-size: 14px; text-align: left; padding: 12px 10px; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.table th { color: var(--muted); font-weight: 600; background: rgba(15, 17, 21, 0.75); }

.sticky-head thead th { position: sticky; top: 64px; z-index: 4; }
.sticky-cols .col-rank,
.sticky-cols .col-game { position: sticky; z-index: 3; background: rgba(15, 17, 21, 0.86); }
.sticky-cols .col-rank { left: 0; min-width: 56px; }
.sticky-cols .col-game { left: 56px; min-width: 260px; }

.players-cell { display: flex; align-items: center; gap: 8px; }
.positive { color: #22c55e; }
.negative { color: #ef4444; }
.flat { color: var(--muted); }

.game-name-cell { position: relative; }


.game-name-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.game-cell-image {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(34, 34, 36, 0.5);
  flex: 0 0 auto;
}

.pagination {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}
.pagination-top {
  margin-top: 0;
  margin-bottom: 12px;
  margin-left: auto;
}


.pagination-btn {
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(34, 34, 36, 0.4);
  color: var(--text);
  padding: 0 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 13px;
}

.pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pagination-btn.is-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.pagination-status {
  color: var(--muted);
  font-size: 13px;
}

.pagination-status-with-input {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.pagination-input {
  width: 64px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(34, 34, 36, 0.4);
  color: var(--text);
  padding: 0 10px;
  font: inherit;
}

.pagination-input:focus {
  outline: 1px solid rgba(111, 141, 255, 0.7);
  border-color: rgba(111, 141, 255, 0.7);
}
.game-hover-preview {
  position: fixed;
  width: 300px;
  background: var(--glass-strong);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1200;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px);
}
.game-hover-preview[hidden] {
  display: none;
}
.game-hover-preview img {
  width: 100%;
  aspect-ratio: 2 / 1;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(34, 34, 36, 0.5);
}
.game-hover-preview__meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
}
.game-hover-preview__meta strong {
  font-size: 14px;
  line-height: 1.3;
  color: #f3f4f6;
}

.table-link-wrap { margin-top: 12px; }
.table-link-wrap-between { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.table-link { color: var(--accent); }
.table-link:hover { color: var(--accent-hover); }


.game-top-block { display: flex; flex-direction: column; gap: 16px; }
.game-top-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.game-top-header-action {
  margin-left: auto;
  flex-shrink: 0;
}
.game-top-row { display: flex; align-items: stretch; gap: 14px; }
.game-top-image {
  width: 260px;
  max-width: 40%;
  height: 120px;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid var(--border);
  background: rgba(34, 34, 36, 0.5);
}
.game-stats-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; flex: 1; }
.game-top-links {
  display: flex;
  justify-content: flex-start;
  gap: 10px;
  flex-wrap: wrap;
}
.game-top-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: rgba(34, 34, 36, 0.48);
  color: #d1d5db;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.game-top-link-btn:hover {
  background: rgba(55, 55, 57, 0.58);
  border-color: rgba(255, 255, 255, 0.24);
  color: #e5e7eb;
}

.game-top-link-btn:focus-visible {
  outline: 2px solid rgba(229, 231, 235, 0.55);
  outline-offset: 2px;
}

.game-top-link-btn--reviews {
  white-space: nowrap;
}

.game-top-link-btn--steam-store {
  margin-left: auto;
}

.game-top-review-category {
  font-weight: 600;
}

.game-top-review-count {
  color: #d1d5db;
}
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.stat-item {
  background: rgba(34, 34, 36, 0.5);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
}
.range-tabs { display: flex; gap: 8px; margin-bottom: 12px; }
.range-btn {
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(34, 34, 36, 0.4);
  color: var(--text);
  padding: 0 12px;
  cursor: pointer;
}

.range-btn.active { border-color: rgba(209, 213, 219, 0.42); color: #d1d5db; }


.monthly-stats-wrap {
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: linear-gradient(180deg, rgba(34, 34, 36, 0.38) 0%, rgba(19, 21, 26, 0.55) 100%);
}
.monthly-stats-table {
  min-width: 720px;
}
.monthly-stats-table th {
  background: rgba(15, 17, 21, 0.88);
  font-size: 15px;
}
.monthly-stats-row td {
  background: rgba(255, 255, 255, 0.01);
  font-size: 14px;
}
.monthly-stats-month {
  font-weight: 600;
  color: #f3f4f6;
}

.players-tooltip {
  background: rgba(17, 19, 24, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
  padding: 10px 12px;
  color: #e5e7eb;
}

.players-tooltip-time {
  color: #d1d5db;
  font-size: 12px;
  margin-bottom: 4px;
}

.players-tooltip-value {
  color: #f3f4f6;
  font-size: 13px;
  font-weight: 600;
}

.footer { height: 100px; border-top: 1px solid var(--border); display: flex; align-items: center; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 14px; }
.qr-placeholder {
  width: 78px;
  height: 78px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #fff;
  object-fit: cover;
}

.error-page { text-align: center; padding: 60px 20px; }

@media (max-width: 1640px) {
  .main-grid { grid-template-columns: 1fr; }
  .banner { display: none; }
}

@media (max-width: 1100px) {
  .back-to-top { right: 24px; }
  .stats-grid,
  .game-stats-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .game-top-row { flex-direction: column; }
  .game-top-image { max-width: 100%; width: 100%; height: 140px; }
  .game-top-links { justify-content: flex-start; }
  .game-top-header-action { margin-left: 0; }
  .trending-head,
  .trending-row { grid-template-columns: 42px 1fr 140px 100px 100px; }
  .section-switch-link { padding: 0 10px; min-height: 30px; }
  .section-switch-link__label { font-size: 11px; }
}

.legalinfo {
    max-width: 700px;
}

.footer a {
    color: #ffffff;
}

.main-content h2 {
    color: var(--accent);
}

h1 {
  color: var(--accent);
}

@media (max-width: 768px) {
  .back-to-top {
    right: 16px;
    bottom: 20px;
    width: 42px;
    height: 42px;
  }

  .welcome-page {
    padding: 24px 20px;
  }

  .welcome-page__intro {
    margin-bottom: 24px;
  }

  .welcome-page__content {
    gap: 24px;
  }

  .welcome-page__language-block {
    gap: 14px;
  }

  .welcome-page__language-block p,
  .welcome-page__list {
    font-size: 15px;
    line-height: 1.7;
  }

  .welcome-page__contact-link {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}

.privacy-page {
  width: 100%;
  padding: 32px;
}

.privacy-page__intro {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 760px;
  margin-bottom: 28px;
}

.privacy-page__eyebrow {
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.privacy-page__title {
  font-size: clamp(32px, 5vw, 40px);
}

.privacy-page__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  color: var(--muted);
  font-size: 14px;
}

.privacy-page__lead {
  margin: 0;
  color: var(--text);
  line-height: 1.75;
  font-size: 16px;
}

.privacy-page__lead--secondary {
  color: var(--muted);
}

.privacy-page__content {
  display: grid;
  gap: 18px;
}

.privacy-page__section {
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(15, 17, 21, 0.18) 100%);
}

.privacy-page__section-body,
.privacy-page__subsection {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.privacy-page__section-title {
  margin: 0 0 14px;
  font-size: clamp(22px, 3vw, 28px);
  line-height: 1.3;
}

.privacy-page__subsection-title {
  margin: 0;
  font-size: 17px;
  line-height: 1.45;
  color: #f3f4f6;
}

.privacy-page__section p,
.privacy-page__list {
  margin: 0;
  line-height: 1.75;
}

.privacy-page__list {
  padding-left: 22px;
  display: grid;
  gap: 10px;
}

.privacy-page__list li::marker {
  color: var(--accent);
}

.privacy-page__section a,
.privacy-page__intro a {
  color: #8ae3f6;
  text-decoration: underline;
  text-decoration-color: rgba(138, 227, 246, 0.45);
  text-underline-offset: 3px;
  word-break: break-word;
}

.privacy-page__contact-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 46px;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid rgba(35, 177, 208, 0.28);
  background: rgba(35, 177, 208, 0.1);
  color: #8ae3f6;
  font-weight: 600;
}


.privacy-page__legal-note {
  margin: 20px 2px 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.legalinfo {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 700px;
}

.legalinfo__text {
  margin: 0;
}

.legalinfo__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

@media (max-width: 768px) {
  .privacy-page {
    padding: 24px 20px;
  }

  .privacy-page__intro {
    margin-bottom: 24px;
  }

  .privacy-page__section {
    padding: 18px;
    border-radius: 16px;
  }

  .privacy-page__section p,
  .privacy-page__list,
  .privacy-page__lead {
    font-size: 15px;
    line-height: 1.7;
  }

  .privacy-page__legal-note {
    margin-top: 18px;
    font-size: 12px;
  }

  .privacy-page__contact-link {
    width: 100%;
    text-align: center;
  }

  .footer {
    height: auto;
    padding: 16px 0;
  }

  .footer-inner {
    align-items: flex-start;
    gap: 16px;
  }
}


.back-to-top {
  /* Кнопка привязана к viewport, но визуально выровнена по правому краю центрального контента. */
  --back-to-top-inline-gap: 8px;
  position: fixed;
  right: max(18px, calc((100vw - min(var(--main-content-width), 100vw - var(--layout-side-gap))) / 2 + var(--back-to-top-inline-gap)));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  appearance: none;
  border: 1px solid rgba(152, 168, 196, 0.18);
  border-radius: 13px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.015) 100%),
    linear-gradient(180deg, rgba(18, 24, 34, 0.86) 0%, rgba(9, 13, 19, 0.92) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 -1px 0 rgba(255, 255, 255, 0.02),
    0 10px 24px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: rgba(226, 232, 240, 0.9);
  cursor: pointer;
  transition: bottom 0.22s ease, border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease, transform 0.18s ease, color 0.22s ease;
  z-index: 84;
}

.back-to-top:hover {
  border-color: rgba(35, 177, 208, 0.28);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.025) 100%),
    linear-gradient(180deg, rgba(24, 31, 43, 0.9) 0%, rgba(11, 16, 24, 0.95) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    inset 0 -1px 0 rgba(255, 255, 255, 0.025),
    0 12px 26px rgba(0, 0, 0, 0.26);
  color: rgba(241, 245, 249, 0.96);
  transform: translateY(-1px);
}

.back-to-top:active {
  transform: translateY(0);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    inset 0 -1px 0 rgba(255, 255, 255, 0.02),
    0 7px 18px rgba(0, 0, 0, 0.22);
}

.back-to-top:focus-visible {
  outline: none;
  border-color: rgba(35, 177, 208, 0.34);
  box-shadow:
    0 0 0 4px rgba(35, 177, 208, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 12px 26px rgba(0, 0, 0, 0.26);
}

.back-to-top__icon {
  width: 18px;
  height: 18px;
  display: block;
  flex: 0 0 auto;
  transform: translateY(-0.5px);
}

@media (max-width: 720px) {
  .back-to-top {
    right: 16px;
    width: 42px;
    height: 42px;
  }

  .back-to-top__icon {
    width: 17px;
    height: 17px;
  }
}

@media (max-width: 840px) {
  .header-controls {
    gap: 8px;
  }

  .language-switcher__btn {
    min-width: 38px;
    font-size: 11px;
  }
}

.games-page-date-input-wrap .search-clear-btn { right: 10px; }
.games-page-date-input-wrap .games-page-date-input { padding-right: 34px; }


/* Русский комментарий: выравниваем блок графика в PHP-версии по отступам, шрифтам и визуальному ритму React-варианта. */
.game-chart-card .section-title {
  margin-bottom: 14px;
}

.game-range-switch {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.game-range-switch .range-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(34, 34, 36, 0.4);
  color: var(--text);
  font-size: 14px;
  line-height: 1;
}

.game-range-switch .range-link.active {
  border-color: rgba(209, 213, 219, 0.42);
  color: #d1d5db;
}

.players-chart {
  width: 100%;
  height: 320px;
}
