/* =========================================================
   TOKENS
   ========================================================= */
:root {
  /* Цвета */
  --c-bg:           #ECDAB9;
  --c-bg-deep:      #e3cfa7;
  --c-paper:        #f4e8cf;
  --c-ink:          #2c1810;
  --c-ink-soft:     #74625c;
  --c-ink-muted:    #a5948a;
  --c-line:         rgba(44, 24, 16, 0.12);
  --c-line-strong:  rgba(44, 24, 16, 0.24);

  --c-board-frame:  #3d2b1f;
  --c-board-light:  #ecdab9;
  --c-board-dark:   #74625c;

  --c-accent:       #b5722c;
  --c-accent-hi:    #d49248;
  --c-accent-deep:  #8a521c;

  --c-danger:       #b53d3d;
  --c-success:      #4a7c4a;

  /* Шрифты */
  --f-sans:  'Fira Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --f-serif: 'Fira Sans', system-ui, sans-serif;
  --f-mono:  'Fira Code', 'SF Mono', Menlo, Consolas, monospace;

  /* Тени */
  --sh-soft:  0 2px 8px rgba(44, 24, 16, 0.08);
  --sh-card:  0 8px 24px rgba(44, 24, 16, 0.12);
  --sh-deep:  0 24px 60px rgba(44, 24, 16, 0.24);
  --sh-board: 0 24px 60px rgba(0,0,0,0.35), inset 0 0 40px rgba(0,0,0,0.25), 0 0 0 2px var(--c-board-frame);

  /* Радиусы */
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 16px;

  /* Отступы */
  --gap-xs: 4px;
  --gap-sm: 8px;
  --gap-md: 16px;
  --gap-lg: 24px;
  --gap-xl: 48px;
  --gap-2xl: 80px;

  /* Тайминги */
  --t-fast: 0.15s ease;
  --t-med:  0.25s ease;
  --t-slow: 0.45s cubic-bezier(0.22, 1, 0.36, 1);

  /* Максимальная ширина контента */
  --maxw: 1200px;
}

/* =========================================================
   BASE / RESET
   ========================================================= */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

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

body {
  font-family: var(--f-sans);
  font-size: 16px;
  background: var(--c-bg);
  color: var(--c-ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  font-feature-settings: 'liga' 1, 'calt' 1;
}

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

ul, ol { list-style: none; }

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

::selection {
  background: var(--c-accent);
  color: var(--c-paper);
}

:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 2px;
}

/* Скрыть скроллбар в горизонтальных скроллах */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { scrollbar-width: none; }

/* =========================================================
   TYPOGRAPHY HELPERS
   ========================================================= */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--f-sans);
  color: var(--c-ink);
  line-height: 1.15;
  font-weight: 700;
}

p { color: var(--c-ink-soft); }

/* =========================================================
   UTILITIES
   ========================================================= */
.section-head {
  max-width: var(--maxw);
  margin: 0 auto var(--gap-2xl);
  text-align: center;
  padding: 0 var(--gap-lg);
}

.section-eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--c-accent);
  font-weight: 500;
  margin-bottom: var(--gap-md);
  position: relative;
}
.section-eyebrow::before,
.section-eyebrow::after {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--c-accent);
  vertical-align: middle;
  margin: 0 12px;
  opacity: 0.5;
}

.section-title {
  font-family: var(--f-sans);
  font-size: clamp(32px, 4.5vw, 56px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--c-ink);
  margin-bottom: var(--gap-md);
}

.section-sub {
  font-size: clamp(15px, 1.3vw, 18px);
  color: var(--c-ink-soft);
  max-width: 620px;
  margin: 0 auto;
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  font-family: var(--f-sans);
  font-size: 15px;
  font-weight: 500;
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: all var(--t-fast);
  white-space: nowrap;
  border: 1px solid transparent;
  line-height: 1.2;
}
.btn i { font-size: 0.95em; }

.btn-primary {
  background: var(--c-ink);
  color: var(--c-paper);
  box-shadow: var(--sh-soft);
}
.btn-primary:hover {
  background: var(--c-accent-deep);
  transform: translateY(-2px);
  box-shadow: var(--sh-card);
}
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn-ghost {
  background: transparent;
  color: var(--c-ink);
  border-color: var(--c-line-strong);
}
.btn-ghost:hover {
  background: rgba(44, 24, 16, 0.05);
  border-color: var(--c-ink);
}

.btn-block { width: 100%; }

/* =========================================================
   FULLSCREEN
   ========================================================= */
.live-board:fullscreen {
  background: var(--c-bg-deep);
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: auto;
}

.live-board:fullscreen .section-head {
  display: none;
}

.live-board:fullscreen .live-board-wrap {
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: var(--gap-lg);
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
}

.live-board:fullscreen .board-frame {
  max-width: min(82vh, 900px);
  margin: 0 auto;
}

.live-board:fullscreen .live-board-side {
  position: static;
  max-height: none;
}

@media (max-width: 1024px) {
  .live-board:fullscreen .live-board-wrap {
    grid-template-columns: 1fr;
  }
}

.live-board:-webkit-full-screen {
  background: var(--c-bg-deep);
  padding: 24px;
}
.live-board:-webkit-full-screen .section-head { display: none; }
.live-board:-webkit-full-screen .board-frame {
  max-width: min(82vh, 900px);
}

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  background: rgba(236, 218, 185, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--c-line);
  transition: padding var(--t-med), background var(--t-med);
}
.nav.scrolled {
  padding: 10px 32px;
  background: rgba(236, 218, 185, 0.95);
}

.nav-logo {
  font-family: var(--f-sans);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--c-ink);
  display: flex;
  align-items: baseline;
}
.nav-logo-mark.alt { color: var(--c-accent); }

.nav-links {
  display: flex;
  gap: 36px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.nav-links a {
  font-size: 14px;
  font-weight: 400;
  color: var(--c-ink-soft);
  transition: color var(--t-fast);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 1px;
  background: var(--c-accent);
  transition: width var(--t-med);
}
.nav-links a:hover { color: var(--c-ink); }
.nav-links a:hover::after { width: 100%; }

.nav-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-cta {
  padding: 10px 22px;
  background: var(--c-ink);
  color: var(--c-paper);
  font-size: 14px;
  border-radius: var(--r-sm);
  transition: background var(--t-fast), transform var(--t-fast);
}
.nav-cta:hover {
  background: var(--c-accent-deep);
  transform: translateY(-1px);
}

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--c-line-strong);
  border-radius: var(--r-sm);
  overflow: hidden;
  background: rgba(44, 24, 16, 0.03);
}
.lang-switch button {
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1px;
  color: var(--c-ink-soft);
  border-right: 1px solid var(--c-line);
  transition: background var(--t-fast), color var(--t-fast);
}
.lang-switch button:last-child { border-right: none; }
.lang-switch button:hover {
  color: var(--c-ink);
  background: rgba(44, 24, 16, 0.05);
}
.lang-switch button.active {
  background: var(--c-ink);
  color: var(--c-paper);
}
.lang-switch-mobile {
  align-self: flex-start;
  margin-top: 12px;
}

.nav-burger {
  display: none;
  width: 32px;
  height: 32px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.nav-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--c-ink);
  transition: transform var(--t-med), opacity var(--t-med);
}
.nav-burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-mobile {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 99;
  background: var(--c-bg);
  padding: 80px 32px 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  border-bottom: 1px solid var(--c-line);
  transform: translateY(-100%);
  transition: transform var(--t-slow);
}
.nav-mobile.open { transform: translateY(0); }
.nav-mobile a {
  font-family: var(--f-sans);
  font-size: 22px;
  font-weight: 500;
  color: var(--c-ink);
}
.nav-mobile-cta {
  margin-top: 20px;
  padding: 16px;
  background: var(--c-ink);
  color: var(--c-paper) !important;
  text-align: center;
  border-radius: var(--r-sm);
  font-family: var(--f-sans) !important;
  font-size: 15px !important;
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 120px 32px 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-6deg);
  font-family: var(--f-sans);
  font-weight: 700;
  font-size: clamp(300px, 42vw, 620px);
  letter-spacing: 6px;
  color: var(--c-ink);
  opacity: 0.045;
  white-space: nowrap;
  user-select: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 900px;
  text-align: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  background: rgba(44, 24, 16, 0.06);
  border: 1px solid var(--c-line);
  border-radius: 100px;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--c-ink-soft);
  margin-bottom: var(--gap-lg);
}

.hero-dot {
  width: 6px;
  height: 6px;
  background: var(--c-success);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(74, 124, 74, 0.2);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(74, 124, 74, 0.2); }
  50%      { box-shadow: 0 0 0 8px rgba(74, 124, 74, 0.05); }
}

.hero-title {
  font-family: var(--f-sans);
  font-size: clamp(48px, 8vw, 112px);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.03em;
  color: var(--c-ink);
  margin-bottom: var(--gap-lg);
}
.hero-title-accent {
  color: var(--c-accent);
  font-weight: 700;
}

.hero-sub {
  font-size: clamp(16px, 1.5vw, 20px);
  color: var(--c-ink-soft);
  max-width: 560px;
  margin: 0 auto var(--gap-xl);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-bottom: var(--gap-2xl);
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 60px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-stats li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.hero-stat-num {
  font-family: var(--f-sans);
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 700;
  color: var(--c-ink);
  line-height: 1;
}
.hero-stat-label {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--c-ink-muted);
  text-align: center;
}

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--c-ink-muted);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  animation: float 3s ease-in-out infinite;
}
.hero-scroll i { font-size: 14px; }
@keyframes float {
  0%, 100% { transform: translate(-50%, 0); }
  50%      { transform: translate(-50%, -8px); }
}

