/* ==========================================================================
   BIG GAME — Экосистема приложения («Chronograph Obsidian & Brushed Gold»)
   Принципы: No Boxes-in-Boxes, Tonal Elevation, Jewel-Light Budget, 1-line CTA
   ========================================================================== */

/* КРИТИЧНО: гарантированное скрытие элементов с атрибутом [hidden] */
[hidden] {
  display: none !important;
}

/* Splash Screen */
.splash-wordmark {
  font-family: var(--font-brand);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--brushed-gold);
  margin-top: 14px;
  text-align: center;
}

.splash-slogan {
  font-family: var(--font-brand);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--text-secondary);
  margin-top: 6px;
  text-align: center;
}

/* Регистрация */
.auth-brand-compact { position: relative; }
.auth-brand-caption {
  position: absolute;
  bottom: 12px;
  left: 16px;
  right: 16px;
  font-family: var(--font-brand);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--gold-highlight);
  text-align: center;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
}
.auth-consent.is-optional {
  border-top: 1px solid var(--hairline-dark);
  padding-top: 10px;
}
.auth-optional-details {
  border-top: 1px solid var(--hairline-dark);
  border-bottom: 1px solid var(--hairline-dark);
  padding: 12px 0;
}
.auth-optional-details summary {
  font-family: var(--font-brand);
  font-size: 14px;
  font-weight: 600;
  color: var(--brushed-gold);
  cursor: pointer;
}
.auth-optional-body { display: grid; gap: 12px; margin-top: 12px; }

/* Компактная, ювелирная шапка без лишних рамок */
.club-header { gap: 10px; }
.header-brand { flex: 1; min-width: 0; }
.header-brand-box { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.header-screen-name { overflow: hidden; text-overflow: ellipsis; }

.header-back-btn {
  width: 34px;
  height: 34px;
  margin-left: -6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  transition: background-color 140ms ease;
}
.header-back-btn:hover { background: var(--obsidian-raised); }

.header-right-tools { display: flex; align-items: center; gap: 6px; }

.icon-square-btn,
.icon-ghost-btn {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: color 140ms ease, background-color 140ms ease;
}
.icon-square-btn:hover,
.icon-ghost-btn:hover {
  color: var(--text-primary);
  background: var(--obsidian-surface);
}

.notif-dot-badge {
  position: absolute;
  top: 4px;
  right: 3px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: var(--radius-xs);
  background: var(--deep-burgundy);
  color: var(--text-primary);
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--obsidian-void);
}

/* Базовые элементы, кнопки (строго однострочные!) и типографические статусы */
.bg-input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--hairline-dark);
  background: var(--obsidian-surface);
  color: var(--text-primary);
  font-family: var(--font-numeric);
  font-size: 15px;
  transition: border-color 150ms ease;
}
.bg-input:focus { outline: none; border-color: var(--brushed-gold); }

.btn-gold-cta,
.btn-secondary-bg,
.btn-danger-solid,
.btn-danger-outline {
  min-width: 0;
  max-width: 100%;
  height: auto;
  min-height: 48px;
  padding-top: 10px;
  padding-bottom: 10px;
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: center;
  line-height: 1.2;
}

.btn-compact {
  height: auto !important;
  min-height: 44px !important;
  padding: 8px 12px !important;
  font-size: 13px !important;
  letter-spacing: 0.03em !important;
  line-height: 1.18 !important;
}

.btn-xs {
  height: 34px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  font-family: var(--font-brand);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.btn-secondary-bg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 18px;
  border-radius: var(--radius-md);
  background: var(--obsidian-raised);
  box-shadow: inset 0 1px 0 rgba(244, 241, 236, 0.07);
  border: 1px solid rgba(244, 241, 236, 0.08);
  color: var(--text-primary);
  font-family: var(--font-brand);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: background-color 140ms ease, transform 110ms ease;
}
.btn-secondary-bg:hover { background: var(--obsidian-elevated); }
.btn-secondary-bg:active { transform: translateY(1px); }

.btn-danger-solid {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  width: 100%;
  border-radius: var(--radius-md);
  background: var(--deep-burgundy);
  color: var(--text-primary);
  font-family: var(--font-brand);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.btn-danger-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(196, 91, 91, 0.45);
  background: rgba(160, 71, 71, 0.12);
  color: var(--burgundy-bright);
  font-family: var(--font-brand);
  font-size: 13px;
  font-weight: 600;
}

/* Бесрамочная точечная метка статуса (вместо грубых рамочных бейджей) */
.status-dot-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-brand);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.status-dot-label::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 1px;
  background: currentColor;
  flex-shrink: 0;
}
.status-dot-label.is-open { color: var(--text-secondary); }
.status-dot-label.is-registered { color: var(--brushed-gold); }
.status-dot-label.is-full,
.status-dot-label.is-waitlist { color: var(--burgundy-bright); }
.status-dot-label.is-closed,
.status-dot-label.is-finished { color: var(--text-muted); }
.status-dot-label.is-cancelled { color: #B87B7B; }

/* Компактный тег только для одиночных акцентов на вложенных экранах */
.status-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: var(--radius-xs);
  font-family: var(--font-brand);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.status-tag.is-open,
.status-tag.is-gold-tag,
.status-tag.is-registered { background: rgba(216, 162, 94, 0.14); color: var(--gold-highlight); }
.status-tag.is-full,
.status-tag.is-waitlist,
.status-tag.is-burgundy-tag { background: rgba(160, 71, 71, 0.2); color: var(--burgundy-bright); }
.status-tag.is-closed,
.status-tag.is-finished,
.status-tag.is-cancelled { background: var(--obsidian-raised); color: var(--text-secondary); }

.is-gold-text { color: var(--brushed-gold); }
.muted-note { color: var(--text-secondary); font-size: 14px; line-height: 1.45; }
.body-copy { color: var(--text-secondary); font-size: 15px; line-height: 1.5; }
.inline-gold-link { color: var(--brushed-gold); text-decoration: none; font-weight: 700; }

/* ==========================================================================
   ЭКРАН 1: ГЛАВНАЯ — ЧИСТЫЙ EDITORIAL-ЛЮКС БЕЗ КОРОБОК В КОРОБКАХ
   ========================================================================== */
.home-guest-card { cursor: pointer; }

/* Компактный посадочный билет «Ваша запись» (1 тональный слой, 0 вложенных коробок) */
.booking-ticket-clean {
  background: linear-gradient(155deg, rgba(28, 25, 24, 0.96) 0%, rgba(17, 15, 15, 0.98) 100%);
  border: 1px solid rgba(216, 162, 94, 0.2);
  border-radius: var(--radius-lg);
  box-shadow: inset 0 1px 0 rgba(255, 246, 224, 0.08), 0 10px 26px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.btc-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  cursor: pointer;
}
.btc-copy { min-width: 0; }
.btc-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.btc-code { font-size: 13px; color: var(--text-muted); font-weight: 600; }
.btc-title {
  font-family: var(--font-brand);
  font-size: 19px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}
.btc-time { font-size: 14px; color: var(--text-secondary); margin-top: 4px; }
.btc-emblem {
  width: 78px;
  height: 78px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: radial-gradient(circle at 50% 45%, rgba(216, 162, 94, 0.16) 0%, rgba(16, 14, 14, 0.45) 72%);
  border: 1px solid rgba(216, 162, 94, 0.16);
  padding: 6px;
}
.btc-emblem img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.45));
}

