﻿/* =========================================================
   Cuatro — дизайн-система «Голубое стекло»
   Светлый серо-голубой фон с мягкой голубой дымкой, полупрозрачные белые карточки,
   голубые градиенты на главных действиях. Шрифты: Inter Tight — заголовки и цифры,
   Inter — текст интерфейса, Montserrat — только слово в логотипе.
   Шкала текста: 12 / 13 / 15 / 17 / 20 / 32. Отступы кратны 4.
   Радиусы: 26 — карточки, 18 — вложенные блоки, 999 — кнопки и чипы.
   ========================================================= */
:root {
  /* Голубой — главный акцент */
  --accent: #3D7EE8;
  --accent-2: #74AAF4;
  --accent-deep: #2A62D0;
  --accent-text: #245BC4;
  --accent-soft: #E7F0FE;
  --grad: linear-gradient(150deg, #7DB2F6 0%, #4486EC 48%, #2C64D2 100%);
  --grad-soft: linear-gradient(160deg, #F3F8FF 0%, #E3EEFD 100%);
  --glow: 0 10px 24px -10px rgba(44, 100, 210, .55);

  /* Тёмный — текст и тёмные элементы */
  --navy: #142039;
  --navy-2: #24324F;
  --navy-soft: #B9C6DE;
  --blue: var(--accent);
  /* Старые имена акцента — теперь голубые (их используют модули) */
  --lime: var(--accent);
  --lime-deep: var(--accent-deep);
  --lime-text: var(--accent-text);
  --orange: #F2992E;
  --bg: #EEF1F6;
  --card: rgba(255, 255, 255, .86);
  --text: #121A2C;
  --muted: #6B7489;
  --faint: #A3ABBD;
  --line: rgba(20, 32, 57, .07);
  --danger: #E5484D;

  --radius: 26px;
  --radius-sm: 18px;
  --ring: 0 0 0 1px rgba(20, 32, 57, .06);
  --shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 0 0 1px rgba(255, 255, 255, .6), 0 1px 2px rgba(20, 32, 57, .04), 0 14px 34px -16px rgba(34, 64, 120, .22);
  --shadow-lg: 0 0 0 1px rgba(255, 255, 255, .7), 0 24px 56px -20px rgba(34, 64, 120, .38);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Inter Tight", Inter, -apple-system, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.4;
  background: #DCE2EB;
  color: var(--text);
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent;
}
body.locked { overflow: hidden; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
button:focus-visible, select:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid rgba(61, 126, 232, .45); outline-offset: 2px; }
p { line-height: 1.5; }
h1, h2, h3 { font-family: var(--font-display); letter-spacing: -.03em; }
b, strong { font-weight: 650; }

/* ---------- Каркас ---------- */
.app {
  position: relative; max-width: 440px; margin: 0 auto; min-height: 100vh;
  background:
    radial-gradient(70% 34% at 100% 0%, rgba(116, 170, 244, .42) 0%, rgba(116, 170, 244, 0) 70%),
    radial-gradient(60% 30% at 0% 38%, rgba(116, 170, 244, .14) 0%, rgba(116, 170, 244, 0) 70%),
    linear-gradient(180deg, #F2F4F8 0%, #EBEEF3 100%);
  display: flex; flex-direction: column; box-shadow: 0 0 80px rgba(34, 64, 120, .16);
}
.topbar {
  position: sticky; top: 0; z-index: 10; color: var(--text);
  background: rgba(242, 244, 248, .66);
  backdrop-filter: saturate(180%) blur(22px); -webkit-backdrop-filter: saturate(180%) blur(22px);
  display: flex; align-items: center; justify-content: space-between; padding: 12px 16px;
  padding-top: calc(12px + env(safe-area-inset-top));
  box-shadow: 0 1px 0 rgba(255, 255, 255, .7);
}
/* Логотип: знак «4 с мячом» и слово cuatro */
.brand {
  display: flex; align-items: center; gap: 6px; font-weight: 800; font-size: 22px; letter-spacing: -.02em;
  font-family: Montserrat, var(--font); color: var(--navy);
}
.logo-mark { width: 36px; height: 36px; flex: none; filter: drop-shadow(0 6px 10px rgba(61, 126, 232, .35)); }
.me-chip {
  display: flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, .8);
  padding: 3px 12px 3px 3px; border-radius: 999px; color: var(--text); font-weight: 700; font-family: var(--font-display);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .9), 0 6px 16px -8px rgba(34, 64, 120, .3); transition: background .2s;
}
.me-chip:hover { background: #fff; }
main { flex: 1; padding-bottom: 116px; }
.page { padding: 18px 16px; }
h1 { font-size: 32px; font-weight: 700; line-height: 1.08; margin: 4px 0 10px; letter-spacing: -.04em; }
.lead { color: var(--muted); margin: 0 0 18px; font-size: 15px; line-height: 1.5; }
.muted { color: var(--muted); font-size: 14px; }
.hint { font-size: 13px; color: var(--muted); margin: 8px 0 0; line-height: 1.45; }
.center { text-align: center; }
.grow { flex: 1; min-width: 0; }
.mt { margin-top: 12px; }
.mt-s { margin-top: 8px; }

/* Нижнее меню — плавающая стеклянная панель, активная вкладка — голубой круг */
.tabbar {
  position: fixed; left: 50%; transform: translateX(-50%); z-index: 20;
  bottom: calc(10px + env(safe-area-inset-bottom)); width: calc(100% - 20px); max-width: 420px;
  background: rgba(255, 255, 255, .72); backdrop-filter: saturate(180%) blur(22px); -webkit-backdrop-filter: saturate(180%) blur(22px);
  border-radius: 30px; box-shadow: var(--shadow-lg);
  display: grid; grid-template-columns: repeat(5, 1fr); padding: 7px 6px;
}
.tab { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 2px 0 2px; font-size: 11px; font-weight: 500; color: var(--muted); min-width: 0; transition: color .2s; }
.tab .ico {
  position: relative; display: flex; align-items: center; justify-content: center;
  width: 42px; height: 34px; border-radius: 999px; transition: background .25s var(--ease), transform .25s var(--ease), box-shadow .25s;
}
.tab svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tab:active .ico { transform: scale(.92); }
.tab.on { color: var(--accent-text); font-weight: 650; }
.tab.on .ico { width: 52px; background: var(--grad); color: #fff; box-shadow: var(--glow), inset 0 1px 0 rgba(255, 255, 255, .35); }
.badge {
  position: absolute; top: -4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--danger); color: #fff; font-size: 10px; font-style: normal; font-weight: 700;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 2px #fff;
}

/* ---------- Базовые элементы ---------- */
.card {
  display: block; width: 100%; text-align: left; background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 18px; margin-bottom: 12px;
}
button.card { transition: transform .15s var(--ease), box-shadow .2s; }
button.card:hover { box-shadow: var(--shadow), 0 18px 36px -18px rgba(34, 64, 120, .3); }
button.card:active { transform: scale(.985); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 12px 20px;
  border-radius: 999px; font-weight: 650; font-size: 15px; letter-spacing: -.01em; text-align: center;
  transition: transform .12s var(--ease), background .2s, box-shadow .2s, filter .2s;
}
.btn:active { transform: scale(.97); }
/* Главная кнопка — голубой градиент со свечением */
.btn.primary {
  background: var(--grad); color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), var(--glow);
}
.btn.primary:hover { filter: brightness(1.06) saturate(1.05); }
/* Второстепенная акцентная — мягкая голубая */
.btn.lime { background: var(--accent-soft); color: var(--accent-text); box-shadow: inset 0 0 0 1px rgba(61, 126, 232, .14); }
.btn.lime:hover { background: #DCE9FD; }
.btn.ghost { background: rgba(255, 255, 255, .78); color: var(--text); box-shadow: 0 0 0 1px rgba(20, 32, 57, .06), 0 4px 12px -8px rgba(34, 64, 120, .25); }
.card .btn.ghost, .sheet .btn.ghost { background: #F1F4F9; box-shadow: var(--ring); }
.btn.ghost:hover { background: #fff; }
.btn.sm { min-height: 36px; padding: 7px 14px; font-size: 13px; }
.btn.lg { min-height: 56px; padding: 16px 22px; font-size: 16px; }
.btn.block { display: flex; width: 100%; }
.btn.link { min-height: 0; color: var(--muted); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; margin: 8px 0; box-shadow: none; background: none; }
.link-btn { font-weight: 650; color: var(--accent-text); text-transform: none; letter-spacing: 0; font-size: 14px; }
.link-btn:hover { text-decoration: underline; text-underline-offset: 3px; }

.ava {
  --h: 200; display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 40px; height: 40px; border-radius: 50%; border: 2px solid #fff;
  background: linear-gradient(145deg, hsl(var(--h) 70% 93%), hsl(var(--h) 55% 84%)); color: hsl(var(--h) 50% 28%);
  font-weight: 650; font-size: 14px; letter-spacing: -.02em;
}
.ava.xs { width: 28px; height: 28px; font-size: 10px; }
.ava.sm { width: 30px; height: 30px; font-size: 11px; }
.ava.lg { width: 64px; height: 64px; font-size: 22px; }
.ava.me { background: var(--grad); color: #fff; }
.ava.dim { opacity: .35; }
.ava-row { display: flex; align-items: center; }
.ava-row .ava + .ava { margin-left: -8px; }
.more { font-size: 12px; color: var(--muted); margin-left: 6px; font-weight: 600; }

.tag { font-size: 11px; background: var(--accent-soft); color: var(--accent-text); padding: 4px 9px; border-radius: 99px; font-weight: 650; white-space: nowrap; letter-spacing: .01em; }
.tag.blue { background: rgba(20, 32, 57, .06); color: var(--navy-2); }
.accent { color: var(--accent-text); }
.ok-text { color: var(--accent-text); font-weight: 650; }

/* Заголовок секции — крупно; второй элемент — счётчик или ссылка */
.section-title {
  display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin: 28px 2px 12px;
  font-family: var(--font-display); font-size: 21px; font-weight: 700; letter-spacing: -.03em; color: var(--text);
}
.section-title > span + span:not(.legend) { font-family: var(--font); font-size: 14px; font-weight: 600; color: var(--faint); letter-spacing: 0; }
/* Подписи полей и заголовки внутри карточек */
.label { font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 8px; }
.card > .label:first-child, .card > .label.mt, .sheet .label.mt { font-family: var(--font-display); font-size: 17px; font-weight: 700; color: var(--text); letter-spacing: -.02em; margin-bottom: 10px; }
.card > .label.mt { margin-top: 18px; }
.empty { text-align: center; padding: 28px 18px; color: var(--muted); }
.empty p { margin: 0 0 14px; }

.list-item { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.list-item:last-child { border-bottom: 0; padding-bottom: 0; }
.list-item .muted { font-size: 13px; margin-top: 2px; }
.btns { display: flex; gap: 6px; flex: none; }

/* Даты, чипы, сегменты */
.date-strip { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px; margin: 0 -2px; scrollbar-width: none; }
.date-strip::-webkit-scrollbar { display: none; }
.day {
  flex: none; width: 54px; padding: 9px 0; border-radius: 20px; background: rgba(255, 255, 255, .8); box-shadow: var(--shadow);
  display: flex; flex-direction: column; align-items: center; gap: 1px; transition: background .2s, transform .12s;
}
.day:active { transform: scale(.95); }
.day span { font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.day b { font-family: var(--font-display); font-size: 19px; font-weight: 700; font-variant-numeric: tabular-nums; }
.day.on { background: var(--grad); color: #fff; box-shadow: var(--glow), inset 0 1px 0 rgba(255, 255, 255, .35); }
.day.on span { color: rgba(255, 255, 255, .8); }
.form .day { background: #F1F4F9; box-shadow: var(--ring); }
.form .day.on { background: var(--grad); box-shadow: var(--glow); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding: 2px 2px 6px; margin: 0 -2px; }
.chips.scroll::-webkit-scrollbar { display: none; }
.filters { margin: 8px 0 14px; align-items: center; }
.chip {
  flex: none; padding: 10px 16px; border-radius: 999px; background: rgba(255, 255, 255, .8); font-size: 14px; font-weight: 600;
  box-shadow: var(--shadow); transition: background .2s, color .2s, transform .12s;
}
.chip:active { transform: scale(.96); }
.card .chip, .sheet .chip { background: #F1F4F9; box-shadow: var(--ring); }
.chip.on, .card .chip.on, .sheet .chip.on { background: var(--grad); color: #fff; box-shadow: var(--glow), inset 0 1px 0 rgba(255, 255, 255, .35); }
.divider { flex: none; width: 1px; height: 22px; background: #D3D9E5; }

.seg { display: flex; background: rgba(20, 32, 57, .055); border-radius: 999px; padding: 4px; gap: 4px; }
.seg button { flex: 1; padding: 10px 4px; border-radius: 999px; font-weight: 600; font-size: 14px; color: var(--muted); transition: background .2s, color .2s; }
.seg button.on { background: #fff; color: var(--text); box-shadow: 0 1px 2px rgba(20, 32, 57, .06), 0 6px 14px -6px rgba(34, 64, 120, .25); }
/* Тот же переключатель на радиокнопках — для форм */
.rated-seg { margin-bottom: 6px; }
.rated-seg label { flex: 1; cursor: pointer; }
.rated-seg input { position: absolute; opacity: 0; pointer-events: none; }
.rated-seg span { display: block; text-align: center; padding: 10px 4px; border-radius: 999px; font-weight: 700; font-size: 14px; color: var(--muted); transition: background .2s, color .2s; }
.rated-seg input:checked + span { background: #fff; color: var(--text); box-shadow: 0 1px 2px rgba(20, 32, 57, .06), 0 6px 14px -6px rgba(34, 64, 120, .25); }
.rated-seg input:focus-visible + span { outline: 3px solid rgba(44, 100, 210, 0.38); }
.tag.rated { background: var(--grad); color: #fff; box-shadow: 0 4px 10px -4px rgba(44, 100, 210, .6); }

/* Комментарий организатора в карточке игры */
.org-note { display: flex; align-items: flex-start; gap: 10px; background: #F1F4F9; border-radius: var(--radius-sm); padding: 10px 12px; margin: 2px 0 12px; font-size: 14px; text-align: left; width: 100%; }
.org-note .ava { flex: none; margin-top: 1px; }
.org-note-head { font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 2px; }
.org-note-text { line-height: 1.45; word-break: break-word; }
.org-note .link-btn { flex: none; font-size: 13px; }
.org-note.add { display: block; background: none; border: 1.5px dashed #CDD3DF; color: var(--muted); font-weight: 700; font-size: 13px; text-align: center; }
.org-note.add:hover { border-color: var(--accent); color: var(--accent-text); }

/* Формы */
.field { margin-bottom: 20px; }
.fl { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 14px; }
.fl select, .fl input, .fl textarea { display: block; margin-top: 6px; }
.field .fl { margin-bottom: 0; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
textarea { resize: vertical; line-height: 1.45; }
textarea::placeholder { color: var(--faint); font-weight: 400; }
textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(61, 126, 232, 0.18); }
select, input[type=text], input[type=number], input[type=tel], input[type=email], textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 16px; border: 1.5px solid rgba(20, 32, 57, .09);
  background-color: #fff; color: var(--text); font: inherit; font-size: 15px; font-weight: 500; outline: none;
  transition: border-color .2s, box-shadow .2s;
}
input::placeholder { color: var(--faint); font-weight: 400; }
select {
  appearance: none; -webkit-appearance: none; padding-right: 38px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2369728A' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 15px center;
}
select:hover, input[type=text]:hover { border-color: #D5DAE5; }
select:focus, input[type=text]:focus, input[type=number]:focus, input[type=tel]:focus, input[type=email]:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(61, 126, 232, 0.18); }
.check { display: flex; align-items: center; gap: 10px; font-weight: 600; margin: 4px 0 14px; font-size: 15px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--accent); flex: none; }

/* ---------- Четыре игрока: две пары и «vs» между ними ---------- */
.court {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: start;
  margin: 14px 0 10px; padding: 0;
}
.court .team { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.court .net {
  align-self: center; margin-top: -18px; padding: 0 4px;
  font-family: var(--font-display); font-size: 13px; font-weight: 700; color: var(--accent-2); letter-spacing: .02em;
}
.court .net::before { content: 'vs'; }
.slot {
  display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 2px 0 4px;
  border-radius: 14px; color: var(--text); min-width: 0; transition: background .2s;
}
button.slot.filled:hover { background: var(--bg); }
.pava { position: relative; display: inline-flex; margin-bottom: 4px; }
.pava .ava { width: 52px; height: 52px; font-size: 17px; border: 0; box-shadow: 0 0 0 1px var(--line); }
.slot.me .pava .ava { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--accent), var(--glow); }
.lvl-badge {
  position: absolute; top: -5px; right: -10px; min-width: 28px; height: 21px; padding: 0 6px;
  display: flex; align-items: center; justify-content: center; border-radius: 11px;
  background: var(--grad); color: #fff; font-family: var(--font-display); font-size: 11px; font-weight: 700; font-style: normal;
  font-variant-numeric: tabular-nums; box-shadow: 0 0 0 2px #fff, 0 4px 10px -4px rgba(44, 100, 210, .6);
}
.slot .plus {
  width: 52px; height: 52px; margin-bottom: 4px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 26px; font-weight: 300; color: var(--faint); border: 2px dashed #CDD3DF; transition: background .2s, border-color .2s, color .2s, box-shadow .2s;
}
.slot.empty:not([disabled]) .plus { color: var(--accent); border: 2px dashed rgba(61, 126, 232, .55); background: var(--accent-soft); }
.slot.empty:not([disabled]) .slot-name { color: var(--accent-text); font-weight: 700; }
.slot.empty:not([disabled]):hover .plus { background: var(--grad); color: #fff; border-color: transparent; box-shadow: var(--glow); }
.slot.empty[disabled] { cursor: default; }
.slot.empty[disabled] .slot-name { color: var(--faint); }
.slot-name { font-size: 12px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.slot-lvl { font-size: 11px; background: var(--accent-soft); color: var(--accent-text); border-radius: 999px; padding: 1px 8px; font-weight: 700; font-variant-numeric: tabular-nums; }
.slot-side { font-size: 11px; color: var(--muted); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }

/* ---------- Клубы ---------- */
.club-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.club-name { font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: -.025em; display: flex; align-items: center; gap: 8px; margin-bottom: 2px; }
.chev { font-size: 28px; color: #C3CAD8; line-height: 1; }
.club-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0 12px; }
.club-stats div { background: #F1F4F9; border-radius: var(--radius-sm); padding: 10px 12px; }
.club-stats b { display: block; font-family: var(--font-display); font-weight: 700; font-size: 23px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.club-stats span { font-size: 11px; color: var(--muted); }
/* Кнопка «назад» прилипает под шапкой и видна при прокрутке */
.back {
  position: sticky; top: 70px; z-index: 9; display: inline-flex; align-items: center; gap: 6px;
  margin-bottom: 12px; padding: 8px 16px 8px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, .82); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  color: var(--text); font-weight: 650; font-size: 15px; box-shadow: var(--shadow);
}
.back svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

.timeline { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.slot-row { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); min-height: 60px; }
.slot-row:last-child { border-bottom: 0; }
.slot-row.hot { background: linear-gradient(90deg, rgba(61, 126, 232, 0.12), rgba(61, 126, 232, 0) 75%); }
.slot-row.quiet .slot-time { color: var(--faint); }
.slot-time { font-family: var(--font-display); font-weight: 700; width: 48px; flex: none; font-variant-numeric: tabular-nums; }
.slot-body { flex: 1; min-width: 0; }
.slot-meta { font-size: 12px; color: var(--muted); margin-top: 3px; }
.legend { display: flex; align-items: center; gap: 6px; text-transform: none; letter-spacing: 0; font-weight: 600; font-size: 12px; color: var(--muted); }
.legend i { width: 12px; height: 12px; border-radius: 4px; background: rgba(61, 126, 232, 0.32); }

/* ---------- Игры ---------- */
.game-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.game-time { font-family: var(--font-display); font-size: 22px; font-weight: 700; letter-spacing: -.035em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.game-top > div:first-child { flex: 1; min-width: 0; }
.pills { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 4px; max-width: 46%; }
.lvl-pill { font-size: 12px; font-weight: 650; padding: 4px 10px; border-radius: 99px; background: rgba(20, 32, 57, .05); color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.lvl-pill.ok { background: var(--accent-soft); color: var(--accent-text); }
.note { font-size: 14px; margin: -2px 0 10px; color: var(--text); }
.game-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.game.mine, .tour-card.mine, .card.mine { box-shadow: 0 0 0 2px rgba(61, 126, 232, .55), var(--shadow), 0 18px 40px -22px rgba(44, 100, 210, .45); }
.fab {
  position: fixed; bottom: calc(98px + env(safe-area-inset-bottom)); right: max(16px, calc(50vw - 204px)); z-index: 15;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 16px 32px -12px rgba(44, 100, 210, .7); border-radius: 999px; padding: 14px 22px;
}
.btn.fab { background: var(--grad); color: #fff; }

/* ---------- Голубая карточка-герой (как «Complete Daily Tasks» в референсе) ---------- */
.hero {
  color: #fff; border-radius: 28px; padding: 22px 20px; margin-bottom: 14px; position: relative; overflow: hidden;
  background: var(--grad);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 22px 44px -22px rgba(44, 100, 210, .75);
}
/* Мягкий световой блик по диагонали */
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(80% 60% at 0% 0%, rgba(255, 255, 255, .32), transparent 60%),
    linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, .14) 55%, transparent 70%);
}
/* Стеклянный круг в углу */
.hero::after {
  content: ''; position: absolute; right: -36px; top: -46px; width: 132px; height: 132px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .55), rgba(255, 255, 255, .12) 60%, rgba(255, 255, 255, .04));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35);
}
.hero > * { position: relative; z-index: 1; }
.hero h1 { color: #fff; font-size: 30px; max-width: 80%; }
.hero p { color: rgba(255, 255, 255, .84); margin: 0; }
.hero-stats { display: flex; gap: 18px; margin-top: 14px; font-size: 13px; color: rgba(255, 255, 255, .84); }
.hero-stats b { color: #fff; font-family: var(--font-display); font-size: 20px; font-weight: 700; margin-right: 3px; font-variant-numeric: tabular-nums; }

.steps { list-style: none; padding: 0; margin: 0; counter-reset: s; }
.steps li { counter-increment: s; display: flex; gap: 12px; margin-bottom: 14px; font-size: 14px; line-height: 1.5; }
.steps li:last-child { margin-bottom: 0; }
.steps li::before {
  content: counter(s); flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--grad); color: #fff;
  box-shadow: 0 6px 14px -6px rgba(44, 100, 210, .6); font-family: var(--font-display); font-weight: 700; font-size: 13px; display: flex; align-items: center; justify-content: center;
}

.searching { text-align: center; padding: 26px 0 10px; }
.searching h2 { padding: 0; }
.bounce {
  width: 38px; height: 38px; border-radius: 50%; margin: 24px auto 22px;
  background: radial-gradient(circle at 35% 30%, #CFE2FC, var(--accent) 60%, var(--accent-deep) 100%);
  box-shadow: 0 10px 20px -8px rgba(44, 100, 210, 0.56); animation: bounce .55s infinite alternate cubic-bezier(.5, 0, .5, 1);
}
@keyframes bounce { from { transform: translateY(-26px); } to { transform: translateY(10px) scaleY(.92); } }

.pill-ok {
  display: inline-block; background: var(--accent-soft); color: var(--accent-text); font-weight: 700; font-size: 11px;
  padding: 5px 10px; border-radius: 99px; margin-bottom: 10px; text-transform: uppercase; letter-spacing: .06em;
}
.court-labels { display: grid; grid-template-columns: 1fr 22px 1fr; text-align: center; font-size: 12px; font-weight: 800; margin-top: 14px; }
.a { color: var(--blue); }
.b { color: var(--orange); }
.court.big { margin-top: 6px; }
.court.big .slot { padding: 10px 2px; }
.chances { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums; }
.chances .bar { flex: 1; height: 8px; border-radius: 99px; background: var(--orange); overflow: hidden; }
.chances .bar i { display: block; height: 100%; background: var(--blue); }
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0 16px; }
.metrics div { background: #F1F4F9; border-radius: var(--radius-sm); padding: 10px 6px; text-align: center; }
.metrics b { display: block; font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: -.03em; }
.metrics span { font-size: 11px; color: var(--muted); }
.stack { display: grid; gap: 8px; margin-top: 16px; }

/* ---------- Турниры ---------- */
.tour-meta { font-size: 14px; font-weight: 600; margin: 10px 0; }
.tour-bottom { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; min-height: 28px; }
.price-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.price-line b { color: var(--text); font-family: var(--font-display); font-weight: 700; font-size: 18px; letter-spacing: -.03em; }
.save { background: var(--accent-soft); color: var(--accent-text); font-weight: 700; font-size: 12px; padding: 2px 8px; border-radius: 99px; }

.cost-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 6px 0; font-size: 14px; color: var(--muted); }
.cost-row b { color: var(--text); text-align: right; font-variant-numeric: tabular-nums; }
.cost-row.big b { font-size: 24px; letter-spacing: -.02em; }
.save-box { background: rgba(61, 126, 232, 0.11); border-radius: var(--radius-sm); padding: 12px 14px; font-size: 14px; line-height: 1.5; margin-top: 8px; }
.save-box.bad { background: #FFEFEF; }

.calc { background: var(--bg); border-radius: 16px; padding: 12px; margin: 4px 0 14px; }
.card .calc-grid div { background: var(--bg); }
.calc-total { font-size: 14px; margin-bottom: 10px; }
.calc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 6px; }
.calc-grid div { background: #fff; border-radius: 12px; padding: 9px 4px; text-align: center; }
.calc-grid b { display: block; font-size: 15px; font-variant-numeric: tabular-nums; }
.calc-grid span { display: block; font-size: 11px; color: var(--muted); }
.calc-grid em { display: block; font-style: normal; font-size: 11px; font-weight: 700; margin-top: 2px; }
.pos { color: var(--lime-text); }
.neg { color: var(--danger); }

.prize-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 4px; }
.pz { border-radius: var(--radius-sm); padding: 12px 4px; text-align: center; }
.pz b { display: block; font-family: var(--font-display); font-weight: 700; font-size: 18px; letter-spacing: -.02em; }
.pz span { display: block; font-size: 11px; color: var(--muted); }
.pz1 { background: linear-gradient(160deg, #FFF6CC, #FFE98A); }
.pz2 { background: linear-gradient(160deg, #F4F6FA, #E2E6EE); }
.pz3 { background: linear-gradient(160deg, #FDEBDD, #F7D2B4); }
.prize { font-size: 12px; font-weight: 700; color: var(--accent-text); }
.tag.red { background: #FFE6E6; color: var(--danger); }
.player-row.away > .ava, .player-row.away > .grow { opacity: .5; }
.team-box { background: #F1F4F9; border-radius: var(--radius-sm); padding: 8px 12px; margin-bottom: 8px; }
.team-box .player-row { padding: 3px 0; }
.note-card { font-size: 14px; font-weight: 600; background: var(--accent-soft); color: var(--accent-text); box-shadow: none; }
.insurer .player-row { padding-top: 0; }
.names .hl { background: var(--accent-soft); color: var(--accent-text); border-radius: 6px; padding: 0 4px; }
.names .ph { color: var(--muted); font-style: italic; }
.match.focus { background: rgba(61, 126, 232, 0.06); margin: 0 -8px; padding-left: 8px; padding-right: 8px; border-radius: 12px; }
.preview-rounds .round { box-shadow: none; border: 1px solid var(--line); padding: 12px; }
.preview-rounds .m-row { padding: 1px 0; }
.balance-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.balance-grid div { background: #F1F4F9; border-radius: var(--radius-sm); padding: 10px 6px; text-align: center; }
.balance-grid b { display: block; font-family: var(--font-display); font-weight: 700; font-size: 18px; }
.balance-grid span { font-size: 11px; color: var(--muted); }
.player-row { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 14px; font-weight: 600; }

.round-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; }
.match { border-top: 1px solid var(--line); padding: 10px 0 6px; }
.court-no { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }
.m-row { display: flex; align-items: center; gap: 10px; padding: 3px 0; }
.m-row .names { flex: 1; min-width: 0; font-size: 14px; font-weight: 600; }
.dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.dot.a { background: var(--blue); }
.dot.b { background: var(--orange); }
input.score { width: 64px; min-height: 44px; flex: none; text-align: center; padding: 8px; font-family: var(--font-display); font-size: 19px; font-weight: 700; font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
input.score::-webkit-outer-spin-button, input.score::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
input.score:disabled { background: #F1F4F9; color: var(--text); }
.rest { font-size: 13px; padding-top: 8px; border-top: 1px solid var(--line); }

.standings { width: 100%; border-collapse: collapse; font-size: 14px; }
.standings th { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; text-align: right; padding: 4px; font-weight: 700; }
.standings th:nth-child(2) { text-align: left; }
.standings td { padding: 7px 4px; border-top: 1px solid var(--line); text-align: right; font-variant-numeric: tabular-nums; }
.standings td.pl { text-align: left; }
.pl-in { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.standings tr.me-row td { background: rgba(61, 126, 232, 0.08); }

.podium { display: grid; grid-template-columns: repeat(3, 1fr); align-items: end; gap: 8px; text-align: center; }
.podium > div { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; }
.place { width: 100%; border-radius: 14px 14px 0 0; display: flex; flex-direction: column; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 28px; font-weight: 700; color: var(--navy); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6); }
.place small { font-size: 11px; font-weight: 700; }
.p1 { background: linear-gradient(180deg, #FFE36E, #F5C527); height: 104px; }
.p2 { background: linear-gradient(180deg, #EEF1F6, #CBD2DE); height: 82px; }
.p3 { background: linear-gradient(180deg, #F8CFAA, #E9A26C); height: 66px; }

/* ---------- Профиль ---------- */
.profile-head { display: flex; align-items: center; gap: 14px; }
.name-input { font-size: 18px; font-weight: 650; }
.level-big { display: flex; align-items: baseline; gap: 10px; font-family: var(--font-display); font-size: 52px; font-weight: 700; letter-spacing: -.05em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.lvl-name { font-family: var(--font); font-size: 16px; font-weight: 650; color: var(--accent-text); -webkit-text-fill-color: var(--accent-text); letter-spacing: 0; }
input[type=range] { width: 100%; accent-color: var(--accent); margin: 8px 0 2px; }
.scale { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); padding: 0 4px; }

.q { margin-bottom: 18px; }
.q-title { font-weight: 650; margin-bottom: 8px; }
.opts { display: flex; flex-direction: column; gap: 6px; }
.opt { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 16px; background: #F1F4F9; cursor: pointer; font-size: 14px; transition: background .2s, color .2s; box-shadow: var(--ring); }
.opt input { accent-color: #fff; margin: 0; }
.opt:has(input:checked) { background: var(--grad); color: #fff; box-shadow: var(--glow); }

.onb-list { list-style: none; padding: 0; margin: 12px 0 18px; display: grid; gap: 8px; }
.onb-list li { background: var(--bg); border-radius: var(--radius-sm); padding: 12px 14px; font-size: 14px; line-height: 1.45; }
.lvl-pick { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.lvl-pick button {
  background: #F1F4F9; border-radius: var(--radius-sm); padding: 10px 2px; border: 2px solid transparent; transition: border-color .2s, background .2s, box-shadow .2s;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.lvl-pick b { font-size: 17px; }
.lvl-pick span { font-size: 10px; color: var(--muted); }
.lvl-pick button.on { border-color: var(--accent); background: #fff; box-shadow: 0 10px 22px -14px rgba(44, 100, 210, .7); }

/* ---------- Регистрация, контакты ---------- */
.ava.photo { padding: 0; overflow: hidden; background: #fff; }
.ava img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.ava.xl { width: 88px; height: 88px; font-size: 30px; box-shadow: 0 12px 28px -12px rgba(44, 100, 210, .55); }
.reg-steps { display: flex; gap: 8px; margin-bottom: 16px; padding-right: 44px; /* место под крестик */ }
.reg-steps span { flex: 1; text-align: center; font-size: 12px; font-weight: 700; padding: 7px; border-radius: 99px; background: rgba(20, 32, 57, .05); color: var(--muted); }
.reg-steps .on { background: var(--grad); color: #fff; box-shadow: var(--glow); }
.reg-steps .done { background: var(--accent-soft); color: var(--accent-text); }
.photo-pick { display: flex; justify-content: center; margin: 6px 0 16px; }
.photo-btn { display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer; }
.photo-btn.small { flex: none; }
.photo-cap { font-size: 12px; font-weight: 650; color: var(--accent-text); }
.hint.top { margin: -4px 0 10px; }
.social-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.social-row input { flex: 1; }
.soc { flex: none; display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 22px; padding: 0 6px; border-radius: 7px; font-size: 11px; font-weight: 800; color: #fff; text-decoration: none; }
.social-row .soc { min-width: 44px; height: 44px; border-radius: 12px; font-size: 13px; }
.soc.tg { background: linear-gradient(160deg, #37AEE2, #1E96C8); }
.soc.vk { background: linear-gradient(160deg, #2787F5, #0067E0); }
.soc.ig { background: linear-gradient(160deg, #F58529, #DD2A7B 50%, #8134AF); }
.soc.wa { background: linear-gradient(160deg, #3DDC74, #1EBE57); }
.socs { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.row2.tight { gap: 6px; }
.row2.tight .name-input { font-size: 15px; padding: 10px; }
.phone-line { font-size: 14px; margin: 8px 0 4px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.mb { margin-bottom: 12px; }
.small { font-size: 12px; }
.block { display: block; }
.pl-link { display: flex; align-items: center; gap: 10px; text-align: left; min-width: 0; font-weight: 600; }

/* ---------- Чаты ---------- */
.top-actions { display: flex; align-items: center; gap: 8px; }
.chat-btn {
  position: relative; width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: var(--text); background: rgba(255, 255, 255, .8);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .9), 0 6px 16px -8px rgba(34, 64, 120, .3); transition: background .2s, color .2s;
}
.chat-btn:hover { background: #fff; }
.chat-btn.on { background: var(--grad); color: #fff; box-shadow: var(--glow); }
.chat-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linejoin: round; }
.chat-btn .badge { top: -3px; right: -3px; box-shadow: 0 0 0 2px #fff; }
.mini-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--danger); color: #fff; font-size: 11px; font-style: normal; font-weight: 800; }
.chat-row { display: flex; align-items: center; gap: 12px; }
.chat-row.unread .chat-title { font-weight: 800; }
.ava-stack { position: relative; width: 44px; height: 40px; flex: none; }
.ava-stack .ava { position: absolute; }
.ava-stack .ava:nth-child(2) { left: 14px; top: 10px; }
.chat-title { font-weight: 700; font-size: 15px; }
.ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; }
.chat-head { padding-bottom: 12px; }
.members-toggle { display: flex; align-items: center; gap: 10px; margin: 10px 0 4px; }
.members { margin: 6px 0; border-top: 1px solid var(--line); padding-top: 6px; }
.tg-note { display: flex; gap: 10px; align-items: flex-start; background: var(--accent-soft); border-radius: var(--radius-sm); padding: 12px; font-size: 13px; line-height: 1.45; margin: 10px 0 8px; }
.messages { display: flex; flex-direction: column; gap: 8px; padding: 4px 0 8px; }
.msg { display: flex; align-items: flex-end; gap: 6px; max-width: 85%; }
.msg.mine { align-self: flex-end; }
.msg.sys { align-self: center; max-width: 92%; text-align: center; font-size: 12px; color: var(--muted); background: rgba(255, 255, 255, .7); border-radius: 999px; padding: 6px 12px; box-shadow: var(--ring); }
.bubble { background: rgba(255, 255, 255, .92); border-radius: 20px 20px 20px 6px; padding: 9px 13px; font-size: 14px; line-height: 1.45; box-shadow: var(--shadow); word-break: break-word; }
.msg.mine .bubble { background: var(--grad); color: #fff; border-radius: 20px 20px 6px 20px; box-shadow: var(--glow); }
.msg.mine .bubble .time { color: rgba(255, 255, 255, .75); }
.bubble .from { font-size: 12px; font-weight: 700; color: var(--accent-text); margin-bottom: 2px; }
.bubble .time { display: block; text-align: right; font-size: 10px; color: var(--muted); margin-top: 2px; font-variant-numeric: tabular-nums; }
.chat-input { position: sticky; bottom: calc(86px + env(safe-area-inset-bottom)); display: flex; gap: 8px; padding: 8px 0; background: transparent; }
.chat-input input { flex: 1; border-radius: 999px; padding-left: 18px; }
.chat-input .send { width: 48px; height: 48px; min-height: 0; padding: 0; border-radius: 50%; flex: none; }
.send svg { width: 20px; height: 20px; fill: currentColor; }

/* ---------- Рейтинг доверия ---------- */
.trust { display: inline-block; font-size: 11px; font-weight: 800; padding: 2px 7px; border-radius: 99px; vertical-align: middle; font-variant-numeric: tabular-nums; }
.trust.good { background: var(--accent-soft); color: var(--accent-text); }
.trust.mid { background: #FFF2BF; color: #8A6A00; }
.trust.bad { background: #FFE6E6; color: var(--danger); }
.pc-head { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.pc-head h2 { padding-right: 30px; }
.pc-meta { font-size: 14px; color: var(--muted); margin: 2px 0 6px; display: flex; align-items: center; gap: 6px; }
.pc-head .socs { justify-content: flex-start; }
.trust-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.trust-box { border-radius: 16px; padding: 14px; background: var(--bg); display: flex; flex-direction: column; gap: 2px; }
.trust-box b { font-family: var(--font-display); font-weight: 700; font-size: 27px; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.trust-box span { font-size: 13px; font-weight: 700; }
.trust-box small { font-size: 11px; color: var(--muted); }
.trust-box.good { background: rgba(61, 126, 232, 0.12); }
.trust-box.mid { background: #FFF7DA; }
.trust-box.bad { background: #FFEFEF; }
.trust-box.up { background: rgba(61, 126, 232, 0.08); }
.vote-bar { display: flex; height: 10px; border-radius: 99px; overflow: hidden; background: var(--bg); }
.vote-bar i { display: block; height: 100%; }
.vote-bar .down { background: var(--orange); }
.vote-bar .ok { background: var(--accent-2); }
.vote-bar .up { background: var(--accent-deep); }
.vote-legend { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-top: 4px; }
.rate-card { background: var(--bg); box-shadow: none; margin-top: 14px; }
.rate-card .seg { background: #fff; }
.rate-card .seg button.on { background: var(--grad); color: #fff; box-shadow: var(--glow); }
.btn.danger { background: #FFE6E6; color: var(--danger); }

/* ---------- Рейтинг игроков ---------- */
.search-box { position: relative; margin-bottom: 12px; }
.search-box svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }
.search-box input { width: 100%; min-height: 50px; padding: 13px 14px 13px 46px; border-radius: 999px; border: 0; background: rgba(255, 255, 255, .86); font: inherit; font-size: 15px; outline: none; box-shadow: var(--shadow); transition: box-shadow .2s; }
.search-box input:focus { box-shadow: var(--shadow), 0 0 0 4px rgba(61, 126, 232, 0.18); }
.filters-card .fl { margin-bottom: 10px; }
.rating-row { display: flex; align-items: center; gap: 10px; padding: 12px; margin-bottom: 8px; }
.rank { flex: none; width: 28px; text-align: center; font-weight: 800; color: var(--faint); font-variant-numeric: tabular-nums; }
.rank.r1, .rank.r2, .rank.r3 { width: 28px; height: 28px; line-height: 28px; border-radius: 50%; color: var(--navy); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6); }
.rank.r1 { background: linear-gradient(180deg, #FFE36E, #F5C527); }
.rank.r2 { background: linear-gradient(180deg, #EEF1F6, #CBD2DE); }
.rank.r3 { background: linear-gradient(180deg, #F8CFAA, #E9A26C); }
.rr-name { display: block; font-weight: 650; font-size: 15px; }
.rr-level { flex: none; font-family: var(--font-display); font-size: 17px; font-weight: 700; background: var(--grad); color: #fff; box-shadow: 0 6px 14px -8px rgba(44, 100, 210, .7); border-radius: 999px; padding: 5px 11px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }

/* ---------- Приоритеты ---------- */
.prefs-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap;
  background: rgba(61, 126, 232, 0.11); border-radius: 16px; padding: 8px 8px 8px 14px; margin-bottom: 12px; font-size: 14px;
}
.prefs-bar.off { background: rgba(255, 255, 255, .7); box-shadow: var(--ring); }
.prefs-bar .btns { align-items: center; gap: 10px; }
.prefs-list { margin: 0 0 12px; padding-left: 18px; font-size: 14px; line-height: 1.65; }
.prefs-count { background: var(--bg); border-radius: var(--radius-sm); padding: 12px; font-size: 14px; margin-top: 14px; text-align: center; }
.check.big { font-size: 16px; background: var(--bg); border-radius: var(--radius-sm); padding: 14px; margin: 10px 0 4px; }
.disabled-block { opacity: .4; pointer-events: none; }

/* ---------- Общие добавки ---------- */
.tag.dark { background: var(--navy); color: #fff; }
.row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.row3 .btn { padding: 10px 4px; font-size: 13px; }
.row3 .btn.ghost { background: #fff; box-shadow: var(--shadow); }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.stats-grid div { background: var(--bg); border-radius: var(--radius-sm); padding: 12px; }
.stats-grid b { display: block; font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stats-grid span { font-size: 11px; color: var(--muted); }
.feed-info { box-shadow: inset 4px 0 0 var(--accent), var(--shadow); }
.coach-entry { box-shadow: inset 4px 0 0 var(--accent-2), var(--shadow); }

/* Игры: заявки, оплата, счёт */
.slot.pending .plus { border-color: var(--accent); }
.game-extras { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); align-items: center; }
.chip-info { font-size: 12px; font-weight: 700; background: var(--bg); color: var(--muted); border-radius: 99px; padding: 7px 11px; }
.chip-info.ok { background: var(--accent-soft); color: var(--accent-text); }
.result-line { width: 100%; font-size: 13px; border-radius: 12px; padding: 9px 11px; }
.result-line.win { background: rgba(61, 126, 232, 0.12); }
.result-line.loss { background: #FFF2E3; }
.score-head, .score-row { display: grid; grid-template-columns: 1fr 64px 64px; gap: 8px; align-items: center; margin-bottom: 8px; }
.score-head span { font-size: 11px; font-weight: 800; text-align: center; }
.qr-box { width: 148px; height: 148px; margin: 10px auto 16px; border: 3px dashed var(--line); border-radius: 20px; display: flex; align-items: center; justify-content: center; font-size: 28px; font-weight: 800; color: var(--faint); }
.invite-row { cursor: pointer; }
.invite-row input { width: 20px; height: 20px; accent-color: var(--accent); }

/* Оплата */
.pay-sum { display: flex; align-items: baseline; gap: 10px; background: var(--bg); border-radius: 16px; padding: 16px; margin: 10px 0 14px; }
.pay-sum b { font-family: var(--font-display); font-weight: 700; font-size: 28px; letter-spacing: -.03em; margin-left: auto; font-variant-numeric: tabular-nums; }
.pay-methods { display: grid; gap: 6px; }
.pay-m { display: flex; justify-content: space-between; align-items: center; padding: 13px 14px; border-radius: var(--radius-sm); background: var(--bg); border: 2px solid transparent; text-align: left; transition: border-color .2s, background .2s; }
.pay-m span { font-size: 12px; color: var(--muted); }
.pay-m.on { border-color: var(--accent); background: #fff; box-shadow: 0 10px 22px -14px rgba(44, 100, 210, .7); }
.pay-m[disabled] { opacity: .5; }
.btn[disabled] { opacity: .4; cursor: default; box-shadow: none; }
.voucher-row { display: flex; gap: 8px; }
.voucher-row input { flex: 1; text-transform: uppercase; }

/* Кабинет клуба */
.sched-hours { position: relative; height: 16px; margin: 0 0 4px 26px; font-size: 10px; color: var(--muted); }
.sched-hours span { position: absolute; transform: translateX(-50%); }
.sched-row { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.sched-court { width: 20px; font-size: 12px; font-weight: 800; color: var(--muted); text-align: center; }
.sched-track { position: relative; flex: 1; height: 26px; background: var(--bg); border-radius: 8px; overflow: hidden; }
.sched-ev { position: absolute; top: 2px; bottom: 2px; border-radius: 6px; font-size: 9px; font-weight: 700; color: #fff; padding: 0 3px; white-space: nowrap; overflow: hidden; display: flex; align-items: center; }
.sched-ev.game, .sched-legend .game::before { background: var(--blue); }
.sched-ev.tour, .sched-legend .tour::before { background: var(--orange); }
.sched-ev.book, .sched-legend .book::before { background: var(--navy); }
.sched-ev.lesson, .sched-legend .lesson::before { background: #8E5BD8; }
.sched-ev.rent, .sched-legend .rent::before { background: #9AA6C2; }
.sched-legend { display: flex; gap: 12px; flex-wrap: wrap; font-size: 11px; color: var(--muted); margin-top: 8px; }
.sched-legend span::before { content: ''; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 4px; vertical-align: -1px; }

/* Тренеры */
.coach-prices { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin: 10px 0; }
.coach-prices span { background: var(--bg); border-radius: 12px; padding: 7px 4px; font-size: 10px; color: var(--muted); text-align: center; }
.coach-prices b { display: block; font-size: 13px; color: var(--text); }

/* Лента и календарь */
.feed-reason { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 6px 2px; }
.feed-reason span { font-size: 11px; font-weight: 650; color: var(--accent-text); background: rgba(255, 255, 255, .75); box-shadow: var(--ring); border-radius: 99px; padding: 3px 9px; }
.upcoming { padding-bottom: 6px; }
.up-row { width: 100%; text-align: left; }
.cal-day { margin-bottom: 16px; }
.cal-date { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.cal-ev { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; background: var(--card); border-radius: var(--radius-sm); padding: 13px 14px; margin-bottom: 6px; box-shadow: inset 4px 0 0 var(--accent), var(--shadow); font-size: 14px; }
.cal-ev.tour { box-shadow: inset 4px 0 0 var(--orange), var(--shadow); }
.cal-ev.lesson { box-shadow: inset 4px 0 0 #8E5BD8, var(--shadow); }
.cal-ev.book { box-shadow: inset 4px 0 0 var(--navy), var(--shadow); }
.cal-ev.ready, .cal-ev.queue { box-shadow: inset 4px 0 0 var(--accent-2), var(--shadow); }
.cal-time { font-family: var(--font-display); font-weight: 700; font-variant-numeric: tabular-nums; font-size: 13px; white-space: nowrap; }
.cal-tag { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.cal-empty { width: 100%; text-align: left; color: var(--muted); font-size: 13px; padding: 12px 14px; border: 1.5px dashed #D5DAE5; border-radius: var(--radius-sm); }

/* Рейтинг и статистика */
.level-row { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.level-now { font-family: var(--font-display); font-size: 52px; font-weight: 700; letter-spacing: -.05em; font-variant-numeric: tabular-nums; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.level-chart { width: 100%; height: 90px; background: var(--grad-soft); border-radius: var(--radius-sm); margin-bottom: 10px; }
.form-row { display: flex; align-items: center; gap: 4px; font-size: 13px; margin-top: 10px; }
.form-row i { font-style: normal; width: 24px; height: 24px; border-radius: 7px; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; }
.form-row i.w { background: var(--grad); color: #fff; }
.form-row i.l { background: #FFE6E6; color: var(--danger); }
.notif { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; padding: 14px; margin-bottom: 8px; }
.notif.unread { box-shadow: inset 4px 0 0 var(--accent), var(--shadow); font-weight: 600; }

/* Турниры: разбор, кабинет, группы */
.analysis { margin: 0; padding-left: 18px; font-size: 14px; line-height: 1.6; }
.analysis li { margin-bottom: 6px; }
.org-cab { box-shadow: 0 0 0 2px rgba(61, 126, 232, .55), var(--shadow); }
.org-cab .stats-grid { margin-bottom: 8px; }
.standings tr.adv td:first-child { color: var(--accent-text); font-weight: 700; }

/* Вход через сервисы */
.or-line { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; margin: 16px 0 12px; }
.or-line::before, .or-line::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.auth-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.auth-btn { min-height: 48px; padding: 11px; border-radius: 999px; font-weight: 700; font-size: 14px; color: #fff; transition: filter .2s, transform .12s; }
.auth-btn:active { transform: scale(.97); }
.auth-btn:hover { filter: brightness(1.06); }
.auth-btn.tg { background: linear-gradient(160deg, #37AEE2, #1E96C8); }
.auth-btn.vk { background: linear-gradient(160deg, #2787F5, #0067E0); }
.auth-btn.apple { background: #111; }
.auth-btn.google { background: #fff; color: var(--text); box-shadow: inset 0 0 0 1.5px var(--line); }

/* ---------- Сводка по клубу ---------- */
.club-info { padding: 16px; }
.ci-top { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.ci-status { font-size: 13px; font-weight: 700; padding: 6px 11px; border-radius: 99px; background: #FFE6E6; color: var(--danger); }
.ci-status.open { background: var(--accent-soft); color: var(--accent-text); }
.ci-happy { font-size: 13px; font-weight: 700; padding: 6px 11px; border-radius: 99px; background: #FFEBCF; color: #9A5A00; }
.ci-rows { display: grid; gap: 8px; margin-bottom: 10px; }
.ci-rows div { display: grid; grid-template-columns: 112px 1fr; gap: 8px; font-size: 13px; align-items: baseline; }
.ci-rows span { color: var(--muted); }
.ci-rows b { font-weight: 600; }
.happy-list { display: flex; flex-wrap: wrap; gap: 4px; }
.happy { font-size: 12px; font-weight: 700; background: #FFF4E2; color: #9A5A00; padding: 3px 9px; border-radius: 99px; }
.happy.now { background: var(--orange); color: #fff; }
.amen { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 10px; }
.amen span { font-size: 12px; font-weight: 500; background: var(--bg); border-radius: 99px; padding: 5px 11px; }
.ci-today { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 6px 0 8px; }
.ci-today div { background: var(--bg); border-radius: var(--radius-sm); padding: 10px; }
.ci-today b { display: block; font-family: var(--font-display); font-weight: 700; font-size: 18px; letter-spacing: -.02em; }
.ci-today span { font-size: 11px; color: var(--muted); }
.ci-line { font-size: 12px; color: var(--muted); margin-top: 6px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ci-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--danger); }
.ci-dot.open { background: #3DBE5A; box-shadow: 0 0 0 3px rgba(61, 190, 90, .18); }
.happy-now { color: #9A5A00; }
.happy-tag { display: block; font-size: 10px; font-weight: 800; color: #9A5A00; }
.tag.happy { background: #FFEBCF; color: #9A5A00; }

/* ---------- Главная кнопка «Найти игру» — голубой градиент, блик и стеклянный круг со стрелкой ---------- */
.find-btn {
  position: relative; overflow: hidden; width: 100%; display: flex; align-items: center; gap: 14px; text-align: left;
  padding: 20px 18px; border-radius: 28px; margin-bottom: 8px; min-height: 108px;
  background: var(--grad); color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 24px 44px -22px rgba(44, 100, 210, .8);
  transition: transform .15s var(--ease), box-shadow .2s;
}
.find-btn::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(70% 90% at 0% 0%, rgba(255, 255, 255, .34), transparent 60%),
    linear-gradient(115deg, transparent 45%, rgba(255, 255, 255, .16) 60%, transparent 75%);
}
.find-btn::after {
  content: ''; position: absolute; right: -40px; bottom: -60px; width: 150px; height: 150px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .28), rgba(255, 255, 255, .04) 70%);
}
.find-btn > * { position: relative; z-index: 1; }
.find-btn:active { transform: scale(.98); }
.find-btn b { display: block; font-family: var(--font-display); font-size: 24px; font-weight: 700; letter-spacing: -.035em; }
.find-btn > span:nth-child(2) { flex: 1; }
.find-btn > span:nth-child(2) > span { display: block; font-size: 13px; color: rgba(255, 255, 255, .85); line-height: 1.4; margin-top: 3px; }
.find-btn .chev { display: none; }
.find-ball {
  order: 3; flex: none; width: 54px; height: 54px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .2); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .55), 0 8px 18px -8px rgba(20, 50, 120, .5);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.find-ball svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }.create-link { display: block; width: 100%; text-align: center; font-size: 14px; font-weight: 600; color: var(--accent-text); padding: 10px 0 14px; }
.create-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.page > .seg + .find-btn { margin-bottom: 14px; }

/* Приветствие и выбор клубов */
.welcome-card { box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .9), var(--shadow); background: linear-gradient(160deg, rgba(231, 240, 254, .95), rgba(255, 255, 255, .9) 70%); }
.welcome-card .muted { margin: 0 0 12px; }
.welcome-card .chips { flex-wrap: wrap; }

/* Варианты в «Найти игру» */
.find-row { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; background: #F1F4F9; border-radius: var(--radius-sm); padding: 12px; margin-bottom: 8px; }
.find-row b { font-size: 15px; }
.find-row .ava-row { display: flex; align-items: center; gap: 4px; margin: 6px 0 2px; flex-wrap: wrap; }
.find-row .ava-row .muted { margin-left: 4px; }
.find-row.as-btn { transition: background .2s; }
.find-row.as-btn:hover { background: var(--accent-soft); }
.back-link { display: inline-block; margin-bottom: 10px; text-decoration: none; }
.near-free { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; font-size: 13px; font-weight: 600; }
.near-free span { width: 100%; color: var(--muted); }
.near-free .chip { background: var(--accent-soft); color: var(--accent-text); box-shadow: inset 0 0 0 1.5px rgba(61, 126, 232, .35); }

/* Итог перед записью */
.sum-list { background: #F1F4F9; border-radius: var(--radius-sm); padding: 4px 14px; margin: 12px 0; }
.sum-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.sum-row:last-child { border-bottom: 0; }
.sum-row span { color: var(--muted); flex: none; }
.sum-row b { text-align: right; display: flex; align-items: center; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.sum-row .ava-row { display: inline-flex; gap: 2px; }
.pay-note { border-radius: var(--radius-sm); padding: 12px 14px; font-size: 14px; line-height: 1.45; background: #F1F4F9; }
.pay-note.now { background: var(--accent-soft); color: #1C3F86; }

/* Регистрация */
.reg-why { background: var(--accent-soft); color: #1C3F86; border-radius: var(--radius-sm); padding: 10px 12px; font-size: 14px; font-weight: 600; margin: 0 0 12px; }
.field-err { color: var(--danger); font-size: 13px; font-weight: 600; margin: -8px 0 12px; }
.lvl-pick.reg-lvl { grid-template-columns: 1fr; gap: 6px; margin-bottom: 12px; }
.lvl-pick.reg-lvl button { flex-direction: column; align-items: flex-start; text-align: left; padding: 10px 14px; gap: 1px; }
.lvl-pick.reg-lvl b { font-size: 15px; }
.lvl-pick.reg-lvl span { font-size: 12px; line-height: 1.35; }
.reg-quiz-box { background: #F1F4F9; border-radius: var(--radius-sm); padding: 12px 14px; margin-bottom: 8px; }
.reg-quiz-box summary { cursor: pointer; font-weight: 650; font-size: 14px; color: var(--accent-text); }
.reg-quiz-box[open] summary { margin-bottom: 10px; }
.hero-title { color: #fff; font-family: var(--font-display); font-size: 30px; font-weight: 700; letter-spacing: -.04em; margin: 0 0 6px; max-width: 80%; }
.radio-list { display: grid; gap: 4px; margin-bottom: 8px; }
.radio-list .check { margin: 0; padding: 10px 12px; border-radius: 16px; background: #F1F4F9; font-size: 14px; font-weight: 500; align-items: flex-start; }
.radio-list input { margin-top: 2px; flex: none; }
.club-actions .btn.ghost { background: rgba(255, 255, 255, .86); box-shadow: var(--shadow); }
.tb-title { font-size: 11px !important; font-weight: 700 !important; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }

.guest-card { background: linear-gradient(160deg, rgba(231, 240, 254, .95), rgba(255, 255, 255, .9) 70%); box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .9), var(--shadow); }
.guest-card .muted { margin: 0 0 12px; }

/* ---------- Модалка и тост ---------- */
#modal { position: fixed; inset: 0; z-index: 50; display: none; }
#modal.open { display: block; }
.backdrop { position: absolute; inset: 0; background: rgba(36, 56, 96, .28); backdrop-filter: blur(10px) saturate(140%); -webkit-backdrop-filter: blur(10px) saturate(140%); animation: fade .25s; }
.sheet {
  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: 100%; max-width: 440px; max-height: 92vh;
  overflow: auto; background: linear-gradient(180deg, #FFFFFF 0%, #F7F9FC 100%); border-radius: 32px 32px 0 0; box-shadow: 0 -24px 64px -20px rgba(34, 64, 120, .45);
  padding: 26px 18px calc(24px + env(safe-area-inset-bottom)); animation: up .35s var(--ease);
}
.sheet::before {
  content: ''; position: absolute; top: 8px; left: 50%; width: 40px; height: 5px; margin-left: -20px; border-radius: 3px; background: #DDE1EA;
}
.sheet h2 { margin: 0 0 6px; font-size: 26px; font-weight: 700; letter-spacing: -.035em; padding-right: 40px; }
.sheet > .muted:first-of-type { margin-top: 0; }
.sheet-close {
  position: absolute; right: 14px; top: 16px; width: 34px; height: 34px; border-radius: 50%;
  background: #F1F4F9; font-size: 20px; line-height: 1; color: var(--muted); transition: background .2s;
}
.sheet-close:hover { background: #E6EBF3; }
@keyframes up { from { transform: translate(-50%, 60px); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }
@keyframes fade { from { opacity: 0; } }

.toast {
  position: fixed; left: 50%; bottom: calc(100px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); z-index: 60;
  background: rgba(20, 32, 57, .88); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  color: #fff; padding: 13px 20px; border-radius: 22px; font-size: 14px; font-weight: 600;
  opacity: 0; pointer-events: none; transition: opacity .3s var(--ease), transform .3s var(--ease);
  width: max-content; max-width: min(400px, calc(100% - 32px)); box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .4);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.err { background: var(--danger); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* =========================================================
   Функции из концепции: подтверждение четвёрки, удержание корта, чёрный список,
   рейтинг и скидки клубов, бонусы Cuatro, реклама
   ========================================================= */

/* Убрать игрока из предложенной четвёрки */
.slot { position: relative; }
.slot-x {
  position: absolute; top: -4px; left: 4px; z-index: 2; width: 22px; height: 22px; border-radius: 50%;
  background: #fff; color: var(--muted); font-size: 15px; line-height: 1; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 1px rgba(20, 32, 57, .08), 0 4px 10px -4px rgba(34, 64, 120, .4); transition: background .2s, color .2s;
}
.slot-x:hover { background: var(--danger); color: #fff; }
/* Ждём подтверждения участника */
.slot.waiting .pava .ava { opacity: .55; box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgba(61, 126, 232, .35); animation: waitPulse 1.6s ease-in-out infinite; }
@keyframes waitPulse { 50% { box-shadow: 0 0 0 2px #fff, 0 0 0 6px rgba(61, 126, 232, .15); } }
.wait-text { color: var(--accent-text); font-weight: 600; }
.slot-side .ok-text { font-weight: 600; }

/* Корт придержан */
.hold-note { display: flex; align-items: center; gap: 8px; background: var(--accent-soft); color: #1C3F86; border-radius: 999px; padding: 8px 14px; font-size: 13px; margin: 4px 0 6px; }
.hold-note b { font-family: var(--font-display); font-variant-numeric: tabular-nums; }
.hold-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(61, 126, 232, .2); animation: waitPulse 1.6s ease-in-out infinite; flex: none; }

/* Заявки на несколько дней */
.req-group { align-items: flex-start; }
.day-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.day-chip { display: inline-flex; align-items: center; gap: 4px; background: var(--accent-soft); color: var(--accent-text); font-size: 12px; font-weight: 650; border-radius: 999px; padding: 4px 4px 4px 10px; }
.day-chip button { width: 20px; height: 20px; border-radius: 50%; background: rgba(255, 255, 255, .8); color: var(--accent-text); font-size: 14px; line-height: 1; }
.day-chip button:hover { background: var(--danger); color: #fff; }
.q-days .chip { padding: 8px 12px; font-size: 13px; }

/* Чёрный список */
.block-note { background: #FFF1F1; color: #A12A2E; border-radius: var(--radius-sm); padding: 10px 12px; font-size: 13px; margin-bottom: 8px; }

/* Метки */
.tag.ad { background: rgba(20, 32, 57, .06); color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; font-size: 10px; margin-left: 4px; vertical-align: middle; }
.tag.beginner { background: #E8F7EE; color: #1E7A45; }
.tag.happy.cuatro { background: var(--grad); color: #fff; }
.happy.cuatro { background: var(--accent-soft); color: var(--accent-text); }
.deal-line { display: inline-block; margin-top: 6px; font-size: 12px; font-weight: 650; color: var(--accent-text); background: var(--accent-soft); border-radius: 999px; padding: 3px 10px; }
.rate-inline { color: #C98A00; font-weight: 700; }

/* Рейтинг клуба */
.ci-rating { display: flex; align-items: baseline; gap: 8px; margin: 2px 0 8px; }
.rate-big { font-family: var(--font-display); font-size: 24px; font-weight: 700; color: #C98A00; letter-spacing: -.02em; }
.ci-rating .link-btn { margin-left: auto; }
.rate-parts { display: grid; gap: 6px; margin-bottom: 14px; }
.rate-parts div { display: grid; grid-template-columns: 118px 1fr 30px; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.rate-parts i { height: 6px; border-radius: 99px; background: rgba(20, 32, 57, .07); overflow: hidden; }
.rate-parts i b { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #FFD15C, #F2A93B); }
.rate-parts em { font-style: normal; font-weight: 700; color: var(--text); text-align: right; }
.stars { display: flex; gap: 6px; }
.stars button { font-size: 30px; line-height: 1; color: #D9DEE8; transition: color .15s, transform .12s; }
.stars button.on { color: #F2B230; }
.stars button:active { transform: scale(.9); }

/* Цена только в Cuatro */
.cuatro-deal { position: relative; overflow: hidden; display: grid; gap: 4px; border-radius: var(--radius-sm); padding: 12px 14px; margin: 4px 0 12px; color: #fff; background: var(--grad); box-shadow: var(--glow); font-size: 14px; }
.cuatro-deal s { opacity: .7; }
.cuatro-deal small { opacity: .85; font-size: 12px; }

/* Фото клуба (иллюстрации) */
.club-photos { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 6px; margin: -4px -4px 8px; }
.ph { position: relative; height: 92px; border-radius: 16px; overflow: hidden; }
.ph span { position: absolute; left: 8px; bottom: 6px; font-size: 11px; font-weight: 650; color: #fff; text-shadow: 0 1px 4px rgba(0, 0, 0, .35); }
.ph-court { background:
    linear-gradient(90deg, transparent 49%, rgba(255, 255, 255, .7) 49% 51%, transparent 51%),
    linear-gradient(0deg, transparent 30%, rgba(255, 255, 255, .45) 30% 31.5%, transparent 31.5% 68.5%, rgba(255, 255, 255, .45) 68.5% 70%, transparent 70%),
    linear-gradient(160deg, #6FA8F2, #2C64D2); }
.ph-lounge { background: radial-gradient(60% 50% at 70% 30%, rgba(255, 214, 140, .8), transparent 70%), linear-gradient(160deg, #B9A58A, #6E5B47); }
.ph-locker { background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .22) 0 2px, transparent 2px 22px), linear-gradient(160deg, #9FB4CC, #5F7590); }

/* Спрос в кабинете клуба */
.demand { display: grid; gap: 5px; margin-top: 8px; }
.dm-row { display: grid; grid-template-columns: 42px 1fr 22px 58px; align-items: center; gap: 8px; font-size: 12px; }
.dm-time { color: var(--muted); font-variant-numeric: tabular-nums; }
.dm-bar { height: 10px; border-radius: 99px; background: rgba(20, 32, 57, .06); overflow: hidden; }
.dm-bar i { display: block; height: 100%; border-radius: 99px; background: var(--grad); }
.dm-row b { text-align: right; font-variant-numeric: tabular-nums; }
.dm-free { color: var(--muted); }
.sched-ev.hold, .sched-legend .hold::before { background: repeating-linear-gradient(45deg, var(--accent-2) 0 4px, var(--accent) 4px 8px); }

/* Реклама и спонсоры */
.sponsor-line { font-size: 12px; color: var(--muted); margin: -4px 0 10px; display: flex; align-items: center; gap: 6px; }
.sponsor-line .tag.ad { margin-left: 0; }
.ad-card { display: grid; gap: 6px; border: 1.5px dashed rgba(20, 32, 57, .12); box-shadow: none; background: rgba(255, 255, 255, .6); }
.ad-card .tag.ad { justify-self: start; margin-left: 0; }

/* Бонусы Cuatro */
.coins-box { display: flex; align-items: center; gap: 12px; background: var(--grad-soft); border-radius: var(--radius-sm); padding: 12px 14px; margin-bottom: 8px; }
.coins-box b { display: block; font-family: var(--font-display); font-size: 22px; font-weight: 700; color: var(--accent-text); }
.coins-box span:not(.coin) { font-size: 12px; color: var(--muted); line-height: 1.4; }
.coin { flex: none; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--grad); color: #fff; font-size: 18px; box-shadow: var(--glow); }
.coins-check { background: var(--accent-soft); border-radius: var(--radius-sm); padding: 12px; font-size: 14px; }

/* Группа в Telegram подключена */
.tg-note.on { background: #E5F4FC; }

/* =========================================================
   Шапка с профилем, выбор города и клубов, приглашения, профиль как в Lunda
   ========================================================= */

/* Шапка: ваш профиль вместо логотипа */
.me-head { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 3px 12px 3px 3px; border-radius: 999px; text-align: left;
  background: rgba(255, 255, 255, .8); box-shadow: 0 0 0 1px rgba(255, 255, 255, .9), 0 6px 16px -8px rgba(34, 64, 120, .3); transition: background .2s; }
.me-head:hover, .me-head.on { background: #fff; }
.me-head .ava.lg { width: 42px; height: 42px; font-size: 15px; }
.me-head-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.me-head-text b { font-family: var(--font-display); font-size: 16px; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 170px; }
.me-rate { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); white-space: nowrap; }
.me-rate i { font-style: normal; font-family: var(--font-display); font-weight: 700; font-size: 11px; color: #fff; background: var(--grad); border-radius: 999px; padding: 1px 7px; }

/* Выбор города и клубов */
.club-pick-sum { display: flex; align-items: center; gap: 10px; background: #F1F4F9; border-radius: var(--radius-sm); padding: 12px 12px 12px 14px; }
.city-list, .club-pick-list { display: grid; gap: 8px; margin-top: 10px; }
.city-row { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 14px 16px; border-radius: var(--radius-sm); background: #F1F4F9; transition: background .2s, box-shadow .2s; }
.city-row b { font-family: var(--font-display); font-size: 17px; }
.city-row:hover { background: var(--accent-soft); }
.city-row.on { background: #fff; box-shadow: inset 0 0 0 2px var(--accent); }
.club-pick-row { display: flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: var(--radius-sm); background: #F1F4F9; transition: background .2s, box-shadow .2s; }
.club-pick-row.on { background: #fff; box-shadow: inset 0 0 0 2px var(--accent); }
.cp-main { display: flex; align-items: center; gap: 12px; text-align: left; padding: 10px; min-width: 0; }
.cp-check { flex: none; width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; color: #fff; box-shadow: inset 0 0 0 2px #CDD3DF; }
.club-pick-row.on .cp-check { background: var(--grad); box-shadow: var(--glow); }
.club-pick-row .link-btn { flex: none; font-size: 13px; }

/* Приглашения на главной */
.invite-card { box-shadow: 0 0 0 1.5px rgba(61, 126, 232, .35), var(--shadow); }
.inv-head { display: flex; align-items: center; gap: 10px; font-size: 14px; margin-bottom: 10px; }
.inv-body { background: #F1F4F9; border-radius: var(--radius-sm); padding: 12px 14px; margin-bottom: 12px; }
.inv-meta { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.home-empty b { font-family: var(--font-display); font-size: 18px; color: var(--text); }

/* Профиль: шапка с обложкой */
.profile-hero { padding: 0; overflow: hidden; }
.ph-cover { height: 84px; background: var(--grad); position: relative; }
.ph-cover::after { content: ''; position: absolute; inset: 0; background:
  linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, .18) 55%, transparent 70%),
  linear-gradient(90deg, transparent 49.6%, rgba(255, 255, 255, .35) 49.6% 50.4%, transparent 50.4%),
  linear-gradient(0deg, transparent 30%, rgba(255, 255, 255, .2) 30% 31%, transparent 31% 69%, rgba(255, 255, 255, .2) 69% 70%, transparent 70%); }
.ph-main { display: flex; align-items: flex-end; gap: 14px; padding: 0 18px; margin-top: -40px; position: relative; }
.ph-main .ava.xl { width: 92px; height: 92px; border-width: 4px; }
.ph-main .photo-btn { flex: none; }
.ph-main h2 { margin: 0 0 2px; font-size: 24px; letter-spacing: -.035em; padding-bottom: 2px; }
.ph-main .grow { padding-bottom: 22px; }
.ph-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 14px 18px 18px; }
.ph-stats div { background: #F1F4F9; border-radius: var(--radius-sm); padding: 10px; text-align: center; }
.ph-stats b { display: block; font-family: var(--font-display); font-size: 22px; font-weight: 700; }
.ph-stats span { font-size: 12px; color: var(--muted); }

/* Профиль: рейтинг сейчас */
.rating-card .rc-top { display: flex; justify-content: space-between; align-items: flex-start; }
.rc-num { font-family: var(--font-display); font-size: 56px; font-weight: 700; letter-spacing: -.05em; line-height: 1;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rc-name { font-weight: 650; color: var(--accent-text); margin-top: 4px; }
.rc-side { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; padding-top: 22px; }
.rc-delta { font-family: var(--font-display); font-weight: 700; font-size: 18px; }
.rc-delta.up { color: #1E9E5A; } .rc-delta.down { color: var(--danger); }
.rc-scale { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; margin: 16px 0 6px; }
.rc-scale i { height: 10px; border-radius: 99px; background: rgba(20, 32, 57, .08); }
.rc-scale i.on { background: var(--grad); }
.rc-scale i.part { background: linear-gradient(90deg, #4486EC var(--p), rgba(20, 32, 57, .08) var(--p)); }
.rc-scale-lbl { display: flex; justify-content: space-between; font-size: 11px; color: var(--faint); }
.rc-stats { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 12px; font-size: 13px; color: var(--muted); }
.rc-stats b { color: var(--text); font-family: var(--font-display); font-size: 16px; }
.rc-stats .form-row { margin: 0; }

/* Профиль: история рейтинга */
.rh-last { display: flex; align-items: center; gap: 8px; background: #F1F4F9; border-radius: var(--radius-sm); padding: 10px 14px; margin-bottom: 12px; font-size: 14px; }
.rh-last b.pos, .rh-last b.neg { font-family: var(--font-display); font-size: 17px; }
.rating-chart { width: 100%; height: auto; display: block; background: var(--grad-soft); border-radius: var(--radius-sm); }
.pos { color: #1E9E5A; }

/* Профиль: история игр */
.gh-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.gh-row:last-of-type { border-bottom: 0; }
.gh-res { flex: none; width: 30px; height: 30px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; }
.gh-res.w { background: var(--grad); color: #fff; }
.gh-res.l { background: #FFE9EA; color: var(--danger); }
.gh-row b { font-family: var(--font-display); font-size: 15px; }
.gh-teams { display: flex; align-items: center; gap: 4px; flex: none; }
.gh-teams i { font-style: normal; font-size: 10px; font-weight: 700; color: var(--faint); }
.gh-teams .ava.xs { width: 24px; height: 24px; font-size: 9px; }
.gh-delta { flex: none; width: 44px; text-align: right; font-size: 13px !important; }

/* =========================================================
   Главная: четыре плашки. Шапка: уведомления и чаты. Экран уведомлений
   ========================================================= */
.home-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 6px 0 2px; }
.home-tile { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left;
  min-height: 112px; padding: 14px; border-radius: 22px; background: var(--card); box-shadow: var(--shadow);
  transition: transform .15s var(--ease), box-shadow .2s, background .2s; }
.home-tile:active { transform: scale(.97); }
.ht-top { display: flex; align-items: center; justify-content: space-between; width: 100%; margin-bottom: 8px; }
.ht-ico { width: 38px; height: 38px; border-radius: 13px; display: flex; align-items: center; justify-content: center; background: var(--accent-soft); color: var(--accent); }
.ht-ico svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ht-n { font-family: var(--font-display); font-size: 28px; font-weight: 700; letter-spacing: -.04em; line-height: 1; color: var(--text); }
.ht-title { font-family: var(--font-display); font-weight: 700; font-size: 15px; letter-spacing: -.02em; color: var(--text); }
.ht-sub { font-size: 12px; color: var(--muted); line-height: 1.3; }
.home-tile.on { background: var(--grad); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 18px 34px -18px rgba(44, 100, 210, .8); }
.home-tile.on .ht-ico { background: rgba(255, 255, 255, .22); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .4); }
.home-tile.on .ht-n, .home-tile.on .ht-title { color: #fff; }
.home-tile.on .ht-sub { color: rgba(255, 255, 255, .85); }
/* Приглашения: красная метка с числом в углу */
.ht-badge { position: absolute; top: 10px; right: 10px; display: none; }
.home-tile.alert .ht-n { display: none; }
.home-tile.alert .ht-badge { display: flex; position: static; min-width: 30px; height: 30px; padding: 0 9px; border-radius: 15px; align-items: center; justify-content: center;
  font-style: normal; font-family: var(--font-display); font-weight: 700; font-size: 16px; color: #fff;
  background: linear-gradient(160deg, #FF7A7E, #E5484D); box-shadow: 0 0 0 3px rgba(229, 72, 77, .15), 0 8px 16px -8px rgba(229, 72, 77, .9); animation: softPulse 2.2s ease-in-out infinite; }
.home-tile.alert.on .ht-badge { box-shadow: 0 0 0 3px rgba(255, 255, 255, .35); }
@keyframes softPulse { 50% { box-shadow: 0 0 0 6px rgba(229, 72, 77, .08), 0 8px 16px -8px rgba(229, 72, 77, .9); } }

/* Шапка: уведомления и чаты — одна стеклянная плашка */
.top-actions { gap: 0; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, .78);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .95), 0 8px 20px -10px rgba(34, 64, 120, .35); }
.top-actions .chat-btn { width: 40px; height: 40px; background: transparent; box-shadow: none; color: var(--navy-2); }
.top-actions .chat-btn:hover { background: var(--accent-soft); color: var(--accent-text); }
.top-actions .chat-btn.on { background: var(--grad); color: #fff; box-shadow: var(--glow); }
.top-actions .chat-btn svg { width: 22px; height: 22px; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.top-actions .chat-btn .dots { stroke-width: 2.6; }
.ta-sep { width: 1px; height: 20px; background: rgba(20, 32, 57, .1); margin: 0 2px; }
.top-actions .chat-btn .badge { top: 2px; right: 1px; min-width: 17px; height: 17px; font-size: 10px; padding: 0 4px;
  background: linear-gradient(160deg, #FF7A7E, #E5484D); box-shadow: 0 0 0 2px #fff, 0 4px 8px -3px rgba(229, 72, 77, .8); }
.top-actions .chat-btn.has svg { animation: bellNudge 4s ease-in-out infinite; transform-origin: 50% 15%; }
.top-actions .chat-btn.has:last-child svg { animation: none; }
@keyframes bellNudge { 0%, 88%, 100% { transform: rotate(0); } 91% { transform: rotate(12deg); } 94% { transform: rotate(-10deg); } 97% { transform: rotate(6deg); } }

/* Экран уведомлений */
.notif { align-items: center; gap: 12px; }
.nf-ico { flex: none; width: 40px; height: 40px; border-radius: 14px; display: flex; align-items: center; justify-content: center; background: var(--accent-soft); color: var(--accent); }
.nf-ico svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.notif.unread .nf-ico { background: var(--grad); color: #fff; box-shadow: var(--glow); }
.nf-ico.tour { color: #C98A00; background: #FFF4D6; } .nf-ico.rate { color: #1E9E5A; background: #E6F6EC; }
.nf-text { display: block; font-size: 14px; line-height: 1.4; }
.nf-time { display: block; font-size: 12px; color: var(--muted); margin-top: 3px; font-weight: 500; }
.notif-empty { display: flex; flex-direction: column; align-items: center; }
.nf-ico.big { width: 56px; height: 56px; border-radius: 20px; margin-bottom: 10px; }
.nf-ico.big svg { width: 28px; height: 28px; }

/* =========================================================
   Тренеры: мини-страница, рейтинг и отзывы, групповые тренировки, «Мои тренеры».
   Создание игры: кто платит за корт
   ========================================================= */
.opt-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.opt-card { position: relative; display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; border-radius: 18px; background: #F1F4F9; cursor: pointer;
  box-shadow: inset 0 0 0 2px transparent; transition: box-shadow .2s, background .2s; }
.opt-card input { position: absolute; opacity: 0; pointer-events: none; }
.opt-card b { font-family: var(--font-display); font-size: 15px; letter-spacing: -.02em; }
.opt-card span { font-size: 12px; color: var(--muted); line-height: 1.3; }
.opt-card:has(input:checked) { background: var(--accent-soft); box-shadow: inset 0 0 0 2px var(--accent); }
.opt-card:has(input:checked) b { color: var(--accent-text); }

.home-tile.wide { grid-column: 1 / -1; min-height: 0; }
.home-tile.wide .ht-top { margin-bottom: 0; gap: 12px; }
.ht-text { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ht-text .ht-sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.coach-rate { display: inline-flex; align-items: baseline; gap: 3px; font-size: 13px; font-weight: 700; color: #D4911A; white-space: nowrap; }
.coach-rate span { font-weight: 500; color: var(--muted); font-size: 12px; }
.coach-rate.big { font-size: 17px; margin: 6px auto 4px; }
.coach-rate.big span { font-size: 14px; }
.player-row .coach-rate, .tr-coach .coach-rate { display: flex; margin-top: 1px; }
.coach-open { width: 100%; text-align: left; }

.coach-strip { padding: 16px 0 14px; margin-top: 16px; overflow: hidden; }
.cs-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 0 16px 10px; }
.cs-head .label { margin: 0 0 2px; }
.cs-list { display: flex; gap: 10px; overflow-x: auto; padding: 4px 16px 4px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.cs-list::-webkit-scrollbar { display: none; }
.cs-item { flex: none; width: 132px; scroll-snap-align: start; display: flex; flex-direction: column; align-items: center; gap: 3px; text-align: center;
  padding: 14px 10px 12px; border-radius: 20px; background: #F4F7FB; transition: transform .15s var(--ease); }
.cs-item:active { transform: scale(.96); }
.cs-item b { font-family: var(--font-display); font-size: 14px; letter-spacing: -.02em; margin-top: 4px; }
.cs-n { margin-top: 4px; font-size: 11px; font-weight: 650; color: var(--accent-text); background: var(--accent-soft); border-radius: 999px; padding: 3px 9px; }

.training-card .tr-title, .lesson-card .tr-title { font-family: var(--font-display); font-weight: 700; font-size: 17px; letter-spacing: -.02em; margin: 8px 0 4px; }
.tr-coach { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 8px 10px; margin: 6px 0 2px; border-radius: 16px; background: #F4F7FB; font-size: 14px; }
.tr-coach .chev { font-size: 22px; }
.training-card .game-foot .ava-row { display: inline-flex; vertical-align: middle; margin: 0 2px; }
.training-card.mine { box-shadow: var(--shadow), inset 0 0 0 2px var(--accent); }
.my-coaches { display: flex; gap: 8px; overflow-x: auto; margin: 0 0 10px; scrollbar-width: none; }
.mc-chip { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px 5px 5px; border-radius: 999px; background: #fff; font-weight: 600; font-size: 13px; box-shadow: var(--shadow); }

.coach-hero { display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: 22px; }
.coach-hero h1 { margin: 10px 0 2px; font-size: 26px; }
.coach-hero .chips { justify-content: center; flex-wrap: wrap; margin: 6px 0 14px; }
.coach-hero .row2 { width: 100%; }
.chip.static { pointer-events: none; }
.coach-bio { margin: 4px 0 0; line-height: 1.5; font-size: 15px; }
.price-row { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid #EDF1F7; font-size: 14px; font-weight: 600; }
.price-row:last-child { border-bottom: 0; }
.price-row b { font-family: var(--font-display); font-size: 16px; }

.review-sum { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; }
.rs-big { display: flex; flex-direction: column; align-items: center; min-width: 92px; }
.rs-big b { font-family: var(--font-display); font-size: 44px; letter-spacing: -.04em; line-height: 1; }
.rs-stars { color: #F2B230; letter-spacing: 1px; font-size: 15px; margin: 4px 0 2px; }
.rs-bars { display: grid; gap: 5px; }
.rs-bar { display: grid; grid-template-columns: 12px 1fr 18px; gap: 8px; align-items: center; font-size: 12px; color: var(--muted); font-weight: 600; }
.rs-bar i { height: 7px; border-radius: 4px; background: #EEF1F6; overflow: hidden; }
.rs-bar i b { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #F7C75A, #F2B230); }
.review { padding: 14px 16px; }
.review p { margin: 8px 0 6px; line-height: 1.45; font-size: 14px; }
.rv-head { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.rv-stars { color: #F2B230; font-size: 14px; letter-spacing: 1px; }
.rv-stars i { font-style: normal; color: #DDE2EA; }
.stars.big { justify-content: center; gap: 10px; margin: 4px 0 16px; }
.stars.big button { font-size: 40px; }
.tr-sched { padding: 6px 16px; }
.tr-row { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid #EDF1F7; font-size: 14px; }
.tr-row:last-child { border-bottom: 0; }
.trr-when { display: flex; flex-direction: column; align-items: center; min-width: 58px; padding: 6px 4px; border-radius: 14px; background: var(--accent-soft); }
.trr-when b { font-family: var(--font-display); font-size: 16px; color: var(--accent-text); letter-spacing: -.02em; }
.trr-when span { font-size: 11px; color: var(--accent-text); font-weight: 600; white-space: nowrap; }
.tr-row .grow b { font-family: var(--font-display); letter-spacing: -.015em; }
.coach-hero .btn { font-size: 14px; white-space: nowrap; padding-left: 10px; padding-right: 10px; }
.cs-head .link-btn { white-space: nowrap; }

/* Плашка «Выбрать тренера» и окно выбора */
.card.pick-coach { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 14px 16px; margin: 0 0 12px; border: 1.5px dashed rgba(61, 126, 232, .45); background: linear-gradient(135deg, rgba(61, 126, 232, .08), rgba(255, 255, 255, .9)); }
.card.pick-coach b { font-size: 15px; }
.pick-coach .pc-plus { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; font-size: 24px; font-weight: 500; line-height: 1; box-shadow: 0 8px 18px -8px rgba(44, 100, 210, .7); }
.pick-coach .ava-row { flex: none; }
.pick-coach .chev { color: var(--muted); font-size: 22px; }
.pick-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid rgba(20, 40, 80, .07); }
.pick-row .pr-main { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; text-align: left; }
.pick-row .pr-main b { display: block; }
.pick-row .btn { flex: none; min-width: 92px; white-space: nowrap; }
.pick-row.on .btn { color: var(--accent-text); }
#coach-pick-list { margin: 4px 0 16px; }
.nowrap { white-space: nowrap; }

/* Рейтинг: точность уровня и объяснение расчёта */
.rc-rel { display: flex; align-items: center; gap: 10px; margin: 12px 0 6px; font-size: 13px; color: var(--muted); }
.rc-rel-bar { flex: 1; height: 6px; border-radius: 99px; background: rgba(61, 126, 232, .14); overflow: hidden; }
.rc-rel-bar i { display: block; height: 100%; border-radius: 99px; background: var(--grad); }
.rc-rel b { color: var(--text, #14223d); font-size: 13px; }
.calc-line { display: block; font-size: 12px; color: var(--muted); margin-top: 3px; font-weight: 500; }
.how-list { display: grid; gap: 10px; margin: 12px 0 14px; }
.how-list > div { padding: 12px 14px; border-radius: 14px; background: rgba(61, 126, 232, .07); }
.how-list b { display: block; margin-bottom: 3px; }
.how-list span { font-size: 14px; color: var(--muted); line-height: 1.45; }
.bands { display: grid; gap: 4px; }
.band-row { display: flex; gap: 12px; padding: 7px 10px; border-radius: 10px; font-size: 14px; }
.band-row b { min-width: 86px; font-variant-numeric: tabular-nums; }
.band-row.on { background: var(--grad); color: #fff; }

/* Кабинет владельца клуба */
.owner-head { display: flex; align-items: center; gap: 10px; min-width: 0; }
.owner-logo { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--grad); flex: none; }
.owner-logo svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.owner-head .me-head-text { display: flex; flex-direction: column; min-width: 0; }
.owner-head .me-head-text b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.owner-badge { display: inline-block; padding: 4px 10px; border-radius: 99px; background: rgba(61, 126, 232, .12); color: var(--accent-text); font-size: 12px; font-weight: 650; margin-bottom: 8px; }
.btn.link.owner-entry { font-size: 13px; margin-top: 14px; }

/* Уличные корты */
.tag.outdoor { background: #E3F6EC; color: #16804F; }
.outdoor-card .oc-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid rgba(20, 40, 80, .07); }
.outdoor-card .oc-row:first-of-type { border-top: 0; }
.oc-ico { width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(145deg, #DDF5E8, #BDE9D2); }
.oc-ico svg { width: 20px; height: 20px; fill: none; stroke: #16804F; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.outdoor-card .btn.block { margin-top: 8px; }

/* Погода */
.wx-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 8px 0 2px; }
.wx-chip { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px 4px 7px; border-radius: 99px; font-size: 13px; background: #EAF3FF; color: #24508F; }
.wx-chip svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.wx-chip b { font-weight: 700; }
.wx-chip.warn { background: #FFF4DE; color: #8A5A00; }
.wx-chip.bad { background: #FDE8E6; color: #A1302A; }
.wx-chip.loading { color: var(--muted); background: rgba(20, 40, 80, .05); }
.wx-warn { font-size: 13px; font-weight: 600; color: #8A5A00; }
.wx-warn.bad { color: #A1302A; }
.wx-box { margin: 10px 0; padding: 12px 14px; }
.wx-box .label { margin-bottom: 6px; }

/* Карта кортов */
.map-box { position: relative; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); margin-bottom: 8px; background: #EEF3FA; }
.map-svg { display: block; width: 100%; height: auto; }
.map-area { font: 600 12px Inter, sans-serif; fill: #8DA1BF; text-anchor: middle; letter-spacing: .02em; }
.map-pin { position: absolute; transform: translate(-50%, -100%); display: flex; flex-direction: column; align-items: center; gap: 2px; }
.mp-dot { position: relative; width: 34px; height: 34px; border-radius: 50% 50% 50% 6px; transform: rotate(-45deg); display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 14px; border: 2px solid #fff; box-shadow: 0 6px 14px -6px rgba(20, 50, 110, .6); }
.map-pin .mp-dot { background: var(--grad); }
.map-pin.out .mp-dot { background: linear-gradient(145deg, #34C38F, #16804F); }
.mp-dot > * { transform: rotate(45deg); }
.map-pin .mp-dot i { position: absolute; top: -6px; right: -6px; transform: rotate(45deg); min-width: 18px; height: 18px; padding: 0 4px; border-radius: 99px; background: #fff; color: #1F2A44; font: 700 11px/18px Inter, sans-serif; font-style: normal; box-shadow: 0 2px 6px rgba(0, 0, 0, .15); }
.mp-label { padding: 2px 7px; border-radius: 99px; background: #fff; font-size: 11px; font-weight: 650; color: #1F2A44; white-space: nowrap; box-shadow: 0 2px 8px -2px rgba(20, 50, 110, .25); }
.map-pin.on .mp-dot { outline: 3px solid rgba(61, 126, 232, .35); }
.map-pin.on .mp-label { background: #1F2A44; color: #fff; }
.map-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin: 0 4px 12px; }
.map-legend span::before { content: ''; display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; background: var(--grad); }
.map-legend .out::before { background: #16804F; }
.map-row { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 12px 14px; margin-bottom: 8px; }
.map-row.on { outline: 2px solid rgba(61, 126, 232, .4); }
.map-row-dot { width: 32px; height: 32px; flex: none; border-radius: 10px; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 13px; background: var(--grad); }
.map-row-dot.out { background: linear-gradient(145deg, #34C38F, #16804F); }
.map-card .mc-head { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.map-card .mc-head b { font-size: 16px; }
.map-card .row2 .btn { text-align: center; justify-content: center; }

/* Счётчик игроков города */
.city-pulse { padding: 14px 16px; background: linear-gradient(135deg, rgba(61, 126, 232, .1), rgba(255, 255, 255, .92)); }
.cp-top { display: flex; align-items: center; gap: 12px; }
.cp-top .ava-row { flex: none; }
.cp-num { font: 700 28px/1 'Inter Tight', Inter, sans-serif; letter-spacing: -.02em; color: #1F2A44; }
.cp-sub { font-size: 13px; color: var(--muted); margin-top: 3px; }
.cp-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.cp-stats button { display: flex; flex-direction: column; align-items: flex-start; padding: 9px 10px; border-radius: 14px; background: rgba(255, 255, 255, .8); text-align: left; }
.cp-stats b { font: 700 18px/1.1 'Inter Tight', Inter, sans-serif; color: var(--accent-text); }
.cp-stats span { font-size: 11.5px; color: var(--muted); line-height: 1.25; margin-top: 2px; }
a.btn { text-decoration: none; }

/* ---------- Приветствие при первом визите (welcome.js) ---------- */
body.wl-open { overflow: hidden; }
.welcome { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 16px;
  background: rgba(20, 32, 57, .38); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); opacity: 0; transition: opacity .25s var(--ease); }
.welcome.show { opacity: 1; }
.wl-card { position: relative; width: min(420px, 100%); max-height: calc(100dvh - 32px); display: flex; flex-direction: column;
  background: linear-gradient(170deg, #FFFFFF 0%, #F1F6FE 100%); border-radius: 30px; box-shadow: var(--shadow-lg); overflow: hidden; }
.wl-skip { position: absolute; top: 14px; right: 14px; z-index: 2; border: 0; background: rgba(255,255,255,.8); color: var(--muted);
  font: 600 13px var(--font); padding: 7px 12px; border-radius: 999px; cursor: pointer; }
.wl-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; flex: 1; min-height: 0; }
.wl-track::-webkit-scrollbar { display: none; }
.wl-slide { flex: 0 0 100%; scroll-snap-align: start; padding: 54px 24px 8px; overflow-y: auto; }
.wl-slide h2 { font: 700 24px/1.15 var(--font-display); letter-spacing: -.02em; margin: 18px 0 8px; color: var(--navy); }
.wl-slide p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; }
.wl-art { height: 196px; border-radius: 24px; background: var(--grad-soft); display: grid; place-items: center; padding: 16px; position: relative; overflow: hidden; }
.wl-art::after { content: ""; position: absolute; width: 220px; height: 220px; border-radius: 50%; right: -70px; top: -90px; background: radial-gradient(circle, rgba(116,170,244,.35), transparent 70%); }
.wl-hero { gap: 12px; align-content: center; }
.wl-hero .logo-mark { width: 92px; height: 92px; filter: drop-shadow(0 12px 22px rgba(44,100,210,.35)); }
.wl-chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.wl-chips span { background: #fff; border-radius: 999px; padding: 5px 10px; font: 600 12px var(--font); color: var(--accent-text); box-shadow: var(--ring); }
.wl-game { width: 100%; max-width: 300px; background: #fff; border-radius: 20px; padding: 12px; box-shadow: var(--shadow); position: relative; z-index: 1; }
.wl-game-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.wl-game-top b { font: 700 17px var(--font-display); }
.wl-pill { background: var(--accent-soft); color: var(--accent-text); font: 600 12px var(--font); padding: 4px 9px; border-radius: 999px; }
.wl-court { display: grid; grid-template-columns: 1fr 1fr 6px 1fr 1fr; gap: 6px; align-items: stretch; }
.wl-court i { background: linear-gradient(var(--accent-2), var(--accent)); border-radius: 3px; grid-column: 3; grid-row: 1; }
.wl-court .wl-p:nth-child(1) { grid-column: 1; } .wl-court .wl-p:nth-child(2) { grid-column: 2; }
.wl-court .wl-p:nth-child(4) { grid-column: 4; } .wl-court .wl-p:nth-child(5) { grid-column: 5; }
.wl-p { display: flex; flex-direction: column; align-items: center; gap: 4px; font: 600 11px var(--font); color: var(--navy-2); background: var(--grad-soft); border-radius: 14px; padding: 8px 2px; grid-row: 1; }
.wl-p.free { color: var(--accent-text); background: #fff; border: 1.5px dashed var(--accent-2); justify-content: center; }
.wl-lvl { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; font: 700 11px var(--font-display); }
.wl-sum { width: 100%; max-width: 300px; background: #fff; border-radius: 20px; padding: 6px 14px; box-shadow: var(--shadow); position: relative; z-index: 1; }
.wl-sum div { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.wl-sum div:last-child { border: 0; }
.wl-sum span { color: var(--muted); } .wl-sum b.ok { color: #1E9E62; }
.wl-chart { width: 100%; max-width: 300px; background: #fff; border-radius: 20px; padding: 14px; box-shadow: var(--shadow); position: relative; z-index: 1; }
.wl-chart svg { width: 100%; height: 90px; display: block; }
.wl-delta { font: 700 26px var(--font-display); color: #1E9E62; }
.wl-delta span { display: block; font: 500 12px var(--font); color: var(--muted); }
.wl-chat { width: 100%; max-width: 300px; display: flex; flex-direction: column; gap: 8px; position: relative; z-index: 1; font-size: 13px; }
.wl-chat div { padding: 9px 12px; border-radius: 16px; max-width: 80%; }
.wl-chat .sys { align-self: center; background: rgba(255,255,255,.7); color: var(--muted); font-size: 12px; }
.wl-chat .in { align-self: flex-start; background: #fff; box-shadow: var(--ring); }
.wl-chat .out { align-self: flex-end; background: var(--grad); color: #fff; }
.wl-circle { display: flex; align-items: center; position: relative; z-index: 1; }
.wl-circle span { width: 54px; height: 54px; border-radius: 50%; margin-left: -12px; display: grid; place-items: center; border: 3px solid #fff;
  background: hsl(var(--h) 70% 88%); color: hsl(var(--h) 55% 32%); font: 700 20px var(--font-display); box-shadow: var(--shadow); }
.wl-circle span:first-child { margin-left: 0; }
.wl-circle b { position: absolute; right: -14px; top: -10px; width: 30px; height: 30px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; box-shadow: var(--glow); }
.wl-dots { display: flex; justify-content: center; gap: 6px; padding: 14px 0 4px; }
.wl-dots button { width: 7px; height: 7px; border-radius: 999px; border: 0; padding: 0; background: var(--navy-soft); cursor: pointer; transition: width .2s var(--ease), background .2s; }
.wl-dots button.on { width: 22px; background: var(--accent); }
.wl-actions { padding: 10px 24px 22px; display: grid; gap: 8px; }

/* ---------- Живая версия (live.js) ---------- */
.btn.tg-btn { background: #2AABEE; color: #fff; display: flex; align-items: center; justify-content: center; gap: 10px; box-shadow: 0 10px 22px -10px rgba(42,171,238,.7); }
.btn.tg-btn .soc.tg { background: #fff; color: #2AABEE; }
.btn.tg-btn[disabled] { opacity: .6; }
.cp-early { margin: 8px 0 0; color: var(--accent-text); background: var(--accent-soft); border-radius: 14px; padding: 8px 10px; }
.invite-app { background: var(--grad-soft); }
.result-line.pending { background: #FFF7E8; border-radius: 14px; padding: 10px 12px; display: grid; gap: 8px; }
.result-line.pending .btns { display: flex; gap: 6px; }
.share-input { width: 100%; padding: 12px; border-radius: 14px; border: 1px solid var(--line); font: 500 14px var(--font); }
.center { text-align: center; }
/* В живой версии пока нет: тренеров, брони и оплаты в приложении, турниров, кабинета клуба, демо-групп в Telegram */
.live [data-act="chat-tg"], .live .tg-note, .live [data-act="owner-login"], .live .owner-entry, .live .coach-entry,
.live [data-act="coaches-open"], .live [data-act="book-open"], .live [data-act="tour-create-open"], .live [data-act="checkin-open"],
.live [data-act="sub-buy"], .live [data-tab="tours"] { display: none !important; }

/* ---------- Без прокрутки вбок: всё помещается по ширине, страница листается только вверх-вниз ---------- */
html, body { overflow-x: hidden; overflow-x: clip; max-width: 100%; }
img, svg, video { max-width: 100%; }
/* Дни недели — ровной сеткой во всю ширину */
.date-strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 5px; overflow: visible; margin: 0; padding: 2px 0 10px; }
.date-strip .day { width: auto; min-width: 0; padding: 8px 0; border-radius: 16px; }
.date-strip .day span { font-size: 10px; letter-spacing: 0; }
.date-strip .day b { font-size: 17px; }
/* Фильтры-чипы — переносятся на новую строку */
.chips.scroll { flex-wrap: wrap; overflow: visible; margin: 0; padding: 2px 0 6px; }
/* Тренеры на главной — сеткой по две карточки */
.cs-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; scroll-snap-type: none; }
.cs-item { width: auto; }
.my-coaches { flex-wrap: wrap; overflow: visible; }
/* Приветствие листается кнопками «Далее» и точками, без свайпа вбок */
.wl-track { overflow-x: hidden; touch-action: pan-y; }
.wl-slide { touch-action: pan-y; }
.wl-track { overflow: visible; transition: transform .35s var(--ease); will-change: transform; }