/* =========================================================
   MODES
   ========================================================= */
.modes {
  padding: var(--gap-2xl) 32px;
  background: var(--c-bg-deep);
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
}

.modes-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap-lg);
  align-items: stretch;
}

.mode-card {
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  padding: 32px 24px;
  transition: transform var(--t-med), box-shadow var(--t-med), border-color var(--t-med);
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  position: relative;
  align-items: stretch;
  text-align: left;
}
.mode-card::after {
  content: '';
  position: absolute;
  top: 24px;
  right: 24px;
  width: 24px;
  height: 24px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a5948a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 5l7 7-7 7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity var(--t-fast), transform var(--t-fast);
  pointer-events: none;
}

.mode-card:hover::after {
  opacity: 0.6;
  transform: translateX(0);
}

.mode-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--r-sm);
  background: var(--c-ink);
  color: var(--c-paper);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 8px;
  transition: background var(--t-fast);
}
.mode-card:hover .mode-icon { background: var(--c-accent-deep); }

.mode-card h3 {
  font-family: var(--f-sans);
  font-size: 22px;
  font-weight: 700;
  color: var(--c-ink);
  line-height: 1.2;
}
.mode-card p {
  font-size: 14px;
  color: var(--c-ink-soft);
  line-height: 1.55;
  /* flex: 1; */
}

.mode-tag {
  align-self: flex-start;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--c-accent);
  padding: 4px 10px;
  border: 1px solid var(--c-accent);
  border-radius: 100px;
  margin-top: 4px;
}

/* =========================================================
   STEPS
   ========================================================= */

.steps {
  padding: var(--gap-2xl) 32px;
}

.steps-list {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap-xl);
  align-items: start;        /* ← старт, не stretch */
}

.step {
  position: relative;
  padding-top: 32px;
  border-top: 2px solid var(--c-line-strong);
  display: flex;
  flex-direction: column;
  /* height: 100%; ← убрал, чтобы не растягивался */
}

.step h3 {
  font-family: var(--f-sans);
  font-size: 24px;
  font-weight: 700;
  color: var(--c-ink);
  margin: 0 0 12px;
}

.step p {
  font-size: 15px;
  color: var(--c-ink-soft);
  line-height: 1.6;
  margin: 0 0 20px;
  min-height: 3.2em;         /* ← 2 строки для всех */
}

.step-benefits {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;              /* ← без auto */
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.step-benefits li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--c-ink-soft);
}

.step-benefits li i {
  font-size: 12px;
  width: 14px;
  text-align: center;
  flex-shrink: 0;
  color: var(--c-accent-deep);
}

/* =========================================================
   LIVE BOARD
   ========================================================= */
.live-board {
  padding: var(--gap-2xl) 32px;
  background: var(--c-bg-deep);
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
}

.live-board-wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: var(--gap-xl);
  align-items: start;
}

.board-frame {
  width: 100%;
  max-width: 640px;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  background: var(--c-board-frame);
  border-radius: var(--r-sm);
  padding: 10px;
  box-shadow: var(--sh-board);
  position: relative;
}
.board-frame::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: var(--r-sm);
  padding: 2px;
  background: linear-gradient(135deg, #6b4c3a, var(--c-board-frame), #6b4c3a);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.board {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  grid-template-rows: repeat(8, 1fr);
  width: 100%;
  height: 100%;
  border-radius: 2px;
  overflow: hidden;
  background: var(--c-board-light);
  box-shadow: inset 0 0 24px rgba(0,0,0,0.15);
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.sq {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  font-size: clamp(22px, 4.8vw, 48px);
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  transition: background var(--t-fast);
}
.sq.light { background: var(--c-board-light); }
.sq.dark  { background: var(--c-board-dark); }

.sq .coord {
  position: absolute;
  font-size: 10px;
  font-weight: 500;
  pointer-events: none;
  opacity: 0.55;
  font-family: var(--f-sans);
}
.sq .coord-file { bottom: 2px; right: 4px; }
.sq .coord-rank { top: 2px; left: 4px; }
.sq.light .coord { color: #5a4a3a; }
.sq.dark  .coord { color: var(--c-board-light); }

.sq.has-piece { cursor: grab; }
.sq.has-piece:active { cursor: grabbing; }

.sq.selected {
  background: rgba(220, 190, 100, 0.92) !important;
}
.sq.last-move {
  background: rgba(212, 165, 116, 0.55) !important;
}

.sq.valid-move::before {
  content: '';
  position: absolute;
  width: 22%;
  height: 22%;
  border-radius: 50%;
  background: rgba(60, 40, 20, 0.3);
  pointer-events: none;
  z-index: 2;
  animation: dotIn var(--t-med);
}
.sq.dark.valid-move::before {
  background: rgba(255, 255, 255, 0.22);
}
.sq.valid-capture {
  box-shadow: inset 0 0 0 4px rgba(180, 60, 60, 0.55);
}

@keyframes dotIn {
  from { transform: scale(0); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

.sq .piece {
  pointer-events: none;
  line-height: 1;
  z-index: 1;
  position: relative;
  font-size: inherit;
  transition: transform var(--t-fast);
}
.piece.white {
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
}
.piece.black {
  color: #1a1a1a;
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.08);
}

.sq.dragging .piece {
  transform: translateY(-6px) scale(1.12);
  filter: drop-shadow(0 10px 18px rgba(0,0,0,0.5));
}

#ghost {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 10000;
  font-size: clamp(26px, 5.2vw, 52px);
  line-height: 1;
  transform: translate(-50%, -50%) scale(1.15);
  opacity: 0;
  filter: drop-shadow(0 12px 24px rgba(0,0,0,0.55));
  will-change: transform, left, top;
}
#ghost.visible { opacity: 1; }
#ghost .piece {
  font-size: inherit;
  pointer-events: none;
}
#ghost .piece.white { color: #ffffff; }
#ghost .piece.black { color: #1a1a1a; }

.live-board-side {
  display: flex;
  flex-direction: column;
  gap: var(--gap-md);
  padding: 24px;
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  position: sticky;
  top: 90px;
}
.side-block {
  padding-bottom: var(--gap-md);
  border-bottom: 1px solid var(--c-line);
}
.side-block:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
}
.side-label {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--c-ink-muted);
  margin-bottom: 6px;
}
.side-value {
  font-family: var(--f-sans);
  font-size: 18px;
  font-weight: 600;
  color: var(--c-ink);
  line-height: 1.3;
}
.side-value.side-hint {
  font-family: var(--f-sans);
  font-size: 14px;
  font-weight: 400;
  color: var(--c-ink-soft);
  line-height: 1.55;
}

/* =========================================================
   LEADERS
   ========================================================= */
.leaders { padding: var(--gap-2xl) 32px; }

.leaders-table {
  max-width: var(--maxw);
  margin: 0 auto;
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--sh-soft);
}

.leaders-head,
.leaders-row {
  display: grid;
  grid-template-columns: 60px 1fr 100px 80px 80px 80px;
  gap: 16px;
  padding: 16px 24px;
  align-items: center;
}

.leaders-head {
  background: var(--c-ink);
  color: var(--c-paper);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.leaders-row {
  border-bottom: 1px solid var(--c-line);
  font-size: 15px;
  transition: background var(--t-fast);
}
.leaders-row:last-child { border-bottom: none; }
.leaders-row:hover { background: rgba(212, 165, 116, 0.08); }

.leaders-rank {
  font-family: var(--f-mono);
  font-size: 18px;
  color: var(--c-ink-soft);
  text-align: center;
}
.leaders-row:nth-child(2) .leaders-rank { color: #c9a227; }
.leaders-row:nth-child(3) .leaders-rank { color: #9a9a9a; }
.leaders-row:nth-child(4) .leaders-rank { color: #a86f3c; }

.leaders-name {
  font-weight: 500;
  color: var(--c-ink);
}
.leaders-grade {
  font-family: var(--f-mono);
  font-weight: 700;
  color: var(--c-accent-deep);
}
.leaders-stat {
  text-align: center;
  font-family: var(--f-mono);
  font-size: 14px;
}
.leaders-stat.win  { color: var(--c-success); }
.leaders-stat.lose { color: var(--c-danger); }

/* =========================================================
   ARENA
   ========================================================= */
.arena {
  padding: var(--gap-2xl) 32px;
}

.arena-grid {
  max-width: var(--maxw);
  margin: var(--gap-xl) auto 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gap-lg);
}

.arena-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px 22px 22px;
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  transition: transform var(--t-med), box-shadow var(--t-med), border-color var(--t-med);
}

.arena-card:hover {
  transform: translateY(-2px);
  border-color: var(--c-accent);
  box-shadow: var(--sh-card);
}

.arena-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--c-ink-muted);
  background: rgba(44, 24, 16, 0.05);
  border-radius: 100px;
}

.arena-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.arena-status.live {
  color: var(--c-danger);
  background: rgba(181, 61, 61, 0.1);
}
.arena-status.live .arena-status-dot {
  animation: arena-pulse 1.4s ease-in-out infinite;
}

.arena-status.soon {
  color: var(--c-accent-deep);
  background: rgba(181, 114, 44, 0.12);
}

.arena-status.idle,
.arena-status.finished {
  color: var(--c-ink-muted);
  background: rgba(44, 24, 16, 0.05);
}

@keyframes arena-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .55; transform: scale(.85); }
}

.arena-card h3 {
  margin: 0;
  font-family: var(--f-sans);
  font-size: 20px;
  font-weight: 700;
  color: var(--c-ink);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.arena-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  font-size: 13px;
  color: var(--c-ink-soft);
}