.btc-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  border-top: 1px solid rgba(255, 246, 224, 0.07);
  background: rgba(11, 10, 10, 0.35);
}
.btc-action-primary {
  height: 44px;
  padding: 0 18px;
  text-align: left;
  font-family: var(--font-brand);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--brushed-gold);
}
.btc-action-cancel {
  height: 44px;
  padding: 0 18px;
  border-left: 1px solid rgba(255, 246, 224, 0.07);
  font-family: var(--font-brand);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
}
.btc-action-cancel:hover { color: var(--burgundy-bright); }

.btc-live-foot {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-top: 1px solid var(--hairline-dark);
  background: linear-gradient(90deg, rgba(160, 71, 71, 0.16) 0%, rgba(20, 18, 18, 0) 80%);
  color: var(--text-secondary);
  font-size: 13px;
  text-align: left;
}
.btc-live-text { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.btc-live-text strong { color: var(--text-primary); }
.btc-live-clock { color: var(--brushed-gold); font-weight: 700; white-space: nowrap; }

/* Карусель турниров — строго единая высота, единый размер эмблем и 1 уровень кнопок */
.events-carousel {
  display: flex;
  align-items: stretch;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  padding: 2px var(--gutter) 6px;
  scrollbar-width: none;
}
.events-carousel::-webkit-scrollbar { display: none; }

.carousel-showcase-slide {
  flex: 0 0 86%;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}

.carousel-showcase-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 108px;
  align-items: center;
  gap: 12px;
  min-height: 124px;
}

.carousel-left-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.carousel-title-clamp {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 48px;
  line-height: 1.2;
}

.carousel-emblem-slot {
  width: 108px;
  height: 108px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
}

.carousel-emblem-slot .emblem-3d-stage,
.carousel-emblem-slot .emblem-3d-rig {
  width: 100%;
  height: 100%;
}

.carousel-emblem-slot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.carousel-cta-aligned {
  margin-top: 14px;
  height: 48px !important;
  flex-shrink: 0;
}

/* Компактный адрес клуба на Главной */
.address-compact-card {
  background: var(--obsidian-surface);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  box-shadow: inset 0 1px 0 rgba(244, 241, 236, 0.05);
}
.address-compact-main {
  font-family: var(--font-brand);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}
.address-compact-meta {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 4px 0 12px;
}

/* Подиум */
.podium-player-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  color: inherit;
}
.podium-medal-text {
  margin-top: 3px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

/* Приборная полоса хронографа (без внешней коробки, чистые 1px линии) */
.chronograph-kpi-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--hairline-dark);
  border-bottom: 1px solid var(--hairline-dark);
  background: var(--obsidian-surface);
}
.chronograph-kpi-bar.social-kpi-3 { grid-template-columns: repeat(3, 1fr); }
.chronograph-kpi-bar.dual-kpi { grid-template-columns: repeat(2, 1fr); }

.ckb-cell {
  padding: 14px 8px;
  text-align: center;
  border-right: 1px solid var(--hairline-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}
.ckb-cell:last-child { border-right: none; }
.ckb-btn { transition: background-color 140ms ease; }
.ckb-btn:hover { background: var(--obsidian-raised); }
.ckb-label { font-size: 13px; color: var(--text-muted); }
.ckb-val {
  font-family: var(--font-numeric);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
}
.ckb-val.is-gold { color: var(--brushed-gold); }
.ckb-val.is-burgundy { color: var(--burgundy-bright); }
.ckb-sub { font-size: 13px; color: var(--text-secondary); margin-top: 2px; }

/* Блок 5 Главной — премиальная панель «Моя статистика» */
.home-stats-panel {
  background:
    radial-gradient(90% 80% at 10% 0%, rgba(216, 162, 94, 0.14) 0%, rgba(20, 18, 18, 0) 68%),
    linear-gradient(160deg, rgba(26, 23, 23, 0.96) 0%, rgba(15, 14, 14, 0.98) 100%);
  border: 1px solid rgba(216, 162, 94, 0.18);
  border-radius: var(--radius-lg);
  box-shadow: inset 0 1px 0 rgba(255, 246, 224, 0.08), 0 10px 26px rgba(0, 0, 0, 0.26);
  overflow: hidden;
}
.hsp-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.hsp-cell {
  padding: 15px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 6px;
  border-bottom: 1px solid rgba(255, 246, 224, 0.06);
}
.hsp-cell:nth-child(odd) {
  border-right: 1px solid rgba(255, 246, 224, 0.06);
}
.hsp-kicker {
  font-family: var(--font-brand);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.hsp-val {
  font-family: var(--font-numeric);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.05;
  color: var(--text-primary);
}
.hsp-val.is-gold-grad {
  background: linear-gradient(180deg, #F5D7A8 0%, #D8A25E 65%, #A67131 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hsp-val.is-burgundy { color: var(--burgundy-bright); }
.hsp-footer-btn {
  width: 100%;
  height: 42px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(11, 10, 10, 0.32);
  font-family: var(--font-brand);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brushed-gold);
}
.hsp-footer-btn:hover { background: rgba(216, 162, 94, 0.07); }

/* Редакционные блоки Private Community & Первый раз */
.editorial-community-banner {
  background:
    radial-gradient(120% 100% at 95% 0%, rgba(216, 162, 94, 0.2) 0%, rgba(160, 71, 71, 0.14) 48%, rgba(20, 18, 18, 0) 78%),
    var(--obsidian-surface);
  border-radius: var(--radius-lg);
  padding: 20px 18px;
  box-shadow: inset 0 1px 0 rgba(236, 197, 134, 0.22);
}
.ed-kicker {
  display: block;
  font-family: var(--font-brand);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brushed-gold);
}
.ed-title {
  font-family: var(--font-brand);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 6px 0 8px;
  letter-spacing: -0.01em;
}
.ed-copy {
  font-size: 15px;
  line-height: 1.45;
  color: var(--text-secondary);
  margin-bottom: 16px;
}
.ed-btn { width: 100%; justify-content: space-between; padding: 0 16px; }

.editorial-guide-row {
  width: 100%;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  background: var(--obsidian-surface);
  border-radius: var(--radius-lg);
  box-shadow: inset 0 1px 0 rgba(244, 241, 236, 0.05);
  transition: background-color 140ms ease;
}
.editorial-guide-row:hover { background: var(--obsidian-raised); }
.editorial-guide-row.is-gold-accent {
  background:
    radial-gradient(100% 120% at 95% 50%, rgba(216, 162, 94, 0.14) 0%, transparent 70%),
    var(--obsidian-surface);
}
.egr-title { font-family: var(--font-brand); font-size: 17px; font-weight: 700; color: var(--text-primary); margin: 4px 0; }
.egr-sub { font-size: 14px; color: var(--text-secondary); line-height: 1.35; }
.egr-arrow { color: var(--brushed-gold); flex-shrink: 0; }

/* Клубный сервис (6 матовых плиток с векторными иконками, без шумных рамок) */
.club-service-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.service-tile {
  text-align: left;
  background: var(--obsidian-surface);
  border-radius: var(--radius-md);
  padding: 14px;
  box-shadow: inset 0 1px 0 rgba(244, 241, 236, 0.05);
  display: flex;
  flex-direction: column;
  gap: 5px;
  transition: background-color 140ms ease, transform 110ms ease;
}
.service-tile:hover { background: var(--obsidian-raised); }
.service-tile:active { transform: translateY(1px); }
.service-tile.is-featured {
  background: linear-gradient(180deg, #1B1715 0%, #141212 100%);
  box-shadow: inset 0 1px 0 rgba(216, 162, 94, 0.25);
}
.st-icon { color: var(--brushed-gold); margin-bottom: 4px; display: inline-flex; }
.service-tile strong { font-family: var(--font-brand); font-size: 15px; font-weight: 600; color: var(--text-primary); }
.service-tile small { font-size: 13px; color: var(--text-muted); }

/* Адрес */
.address-editorial {
  background: var(--obsidian-surface);
  border-radius: var(--radius-lg);
  padding: 18px 16px;
  box-shadow: inset 0 1px 0 rgba(244, 241, 236, 0.05);
}
.address-main { font-family: var(--font-brand); font-size: 18px; font-weight: 700; color: var(--text-primary); }
.address-metro { font-size: 14px; color: var(--brushed-gold); margin: 4px 0 14px; }
.address-details-list { display: grid; gap: 10px; margin: 0 0 16px; }
.address-details-list div {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 8px;
  font-size: 14px;
  line-height: 1.4;
  padding-top: 10px;
  border-top: 1px solid var(--hairline-dark);
}
.address-details-list dt { color: var(--text-muted); }
.address-details-list dd { margin: 0; color: var(--text-secondary); }
.address-actions-row,
.ab-actions-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
}
.address-phone-link {
  display: inline-flex;
  align-items: center;
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 600;
  color: var(--gold-highlight);
  text-decoration: none;
  letter-spacing: 0.02em;
}
.address-phone-link:hover { color: #F5D7A8; }
.address-actions-row > *,
.ab-actions-row > * {
  min-width: 0;
  width: 100%;
}

/* ==========================================================================
   ЭКРАН 2: ТУРНИРЫ (чистые underline-фильтры, крупные 3D-эмблемы)
   ========================================================================== */
.tourn-top-controls { padding-top: 14px; }
.tourn-title-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.tourn-toolbar-btns { display: flex; gap: 6px; }

.tool-ghost-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 10px;
  border-radius: var(--radius-xs);
  background: var(--obsidian-surface);
  color: var(--text-secondary);
  font-family: var(--font-brand);
  font-size: 13px;
  font-weight: 600;
}
.tool-ghost-btn.is-active { color: var(--brushed-gold); background: var(--obsidian-raised); }

.cat-underline-row {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  border-bottom: 1px solid var(--hairline-dark);
  scrollbar-width: none;
}
.cat-underline-row::-webkit-scrollbar { display: none; }

.cat-clean-tab {
  position: relative;
  flex: 0 0 auto;
  padding: 8px 0 10px;
  font-family: var(--font-brand);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}
.cat-clean-tab.is-active { color: var(--text-primary); }
.cat-clean-tab.is-active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--brushed-gold);
}

.sort-strip { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.sort-label { font-size: 13px; color: var(--text-muted); }
.sort-clean-select {
  height: 36px;
  padding: 0 28px 0 10px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--hairline-dark);
  background:
    var(--obsidian-surface)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23D8A25E' stroke-width='2.2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")
    no-repeat right 9px center;
  appearance: none;
  -webkit-appearance: none;
  color: var(--text-primary);
  font-family: var(--font-numeric);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
}
.rating-filter-bar .sort-clean-select {
  height: 44px;
}

.month-cal-drawer {
  margin: 10px var(--gutter) 4px;
  padding: 12px;
  background: var(--obsidian-surface);
  border-radius: var(--radius-md);
}
.month-cal-head { display: flex; justify-content: space-between; font-size: 13px; color: var(--text-secondary); margin-bottom: 8px; }
.month-cal-weekdays, .month-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.month-cal-weekdays span { font-size: 12px; color: var(--text-muted); padding-bottom: 4px; }
.cal-day-cell { height: 34px; border-radius: var(--radius-xs); color: var(--text-secondary); font-size: 14px; position: relative; }
.cal-day-cell.has-event { color: var(--text-primary); font-weight: 700; }
.cal-day-cell.has-event::after { content: ''; position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%); width: 4px; height: 4px; background: var(--brushed-gold); }
.cal-day-cell.is-selected { background: var(--brushed-gold); color: var(--text-on-gold); }

.tourn-catalog-body { padding-top: 14px; display: grid; gap: 14px; }
.is-muted-card { opacity: 0.65; }

.tourn-compact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tourn-list-stack { display: grid; gap: 14px; }

.tourn-compact-card {
  background: var(--obsidian-surface);
  border-radius: var(--radius-md);
  box-shadow: inset 0 1px 0 rgba(244, 241, 236, 0.05);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}