.arena-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.arena-meta i {
  font-size: 12px;
  opacity: .75;
  color: var(--c-ink-muted);
}

.arena-card .btn {
  margin-top: auto;
}

.arena-more {
  display: flex;
  justify-content: center;
  margin-top: var(--gap-xl);
}

.arena-more .btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

/* =========================================================
   ARENA — адаптив
   ========================================================= */
@media (max-width: 1024px) {
  .arena-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .arena {
    padding: 60px 24px;
  }
  .arena-grid {
    grid-template-columns: 1fr;
    gap: var(--gap-md);
    margin-top: var(--gap-lg);
  }
  .arena-card {
    padding: 20px 18px;
  }
  .arena-card h3 {
    font-size: 18px;
  }
}

/* =========================================================
   MANIFESTO
   ========================================================= */
.manifesto { padding: var(--gap-2xl) 32px; }

.manifesto-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}
.manifesto-text {
  font-family: var(--f-sans);
  font-size: clamp(22px, 2.6vw, 34px);
  font-weight: 500;
  line-height: 1.4;
  color: var(--c-ink);
  letter-spacing: -0.01em;
  position: relative;
  z-index: 1;
}
.manifesto-sign {
  margin-top: var(--gap-xl);
  font-size: 12px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--c-ink-muted);
}

/* =========================================================
   CTA
   ========================================================= */