.tcc-visual {
  height: 112px;
  background: radial-gradient(circle at 50% 55%, rgba(160, 71, 71, 0.24), var(--obsidian-void) 76%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.tcc-emblem-img { width: 82px; height: 82px; object-fit: contain; }
.tcc-body { padding: 10px 12px 12px; display: grid; gap: 4px; }
.tcc-dot-status { font-size: 11px; }
.tcc-date { font-size: 13px; color: var(--brushed-gold); font-weight: 700; }
.tcc-title { font-family: var(--font-brand); font-size: 15px; font-weight: 700; color: var(--text-primary); line-height: 1.25; }
.tcc-seats { font-size: 13px; color: var(--text-muted); }

/* ==========================================================================
   ЭКРАН 3: РЕЙТИНГ
   ========================================================================== */
.screen-sub-caption { font-size: 13px; color: var(--text-muted); margin-top: 4px; }
.rating-podium-wrap { padding-top: 14px; }

.rating-my-strip {
  background: linear-gradient(155deg, rgba(26, 23, 23, 0.96) 0%, rgba(16, 14, 14, 0.98) 100%);
  border: 1px solid rgba(216, 162, 94, 0.2);
  border-radius: var(--radius-lg);
  box-shadow: inset 0 1px 0 rgba(255, 246, 224, 0.08);
}
.my-pos-clean {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 16px;
}
.mpc-rank span { display: block; font-size: 10px; font-weight: 600; letter-spacing: 0.08em; color: var(--text-muted); }
.mpc-rank strong { font-size: 26px; line-height: 1.05; color: var(--brushed-gold); }
.mpc-stats { display: flex; gap: 18px; }
.mpc-stats div { text-align: center; }
.mpc-stats strong { display: block; font-size: 18px; line-height: 1.1; color: var(--text-primary); white-space: nowrap; }
.mpc-stats span { font-size: 11px; color: var(--text-muted); }
.mpc-find { white-space: nowrap; font-size: 12px; }

.my-pos-empty-clean {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
}
.my-pos-empty-clean p { font-size: 13px; color: var(--text-secondary); margin-top: 2px; }

.rating-filter-bar {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding-top: 14px;
  padding-bottom: 12px;
}
.rating-sort-segment {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 3px;
  border-radius: var(--radius-md);
  background: var(--obsidian-surface);
  border: 1px solid rgba(255, 246, 224, 0.07);
  gap: 4px;
}
.rss-btn {
  height: 36px;
  border-radius: calc(var(--radius-md) - 3px);
  font-family: var(--font-brand);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: background-color 140ms ease, color 140ms ease;
}
.rss-btn.is-active {
  background: rgba(216, 162, 94, 0.16);
  color: var(--gold-highlight);
  box-shadow: inset 0 0 0 1px rgba(216, 162, 94, 0.28);
}
.search-field-wrap { position: relative; }
.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  display: inline-flex;
}
.search-input-pad { padding-left: 36px; }

.rating-table-head-v2,
.rating-row-v2 {
  display: grid !important;
  grid-template-columns: 30px minmax(0, 1fr) 40px 36px 66px !important;
  align-items: center;
  gap: 6px;
}
.rating-row-v2 { width: 100%; text-align: left; }
.rating-row-v2 .r-player-identity { grid-column: auto !important; }
.rating-row-v2 .r-points { white-space: nowrap; }
.r-medals { text-align: center; color: var(--brushed-gold); font-weight: 700; font-size: 14px; }
.r-ko { text-align: right; color: var(--text-secondary); font-size: 14px; }
.is-flash-highlight { animation: bg-flash 1.3s ease; }
@keyframes bg-flash {
  0%, 100% { background: #1A1614; }
  40% { background: rgba(216, 162, 94, 0.28); }
}
.legal-footnote { font-size: 13px; color: var(--text-muted); padding-top: 14px; padding-bottom: 10px; line-height: 1.4; }

/* ==========================================================================
   ЭКРАН 4: ПРОФИЛЬ (МЕТАЛЛИЧЕСКАЯ 3D-КАРТА + ВИТРИНА ТРОФЕЕВ + ГРАФИК)
   ========================================================================== */
.profile-identity-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  padding-bottom: 4px;
}
.pih-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.resident-avatar-md { width: 48px; height: 48px; flex-shrink: 0; }
.pih-text { min-width: 0; }
.pih-nick {
  font-family: var(--font-brand);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pih-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 3px;
  font-size: 13px;
  color: var(--text-muted);
}
.pih-status-link { font-family: var(--font-brand); font-size: 13px; font-weight: 700; letter-spacing: 0.05em; }
.pih-actions { display: flex; gap: 4px; }

.mcard-monogram-clean { width: 78px; height: 52px; display: block; margin: 0 auto; }
.mcard-slogan-text { font-family: var(--font-brand); font-size: 11px; letter-spacing: 0.22em; color: var(--text-secondary); margin-top: 6px; text-align: center; }

/* График рейтинга */
.chart-clean-tabs { display: flex; gap: 14px; }
.interactive-chart-clean {
  background: var(--obsidian-surface);
  border-radius: var(--radius-lg);
  padding: 14px;
  box-shadow: inset 0 1px 0 rgba(244, 241, 236, 0.05);
}
.chart-legend-row { display: flex; gap: 14px; font-size: 13px; color: var(--text-secondary); margin-bottom: 8px; }
.leg-dot { display: inline-block; width: 8px; height: 8px; margin-right: 5px; border-radius: 1px; }
.leg-dot.is-win { background: var(--gold-highlight); transform: rotate(45deg); }
.leg-dot.is-final { background: var(--burgundy-bright); }
.leg-dot.is-reg { background: var(--text-secondary); }
.rating-svg-chart { width: 100%; height: auto; display: block; }
.chart-point-node { cursor: pointer; }
.chart-point-detail { margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--hairline-dark); }
.cpd-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.cpd-head h4 { font-family: var(--font-brand); font-size: 16px; color: var(--text-primary); margin-top: 4px; }
.cpd-head small { font-size: 13px; color: var(--text-muted); }
.cpd-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 10px; }
.cpd-metrics span { display: block; font-size: 12px; color: var(--text-muted); }
.cpd-metrics strong { font-size: 16px; color: var(--text-primary); }
.cpd-metrics strong.is-gold { color: var(--brushed-gold); }

/* Ювелирная витрина трофеев (парящие 3D-медали без рамочных коробок) */
.muted-count { color: var(--text-muted); font-weight: 500; font-size: 14px; }
.trophy-showcase-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.trophy-pedestal {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 8px 4px;
  text-align: center;
}
.trophy-pedestal.is-locked img { filter: grayscale(1) opacity(0.32); }
.trophy-glow-wrap {
  position: relative;
  width: 62px;
  height: 62px;
  border-radius: var(--radius-md);
  background: radial-gradient(circle at 50% 50%, rgba(216, 162, 94, 0.14) 0%, rgba(20, 18, 18, 0.5) 75%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.trophy-glow-wrap img { width: 52px; height: 52px; object-fit: contain; }
.trophy-pedestal span { font-size: 12px; color: var(--text-secondary); line-height: 1.2; }
.medal-qty {
  position: absolute;
  top: 2px;
  right: 2px;
  padding: 1px 4px;
  border-radius: var(--radius-xs);
  background: var(--brushed-gold);
  color: var(--text-on-gold);
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
}

/* Полноширинный поток строк (вместо коробок в коробках) */
.clean-list-stream {
  border-top: 1px solid var(--hairline-dark);
  background: var(--obsidian-surface);
}
.stream-row-item {
  width: 100%;
  padding: 14px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--hairline-dark);
  text-align: left;
  transition: background-color 140ms ease;
}
.stream-row-item:hover { background: var(--obsidian-raised); }
.stream-row-item strong { display: block; font-family: var(--font-brand); font-size: 15px; font-weight: 600; color: var(--text-primary); }
.stream-row-item span { font-size: 13px; color: var(--text-muted); }
.stream-meta { font-family: var(--font-numeric); font-size: 14px; font-weight: 600; color: var(--text-secondary); white-space: nowrap; }

.compact-empty-card {
  background: var(--obsidian-surface);
  border-radius: var(--radius-md);
  padding: 14px;
  color: var(--text-secondary);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

/* ==========================================================================
   ВЛОЖЕННЫЕ СТРАНИЦЫ И МОДАЛКИ
   ========================================================================== */
.subpage-viewport { padding-bottom: 110px; }
.tourn-detail-page { padding-bottom: 92px; }
.td-hero {
  padding: 16px var(--gutter);
  background:
    radial-gradient(120% 90% at 88% 45%, rgba(160, 71, 71, 0.25) 0%, rgba(20, 18, 18, 0) 70%),
    var(--obsidian-surface);
  border-bottom: 1px solid var(--hairline-dark);
}
.td-hero-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.td-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 108px; gap: 12px; align-items: center; }
.td-title { font-family: var(--font-brand); font-size: 23px; font-weight: 700; color: var(--text-primary); margin: 4px 0; line-height: 1.2; }
.td-short { font-size: 14px; color: var(--text-secondary); }
.td-emblem-box { width: 108px; height: 108px; }
.td-section { padding-top: 20px; }
.td-seats-ratio { font-size: 16px; color: var(--text-secondary); }
.td-seats-ratio strong { color: var(--brushed-gold); }
.progress-fill.is-burgundy-fill { background: var(--burgundy-bright); }

.friends-going-note {
  background: rgba(216, 162, 94, 0.1);
  border-radius: var(--radius-xs);
  padding: 8px 10px;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 10px;
}
.friends-going-note strong { color: var(--gold-highlight); }

.participants-chip-list { display: flex; flex-wrap: wrap; gap: 8px; }
.participant-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px 5px 5px;
  border-radius: var(--radius-sm);
  background: var(--obsidian-surface);
  color: var(--text-primary);
  font-size: 13px;
}
.participant-chip img { width: 24px; height: 24px; border-radius: var(--radius-xs); }

.td-kv-list { display: grid; margin-top: 8px; }
.td-kv-list div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--hairline-dark);
  font-size: 14px;
}
.td-kv-list dt { color: var(--text-muted); }
.td-kv-list dd { margin: 0; color: var(--text-primary); text-align: right; }

.legal-inline-box {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-xs);
  background: var(--obsidian-surface);
  border-left: 2px solid var(--brand-charcoal);
  font-size: 13px;
  color: var(--text-secondary);
}

.td-medal-card {
  width: 100%;
  text-align: left;
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--obsidian-surface);
  border-radius: var(--radius-md);
  box-shadow: inset 0 1px 0 rgba(216, 162, 94, 0.22);
  color: var(--text-primary);
}
.td-medal-card img { width: 62px; height: 62px; object-fit: contain; }
.td-medal-card p { font-size: 13px; color: var(--text-secondary); margin-top: 3px; }
.td-medal-card small { font-size: 13px; color: var(--brushed-gold); }

.extra-actions-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
  margin-top: 10px;
}
.extra-actions-grid > * {
  min-width: 0;
  width: 100%;
}
.extra-actions-grid .is-span-full {
  grid-column: 1 / -1;
}

.sticky-bottom-cta {
  position: fixed;
  bottom: var(--tabbar-height);
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 390px;
  padding: 10px var(--gutter);
  background: rgba(11, 10, 10, 0.95);
  border-top: 1px solid var(--hairline-dark);
  z-index: 35;
}

.booking-full-card,
.about-pres-card,
.service-detail-card,
.status-level-card,
.concierge-hero-card,
.deposit-bar-card,
.address-card {
  background: var(--obsidian-surface);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: inset 0 1px 0 rgba(244, 241, 236, 0.05);
  margin-bottom: 12px;
}
.service-detail-card.is-highlighted,
.status-level-card.is-current { box-shadow: inset 0 1px 0 rgba(216, 162, 94, 0.45); }

.ab-top-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ab-code { font-size: 11px; font-weight: 500; letter-spacing: 0.05em; color: rgba(244, 241, 236, 0.42); }
.ab-body-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 10px 0 12px; }
.ab-info-col { min-width: 0; flex: 1; }
.ab-title { font-family: var(--font-brand); font-size: 18px; font-weight: 700; color: var(--text-primary); line-height: 1.2; }
.ab-datetime { font-size: 14px; color: var(--gold-highlight); margin-top: 4px; font-weight: 600; }
.ab-address { font-size: 12px; margin-top: 3px; }
.ab-emblem-mini img { width: 46px; height: 46px; object-fit: contain; flex-shrink: 0; }

.ab-emblem-hero {
  width: 78px;
  height: 78px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: radial-gradient(circle at 50% 45%, rgba(216, 162, 94, 0.16) 0%, rgba(16, 14, 14, 0.45) 72%);
  border: 1px solid rgba(216, 162, 94, 0.16);
  padding: 6px;
}
.ab-emblem-hero img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.45));
}
.ab-emblem-hero.is-finished-emblem {
  width: 82px;
  height: 82px;
}