.cta {
  padding: var(--gap-2xl) 32px;
  background: var(--c-ink);
  color: var(--c-paper);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: 'E4D5';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-6deg);
  font-family: var(--f-sans);
  font-weight: 700;
  font-size: clamp(200px, 34vw, 480px);
  color: var(--c-paper);
  opacity: 0.03;
  pointer-events: none;
  white-space: nowrap;
}
.cta-inner {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.cta h2 {
  font-family: var(--f-sans);
  font-size: clamp(32px, 5vw, 64px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: var(--gap-md);
  color: var(--c-paper);
}
.cta p {
  font-size: 17px;
  color: rgba(244, 232, 207, 0.75);
  margin-bottom: var(--gap-xl);
  line-height: 1.6;
}
.cta-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.cta .btn-primary {
  background: var(--c-paper);
  color: var(--c-ink);
}
.cta .btn-primary:hover {
  background: var(--c-accent-hi);
  color: var(--c-ink);
}
.cta .btn-ghost {
  color: var(--c-paper);
  border-color: rgba(244, 232, 207, 0.3);
}
.cta .btn-ghost:hover {
  background: rgba(244, 232, 207, 0.08);
  border-color: var(--c-paper);
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  background: #1a0f0a;
  color: rgba(244, 232, 207, 0.65);
  padding: 60px 32px 32px;
}

/* Расширяем сетку футера до 5 колонок */
.footer-inner {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1.2fr 1.4fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    max-width: var(--maxw);
  margin: 0 auto;
}

/* Колонка владельца — все реквизиты одним цветом */
.footer-col ul li span {
  color: inherit;
  font-size: inherit;
  font-family: inherit;
}

/* Чтобы span вёл себя как ссылка в остальных колонках */
.footer-col ul li > span {
  display: inline-block;
  color: var(--footer-text, #8a94a6);
  line-height: 1.5;
}

/* Ссылка email — как обычная ссылка футера */
.footer-col ul li a {
  color: var(--footer-text, #8a94a6);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-col ul li a:hover {
  color: var(--footer-accent, #c8a24a);
}

/* Адаптив */
@media (max-width: 1024px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 640px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

.footer-brand .nav-logo {
  color: var(--c-paper);
  font-size: 26px;
  margin-bottom: 16px;
}
.footer-brand p {
  font-size: 14px;
  line-height: 1.6;
  max-width: 300px;
  color: rgba(244, 232, 207, 0.65);
}

.footer-col h4 {
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--c-paper);
  margin-bottom: 18px;
  font-weight: 500;
}
.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col a 
.footer-col ul li > span {
  font-size: 14px;
  color: rgba(244, 232, 207, 0.65);
  transition: color var(--t-fast);
}
.footer-col a:hover {
  color: var(--c-accent-hi);
}

.footer-bottom {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-top: 32px;
  border-top: 1px solid rgba(244, 232, 207, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
}

.footer-social {
  display: flex;
  gap: 16px;
}
.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(244, 232, 207, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-paper);
  transition: all var(--t-fast);
  font-size: 14px;
}
.footer-social a:hover {
  background: var(--c-accent);
  border-color: var(--c-accent);
  transform: translateY(-2px);
}

/* =========================================================
   REVEAL ON SCROLL
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   RESPONSIVE — 1024
   ========================================================= */
@media (max-width: 1024px) {
  .modes-grid { grid-template-columns: repeat(2, 1fr); }
  .arena-grid { grid-template-columns: repeat(2, 1fr); }
  .live-board-wrap { grid-template-columns: 1fr; }
  .live-board-side { position: static; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

/* =========================================================
   RESPONSIVE — 860
   ========================================================= */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-right .lang-switch { display: none; }
  .nav-right .nav-cta { display: none; }
  .nav-burger { display: flex; }

  .hero { padding: 100px 24px 60px; min-height: auto; }
  .hero-stats { gap: 32px; }
  .hero-scroll { display: none; }

  .modes,
  .steps,
  .live-board,
  .leaders,
  .arena,
  .manifesto,
  .cta {
    padding: 60px 24px;
  }
  .section-head { margin-bottom: 48px; }

  .steps-list { grid-template-columns: 1fr; gap: 40px; }

  .leaders-head,
  .leaders-row {
    grid-template-columns: 40px 1fr 70px 50px 50px 50px;
    gap: 10px;
    padding: 12px 16px;
    font-size: 13px;
  }
  .leaders-head span:nth-child(5),
  .leaders-row  > *:nth-child(5) { display: none; }

  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* =========================================================
   RESPONSIVE — 560
   ========================================================= */
@media (max-width: 560px) {
  .modes-grid { grid-template-columns: 1fr; }
  .arena-grid { grid-template-columns: 1fr; }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-actions .btn { width: 100%; }
  .hero-stats { gap: 24px; }
  .hero-stat-num { font-size: 26px; }

  .section-title { font-size: 30px; }

  .leaders-head,
  .leaders-row {
    grid-template-columns: 32px 1fr 60px 40px;
    gap: 8px;
    padding: 10px 12px;
    font-size: 12px;
  }
  .leaders-head span:nth-child(4),
  .leaders-row  > *:nth-child(4),
  .leaders-head span:nth-child(5),
  .leaders-row  > *:nth-child(5) { display: none; }

  .board-frame { padding: 6px; }

  .cta h2 { font-size: 30px; }

  .lang-switch-mobile button {
    padding: 10px 18px;
    font-size: 14px;
  }
}

/* =========================================================
   RESPONSIVE — 380 (очень узкие)
   ========================================================= */
@media (max-width: 380px) {
  .hero-title { font-size: 40px; }
  .hero-stat-num { font-size: 22px; }
  .hero-stat-label { font-size: 10px; letter-spacing: 1px; }
  .side-value { font-size: 16px; }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* =========================================================
   PRINT
   ========================================================= */
@media print {
  .nav,
  .nav-mobile,
  .hero-scroll,
  body { background: #fff; color: #000; }
  a { text-decoration: underline; }
  .reveal { opacity: 1; transform: none; }
}

/* =========================================================
   CUSTOM ALERT
   ========================================================= */
.custom-alert-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.25s ease;
}
.custom-alert-overlay.active { display: flex; }

.custom-alert {
  background: linear-gradient(145deg, #2c1810, #1a0f0a);
  border: 2px solid #4a3528;
  border-radius: var(--r-sm);
  padding: 40px 48px;
  max-width: 440px;
  width: 100%;
  text-align: center;
  box-shadow: var(--sh-deep);
  animation: alertPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.custom-alert .alert-icon {
  font-size: 56px;
  margin-bottom: 12px;
  display: block;
  line-height: 1;
}
.custom-alert .alert-icon.check { color: var(--c-danger); }
.custom-alert .alert-icon.mate  { color: var(--c-mate); }
.custom-alert .alert-icon.draw  { color: var(--c-warn); }

.custom-alert .alert-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--c-board-light);
  margin-bottom: 8px;
}
.custom-alert .alert-title.check { color: var(--c-danger); }
.custom-alert .alert-title.mate  { color: var(--c-mate); }
.custom-alert .alert-title.draw  { color: var(--c-warn); }

.custom-alert .alert-subtitle {
  font-size: 16px;
  color: #c4b5a5;
  margin-bottom: 24px;
  line-height: 1.5;
}

.custom-alert .alert-btn {
  background: var(--c-accent);
  color: var(--c-bg-page);
  border: none;
  padding: 12px 36px;
  border-radius: var(--r-sm);
  font-family: var(--f-sans);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--t-med);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.custom-alert .alert-btn:hover { transform: scale(1.05); background: var(--c-accent-hi); }

@keyframes alertPop {
  0%   { transform: scale(0.7); opacity: 0; }
  100% { transform: scale(1);   opacity: 1; }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ===== Вспышка над доской ===== */
.board-frame {
  position: relative;
}

.board-flash {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  z-index: 100;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s ease;
}
.board-flash.visible { opacity: 1; }

.board-flash-text {
  font-family: var(--f-sans);
  font-weight: 700;
  font-size: clamp(36px, 8vw, 96px);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,0.6), 0 0 40px rgba(0,0,0,0.4);
  animation: flashPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  opacity: 0;
  text-align: center;
  padding: 0 16px;
  line-height: 1.1;
}
.board-flash.visible .board-flash-text { opacity: 1; }

.board-flash.win {
  background: radial-gradient(circle at center,
    rgba(212, 165, 116, 0.85) 0%,
    rgba(181, 114, 44, 0.7) 50%,
    rgba(138, 82, 28, 0.5) 100%);
}
.board-flash.win .board-flash-text { color: #fff8e7; }

.board-flash.lose {
  background: radial-gradient(circle at center,
    rgba(181, 61, 61, 0.85) 0%,
    rgba(120, 30, 30, 0.7) 50%,
    rgba(80, 20, 20, 0.5) 100%);
}

.board-flash.draw {
  background: radial-gradient(circle at center,
    rgba(120, 110, 100, 0.8) 0%,
    rgba(90, 80, 70, 0.6) 50%,
    rgba(60, 50, 40, 0.4) 100%);
}
.board-flash.draw .board-flash-text { color: #f0e8d8; }

@keyframes flashPop {
  0%   { transform: scale(0.4); opacity: 0; }
  50%  { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

.board-frame.pulse {
  animation: framePulse 0.9s ease 3;
}
@keyframes framePulse {
  0%, 100% { box-shadow: var(--sh-board); }
  50% {
    box-shadow:
      0 0 0 4px rgba(212, 165, 116, 0.6),
      0 0 40px rgba(212, 165, 116, 0.4),
      var(--sh-board);
  }
}

/* ===== Подсветка короля под шахом ===== */
.sq.in-check {
  background: rgba(200, 50, 50, 0.55) !important;
  box-shadow: inset 0 0 0 3px rgba(255, 80, 80, 0.8);
  animation: checkPulse 1s infinite;
}
@keyframes checkPulse {
  0%, 100% { background: rgba(200, 50, 50, 0.55); }
  50%      { background: rgba(220, 70, 70, 0.75); }
}

/* ===== Toast ===== */
.board-toast {
  position: fixed;
  top: 100px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--c-danger);
  color: #fff;
  padding: 14px 32px;
  border-radius: var(--r-sm);
  font-family: var(--f-sans);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 0 12px 32px rgba(180, 40, 40, 0.5);
  z-index: 9999;
  animation: toastDrop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.board-toast[hidden] { display: none; }
@keyframes toastDrop {
  from { transform: translate(-50%, -40px); opacity: 0; }
  to   { transform: translate(-50%, 0); opacity: 1; }
}

/* ===== Оверлей (для модалок на главной) ===== */
.play-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(26, 15, 10, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fadeIn 0.25s ease;
}
.play-overlay[hidden] { display: none; }

.play-overlay-card {
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  padding: 40px 32px;
  max-width: 460px;
  width: 100%;
  text-align: center;
  box-shadow: var(--sh-deep);
  animation: popIn 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.play-overlay-title {
  font-family: var(--f-sans);
  font-size: 26px;
  font-weight: 700;
  color: var(--c-ink);
  margin-bottom: 8px;
}
.play-overlay-sub {
  font-size: 15px;
  color: var(--c-ink-soft);
  line-height: 1.5;
  margin-bottom: 20px;
}
.play-overlay-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 16px;
  flex-wrap: wrap;
}
.play-end-icon {
  font-size: 56px;
  line-height: 1;
  margin-bottom: 16px;
  color: var(--c-accent);
}

.private-link-input {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--f-mono);
  font-size: 13px;
  color: var(--c-ink);
  background: rgba(44, 24, 16, 0.04);
  border: 1px solid var(--c-line);
  border-radius: var(--r-sm);
  text-align: center;
  margin-bottom: 8px;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes popIn {
  from { transform: scale(0.85); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

.leaders-table[hidden] { display: none; }
.leaders-empty[hidden] { display: none; }

.leaders-empty {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 48px 24px;
  text-align: center;
  color: var(--c-ink-muted);
  font-size: 15px;
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  line-height: 1.5;
}

/* =========================================================
   LEGAL PAGES (rules, privacy)
   ========================================================= */
.legal {
  max-width: 720px;
  margin: 0 auto;
  padding: 120px 24px 80px;
}

.legal h1 {
  font-family: var(--f-serif);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 600;
  line-height: 1.1;
  color: var(--c-ink);
  margin-bottom: 12px;
}

.legal .legal-date {
  font-family: var(--f-mono);
  font-size: 13px;
  color: var(--c-ink-muted);
  margin-bottom: 40px;
  letter-spacing: 0.5px;
}

.legal h2 {
  font-family: var(--f-sans);
  font-size: 22px;
  font-weight: 700;
  color: var(--c-ink);
  margin-top: 40px;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.legal p,
.legal li {
  font-size: 15px;
  line-height: 1.7;
  color: var(--c-ink-soft);
  margin-bottom: 12px;
}

.legal ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 16px;
}

.legal ul li {
  margin-bottom: 8px;
}

.legal a {
  color: var(--c-accent);
  text-decoration: underline;
  transition: color var(--t-fast);
}

.legal a:hover {
  color: var(--c-accent-deep);
}

@media (max-width: 600px) {
  .legal {
    padding: 100px 20px 60px;
  }
  .legal h1 {
    font-size: 32px;
  }
  .legal h2 {
    font-size: 19px;
    margin-top: 32px;
  }
}

/* =========================================================
   ARENA BANNER (модалка состояния)
   ========================================================= */

.arena-banner {
  position: fixed;
  inset: 0;
  z-index: 9500;
  background: rgba(26, 15, 10, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fadeIn 0.22s ease;
}
.arena-banner[hidden] { display: none; }

.arena-banner-card {
  position: relative;
  max-width: 440px;
  width: 100%;
  padding: 40px 32px 32px;
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  box-shadow: var(--sh-deep);
  text-align: center;
  animation: popIn 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.arena-banner-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--c-ink-muted);
  border-radius: var(--r-sm);
  transition: color var(--t-fast), background var(--t-fast);
}
.arena-banner-close:hover {
  color: var(--c-ink);
  background: rgba(44, 24, 16, 0.06);
}

.arena-banner-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(181, 114, 44, 0.12);
  color: var(--c-accent-deep);
  font-size: 30px;
}
.arena-banner-icon.club {
  background: rgba(181, 114, 44, 0.16);
  color: var(--c-accent);
}
.arena-banner-icon.guest {
  background: rgba(44, 24, 16, 0.06);
  color: var(--c-ink-soft);
}
.arena-banner-icon.locked {
  background: rgba(181, 61, 61, 0.1);
  color: var(--c-danger);
}

.arena-banner-title {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 700;
  color: var(--c-ink);
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.arena-banner-text {
  margin: 0 0 24px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--c-ink-soft);
}

.arena-banner-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.arena-banner-actions .btn {
  width: 100%;
}

.arena-banner-actions .btn-link {
  background: none;
  color: var(--c-ink-soft);
  font-size: 14px;
  padding: 10px;
  border: none;
}
.arena-banner-actions .btn-link:hover {
  color: var(--c-ink);
}

/* бейдж "клуб" внутри баннера */
.arena-banner-plan {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 auto 16px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--c-accent-deep);
  background: rgba(181, 114, 44, 0.12);
  border: 1px solid rgba(181, 114, 44, 0.3);
  border-radius: 100px;
}
.arena-banner-plan[hidden] { display: none; }

@media (max-width: 480px) {
  .arena-banner-card {
    padding: 32px 22px 24px;
  }
  .arena-banner-icon {
    width: 60px;
    height: 60px;
    font-size: 24px;
  }
  .arena-banner-title { font-size: 19px; }
  .arena-banner-text  { font-size: 14px; }
}

/* =========================================================
   COOKIE — GLASSMORPHISM
   ========================================================= */

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9998;

  background: rgba(244, 232, 207, 0.72);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);

  border-top: 1px solid rgba(44, 24, 16, 0.12);
  box-shadow:
    0 -8px 32px rgba(44, 24, 16, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);

  animation: cookieSlideUp 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.cookie-banner[hidden] { display: none; }

@keyframes cookieSlideUp {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.cookie-banner-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.cookie-banner-text { flex: 1; min-width: 240px; }
.cookie-banner-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--c-ink);
  margin: 0 0 4px;
}
.cookie-banner-desc {
  font-size: 13px;
  line-height: 1.5;
  color: var(--c-ink-soft);
  margin: 0;
}
.cookie-banner-desc a {
  color: var(--c-accent-deep);
  text-decoration: underline;
}

.cookie-banner-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.cookie-btn {
  padding: 12px 22px;
  font-family: var(--f-sans);
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease,
              transform .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}

.cookie-btn-accept {
  background: var(--c-ink);
  color: var(--c-paper);
  box-shadow: 0 4px 12px rgba(44, 24, 16, 0.2);
}
.cookie-btn-accept:hover {
  background: var(--c-accent-deep);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(44, 24, 16, 0.3);
}

.cookie-btn-reject {
  background: rgba(255, 255, 255, 0.4);
  color: var(--c-ink);
  border-color: rgba(44, 24, 16, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.cookie-btn-reject:hover {
  background: rgba(255, 255, 255, 0.6);
  border-color: rgba(44, 24, 16, 0.25);
}

.cookie-btn-settings {
  background: transparent;
  color: var(--c-ink-soft);
  border-color: rgba(44, 24, 16, 0.12);
}
.cookie-btn-settings:hover {
  color: var(--c-ink);
  border-color: rgba(44, 24, 16, 0.24);
  background: rgba(255, 255, 255, 0.3);
}

.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(26, 15, 10, 0.45);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fadeIn 0.2s ease;
}
.cookie-modal[hidden] { display: none; }

.cookie-modal-card {
  background: rgba(244, 232, 207, 0.82);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);

  border: 1px solid rgba(44, 24, 16, 0.12);
  border-radius: 16px;
  max-width: 520px;
  width: 100%;

  box-shadow:
    0 24px 64px rgba(44, 24, 16, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);

  animation: popIn 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  flex-direction: column;
  max-height: 90vh;
}

.cookie-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(44, 24, 16, 0.08);
}
.cookie-modal-head h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--c-ink);
}
.cookie-modal-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--c-ink-soft);
  border: 1px solid rgba(44, 24, 16, 0.12);
  transition: all .15s ease;
}
.cookie-modal-close:hover {
  background: rgba(255, 255, 255, 0.4);
  color: var(--c-ink);
}

.cookie-modal-body {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
}

.cookie-cat {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(44, 24, 16, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.cookie-cat-info { flex: 1; }
.cookie-cat-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--c-ink);
  margin-bottom: 4px;
}
.cookie-cat-desc {
  font-size: 13px;
  line-height: 1.45;
  color: var(--c-ink-soft);
}

.cookie-modal-foot {
  display: flex;
  gap: 10px;
  padding: 18px 24px;
  border-top: 1px solid rgba(44, 24, 16, 0.08);
}
.cookie-modal-foot .cookie-btn { flex: 1; }

@media (max-width: 640px) {
  .cookie-banner-inner { padding: 16px; }
  .cookie-banner-actions { width: 100%; }
  .cookie-banner-actions .cookie-btn { flex: 1; padding: 12px 12px; font-size: 13px; }
  .cookie-modal-foot { flex-direction: column; }
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .cookie-banner        { background: rgba(244, 232, 207, 0.98); }
  .cookie-modal-card    { background: rgba(244, 232, 207, 0.98); }
  .cookie-cat,
  .cookie-btn-reject    { background: rgba(244, 232, 207, 0.92); }
}

/* =========================================================
   ARENA RULES BUTTON
   ========================================================= */
.arena-rules-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 10px 18px;
  background: transparent;
  border: 1px solid var(--c-line-strong, rgba(44, 24, 16, 0.15));
  border-radius: 8px;
  font-family: var(--f-sans, sans-serif);
  font-size: 13px;
  font-weight: 500;
  color: var(--c-ink-soft, #5a6378);
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.arena-rules-btn:hover {
  background: rgba(44, 24, 16, 0.05);
  color: var(--c-ink, #0d1220);
  border-color: var(--c-ink, #0d1220);
}
.arena-rules-btn i {
  font-size: 12px;
}

/* =========================================================
   ARENA RULES MODAL
   ========================================================= */
.arena-rules-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(26, 15, 10, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: arenaRulesFadeIn .2s ease;
  overflow-y: auto;
}
.arena-rules-overlay[hidden] { display: none; }

.arena-rules-modal {
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  background: var(--c-paper, #fff);
  border: 1px solid var(--c-line, rgba(0, 0, 0, 0.08));
  border-radius: 16px;
  box-shadow: var(--sh-deep, 0 20px 60px rgba(0, 0, 0, 0.3));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: arenaRulesPopIn .3s cubic-bezier(.22, 1, .36, 1);
  margin: auto;
}

.arena-rules-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--c-line, rgba(0, 0, 0, 0.08));
  flex-shrink: 0;
}
.arena-rules-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-sans, sans-serif);
  font-size: 16px;
  font-weight: 700;
  color: var(--c-ink, #0d1220);
}
.arena-rules-title i {
  color: var(--c-accent, #b5722c);
  font-size: 17px;
}

.arena-rules-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--c-line, rgba(0, 0, 0, 0.08));
  color: var(--c-ink-soft, #5a6378);
  font-size: 15px;
  cursor: pointer;
  transition: all .15s ease;
}
.arena-rules-close:hover {
  background: rgba(44, 24, 16, 0.05);
  color: var(--c-ink, #0d1220);
}

.arena-rules-body {
  padding: 20px 24px;
  overflow-y: auto;
  font-family: var(--f-sans, sans-serif);
  font-size: 14px;
  line-height: 1.65;
  color: var(--c-ink-soft, #5a6378);
}
.arena-rules-body p {
  margin: 0 0 12px;
}
.arena-rules-body p:last-child {
  margin-bottom: 0;
}
.arena-rules-body strong {
  color: var(--c-ink, #0d1220);
  font-weight: 600;
}

.arena-rules-table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 16px;
  font-size: 13px;
}
.arena-rules-table th,
.arena-rules-table td {
  padding: 8px 10px;
  text-align: left;
  border-bottom: 1px solid var(--c-line, rgba(0, 0, 0, 0.06));
}
.arena-rules-table th {
  font-family: var(--f-mono, monospace);
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--c-ink-muted, #8a8078);
  font-weight: 600;
}
.arena-rules-table td {
  color: var(--c-ink, #0d1220);
}
.arena-rules-table tr:last-child td {
  border-bottom: none;
}

.arena-rules-foot {
  padding: 16px 24px;
  border-top: 1px solid var(--c-line, rgba(0, 0, 0, 0.08));
  display: flex;
  justify-content: flex-end;
  flex-shrink: 0;
}

@keyframes arenaRulesFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes arenaRulesPopIn {
  from { transform: scale(.9); opacity: 0; }
  to   { transform: scale(1);  opacity: 1; }
}

@media (max-width: 640px) {
  .arena-rules-btn {
    width: 100%;
    justify-content: center;
    font-size: 12.5px;
    padding: 9px 14px;
  }
  .arena-rules-overlay { padding: 12px; }
  .arena-rules-modal {
    border-radius: 14px;
    max-height: 95vh;
  }
  .arena-rules-head { padding: 14px 18px; }
  .arena-rules-body { padding: 16px 18px; font-size: 13.5px; }
  .arena-rules-foot { padding: 12px 18px; }
  .arena-rules-table th,
  .arena-rules-table td {
    padding: 6px 8px;
    font-size: 12.5px;
  }
}
/* Список правил с иконками */
.arena-rules-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.arena-rules-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--c-line, rgba(0, 0, 0, 0.06));
  font-family: var(--f-sans, sans-serif);
  font-size: 14px;
  line-height: 1.6;
  color: var(--c-ink-soft, #5a6378);
}

.arena-rules-list li:first-child {
  padding-top: 0;
}

.arena-rules-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

/* Иконка в акцентном цвете проекта */
.arena-rules-list li > i {
  flex-shrink: 0;
  width: 22px;
  text-align: center;
  margin-top: 2px;
  font-size: 15px;
  color: var(--c-accent, #b5722c);
  transition: color .15s ease;
}

/* Лёгкое выделение иконки при наведении на строку */
.arena-rules-list li:hover > i {
  color: var(--c-accent-deep, #8a521c);
}

/* <strong> внутри строки */
.arena-rules-list li strong {
  color: var(--c-ink, #0d1220);
  font-weight: 600;
}

/* Мобильная версия */
@media (max-width: 640px) {
  .arena-rules-list li {
    gap: 12px;
    padding: 10px 0;
    font-size: 13.5px;
  }
  .arena-rules-list li > i {
    width: 22px;
    font-size: 14px;
  }
}

html {
  scrollbar-width: thin;
  scrollbar-color: #8b5e34 #f0e6d8;
}

body::-webkit-scrollbar { width: 10px; }
body::-webkit-scrollbar-track { background: #f0e6d8; }
body::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #a9744a, #8b5e34);
  border-radius: 8px;
  border: 2px solid #f0e6d8;
}
body::-webkit-scrollbar-thumb:hover {
  background: #2c1810;
}

/* фичи */
.features-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: auto;
}

.feature-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--c-ink-soft);
  line-height: 1.4;
}

.feature-line i {
  width: 14px;
  text-align: center;
  font-size: 11px;
  color: var(--c-accent-deep);
  flex-shrink: 0;
}

/* Недоступные — серые и зачёркнутые */
.features-list-muted .feature-line {
  color: var(--c-ink-muted);
  opacity: 0.7;
}

.features-list-muted .feature-line i {
  color: var(--c-ink-muted);
}

.features-list-muted .feature-line span {
  text-decoration: line-through;
  text-decoration-color: rgba(44, 24, 16, 0.25);
  text-decoration-thickness: 1px;
}

/* ===== УРОВЕНЬ БОТА — ГОРИЗОНТАЛЬНЫЙ ГРАДУСНИК (тонкий) p.s так Леша сказал ===== */
.thermo-h {
  margin-top: 4px;
}

.thermo-h-track {
  position: relative;
  height: 6px;             
  border-radius: 3px;         
  background: rgba(44, 24, 16, 0.08);
  border: 1px solid var(--c-line);
  cursor: grab;
  overflow: visible;
  touch-action: none;     
  user-select: none;       
  -webkit-user-select: none;
}

.thermo-h-fill {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 60%;
  background: linear-gradient(to right, #b5722c, #d49248);
  border-radius: 3px;       
  transition: width .25s cubic-bezier(.2, .9, .3, 1);
}

.thermo-h-dot {
  position: absolute;
  top: 50%;
  left: 60%;
  transform: translate(-50%, -50%);
  width: 14px;               
  height: 14px;             
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--c-accent-deep); 
  box-shadow: 0 1px 4px rgba(0,0,0,.25);
  transition: left .25s cubic-bezier(.2, .9, .3, 1);
  pointer-events: none;
}

.thermo-h-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;          
  font-family: var(--f-mono);
  font-size: 10px;           
  color: var(--c-ink-muted);
}
.thermo-h-labels span {
  cursor: pointer;
  transition: color .15s;
}
.thermo-h-labels span:hover { color: var(--c-ink); }
.thermo-h-labels span.active {
  color: var(--c-accent-deep);
  font-weight: 700;
}

.thermo-h-name {
  margin-top: 8px;          
  font-size: 12px;            
  color: var(--c-ink-soft);
  text-align: center;
}
.thermo-h-name strong {
  color: var(--c-ink);
  font-family: var(--f-mono);
}

/* ===== STEPS ===== */
.steps { padding: var(--gap-2xl) 32px; }

.steps-list {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap-xl);
  list-style: none;
  padding: 0;
}

.step {
  position: relative;
}

.step-btn {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: 32px 0 0;
  color: inherit;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: border-color .25s ease, transform .25s ease;
  position: relative;
}

.step-btn:hover {
  border-top-color: var(--c-accent);
  transform: translateY(-2px);
}

/* Стрелка в правом верхнем углу */
.step-arrow {
  position: absolute;
  top: 24px;
  right: 0;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--c-line-strong);
  color: var(--c-ink-muted);
  font-size: 12px;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity .25s ease, transform .25s ease,
              background .25s ease, color .25s ease, border-color .25s ease;
  pointer-events: none;
}

.step-btn:hover .step-arrow {
  opacity: 1;
  transform: translateX(0);
  background: var(--c-accent);
  color: var(--c-paper);
  border-color: var(--c-accent);
}

.step-num {
  font-family: var(--f-mono);
  font-size: 40px;
  font-weight: 400;
  color: var(--c-accent);
  line-height: 1;
  margin-bottom: 16px;
  transition: color .25s ease;
}

.step-btn:hover .step-num {
  color: var(--c-accent-deep);
}

.step-btn h3 {
  font-family: var(--f-sans);
  font-size: 24px;
  font-weight: 700;
  color: var(--c-ink);
  margin-bottom: 12px;
}

.step-btn p {
  font-size: 15px;
  color: var(--c-ink-soft);
  line-height: 1.6;
  margin: 0;
}

/* Адаптив */
@media (max-width: 860px) {
  .steps-list {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* ============================================================
   PLAYER PROFILE MODAL
   Модалка просмотра профиля игрока.
   Используется на страницах /play и /tour.

   p.s засунули в Index потому что есть на всех страницах + Леша сказал так будет правильно - исправим после рефачи
   ============================================================ */

/* ============================================================
   ОВЕРЛЕЙ
   ============================================================ */
.player-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(26, 15, 10, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: playerFadeIn .2s ease;
}
.player-overlay[hidden] { display: none; }

@keyframes playerFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ============================================================
   МОДАЛКА
   ============================================================ */
.player-modal {
  width: 100%;
  max-width: 460px;
  max-height: 90vh;
  background: var(--c-paper, #f5e6cf);
  border: 1px solid var(--c-line, rgba(44, 24, 16, .12));
  border-radius: var(--r-lg, 20px);
  box-shadow: 0 20px 60px rgba(44, 24, 16, .25);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: playerPopIn .3s cubic-bezier(.22, 1, .36, 1);
}

@keyframes playerPopIn {
  from { transform: scale(.92); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

/* ============================================================
   ШАПКА (HERO)
   ============================================================ */
.player-hero {
  position: relative;
  padding: 24px 24px 20px;
  background:
    radial-gradient(circle at 20% 0%, rgba(181, 114, 44, .35), transparent 60%),
    linear-gradient(135deg, #2c1810 0%, #1a0f0a 100%);
  color: #f4e8cf;
  overflow: hidden;
  flex-shrink: 0;
}

.player-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(244, 232, 207, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 232, 207, .05) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(circle at 50% 50%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 30%, transparent 80%);
  pointer-events: none;
}

.player-hero-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 1;
}

/* ============================================================
   АВАТАР
   ============================================================ */
.player-avatar {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-accent, #b5722c), var(--c-accent-deep, #8a521c));
  color: #fff;
  font-family: var(--f-sans, sans-serif);
  font-size: 28px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid rgba(244, 232, 207, .15);
  flex-shrink: 0;
  overflow: hidden;
}

.player-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.player-avatar.guest {
  background: rgba(244, 232, 207, .08);
  border-color: rgba(244, 232, 207, .15);
  color: rgba(244, 232, 207, .5);
}

/* ===== лента Premium / Club на аватаре ===== */
.player-avatar .plan-ribbon {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 14px;
  overflow: hidden;
  pointer-events: none;
  z-index: 3;
}

.player-avatar .plan-ribbon span {
  display: block;
  width: 100%;
  height: 100%;
  font-family: var(--f-sans, sans-serif);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  line-height: 14px;
  text-align: center;
  color: #fff;
  background: linear-gradient(90deg, #d4a44a, #b5722c);
}

.player-avatar .plan-ribbon.club span {
  background: linear-gradient(90deg, #8a521c, #b5722c);
}

/* ============================================================
   ИМЯ + ПОДЗАГОЛОВОК
   ============================================================ */
.player-hero-info {
  flex: 1;
  min-width: 0;
}

.player-hero-name {
  font-family: var(--f-serif, 'Cormorant Garamond', serif);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -.01em;
  color: #f4e8cf;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-hero-sub {
  margin-top: 4px;
  font-size: 12px;
  color: rgba(244, 232, 207, .55);
  letter-spacing: .5px;
}

/* ============================================================
   БЕЙДЖ (Гость / Игрок)
   ============================================================ */
.player-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-top: 8px;
  border: 1px solid transparent;
}

/* Гость (серый) */
.player-hero-badge.guest {
  background: rgba(44, 24, 16, 0.06);
  color: #7a6b63;
  border-color: rgba(44, 24, 16, 0.1);
}

/* Free (Зеленый) */
.player-hero-badge.free {
  background: rgba(34, 197, 94, 0.1);
  color: #15803d;
  border-color: rgba(34, 197, 94, 0.2);
}
.player-hero-badge.free i {
  color: #16a34a;
}

/* Premium (Золотой) */
.player-hero-badge.premium {
  background: linear-gradient(135deg, #f5d79f 0%, #d4a44a 100%);
  color: #4a2a1a;
  border-color: #d4a44a;
  box-shadow: 0 2px 8px rgba(212, 164, 74, 0.3);
}
.player-hero-badge.premium i {
  color: #8a521c;
}

/* Спонсор (Фиолетовый/Бордовый "на богатом") */
.player-hero-badge.sponsor {
  background: linear-gradient(135deg, #6b21a8 0%, #4c1d95 100%);
  color: #e9d5ff;
  border-color: #7e22ce;
  box-shadow: 0 2px 8px rgba(107, 33, 168, 0.3);
}
.player-hero-badge.sponsor i {
  color: #d8b4fe;
}

/* ============================================================
   КНОПКА ЗАКРЫТИЯ
   ============================================================ */
.player-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(244, 232, 207, .15);
  background: rgba(244, 232, 207, .05);
  color: rgba(244, 232, 207, .6);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  z-index: 5;
  transition: background .15s ease, color .15s ease;
}

.player-close:hover {
  background: rgba(244, 232, 207, .12);
  color: #f4e8cf;
}

/* ============================================================
   ТЕЛО
   ============================================================ */
.player-body {
  padding: 20px 24px 24px;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}

/* ============================================================
   LOADING
   ============================================================ */
.player-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 0;
}

.player-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(44, 24, 16, .1);
  border-top-color: var(--c-accent, #b5722c);
  border-radius: 50%;
  animation: playerSpin .9s linear infinite;
}

@keyframes playerSpin {
  to { transform: rotate(360deg); }
}

/* ============================================================
   ГОСТЬ — заглушка
   ============================================================ */
.player-guest-message {
  text-align: center;
  padding: 20px 8px 8px;
}

.player-guest-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(44, 24, 16, .06);
  color: var(--c-ink-muted, #9a8a7a);
  font-size: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.player-guest-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--c-ink, #2c1810);
  margin-bottom: 8px;
}

.player-guest-text {
  font-size: 14px;
  line-height: 1.55;
  color: var(--c-ink-soft, #5a4536);
  max-width: 320px;
  margin: 0 auto;
}

.player-guest-hint {
  margin-top: 20px;
  padding: 12px 16px;
  border-radius: var(--r-sm, 8px);
  background: rgba(181, 114, 44, .08);
  border: 1px solid rgba(181, 114, 44, .2);
  font-size: 12.5px;
  color: var(--c-ink-soft, #5a4536);
  line-height: 1.5;
  text-align: left;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.player-guest-hint i {
  color: var(--c-accent, #b5722c);
  font-size: 14px;
  margin-top: 2px;
  flex-shrink: 0;
}

/* ============================================================
   ПРИВАТНЫЙ / ОШИБКА — заглушка
   ============================================================ */
.player-private-message {
  text-align: center;
  padding: 20px 8px 8px;
}

.player-private-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(44, 24, 16, .06);
  color: var(--c-ink-muted, #9a8a7a);
  font-size: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.player-private-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--c-ink, #2c1810);
  margin-bottom: 8px;
}

.player-private-text {
  font-size: 14px;
  line-height: 1.55;
  color: var(--c-ink-soft, #5a4536);
  max-width: 320px;
  margin: 0 auto;
}

/* ============================================================
   РЕЙТИНГ
   ============================================================ */
.player-rating-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-radius: var(--r-sm, 8px);
  background: linear-gradient(135deg, rgba(181, 114, 44, .1), rgba(181, 114, 44, .04));
  border: 1px solid rgba(181, 114, 44, .2);
  margin-bottom: 20px;
}

.player-rating-label {
  font-size: 11px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--c-ink-muted, #9a8a7a);
  font-weight: 600;
}

.player-rating-value {
  font-family: var(--f-mono, monospace);
  font-size: 26px;
  font-weight: 700;
  color: var(--c-accent-deep, #8a521c);
  line-height: 1;
  margin-top: 4px;
}

.player-rating-tc {
  font-family: var(--f-mono, monospace);
  font-size: 11px;
  color: var(--c-ink-muted, #9a8a7a);
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(44, 24, 16, .06);
}

/* ============================================================
   СТАТИСТИКА
   ============================================================ */
.player-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 20px;
}

.player-stat {
  background: rgba(44, 24, 16, .04);
  border: 1px solid var(--c-line, rgba(44, 24, 16, .12));
  border-radius: var(--r-sm, 8px);
  padding: 12px 10px;
  text-align: center;
  transition: background .15s ease;
}

.player-stat:hover {
  background: rgba(44, 24, 16, .06);
}

.player-stat-value {
  font-family: var(--f-mono, monospace);
  font-size: 20px;
  font-weight: 700;
  color: var(--c-ink, #2c1810);
  line-height: 1;
}

.player-stat-value.win  { color: var(--c-success, #4a7c4a); }
.player-stat-value.lose { color: var(--c-danger, #b53d3d); }

.player-stat-label {
  margin-top: 6px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--c-ink-muted, #9a8a7a);
}

/* ============================================================
   СЕКЦИИ
   ============================================================ */
.player-section {
  margin-bottom: 18px;
}
.player-section:last-child {
  margin-bottom: 0;
}

.player-section-title {
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--c-ink-muted, #9a8a7a);
  font-weight: 600;
  margin-bottom: 10px;
}

/* ============================================================
   ПОСЛЕДНИЕ ПАРТИИ
   ============================================================ */
.player-recent {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.player-recent-row {
  display: grid;
  grid-template-columns: 1fr auto auto 32px;   /* ← +32px для иконки */
  gap: 10px;
  align-items: center;
  padding: 8px 10px 8px 12px;
  border-radius: var(--r-sm, 8px);
  background: rgba(44, 24, 16, .03);
  font-size: 13px;
  cursor: pointer;
  transition: background .15s ease, transform .15s ease;
}

.player-recent-row:hover {
  background: rgba(181, 114, 44, .08);
  transform: translateX(2px);
}

.player-recent-open {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(44, 24, 16, .06);
  color: var(--c-ink-soft, #5a4536);
  font-size: 12px;
  transition: background .15s ease, color .15s ease, transform .15s ease;
  pointer-events: none;   /* клик идёт по всей строке */
}

.player-recent-row:hover .player-recent-open {
  background: var(--c-accent, #b5722c);
  color: #fff;
  transform: scale(1.05);
}

/* мобильный — иконка чуть меньше */
@media (max-width: 480px) {
  .player-recent-row {
    grid-template-columns: 1fr auto 24px;
  }
  .player-recent-date {
    display: none;   /* на телефоне дата не влезает — прячем */
  }
  .player-recent-open {
    width: 24px;
    height: 24px;
    font-size: 11px;
  }
}
.player-recent-opp {
  color: var(--c-ink, #2c1810);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-recent-date {
  font-family: var(--f-mono, monospace);
  font-size: 11px;
  color: var(--c-ink-muted, #9a8a7a);
  white-space: nowrap;
}

.player-recent-result {
  font-family: var(--f-sans, sans-serif);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 100px;
  white-space: nowrap;
}

.player-recent-result.win  { background: rgba(74, 124, 74, .15);  color: #3d6b3d; }
.player-recent-result.lose { background: rgba(181, 61, 61, .15);  color: #b53d3d; }
.player-recent-result.draw { background: rgba(181, 114, 44, .15); color: #8a521c; }

/* пустое состояние */
.player-recent-empty {
  padding: 28px 16px;
  text-align: center;
  border-radius: var(--r-sm, 8px);
  background: rgba(44, 24, 16, .03);
  border: 1px dashed var(--c-line-strong, rgba(44, 24, 16, .28));
  color: var(--c-ink-muted, #9a8a7a);
  font-size: 13px;
  line-height: 1.5;
}

.player-recent-empty i {
  display: block;
  font-size: 24px;
  margin-bottom: 8px;
  opacity: .4;
}

/* ============================================================
   КНОПКИ ВНИЗУ
   ============================================================ */
.player-actions {
  display: flex;
  gap: 8px;
  padding: 16px 24px 20px;
  border-top: 1px solid var(--c-line, rgba(44, 24, 16, .12));
  background: rgba(44, 24, 16, .02);
  flex-shrink: 0;
}

.player-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: var(--r-sm, 8px);
  border: 1px solid var(--c-line-strong, rgba(44, 24, 16, .28));
  background: transparent;
  color: var(--c-ink, #2c1810);
  font-family: var(--f-sans, sans-serif);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
  text-decoration: none;
}

.player-btn:hover {
  background: rgba(44, 24, 16, .05);
  border-color: var(--c-ink, #2c1810);
}

.player-btn.primary {
  background: var(--c-ink, #2c1810);
  color: var(--c-paper, #f5e6cf);
  border-color: var(--c-ink, #2c1810);
}

.player-btn.primary:hover {
  background: var(--c-accent-deep, #8a521c);
  border-color: var(--c-accent-deep, #8a521c);
}

/* ============================================================
   СКРОЛЛБАР ВНУТРИ МОДАЛКИ
   ============================================================ */
.player-body::-webkit-scrollbar {
  width: 6px;
}
.player-body::-webkit-scrollbar-track {
  background: transparent;
}
.player-body::-webkit-scrollbar-thumb {
  background: rgba(44, 24, 16, .15);
  border-radius: 3px;
}
.player-body::-webkit-scrollbar-thumb:hover {
  background: rgba(44, 24, 16, .25);
}

/* ============================================================
   МОБИЛЬНЫЙ
   ============================================================ */
@media (max-width: 480px) {
  .player-overlay {
    padding: 12px;
  }

  .player-modal {
    border-radius: 16px;
    max-height: 95vh;
  }

  .player-hero {
    padding: 20px 18px 16px;
  }

  .player-hero-inner {
    gap: 12px;
  }

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

  .player-avatar {
    width: 60px;
    height: 60px;
    font-size: 24px;
  }

  .player-avatar .plan-ribbon {
    height: 12px;
  }

  .player-avatar .plan-ribbon span {
    font-size: 6px;
    line-height: 12px;
    letter-spacing: 1px;
  }

  .player-close {
    top: 10px;
    right: 10px;
    width: 28px;
    height: 28px;
    font-size: 12px;
  }

  .player-body {
    padding: 16px 18px 20px;
  }

  .player-actions {
    padding: 12px 18px 16px;
  }

  .player-rating-value {
    font-size: 22px;
  }

  .player-stat-value {
    font-size: 17px;
  }

  .player-recent-row {
    grid-template-columns: 1fr auto 12px;
    gap: 8px;
    font-size: 12px;
    padding: 7px 10px;
  }

  .player-recent-date {
    display: none;   /* на мобильном не показываем дату, экономия места */
  }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .player-overlay,
  .player-modal,
  .player-spinner {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================================
   PLAYER RATING ROWS — разбивка по режимам
   ============================================================ */

.player-ratings {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 4px;
  border-radius: var(--r-sm);
  background: rgba(44, 24, 16, .04);
  border: 1px solid rgba(44, 24, 16, .08);
  margin-bottom: 16px;
}

.player-rating-row {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto auto auto;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 6px;
  transition: background .15s ease;
}

.player-rating-row:hover {
  background: rgba(44, 24, 16, .04);
}

.player-rating-row > i {
  font-size: 13px;
  color: var(--c-accent);
  opacity: .75;
  text-align: center;
}

.player-rating-name {
  font-size: 13px;
  color: var(--c-ink);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-rating-time {
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--c-ink-muted);
  padding: 2px 6px;
  background: rgba(44, 24, 16, .05);
  border-radius: 4px;
  white-space: nowrap;
}

.player-rating-wdl {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1px;
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  min-width: 72px;
}

.player-rating-wdl .w   { color: var(--c-success); }
.player-rating-wdl .d   { color: var(--c-ink-muted); }
.player-rating-wdl .l   { color: var(--c-danger); }
.player-rating-wdl .sep {
  color: rgba(44, 24, 16, .2);
  font-weight: 400;
  margin: 0 2px;
}

.player-rating-value {
  font-family: var(--f-mono);
  font-size: 15px;
  font-weight: 700;
  color: var(--c-ink);
  text-align: right;
  min-width: 52px;
}

/* сводка «партий · winrate» */
.player-summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 0;
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--c-ink-soft);
  border-top: 1px dashed var(--c-line);
  border-bottom: 1px dashed var(--c-line);
}

.player-summary strong {
  font-family: var(--f-mono);
  color: var(--c-ink);
}

.player-summary-sep {
  color: var(--c-ink-muted);
}

/* мобильный — скрыть время, сжать */
@media (max-width: 480px) {
  .player-rating-row {
    grid-template-columns: 18px minmax(0, 1fr) auto auto;
    gap: 8px;
    padding: 8px 10px;
  }
  .player-rating-time { display: none; }
  .player-rating-wdl   { min-width: 60px; font-size: 11px; }
  .player-rating-value { min-width: 44px; font-size: 14px; }
}

.hz-premium-badge:hover {
    color: #8a5418;   /* темнее на hover */
}

p.pricing-price{
  font-family: var( --f-sans);
  font-size: 55px;
}


/* =========================================================
   LEADERS — адаптивная таблица
   ========================================================= */
.leaders {
  padding: var(--gap-2xl) 32px;
  max-width: var(--maxw);
  margin: 0 auto;
}

.leaders-table {
  width: 100%;
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--sh-soft);
}

/* --- Заголовок и строки (Десктоп) --- */
.leaders-head,
.leaders-row {
  display: grid;
  /* 5 колонок: #, Игрок, Очки, Игры, Winrate */
  grid-template-columns: 80px 1fr 100px 100px 100px;
  gap: 16px;
  padding: 16px 24px;
  align-items: center;
}

.leaders-head {
  background: var(--c-ink);
  color: var(--c-paper);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 600;
}

.leaders-row {
  border-bottom: 1px solid var(--c-line);
  font-size: 15px;
  transition: background var(--t-fast);
}
.leaders-row:last-child {
  border-bottom: none;
}
.leaders-row:hover {
  background: rgba(212, 165, 116, 0.08);
}

/* Ранг и иконки */
.leaders-rank {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--f-mono);
  font-size: 18px;
  color: var(--c-ink-soft);
}
.leaders-rank i {
  font-size: 16px;
}

/* Игрок */
.leaders-name {
  font-weight: 500;
  color: var(--c-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Очки и статистика */
.leaders-grade {
  font-family: var(--f-mono);
  font-weight: 700;
  color: var(--c-accent-deep);
  text-align: center;
}
.leaders-stat {
  font-family: var(--f-mono);
  font-size: 14px;
  text-align: center;
  color: var(--c-ink-soft);
}

/* --- Цвета для топ-3 (Десктоп) --- */
.leaders-row:nth-child(1) { background: rgba(212, 164, 74, 0.08); }
.leaders-row:nth-child(1) .leaders-rank,
.leaders-row:nth-child(1) .leaders-name { color: #d4a44a; font-weight: 700; }
.leaders-row:nth-child(1) .leaders-grade { color: #d4a44a; }

.leaders-row:nth-child(2) .leaders-rank,
.leaders-row:nth-child(2) .leaders-name { color: #a0a0a0; font-weight: 600; }
.leaders-row:nth-child(2) .leaders-grade { color: #a0a0a0; }

.leaders-row:nth-child(3) .leaders-rank,
.leaders-row:nth-child(3) .leaders-name { color: #b87333; font-weight: 600; }
.leaders-row:nth-child(3) .leaders-grade { color: #b87333; }

/* =========================================================
   МОБИЛЬНАЯ ВЕРСИЯ (карточки)
   ========================================================= */
@media (max-width: 768px) {
  .leaders {
    padding: 40px 16px;
  }

  /* Скрываем шапку на мобилке */
  .leaders-head {
    display: none;
  }

  .leaders-table {
    background: transparent;
    border: none;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  /* Превращаем строку в карточку */
  .leaders-row {
    display: flex;
    flex-direction: column;
    padding: 16px;
    background: var(--c-paper);
    border: 1px solid var(--c-line);
    border-radius: var(--r-md);
    gap: 8px;
    position: relative;
  }

  /* Убираем ховер на мобилке */
  .leaders-row:hover {
    background: var(--c-paper);
  }

  /* Верхняя строка карточки (Ранг + Имя) */
  .leaders-rank {
    justify-content: flex-start;
    font-size: 16px;
    margin-bottom: 4px;
  }
  .leaders-rank i {
    font-size: 18px;
  }
  
  .leaders-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--c-ink);
    margin-bottom: 8px;
  }

  /* Очки крупным шрифтом справа */
  .leaders-grade {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 20px;
    font-weight: 800;
    text-align: right;
  }

  /* Статистика внизу карточки (Игры и Winrate) */
  .leaders-stat {
    display: inline-flex;
    align-items: center;
    font-size: 13px;
    color: var(--c-ink-muted);
    background: rgba(44, 24, 16, 0.05);
    padding: 4px 8px;
    border-radius: 6px;
    width: max-content;
    margin-right: 8px;
  }
  
  /* Чтобы статистика стояла в ряд */
  .leaders-row .leaders-stat:nth-child(4),
  .leaders-row .leaders-stat:nth-child(5) {
    margin-top: 4px;
  }

  /* Убираем свечение фона для топ-3, делаем акцент на рамке */
  .leaders-row:nth-child(1) { background: #fffaf0; border-color: #d4a44a; }
  .leaders-row:nth-child(2) { background: var(--c-paper); border-color: #a0a0a0; }
  .leaders-row:nth-child(3) { background: var(--c-paper); border-color: #b87333; }
}


.participants-head,
.participants-row {
  display: grid;
  grid-template-columns: 60px 1fr 80px 80px 80px 80px 100px;
  gap: 16px;
  align-items: center;
  padding: 14px 20px;
}


.participants-head span {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: center;
}
.participants-head span:nth-child(2) {
  text-align: left;
}

/* --- СТИЛИ ДЛЯ ЦИФР --- */
.participants-row {
  font-size: 14px;
  border-bottom: 1px solid var(--c-line);
  transition: background 0.2s;
}
.participants-row:hover {
  background: rgba(212, 164, 116, 0.08);
}

/* Игрок */
.p-name {
  font-weight: 500;
  color: var(--c-ink);
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.p-stat {
  font-family: var(--f-mono, monospace);
  font-size: 13px; /* Уменьшили размер */
  text-align: center;
  color: var(--c-ink-soft);
}

/* Очки */
.p-points {
  font-family: var(--f-mono, monospace);
  font-size: 14px; /* Уменьшили размер */
  font-weight: 700;
  text-align: center;
  color: var(--c-accent-deep);
}

/* Ранг (цифра + иконка) */
.p-num {
  font-family: var(--f-mono, monospace);
  font-size: 14px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.leaders-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.leader-tab {
  padding: 8px 20px;
  font-family: var(--f-sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--c-ink-soft);
  background: rgba(44, 24, 16, 0.05);
  border: 1px solid transparent;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.leader-tab:hover {
  background: rgba(44, 24, 16, 0.1);
}

.leader-tab.active {
  background: var(--c-ink);
  color: var(--c-paper);
  box-shadow: var(--sh-soft);
}

.motiv-step.highlight .motiv-crown {
    filter: drop-shadow(0 2px 4px rgba(212, 164, 74, 0.4));
}
/* --- ПЛАШКА МОТИВАЦИИ --- */
.leaders-motivation {
  display: flex;
  align-items: center;
  justify-content: center; 
  flex-wrap: nowrap;       /* На десктопе строго в строку */
  gap: 12px;
  margin: 24px auto 16px;
  padding: 12px 24px;
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: 100px;
  width: max-content;      
  max-width: 100%;         
}

.motiv-step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--c-ink-soft);
  font-weight: 500;
  white-space: nowrap; 
}

.motiv-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: rgba(44, 24, 16, 0.06);
  border-radius: 50%;
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--c-ink);
}

.motiv-arrow {
  font-size: 10px;
  color: var(--c-line-strong);
}

.motiv-step.highlight {
  color: var(--c-accent-deep);
  font-weight: 700;
}

.motiv-crown {
  color: #d4a44a;
  font-size: 15px;
  filter: drop-shadow(0 1px 2px rgba(212, 164, 74, 0.4));
}

/* --- МОБИЛЬНАЯ ВЕРСИЯ (СВЕРХУ ВНИЗ) --- */
@media (max-width: 768px) {
  .leaders-motivation {
    flex-direction: column;
    align-items: flex-start; /* Выравниваем по левому краю */
    border-radius: var(--r-md);
    width: 100%;
    max-width: 100%;
    padding: 16px 20px;
    gap: 12px;
  }
  
  .motiv-arrow {
    display: none; /* На мобилке стрелки не нужны, и так понятно */
  }
  
  .motiv-step {
    font-size: 14px; /* Чуть крупнее для мобилки */
  }
  
  .motiv-step.highlight {
    margin-top: 8px;
    padding: 8px 12px;
    background: rgba(181, 114, 44, 0.1);
    border: 1px solid rgba(181, 114, 44, 0.2);
    border-radius: 8px;
    width: 100%;
  }
}

/* =========================================================
   ВСПЛЫВАЮЩИЙ БАННЕР ГРАНД ТУРА
   ========================================================= */
.gp-promo-popup {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  background: var(--c-paper, #fff);
  padding: 8px;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(181, 114, 44, 0.2);
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}

/* Класс для показа баннера */
.gp-promo-popup.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.gp-promo-popup[hidden] {
  display: none !important;
}

/* Кнопка закрытия */
.gp-promo-close {
  position: absolute;
  top: -12px;
  right: -12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #2c1810;
  color: #fff;
  border: 2px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, background 0.2s ease;
  z-index: 2;
}

.gp-promo-close:hover {
  transform: scale(1.1);
  background: #b5722c;
}

/* Сама картинка */
.gp-promo-link {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  line-height: 0;
}

.gp-promo-link img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Настройки для ПК */
@media (min-width: 769px) {
  .gp-promo-link img {
    width: 420px; /* Ширина горизонтального баннера на ПК */
  }
}

/* Настройки для мобильных телефонов */
@media (max-width: 768px) {
  .gp-promo-popup {
    bottom: 16px;
    left: 16px;
    right: 16px;
    padding: 6px;
  }
  
  .gp-promo-link img {
    width: 100%; /* На мобилке баннер растягивается на всю ширину */
    border-radius: 8px;
  }
  
  .gp-promo-close {
    top: -10px;
    right: -10px;
    width: 28px;
    height: 28px;
    font-size: 12px;
  }
}