.booking-full-card.is-compact-booking {
  background: linear-gradient(155deg, rgba(28, 25, 24, 0.96) 0%, rgba(17, 15, 15, 0.98) 100%);
  border: 1px solid rgba(216, 162, 94, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 246, 224, 0.08), 0 10px 24px rgba(0, 0, 0, 0.28);
  padding: 14px 15px;
  margin-bottom: 12px;
}

.booking-full-card.is-finished-booking {
  background: linear-gradient(155deg, rgba(24, 22, 22, 0.96) 0%, rgba(15, 14, 14, 0.98) 100%);
  border: 1px solid rgba(255, 246, 224, 0.08);
  padding: 14px 15px 0;
  margin-bottom: 12px;
  overflow: hidden;
  cursor: pointer;
}
.ab-fin-date { font-size: 12px; font-weight: 600; color: var(--text-secondary); letter-spacing: 0.02em; }
.ab-fin-count { font-size: 12px; color: var(--text-muted); }
.ab-fin-body { margin: 8px 0 12px; }
.ab-fin-stats { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ab-fin-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(255, 246, 224, 0.05);
  border: 1px solid rgba(255, 246, 224, 0.08);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}
.ab-fin-pill.is-place {
  background: rgba(216, 162, 94, 0.14);
  border-color: rgba(216, 162, 94, 0.3);
  color: var(--gold-highlight);
}
.ab-fin-pill.is-pts {
  color: var(--text-primary);
}
.ab-fin-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 -15px;
  padding: 10px 15px;
  border-top: 1px solid rgba(255, 246, 224, 0.07);
  background: rgba(11, 10, 10, 0.32);
  font-family: var(--font-brand);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--brushed-gold);
}

.underline-tabs.is-fitted {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  padding: 0 var(--gutter);
  overflow-x: hidden;
}
.underline-tabs.is-fitted .u-tab {
  width: 100%;
  justify-content: center;
  text-align: center;
  padding: 12px 4px;
  font-size: 13px;
  white-space: nowrap;
}
.cec-cat { font-family: var(--font-brand); font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brushed-gold); }
.cec-date { font-size: 14px; color: var(--text-secondary); }

.about-gallery-banner {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 12px 0 16px;
}
.about-cover-img { width: 100%; height: 200px; object-fit: cover; display: block; opacity: 0.72; }
.about-gallery-overlay {
  position: absolute;
  inset: 0;
  padding: 16px;
  background: linear-gradient(180deg, rgba(11, 10, 10, 0.2) 0%, rgba(11, 10, 10, 0.92) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
}
.about-gallery-overlay h1 { font-family: var(--font-brand); font-size: 21px; color: var(--text-primary); }
.about-gallery-overlay p { font-size: 14px; color: var(--brushed-gold); }
.about-cards-stack, .services-detail-stack, .statuses-stack, .medals-full-list { display: grid; gap: 12px; margin-top: 12px; }
.apc-head { display: flex; justify-content: space-between; align-items: center; }
.apc-num { font-size: 20px; font-weight: 700; color: var(--brand-charcoal); }
.apc-title { font-family: var(--font-brand); font-size: 19px; color: var(--text-primary); margin: 6px 0; }
.apc-list { margin: 10px 0 0; padding-left: 18px; color: var(--text-secondary); font-size: 14px; display: grid; gap: 5px; }

/* Меню бара и кухни */
.menu-mode-banner {
  background: var(--obsidian-surface);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.cat-scroll-row { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.cat-scroll-row::-webkit-scrollbar { display: none; }
.cat-rect-btn {
  flex: 0 0 auto;
  height: 34px;
  padding: 0 12px;
  border-radius: var(--radius-xs);
  background: var(--obsidian-surface);
  color: var(--text-secondary);
  font-family: var(--font-brand);
  font-size: 13px;
  font-weight: 600;
}
.cat-rect-btn.is-active { background: rgba(216, 162, 94, 0.16); color: var(--gold-highlight); }

.menu-cards-stack { display: grid; gap: 10px; padding-top: 12px; }
.menu-dish-card {
  background: var(--obsidian-surface);
  border-radius: var(--radius-md);
  padding: 12px;
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
  gap: 12px;
}
.menu-dish-card.has-qty { box-shadow: inset 0 0 0 1px var(--gold-border); }
.mdc-visual {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  background: radial-gradient(circle at 50% 40%, rgba(216, 162, 94, 0.18), var(--obsidian-void));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--brushed-gold);
  font-size: 20px;
  position: relative;
}
.mdc-badge { position: absolute; bottom: 2px; font-style: normal; font-size: 10px; background: var(--obsidian-void); color: var(--gold-highlight); padding: 1px 4px; }
.mdc-head { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.mdc-head h3 { font-family: var(--font-brand); font-size: 15px; color: var(--text-primary); }
.mdc-head strong { color: var(--brushed-gold); white-space: nowrap; }
.mdc-desc { font-size: 13px; color: var(--text-secondary); margin: 4px 0 8px; }
.mdc-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; }

/* Чат консьержа, FAQ, Уведомления, Визиты, Покупки, Настройки */
.concierge-chat-box { margin-top: 16px; background: var(--obsidian-surface); border-radius: var(--radius-lg); overflow: hidden; }
.ccb-header { padding: 12px 14px; border-bottom: 1px solid var(--hairline-dark); display: flex; justify-content: space-between; align-items: center; }
.ccb-messages { padding: 14px; display: grid; gap: 10px; max-height: 290px; overflow-y: auto; }
.chat-bubble { max-width: 86%; padding: 10px 12px; border-radius: var(--radius-md); font-size: 14px; line-height: 1.4; }
.chat-bubble.is-club { background: var(--obsidian-raised); color: var(--text-primary); justify-self: start; }
.chat-bubble.is-user { background: rgba(216, 162, 94, 0.16); color: var(--text-primary); justify-self: end; }
.chat-bubble span { display: block; font-size: 12px; color: var(--text-muted); margin-top: 4px; text-align: right; }
.ccb-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; padding: 10px; border-top: 1px solid var(--hairline-dark); }

.faq-group { margin-bottom: 18px; }
.faq-group-title { font-family: var(--font-brand); font-size: 14px; color: var(--brushed-gold); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 8px; }
.faq-item { background: var(--obsidian-surface); border-radius: var(--radius-sm); padding: 12px 14px; margin-bottom: 8px; }
.faq-item summary { font-family: var(--font-brand); font-size: 15px; font-weight: 600; color: var(--text-primary); cursor: pointer; }
.faq-item p { margin-top: 8px; font-size: 14px; line-height: 1.45; color: var(--text-secondary); }

.notif-card { width: 100%; text-align: left; background: var(--obsidian-surface); border-radius: var(--radius-md); padding: 12px 14px; margin-bottom: 10px; display: grid; gap: 6px; }
.notif-card.is-unread { border-left: 2px solid var(--brushed-gold); background: var(--obsidian-raised); }
.notif-top { display: flex; justify-content: space-between; align-items: center; }
.notif-card strong { font-size: 15px; color: var(--text-primary); }
.notif-card p { font-size: 14px; color: var(--text-secondary); }

.slc-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.slc-symbol { font-size: 26px; width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; background: var(--obsidian-raised); border-radius: var(--radius-sm); }
.ach-full-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ach-code-label { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; color: var(--brushed-gold); }
.medal-row-card { width: 100%; text-align: left; background: var(--obsidian-surface); border-radius: var(--radius-md); padding: 12px; display: grid; grid-template-columns: 68px minmax(0, 1fr); gap: 12px; align-items: center; }
.medal-row-card.is-locked-card { opacity: 0.65; }
.mrc-info h3 { font-family: var(--font-brand); font-size: 16px; color: var(--text-primary); margin: 2px 0 4px; }
.mrc-info h3 em { font-style: normal; color: var(--brushed-gold); }
.mrc-info p { font-size: 13px; color: var(--text-secondary); }
.mrc-info small { font-size: 13px; color: var(--text-muted); }

.mcard-wordmark-text { font-family: var(--font-brand); font-size: 26px; font-weight: 700; letter-spacing: 0.2em; color: var(--brushed-gold); text-align: center; }
.deposit-bar-card strong { display: block; font-size: 32px; color: var(--brushed-gold); margin: 4px 0; }
.ref-qr-wrap { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: center; margin-top: 12px; }
.ref-code-box { display: block; padding: 8px; background: var(--obsidian-void); border-radius: var(--radius-xs); font-size: 12px; color: var(--gold-highlight); word-break: break-all; margin: 6px 0 8px; }
.visit-row-card { background: var(--obsidian-surface); border-radius: var(--radius-md); padding: 14px; margin-bottom: 10px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.visit-row-card.is-column { display: block; }
.zone-bookings-strip { background: rgba(216, 162, 94, 0.1); border-radius: var(--radius-md); padding: 12px; margin: 12px 0; font-size: 14px; color: var(--text-primary); display: grid; gap: 4px; }
.booking-qr-row {
  width: 100%;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 8px 10px;
  background: var(--obsidian-void);
  border: 1px solid rgba(255, 246, 224, 0.06);
  border-radius: var(--radius-sm);
  margin: 8px 0 10px;
  text-align: left;
}
.booking-qr-row .qr-frame {
  width: auto;
  height: auto;
  padding: 5px;
  border-radius: 6px;
  flex-shrink: 0;
}
.booking-qr-row .qr-frame svg {
  display: block;
  width: 48px;
  height: 48px;
}
.booking-qr-copy { display: grid; gap: 2px; min-width: 0; }
.booking-qr-copy strong { font-family: var(--font-brand); font-size: 13px; font-weight: 600; color: var(--text-primary); }
.booking-qr-copy .muted-note { font-size: 12px; }

.settings-form, .settings-section { display: grid; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--hairline-dark); }
.form-field-group { display: grid; gap: 6px; }
.form-field-group label { font-family: var(--font-brand); font-size: 13px; font-weight: 600; color: var(--text-secondary); }
.avatar-picker-row { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.avatar-pick-btn { width: 52px; height: 52px; padding: 2px; border-radius: var(--radius-sm); border: 2px solid transparent; flex-shrink: 0; }
.avatar-pick-btn.is-selected { border-color: var(--brushed-gold); }
.avatar-pick-btn img { width: 100%; height: 100%; border-radius: var(--radius-xs); }
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px; background: var(--obsidian-surface); border-radius: var(--radius-sm); font-size: 14px; color: var(--text-primary); }
.toggle-row input { width: 20px; height: 20px; accent-color: var(--brushed-gold); }
.ui-mode-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.social-user-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--hairline-dark);
}
.social-user-row .r-player-identity {
  flex: 1;
  min-width: 0;
  text-align: left;
}
.social-user-row .btn-xs {
  width: auto !important;
  min-height: 34px !important;
  height: 34px !important;
  padding: 0 14px !important;
  flex-shrink: 0;
  white-space: nowrap !important;
  font-size: 12px !important;
  letter-spacing: 0.03em !important;
}

/* Профиль — премиальная карточка «Игровая статистика» (2×3) */
.profile-stats-panel {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(90% 80% at 10% 0%, rgba(216, 162, 94, 0.13) 0%, rgba(20, 18, 18, 0) 68%),
    linear-gradient(160deg, rgba(26, 23, 23, 0.96) 0%, rgba(15, 14, 14, 0.98) 100%);
  border: 1px solid rgba(216, 162, 94, 0.18);
  border-radius: var(--radius-lg);
  box-shadow: inset 0 1px 0 rgba(255, 246, 224, 0.08), 0 10px 26px rgba(0, 0, 0, 0.26);
}
.psp-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.psp-cell {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  border-bottom: 1px solid rgba(255, 246, 224, 0.06);
}
.psp-cell:nth-child(odd) {
  border-right: 1px solid rgba(255, 246, 224, 0.06);
}
.psp-cell:nth-last-child(-n + 2) {
  border-bottom: none;
}
.psp-kicker {
  font-family: var(--font-brand);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.psp-val {
  font-family: var(--font-numeric);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.08;
  color: var(--text-primary);
}
.psp-val.is-gold-grad {
  background: linear-gradient(180deg, #F5D7A8 0%, #D8A25E 65%, #A67131 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.psp-val.is-burgundy { color: var(--burgundy-bright); }
.psp-sub { font-size: 12px; color: var(--text-muted); }

/* Защита от переноса статуса «В списке» в потоке бронирований профиля */
.stream-row-item > div { min-width: 0; flex: 1; }
.stream-row-item .status-dot-label { white-space: nowrap; flex-shrink: 0; }

/* Реферальная программа — счётчики и история приглашений */
.ref-kpi-card {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background: linear-gradient(155deg, rgba(26, 23, 23, 0.96) 0%, rgba(16, 14, 14, 0.98) 100%);
  border: 1px solid rgba(216, 162, 94, 0.18);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.ref-kpi-cell {
  padding: 13px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-align: center;
  border-right: 1px solid rgba(255, 246, 224, 0.06);
}
.ref-kpi-cell:last-child { border-right: none; }
.ref-kpi-label {
  font-family: var(--font-brand);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
}
.ref-kpi-val {
  font-family: var(--font-numeric);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.05;
  color: var(--text-primary);
}
.ref-kpi-val.is-gold { color: var(--brushed-gold); }

.ref-history-card {
  align-items: flex-start;
  gap: 12px;
}
.ref-history-left { min-width: 0; flex: 1; }
.ref-history-left strong { display: block; font-size: 15px; color: var(--text-primary); }
.ref-history-status { margin-top: 3px; font-size: 13px; color: var(--text-secondary); }
.ref-history-sub { margin-top: 1px; font-size: 12px; color: var(--text-muted); }
.ref-history-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
  flex-shrink: 0;
}
.ref-bonus-tag { white-space: nowrap; }
.ref-history-date { font-size: 11px; }
.profile-menu-list { background: var(--obsidian-surface); border-radius: var(--radius-md); overflow: hidden; }
.pmenu-item { width: 100%; padding: 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-bottom: 1px solid var(--hairline-dark); color: var(--text-primary); font-family: var(--font-brand); font-size: 15px; font-weight: 500; text-align: left; }
.pmenu-item:last-child { border-bottom: none; }
.pmenu-item small { font-family: var(--font-numeric); font-size: 14px; color: var(--text-muted); }

/* Модалки */
.universal-sheet { padding-bottom: 24px; }
.sheet-stack-actions { display: grid; gap: 10px; margin-top: 16px; }
.success-hero-box { text-align: center; padding: 6px 0; }
.success-check-mark { width: 56px; height: 56px; margin: 0 auto 12px; border-radius: var(--radius-md); background: rgba(216, 162, 94, 0.16); color: var(--brushed-gold); font-size: 28px; display: flex; align-items: center; justify-content: center; }
.booking-number-pill { margin: 12px 0; padding: 10px 14px; background: var(--obsidian-surface); border-radius: var(--radius-sm); }
.booking-number-pill span { display: block; font-size: 12px; color: var(--text-muted); text-transform: uppercase; }
.booking-number-pill strong { font-size: 22px; color: var(--brushed-gold); }
.pub-profile-hero { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.pub-nick { font-family: var(--font-brand); font-size: 21px; color: var(--text-primary); margin: 4px 0 2px; }
.badges-preview-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.badge-mini-tile { background: var(--obsidian-surface); border-radius: var(--radius-md); padding: 10px 6px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.badge-mini-tile img { width: 44px; height: 44px; object-fit: contain; }
.badge-mini-tile span { font-size: 12px; color: var(--text-secondary); line-height: 1.2; }

.story-canvas-stage { display: flex; justify-content: center; }
.story-preview-canvas { width: 210px; height: 373px; border-radius: var(--radius-md); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6); }
.fb-criterion-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--hairline-dark); }
.fb-criterion-row label { font-size: 14px; color: var(--text-primary); }
.fb-stars { display: flex; gap: 6px; }
.fb-star-btn { width: 32px; height: 32px; border-radius: var(--radius-xs); background: var(--obsidian-surface); color: var(--text-muted); font-family: var(--font-numeric); font-weight: 700; }
.fb-star-btn.is-on { background: var(--brushed-gold); color: var(--text-on-gold); }
.qr-modal-center { display: flex; flex-direction: column; align-items: center; text-align: center; }
.qr-frame-lg { width: auto; height: auto; padding: 12px; }

/* Интерактивный золотой блик вслед за курсором на премиальных карточках */
.resident-hero-card,
.booking-ticket-clean,
.home-stats-panel,
.editorial-community-banner,
.editorial-guide-row,
.service-tile,
.address-compact-card,
.booking-full-card,
.rating-my-strip,
.profile-stats-panel,
.ref-kpi-card {
  position: relative;
  overflow: hidden;
}

@media (hover: hover) {
  .resident-hero-card::before,
  .booking-ticket-clean::before,
  .home-stats-panel::before,
  .editorial-community-banner::before,
  .editorial-guide-row::before,
  .service-tile::before,
  .address-compact-card::before,
  .booking-full-card::before,
  .rating-my-strip::before,
  .profile-stats-panel::before,
  .ref-kpi-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    z-index: 2;
    opacity: 0;
    background: radial-gradient(
      230px circle at var(--gx, 50%) var(--gy, 50%),
      rgba(242, 207, 160, 0.17) 0%,
      rgba(216, 162, 94, 0.06) 44%,
      rgba(216, 162, 94, 0) 74%
    );
    transition: opacity 220ms ease;
  }

  .resident-hero-card:hover::before,
  .booking-ticket-clean:hover::before,
  .home-stats-panel:hover::before,
  .editorial-community-banner:hover::before,
  .editorial-guide-row:hover::before,
  .service-tile:hover::before,
  .address-compact-card:hover::before,
  .booking-full-card:hover::before,
  .rating-my-strip:hover::before,
  .profile-stats-panel:hover::before,
  .ref-kpi-card:hover::before {
    opacity: 1;
  }
}

/* Состояния интерфейса (п. 60 ТЗ) */
.state-skeleton-wrap { padding: 16px; display: grid; gap: 12px; }
.skel-card { height: 110px; border-radius: var(--radius-md); background: linear-gradient(90deg, #141212 25%, #221E1E 50%, #141212 75%); background-size: 200% 100%; animation: skel-shimmer 1.3s infinite linear; }
.skel-lg { height: 180px; }
.skel-md { height: 140px; }
.skel-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@keyframes skel-shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.state-mode-pill-bar { display: flex; align-items: center; justify-content: space-between; padding: 12px; background: var(--obsidian-surface); border-radius: var(--radius-sm); font-size: 13px; color: var(--text-secondary); }
.state-empty-box { margin: 16px; padding: 24px 16px; background: var(--obsidian-surface); border-radius: var(--radius-lg); text-align: center; display: grid; gap: 10px; justify-items: center; }
.state-icon-box { width: 48px; height: 48px; border-radius: var(--radius-sm); background: var(--obsidian-raised); display: flex; align-items: center; justify-content: center; font-size: 24px; color: var(--brushed-gold); }
.state-icon-box.is-error { color: var(--burgundy-bright); }
.state-title { font-family: var(--font-brand); font-size: 19px; color: var(--text-primary); }
.state-desc { font-size: 14px; color: var(--text-secondary); line-height: 1.45; max-width: 310px; }
.state-actions-row { display: grid; gap: 8px; width: 100%; margin-top: 6px; }
