:root {
  --bg-color: #050816;
  --bg-elevated: rgba(15, 23, 42, 0.9);
  --accent: #f97316;
  --accent-soft: rgba(249, 115, 22, 0.12);
  --accent-2: #22c55e;
  --accent-3: #a855f7;
  --text: #e5e7eb;
  --text-muted: #9ca3af;
  --border-subtle: rgba(148, 163, 184, 0.35);
  --shadow-strong: 0 22px 45px rgba(15, 23, 42, 0.9);
  --radius-lg: 24px;
  --body-bg: radial-gradient(circle at top, #0f172a 0, #020617 55%, #000 100%);
  /* Подложка под градиентом: iOS/Telegram при overscroll показывают background-color, не картинку */
  --overscroll-canvas: #0f172a;
  --card-bg: linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.98)), radial-gradient(circle at top left, rgba(251, 191, 36, 0.1), transparent 60%);
  --card-border: rgba(148, 163, 184, 0.5);
  --bg-gradient-opacity: 0.9;
  --bg-blur-gradient: linear-gradient(145deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.92));
  --block-bg: rgba(15, 23, 42, 0.6);
  --block-bg-solid: #1e293b;
  --block-bg-gradient: linear-gradient(135deg, #1e293b, #0f172a);
  --btn-on-accent: #0b1120;
  --nav-bg: linear-gradient(180deg, rgba(15, 23, 42, 0.1), rgba(15, 23, 42, 0.9));
  --nav-item-bg: linear-gradient(180deg, #1e293b, #0f172a);
  /* Единый горизонтальный зазор: одинаковый для всех разделов, уже на узких экранах */
  --screen-gutter-x: clamp(10px, 3.5vw, 14px);
  --app-gutter: var(--screen-gutter-x);
  --card-padding-x: var(--screen-gutter-x);
  /* Единая высота кнопок «Назад» / «На главную» и строки с «← Чаты» в чате */
  --app-back-btn-min-height: 40px;
  /* iOS / PWA: подъём панели ввода над клавиатурой (задаётся из JS по visualViewport) */
  --chat-vv-inset: 0px;
  /* iOS: доп. подъём над системной панелью «стрелки / Готово» (только там, где WebKit её показывает) */
  --chat-ios-accessory-inset: 0px;
  /* Запас под шапку Telegram Mini App (до contentSafeAreaInset из JS); в обычном браузере подменяется на меньший */
  --app-extra-top-for-ui: 52px;
}

/* Скрыть полосы прокрутки по краям (скролл остаётся) */
html,
body,
.app,
.card__content,
.view {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
html::-webkit-scrollbar,
body::-webkit-scrollbar,
.app::-webkit-scrollbar,
.card__content::-webkit-scrollbar,
.view::-webkit-scrollbar,
*::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

[data-theme="light"] html,
[data-theme="light"] body,
[data-theme="light"] .app {
  background-image: linear-gradient(135deg, #fff7ed 0%, #ffedd5 50%, #fed7aa 100%) !important;
  background-color: var(--overscroll-canvas) !important;
}
[data-theme="light"] .bg-blur {
  background: linear-gradient(145deg, rgba(241, 245, 249, 0.95), rgba(248, 250, 252, 0.95)) !important;
}
[data-theme="light"] .app:has(.view--active[data-view="home"]) .bg-blur,
[data-theme="light"] .app:has(.view--active[data-view="chat"]) .bg-blur {
  background: linear-gradient(135deg, rgba(255, 247, 237, 0.97), rgba(255, 237, 213, 0.97), rgba(254, 215, 170, 0.95)) !important;
}
[data-theme="light"] {
  --bg-color: #fff8f0;
  --bg-elevated: rgba(255, 248, 240, 0.95);
  --accent: #ea580c;
  --accent-soft: rgba(234, 88, 12, 0.12);
  --accent-2: #16a34a;
  --accent-3: #7c3aed;
  --text: #1e293b;
  --text-muted: #64748b;
  --border-subtle: rgba(100, 116, 139, 0.28);
  --shadow-strong: 0 22px 45px rgba(15, 23, 42, 0.08);
  --body-bg: #f1f5f9;
  --overscroll-canvas: #fff7ed;
  --card-bg: linear-gradient(135deg, #fff7ed 0%, #ffedd5 50%, #fed7aa 100%);
  --card-border: rgba(251, 146, 60, 0.4);
  --bg-gradient-opacity: 0.35;
  --bg-blur-gradient: linear-gradient(145deg, rgba(241, 245, 249, 0.95), rgba(248, 250, 252, 0.95));
  --block-bg: rgba(255, 237, 213, 0.6);
  --block-bg-solid: #ffedd5;
  --block-bg-gradient: linear-gradient(135deg, #fff7ed, #ffedd5);
  --btn-on-accent: #1e293b;
  --nav-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(248, 250, 252, 0.95));
  --nav-item-bg: linear-gradient(180deg, #f1f5f9, #e2e8f0);
  --block-dark: #fed7aa;
  --block-dark-gradient: linear-gradient(135deg, #fff0e0, #ffedd5);
  --chat-stats-bg: rgba(255, 237, 213, 0.6);
}
[data-theme="light"] .card {
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 50%, #fed7aa 100%) !important;
}
[data-theme="light"] .chat-msg__reply {
  background: rgba(255, 255, 255, 0.8);
}
[data-theme="light"] .chat-ctx-menu__reactions,
[data-theme="light"] .chat-ctx-menu__items-wrap {
  background: #fff7ed;
}
[data-theme="light"] .updates-block {
  background: rgba(255, 255, 255, 0.5);
}
[data-theme="light"] .download-app:not(.download-app--poker21):not(.download-app--xpoker):not(.download-app--pppoker):not(.download-app--supremapoker) {
  background: linear-gradient(135deg, rgba(255, 248, 240, 0.95), rgba(255, 237, 213, 0.9));
  color: var(--text);
  border-color: rgba(249, 115, 22, 0.4);
}
[data-theme="light"] .download-app:not(.download-app--poker21):not(.download-app--xpoker):not(.download-app--pppoker):not(.download-app--supremapoker):hover {
  background: linear-gradient(135deg, #f97316, #fb923c);
  color: var(--btn-on-accent);
  border-color: rgba(249, 115, 22, 0.6);
}
[data-theme="light"] .home-mini-icon-item {
  background: rgba(255, 251, 247, 0.9);
  border-color: rgba(249, 115, 22, 0.45);
}
[data-theme="light"] .home-mini-icon-item:hover {
  background: rgba(255, 245, 235, 0.95);
}
[data-theme="light"] .tournament-day-block {
  background: linear-gradient(135deg, rgba(255, 248, 240, 0.9), rgba(255, 237, 213, 0.9));
  border-color: rgba(249, 115, 22, 0.45);
}
[data-theme="light"] .tournament-day-block--home {
  background: rgba(255, 245, 235, 0.95);
  border-color: rgba(249, 115, 22, 0.3);
}
[data-theme="light"] .tournament-day-block__col {
  background: rgba(255, 255, 255, 0.6);
  border-radius: 8px;
}
[data-theme="light"] .feature {
  background: linear-gradient(135deg, rgba(255, 251, 247, 0.95), rgba(255, 243, 230, 0.95));
  border-color: rgba(249, 115, 22, 0.4);
  box-shadow: 0 2px 8px rgba(249, 115, 22, 0.08);
}
[data-theme="light"] .feature--highlight {
  background: linear-gradient(135deg, rgba(255, 248, 240, 0.98), rgba(255, 237, 213, 0.95));
  border: 2px solid rgba(249, 115, 22, 0.65);
  box-shadow: 0 4px 20px rgba(249, 115, 22, 0.25);
}
[data-theme="light"] .tournament-day-tooltip {
  background: linear-gradient(135deg, #fffbf7, #fff0e0);
  border-color: rgba(249, 115, 22, 0.4);
  box-shadow: 0 8px 24px rgba(249, 115, 22, 0.12);
}
/* Светлая тема: базовый «Назад» как карточка; модалки и экраны — ниже и в контекстных блоках */
[data-theme="light"] .bonus-game-back,
[data-theme="light"] .download-back,
[data-theme="light"] .poker-streak-screen__back,
[data-theme="light"] .poker-task-screen__back,
[data-theme="light"] .chat-back-btn {
  background: rgba(255, 253, 251, 0.96);
  color: #0f172a;
  border-color: rgba(148, 163, 184, 0.5);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}
[data-theme="light"] .bonus-game-back:hover,
[data-theme="light"] .download-back:hover,
[data-theme="light"] .poker-streak-screen__back:hover,
[data-theme="light"] .poker-task-screen__back:hover,
[data-theme="light"] .chat-back-btn:hover {
  background: #fff;
  color: #c2410c;
  border-color: rgba(249, 115, 22, 0.55);
}
[data-theme="light"] .app-store-btn {
  background: linear-gradient(145deg, #4a5568 0%, #2d3748 50%, #1a202c 100%);
  border-color: rgba(0, 0, 0, 0.15);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
[data-theme="light"] .app-store-btn:hover {
  background: linear-gradient(145deg, #5a6578 0%, #4a5568 50%, #2d3748 100%);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}
[data-theme="light"] .hero__link {
  box-shadow:
    0 0 12px rgba(255, 255, 255, 0.5),
    0 0 24px rgba(255, 255, 255, 0.2),
    0 4px 16px rgba(0, 0, 0, 0.15);
  border-color: rgba(255, 255, 255, 0.55);
}
[data-theme="light"] .hero__link:hover {
  box-shadow:
    0 0 18px rgba(255, 255, 255, 0.6),
    0 0 32px rgba(255, 255, 255, 0.25),
    0 6px 20px rgba(0, 0, 0, 0.18);
}
[data-theme="light"] .bonus-card {
  border-color: rgba(100, 116, 139, 0.4);
}
[data-theme="light"] .bonus-card__face,
[data-theme="light"] .bonus-card--lose .bonus-card__face {
  background: linear-gradient(145deg, #f8fafc, #e2e8f0);
}
[data-theme="light"] .plasterer-table {
  background: linear-gradient(145deg, #c5d9d4, #b8d0ca);
}
[data-theme="light"] .plasterer-board-slot {
  background: rgba(241, 245, 249, 0.8);
}
[data-theme="light"] .tournament-day-card,
[data-theme="light"] .tournament-day-expanded__inner {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.7), rgba(255, 245, 235, 0.8));
  border-color: rgba(251, 146, 60, 0.35);
}
[data-theme="light"] .chat-switcher-btn {
  background: rgba(255, 255, 255, 0.6);
}
[data-theme="light"] .chat-switcher-btn:hover {
  background: rgba(168, 85, 247, 0.1);
}
[data-theme="light"] .chat-switcher-option:hover {
  background: rgba(168, 85, 247, 0.1);
}
[data-theme="light"] .chat-manager-btn {
  background: rgba(255, 255, 255, 0.6);
}
[data-theme="light"] .chat-manager-btn:hover {
  background: rgba(168, 85, 247, 0.15);
}
[data-theme="light"] .chat-attach-btn {
  background: rgba(168, 85, 247, 0.1);
}
[data-theme="light"] .chat-attach-btn:hover {
  background: rgba(168, 85, 247, 0.18);
}
[data-theme="light"] .chat-voice-btn {
  background: rgba(168, 85, 247, 0.1);
  color: #6d28d9;
}
[data-theme="light"] .chat-voice-btn:hover {
  background: rgba(168, 85, 247, 0.18);
}
[data-theme="light"] .chat-voice-btn--recording {
  background: rgba(239, 68, 68, 0.25);
  color: #b91c1c;
}
[data-theme="light"] .chat-voice-preview__remove {
  background: rgba(239, 68, 68, 0.25);
  color: #b91c1c;
}
[data-theme="light"] .chat-stats-block {
  background: rgba(255, 255, 255, 0.5);
  border-color: rgba(168, 85, 247, 0.2);
}
[data-theme="light"] .chat-reply-preview {
  background: rgba(255, 255, 255, 0.7);
}
[data-theme="light"] .poker-table {
  background: linear-gradient(160deg, #2d8b5e 0%, #207a4d 40%, #1a6b42 100%);
  border-color: #1e7a4e;
  box-shadow: inset 0 4px 12px rgba(255, 255, 255, 0.15), 0 8px 24px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.08);
  color: #e8f5e9;
}
[data-theme="light"] .tournament-day-tooltip::after {
  border-top-color: rgba(168, 85, 247, 0.25);
}
[data-theme="light"] .updates-block__toggle {
  background: rgba(168, 85, 247, 0.12);
  border-color: rgba(168, 85, 247, 0.25);
}
[data-theme="light"] .updates-block__toggle:hover {
  background: rgba(168, 85, 247, 0.2);
}
[data-theme="light"] .cashout-anna-btn {
  background: linear-gradient(135deg, #3d4858, #2d3748);
  color: #fff;
}
[data-theme="light"] .cashout-anna-btn:hover {
  background: linear-gradient(135deg, #4a5568, #3d4858);
}
[data-theme="light"] .logo__image {
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(100, 116, 139, 0.15);
}
[data-theme="light"] .profile-image {
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}
[data-theme="light"] .private-table,
[data-theme="light"] .poker-table.poker-table--private-style {
  background: linear-gradient(180deg, #3d5c4d 0%, #2d4a3d 50%, #244033 100%) !important;
  border-color: rgba(45, 74, 61, 0.9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 8px 24px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(100, 116, 139, 0.2);
}
*,
*::before,
*::after {
  box-sizing: border-box;
}

.is-hidden {
  display: none !important;
}

html {
  touch-action: manipulation;
  overflow-x: hidden;
  min-height: 100%;
  min-height: -webkit-fill-available;
  /* contain: без «none» на корне — в части WebView TG/iOS ломается обычный скролл */
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
  /* Два слоя: градиент + сплошная подложка — при «резинке» не белый фон */
  background-color: var(--overscroll-canvas) !important;
  background-image: var(--body-bg);
}
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  min-height: -webkit-fill-available;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background-color: var(--overscroll-canvas) !important;
  background-image: var(--body-bg);
  color: var(--text);
  display: flex;
  align-items: stretch;
  touch-action: manipulation;
  justify-content: center;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* Отступ сверху: safe-area + зазор под шапку (в TG задаётся JS по contentSafeAreaInset, см. .app--tg-content-inset) */
.app {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  min-height: 100vh;
  padding-top: max(20px, calc(env(safe-area-inset-top, 0px) + var(--app-extra-top-for-ui)));
  /* Запас под фиксированное таб-меню (~56px + паддинги); без лишнего «хвоста» при нижней резинке */
  padding-bottom: calc(58px + env(safe-area-inset-bottom, 0px));
  padding-left: max(var(--app-gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--app-gutter), env(safe-area-inset-right, 0px));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
}
/* Telegram 7.10+: верх из WebApp.contentSafeAreaInset (--app-top-from-tg из JS), плюс safe-area как нижняя граница */
html.app--tg-content-inset .app {
  padding-top: max(10px, env(safe-area-inset-top, 0px), var(--app-top-from-tg, 48px));
}
@media (display-mode: standalone), (display-mode: fullscreen) {
  /* +6px к запасу под нижнее меню — совпадает с усиленным padding-bottom у .bottom-nav в PWA */
  .app {
    padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
    /* Нет шапки Telegram Mini App (~52px «Закрыть») — базовый padding-top даёт лишний зазор на главной */
    padding-top: max(12px, calc(env(safe-area-inset-top, 0px) + 10px));
  }
  /* В установленном приложении кнопка справа от темы («на экран / поделиться») не нужна */
  #pwaInstallBtn,
  .pwa-install-btn {
    display: none !important;
  }
}
/* Боковые отступы как в разделе «Скачать» и остальных экранах: единый --screen-gutter-x */
.bg-gradient {
  position: absolute;
  inset: -40%;
  pointer-events: none;
  background:
    radial-gradient(circle at 0% 0%, rgba(168, 85, 247, 0.35), transparent 55%),
    radial-gradient(circle at 100% 0%, rgba(56, 189, 248, 0.3), transparent 55%),
    radial-gradient(circle at 50% 100%, rgba(248, 113, 113, 0.22), transparent 55%);
  opacity: var(--bg-gradient-opacity);
  filter: blur(6px);
  z-index: -1;
}

.bg-blur {
  position: absolute;
  inset: 0;
  pointer-events: none;
  backdrop-filter: blur(20px) saturate(150%);
  background: var(--bg-blur-gradient);
  z-index: -2;
}

.bg-decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  border-radius: inherit;
}
.bg-decor__text {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) rotate(-18deg);
  font-size: clamp(48px, 18vw, 96px);
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--text);
  opacity: 0.06;
  white-space: nowrap;
  font-family: "Inter", system-ui, sans-serif;
}
[data-theme="light"] .bg-decor__text {
  opacity: 0.07;
}

.card {
  position: relative;
  z-index: 5;
  pointer-events: auto;
  width: 100%;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-strong);
  padding: 20px var(--card-padding-x) 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 0;
}

.card:has(.view--active[data-view="home"]) {
  background: linear-gradient(135deg, #0f172a 0%, #0f172a 100%);
  border: none;
}
.card:has(.view--active[data-view="home"])::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, #0f172a 0%, #0f172a 100%);
  z-index: 1;
  pointer-events: none;
}
[data-theme="light"] .card:has(.view--active[data-view="home"]) {
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 50%, #fed7aa 100%) !important;
}
[data-theme="light"] .card:has(.view--active[data-view="home"])::after {
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 50%, #fed7aa 100%);
}
.card:has(.view--active[data-view="home"]) .card__header,
.card:has(.view--active[data-view="home"]) .card__content,
.card:has(.view--active[data-view="home"]) .auth-banner {
  position: relative;
  z-index: 2;
}
/* Чаты: тот же фон подложки, что и на главной (переменные темы + applyBg на #app) */
html.app-view-chat,
body.app-view-chat {
  background-color: var(--overscroll-canvas) !important;
  background-image: var(--body-bg);
}
[data-theme="light"] html.app-view-chat,
[data-theme="light"] body.app-view-chat {
  background-image: linear-gradient(135deg, #fff7ed 0%, #ffedd5 50%, #fed7aa 100%) !important;
  background-color: var(--overscroll-canvas) !important;
}
body:has(.view--active[data-view="chat"]) {
  overflow: hidden;
  position: fixed;
  width: 100%;
  /* Ниже: сначала vh (старые WebView), затем dvh — синхрон с динамическим viewport TG/WKWebView и fixed-таббаром */
  min-height: 100vh;
  height: 100vh;
  max-height: 100vh;
  min-height: 100dvh;
  height: 100dvh;
  max-height: 100dvh;
  inset: 0;
}
html:has(.view--active[data-view="chat"]) {
  min-height: 100vh;
  height: 100vh;
  min-height: 100dvh;
  height: 100dvh;
  overflow: hidden;
}
/* Fallback / PWA: без привязки только к :has() — иначе на части WebView body/#app и 100dvh расходятся,
   снизу появляется полоса, а fixed таббар визуально «поднимается» над краем */
html.app-view-chat {
  min-height: 100vh;
  height: 100vh;
  min-height: 100dvh;
  height: 100dvh;
  overflow: hidden;
}
body[data-view="chat"] {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  width: 100%;
  min-height: 100vh;
  height: 100vh;
  max-height: 100vh;
  min-height: 100dvh;
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
}
/* Таббар — сосед #app, но остаётся потомком того же fixed-body: явно клеим к низу портала */
html.app-view-chat .bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  transform: translate3d(0, 0, 0);
}

/* Надёжный скролл для всех обычных разделов (дом, расписание, рейтинг и т.п.) даже на старых WebView */
body[data-view="home"],
body[data-view="schedule"],
body[data-view="rating"],
body[data-view="raffles"],
body[data-view="news"],
body[data-view="tasks"],
body[data-view="hall"],
body[data-view="download"],
body[data-view="learn-play-hub"],
body[data-view="video-lessons"],
body[data-view="poker-tasks"],
body[data-view="hall-of-fame"],
body[data-view="bonus-game"],
body[data-view="cooler-game"],
body[data-view="plasterer-game"],
body[data-view="cashout"],
body[data-view="profile"],
body[data-view="streams"],
body[data-view="equilator"],
body[data-view="winter-rating"],
body[data-view="spring-rating"] {
  position: static;
  overflow-y: auto;
  overflow-x: hidden;
  width: auto;
  -webkit-overflow-scrolling: touch;
}
/* Длинные экраны: скролл на <body>, <html> без вертикального scrollport — иначе в TG/WebView обрезается высота (~«9 карточек») */
html:has(.view--active[data-view="learn-play-hub"]),
html:has(.view--active[data-view="video-lessons"]),
html:has(.view--active[data-view="poker-tasks"]),
html:has(.view--active[data-view="hall-of-fame"]),
html:has(.view--active[data-view="download"]) {
  overflow-y: visible !important;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}
html:has(.view--active[data-view="learn-play-hub"]) body,
html:has(.view--active[data-view="video-lessons"]) body,
html:has(.view--active[data-view="poker-tasks"]) body,
html:has(.view--active[data-view="hall-of-fame"]) body,
html:has(.view--active[data-view="download"]) body {
  overflow-y: auto !important;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  /* TG/WebKit: body по умолчанию row-flex + align-stretch — высота #app = viewport и обрез списка; block убирает flex-растяжение */
  display: block !important;
  width: 100%;
  box-sizing: border-box;
  height: auto !important;
}
/* Redmi и др.: часть WebView скроллит html — даём явный скролл (класс вешается при загрузке главной) */
html.app-view-home {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background-color: var(--overscroll-canvas) !important;
  background-image: var(--body-bg);
}
/* Иначе одновременно крутятся html и body — залипание скролла на главной */
html.app-view-home body {
  overflow-y: visible !important;
}
/* Видеоуроки / хаб: класс с setView. Скролл на body — см. комментарий к :has() выше (обрез после ~9 блоков при scroll на html). */
html.app-view-long-scroll {
  overflow-y: visible !important;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  height: auto !important;
  min-height: 100%;
  overscroll-behavior-y: contain;
  scroll-padding-bottom: max(6px, calc(4px + env(safe-area-inset-bottom, 0px)));
}
body.app-view-long-scroll {
  overflow-y: auto !important;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  min-height: 100%;
  /* Не flex: иначе в части WebView cross-stretch снова даёт #app ≈ viewport и обрез длинных списков */
  display: block !important;
  width: 100%;
  box-sizing: border-box;
  height: auto !important;
  overscroll-behavior-y: contain;
  scroll-padding-bottom: max(6px, calc(4px + env(safe-area-inset-bottom, 0px)));
}
html.app-view-long-scroll .app {
  overflow: visible !important;
  min-height: 100vh;
  min-height: 100dvh;
  height: auto !important;
  max-height: none !important;
  flex-shrink: 0;
}
/* Карточка не сжимается ниже высоты контента (min-height:0 ломает длинные списки в колонке .app) */
html.app-view-long-scroll .card,
body.app-view-long-scroll .card {
  min-height: min-content;
  flex-shrink: 0;
}
html.app-view-long-scroll .card .card__content,
body.app-view-long-scroll .card .card__content {
  overflow: visible !important;
}

/* Видеоуроки: дублируем без единственной зависимости от app-view-long-scroll (старые WebView / порядок классов) */
.card:has(.view--active[data-view="video-lessons"]) {
  flex-shrink: 0;
  min-height: min-content;
  max-height: none;
  overflow: visible;
}
.card:has(.view--active[data-view="video-lessons"]) .card__content {
  flex-shrink: 0;
  min-height: min-content;
  max-height: none;
  overflow: visible !important;
}
.view.view--active[data-view="video-lessons"] {
  flex-shrink: 0;
  min-height: min-content;
  overflow: visible;
}

/*
 * Видеоуроки: fallback без :has() (часть WebView Telegram/Android не применяет .card:has(...)).
 * Иначе .card остаётся с min-height: 0 и overflow у .app обрезает список (~видны уроки до 10–11).
 */
body[data-view="video-lessons"] {
  display: block !important;
}
body[data-view="video-lessons"] .app {
  overflow: visible !important;
  height: auto !important;
  max-height: none !important;
  /* Без :has() таб-бар скрыт, а padding-bottom .app остаётся «под навигацию» — убираем */
  padding-bottom: max(8px, calc(4px + env(safe-area-inset-bottom, 0px))) !important;
}
/*
 * «Чёрная дыра» под контентом: .bg-gradient с inset:-40% абсолютно позиционирован в #app.
 * При overflow:visible на .app вылет за padding-box попадает в scrollable overflow <html> —
 * scrollHeight ≈ высота контента + сотни/тысячи px снизу (процент от высоты #app).
 * Обрезка только для этого экрана; фон карточки и .bg-blur (inset:0) не страдают.
 */
body[data-view="video-lessons"] .app > .bg-gradient {
  inset: 0;
}
html.app-view-vl-html-scroll .app > .bg-gradient {
  inset: 0;
}
/* Зал славы, хаб, задачи, «Скачать»: тот же long-scroll — без обрезки градиент снова раздувает прокрутку */
html.app-view-long-scroll .app > .bg-gradient {
  inset: 0;
}
body[data-view="video-lessons"] .card {
  flex-shrink: 0;
  min-height: min-content;
  max-height: none;
  overflow: visible;
}
body[data-view="video-lessons"] .card .card__content {
  flex-shrink: 0;
  min-height: min-content;
  max-height: none;
  overflow: visible !important;
}
body[data-view="video-lessons"] .view.view--active[data-view="video-lessons"] {
  flex-shrink: 0;
  min-height: min-content;
  overflow: visible;
}

/* Зал славы: fallback без :has() (старые WebView) + стабильная высота цепочки .app/.card */
body[data-view="hall-of-fame"] {
  display: block !important;
}
body[data-view="hall-of-fame"] .app {
  overflow: visible !important;
  height: auto !important;
  max-height: none !important;
  padding-bottom: max(10px, calc(6px + env(safe-area-inset-bottom, 0px))) !important;
}
body[data-view="hall-of-fame"] .app > .bg-gradient {
  inset: 0;
}
body[data-view="hall-of-fame"] .card {
  flex-shrink: 0;
  min-height: min-content;
  max-height: none;
  overflow: visible;
}
body[data-view="hall-of-fame"] .card .card__content {
  flex-shrink: 0;
  min-height: min-content;
  max-height: none;
  overflow: visible !important;
}
body[data-view="hall-of-fame"] .view.view--active[data-view="hall-of-fame"] {
  flex-shrink: 0;
  min-height: min-content;
  overflow: visible;
}

/*
 * Видеоуроки: единый scrollport на <html> (класс вешает setView).
 * Без лишних min-height на html/.app — иначе в iOS/TG раздувается scrollHeight («пустой хвост») и скролл залипает ~на 9-й карточке.
 */
html.app-view-vl-html-scroll {
  overflow-y: auto !important;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  height: auto !important;
  min-height: 100%;
  max-height: none !important;
  overscroll-behavior-y: auto !important;
  overflow-anchor: none;
  scroll-padding-bottom: max(4px, env(safe-area-inset-bottom, 0px));
}
html.app-view-vl-html-scroll body,
html.app-view-vl-html-scroll body.app-view-long-scroll {
  overflow-y: visible !important;
  overflow-x: hidden;
  display: block !important;
  width: 100%;
  box-sizing: border-box;
  height: auto !important;
  min-height: 0 !important;
  overscroll-behavior-y: auto;
}
/* Запас под контент без «двойного вьюпорта»: не дублируем 100dvh поверх базового .app */
html.app-view-vl-html-scroll .app {
  overflow: visible !important;
  height: auto !important;
  max-height: none !important;
  flex-shrink: 0;
}
html.app-view-vl-html-scroll .card {
  min-height: min-content;
  flex-shrink: 0;
  max-height: none;
  overflow: visible;
}
html.app-view-vl-html-scroll .card .card__content {
  overflow: visible !important;
  min-height: min-content;
  flex-shrink: 0;
  max-height: none;
}

/* Модалки «О тренере» / «Отзывы»: не крутить ленту видеоуроков под fixed-слоем */
html.vl-modal-scroll-lock.app-view-vl-html-scroll {
  overflow-y: hidden !important;
  overflow-x: hidden;
  overscroll-behavior-y: none !important;
}

/*
 * Зал славы: единый scrollport на <html> (тот же класс багов, что app-view-vl-html-scroll).
 * Иначе при html.app-view-long-scroll + overflow:visible на html часть WebView не крутит body.
 */
html.app-view-hall-html-scroll {
  overflow-y: auto !important;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  height: auto !important;
  min-height: 100%;
  max-height: none !important;
  overscroll-behavior-y: auto !important;
  overflow-anchor: none;
  scroll-padding-bottom: max(4px, env(safe-area-inset-bottom, 0px));
}
html.app-view-hall-html-scroll body,
html.app-view-hall-html-scroll body.app-view-long-scroll {
  overflow-y: visible !important;
  overflow-x: hidden;
  display: block !important;
  width: 100%;
  box-sizing: border-box;
  height: auto !important;
  min-height: 0 !important;
  overscroll-behavior-y: auto;
}
html.app-view-hall-html-scroll .app {
  overflow: visible !important;
  height: auto !important;
  max-height: none !important;
  flex-shrink: 0;
}
html.app-view-hall-html-scroll .card {
  min-height: min-content;
  flex-shrink: 0;
  max-height: none;
  overflow: visible;
}
html.app-view-hall-html-scroll .card .card__content {
  overflow: visible !important;
  min-height: min-content;
  flex-shrink: 0;
  max-height: none;
}

/* Высота/оверфлоу чата; фон как на главной — inline applyBg() + .bg-gradient / .bg-blur */
.app:has(.view--active[data-view="chat"]),
html.app-view-chat #app.app {
  height: 100%;
  min-height: 0;
  max-height: none;
  align-items: center;
  padding-bottom: 0 !important;
  overflow: hidden;
}
.card:has(.view--active[data-view="chat"]) {
  max-height: none;
  height: 100%;
  min-height: 0;
  flex: 1;
  width: 100%;
  max-width: 420px;
  padding: 4px 0 8px;
  gap: 4px;
  border: none;
  box-shadow: none;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: transparent;
}
.card:has(.view--active[data-view="chat"]) .card__content {
  flex: 1;
  min-height: 0;
  max-height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.card:has(.view--active[data-view="chat"])::before {
  display: none;
}
.card:has(.view--active[data-view="chat"]) .card__header {
  display: none;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(249, 115, 22, 0.25);
  opacity: 0.4;
  pointer-events: none;
  mask-image: radial-gradient(circle at top, black 0, transparent 60%);
}
/* Главная: обводка от 2мм над газетой до низа кнопки рейтинга, до краёв приложения */
html.app-view-home .card {
  border: none;
}
.card:has(.view--active[data-view="home"])::before,
html.app-view-home .card::before {
  display: none;
}
.app.app--view-home .home-welcome-outline,
html.app-view-home .home-welcome-outline {
  position: relative;
  z-index: 2;
  margin-top: -2mm;
  /* Поскольку «на главной» у .card нет обычной рамки (border убран),
     выравниваем обводку home-welcome-outline с рамкой карточки: уходим
     в боковые padding .card на величину var(--card-padding-x). */
  margin-left: calc(-1 * var(--card-padding-x));
  margin-right: calc(-1 * var(--card-padding-x));
  width: calc(100% + (2 * var(--card-padding-x)));
  box-sizing: border-box;
  /* Справа/сверху/снизу — как раньше; слева +8px к базовым 10px для основного контента (кнопка рейтинга компенсирует через переменные) */
  --home-outline-pad-x: 10px;
  --home-outline-pad-left: 18px;
  padding: calc(2mm + 10px) var(--home-outline-pad-x) calc(40px + 10px + 44px) var(--home-outline-pad-left);
}
/* «Рейтинг турнирщиков»: по центру, на верхней половине нижней линии обводки (как таб на рамке); на всю ширину рамки */
html.app-view-home .home-welcome-outline .features--home-rating-on-border,
.app.app--view-home .home-welcome-outline .features--home-rating-on-border {
  position: absolute;
  left: calc(-1 * var(--home-outline-pad-left, 18px));
  right: calc(-1 * var(--home-outline-pad-x, 10px));
  top: auto;
  bottom: 40px;
  transform: translateY(50%);
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0;
  z-index: 4;
  pointer-events: none;
}
html.app-view-home .home-welcome-outline .features--home-rating-on-border .features-row--full,
.app.app--view-home .home-welcome-outline .features--home-rating-on-border .features-row--full {
  margin-bottom: 0;
  width: 100%;
  display: flex;
  justify-content: center;
}
html.app-view-home .home-welcome-outline .features--home-rating-on-border .feature.feature--link.feature--rating-promo,
.app.app--view-home .home-welcome-outline .features--home-rating-on-border .feature.feature--link.feature--rating-promo {
  pointer-events: auto;
  width: auto !important;
  max-width: min(96vw, 380px) !important;
  flex: 0 1 auto;
}
/* +10px воздуха между рядом «Зал славы» + иконки и кнопкой «Рейтинг турнирщиков» у нижней обводки */
html.app-view-home .home-welcome-outline > .hero-row,
.app.app--view-home .home-welcome-outline > .hero-row {
  margin-bottom: 10px;
}
.app.app--view-home .home-welcome-outline::before,
html.app-view-home .home-welcome-outline::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 40px;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
  pointer-events: none;
}
[data-theme="light"] .home-welcome-outline::before {
  border-color: rgba(251, 146, 60, 0.4);
}

.auth-banner {
  margin: 0 0 12px;
  padding: 12px 14px;
  background: var(--block-bg-gradient);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 14px;
  text-align: center;
}
.auth-banner--hidden {
  display: none;
}
.auth-banner__text {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--text);
}
.auth-banner__login-mount {
  margin: 8px 0 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 44px;
}
.auth-banner__login-mount:empty {
  display: none;
}
.auth-banner__verify-form {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 10px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.22);
  box-sizing: border-box;
}
.auth-banner__verify-title {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.pwa-auth-screen .auth-banner__verify-title {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #f8fafc;
}
.pwa-auth-screen .auth-banner__verify-form {
  background: transparent;
  border: none;
  padding: 0;
}
.pwa-auth-screen .auth-banner__code-intro {
  color: rgba(226, 232, 240, 0.9);
}
.pwa-auth-screen .auth-banner__code-intro strong {
  color: #f8fafc;
}
.pwa-auth-screen .auth-banner__code-intro-link {
  color: #fb923c;
}
.pwa-auth-screen .auth-banner__code-intro-link:visited {
  color: #fdba74;
}
.pwa-auth-screen .auth-banner__code-hint {
  color: rgba(226, 232, 240, 0.92);
  text-align: left;
  padding-left: 2px;
  padding-right: 2px;
}
.pwa-auth-screen .auth-banner__code-hint strong {
  color: #f8fafc;
  font-weight: 700;
}
.pwa-auth-screen .auth-banner__code-row--back {
  margin-top: 0;
  margin-bottom: 4px;
  justify-content: flex-start;
}
.pwa-auth-screen .auth-banner__code-input {
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(251, 146, 60, 0.38);
  color: #f8fafc;
}
.pwa-auth-screen .auth-banner__code-input::placeholder {
  color: rgba(148, 163, 184, 0.88);
}
.pwa-auth-screen .auth-banner__code-btn--send,
.pwa-auth-screen .auth-banner__code-btn--verify {
  border-radius: 14px;
  border: 1px solid rgba(251, 146, 60, 0.35);
  background: linear-gradient(to top, #ea580c, #fb923c);
  color: var(--btn-on-accent, #fff);
  font-weight: 700;
  font-size: 14px;
}
.pwa-auth-screen .auth-banner__code-btn--verify {
  min-width: 92px;
}
.auth-banner__verify-subtitle {
  margin: 0 0 10px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--text-muted);
}
.auth-banner__verify-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 44px;
}
.auth-banner__code-intro {
  margin: 0 0 10px;
  padding: 0 2px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-muted);
  text-align: left;
}
.auth-banner__code-intro strong {
  font-weight: 700;
  color: var(--text);
}
.auth-banner__code-intro-link {
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  color: var(--accent, #ea580c);
}
.auth-banner__code-login {
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
}
.auth-banner__code-row {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
.auth-banner__code-row--verify {
  align-items: stretch;
}
.auth-banner__code-input {
  width: 100%;
  min-height: 44px;
  box-sizing: border-box;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.55);
  color: var(--text);
  padding: 10px 12px;
  font-size: 15px;
}
.auth-banner__code-input::placeholder {
  color: rgba(148, 163, 184, 0.8);
}
.auth-banner__code-input--otp {
  flex: 1 1 auto;
}
.auth-banner__code-btn {
  min-height: 44px;
  border: none;
  border-radius: 12px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  padding: 10px 14px;
  white-space: nowrap;
}
.auth-banner__code-btn--send,
.auth-banner__code-btn--verify {
  width: 100%;
  color: #fff;
  background: linear-gradient(180deg, #2563eb, #1d4ed8);
}
.auth-banner__code-btn--verify {
  width: auto;
  min-width: 86px;
}
.auth-banner__code-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}
.auth-banner__code-hint {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.35;
}
.auth-banner__code-hint--error {
  color: #fca5a5;
}
.auth-banner__code-hint--hidden {
  display: none !important;
}
[data-theme="light"] .auth-banner__verify-form {
  background: rgba(248, 250, 252, 0.9);
  border-color: rgba(148, 163, 184, 0.35);
}
[data-theme="light"] .auth-banner__code-input {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(148, 163, 184, 0.45);
}
[data-theme="light"] .auth-banner__code-hint--error {
  color: #dc2626;
}
.auth-banner__vk-login-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 20px;
  margin: 0;
  box-sizing: border-box;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #fff;
  background: linear-gradient(180deg, #5181b8, #4073a6);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: opacity 0.15s, transform 0.12s;
}
.auth-banner__vk-login-btn:hover {
  opacity: 0.95;
}
.auth-banner__vk-login-btn:active {
  transform: scale(0.98);
}
[data-theme="light"] .auth-banner__vk-login-btn {
  color: #fff;
  border-color: rgba(37, 99, 235, 0.35);
}
.auth-banner__external-browser-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  margin: 0;
  box-sizing: border-box;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text);
  background: transparent;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 12px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: opacity 0.15s, transform 0.12s, background 0.15s;
}
.auth-banner__external-browser-btn:hover {
  background: rgba(148, 163, 184, 0.12);
  opacity: 1;
}
.auth-banner__external-browser-btn:active {
  transform: scale(0.98);
}
[data-theme="light"] .auth-banner__external-browser-btn {
  border-color: rgba(148, 163, 184, 0.45);
}

/* Убираем оранжевую обводку/outline на фокусе (особенно iOS/Safari) для экрана входа */
.auth-banner__vk-login-btn:focus,
.auth-banner__vk-login-btn:focus-visible,
.auth-banner__tg-popup-login-btn:focus,
.auth-banner__tg-popup-login-btn:focus-visible,
.auth-banner__external-browser-btn:focus,
.auth-banner__external-browser-btn:focus-visible,
.auth-banner__code-btn:focus,
.auth-banner__code-btn:focus-visible,
.auth-banner__local-login-link:focus,
.auth-banner__local-login-link:focus-visible,
.auth-banner__link:focus,
.auth-banner__link:focus-visible,
.auth-banner__code-input:focus,
.auth-banner__code-input:focus-visible {
  outline: none;
  box-shadow: none;
}
.auth-banner__tg-popup-login-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  margin: 0;
  box-sizing: border-box;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #fff;
  background: linear-gradient(180deg, #2aabee, #229ed9);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: opacity 0.15s, transform 0.12s;
}
.auth-banner__tg-popup-login-btn:hover {
  opacity: 0.95;
}
.auth-banner__tg-popup-login-btn:active {
  transform: scale(0.98);
}
[data-theme="light"] .auth-banner__tg-popup-login-btn {
  color: #fff;
  border-color: rgba(15, 23, 42, 0.12);
}
.auth-banner__local-login-msg {
  margin: 0 0 10px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-muted, var(--muted));
  text-align: center;
  max-width: 28em;
  margin-left: auto;
  margin-right: auto;
}
.auth-banner__local-login-link {
  display: inline-block;
  margin: 0 auto;
  padding: 10px 18px;
  border-radius: 12px;
  background: linear-gradient(to top, #ea580c, #fb923c);
  color: var(--btn-on-accent, #fff);
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  text-align: center;
}
.auth-banner__local-login-link:hover {
  color: var(--btn-on-accent, #fff);
  opacity: 0.95;
}
.auth-banner__link {
  display: inline-block;
  padding: 8px 16px;
  background: linear-gradient(to top, #ea580c, #fb923c);
  color: var(--btn-on-accent);
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  border-radius: 10px;
}
.auth-banner__link:hover {
  opacity: 0.95;
  color: var(--btn-on-accent);
}
.auth-banner__hint {
  margin: 10px 0 0;
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.4;
}

.pwa-auth-screen {
  position: fixed;
  inset: 0;
  z-index: 99990;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  /* Симметричные отступы с safe area; контент по центру в .pwa-auth-screen__inner, версия внизу */
  padding: max(20px, env(safe-area-inset-top, 0px)) max(20px, env(safe-area-inset-right, 0px)) 0
    max(20px, env(safe-area-inset-left, 0px));
  min-height: 100dvh;
  min-height: -webkit-fill-available;
  /* Тот же оттенок, что у html/body и theme-color (#0f172a), чтобы под статус-баром iOS не было «шва» */
  background-color: #0f172a;
  background-image: radial-gradient(880px 480px at 50% -42%, rgba(249, 115, 22, 0.28), transparent 52%),
    linear-gradient(180deg, #0f172a 0%, #020617 42%, #0b1120 100%);
}
/* PWA standalone: подъём формы входа над клавиатурой (--pwa-auth-vv-inset из JS по visualViewport) */
html.pwa-auth-vv-lift .pwa-auth-screen:not(.pwa-auth-screen--hidden) {
  padding-bottom: calc(env(safe-area-inset-bottom, 0px) + var(--pwa-auth-vv-inset, 0px));
}
.pwa-auth-screen--hidden {
  display: none !important;
}
.pwa-auth-screen__inner {
  width: 100%;
  max-width: 430px;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 18px 14px 14px;
  border-radius: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  text-align: center;
}
.pwa-auth-screen__version {
  flex-shrink: 0;
  width: 100%;
  margin: 0;
  padding: 6px 14px calc(12px + env(safe-area-inset-bottom, 0px));
  text-align: center;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: rgba(148, 163, 184, 0.72);
  user-select: none;
}
[data-theme="light"] .pwa-auth-screen__version {
  color: rgba(100, 116, 139, 0.85);
}
.pwa-auth-screen__logo {
  width: 62px;
  height: 62px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(249, 115, 22, 0.12);
}
.pwa-auth-screen__title {
  margin: 10px 0 4px;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #f8fafc;
}
.pwa-auth-screen__subtitle {
  margin: 0;
  color: #fb923c;
  font-size: 13px;
}
.pwa-auth-screen__mount {
  width: 100%;
  max-width: 100%;
  margin-top: 20px;
  align-self: stretch;
}
.pwa-auth-screen__notice {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.55);
  color: rgba(226, 232, 240, 0.92);
  font-size: 12px;
  line-height: 1.35;
  text-align: left;
}
[data-theme="light"] .pwa-auth-screen__notice {
  background: rgba(248, 250, 252, 0.92);
  color: rgba(15, 23, 42, 0.9);
  border-color: rgba(148, 163, 184, 0.45);
}
.pwa-auth-screen__enter-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pwa-auth-screen__enter-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 14px;
  border: 1px solid rgba(251, 146, 60, 0.35);
  background: linear-gradient(to top, #ea580c, #fb923c);
  color: var(--btn-on-accent, #fff);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}
.pwa-auth-screen__enter-btn:active { transform: scale(0.99); }
.pwa-auth-screen__enter-btn--secondary {
  background: transparent;
  color: var(--accent, #ea580c);
  border: 1px solid rgba(234, 88, 12, 0.55);
}
.pwa-auth-screen__guest-block {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  width: 100%;
}
.pwa-auth-screen__guest-note {
  margin: 0;
  padding: 0 4px;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
  color: var(--accent, #ea580c);
  opacity: 0.88;
  max-width: 22rem;
  align-self: center;
}
[data-theme="light"] .pwa-auth-screen__guest-note {
  color: rgba(194, 65, 12, 0.92);
}
.pwa-auth-screen__back-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  min-width: 44px;
  height: 44px;
  padding: 0;
  margin: 0 0 2px -6px;
  border: none;
  border-radius: 12px;
  background: transparent;
  color: #fb923c;
  cursor: pointer;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
}
.pwa-auth-screen__back-icon-btn:active {
  opacity: 0.85;
  transform: scale(0.96);
}
.pwa-auth-screen__back-icon {
  font-size: 28px;
  line-height: 1;
  font-weight: 400;
}
body.pwa-auth-gated #app {
  visibility: hidden;
  pointer-events: none;
}

.auth-identifying-mini {
  margin: 0 0 8px;
  padding: 6px 12px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  gap: 8px;
}
.auth-identifying-mini--hidden {
  display: none;
}
.auth-identifying-mini__spinner {
  width: 14px;
  height: 14px;
  border: 2px solid var(--text-muted);
  border-top-color: transparent;
  border-radius: 50%;
  animation: auth-identifying-spin 0.75s linear infinite;
  flex: 0 0 auto;
}
@keyframes auth-identifying-spin {
  to {
    transform: rotate(360deg);
  }
}
.auth-identifying-mini__text {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.auth-banner--verifying {
  border-color: rgba(56, 189, 248, 0.45);
}
.auth-banner__retry {
  margin: 0 0 10px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border-radius: 10px;
  border: 1px solid var(--accent);
  background: var(--block-bg-solid);
  color: var(--accent);
}
.auth-banner__retry:hover {
  background: rgba(249, 115, 22, 0.12);
}

.auth-user {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
}
.auth-user--hidden {
  display: none;
}
.auth-user__avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border-subtle);
  flex-shrink: 0;
}
.auth-user__avatar:not([src]) {
  display: none;
}

.card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 10px;
}
.card__header > .logo {
  min-width: 0;
}
.header-greeting--hidden,
.header-greeting-wrap.header-greeting--hidden { display: none !important; }
.header-chat-switcher--hidden { display: none !important; }
.header-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
  min-width: 0;
}
.header-actions__row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.header-admin-report {
  font-size: 11px;
  padding-inline: 6px;
}
.header-admin-report--hidden {
  display: none !important;
}
.chat-switcher-wrap--header {
  position: relative;
  flex-shrink: 0;
}
.chat-switcher-btn--header {
  height: 40px;
  padding: 0 10px;
  font-size: 11px;
  width: auto;
  min-width: 0;
  max-width: 100px;
  box-sizing: border-box;
}
.chat-switcher-btn--header .chat-switcher-btn__arrow { font-size: 9px; }
.chat-switcher-btn--header .chat-switcher-btn__dot { width: 5px; height: 5px; }
.chat-switcher-wrap--header .chat-switcher-dropdown {
  min-width: 120px;
  right: 0;
  left: auto;
}
.header-greeting-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.3;
}
.header-greeting {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
}
.header-actions .auth-user {
  display: none;
}
.theme-toggle {
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  background: var(--block-bg);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: opacity 0.2s;
}
.theme-toggle:hover {
  opacity: 0.9;
}
.theme-toggle__icon--light { display: none; }
.theme-toggle__icon--dark { display: inline; }
[data-theme="light"] .theme-toggle__icon--light { display: inline; }
[data-theme="light"] .theme-toggle__icon--dark { display: none; }

.pwa-install-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 8px;
  height: 40px;
  min-width: 40px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  background: var(--block-bg);
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.2s, background 0.2s;
}
.pwa-install-btn:hover {
  opacity: 0.95;
  background: rgba(56, 189, 248, 0.1);
  border-color: rgba(56, 189, 248, 0.3);
}
.pwa-install-btn__icon {
  font-size: 16px;
}
.pwa-install-btn__label {
  font-size: 11px;
}
@media (max-width: 480px) {
  .pwa-install-btn__label { display: none; }
  .pwa-install-btn { padding: 0; min-width: 40px; justify-content: center; }
}

.radio-toggle {
  width: auto;
  min-width: 40px;
  padding: 0 8px;
  gap: 4px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  overflow: visible;
}
.radio-toggle__text {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 1.2;
}
.radio-toggle .radio-toggle__label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}
.radio-toggle__listen {
  display: none;
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 1px;
  white-space: nowrap;
}
.radio-toggle.radio-toggle--chill .radio-toggle__listen,
.radio-toggle.radio-toggle--lounge .radio-toggle__listen,
.radio-toggle.radio-toggle--90s .radio-toggle__listen,
.radio-toggle.radio-toggle--radio7 .radio-toggle__listen { display: block; }
.radio-toggle__listen #headerRadioListenersCount {
  font-weight: 600;
  color: var(--text);
}
.radio-toggle .radio-toggle__icon {
  flex-shrink: 0;
}
.radio-toggle .radio-toggle__icon--off { display: inline-flex; }
.radio-toggle .radio-toggle__icon--chill,
.radio-toggle .radio-toggle__icon--lounge,
.radio-toggle .radio-toggle__icon--90s,
.radio-toggle .radio-toggle__icon--radio7,
.radio-toggle .radio-toggle__icon--winwave { display: none; }
.radio-toggle.radio-toggle--chill .radio-toggle__icon--off { display: none; }
.radio-toggle.radio-toggle--chill .radio-toggle__icon--chill { display: inline-flex; }
.radio-toggle.radio-toggle--lounge .radio-toggle__icon--off { display: none; }
.radio-toggle.radio-toggle--lounge .radio-toggle__icon--lounge { display: inline-flex; }
.radio-toggle.radio-toggle--90s .radio-toggle__icon--off { display: none; }
.radio-toggle.radio-toggle--90s .radio-toggle__icon--90s { display: inline-flex; }
.radio-toggle.radio-toggle--radio7 .radio-toggle__icon--off { display: none; }
.radio-toggle.radio-toggle--radio7 .radio-toggle__icon--radio7 { display: inline-flex; }
.radio-toggle.radio-toggle--winwave .radio-toggle__icon--off { display: none; }
.radio-toggle.radio-toggle--winwave .radio-toggle__icon--winwave { display: inline-flex; }

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
}

.logo--link {
  color: inherit;
  text-decoration: none;
}
.logo--link:hover {
  opacity: 0.9;
}

.logo__image {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  object-fit: cover;
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.75),
    0 0 0 1px rgba(248, 250, 252, 0.1);
}

.logo__mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: radial-gradient(circle at 30% 30%, #f97316, #ea580c);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fffbeb;
  font-size: 19px;
  letter-spacing: 0.04em;
  box-shadow:
    0 12px 25px rgba(249, 115, 22, 0.4),
    0 0 0 1px rgba(248, 250, 252, 0.08);
}

.logo__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.logo__title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: clamp(9px, 2.85vw, 15px);
}

.logo__title-line {
  display: block;
  max-width: 100%;
}

/* Одна строка без переноса посередине «Два» / «туза» */
.logo__title-line--name {
  white-space: nowrap;
  letter-spacing: 0.03em;
  overflow: hidden;
  text-overflow: ellipsis;
}

.logo__subtitle {
  font-size: clamp(8px, 2.2vw, 11px);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

@media (max-width: 380px) {
  .card__header {
    gap: 6px;
  }
  .logo {
    gap: 8px;
  }
  .logo__image {
    width: 36px;
    height: 36px;
  }
}

.card__content {
  pointer-events: auto;
  touch-action: manipulation;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
/* Главная: карточка по высоте по контенту, скролл всей страницы как в остальных разделах */
.card:has(.view--active[data-view="home"]) {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
}
.card:has(.view--active[data-view="home"]) .card__content {
  min-width: 0;
  overflow: visible;
}
.card:has(.view--active[data-view="home"]) .card__content > .view {
  min-width: 0;
}
/* Длинные списки (видеоуроки, задачи): карточка растёт по контенту, не обрезается flex-родителем .app */
.card:has(.view--active[data-view="learn-play-hub"]) .card__content,
.card:has(.view--active[data-view="video-lessons"]) .card__content,
.card:has(.view--active[data-view="poker-tasks"]) .card__content {
  min-width: 0;
  overflow: visible;
}
/* fallback для главной без :has() */
html.app-view-home .card .card__content {
  min-width: 0;
  overflow: visible;
}
.card__content:has(.view--active[data-view="chat"]) {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  width: 100%;
  gap: 0;
  padding-top: 0;
}

.view {
  display: none;
}

.view--active {
  display: block;
}

/* Чат: один textarea переносится между общим и личным — без второго поля в DOM для iOS */
.chat-composer-mount {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: stretch;
}
.chat-composer-mount .chat-input--textarea {
  width: 100%;
}
.chat-composer-pool {
  position: fixed;
  left: 0;
  top: 0;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
  pointer-events: none;
  visibility: hidden;
}

/* Плавное перелистывание при свайпе: две страницы видны, текущая уезжает, новая въезжает */
.card__content--swipe-animating {
  overflow: hidden !important;
  position: relative !important;
}
.card__content--swipe-animating .view--swipe-current,
.card__content--swipe-animating .view--swipe-next {
  display: block !important;
  position: absolute !important;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100% !important;
  min-height: 100%;
  transition: transform 0.28s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
  z-index: 1;
}
.card__content--swipe-animating .view--swipe-next {
  z-index: 2;
}
.card__content--swipe-animating .view--swipe-current.view--swipe-out-left {
  transform: translateX(-100%);
}
.card__content--swipe-animating .view--swipe-current.view--swipe-out-right {
  transform: translateX(100%);
}
.card__content--swipe-animating .view--swipe-next.view--swipe-in-from-right {
  transform: translateX(0);
}
.card__content--swipe-animating .view--swipe-next.view--swipe-in-from-left {
  transform: translateX(0);
}
.card__content--swipe-animating .view--swipe-next.view--swipe-in-from-right.view--swipe-in-start {
  transform: translateX(100%);
}
.card__content--swipe-animating .view--swipe-next.view--swipe-in-from-left.view--swipe-in-start {
  transform: translateX(-100%);
}
.card__content--swipe-animating .view--swipe-current.view--swipe-drag {
  transition: none;
}
.card__content--swipe-animating .view--swipe-next.view--swipe-drag {
  transition: none;
}
.view--active[data-view="home"] {
  padding-bottom: 8px;
}

.view--active[data-view="chat"] {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  max-height: 100%;
  overflow: hidden;
  width: 100%;
  padding-top: 0;
}
.view--active[data-view="chat"] .chat-messages {
  background-color: transparent;
  background-image: none;
  border: none;
}
.view--active[data-view="chat"] .chat-input-wrap,
.view--active[data-view="chat"] .chat-input-area,
.view--active[data-view="chat"] .chat-container {
  border: none;
}
.view--active[data-view="chat"] .chat-input-area {
  padding-left: max(8px, var(--screen-gutter-x));
  padding-right: max(8px, var(--screen-gutter-x));
  padding-bottom: calc(65px + env(safe-area-inset-bottom, 0px));
}
/* Лента чата: таббар скрыт — 65px не нужен (иначе пустая полоса над футером TG / домашней зоной).
   Без :has(): надёжнее в WKWebView / Telegram iOS. */
.view--active[data-view="chat"] .chat-general-view:not(.chat-general-view--hidden) .chat-input-area,
.view--active[data-view="chat"] .chat-conv-view:not(.chat-conv-view--hidden) .chat-input-area {
  padding-bottom: max(12px, env(safe-area-inset-bottom, 0px));
}
/* При вводе сообщения (клавиатура открыта) — просто блокируем прокрутку, без перерисовки всего экрана,
   чтобы не было дёрганий и белых вспышек. */
html.chat-keyboard-open {
  overflow: hidden !important;
}
html.chat-keyboard-open body {
  overflow: hidden !important;
}
/* Клавиатура в чате (включая поиск в списке диалогов): таббар перекрывал поле ввода в PWA — скрываем всегда */
body.chat-keyboard-open:has(.view--active[data-view="chat"]) .bottom-nav {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: transform 0.25s ease-out, opacity 0.25s ease-out, visibility 0s linear 0.26s;
}
/* На случай если transform таббара не сработал в WebView — весь #app выше нижнего меню */
body.chat-keyboard-open:has(.view--active[data-view="chat"]) #app.app {
  z-index: 1002;
}
body.chat-keyboard-open .card__header {
  display: none !important;
}
/* Внутри общего чата или личного чата: скрываем верхнее и нижнее меню */
.app:has(.view--active[data-view="chat"]):has(.chat-general-view:not(.chat-general-view--hidden)) .card__header,
.app:has(.view--active[data-view="chat"]):has(.chat-conv-view:not(.chat-conv-view--hidden)) .card__header {
  display: none !important;
}
#app:has(.view--active[data-view="chat"]):has(.chat-general-view:not(.chat-general-view--hidden)) ~ .bottom-nav,
#app:has(.view--active[data-view="chat"]):has(.chat-conv-view:not(.chat-conv-view--hidden)) ~ .bottom-nav {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: transform 0.25s ease-out, opacity 0.25s ease-out, visibility 0s linear 0.26s;
}
.app:has(.view--active[data-view="chat"]):has(.chat-general-view:not(.chat-general-view--hidden)),
.app:has(.view--active[data-view="chat"]):has(.chat-conv-view:not(.chat-conv-view--hidden)) {
  padding-bottom: 0;
  /* В чате убираем лишние отступы сверху: окно чата должно стартовать как можно выше */
  padding-top: env(safe-area-inset-top, 0px);
}
body.chat-keyboard-open .app {
  padding-bottom: max(12px, env(safe-area-inset-bottom, 0px));
}
/* Layout viewport ≠ visualViewport при клавиатуре — сдвигаем блок ввода к низу видимой области */
html.chat-vv-lift body.chat-keyboard-open .app:has(.view--active[data-view="chat"]):has(.chat-general-view:not(.chat-general-view--hidden)) .chat-general-view .chat-input-area,
html.chat-vv-lift body.chat-keyboard-open .app:has(.view--active[data-view="chat"]):has(.chat-conv-view:not(.chat-conv-view--hidden)) .chat-container .chat-input-area {
  transform: translate3d(
    0,
    calc(-1 * (var(--chat-vv-inset, 0px) + var(--chat-ios-accessory-inset, 0px))),
    0
  );
}
/* После закрытия клавиатуры WKWebView иногда оставляет композитный сдвиг — явно к нулю (!important ломает залипший слой) */
body:not(.chat-keyboard-open) .chat-general-view .chat-input-area,
body:not(.chat-keyboard-open) .chat-container .chat-input-area {
  transform: translate3d(0, 0, 0) !important;
}
/* Клавиатура открыта: без полноширинной подложки и без отступа «под таббар» — иначе в PWA полоса и зазор над клавиатурой */
html.chat-keyboard-open body.chat-keyboard-open .chat-general-view .chat-input-area,
html.chat-keyboard-open body.chat-keyboard-open .chat-container .chat-input-area {
  padding-bottom: max(6px, env(safe-area-inset-bottom, 0px));
  background: transparent;
  box-shadow: none;
}
.chat-switcher-row {
  display: flex;
  justify-content: center;
  margin-top: 6px;
  padding: 4px 0;
  flex-shrink: 0;
}
.chat-switcher-row--above-input {
  margin-top: 0;
  margin-bottom: 4px;
  padding: 4px 0;
}
.chat-switcher-row--above-input.chat-switcher-wrap {
  position: relative;
  max-width: 200px;
  margin-left: auto;
  margin-right: 0;
}
.chat-switcher-row .chat-switcher-wrap {
  max-width: 200px;
  flex: 0 1 auto;
}
.view--active[data-view="chat"] .chat-switcher-row--above-input .chat-switcher-dropdown {
  top: auto;
  bottom: 100%;
  margin-top: 0;
  margin-bottom: 4px;
}
.view--active[data-view="chat"] .chat-switcher-row:not(.chat-switcher-row--above-input) .chat-switcher-dropdown {
  top: auto;
  bottom: 100%;
  margin-top: 0;
  margin-bottom: 4px;
}

.title {
  margin: 4px 0 0;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.02em;
  max-width: 100%;
  overflow-wrap: break-word;
}

.welcome-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 4px 0 0;
  min-width: 0;
}

.welcome-title-wrap {
  flex: 1;
  min-width: 0;
}

.welcome-title-row .title--welcome {
  margin: 0;
}

.welcome-date {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

.welcome-gazette-icon {
  position: relative;
  flex-shrink: 0;
  padding: 4px 0;
  font-size: 38px;
  line-height: 1;
  opacity: 0.9;
  background: none;
  border: none;
  cursor: pointer;
}

.welcome-gazette-icon:hover {
  opacity: 1;
}

.welcome-gazette-icon__badge-wrap {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -2px);
  pointer-events: none;
}

.welcome-gazette-icon__unread {
  display: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #dc2626;
  box-shadow: 0 0 0 2px var(--card-bg, rgba(255, 255, 255, 0.95));
}

.welcome-gazette-icon__unread--visible {
  display: block;
}

.welcome-gazette-icon__emoji {
  display: block;
}

.welcome-admin-report-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 2px;
  min-height: 0;
}

.welcome-admin-report-btn {
  padding: 4px 6px;
  font-size: 22px;
  line-height: 1;
  background: none;
  border: none;
  cursor: pointer;
  opacity: 0.85;
}

.welcome-admin-report-btn:hover {
  opacity: 1;
}

.welcome-admin-report-btn__icon {
  display: block;
}

/* Модалка газеты «Вестник Два туза» — первая и вторая полоса */
.gazette-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.gazette-modal[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
}
.gazette-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  cursor: pointer;
}
.gazette-modal__paper {
  position: relative;
  width: 100%;
  max-width: 420px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  overflow-x: hidden;
  touch-action: pan-y;
  overscroll-behavior-y: contain;
  transform: translateZ(0);
  background: #ebe0c8;
  background-image:
    linear-gradient(rgba(139, 90, 43, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 90, 43, 0.04) 1px, transparent 1px);
  background-size: 12px 12px;
  color: #1a1a1a;
  font-family: Georgia, "Times New Roman", serif;
  border: none;
  border-top: 3px double #2c1810;
  border-left: 2px solid #2c1810;
  border-right: 2px solid #2c1810;
  border-bottom: 3px solid #2c1810;
  box-shadow:
    inset 0 0 40px rgba(139, 90, 43, 0.06),
    2px 2px 0 rgba(0, 0, 0, 0.06),
    6px 6px 0 rgba(0, 0, 0, 0.04),
    10px 10px 28px rgba(0, 0, 0, 0.25);
  border-radius: 0;
  -webkit-overflow-scrolling: touch;
}
.gazette-modal__paper::before {
  content: "";
  position: fixed;
  top: 10px;
  right: 10px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 24px 24px 0;
  border-color: transparent #c4b59a transparent transparent;
  box-shadow: -1px 2px 3px rgba(0, 0, 0, 0.1);
  z-index: 1;
  pointer-events: none;
}
/* Декоративные тузы и масти в углах газеты */
.gazette-modal__deco {
  position: absolute;
  z-index: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-weight: 700;
  color: rgba(44, 24, 16, 0.28);
  line-height: 1;
  pointer-events: none;
}
.gazette-modal__deco--tl {
  top: 54px;
  left: 16px;
}
.gazette-modal__deco--tr {
  top: 54px;
  right: 16px;
}
.gazette-modal__deco--bl {
  bottom: 16px;
  left: 16px;
}
.gazette-modal__deco--br {
  bottom: 16px;
  right: 16px;
}
.gazette-modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  padding: 0;
  background: rgba(139, 90, 43, 0.12);
  border: 1px solid rgba(139, 90, 43, 0.35);
  border-radius: 2px;
  color: #2c1810;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}
.gazette-modal__close:hover {
  background: rgba(139, 90, 43, 0.25);
}
/* Когда газета открыта: скрываем нижнее меню и верхнюю шапку приложения */
#app:has(#gazetteModal[aria-hidden="false"]) ~ .bottom-nav {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: transform 0.25s ease-out, opacity 0.25s ease-out, visibility 0s linear 0.26s;
}
.app:has(#gazetteModal[aria-hidden="false"]) .card__header {
  display: none !important;
}
/* В самой газете скрываем только кнопку «Закрыть» (×), «На главную» оставляем */
#gazetteModal[aria-hidden="false"] .gazette-modal__close {
  display: none !important;
}
/* Отступы под кнопку закрыть (top) и справа от неё */
.gazette-modal__paper {
  padding-top: 0;
}
.gazette-admin-row {
  margin: 8px 0 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.gazette-admin-row--hidden { display: none; }
.gazette-admin-btn {
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--accent);
  background: rgba(249, 115, 22, 0.08);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  align-self: flex-start;
}
.gazette-admin-btn:disabled {
  opacity: 0.7;
  cursor: default;
}
.gazette-admin-hint {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}
.gazette-modal__pick,
.gazette-modal__content {
  padding-right: 52px;
}
/* Выбор страницы */
.gazette-modal__pick {
  padding: 50px 52px 24px 20px;
  box-sizing: border-box;
}
.gazette-modal__pick[hidden] {
  display: none !important;
}
/* Кнопка «На главную» под заголовком «Вестник Два туза», слева */
.gazette-modal__pick-back-bar {
  margin: 0 0 12px;
  padding: 0;
  text-align: left;
}
.gazette-modal__pick-back-bar .gazette-modal__back--to-home {
  margin: 0;
}

/* Первая полоса газеты (фронт) */
.gazette-front {
  margin-top: 8px;
  padding: 8px 10px;
  border: 1px solid rgba(44, 24, 16, 0.6);
}
.gazette-front__meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(44, 24, 16, 0.8);
  margin-bottom: 6px;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(44, 24, 16, 0.6);
}
.gazette-front__headline-wrap {
  text-align: center;
  margin-bottom: 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(44, 24, 16, 0.6);
}
.gazette-front__headline-main {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.gazette-front__headline-sub {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-top: 2px;
}
.gazette-front__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 10px;
  margin-top: 10px;
  align-items: start;
}
@media (max-width: 380px) {
  .gazette-front__grid {
    grid-template-columns: 1fr;
  }
}
/* Слева шире — последняя новость; справа уже — две предыдущие */
.gazette-front__main--lead {
  border-right: 1px solid rgba(44, 24, 16, 0.35);
  padding-right: 8px;
  min-width: 0;
}
.gazette-front__side--prev {
  min-width: 0;
}
.gazette-front__main {
  min-width: 0;
}
@media (max-width: 380px) {
  .gazette-front__main--lead {
    border-right: none;
    padding-right: 0;
    border-bottom: 1px solid rgba(44, 24, 16, 0.35);
    padding-bottom: 8px;
    margin-bottom: 8px;
  }
  .gazette-front__side--prev {
    padding-left: 0;
  }
}
.gazette-front__side {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.gazette-front__col--first {
  border-top: none;
  padding-top: 0;
}
.gazette-front__section {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(139, 90, 43, 0.9);
  margin-bottom: 4px;
}
.gazette-front__posted-date {
  margin: 0 0 6px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(92, 64, 51, 0.88);
  line-height: 1.3;
}
[data-theme="dark"] .gazette-front__posted-date {
  color: rgba(214, 211, 209, 0.85);
}
.gazette-front__teaser-link {
  display: block;
  text-decoration: none;
  color: inherit;
}
.gazette-front__title {
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 6px;
}
.gazette-front__title-small {
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 4px;
}
.gazette-front__thumb,
.gazette-front__thumb-small {
  border: 1px solid rgba(44, 24, 16, 0.35);
  background: rgba(0, 0, 0, 0.05);
  overflow: hidden;
  margin-bottom: 4px;
}
.gazette-front__thumb img {
  display: block;
  width: 100%;
  max-height: 90px;
  object-fit: cover;
}
.gazette-front__thumb-small img {
  display: block;
  width: 100%;
  max-height: 60px;
  object-fit: cover;
}
.gazette-front__lead {
  font-size: 11px;
  line-height: 1.35;
  margin: 0 0 4px;
}
.gazette-front__lead-small {
  font-size: 10px;
  line-height: 1.35;
  margin: 0;
}
.gazette-front__lead::first-letter,
.gazette-front__lead-small::first-letter {
  font-size: 180%;
  font-weight: 700;
  float: left;
  line-height: 0.9;
  padding-right: 3px;
}
.gazette-front__read-more {
  display: inline-block;
  margin-top: 2px;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border-radius: 999px;
  background: rgba(220, 38, 38, 0.92);
  color: #fefce8;
  box-shadow: 0 0 0 1px rgba(127, 29, 29, 0.9), 0 2px 6px rgba(127, 29, 29, 0.55);
}
.gazette-front__col {
  border-top: 1px solid rgba(44, 24, 16, 0.3);
  padding-top: 4px;
}
.gazette-modal__pages {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 24px;
}
.gazette-modal__page-card {
  display: block;
  width: 100%;
  min-height: 140px;
  padding: 24px 20px;
  text-align: left;
  background: rgba(139, 90, 43, 0.08);
  border: 2px solid rgba(139, 90, 43, 0.35);
  border-radius: 4px;
  color: #2c1810;
  font-family: Georgia, "Times New Roman", serif;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}
.gazette-modal__page-card:hover {
  background: rgba(139, 90, 43, 0.14);
  border-color: rgba(139, 90, 43, 0.5);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
/* Карточка в виде газеты (первая полоса) */
.gazette-modal__page-card--newspaper {
  position: relative;
  overflow: hidden;
  padding: 0;
  background: #ebe0c8;
  background-image:
    linear-gradient(rgba(139, 90, 43, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 90, 43, 0.04) 1px, transparent 1px);
  background-size: 12px 12px;
  border: none;
  border-top: 3px double #2c1810;
  border-left: 2px solid #2c1810;
  border-right: 2px solid #2c1810;
  border-bottom: 3px double #2c1810;
  box-shadow:
    inset 0 0 40px rgba(139, 90, 43, 0.06),
    2px 2px 0 rgba(0, 0, 0, 0.06),
    4px 4px 0 rgba(0, 0, 0, 0.04),
    8px 8px 20px rgba(0, 0, 0, 0.15);
  color: #1a1a1a;
  font-family: Georgia, "Times New Roman", serif;
  text-align: left;
}
.gazette-modal__page-card--newspaper::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 28px 28px 0;
  border-color: transparent #c4b59a transparent transparent;
  box-shadow: -1px 2px 3px rgba(0, 0, 0, 0.1);
}
.gazette-modal__page-card--newspaper:hover {
  background-color: #e5d9be;
  border-color: #2c1810;
  box-shadow:
    inset 0 0 40px rgba(139, 90, 43, 0.08),
    2px 2px 0 rgba(0, 0, 0, 0.08),
    6px 6px 0 rgba(0, 0, 0, 0.05),
    10px 10px 24px rgba(0, 0, 0, 0.2);
}
.gazette-modal__page-card-masthead {
  display: block;
  width: 100%;
  padding: 10px 20px 8px;
  background: #2c1810;
  color: #ebe0c8;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.35em;
  text-align: center;
  font-family: Georgia, "Times New Roman", serif;
}
.gazette-modal__page-card-rule {
  display: block;
  width: 100%;
  height: 2px;
  background: #2c1810;
  margin: 0;
}
.gazette-modal__page-card--newspaper .gazette-modal__page-card-inner {
  padding: 20px 20px 22px;
  gap: 6px;
}
.gazette-modal__page-card--newspaper .gazette-modal__page-card-caption {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.25;
  font-family: Georgia, "Times New Roman", serif;
  text-shadow: none;
}
.gazette-modal__page-card-sub {
  display: block;
  font-size: 12px;
  color: #5c4033;
  letter-spacing: 0.05em;
  font-style: italic;
}
.gazette-modal__page-card-inner {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.gazette-modal__page-card-num {
  font-size: 14px;
  font-weight: 700;
  color: #5c4033;
  letter-spacing: 0.05em;
}
.gazette-modal__page-card-caption {
  font-size: 17px;
  font-weight: 700;
  color: #2c1810;
  line-height: 1.3;
}
.gazette-modal__subscribe-wrap {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(139, 90, 43, 0.25);
  text-align: center;
}
.gazette-modal__subscribe-text {
  margin: 0 0 10px;
  font-size: 12px;
  color: #5c4033;
  line-height: 1.4;
}
.gazette-modal__subscribe-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 260px;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fef3e2;
  background: linear-gradient(180deg, #a5241c 0%, #7f1711 100%);
  border-radius: 999px;
  border: 1px solid #3c0b07;
  box-shadow:
    0 4px 10px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  cursor: pointer;
  font-family: Georgia, "Times New Roman", serif;
  transition: background 0.2s ease, transform 0.1s ease, box-shadow 0.1s ease;
}
.gazette-modal__subscribe-btn:hover:not(:disabled) {
  background: linear-gradient(180deg, #b5271f 0%, #8c1a13 100%);
  box-shadow:
    0 6px 14px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}
.gazette-modal__subscribe-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  box-shadow:
    0 2px 6px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
/* .subscribe-btn__in-dev оставлена для совместимости, но сейчас не используется */
/* Кнопка подписки в блоке новостей */
.gazette-modal__subscribe-in-news {
  margin: 0 0 16px;
  text-align: center;
}
.gazette-modal__subscribe-in-news-btn {
  display: inline-block;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  color: #2c1810;
  background: rgba(139, 90, 43, 0.2);
  border: 1px solid rgba(139, 90, 43, 0.5);
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s, border-color 0.2s;
}
.gazette-modal__subscribe-in-news-btn:hover:not(:disabled) {
  background: rgba(139, 90, 43, 0.35);
  border-color: rgba(139, 90, 43, 0.65);
}
.gazette-modal__subscribe-in-news-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}
/* Кнопка подписки под каждой статьёй */
.gazette-modal__subscribe-in-article {
  margin: 12px 0 24px;
  text-align: center;
}
.gazette-modal__subscribe-in-article-btn {
  display: inline-block;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  color: #2c1810;
  background: rgba(139, 90, 43, 0.2);
  border: 1px solid rgba(139, 90, 43, 0.5);
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s, border-color 0.2s;
}
.gazette-modal__subscribe-in-article-btn:hover:not(:disabled) {
  background: rgba(139, 90, 43, 0.35);
  border-color: rgba(139, 90, 43, 0.65);
}
.gazette-modal__subscribe-in-article-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}
/* Контент страницы (новости или заносы) */
.gazette-modal__content {
  padding: 50px 52px 24px 20px;
  overflow-y: auto;
  max-height: calc(100vh - 32px);
  box-sizing: border-box;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  touch-action: pan-y;
}
.gazette-modal__content[hidden] {
  display: none !important;
}
/* Чтобы контент газеты не уходил под нижнее меню: отступ снизу = высота меню + 2мм */
.gazette-modal__content--news {
  padding-top: 50px;
  /* Больше отступ снизу, чтобы кнопка «Подписаться на газету» всегда была видна над нижним меню */
  padding-bottom: calc(104px + 8mm);
}
.gazette-modal__content-masthead {
  display: block;
  width: 100%;
  padding: 12px 20px 10px;
  background: #2c1810;
  color: #ebe0c8;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.35em;
  text-align: center;
  font-family: Georgia, "Times New Roman", serif;
}
.gazette-modal__content-rule {
  display: block;
  width: 100%;
  height: 2px;
  background: #2c1810;
  margin: 0;
}
.gazette-modal__content--news .gazette-modal__back {
  margin-top: 0;
  margin-bottom: 8px;
}
.gazette-modal__article-back {
  margin: 0 0 8px;
}
.gazette-modal__article-back .gazette-modal__back {
  margin-bottom: 0;
}
.gazette-modal__content--news .gazette-modal__content-masthead {
  margin-top: 12px;
}
.gazette-modal__content-date {
  margin: 0 0 12px;
  font-size: 12px;
  color: #5c4033;
  letter-spacing: 0.02em;
  font-weight: 600;
}
.gazette-modal__lead--top {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 2px solid #2c1810;
}
.gazette-modal__content--news .gazette-modal__lead--top:first-of-type {
  margin-top: 16px;
  padding-top: 20px;
  border-top: none;
}
/* .gazette-modal__back — базовый вид в блоке «Единый стиль … как в общем чате» */
.gazette-modal__back {
  margin-bottom: 12px;
}
.gazette-modal__header {
  text-align: center;
  margin: 0 0 16px;
  padding: 0;
}
.gazette-modal__edition {
  margin: 0 0 4px;
  font-size: 10px;
  color: #5c4033;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.gazette-modal__masthead {
  margin: 0;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #2c1810;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
  line-height: 1.15;
}
.gazette-modal__date {
  margin: 6px 0 0;
  font-size: 12px;
  color: #5c4033;
  letter-spacing: 0.02em;
}
.gazette-modal__rule {
  margin-top: 14px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #8b5a2b 8%, #8b5a2b 92%, transparent);
}
.gazette-modal__lead {
  margin: 20px 0 0;
  padding: 0 4px;
}
.gazette-modal__headline--main {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.25;
  text-align: left;
  font-family: Georgia, "Times New Roman", serif;
}
.gazette-modal__content--news .gazette-modal__content-date {
  color: #5c4033;
  font-weight: 600;
  letter-spacing: 0.03em;
}
.gazette-modal__photo-wrap {
  margin: 14px 0 10px;
  text-align: center;
}
.gazette-modal__photo {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border: 2px solid #8b5a2b;
  box-shadow:
    inset 0 0 20px rgba(139, 90, 43, 0.15),
    2px 2px 0 rgba(0, 0, 0, 0.15),
    4px 4px 12px rgba(0, 0, 0, 0.2);
  filter: sepia(0.35) contrast(1.05);
  box-sizing: border-box;
}
/* Фото в духе жёлтой прессы: усиленный сепия под газетную полосу */
.gazette-modal__photo-wrap--warm .gazette-modal__photo {
  filter: sepia(0.6) contrast(1.08) saturate(0.9);
}
.gazette-modal__photo-caption {
  margin: 6px 0 0;
  font-size: 10px;
  font-style: italic;
  color: #5c4033;
  line-height: 1.3;
}
.gazette-modal__body {
  margin: 12px 0 0;
}
.gazette-modal__body p {
  margin: 0;
  font-size: 13px;
  color: #2c1810;
  line-height: 1.55;
  text-align: justify;
}
.gazette-modal__body a.gazette-modal__rating-link {
  color: #8b5a2b;
  text-decoration: underline;
  cursor: pointer;
}
.gazette-modal__body a.gazette-modal__rating-link:hover {
  color: #5c4033;
}

/* Газета: сказочная статья (Зал славы / Ривер) */
.gazette-modal__lead--fairytale {
  position: relative;
}
.gazette-fairytale__kicker {
  margin: 0 0 8px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-align: center;
  color: #7c3aed;
}
.gazette-modal__headline--fairytale {
  text-align: center;
  font-size: 17px;
  line-height: 1.32;
  color: #4c1d95;
  margin-bottom: 4px;
  padding: 0 2px 0;
  border-bottom: none;
  position: relative;
}
.gazette-modal__headline--fairytale::after {
  content: "";
  display: block;
  margin: 10px auto 0;
  width: 88%;
  max-width: 320px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, #a855f7, #22d3ee, #c084fc, transparent);
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.35);
}
.gazette-modal__body--fairytale {
  margin-top: 4px;
  padding: 14px 12px 16px;
  border-radius: 12px;
  background: linear-gradient(168deg, rgba(250, 245, 255, 0.97), rgba(255, 251, 235, 0.94));
  border: 1px solid rgba(139, 90, 43, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 4px 18px rgba(76, 29, 149, 0.08);
}
.gazette-modal__body--fairytale p {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.62;
  color: #3d2914;
  text-align: left;
}
.gazette-modal__body--fairytale p:last-of-type {
  margin-bottom: 0;
}
.gazette-fairytale__villain {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(124, 58, 237, 0.42);
  background: linear-gradient(135deg, rgba(88, 28, 135, 0.07), rgba(14, 165, 233, 0.08));
  box-shadow: 0 0 22px rgba(124, 58, 237, 0.14);
  font-size: 13px;
  line-height: 1.58;
  font-style: italic;
  color: #3730a3;
}
.gazette-fairytale__villain-title {
  display: block;
  font-style: normal;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6d28d9;
  margin-bottom: 6px;
}
.gazette-fairytale__lead {
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1.55 !important;
  color: #422006 !important;
  text-align: center !important;
  margin-bottom: 14px !important;
}
.gazette-fairytale__moral {
  margin-top: 4px !important;
  padding-top: 12px !important;
  border-top: 1px dashed rgba(139, 90, 43, 0.38) !important;
  font-size: 12.5px !important;
  line-height: 1.55 !important;
  color: #5c4033 !important;
}
.gazette-modal__share-row {
  margin: 16px 0 20px 0;
  padding: 12px 16px 0;
  border-top: 1px solid rgba(139, 90, 43, 0.25);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: stretch;
  justify-content: stretch;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
/* Современная иконка «поделиться» для кнопок Отправить другу / Поделиться */
.gazette-modal__share-btn,
.winter-rating__share-btn,
.winter-rating-player-modal__share-btn,
.winter-rating-week-top-modal__share-btn {
  --share-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='18' cy='5' r='3'/%3E%3Ccircle cx='6' cy='12' r='3'/%3E%3Ccircle cx='18' cy='19' r='3'/%3E%3Cline x1='8.59' y1='13.51' x2='15.42' y2='17.49'/%3E%3Cline x1='15.41' y1='6.51' x2='8.59' y2='10.49'/%3E%3C/svg%3E");
}
.gazette-modal__share-btn::before,
.winter-rating__share-btn::before,
.winter-rating-player-modal__share-btn::before,
.winter-rating-week-top-modal__share-btn::before {
  content: "";
  display: inline-block;
  width: 1.15em;
  height: 1.15em;
  margin-right: 6px;
  vertical-align: -0.2em;
  background-color: currentColor;
  mask: var(--share-icon) no-repeat center;
  mask-size: contain;
  -webkit-mask: var(--share-icon) no-repeat center;
  -webkit-mask-size: contain;
}
.gazette-modal__share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 1 1 calc(50% - 5px);
  min-width: 0;
  max-width: 100%;
  width: auto;
  box-sizing: border-box;
  min-height: 44px;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(139, 90, 43, 0.45);
  background: linear-gradient(180deg, rgba(255, 251, 247, 0.98) 0%, rgba(254, 243, 229, 0.95) 100%);
  color: #5c4033;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, border-color 0.2s;
  box-shadow: 0 2px 8px rgba(92, 64, 51, 0.1);
  white-space: normal;
  text-align: center;
  line-height: 1.25;
  word-break: break-word;
}
.gazette-modal__share-btn.gazette-modal__share-copy {
  flex: 1 1 calc(50% - 5px);
  font-size: 12px;
  min-height: 40px;
  padding: 8px 10px;
}
.gazette-modal__share-btn.gazette-modal__share-telegram {
  background: linear-gradient(180deg, #15803d 0%, #166534 100%);
  border-color: rgba(21, 128, 61, 0.95);
  color: #ecfdf5;
  box-shadow: 0 0 0 1px rgba(4, 120, 87, 0.9), 0 4px 12px rgba(4, 120, 87, 0.6);
}
.gazette-modal__share-btn.gazette-modal__share-telegram:hover {
  background: linear-gradient(180deg, #16a34a 0%, #15803d 100%);
  border-color: rgba(4, 120, 87, 1);
  box-shadow: 0 0 0 1px rgba(4, 120, 87, 1), 0 6px 16px rgba(4, 120, 87, 0.7);
}
.gazette-modal__share-btn:hover {
  background: linear-gradient(180deg, rgba(255, 247, 237, 1) 0%, rgba(255, 237, 213, 0.98) 100%);
  border-color: rgba(139, 90, 43, 0.55);
  box-shadow: 0 4px 12px rgba(92, 64, 51, 0.15);
  transform: translateY(-1px);
}
.gazette-modal__share-btn:active {
  transform: translateY(0);
  box-shadow: 0 1px 4px rgba(92, 64, 51, 0.12);
}
.gazette-modal__intro {
  margin: 0 0 18px;
  font-size: 13px;
  color: #5c4033;
  line-height: 1.5;
  text-align: justify;
}
.gazette-modal__lead {
  padding: 0 4px;
}
.gazette-modal__article {
  margin: 0;
}
.gazette-modal__content-date {
  margin: 0 0 12px;
  font-size: 12px;
  color: #5c4033;
  letter-spacing: 0.02em;
}
.gazette-modal__content--news .gazette-modal__lead {
  margin-top: 0;
}
.gazette-modal__lead--top {
  margin-top: 24px;
}
/* Черновики газеты: скрыты в общей ленте, видны по прямой ссылке ?startapp=news_N */
#gazetteModalNews .gazette-modal__lead[data-gazette-draft="1"] {
  display: none !important;
}
.gazette-modal__draft-banner {
  margin: 0 0 14px;
  padding: 10px 12px;
  font-size: 12px;
  line-height: 1.45;
  font-weight: 700;
  text-align: center;
  color: #7c2d12;
  background: linear-gradient(135deg, rgba(254, 215, 170, 0.95), rgba(251, 191, 36, 0.35));
  border: 1px dashed rgba(154, 52, 18, 0.55);
  border-radius: 10px;
}
[data-theme="dark"] .gazette-modal__draft-banner {
  color: #fed7aa;
  background: linear-gradient(135deg, rgba(124, 45, 18, 0.45), rgba(30, 20, 15, 0.9));
  border-color: rgba(251, 191, 36, 0.35);
}
.gazette-modal__headline--continuation {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 700;
  color: #2c1810;
}
.gazette-modal__headline-cont {
  font-weight: 600;
  color: #5c4033;
  font-size: 13px;
}
.gazette-modal__top-list {
  font-size: 13px;
  line-height: 1.65;
  column-count: 2;
  column-gap: 20px;
  column-rule: 1px solid rgba(139, 90, 43, 0.25);
}
.gazette-modal__top-item {
  break-inside: avoid;
  margin-bottom: 6px;
  padding: 4px 0 4px 2px;
  border-bottom: 1px dotted rgba(139, 90, 43, 0.3);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}
.gazette-modal__top-item:last-child {
  border-bottom: none;
}
.gazette-modal__top-num {
  font-weight: 700;
  color: #5c4033;
  min-width: 1.2em;
  flex-shrink: 0;
}
.gazette-modal__nick-btn {
  flex: 1;
  margin: 0;
  padding: 0;
  background: none;
  border: none;
  font: inherit;
  font-weight: 600;
  color: #2c1810;
  cursor: pointer;
  text-align: left;
  min-width: 0;
}
.gazette-modal__nick-btn:hover {
  text-decoration: underline;
  color: #1a0d08;
}
.gazette-modal__top-nick {
  flex: 1;
  font-weight: 600;
  color: #2c1810;
  min-width: 0;
}
.gazette-modal__top-reward {
  font-weight: 700;
  color: #2c1810;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Модалка партнёрства: 4 листа с листанием вправо */
.partnership-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.partnership-modal[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
}
.partnership-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  cursor: pointer;
}
.partnership-modal__box {
  position: relative;
  width: 100%;
  max-width: 420px;
  max-height: calc(100vh - 32px);
  background: var(--card-bg, #1e293b);
  border: 1px solid var(--card-border, rgba(148, 163, 184, 0.35));
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.partnership-modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  padding: 0;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: var(--text, #f1f5f9);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}
.partnership-modal__close:hover {
  background: rgba(255, 255, 255, 0.18);
}
.partnership-modal__track {
  display: flex;
  width: 500%;
  flex-shrink: 0;
  transition: transform 0.3s ease-out;
  min-height: 0;
  flex: 1;
}
.partnership-modal__sheet {
  width: 20%;
  flex-shrink: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 48px 20px 60px;
  box-sizing: border-box;
}
.partnership-modal__sheet-inner {
  max-width: 100%;
}
.partnership-modal__img {
  display: block;
  width: calc(100% - 16px);
  max-width: none;
  height: auto;
  margin: 0 8px 16px;
  border-radius: 8px;
  object-fit: cover;
}
.partnership-modal__title {
  margin: 0 0 16px;
  font-family: Inter, system-ui, -apple-system, sans-serif;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--text, #f1f5f9);
}
.partnership-modal__heading {
  margin: 20px 0 12px;
  font-family: Inter, system-ui, -apple-system, sans-serif;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text, #f1f5f9);
}
.partnership-modal__heading:first-child {
  margin-top: 0;
}
.partnership-modal__step {
  margin: 0 0 12px;
  font-family: Inter, system-ui, -apple-system, sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--accent, #93c5fd);
}
.partnership-modal__text {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-muted, #94a3b8);
}
.partnership-modal__text:last-child {
  margin-bottom: 0;
}
.partnership-modal__text--contact {
  margin-top: 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text, #f1f5f9);
}
.partnership-modal__link {
  color: var(--accent, #93c5fd);
  text-decoration: underline;
}
.partnership-modal__link:hover {
  color: #bfdbfe;
}
.partnership-modal__nav-btns {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 20px;
}
.partnership-modal__prev,
.partnership-modal__next {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  color: var(--text, #f1f5f9);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.partnership-modal__prev:hover,
.partnership-modal__next:hover {
  background: rgba(255, 255, 255, 0.2);
}
.partnership-modal__nav {
  position: absolute;
  bottom: 12px;
  left: 0;
  right: 0;
  text-align: center;
}
.partnership-modal__page-indicator {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted, #94a3b8);
}

[data-theme="light"] .partnership-modal__box {
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border-color: rgba(148, 163, 184, 0.4);
}
[data-theme="light"] .partnership-modal__title,
[data-theme="light"] .partnership-modal__heading,
[data-theme="light"] .partnership-modal__step {
  color: #0f172a;
}
[data-theme="light"] .partnership-modal__text {
  color: #475569;
}
[data-theme="light"] .partnership-modal__text--contact {
  color: #0f172a;
}
[data-theme="light"] .partnership-modal__close {
  color: #334155;
  background: rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.12);
}
[data-theme="light"] .partnership-modal__link {
  color: #2563eb;
}
[data-theme="light"] .partnership-modal__prev,
[data-theme="light"] .partnership-modal__next {
  color: #0f172a;
  background: rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 0, 0, 0.15);
}

.home-mini-icon-item--clickable {
  cursor: pointer;
  opacity: 1;
  border: none;
  font: inherit;
  color: inherit;
}
.home-mini-icons .home-mini-icon-item--clickable:hover {
  opacity: 1;
}

.title--welcome {
  text-shadow:
    0 1px 0 rgba(0, 0, 0, 0.25),
    0 2px 4px rgba(0, 0, 0, 0.2),
    0 4px 8px rgba(0, 0, 0, 0.15),
    0 6px 12px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .title--welcome {
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.8),
    0 2px 4px rgba(0, 0, 0, 0.12),
    0 4px 8px rgba(0, 0, 0, 0.08),
    0 6px 14px rgba(0, 0, 0, 0.06);
}

.subtitle {
  margin: 4px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-muted);
  max-width: 100%;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

/* Чат */
.chat-title { margin-bottom: 0; }
.chat-find-by-id {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
}
.chat-find-input { flex: 1; }
.chat-find-btn { flex-shrink: 0; }
.chat-subtitle { margin-top: 2px; margin-bottom: 8px; }
.chat-stats-block {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  margin-bottom: 8px;
  background: var(--chat-stats-bg, rgba(168, 85, 247, 0.1));
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: 8px;
}
.chat-stats-block__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}
.chat-stats-block__stats {
  font-size: 13px;
  color: var(--text-muted);
}
.chat-stats {
  margin: 0 0 8px 0;
  font-size: 13px;
  color: var(--text-muted);
}
.chat-messages {
  min-height: 200px;
  max-height: 50vh;
  overflow-y: auto;
  background-color: var(--block-bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Ctext x='10' y='32' font-size='28' fill='%239ca3af' fill-opacity='0.18' font-family='serif'%3E♠%3C/text%3E%3Ctext x='45' y='65' font-size='24' fill='%239ca3af' fill-opacity='0.15'%3E♥%3C/text%3E%3Ctext x='78' y='28' font-size='28' fill='%239ca3af' fill-opacity='0.15'%3E♦%3C/text%3E%3Ctext x='105' y='72' font-size='24' fill='%239ca3af' fill-opacity='0.18'%3E♣%3C/text%3E%3Ctext x='12' y='115' font-size='14' fill='%239ca3af' fill-opacity='0.2' font-weight='500'%3E%D0%94%D0%B2%D0%B0%20%D1%82%D1%83%D0%B7%D0%B0%3C/text%3E%3Ctext x='75' y='135' font-size='16' fill='%239ca3af' fill-opacity='0.22' font-weight='600'%3EPoker21%3C/text%3E%3C/svg%3E");
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
[data-theme="light"] .chat-messages {
  background-color: var(--block-bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Ctext x='10' y='32' font-size='28' fill='%2364748b' fill-opacity='0.22' font-family='serif'%3E♠%3C/text%3E%3Ctext x='45' y='65' font-size='24' fill='%2364748b' fill-opacity='0.18'%3E♥%3C/text%3E%3Ctext x='78' y='28' font-size='28' fill='%2364748b' fill-opacity='0.18'%3E♦%3C/text%3E%3Ctext x='105' y='72' font-size='24' fill='%2364748b' fill-opacity='0.22'%3E♣%3C/text%3E%3Ctext x='12' y='115' font-size='14' fill='%2364748b' fill-opacity='0.28' font-weight='500'%3E%D0%94%D0%B2%D0%B0%20%D1%82%D1%83%D0%B7%D0%B0%3C/text%3E%3Ctext x='75' y='135' font-size='16' fill='%2364748b' fill-opacity='0.3' font-weight='600'%3EPoker21%3C/text%3E%3C/svg%3E");
}
.chat-empty {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
  padding: 12px;
  text-align: center;
}
.chat-guest-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 16px 12px 24px;
  text-align: center;
}
.chat-empty.chat-empty--guest-msg {
  color: var(--text);
  font-size: 14px;
  line-height: 1.45;
  max-width: 300px;
  padding-bottom: 0;
}
/* Кнопка входа в чатах для гостя — те же стили, что «Войти в аккаунт» в профиле */
.chat-guest-cta .profile-exit-btn {
  margin-left: 0;
  flex-shrink: 0;
}
.chat-msg {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  max-width: 85%;
  font-size: 13px;
  line-height: 1.4;
  display: flex;
}
.chat-msg__row {
  display: flex;
  gap: 6px;
  align-items: flex-end;
}
.chat-msg--own .chat-msg__row { flex-direction: row-reverse; }
.chat-msg__avatar {
  width: 36px;
  height: 36px;
  min-width: 36px;
  flex-shrink: 0;
  border-radius: 50%;
  object-fit: cover;
  background: rgba(148, 163, 184, 0.2);
}
.chat-msg__avatar--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}
.chat-msg__avatar-spacer {
  width: 36px;
  min-width: 36px;
  flex-shrink: 0;
  display: block;
  height: 0;
  visibility: hidden;
}
.chat-msg__body {
  flex: 1;
  min-width: 0;
  padding: 8px 10px;
  border-radius: 18px;
  position: relative;
}

/* Галочки статуса (личные сообщения, только свои) */
.chat-msg__ticks {
  display: inline-flex;
  margin-left: 6px;
  font-size: 11px;
  line-height: 1;
  color: var(--text-muted);
  user-select: none;
}
.chat-msg__ticks--sent { opacity: 0.75; }
.chat-msg__ticks--delivered { opacity: 0.9; }
.chat-msg__ticks--read {
  color: #22c55e;
  opacity: 1;
}
.chat-msg--own .chat-msg__body {
  background: #3d3255;
  border: 1px solid rgba(168, 85, 247, 0.55);
  border-bottom-right-radius: 6px;
  box-shadow: 0 0 0 1px rgba(168, 85, 247, 0.35), 0 1px 3px rgba(0, 0, 0, 0.15);
}
.chat-msg--own .chat-msg__body::before {
  content: "";
  position: absolute;
  right: -7px;
  bottom: 12px;
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 8px solid #3d3255;
}
.chat-msg--own .chat-msg__avatar,
.chat-msg--own .chat-msg__avatar-spacer {
  display: none;
}
.chat-msg--own .chat-msg__row {
  justify-content: flex-end;
}
.chat-msg--other .chat-msg__body {
  background: #1e293b;
  border: 1px solid var(--border-subtle);
  border-bottom-left-radius: 6px;
}
.chat-msg--other .chat-msg__body::before {
  content: "";
  position: absolute;
  left: -7px;
  bottom: 12px;
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-right: 8px solid #1e293b;
}
[data-theme="light"] .chat-msg--own .chat-msg__body {
  background: #ede9fe;
  border: 1px solid rgba(168, 85, 247, 0.6);
  box-shadow: 0 0 0 1px rgba(168, 85, 247, 0.25), 0 1px 3px rgba(0, 0, 0, 0.08);
}
[data-theme="light"] .chat-msg--own .chat-msg__body::before {
  border-left-color: #ede9fe;
}
[data-theme="light"] .chat-msg--other .chat-msg__body {
  background: #e2e8f0;
  border-color: var(--border-subtle);
}
[data-theme="light"] .chat-msg--other .chat-msg__body::before {
  border-right-color: #e2e8f0;
}
.chat-msg__meta {
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 4px;
  min-width: 0;
}
.chat-msg__msg-actions {
  margin-left: auto;
  display: inline-flex;
  gap: 2px;
  align-items: center;
}
.chat-msg__edit {
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.4);
}
.chat-msg__edit:hover {
  background: rgba(30, 41, 59, 0.95);
  color: #f1f5f9;
}
.chat-msg__delete {
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.4);
}
.chat-msg__delete:hover {
  background: rgba(239, 68, 68, 0.5);
  color: #fecaca;
}
.chat-msg__delete--corner {
  position: absolute;
  top: 4px;
  right: 4px;
  padding: 2px 6px;
  font-size: 14px;
  line-height: 1.2;
  border-radius: 6px;
  min-width: auto;
}
[data-theme="light"] .chat-msg__edit {
  color: #0f172a;
  background: #fbbf24;
  border-color: rgba(251, 191, 36, 0.9);
}
[data-theme="light"] .chat-msg__edit:hover {
  background: #f59e0b;
  color: #0f172a;
}
[data-theme="light"] .chat-msg__delete {
  color: #fff;
  background: #ef4444;
  border-color: #dc2626;
}
[data-theme="light"] .chat-msg__delete:hover {
  background: #dc2626;
  color: #fff;
}
.chat-msg__name-btn {
  display: inline-flex;
  width: auto;
  max-width: 100%;
  flex: 1 1 0;
  min-width: 0;
  background: none;
  border: none;
  padding: 0;
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
}
.chat-msg__meta .chat-msg__name-btn {
  flex-shrink: 1;
}
.chat-msg__name-btn:hover .chat-msg__name { text-decoration: underline; }
.chat-msg--own {
  align-self: flex-end;
}
.chat-msg--other {
  align-self: flex-start;
}
.chat-msg__meta-line {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0;
  line-height: 1.4;
  min-width: 0;
}
.chat-msg__meta-sep {
  margin: 0 4px;
  font-size: 11px;
  color: var(--text-muted);
  user-select: none;
  flex-shrink: 0;
}
.chat-msg__name-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 2px;
}
.chat-msg__name {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
}
.chat-msg__p21-inline {
  font-size: 11px;
  color: var(--text-muted);
}
.chat-msg__rank-inline {
  font-size: 11px;
  font-weight: 700;
  color: var(--text);
}
.chat-msg__respect-inline {
  cursor: pointer;
  flex-shrink: 0;
  white-space: nowrap;
}
.chat-msg__respect-inline:hover .chat-msg__respect {
  text-decoration: underline;
}
.chat-msg__p21-line {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 2px;
}
.chat-msg__rank-line {
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}
.chat-msg__rank-card {
  font-weight: 700;
  color: var(--text);
}
.chat-msg__status-icon {
  font-size: 12px;
  line-height: 1;
}
.chat-msg__name-btn .chat-msg__name-row,
.chat-msg__name-btn .chat-msg__p21-line,
.chat-msg__name-btn .chat-msg__rank-line {
  margin-bottom: 2px;
}
.chat-msg__dt {
  font-size: 11px;
  font-weight: 400;
  margin-left: 6px;
  color: var(--accent);
}
.chat-msg__p21 {
  font-size: 11px;
  font-weight: 400;
  margin-left: 6px;
  color: var(--text-muted);
}
.chat-msg__admin {
  display: block;
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 2px;
}
.chat-msg__text { word-wrap: break-word; white-space: pre-wrap; }
.chat-msg__admit-nick-missing {
  color: var(--text-muted);
  font-size: 0.92em;
}
.chat-msg__tg-link,
.chat-msg__link,
.chat-msg__id-link {
  color: var(--accent);
  text-decoration: none;
}
.chat-msg__tg-link:hover,
.chat-msg__link:hover,
.chat-msg__id-link:hover { text-decoration: underline; }
.chat-msg__id-link {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
}
.chat-msg__footer {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: -8px;
  flex-wrap: wrap;
  justify-content: flex-end;
  width: 100%;
}
.chat-msg__body--has-text .chat-msg__footer {
  margin-top: 4px;
}
.chat-msg__reactions-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  flex-wrap: wrap;
}
.chat-msg__reactions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}
.chat-msg__reaction {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px 6px;
  font-size: 13px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  background: rgba(148, 163, 184, 0.15);
  color: var(--text);
  cursor: pointer;
  line-height: 1.2;
}
.chat-msg__reaction:hover {
  background: rgba(168, 85, 247, 0.2);
  border-color: rgba(168, 85, 247, 0.4);
}
.chat-msg__reaction--mine {
  background: rgba(168, 85, 247, 0.25);
  border-color: rgba(168, 85, 247, 0.5);
}
.chat-msg__reaction-count {
  font-size: 11px;
  color: var(--text-muted);
}
.chat-msg__react-btn {
  padding: 2px 6px;
  font-size: 14px;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
}
.chat-msg__react-btn:hover {
  color: var(--text);
  background: rgba(148, 163, 184, 0.15);
}
.chat-reaction-picker {
  position: fixed;
  z-index: 1001;
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.5);
  border-radius: 999px;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(10px);
}
.chat-reaction-picker.chat-reaction-picker--hidden {
  display: none;
}
.chat-reaction-picker__emoji {
  padding: 4px 6px;
  font-size: 18px;
  border: none;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
}
.chat-reaction-picker__emoji:hover {
  background: rgba(168, 85, 247, 0.22);
}
.chat-msg__time {
  font-size: 11px;
  color: var(--text-muted);
  margin-left: auto;
  white-space: nowrap;
}
.chat-msg__respect-row {
  margin-top: 2px;
  text-align: right;
}
.chat-msg__respect-inline.chat-msg__respect-row {
  margin-top: 0;
  text-align: left;
}
.chat-msg__respect-row[data-user-id] {
  cursor: pointer;
}
.chat-msg__respect-row[data-user-id]:hover .chat-msg__respect {
  text-decoration: underline;
}
.chat-msg__respect {
  font-size: 11px;
  color: var(--text-muted);
}
.chat-msg__respect--positive {
  color: var(--accent-2, #22c55e);
}
.chat-msg__respect--negative {
  color: #ef4444;
}
.chat-msg__edited {
  font-size: 10px;
  color: var(--text-muted);
  font-style: italic;
}
.chat-msg__edit {
  padding: 4px 8px;
  font-size: 14px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
}
.chat-msg__edit-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.chat-msg__edit-input { margin: 0; }
.chat-msg__edit-actions {
  display: flex;
  gap: 8px;
}
.chat-msg__edit-save,
.chat-msg__edit-cancel {
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 6px;
  border: 1px solid var(--border-subtle);
  cursor: pointer;
}
.chat-msg__edit-save { background: var(--accent-soft); color: var(--accent); }
.chat-msg__edit-cancel { background: transparent; color: var(--text-muted); }
.chat-input-area {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.chat-reply-preview {
  display: none;
  align-items: flex-start;
  gap: 4px;
  padding: 4px 8px;
  background: rgba(168, 85, 247, 0.15);
  border-left: 3px solid var(--accent);
  border-radius: 6px;
  font-size: 12px;
}
.chat-reply-preview.chat-reply-preview--visible { display: flex; }
.chat-reply-preview__text {
  flex: 1;
  min-width: 0;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chat-reply-preview__text strong { color: var(--text); }
.chat-reply-preview__cancel {
  flex-shrink: 0;
  padding: 2px 6px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 14px;
}
.chat-reply-preview__cancel:hover { color: var(--text); }
.chat-msg__reply {
  margin-bottom: 2px;
  padding: 3px 6px;
  background: rgba(15, 23, 42, 0.5);
  border-left: 3px solid var(--accent);
  border-radius: 4px;
  font-size: 11px;
  color: var(--text-muted);
}
.chat-msg__reply strong { color: var(--text); }
/* Подложка при открытом контекстном меню: затемнение, сообщение и меню поверх (z-index выше chat-input-area) */
.chat-ctx-backdrop {
  position: fixed;
  inset: 0;
  z-index: 5000;
  background: rgba(0, 0, 0, 0.65);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}
.chat-ctx-backdrop.chat-ctx-backdrop--visible {
  opacity: 1;
  pointer-events: auto;
}
.chat-msg--ctx-highlight {
  position: relative;
  z-index: 5001;
}
/* Контекстное меню поверх всего в чате, включая область ввода и навбар */
.chat-ctx-menu {
  position: fixed;
  z-index: 5002;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  min-width: 240px;
  max-width: calc(100vw - 24px);
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  transform: scale(0.98);
}
.chat-ctx-menu.chat-ctx-menu--visible {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}
.chat-ctx-menu__reactions {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  justify-content: center;
  padding: 8px 12px;
  background: rgba(15, 23, 42, 0.96);
  border-radius: 999px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.45);
}
.chat-ctx-menu__reaction-emoji {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  padding: 0;
  font-size: 22px;
  border: none;
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s ease, transform 0.1s ease;
}
.chat-ctx-menu__reaction-emoji:hover { background: rgba(168, 85, 247, 0.18); }
.chat-ctx-menu__reaction-emoji.chat-ctx-menu__item--active {
  background: rgba(168, 85, 247, 0.28);
  transform: scale(1.08);
}
.chat-ctx-menu__items-wrap {
  display: flex;
  flex-direction: column;
  padding: 6px 0 8px;
  margin-top: 8px;
  background: rgba(15, 23, 42, 0.98);
  border-radius: 18px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.4);
}
.chat-ctx-menu__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  text-align: left;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 15px;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s ease, transform 0.1s ease;
}
.chat-ctx-menu__item:hover { background: rgba(168, 85, 247, 0.18); }
.chat-ctx-menu__item.chat-ctx-menu__item--active {
  background: rgba(168, 85, 247, 0.28);
  transform: scale(1.02);
}
.chat-ctx-menu__icon {
  flex-shrink: 0;
  width: 22px;
  text-align: center;
  font-size: 16px;
  opacity: 0.9;
}
.chat-ctx-menu__item[data-action="delete"] .chat-ctx-menu__icon { opacity: 1; }
[data-theme="light"] .chat-ctx-backdrop.chat-ctx-backdrop--visible { background: rgba(0, 0, 0, 0.5); }
.chat-input-wrap {
  display: flex;
  gap: 6px;
  align-items: center;
  min-width: 0;
  width: 100%;
  padding-left: 0;
  position: relative;
}
.chat-templates-hint {
  margin-top: 2px;
  font-size: 10px;
  color: var(--text-muted);
}
.chat-attach-btn {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  padding: 0;
  margin-left: 0;
  margin-right: 0;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  background: rgba(168, 85, 247, 0.15);
  color: var(--text);
  font-size: 16px;
  cursor: pointer;
}
.chat-attach-btn:hover { background: rgba(168, 85, 247, 0.25); }
/* Кнопки в строке ввода: непрозрачный фон в одном стиле с полем */
.chat-input-area .chat-attach-btn {
  background: var(--block-bg-solid);
  border-color: rgba(168, 85, 247, 0.45);
}
.chat-input-area .chat-attach-btn:hover {
  background: var(--block-bg-solid);
  filter: brightness(1.12);
}
.chat-attach-wrap { position: relative; flex-shrink: 0; }
.chat-attach-dropdown {
  position: absolute;
  left: 0;
  bottom: 100%;
  margin-bottom: 6px;
  min-width: 140px;
  padding: 6px 0;
  background: var(--block-bg);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  z-index: 30;
  display: flex;
  flex-direction: column;
}
.chat-attach-dropdown--hidden { display: none !important; }
.chat-attach-dropdown__item {
  display: block;
  width: 100%;
  padding: 10px 14px;
  text-align: left;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  background: none;
  border: none;
  cursor: pointer;
}
.chat-attach-dropdown__item:hover { background: rgba(168, 85, 247, 0.15); }
.chat-image-preview {
  display: none;
  margin-bottom: 4px;
}
.chat-image-preview.chat-image-preview--visible {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.chat-image-preview__thumb {
  max-width: 120px;
  max-height: 120px;
  border-radius: 8px;
  object-fit: cover;
}
.chat-image-preview__remove {
  padding: 4px 10px;
  font-size: 12px;
  border: none;
  border-radius: 6px;
  background: rgba(239, 68, 68, 0.3);
  color: #fca5a5;
  cursor: pointer;
}
.chat-msg__image {
  display: block;
  margin-top: 4px;
  cursor: pointer;
  max-width: min(260px, 70vw);
  width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: contain;
}
.chat-voice-preview {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  padding: 6px 10px;
  background: rgba(168, 85, 247, 0.15);
  border-radius: 8px;
  font-size: 13px;
}
.chat-voice-preview--hidden {
  display: none;
}
.chat-voice-preview__recording {
  color: var(--accent);
  font-weight: 600;
}
.chat-voice-preview__timer {
  display: inline-block;
  min-width: 1.8em;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.chat-voice-preview__recording--hidden {
  display: none;
}
.chat-voice-preview--recording .chat-voice-preview__recording {
  display: inline !important;
}
.chat-voice-preview--recording .chat-voice-preview__label--recorded,
.chat-voice-preview--recording .chat-voice-preview__remove,
.chat-voice-preview--recording .chat-voice-preview__send {
  display: none;
}
.chat-voice-preview__send {
  margin-left: auto;
  padding: 6px 14px;
  border: none;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}
.chat-voice-preview__send:hover { opacity: 0.9; }
.chat-voice-preview__stop-btn {
  margin-left: 8px;
  padding: 4px 12px;
  font-size: 13px;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
}
.chat-voice-preview__stop-btn:hover { opacity: 0.9; }
.chat-voice-preview__label {
  color: var(--text-muted);
}
.chat-voice-preview__remove {
  margin-left: auto;
  padding: 4px 10px;
  font-size: 12px;
  border: none;
  border-radius: 6px;
  background: rgba(239, 68, 68, 0.3);
  color: #fca5a5;
  cursor: pointer;
}
.chat-voice-btn {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 10px;
  background: rgba(168, 85, 247, 0.2);
  color: #c4b5fd;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.chat-voice-btn:hover {
  background: rgba(168, 85, 247, 0.25);
}
.chat-voice-btn--recording {
  background: rgba(239, 68, 68, 0.4);
  color: #fca5a5;
  animation: chat-voice-pulse 1s ease-in-out infinite;
}
.chat-input-area .chat-voice-btn {
  background: var(--block-bg-solid);
  border: 1px solid rgba(168, 85, 247, 0.42);
  color: #c4b5fd;
}
.chat-input-area .chat-voice-btn:hover {
  background: var(--block-bg-solid);
  filter: brightness(1.1);
}
.chat-input-area .chat-voice-btn--recording {
  background: #7f1d1d;
  border-color: rgba(239, 68, 68, 0.65);
  color: #fecaca;
  filter: none;
}
[data-theme="light"] .chat-input-area .chat-voice-btn--recording {
  background: #fecaca;
  border-color: rgba(239, 68, 68, 0.55);
  color: #991b1b;
}
@keyframes chat-voice-pulse {
  50% { opacity: 0.85; }
}
.chat-msg__voice {
  max-width: 100%;
  min-width: 200px;
  height: 36px;
  margin-top: 4px;
  border-radius: 8px;
}
.chat-msg__voice::-webkit-media-controls-panel {
  background: var(--block-bg);
}
.chat-msg__document,
.chat-msg__document-wrap {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin-top: 4px;
  padding: 8px 12px;
  background: var(--block-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  color: var(--text);
  font-size: 14px;
  max-width: 100%;
  word-break: break-all;
}
.chat-msg__document-link {
  color: var(--accent, #a855f7);
  text-decoration: none;
  font-weight: 500;
  white-space: nowrap;
}
.chat-msg__document-link--view {
  color: inherit;
}
.chat-msg__document-link--view:hover,
.chat-msg__document-link--view:focus {
  color: var(--accent, #a855f7);
  text-decoration: underline;
}
.chat-msg__document-link:hover,
.chat-msg__document-link:focus {
  text-decoration: underline;
}
.chat-image-preview__doc {
  font-size: 14px;
  color: var(--text-color);
}
.chat-upload-progress {
  display: none;
  padding: 8px 12px;
  background: var(--block-bg);
  border-radius: 8px;
  margin-bottom: 6px;
}
.chat-upload-progress.chat-upload-progress--visible {
  display: block;
}
.chat-upload-progress__label {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.chat-upload-progress__bar {
  height: 6px;
  background: var(--border-subtle);
  border-radius: 3px;
  overflow: hidden;
}
.chat-upload-progress__fill {
  height: 100%;
  width: 0%;
  background: var(--accent);
  border-radius: 3px;
  transition: width 0.15s ease-out;
}
img.chat-msg__avatar,
img.chat-contact__avatar {
  cursor: pointer;
}
.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.92);
  padding: 0;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-right: env(safe-area-inset-right, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  padding-left: env(safe-area-inset-left, 0px);
}
.image-lightbox.image-lightbox--open {
  display: flex;
}
.image-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
}
.image-lightbox__content {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
}
.image-lightbox__img {
  position: relative;
  z-index: 1;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 0;
  pointer-events: none;
}
.image-lightbox__prev,
.image-lightbox__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 0.2s;
  pointer-events: auto;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.image-lightbox__prev:hover:not(:disabled),
.image-lightbox__next:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.38);
}
.image-lightbox__prev:disabled,
.image-lightbox__next:disabled {
  opacity: 0.25;
  cursor: default;
}
.image-lightbox__prev {
  left: max(10px, env(safe-area-inset-left, 0px));
}
.image-lightbox__next {
  right: max(10px, env(safe-area-inset-right, 0px));
}
.image-lightbox__counter {
  position: absolute;
  bottom: max(14px, env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  pointer-events: none;
  color: rgba(255, 255, 255, 0.92);
  font-size: 14px;
  font-weight: 600;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}
.image-lightbox__close {
  position: absolute;
  top: max(12px, env(safe-area-inset-top, 0px));
  right: max(12px, env(safe-area-inset-right, 0px));
  z-index: 2;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.image-lightbox__close:hover {
  background: rgba(0, 0, 0, 0.7);
}

.pdf-viewer {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  flex-direction: column;
  background: #1e293b;
  padding: 0;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-right: env(safe-area-inset-right, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  padding-left: env(safe-area-inset-left, 0px);
}
.pdf-viewer.pdf-viewer--open {
  display: flex;
}
.pdf-viewer__backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
}
.pdf-viewer__content {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  z-index: 1;
}
.pdf-viewer__close {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  margin: 8px 12px;
  align-self: flex-start;
}
.pdf-viewer__iframe {
  flex: 1;
  width: 100%;
  min-height: 0;
  border: none;
  background: #fff;
}

.chat-input {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  padding: 16px 12px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background: var(--block-bg);
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  box-sizing: border-box;
}
/* Поле сообщения в чате: сплошная подложка, иначе на iOS сквозь полупрозрачный --block-bg видна лента */
.view--active[data-view="chat"] .chat-input--textarea,
.view--active[data-view="chat"] input.chat-input:not(.chat-find-input) {
  background: var(--block-bg-solid);
}
.chat-input::placeholder { color: var(--text-muted); }
.chat-input--textarea {
  min-height: 44px;
  max-height: 140px;
  resize: none;
  overflow-y: auto;
  vertical-align: top;
  line-height: 1.4;
  padding: 10px 40px 10px 14px;
  border-radius: 22px;
}
.chat-input-wrap:not(.chat-input-wrap--single) .chat-input--textarea {
  display: block;
}
.chat-send-btn {
  flex-shrink: 0;
  padding: 8px 14px;
  border-radius: 8px;
  border: none;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.chat-send-btn--icon {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  align-self: center;
}
.chat-send-btn:hover { opacity: 0.9; }
.chat-send-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.chat-send-btn.chat-voice-btn--recording {
  background: rgba(239, 68, 68, 0.4);
  color: #fca5a5;
  animation: chat-voice-pulse 1s ease-in-out infinite;
}

.chat-emoji-btn {
  position: absolute;
  right: 54px; /* перед микрофоном (36px) + небольшой зазор */
  bottom: 8px;
  width: 28px;
  height: 28px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}
.chat-emoji-btn:hover {
  background: rgba(148, 163, 184, 0.15);
}

.chat-emoji-picker {
  position: fixed;
  z-index: 1001;
  padding: 10px;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
}
.chat-emoji-picker.chat-emoji-picker--hidden {
  display: none;
}
.chat-emoji-picker__grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 4px;
  max-height: 180px;
  overflow-y: auto;
}
.chat-emoji-picker__emoji {
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  border-radius: 6px;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.chat-emoji-picker__emoji:hover {
  background: rgba(148, 163, 184, 0.2);
}

.chat-header-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  margin-bottom: 4px;
  align-items: stretch;
  width: 100%;
}
.chat-switcher-wrap {
  position: relative;
  flex: 1;
  min-width: 0;
}
.chat-switcher-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  font-size: 12px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background: var(--block-bg);
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  min-width: 0;
  justify-content: space-between;
}
.chat-switcher-btn__label { flex: 1; text-align: left; }
.chat-switcher-btn__arrow { opacity: 0.7; font-size: 10px; }
.chat-switcher-btn__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
  flex-shrink: 0;
  display: none;
}
.chat-switcher-btn__dot.chat-switcher-btn__dot--on { display: block; }
.chat-switcher-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 4px;
  padding: 4px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-strong);
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.chat-switcher-dropdown--hidden { display: none !important; }
.chat-switcher-option {
  display: block;
  width: 100%;
  padding: 8px 12px;
  font-size: 12px;
  text-align: left;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-weight: 500;
}
.chat-switcher-option:hover {
  background: var(--accent-soft);
}
.chat-header-stats {
  font-size: 10px;
  color: var(--text-muted);
  flex-shrink: 0;
  align-self: center;
  white-space: nowrap;
}
.chat-manager-btn--compact {
  padding: 4px 6px;
  font-size: 11px;
  justify-content: center;
}
.chat-manager-btn {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background: rgba(168, 85, 247, 0.15);
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-align: center;
}
.chat-manager-btn:hover { background: rgba(168, 85, 247, 0.25); }
.chat-manager-btn:disabled,
.chat-manager-btn--disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}
.chat-dialogs-view {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  max-height: 100%;
  overflow: hidden;
  /* Единые боковые отступы: строки админов и игроков визуально совпадают с остальными экранами. */
  padding: 0 var(--screen-gutter-x) 0;
  touch-action: pan-y;
  -webkit-tap-highlight-color: transparent;
}
.chat-dialog-item,
.chat-contact {
  touch-action: pan-y;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
}
.chat-dialog-item:focus,
.chat-contact:focus {
  outline: none;
}
.chat-dialogs-view--hidden { display: none !important; }
.chat-dialogs-list-wrap {
  flex: 1 1 0;
  min-height: 0;
  position: relative;
  overflow: hidden;
  margin-top: 0;
}
.chat-dialogs-list {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: auto;
  touch-action: pan-y;
  display: flex;
  flex-direction: column;
  gap: 0;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px) + 10px);
  box-sizing: border-box;
  scroll-padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px) + 4px);
}
.chat-dialogs-block {
  background: var(--block-bg);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
}
.chat-dialogs-block .chat-dialog-item {
  border-radius: 0;
  border: none;
  position: relative;
}
.chat-dialogs-block .chat-dialog-item::after {
  content: "";
  position: absolute;
  left: 64px;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--border-subtle);
}
.chat-dialogs-block .chat-dialog-item:last-child::after {
  display: none;
}
/* Общая обводка: админы и игроки в одном блоке */
.chat-dialogs-list > .chat-dialogs-block {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}
.chat-dialogs-list .chat-contacts {
  margin-top: 0;
}
.chat-dialogs-list .chat-contacts .chat-dialogs-block {
  border-top: none;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}
.chat-dialog-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--block-bg);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  cursor: pointer;
  text-align: left;
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  width: 100%;
}
.chat-dialog-item:hover { background: rgba(168, 85, 247, 0.12); border-color: rgba(168, 85, 247, 0.4); }
.chat-dialog-item--pinned,
.chat-dialog-item--club { border-color: rgba(168, 85, 247, 0.35); background: rgba(168, 85, 247, 0.08); }
.chat-dialog-item__icon { font-size: 20px; flex-shrink: 0; }
.chat-dialog-item__avatar {
  width: 40px;
  height: 40px;
  min-width: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  object-fit: cover;
  background: rgba(148, 163, 184, 0.2);
  display: block;
  vertical-align: middle;
}
.chat-dialog-item img.chat-dialog-item__avatar {
  font-size: 0;
}
.chat-dialog-item__avatar--icon {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  object-fit: none;
}
.chat-dialog-item__label-wrap {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.chat-dialog-item__label-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 0;
}
.chat-dialog-item__label { flex: 1; }
.chat-dialog-item__role {
  font-size: 11px;
  color: var(--text-muted);
  font-style: italic;
}
.chat-dialog-item__role--admin {
  color: var(--text-muted);
  font-style: italic;
  font-weight: 500;
}
.chat-dialog-item__main-label {
  font-size: 13px;
  color: var(--text-muted);
  flex-shrink: 0;
  margin-left: auto;
}
.chat-dialog-item__right {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}
.chat-dialog-item__hours {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 400;
}

.chat-dialog-item__hours--admin {
  color: #f97316;
  font-style: normal;
  font-weight: 600;
}
.chat-dialog-item__online {
  display: none;
  font-size: 11px;
  color: var(--accent-2, #22c55e);
  font-weight: 500;
}
.chat-dialog-item__online.chat-dialog-item__online--visible {
  display: inline;
}
.chat-find-by-id--top {
  margin-top: 0;
  margin-bottom: 8px;
  flex-shrink: 0;
}
.chat-section-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin: 14px 0 6px;
  padding: 0 4px;
}
.chat-section-title:first-of-type { margin-top: 4px; }
.chat-dialog-item--club {
  padding: 14px 18px;
  min-height: 72px;
}
.chat-dialog-item__avatar--club {
  width: 52px;
  height: 52px;
  min-width: 52px;
}
.chat-dialog-item__club-wrap {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}
.chat-dialog-item__title-row {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
}
.chat-dialog-item__title-row .chat-dialog-item__label {
  flex: 0 1 auto;
}
/* Админ: число необработанных заявок в главный чат */
.chat-dialog-item__pending-review-badge {
  display: none;
  min-width: 20px;
  height: 22px;
  padding: 0 7px;
  border-radius: 11px;
  background: #dc2626;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 22px;
  text-align: center;
  box-sizing: border-box;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}
.chat-dialog-item__pending-review-badge.chat-dialog-item__pending-review-badge--visible {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.chat-dialog-item--club .chat-dialog-item__main-label {
  color: var(--accent, #a855f7);
  font-weight: 500;
}
.chat-dialog-item__preview {
  font-size: 13px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.chat-dialog-item__unread,
.chat-contact__unread {
  display: none;
  min-width: 22px;
  height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  background: var(--accent, #a855f7);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  line-height: 20px;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-sizing: border-box;
}
.chat-dialog-item__unread.chat-dialog-item__unread--visible,
.chat-contact__unread.chat-contact__unread--visible {
  display: inline-flex;
}
.chat-find-by-id--dialogs {
  margin-top: 12px;
  flex-shrink: 0;
  width: 100%;
  box-sizing: border-box;
}
/* Поиск внутри прокручиваемого списка диалогов — уезжает вместе со скроллом, не «виcит» отдельно */
.chat-find-by-id--in-dialogs-scroll {
  margin-top: 4px;
  margin-bottom: 10px;
  padding: 0 2px;
  position: relative;
  z-index: 2;
}
.chat-find-input-wrap {
  flex: 1;
  min-width: 0;
  position: relative;
}
.chat-find-input-wrap--with-icon {
  position: relative;
  width: 100%;
}
.chat-find-input-wrap--with-icon .chat-find-input {
  width: 100%;
  box-sizing: border-box;
  padding-left: 40px;
  background: rgba(30, 41, 59, 0.4);
  border: 1px solid rgba(148, 163, 184, 0.25);
}
.chat-find-input-wrap--with-icon .chat-find-input::placeholder {
  font-style: italic;
  color: var(--text-muted);
  opacity: 0.9;
}
[data-theme="light"] .chat-find-input-wrap--with-icon .chat-find-input {
  background: rgba(255, 255, 255, 0.5);
  border-color: rgba(148, 163, 184, 0.35);
}
.chat-find-input-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  line-height: 1;
  pointer-events: none;
  opacity: 0.7;
}
.chat-find-by-id--dialogs .chat-find-input { width: 100%; box-sizing: border-box; }
.chat-find-suggest {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  margin-top: 4px;
  background: var(--block-bg-solid);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  box-shadow: var(--shadow-strong);
  max-height: min(52vh, 320px);
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  touch-action: pan-y;
  z-index: 100;
}
.chat-find-suggest.chat-find-suggest--hidden { display: none !important; }
.chat-find-suggest__list { padding: 6px 0; }
.chat-find-suggest__item {
  display: block;
  width: 100%;
  padding: 10px 14px;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 14px;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}
.chat-find-suggest__item:hover,
.chat-find-suggest__item:focus {
  background: rgba(168, 85, 247, 0.12);
  outline: none;
}
.chat-find-suggest__item strong { color: var(--accent); }
.chat-general-view {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 0;
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  width: 100%;
  /* Высота плавающей полосы кнопок под системной шапкой (промежуточная: не 48px, не ультра-компакт) */
  --chat-general-floating-toolbar-h: 56px;
}
.chat-general-view--hidden { display: none !important; }
.chat-general-view .chat-messages-wrap {
  flex: 1 1 0;
  min-height: 0;
  position: relative;
  overflow: hidden;
  /* Шапка с кнопками будет поверх (absolute), поэтому не смещаем ленту */
  margin-top: 0;
  padding-top: 0;
}
.chat-general-view .chat-messages {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: none;
  overflow-y: scroll;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  touch-action: pan-y;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  /* Лента под плавающей шапкой чата */
  padding-top: calc(48px + var(--chat-general-floating-toolbar-h) + 12px);
  padding-left: max(8px, var(--screen-gutter-x));
  padding-right: max(8px, var(--screen-gutter-x));
  box-sizing: border-box;
}
.chat-general-view .chat-input-area {
  flex-shrink: 0;
  position: relative;
  z-index: 5;
  padding-bottom: calc(65px + env(safe-area-inset-bottom, 0px));
}
.chat-personal-view {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
.chat-personal-view--hidden { display: none !important; }
.chat-admins-view {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px;
  min-height: 120px;
}
.chat-admins-view--hidden { display: none !important; }
.chat-admins-view__text {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}
.chat-admins-view__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chat-admins-view__buttons .chat-manager-btn {
  padding: 8px 14px;
  font-size: 13px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background: var(--block-bg);
  color: var(--text);
  font-weight: 500;
  cursor: pointer;
}
.chat-admins-view__buttons .chat-manager-btn:hover {
  background: var(--accent-soft);
}
.chat-manager-btn__name { margin-right: 6px; }
.chat-admins-view__online {
  display: none;
  font-size: 11px;
  color: var(--accent-2, #22c55e);
  font-weight: 500;
}
.chat-admins-view__online.chat-admins-view__online--visible {
  display: inline;
}
.chat-list-view {
  flex: 1 1 0;
  min-height: 0;
  height: 0;
  overflow-y: scroll;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  touch-action: pan-y;
  position: relative;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}
.chat-list-view--hidden { display: none !important; }
.chat-conv-view {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  position: relative;
  /* Совпадает с .chat-general-view — высота плавающего ряда под системной шапкой */
  --chat-general-floating-toolbar-h: 56px;
}
.chat-conv-view--hidden { display: none !important; }
.chat-conv-top {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-bottom: 0;
  min-height: 0;
  position: absolute;
  top: 48px;
  left: 0;
  right: 0;
  transform: none;
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  z-index: 2;
  pointer-events: none;
  --chat-general-header-strip-min-height: var(--app-back-btn-min-height);
}
.chat-conv-top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 8px 0;
  border-radius: 0;
  background: rgba(15, 23, 42, 0.16);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: none;
  box-shadow: none;
  pointer-events: auto;
}
.chat-conv-top .chat-back-btn {
  margin-bottom: 0;
  flex-shrink: 0;
  align-self: center;
  min-height: var(--chat-general-header-strip-min-height, var(--app-back-btn-min-height));
  height: auto;
}
.chat-conv-top .chat-conv-header {
  flex: 1 1 auto;
  min-width: 0;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}
.chat-conv-top .chat-conv-header.chat-conv-header--one-line {
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0 3px;
  text-align: left;
  overflow: hidden;
  line-height: 1;
}
.chat-conv-top .chat-conv-header.chat-conv-header--one-line .chat-conv-title__name,
.chat-conv-top .chat-conv-header.chat-conv-header--one-line .chat-title--small {
  flex: 0 1 auto;
  min-width: 0;
  font-size: 15px;
  margin: 0;
  padding: 0;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chat-conv-top .chat-conv-header.chat-conv-header--one-line .chat-conv-title__tg-id,
.chat-conv-top .chat-conv-header.chat-conv-header--one-line .chat-conv-title__id-wrap {
  flex: 0 0 auto;
  display: inline;
  margin: 0;
  padding: 0;
  font-size: 12px;
  line-height: 1;
  color: var(--text-muted);
  white-space: nowrap;
}
.chat-conv-top .chat-conv-header.chat-conv-header--one-line .chat-conv-title__role {
  flex: 0 0 auto;
  display: inline;
  margin: 0;
  padding: 0;
  font-size: 11px;
  line-height: 1;
  white-space: nowrap;
}

/* Убираем данные собеседника (tg login и разные ID) рядом с кнопкой «Назад» */
.chat-conv-top .chat-conv-title__tg-id,
.chat-conv-top .chat-conv-title__id-wrap,
.chat-conv-top .chat-conv-title__role {
  display: none !important;
}

/* Личные сообщения: рядом с «Назад» не показываем имя — только кнопка */
.chat-conv-view .chat-conv-top .chat-conv-header {
  display: none !important;
}
.chat-conv-top .chat-conv-header .chat-title--small {
  display: block;
  font-size: 15px;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.chat-conv-top .chat-conv-title__id-wrap {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 1px;
}

.chat-conv-title__role {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: rgba(249, 115, 22, 0.95);
  margin-top: 0;
  white-space: nowrap;
}
.chat-conv-title__tg-id--hidden { display: none !important; }
.chat-conv-title__tg-id { font-family: ui-monospace, monospace; font-size: 12px; color: var(--text-muted); }
.chat-conv-title__copy--icon {
  padding: 4px 8px;
  font-size: 14px;
}
.chat-container {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 0;
  overflow: hidden;
  width: 100%;
}
.chat-container .chat-messages-wrap {
  flex: 1 1 0;
  min-height: 0;
  position: relative;
  overflow: hidden;
}
.chat-container .chat-messages {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: none;
  overflow-y: scroll;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  touch-action: pan-y;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}
/* Личные сообщения: лента под плавающей шапкой + доп. зазор */
.chat-conv-view .chat-container .chat-messages {
  padding-top: calc(48px + var(--chat-general-floating-toolbar-h) + 12px);
  padding-left: max(8px, var(--screen-gutter-x));
  padding-right: max(8px, var(--screen-gutter-x));
  box-sizing: border-box;
}
.chat-conv-view .chat-messages > .chat-msg:first-child {
  margin-top: 4px;
}
.chat-container .chat-input-area {
  flex-shrink: 0;
  position: relative;
  z-index: 5;
  padding-bottom: calc(65px + env(safe-area-inset-bottom, 0px));
}
.chat-msg__delete {
  padding: 4px 8px;
  font-size: 14px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
}
.chat-msg__delete:hover { background: #dc2626; }
.chat-msg__block {
  margin-left: 6px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(239, 68, 68, 0.3);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.5);
  border-radius: 4px;
  cursor: pointer;
}
.chat-msg__block:hover { background: rgba(239, 68, 68, 0.5); color: #fecaca; }
/* Единый стиль «Назад» / «На главную» — как кнопка «← Чаты» в общем чате */
.bonus-game-back,
.download-back,
.gazette-modal__back,
.pdf-viewer__close,
.winter-rating-player-modal__back,
.poker-streak-screen__back,
.poker-task-screen__back,
.tracking-links-admin__back-btn,
.chat-back-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  margin: 0 0 11px;
  padding: 0 14px;
  min-width: 44px;
  min-height: var(--app-back-btn-min-height);
  height: var(--app-back-btn-min-height);
  box-sizing: border-box;
  font-size: 1.45rem;
  font-weight: 800;
  font-family: inherit;
  line-height: 0;
  letter-spacing: 0;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-appearance: none;
  appearance: none;
  border-radius: 20px;
  background: rgba(30, 41, 59, 0.88);
  border: 1px solid rgba(148, 163, 184, 0.42);
  color: #e2e8f0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.22);
}
.bonus-game-back:hover,
.download-back:hover,
.gazette-modal__back:hover,
.pdf-viewer__close:hover,
.winter-rating-player-modal__back:hover,
.poker-streak-screen__back:hover,
.poker-task-screen__back:hover,
.tracking-links-admin__back-btn:hover,
.chat-back-btn:hover {
  border-color: rgba(186, 230, 253, 0.55);
  background: rgba(51, 65, 85, 0.95);
  color: #f8fafc;
}

/* «Назад» / закрыть — цвета под экран или модалку */
.gazette-modal .gazette-modal__back {
  background: rgba(139, 90, 43, 0.14);
  border-color: rgba(44, 24, 16, 0.48);
  color: #2c1810;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}
.gazette-modal .gazette-modal__back:hover {
  background: rgba(139, 90, 43, 0.24);
  border-color: rgba(44, 24, 16, 0.65);
  color: #1a0f0a;
}
[data-theme="light"] .gazette-modal .gazette-modal__back {
  background: rgba(139, 90, 43, 0.12);
  border-color: rgba(44, 24, 16, 0.42);
  color: #2c1810;
}
[data-theme="light"] .gazette-modal .gazette-modal__back:hover {
  background: rgba(139, 90, 43, 0.2);
  border-color: rgba(44, 24, 16, 0.58);
  color: #1a0f0a;
}

.pdf-viewer .pdf-viewer__close {
  background: rgba(15, 23, 42, 0.72);
  border-color: rgba(148, 163, 184, 0.4);
  color: #e2e8f0;
}
.pdf-viewer .pdf-viewer__close:hover {
  background: rgba(51, 65, 85, 0.92);
  border-color: #94a3b8;
  color: #fff;
}
[data-theme="light"] .pdf-viewer .pdf-viewer__close {
  background: rgba(241, 245, 249, 0.96);
  border-color: rgba(100, 116, 139, 0.45);
  color: #334155;
}
[data-theme="light"] .pdf-viewer .pdf-viewer__close:hover {
  background: #fff;
  border-color: rgba(249, 115, 22, 0.5);
  color: #c2410c;
}

.winter-rating-player-modal .winter-rating-player-modal__back {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(212, 175, 55, 0.42);
  color: #fcd34d;
}
.winter-rating-player-modal .winter-rating-player-modal__back:hover {
  background: rgba(212, 175, 55, 0.16);
  border-color: rgba(251, 191, 36, 0.75);
  color: #fde68a;
}
[data-theme="light"] .winter-rating-player-modal .winter-rating-player-modal__back {
  background: #fff;
  border-color: rgba(249, 115, 22, 0.42);
  color: #ea580c;
}
[data-theme="light"] .winter-rating-player-modal .winter-rating-player-modal__back:hover {
  background: rgba(255, 247, 237, 0.98);
  border-color: rgba(249, 115, 22, 0.65);
  color: #c2410c;
}

.visitors-admin-modal .tracking-links-admin__back-btn {
  background: var(--block-bg, rgba(30, 41, 59, 0.55));
  border-color: var(--border-subtle);
  color: var(--text);
}
.visitors-admin-modal .tracking-links-admin__back-btn:hover {
  background: var(--bg-elevated);
  border-color: var(--accent);
  color: var(--accent);
}

.winter-rating-lightbox .winter-rating-lightbox__back.chat-back-btn {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(186, 230, 253, 0.52);
  color: #e0f2fe;
}
.winter-rating-lightbox .winter-rating-lightbox__back.chat-back-btn:hover {
  background: rgba(56, 189, 248, 0.28);
  border-color: #bae6fd;
  color: #fff;
}

body[data-view="winter-rating"] .bonus-game-back {
  background: rgba(14, 165, 233, 0.12);
  border-color: rgba(56, 189, 248, 0.48);
  color: #bae6fd;
}
body[data-view="winter-rating"] .bonus-game-back:hover {
  background: rgba(56, 189, 248, 0.22);
  border-color: #7dd3fc;
  color: #f0f9ff;
}
[data-theme="light"] body[data-view="winter-rating"] .bonus-game-back {
  background: rgba(224, 242, 254, 0.88);
  border-color: rgba(56, 189, 248, 0.42);
  color: #0369a1;
}
[data-theme="light"] body[data-view="winter-rating"] .bonus-game-back:hover {
  background: rgba(186, 230, 253, 0.95);
  border-color: #0284c7;
  color: #0c4a6e;
}

body[data-view="spring-rating"] .bonus-game-back {
  background: rgba(134, 239, 172, 0.1);
  border-color: rgba(134, 239, 172, 0.42);
  color: #d9f99d;
}
body[data-view="spring-rating"] .bonus-game-back:hover {
  background: rgba(74, 222, 128, 0.18);
  border-color: #86efac;
  color: #f7fee7;
}
[data-theme="light"] body[data-view="spring-rating"] .bonus-game-back {
  background: rgba(240, 253, 244, 0.95);
  border-color: rgba(34, 197, 94, 0.38);
  color: #166534;
}
[data-theme="light"] body[data-view="spring-rating"] .bonus-game-back:hover {
  background: rgba(220, 252, 231, 0.98);
  border-color: rgba(22, 163, 74, 0.55);
  color: #14532d;
}

body[data-view="video-lessons"] .bonus-game-back {
  background: rgba(249, 115, 22, 0.14);
  border-color: rgba(249, 115, 22, 0.52);
  color: #fdba74;
}
body[data-view="video-lessons"] .bonus-game-back:hover {
  background: rgba(249, 115, 22, 0.24);
  border-color: #fb923c;
  color: #fff7ed;
}
[data-theme="light"] body[data-view="video-lessons"] .bonus-game-back {
  background: rgba(255, 247, 237, 0.96);
  border-color: rgba(249, 115, 22, 0.45);
  color: #c2410c;
}
[data-theme="light"] body[data-view="video-lessons"] .bonus-game-back:hover {
  background: rgba(255, 237, 213, 0.98);
  border-color: rgba(234, 88, 12, 0.55);
  color: #9a3412;
}

body[data-view="learn-play-hub"] .bonus-game-back,
body[data-view="poker-tasks"] .bonus-game-back,
body[data-view="poker-tasks"] .poker-task-screen__back,
body[data-view="poker-tasks"] .poker-streak-screen__back {
  background: rgba(251, 146, 60, 0.1);
  border-color: rgba(251, 146, 60, 0.42);
  color: #fdba74;
}
body[data-view="learn-play-hub"] .bonus-game-back:hover,
body[data-view="poker-tasks"] .bonus-game-back:hover,
body[data-view="poker-tasks"] .poker-task-screen__back:hover,
body[data-view="poker-tasks"] .poker-streak-screen__back:hover {
  background: rgba(251, 146, 60, 0.2);
  border-color: #fb923c;
  color: #ffedd5;
}
[data-theme="light"] body[data-view="learn-play-hub"] .bonus-game-back,
[data-theme="light"] body[data-view="poker-tasks"] .bonus-game-back,
[data-theme="light"] body[data-view="poker-tasks"] .poker-task-screen__back,
[data-theme="light"] body[data-view="poker-tasks"] .poker-streak-screen__back {
  background: rgba(255, 251, 247, 0.96);
  border-color: rgba(249, 115, 22, 0.42);
  color: #c2410c;
}
[data-theme="light"] body[data-view="learn-play-hub"] .bonus-game-back:hover,
[data-theme="light"] body[data-view="poker-tasks"] .bonus-game-back:hover,
[data-theme="light"] body[data-view="poker-tasks"] .poker-task-screen__back:hover,
[data-theme="light"] body[data-view="poker-tasks"] .poker-streak-screen__back:hover {
  background: rgba(255, 237, 213, 0.95);
  border-color: rgba(234, 88, 12, 0.55);
  color: #9a3412;
}

body[data-view="hall-of-fame"] .bonus-game-back {
  background: var(--block-bg-solid);
  border-color: rgba(249, 115, 22, 0.68);
  color: #fb923c;
}
body[data-view="hall-of-fame"] .bonus-game-back:hover {
  background: rgba(249, 115, 22, 0.12);
  border-color: #fb923c;
  color: #ffedd5;
}
[data-theme="light"] body[data-view="hall-of-fame"] .bonus-game-back {
  background: rgba(255, 253, 251, 0.98);
  border-color: rgba(249, 115, 22, 0.5);
  color: #ea580c;
}
[data-theme="light"] body[data-view="hall-of-fame"] .bonus-game-back:hover {
  background: rgba(255, 247, 237, 0.98);
  border-color: rgba(234, 88, 12, 0.6);
  color: #9a3412;
}

body[data-view="raffles"] .bonus-game-back {
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.2), rgba(2, 132, 199, 0.12));
  border-color: rgba(186, 230, 253, 0.5);
  color: #e0f2fe;
}
body[data-view="raffles"] .bonus-game-back:hover {
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.32), rgba(2, 132, 199, 0.2));
  border-color: #bae6fd;
  color: #fff;
}
[data-theme="light"] body[data-view="raffles"] .bonus-game-back {
  background: linear-gradient(180deg, rgba(224, 242, 254, 0.95), rgba(186, 230, 253, 0.35));
  border-color: rgba(14, 165, 233, 0.45);
  color: #0c4a6e;
}
[data-theme="light"] body[data-view="raffles"] .bonus-game-back:hover {
  background: linear-gradient(180deg, rgba(186, 230, 253, 0.9), rgba(125, 211, 252, 0.4));
  border-color: #0284c7;
  color: #075985;
}

body[data-view="bonus-game"] .bonus-game-back,
body[data-view="cooler-game"] .bonus-game-back {
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(74, 222, 128, 0.42);
  color: #bbf7d0;
}
body[data-view="bonus-game"] .bonus-game-back:hover,
body[data-view="cooler-game"] .bonus-game-back:hover {
  background: rgba(34, 197, 94, 0.22);
  border-color: #4ade80;
  color: #f0fdf4;
}
[data-theme="light"] body[data-view="bonus-game"] .bonus-game-back,
[data-theme="light"] body[data-view="cooler-game"] .bonus-game-back {
  background: rgba(240, 253, 244, 0.92);
  border-color: rgba(34, 197, 94, 0.38);
  color: #166534;
}
[data-theme="light"] body[data-view="bonus-game"] .bonus-game-back:hover,
[data-theme="light"] body[data-view="cooler-game"] .bonus-game-back:hover {
  background: rgba(220, 252, 231, 0.98);
  border-color: rgba(22, 163, 74, 0.55);
  color: #14532d;
}

body[data-view="plasterer-game"] .bonus-game-back {
  background: rgba(15, 23, 42, 0.82);
  border-color: rgba(248, 113, 113, 0.45);
  color: #fecaca;
}
body[data-view="plasterer-game"] .bonus-game-back:hover {
  background: rgba(127, 29, 29, 0.35);
  border-color: #f87171;
  color: #fff;
}
[data-theme="light"] body[data-view="plasterer-game"] .bonus-game-back {
  background: rgba(254, 242, 242, 0.96);
  border-color: rgba(239, 68, 68, 0.4);
  color: #b91c1c;
}
[data-theme="light"] body[data-view="plasterer-game"] .bonus-game-back:hover {
  background: rgba(254, 226, 226, 0.98);
  border-color: rgba(220, 38, 38, 0.55);
  color: #991b1b;
}

body[data-view="equilator"] .bonus-game-back {
  background: rgba(15, 23, 42, 0.65);
  border-color: rgba(148, 163, 184, 0.4);
  color: #cbd5e1;
}
body[data-view="equilator"] .bonus-game-back:hover {
  background: rgba(30, 41, 59, 0.88);
  border-color: #94a3b8;
  color: #f1f5f9;
}
[data-theme="light"] body[data-view="equilator"] .bonus-game-back {
  background: rgba(248, 250, 252, 0.96);
  border-color: rgba(100, 116, 139, 0.42);
  color: #334155;
}
[data-theme="light"] body[data-view="equilator"] .bonus-game-back:hover {
  background: #fff;
  border-color: rgba(249, 115, 22, 0.45);
  color: #c2410c;
}

body[data-view="streams"] .bonus-game-back,
body[data-view="schedule"] .bonus-game-back {
  background: rgba(249, 115, 22, 0.08);
  border-color: rgba(249, 115, 22, 0.4);
  color: #fdba74;
}
body[data-view="streams"] .bonus-game-back:hover,
body[data-view="schedule"] .bonus-game-back:hover {
  background: rgba(249, 115, 22, 0.16);
  border-color: #fb923c;
  color: #ffedd5;
}
[data-theme="light"] body[data-view="streams"] .bonus-game-back,
[data-theme="light"] body[data-view="schedule"] .bonus-game-back {
  background: rgba(255, 251, 247, 0.96);
  border-color: rgba(249, 115, 22, 0.4);
  color: #c2410c;
}
[data-theme="light"] body[data-view="streams"] .bonus-game-back:hover,
[data-theme="light"] body[data-view="schedule"] .bonus-game-back:hover {
  background: rgba(255, 237, 213, 0.95);
  border-color: rgba(234, 88, 12, 0.55);
  color: #9a3412;
}

body[data-view="download"] .download-back {
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.98));
  border-color: rgba(148, 163, 184, 0.35);
  color: #e2e8f0;
}
body[data-view="download"] .download-back:hover {
  background: linear-gradient(145deg, #334155, #1e293b);
  border-color: rgba(249, 115, 22, 0.55);
  color: #fdba74;
}
[data-theme="light"] body[data-view="download"] .download-back {
  background: linear-gradient(135deg, rgba(255, 248, 240, 0.96), rgba(255, 237, 213, 0.92));
  border-color: rgba(249, 115, 22, 0.42);
  color: var(--text);
}
[data-theme="light"] body[data-view="download"] .download-back:hover {
  background: linear-gradient(135deg, #f97316, #fb923c);
  border-color: rgba(249, 115, 22, 0.6);
  color: var(--btn-on-accent);
}

body[data-view="chat"] .chat-back-btn:not(.winter-rating-lightbox__back) {
  background: rgba(15, 23, 42, 0.55);
  border-color: rgba(56, 189, 248, 0.38);
  color: #7dd3fc;
}
body[data-view="chat"] .chat-back-btn:not(.winter-rating-lightbox__back):hover {
  background: rgba(30, 41, 59, 0.88);
  border-color: #38bdf8;
  color: #e0f2fe;
}
[data-theme="light"] body[data-view="chat"] .chat-back-btn:not(.winter-rating-lightbox__back) {
  background: rgba(255, 253, 251, 0.96);
  border-color: rgba(14, 165, 233, 0.4);
  color: #0369a1;
}
[data-theme="light"] body[data-view="chat"] .chat-back-btn:not(.winter-rating-lightbox__back):hover {
  background: rgba(224, 242, 254, 0.95);
  border-color: #0284c7;
  color: #0c4a6e;
}
/* Общий чат: как зал славы — «Назад» отдельно, остальное одной полосой с разделителями */
.chat-general-header {
  display: flex;
  align-items: stretch;
  gap: 6px;
  margin-bottom: 0;
  flex-wrap: nowrap;
  padding: 8px 0;
  /* Размытие вокруг кнопок без внешней рамки; обводка только у кнопки «Назад» и полосы сегментов */
  background: rgba(15, 23, 42, 0.16);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
  position: absolute;
  top: 48px;
  left: 0;
  right: 0;
  transform: none;
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  z-index: 2;
  --chat-general-header-strip-min-height: var(--app-back-btn-min-height);
  overflow: hidden;
  pointer-events: none;
}
.chat-general-header__toolbar-back {
  margin: 0 !important;
  flex-shrink: 0;
  align-self: stretch;
}
.chat-general-header .chat-back-btn.chat-general-header__toolbar-back {
  pointer-events: auto;
  align-self: stretch;
  min-height: var(--chat-general-header-strip-min-height);
  height: auto;
  margin: 0 !important;
  padding: 0 9px;
  font-size: 13px;
  font-weight: 500;
  line-height: 0;
  letter-spacing: 0;
  border-radius: 16px;
}
/* Одна обводка вокруг полосы, ячейки с вертикальными разделителями */
.chat-general-header__segments {
  display: flex;
  align-items: stretch;
  flex: 1;
  min-width: 0;
  gap: 0;
  padding: 0;
  overflow: hidden;
  box-sizing: border-box;
  min-height: var(--chat-general-header-strip-min-height);
  background: #000;
  border: 1px solid var(--accent);
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  pointer-events: auto;
}
.chat-general-header__segment {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  box-sizing: border-box;
  border: none;
  border-radius: 0;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  background: transparent;
  box-shadow: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.15s, background 0.15s;
  text-align: center;
  text-decoration: none;
  border-right: 1px solid rgba(249, 115, 22, 0.4);
  -webkit-appearance: none;
  appearance: none;
}
.chat-general-header__segment:last-child {
  border-right: none;
}
.chat-general-header__segment:hover {
  color: #fb923c;
  background: rgba(255, 255, 255, 0.08);
}
.chat-general-header__segment--grow {
  flex: 1 1 0;
  min-width: 0;
  padding: 3px 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  white-space: normal;
}
.chat-general-header__segment--icon {
  flex: 0 0 38px;
  width: 38px;
  min-width: 38px;
  padding: 0;
  color: var(--accent);
}
.chat-general-copy-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  min-width: 38px;
  padding: 0;
  margin: 0;
  color: var(--text);
  background: var(--block-bg-solid);
  border: 1px solid rgba(249, 115, 22, 0.7);
  border-radius: 14px;
  cursor: pointer;
  font-family: inherit;
  -webkit-appearance: none;
  appearance: none;
  flex-shrink: 0;
}
.chat-general-copy-link-btn:hover {
  border-color: rgba(249, 115, 22, 0.9);
}
.chat-general-copy-link-btn__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}
.chat-general-copy-link-btn__icon svg {
  display: block;
}
.chat-general-admins-btn {
  padding: 5px 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  background: var(--block-bg-solid);
  border: 1px solid rgba(249, 115, 22, 0.7);
  border-radius: 14px;
  cursor: pointer;
  font-family: inherit;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.05;
}
.chat-general-admins-btn:hover {
  border-color: rgba(249, 115, 22, 0.9);
}
.chat-general-header .chat-general-admins-btn.chat-general-header__segment {
  height: auto;
  min-height: 0;
  margin-right: 4px;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.chat-general-header .chat-general-admins-btn.chat-general-header__segment:hover {
  border: none;
}
.chat-general-admins-btn__top {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  white-space: normal;
  overflow: visible;
  text-align: center;
  word-break: break-word;
  hyphens: auto;
  line-height: 1.15;
  max-width: 100%;
}
.chat-general-admins-btn__bottom {
  display: block;
  font-size: 9.5px;
  font-weight: 600;
  color: rgba(249, 115, 22, 0.95);
  margin-top: 0;
  white-space: normal;
  text-align: center;
  line-height: 1.15;
  word-break: break-word;
  max-width: 100%;
}
.chat-general-download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  color: var(--text);
  background: var(--block-bg-solid);
  border: 1px solid rgba(148, 163, 184, 0.5);
  border-radius: 16px;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  -webkit-appearance: none;
  appearance: none;
}
.chat-general-header .chat-general-download-btn.chat-general-header__segment {
  height: auto;
  min-height: 0;
  /* справа +3px к зазору до «Позвать друга» */
  padding: 0 11px 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.15;
  border: none;
  border-radius: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}
.chat-general-header .chat-general-download-btn.chat-general-header__segment:hover {
  border: none;
  color: #fb923c;
}
.chat-general-invite-friend-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 2px 4px;
  font-family: inherit;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  border: none;
  background: transparent;
  color: inherit;
}
.chat-general-invite-friend-btn__line1,
.chat-general-invite-friend-btn__line2 {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.1;
  color: var(--accent);
  text-align: center;
}
.chat-general-header .chat-general-invite-friend-btn.chat-general-header__segment {
  height: auto;
  min-height: 0;
  flex: 0 1 auto;
  min-width: 0;
  padding: 2px 8px 2px 6px;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.chat-general-header .chat-general-invite-friend-btn.chat-general-header__segment:hover {
  border: none;
}
.chat-general-header .chat-general-invite-friend-btn.chat-general-header__segment:hover .chat-general-invite-friend-btn__line1,
.chat-general-header .chat-general-invite-friend-btn.chat-general-header__segment:hover .chat-general-invite-friend-btn__line2 {
  color: #fb923c;
}
[data-theme="light"] .chat-general-header .chat-general-invite-friend-btn__line1,
[data-theme="light"] .chat-general-header .chat-general-invite-friend-btn__line2 {
  color: #ea580c;
}
.chat-general-header .chat-general-copy-link-btn.chat-general-header__segment {
  width: 38px;
  min-width: 38px;
  height: auto;
  min-height: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.chat-general-header .chat-general-copy-link-btn__icon svg {
  width: 16px;
  height: 16px;
}
.chat-general-header .chat-general-copy-link-btn.chat-general-header__segment:hover {
  border: none;
}
[data-theme="dark"] .chat-general-header__segments {
  border-color: var(--accent);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}
[data-theme="dark"] .chat-general-header__segment {
  border-right-color: rgba(251, 146, 60, 0.35);
}
[data-theme="dark"] .chat-general-header__segment:hover {
  color: #fb923c;
  background: rgba(255, 255, 255, 0.1);
}
[data-theme="light"] .chat-general-header__segments {
  border-color: var(--accent);
  background: #000;
}
[data-theme="light"] .chat-general-header {
  background: rgba(255, 255, 255, 0.26);
}
[data-theme="light"] .chat-conv-top-inner {
  background: rgba(255, 255, 255, 0.26);
}
[data-theme="light"] .chat-general-header__segment {
  border-right-color: rgba(234, 88, 12, 0.4);
  color: var(--accent);
}
[data-theme="light"] .chat-general-header__segment:hover {
  color: #fb923c;
  background: rgba(255, 255, 255, 0.08);
}
[data-theme="light"] .chat-general-header__segment--icon {
  color: var(--accent);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .chat-general-header,
  .chat-conv-top-inner {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .chat-general-header {
    background: rgba(30, 41, 59, 0.92);
  }
  .chat-conv-top-inner {
    background: rgba(30, 41, 59, 0.92);
  }
  [data-theme="light"] .chat-general-header,
  [data-theme="light"] .chat-conv-top-inner {
    background: rgba(248, 250, 252, 0.94);
  }
}
[data-theme="light"] .chat-general-header .chat-general-download-btn.chat-general-header__segment {
  color: var(--accent);
}
[data-theme="light"] .chat-general-header .chat-general-download-btn.chat-general-header__segment:hover {
  color: #fb923c;
}
.chat-general-header .chat-general-admins-btn__top {
  color: var(--accent);
}
.chat-general-header .chat-general-admins-btn__bottom {
  color: #fb923c;
}
[data-theme="light"] .chat-general-header .chat-general-admins-btn__top {
  color: var(--accent);
}
[data-theme="light"] .chat-general-header .chat-general-admins-btn__bottom {
  color: #fb923c;
}
.chat-general-download-btn:hover {
  background: rgba(168, 85, 247, 0.12);
  color: var(--text);
  border-color: rgba(168, 85, 247, 0.35);
}
.chat-title--small { margin-bottom: 6px; font-size: 17px; }
.chat-conv-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-bottom: 0;
}
.chat-conv-header .chat-title--small,
.chat-conv-header .chat-conv-title__name { margin-bottom: 0; }
.chat-conv-title__id-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
}
.chat-conv-title__id-wrap--hidden { display: none !important; }
.chat-conv-title__id {
  font-family: ui-monospace, monospace;
  font-size: 12px;
  user-select: all;
  -webkit-user-select: all;
}
.chat-conv-title__copy {
  padding: 4px 10px;
  font-size: 12px;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  background: var(--block-bg);
  color: var(--text);
  cursor: pointer;
  font-family: inherit;
}
.chat-conv-title__copy:hover {
  background: rgba(168, 85, 247, 0.12);
  border-color: rgba(168, 85, 247, 0.4);
}
.chat-contacts {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}
.chat-contact {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--block-bg);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  cursor: pointer;
  text-align: left;
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  width: 100%;
  box-sizing: border-box;
}
.chat-dialogs-block .chat-contact {
  border-radius: 0;
  border: none;
  position: relative;
}
.chat-dialogs-block .chat-contact::after {
  content: "";
  position: absolute;
  left: 64px;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--border-subtle);
}
.chat-dialogs-block .chat-contact:last-child::after {
  display: none;
}
.chat-contact:hover { background: rgba(168, 85, 247, 0.12); border-color: rgba(168, 85, 247, 0.4); }
.chat-contact__avatar {
  width: 40px;
  height: 40px;
  min-width: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  object-fit: cover;
  background: rgba(148, 163, 184, 0.2);
}
.chat-contact__avatar--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 600;
  color: var(--accent);
}
.chat-contact__label-wrap {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.chat-contact__label-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 0;
}
.chat-contact__label { flex: 1; font-weight: 500; }
.chat-contact__role {
  font-size: 11px;
  color: var(--text-muted);
  font-style: italic;
}
.chat-contact__role--admin {
  color: #f97316;
  font-style: normal;
  font-weight: 600;
}
.chat-contact__right {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}
.chat-contact__online {
  display: none;
  font-size: 11px;
  color: var(--accent-2, #22c55e);
  font-weight: 500;
}
.chat-contact__online.chat-contact__online--visible {
  display: inline;
}
.chat-contact__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.chat-contact__name-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.chat-contact__name { font-weight: 500; }
.chat-contact__badges {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  flex-shrink: 0;
}
.chat-contact__admin {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.chat-contact__dt { font-size: 12px; color: var(--text-muted); font-family: monospace; }

.download-title {
  text-align: left;
}

.download-quote {
  margin: 0 0 14px;
  font-size: 11px;
  line-height: 1.4;
  color: var(--text);
  font-style: italic;
  text-align: center;
}

.tournament-day-block {
  margin-top: 14px;
  padding: 10px 14px;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.15), rgba(249, 115, 22, 0.1));
  border: 1px solid rgba(168, 85, 247, 0.35);
  border-radius: 16px;
}
.tournament-day-block--home .tournament-day-block__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  justify-content: center;
  overflow: hidden;
}
.tournament-day-block__badge {
  display: inline-block;
  align-self: flex-start;
  padding: 1px 4px;
  margin-bottom: 0;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #ea580c);
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(251, 146, 60, 0.4);
}
.tournament-day-block--home .tournament-day-block__name {
  font-size: 10px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tournament-day-block--home .tournament-day-block__meta {
  font-size: 9px;
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tournament-day-block--home .tournament-day-block__meta .tournament-day-block__timer {
  font-weight: 600;
  color: var(--accent);
}
.tournament-day-block__cta {
  display: inline-block;
  margin-top: 6px;
  padding: 6px 12px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #fff;
  text-decoration: none;
  border: none;
  border-radius: 8px;
  background: linear-gradient(90deg, #fb923c 0%, #ea580c 50%, #c2410c 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 3px rgba(0, 0, 0, 0.2);
  line-height: 1.2;
}
.tournament-day-block--home:hover .tournament-day-block__cta {
  background: linear-gradient(90deg, #fdba74 0%, #f97316 50%, #ea580c 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 2px 6px rgba(249, 115, 22, 0.3);
}
[data-theme="light"] .tournament-day-block__cta {
  background: linear-gradient(90deg, #fb923c 0%, #ea580c 50%, #b45309 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 1px 3px rgba(0, 0, 0, 0.15);
}
[data-theme="light"] .tournament-day-block--home:hover .tournament-day-block__cta {
  background: linear-gradient(90deg, #fdba74 0%, #f97316 50%, #ea580c 100%);
}
.tournament-day-block__cols {
  display: flex;
  gap: 12px;
}
.tournament-day-block__col {
  flex: 1;
  min-width: 0;
  padding: 8px 10px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  text-align: center;
}
.tournament-day-block__col-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}
.tournament-day-block__col-value {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
}
.tournament-day-block__timer {
  margin-top: 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
}
.tournament-day-block__satellite {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(148, 163, 184, 0.25);
}
.tournament-day-block__satellite-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
}
.tournament-day-block__satellite-details {
  margin-top: 2px;
  font-size: 11px;
  color: var(--text-muted);
}

.features {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.features-row--half {
  display: flex;
  gap: 10px;
}
.features-row--half .feature {
  flex: 1;
  min-width: 0;
}

.features-row--full {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}
.features-row--full .feature {
  flex: 1;
  min-width: 0;
  width: 100%;
}


.features-row--three {
  display: flex;
  gap: 8px;
}
.features-row--three .feature {
  flex: 1;
  min-width: 0;
  padding: 8px 10px;
  gap: 8px;
}
.features-row--three .feature__icon {
  width: 26px;
  height: 26px;
  font-size: 14px;
}
.features-row--three .feature__title {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
}
.features-row--three .feature__text {
  font-size: 11px;
  margin-top: 2px;
}
.features-row--three .feature--rating-promo {
  padding: 8px 10px !important;
}
.features-row--three .feature--rating-three {
  font-size: 10px;
}
.features-row--three .feature--rating-three .feature__title {
  font-size: 10px;
  line-height: 1.2;
}
.features-row--three .feature--rating-three .feature__title-line2 {
  font-size: 9px;
  margin-top: 0.1em;
}
.features-row--three .feature--rating-three .feature__icon {
  width: 22px;
  height: 22px;
  font-size: 12px;
}

.feature--rating-spring-full .feature__title {
  font-size: 14px !important;
  font-weight: 700;
  line-height: 1.35;
}
.feature__title--center {
  text-align: center;
  width: 100%;
}
.feature__title--uppercase {
  text-transform: uppercase;
}
.feature--rating-spring-full .feature__title-snowflake {
  margin-right: 0.25em;
  opacity: 0.95;
}
.feature--rating-spring-full .feature__title-line1,
.feature--rating-spring-full .feature__title-prize,
.feature--rating-spring-full .feature__title-line3 {
  display: block;
  width: 100%;
  text-align: center;
  margin-top: 0.05em;
  margin-bottom: 0.05em;
}
.feature--rating-spring-full .feature__title-line1 {
  font-size: 0.78em;
  white-space: nowrap;
  margin-top: 0;
}
.feature__title-prize {
  font-size: 1.5em;
  font-weight: 700;
  color: #f97316;
  white-space: nowrap;
}
.feature--rating-spring-full .feature__title-line3 {
  margin-bottom: 0;
  white-space: nowrap;
}
[data-theme="light"] .feature__title-prize {
  color: #ea580c;
}
.feature--rating-spring-full .feature__title-line2 {
  display: block;
  margin-top: 0.15em;
}
.feature--rating-spring-full.feature--rating-promo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px !important;
  min-height: 72px;
  box-sizing: border-box;
}
.feature--rating-spring-full .feature__cup {
  font-size: 50px;
  line-height: 1;
  flex-shrink: 0;
}
.feature--rating-spring-full .feature__cup--left {
  margin-right: 12px;
}
.feature--rating-spring-full .feature__cup--right {
  margin-left: 12px;
}
.feature--rating-spring-full .feature__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.35;
  min-width: 0;
  overflow: hidden;
}
.feature--rating-spring-full .feature__title {
  min-width: 0;
  overflow: hidden;
}

/* Узкие экраны: кнопка «Рейтинг турнирщиков» — 3 строки, кубки меньше; сохраняем читаемый текст и отступы */
@media (max-width: 400px) {
  .feature--rating-spring-full.feature--rating-promo {
    padding: 10px 16px !important;
    min-height: 64px;
  }
  .feature--rating-spring-full .feature__title {
    font-size: 11px !important;
    line-height: 1.28;
    text-align: center;
  }
  .feature--rating-spring-full .feature__title-line1 {
    font-size: 0.8em;
  }
  .feature--rating-spring-full .feature__body {
    line-height: 1.28;
  }
  .feature--rating-spring-full .feature__title-line1,
  .feature--rating-spring-full .feature__title-prize,
  .feature--rating-spring-full .feature__title-line3 {
    text-align: center;
  }
  .feature--rating-spring-full .feature__title-prize {
    font-size: 1.2em;
    white-space: nowrap;
  }
  .feature--rating-spring-full .feature__title-line3 {
    font-size: 0.9em;
  }
  .feature--rating-spring-full .feature__cup {
    font-size: 36px;
  }
  .feature--rating-spring-full .feature__cup--left {
    margin-right: 8px;
  }
  .feature--rating-spring-full .feature__cup--right {
    margin-left: 8px;
  }
  .features-section-title {
    font-size: 13px;
    margin-top: 14px;
  }
  .features {
    margin-top: 14px;
    gap: 8px;
  }
  .games-apps-grid .feature__title {
    font-size: 11px;
  }
  .games-apps-grid .games-apps-grid__promo-learn .feature__title {
    font-size: 12px;
  }
  .games-apps-grid .games-apps-grid__promo-learn .feature__desc {
    font-size: 10px;
  }
  .games-apps-grid .games-apps-grid__promo-learn .feature__icon-emoji {
    font-size: 24px;
  }
}
@media (max-width: 360px) {
  .feature--rating-spring-full.feature--rating-promo {
    padding: 10px 14px !important;
  }
  .feature--rating-spring-full .feature__title {
    font-size: 10px !important;
  }
  .feature--rating-spring-full .feature__title-line1 {
    font-size: 0.75em;
  }
  .feature--rating-spring-full .feature__title-prize {
    font-size: 1.08em;
  }
  .feature--rating-spring-full .feature__title-line3 {
    font-size: 0.88em;
  }
  .feature--rating-spring-full .feature__cup {
    font-size: 32px;
  }
  .games-apps-grid .games-apps-grid__promo-learn .feature__title {
    font-size: 11px;
  }
  .games-apps-grid .games-apps-grid__promo-learn .feature__desc {
    font-size: 9px;
  }
}
@media (max-width: 320px) {
  .feature--rating-spring-full.feature--rating-promo {
    padding: 8px 12px !important;
  }
  .feature--rating-spring-full .feature__title {
    font-size: 9px !important;
  }
  .feature--rating-spring-full .feature__title-line1 {
    font-size: 0.68em;
  }
  .feature--rating-spring-full .feature__title-prize {
    font-size: 0.98em;
  }
  .feature--rating-spring-full .feature__title-line3 {
    font-size: 0.82em;
  }
  .feature--rating-spring-full .feature__cup {
    font-size: 28px;
  }
  .feature--rating-spring-full .feature__cup--left {
    margin-right: 6px;
  }
  .feature--rating-spring-full .feature__cup--right {
    margin-left: 6px;
  }
}
@media (max-width: 300px) {
  .feature--rating-spring-full.feature--rating-promo {
    padding: 6px 10px !important;
    min-height: 58px;
  }
  .feature--rating-spring-full .feature__title {
    font-size: 8px !important;
    line-height: 1.26;
  }
  .feature--rating-spring-full .feature__title-line1 {
    font-size: 0.65em;
  }
  .feature--rating-spring-full .feature__title-prize {
    font-size: 0.92em;
  }
  .feature--rating-spring-full .feature__title-line3 {
    font-size: 0.78em;
  }
  .feature--rating-spring-full .feature__cup {
    font-size: 24px;
  }
  .feature--rating-spring-full .feature__cup--left {
    margin-right: 5px;
  }
  .feature--rating-spring-full .feature__cup--right {
    margin-left: 5px;
  }
}
@media (max-width: 280px) {
  .feature--rating-spring-full.feature--rating-promo {
    padding: 6px 8px !important;
    min-height: 54px;
  }
  .feature--rating-spring-full .feature__title {
    font-size: 7px !important;
    line-height: 1.24;
  }
  .feature--rating-spring-full .feature__title-line1 {
    font-size: 0.6em;
  }
  .feature--rating-spring-full .feature__title-prize {
    font-size: 0.85em;
  }
  .feature--rating-spring-full .feature__title-line3 {
    font-size: 0.72em;
  }
  .feature--rating-spring-full .feature__title-snowflake {
    margin-right: 0.2em;
  }
  .feature--rating-spring-full .feature__cup {
    font-size: 22px;
  }
  .feature--rating-spring-full .feature__cup--left {
    margin-right: 4px;
  }
  .feature--rating-spring-full .feature__cup--right {
    margin-left: 4px;
  }
}

.feature--rating-promo {
  padding: 9px 10px !important;
  border: 1px solid rgba(148, 163, 184, 0.55);
  border-width: 1px !important;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.25) !important;
}
.feature--rating-promo .feature__icon {
  width: 32px;
  height: 32px;
  font-size: 18px;
}
.feature--rating-promo .feature__title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
}
.feature--rating-promo .feature__title-line2 {
  display: block;
  margin-top: 0.05em;
}
.feature--rating-promo .feature__title-accent {
  color: var(--accent);
  font-weight: 700;
  padding: 0 2px;
  border-radius: 2px;
  background: var(--accent-soft);
}
.feature--rating-promo .feature__text {
  font-size: 11px;
}
[data-theme="light"] .view--active[data-view="home"] .feature--rating-promo {
  border: 1px solid rgba(120, 113, 108, 0.5) !important;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.35) !important;
}
/* Главная: кнопка рейтинга — оформление в стиле зимы (холодная палитра, лёд, снег) */
.view--active[data-view="home"] .feature.feature--link.feature--rating-promo,
html.app-view-home .feature.feature--link.feature--rating-promo {
  border: 1px solid rgba(186, 230, 253, 0.6) !important;
  border-radius: 22px !important;
  max-width: 100%;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
  box-sizing: border-box;
  background: linear-gradient(145deg, rgba(30, 58, 95, 0.95), rgba(15, 23, 42, 0.98)) !important;
  box-shadow: 0 0 0 1px rgba(186, 230, 253, 0.25),
              0 4px 20px rgba(56, 189, 248, 0.15),
              inset 0 1px 0 rgba(255, 255, 255, 0.14) !important;
}
.view--active[data-view="home"] .feature.feature--link.feature--rating-promo:hover,
html.app-view-home .feature.feature--link.feature--rating-promo:hover {
  box-shadow: 0 0 0 1px rgba(186, 230, 253, 0.35),
              0 6px 24px rgba(56, 189, 248, 0.2),
              inset 0 1px 0 rgba(255, 255, 255, 0.18) !important;
}
.view--active[data-view="home"] .feature--rating-promo .feature__title-prize,
html.app-view-home .feature--rating-promo .feature__title-prize {
  color: #7dd3fc !important;
  text-shadow: 0 0 12px rgba(125, 211, 252, 0.4);
}
.view--active[data-view="home"] .feature--rating-spring-promo .feature__title-prize--spring,
html.app-view-home .feature--rating-spring-promo .feature__title-prize--spring {
  color: #fbbf24 !important;
  text-shadow: 0 0 14px rgba(251, 191, 36, 0.4);
}
[data-theme="light"] .view--active[data-view="home"] .feature.feature--link.feature--rating-promo,
[data-theme="light"] html.app-view-home .feature.feature--link.feature--rating-promo {
  border: 1px solid rgba(56, 189, 248, 0.5) !important;
  background: linear-gradient(145deg, #f0f9ff 0%, #e0f2fe 50%, #bae6fd 100%) !important;
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.2),
              0 4px 16px rgba(56, 189, 248, 0.12),
              inset 0 1px 0 rgba(255, 255, 255, 0.95) !important;
}
[data-theme="light"] .view--active[data-view="home"] .feature.feature--link.feature--rating-promo:hover,
[data-theme="light"] html.app-view-home .feature.feature--link.feature--rating-promo:hover {
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.35),
              0 6px 20px rgba(56, 189, 248, 0.18),
              inset 0 1px 0 rgba(255, 255, 255, 1) !important;
}
[data-theme="light"] .view--active[data-view="home"] .feature--rating-promo .feature__title-prize,
[data-theme="light"] html.app-view-home .feature--rating-promo .feature__title-prize {
  color: #0284c7 !important;
  text-shadow: none;
}
[data-theme="light"] .view--active[data-view="home"] .feature--rating-spring-promo .feature__title-prize--spring,
[data-theme="light"] html.app-view-home .feature--rating-spring-promo .feature__title-prize--spring {
  color: #b45309 !important;
  text-shadow: none;
}
[data-theme="light"] .view--active[data-view="home"] .feature--rating-promo .feature__title-accent {
  color: #0284c7;
  background: rgba(56, 189, 248, 0.2);
}

/* Кнопка «Рейтинг Весны» на главной — в стиле главной (slate + amber), поярче */
.view--active[data-view="home"] .feature.feature--link.feature--rating-promo.feature--rating-spring-promo,
html.app-view-home .feature.feature--link.feature--rating-promo.feature--rating-spring-promo {
  border: 1px solid rgba(251, 191, 36, 0.5) !important;
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.92), rgba(51, 65, 85, 0.88)) !important;
  box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.22),
              0 4px 20px rgba(251, 191, 36, 0.14),
              inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}
.view--active[data-view="home"] .feature.feature--link.feature--rating-promo.feature--rating-spring-promo:hover,
html.app-view-home .feature.feature--link.feature--rating-promo.feature--rating-spring-promo:hover {
  box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.35),
              0 6px 24px rgba(251, 191, 36, 0.2),
              inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}
.feature--rating-spring-promo.feature--rating-promo {
  border: 1px solid rgba(251, 191, 36, 0.5) !important;
  border-radius: 22px !important;
  max-width: 100%;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.92), rgba(51, 65, 85, 0.88)) !important;
  box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.22),
              0 4px 20px rgba(251, 191, 36, 0.14),
              inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}
.view--active[data-view="home"] .feature--rating-spring-promo:hover,
html.app-view-home .feature--rating-spring-promo:hover,
.feature--rating-spring-promo:hover {
  box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.35),
              0 6px 24px rgba(251, 191, 36, 0.2),
              inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}
.feature--rating-spring-promo .feature__title-line1,
.feature--rating-spring-promo .feature__title-line3--spring {
  color: #f8fafc !important;
}
.feature--rating-spring-promo .feature__title-prize--spring {
  color: #fbbf24 !important;
  text-shadow: 0 0 14px rgba(251, 191, 36, 0.4);
}
.feature--rating-spring-promo .feature__title-updated {
  display: block;
  width: 100%;
  margin-top: 2px;
  margin-left: 0;
  padding: 0 2px;
  box-sizing: border-box;
  font-size: 0.65em;
  font-weight: 400;
  color: rgba(248, 250, 252, 0.5);
  letter-spacing: 0.02em;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}
[data-theme="light"] .feature--rating-spring-promo .feature__title-updated {
  color: rgba(30, 41, 59, 0.5);
}
.feature--rating-spring-promo .feature__title-leaf {
  margin-left: 0.2em;
  opacity: 0.95;
  vertical-align: middle;
}
/* Высота и кубки как у кнопки «Рейтинг турнирщиков зимы» */
.feature--rating-spring-promo.feature--rating-promo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px !important;
  min-height: 72px;
  box-sizing: border-box;
}
.feature--rating-spring-promo .feature__cup {
  font-size: clamp(22px, 11vmin, 50px);
  line-height: 1;
  flex-shrink: 0;
}
.feature--rating-spring-promo .feature__cup--left {
  margin-right: clamp(4px, 2vw, 12px);
}
.feature--rating-spring-promo .feature__cup--right {
  margin-left: clamp(4px, 2vw, 12px);
}
.feature--rating-spring-promo .feature__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.35;
  flex: 1 1 0;
  min-width: 0;
  /* не обрезаем текст между кубками — переносим строки */
  overflow: visible;
}
.feature--rating-spring-promo .feature__title {
  min-width: 0;
  overflow: visible;
  font-size: clamp(9px, 2.9vw, 14px) !important;
  font-weight: 700;
}
.feature--rating-spring-promo .feature__title-line1,
.feature--rating-spring-promo .feature__title-prize,
.feature--rating-spring-promo .feature__title-line3--spring {
  display: block;
  width: 100%;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
  -webkit-hyphens: auto;
}
.feature--rating-spring-promo .feature__title-line1 {
  font-size: 0.78em;
  text-align: center;
}
.feature--rating-spring-promo .feature__title-prize {
  font-size: clamp(0.95em, 4.2vw, 1.5em);
  font-weight: 700;
  text-align: center;
}
.feature--rating-spring-promo .feature__title-line3--spring {
  font-size: 1.1em;
  margin-top: 0.15em;
  color: #f8fafc !important;
  letter-spacing: 0.06em;
  text-align: center;
}
[data-theme="light"] .feature--rating-spring-promo .feature__title-line1,
[data-theme="light"] .feature--rating-spring-promo .feature__title-line3--spring {
  color: #78350f !important;
}
[data-theme="light"] .view--active[data-view="home"] .feature.feature--link.feature--rating-promo.feature--rating-spring-promo,
[data-theme="light"] html.app-view-home .feature.feature--link.feature--rating-promo.feature--rating-spring-promo,
[data-theme="light"] .feature--rating-spring-promo.feature--rating-promo {
  border: 1px solid rgba(245, 158, 11, 0.55) !important;
  background: linear-gradient(145deg, #fef3c7 0%, #fde68a 50%, #fcd34d 100%) !important;
  box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.22),
              0 4px 16px rgba(245, 158, 11, 0.18),
              inset 0 1px 0 rgba(255, 255, 255, 0.95) !important;
}
[data-theme="light"] .feature--rating-spring-promo .feature__title {
  color: #78350f;
}
[data-theme="light"] .feature--rating-spring-promo .feature__title-prize--spring {
  color: #b45309 !important;
  text-shadow: none;
}
/* Та же высота, что у кнопки «Рейтинг турнирщиков зимы» */
@media (max-width: 400px) {
  .feature--rating-spring-promo.feature--rating-promo {
    padding: 10px 16px !important;
    min-height: 64px;
  }
  .feature--rating-spring-promo .feature__title {
    font-size: 11px !important;
    line-height: 1.28;
  }
  .feature--rating-spring-promo .feature__title-line1 {
    font-size: 0.8em;
  }
  .feature--rating-spring-promo .feature__body {
    line-height: 1.28;
  }
  .feature--rating-spring-promo .feature__cup {
    font-size: 36px;
  }
  .feature--rating-spring-promo .feature__cup--left {
    margin-right: 8px;
  }
  .feature--rating-spring-promo .feature__cup--right {
    margin-left: 8px;
  }
}
@media (max-width: 360px) {
  .feature--rating-spring-promo.feature--rating-promo {
    padding: 10px 14px !important;
  }
  .feature--rating-spring-promo .feature__title {
    font-size: 10px !important;
  }
  .feature--rating-spring-promo .feature__title-line1 {
    font-size: 0.75em;
  }
  .feature--rating-spring-promo .feature__title-prize {
    font-size: 1.08em;
  }
  .feature--rating-spring-promo .feature__cup {
    font-size: 32px;
  }
}
@media (max-width: 320px) {
  .feature--rating-spring-promo.feature--rating-promo {
    padding: 8px 12px !important;
  }
  .feature--rating-spring-promo .feature__title {
    font-size: 9px !important;
  }
  .feature--rating-spring-promo .feature__title-line1 {
    font-size: 0.68em;
  }
  .feature--rating-spring-promo .feature__title-prize {
    font-size: 0.98em;
  }
  .feature--rating-spring-promo .feature__cup {
    font-size: 28px;
  }
  .feature--rating-spring-promo .feature__cup--left {
    margin-right: 6px;
  }
  .feature--rating-spring-promo .feature__cup--right {
    margin-left: 6px;
  }
}
@media (max-width: 300px) {
  .feature--rating-spring-promo.feature--rating-promo {
    padding: 6px 10px !important;
    min-height: 58px;
  }
  .feature--rating-spring-promo .feature__title {
    font-size: 8px !important;
    line-height: 1.26;
  }
  .feature--rating-spring-promo .feature__title-line1 {
    font-size: 0.65em;
  }
  .feature--rating-spring-promo .feature__title-prize {
    font-size: 0.92em;
  }
  .feature--rating-spring-promo .feature__cup {
    font-size: 24px;
  }
  .feature--rating-spring-promo .feature__cup--left {
    margin-right: 5px;
  }
  .feature--rating-spring-promo .feature__cup--right {
    margin-left: 5px;
  }
}
@media (max-width: 280px) {
  .feature--rating-spring-promo.feature--rating-promo {
    padding: 6px 8px !important;
    min-height: 54px;
  }
  .feature--rating-spring-promo .feature__title {
    font-size: 7px !important;
    line-height: 1.24;
  }
  .feature--rating-spring-promo .feature__title-line1 {
    font-size: 0.6em;
  }
  .feature--rating-spring-promo .feature__title-prize {
    font-size: 0.85em;
  }
  .feature--rating-spring-promo .feature__cup {
    font-size: 22px;
  }
  .feature--rating-spring-promo .feature__cup--left {
    margin-right: 4px;
  }
  .feature--rating-spring-promo .feature__cup--right {
    margin-left: 4px;
  }
}

.features-section-title {
  margin: 18px 0 6px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-muted);
}
.features-section-title:first-child {
  margin-top: 0;
}
.features-section-title--end {
  text-align: right;
}
.features-section-title--games {
  margin: 24px 0 8px;
  padding: 0;
  margin-left: 0;
  text-align: left;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", sans-serif;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text);
}
[data-theme="light"] .features-section-title--games {
  color: var(--text);
}

.tournament-day-home-wrap__title {
  margin: 0 0 8px;
  padding: 0 5mm;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", sans-serif;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text);
}
[data-theme="light"] .tournament-day-home-wrap__title {
  color: var(--text);
}

.tournament-day-home-wrap {
  margin-top: 55px;
  margin-left: 0;
  margin-right: 0;
  width: 100%;
  box-sizing: border-box;
}
.tournament-day-home-wrap .tournament-day-block--home {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 12px;
  align-items: stretch;
  position: relative;
  width: 100%;
  top: auto;
  padding: 14px 16px;
  min-height: 0;
  overflow: hidden;
  background: #000 !important;
  border: 1px solid rgba(251, 146, 60, 0.5);
  border-radius: 16px 16px 0 0;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(251, 146, 60, 0.2) !important;
  transition: background 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.tournament-day-home-wrap .tournament-day-block--home:hover {
  background: #000 !important;
  border-color: rgba(251, 146, 60, 0.65);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(0, 0, 0, 0.25), 0 0 12px rgba(251, 146, 60, 0.25) !important;
}
/* Левая колонка сетки — ровно 50% ширины карточки; кубок вписан по ширине колонки (contain) */
.tournament-day-home-wrap .tournament-day-block--home .feature__icon--tournament-day-home {
  position: relative;
  left: auto;
  top: auto;
  bottom: auto;
  width: 100%;
  min-width: 0;
  min-height: 0;
  align-self: stretch;
  height: 100%;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin: 0;
  box-sizing: border-box;
}
.tournament-day-home-wrap .tournament-day-block--home .tournament-day-block__trophy-img--home-promo {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center bottom;
}
.tournament-day-home-wrap .tournament-day-block--home .tournament-day-block__body {
  margin-left: 0;
  width: 100%;
  max-width: none;
  min-width: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.tournament-day-home-wrap .tournament-day-block--home .tournament-day-block__badge {
  font-size: 12px;
}
.tournament-day-home-wrap .tournament-day-block--home .tournament-day-block__name {
  font-size: 18px;
  font-weight: 700;
  color: rgb(251, 146, 60);
}
[data-theme="light"] .tournament-day-home-wrap .tournament-day-block--home .tournament-day-block__name.tournament-day-name--freeroll,
.tournament-day-home-wrap .tournament-day-block--home .tournament-day-block__name.tournament-day-name--freeroll {
  font-size: 22px;
  font-weight: 800;
}
[data-theme="light"] .tournament-day-home-wrap .tournament-day-block--home .tournament-day-block__name {
  color: #ea580c;
}
.tournament-day-home-wrap .tournament-day-block--home .tournament-day-block__meta {
  font-size: 14px;
  line-height: 1.3;
}
.tournament-day-home-wrap .tournament-day-block--home .tournament-day-block__meta .tournament-day-block__timer {
  font-size: 15px;
}
.tournament-day-home-wrap .tournament-day-block__cta {
  font-size: 13px;
  padding: 8px 14px;
  margin-top: 8px;
}

.schedule-freeroll-name {
  font-weight: 800;
  font-size: 16px;
}

.tournament-day-actions-row {
  display: flex;
  margin-top: 0;
  border: 1px solid rgba(251, 146, 60, 0.5);
  border-top: 0;
  border-radius: 0 0 16px 16px;
  overflow: hidden;
}
.tournament-day-share-btn {
  flex: 1 1 0;
  width: auto;
  border: 0;
  padding: 10px 16px;
  background: linear-gradient(135deg, #fb923c, #f97316);
  color: #111827;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(21, 128, 61, 0.6);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.tournament-day-share-btn--raffle {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  box-shadow: 0 4px 14px rgba(34, 197, 94, 0.6);
}
.tournament-day-share-btn--raffle::before {
  content: "🎲";
}
.tournament-day-share-btn::before {
  content: "🕊";
  font-size: 16px;
}
.tournament-day-share-btn:hover {
  background: linear-gradient(135deg, #fb923c, #f97316);
  box-shadow: 0 6px 18px rgba(249, 115, 22, 0.7);
}
.tournament-day-share-btn:active {
  transform: translateY(1px);
  box-shadow: 0 3px 10px rgba(194, 65, 12, 0.6);
}
[data-theme="light"] .tournament-day-home-wrap .tournament-day-block--home {
  background: #000 !important;
  border-color: rgba(249, 115, 22, 0.5);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(0, 0, 0, 0.05), 0 0 0 1px rgba(249, 115, 22, 0.15) !important;
}
[data-theme="light"] .tournament-day-home-wrap .tournament-day-block--home:hover {
  background: #000 !important;
  border-color: rgba(249, 115, 22, 0.65);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.1), 0 0 12px rgba(249, 115, 22, 0.2) !important;
}

.games-apps-block {
  margin-top: 18px;
  margin-left: 0;
  margin-right: 0;
  width: 100%;
  box-sizing: border-box;
  padding: 14px 12px 12px;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  background: var(--block-bg);
}
[data-theme="light"] .games-apps-block {
  border-color: rgba(251, 146, 60, 0.4);
  background: rgba(255, 237, 213, 0.4);
}

.games-apps-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  /* min высота плитки; строка подстраивается под самую высокую ячейку (две строки текста без обрезки) */
  grid-auto-rows: minmax(56px, auto);
  gap: 10px;
  margin-bottom: 0;
  align-items: stretch;
}
.home-partnership-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 12px;
  align-items: stretch;
}
.games-apps-block .games-apps-grid {
  margin-top: 12px;
}
.games-apps-grid .feature,
.games-apps-grid .tournament-day-block--home,
.home-partnership-row .feature {
  min-width: 0;
  min-height: 0;
  height: 100%;
  padding: 0;
  padding-right: 6px;
  gap: 0;
  display: flex;
  align-items: stretch;
  box-sizing: border-box;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 4px 14px rgba(0, 0, 0, 0.4), 0 2px 6px rgba(0, 0, 0, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.games-apps-grid button.feature {
  border: none;
  background: transparent;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-align: left;
  width: 100%;
  margin: 0;
  -webkit-appearance: none;
  appearance: none;
}
.games-apps-grid button.feature:focus {
  outline: none;
}
.games-apps-grid .feature:hover,
.home-partnership-row .feature:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 8px 20px rgba(0, 0, 0, 0.45), 0 4px 8px rgba(0, 0, 0, 0.3);
}
.games-apps-grid .feature:active,
.home-partnership-row .feature:active {
  transform: translateY(1px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 2px 8px rgba(0, 0, 0, 0.35);
}
[data-theme="light"] .games-apps-grid .feature,
[data-theme="light"] .home-partnership-row .feature {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 4px 14px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.08);
}
[data-theme="light"] .games-apps-grid .feature:hover,
[data-theme="light"] .home-partnership-row .feature:hover {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 8px 20px rgba(0, 0, 0, 0.15), 0 4px 8px rgba(0, 0, 0, 0.1);
}
[data-theme="light"] .games-apps-grid .feature:active,
[data-theme="light"] .home-partnership-row .feature:active {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 2px 8px rgba(0, 0, 0, 0.1);
}
.home-partnership-row .feature {
  min-height: 56px;
  text-align: left;
  color: var(--text);
  text-decoration: none;
  border: none;
  background: transparent;
  cursor: pointer;
  font: inherit;
  width: 100%;
}
.home-partnership-row .feature:focus {
  outline: none;
}
.games-apps-grid .tournament-day-block--home {
  position: relative;
  top: -14px;
  background: rgba(0, 0, 0, 0.25) !important;
  border: 1px solid rgba(251, 146, 60, 0.5);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(251, 146, 60, 0.2) !important;
  transition: background 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.games-apps-grid .tournament-day-block--home:hover {
  background: rgba(0, 0, 0, 0.3) !important;
  border-color: rgba(251, 146, 60, 0.65);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(0, 0, 0, 0.25), 0 0 12px rgba(251, 146, 60, 0.25) !important;
  transform: none;
}
.games-apps-grid .tournament-day-block--home:active {
  box-shadow: inset 0 3px 8px rgba(0, 0, 0, 0.5) !important;
  transform: none;
}
[data-theme="light"] .games-apps-grid .tournament-day-block--home {
  background: rgba(0, 0, 0, 0.06) !important;
  border-color: rgba(249, 115, 22, 0.5);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(0, 0, 0, 0.05), 0 0 0 1px rgba(249, 115, 22, 0.15) !important;
}
[data-theme="light"] .games-apps-grid .tournament-day-block--home:hover {
  background: rgba(0, 0, 0, 0.08) !important;
  border-color: rgba(249, 115, 22, 0.65);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.1), 0 0 12px rgba(249, 115, 22, 0.2) !important;
}
.games-apps-grid .feature__icon--games,
.games-apps-grid .feature__icon.feature__icon--games,
.home-partnership-row .feature__icon--games,
.home-partnership-row .feature__icon.feature__icon--games {
  flex-shrink: 0;
  width: 40px;
  min-height: 0;
  align-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none !important;
  box-shadow: none !important;
  border-radius: 0;
  margin: 0;
}
.games-apps-grid .feature__icon-emoji,
.home-partnership-row .feature__icon-emoji {
  font-size: 20px;
  line-height: 1;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.2));
}
.games-apps-grid .feature__body,
.home-partnership-row .feature__body {
  flex: 1;
  min-width: 0;
  padding: 4px 0 4px 8px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.games-apps-grid .feature__title,
.home-partnership-row .feature__title {
  font-size: 11px;
  font-weight: 600;
}
/* Главная: «Научиться играть» — правая ячейка первого ряда (рядом с Эквилятором), чуть крупнее соседней плитки */
.games-apps-grid .games-apps-grid__promo-learn {
  min-height: 0;
  align-self: stretch;
  padding-right: 8px;
}
.games-apps-grid .games-apps-grid__promo-learn .feature__icon--games {
  width: 44px;
}
.games-apps-grid .games-apps-grid__promo-learn .feature__icon-emoji {
  font-size: 24px;
}
.games-apps-grid .games-apps-grid__promo-learn .feature__body {
  padding: 6px 0 6px 8px;
}
.games-apps-grid .games-apps-grid__promo-learn .feature__title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  white-space: nowrap;
}
.games-apps-grid .games-apps-grid__promo-learn .feature__desc {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  margin-top: 3px;
  line-height: 1.25;
  white-space: nowrap;
}
.home-partnership-row .feature__desc {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 2px;
}
.feature--app {
  cursor: pointer;
}

.home-poker-shows {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}
.home-poker-shows__title {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}
.home-poker-shows__tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}
.home-poker-shows__tab {
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--block-bg);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.home-poker-shows__tab:hover {
  color: var(--text);
  border-color: rgba(148, 163, 184, 0.5);
}
.home-poker-shows__tab--active {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(168, 85, 247, 0.1);
}
.home-poker-shows__player-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  border-radius: 12px;
  overflow: hidden;
  background: #0f172a;
}
.home-poker-shows__iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.randomizer-desc {
  margin: 0 0 20px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.45;
}
.randomizer-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 320px;
  margin-bottom: 20px;
}
.randomizer-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.randomizer-label__text {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.randomizer-input {
  padding: 10px 12px;
  font-size: 16px;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  background: var(--block-bg);
  color: var(--text);
}
.randomizer-btn {
  align-self: flex-start;
}
.randomizer-result {
  font-size: 16px;
  font-weight: 600;
  padding: 12px 0;
  min-height: 24px;
}
.randomizer-result--ok {
  color: var(--accent-2);
}
.randomizer-result--error {
  color: var(--accent);
}

/* Научиться играть — только кнопка SPR, по нажатию открывается задача */
.view[data-view="poker-tasks"] {
  position: relative;
  min-height: 200px;
}
.view[data-view="poker-tasks"].poker-tasks--task-visible {
  min-height: 85vh;
}

/* Научиться играть — хаб */
.learn-play-hub__desc {
  margin: 8px 0 20px;
  font-size: 14px;
  color: var(--text-muted);
}
.learn-play-hub__buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.learn-play-hub__btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 16px;
  text-align: left;
  border-radius: 14px;
  background: var(--block-bg);
  border: 1px solid var(--border-subtle);
  transition: border-color 0.2s, background 0.2s;
}
.learn-play-hub__btn:hover {
  border-color: var(--accent);
  background: rgba(251, 146, 60, 0.08);
}
.learn-play-hub__btn--video-lessons.learn-play-hub__btn {
  padding: 22px 20px;
  border-radius: 18px;
  border-width: 2px;
  gap: 16px;
}
.learn-play-hub__btn--video-lessons .feature__icon-emoji {
  font-size: clamp(32px, 8vw, 40px);
  line-height: 1;
}
.learn-play-hub__btn--video-lessons .feature__title {
  font-size: clamp(1.1rem, 4.2vw, 1.35rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.learn-play-hub__btn--video-lessons .feature__desc {
  font-size: clamp(14px, 3.8vw, 16px);
  margin-top: 8px;
  line-height: 1.45;
  color: var(--text-muted);
}
.learn-play-hub__training-btn {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  color: #111827;
  background: linear-gradient(135deg, #fb923c, #f97316);
  border: none;
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.4);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.learn-play-hub__training-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(249, 115, 22, 0.5);
}

/* Видео-уроки */
.video-lessons__top-bar {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 10px;
  margin: 0 0 14px;
  width: 100%;
  box-sizing: border-box;
}
.video-lessons__top-bar .bonus-game-back {
  margin-bottom: 0;
  align-self: center;
  flex-shrink: 0;
}
.video-lessons__top-bar .video-lessons__share-row-wrap {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}
.video-lessons__top-bar .video-lessons__share-row {
  justify-content: flex-end;
  flex-wrap: nowrap;
  width: auto;
  max-width: 100%;
}
.video-lessons__top-bar .raffles-hero__share-btn--primary {
  padding-left: 12px;
  padding-right: 12px;
  font-size: 12px;
  letter-spacing: 0.02em;
}
@media (min-width: 360px) {
  .video-lessons__top-bar .raffles-hero__share-btn--primary {
    padding-left: 18px;
    padding-right: 18px;
    font-size: 13px;
    letter-spacing: 0.04em;
  }
}
.video-lessons__hero {
  margin: 4px 0 16px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: var(--block-bg);
}
.video-lessons__hero-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 280px;
  object-fit: cover;
  object-position: center 25%;
}
.video-lessons__hero-title {
  margin: 0;
  padding: 14px 16px 16px;
  font-size: clamp(16px, 4.2vw, 20px);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.02em;
  text-align: center;
  border-top: 1px solid var(--border-subtle);
}
.video-lessons__hero-coach-cluster {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 0.12em;
  vertical-align: baseline;
}
.video-lessons__hero-coach-surname {
  white-space: nowrap;
}
.video-lessons__hero-coach-actions {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  flex: 0 1 auto;
  max-width: 100%;
  vertical-align: middle;
}
/* «?» — те же классы, что у «Отправить другу», компактный квадрат под строку заголовка */
.video-lessons__hero-title .video-lessons__hero-coach-hint.raffles-hero__share-btn {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  min-width: 34px;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1;
  border-radius: 12px;
  vertical-align: middle;
  -webkit-tap-highlight-color: transparent;
}
@media (max-width: 359px) {
  .video-lessons__hero-title .video-lessons__hero-coach-hint.raffles-hero__share-btn {
    width: 32px;
    height: 32px;
    min-width: 32px;
    font-size: 12px;
    letter-spacing: 0.02em;
  }
}
.video-lessons__hero-title .video-lessons__hero-coach-hint.raffles-hero__share-btn:focus-visible {
  outline: 2px solid rgba(251, 191, 36, 0.9);
  outline-offset: 2px;
}
.video-lessons__hero-title .video-lessons__hero-review-btn.raffles-hero__share-btn {
  flex: 0 1 auto;
  margin: 0;
  padding: 0 10px;
  height: 34px;
  min-height: 34px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.15;
  border-radius: 12px;
  white-space: nowrap;
  max-width: 100%;
  -webkit-tap-highlight-color: transparent;
}
@media (max-width: 359px) {
  .video-lessons__hero-title .video-lessons__hero-review-btn.raffles-hero__share-btn {
    height: 32px;
    min-height: 32px;
    padding: 0 8px;
    font-size: 10px;
  }
}
.video-lessons__hero-title .video-lessons__hero-review-btn.raffles-hero__share-btn:focus-visible {
  outline: 2px solid rgba(251, 191, 36, 0.9);
  outline-offset: 2px;
}
.video-lessons__reviews-modal.video-lessons__coach-modal {
  z-index: 1001;
}
.video-lessons__reviews-modal-body {
  margin-top: 2px;
}
.video-lessons__reviews-modal-lead {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--text-muted);
}
.video-lessons__reviews-share-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 0 16px;
}
.video-lessons__reviews-share-stack .raffles-hero__share-btn--primary,
.video-lessons__reviews-copy-link-btn {
  width: 100%;
  max-width: 100%;
  min-height: 44px;
  box-sizing: border-box;
  justify-content: center;
}
.video-lessons__reviews-copy-link-btn {
  font-weight: 600;
}
.video-lessons__reviews-copy-hint {
  margin: 0;
  min-height: 1.35em;
  font-size: 12px;
  line-height: 1.4;
  color: var(--text-muted);
  word-break: break-all;
}
.video-lessons__review-form {
  margin: 0 0 10px;
}
.video-lessons__review-label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}
.video-lessons__review-textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  min-height: 96px;
  margin: 0 0 12px;
  padding: 10px 12px;
  box-sizing: border-box;
  font-size: 15px;
  line-height: 1.45;
  font-family: inherit;
  color: var(--text);
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  resize: vertical;
}
.video-lessons__review-textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.85;
}
.video-lessons__review-textarea:focus {
  outline: none;
  border-color: rgba(251, 191, 36, 0.55);
  box-shadow: 0 0 0 2px rgba(251, 191, 36, 0.2);
}
.video-lessons__review-submit.raffles-hero__share-btn {
  width: 100%;
  max-width: 100%;
  min-height: 44px;
  margin: 0;
  justify-content: center;
  box-sizing: border-box;
}
.video-lessons__review-submit.raffles-hero__share-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}
.video-lessons__review-form-status {
  margin: 8px 0 0;
  min-height: 1.35em;
  font-size: 13px;
  line-height: 1.4;
  color: var(--text-muted);
}
.video-lessons__reviews-feed-title {
  margin: 18px 0 10px;
  font-size: 1rem;
}
.video-lessons__reviews-feed {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.video-lessons__reviews-feed-loading,
.video-lessons__reviews-feed-empty {
  margin: 0;
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--text-muted);
  background: var(--bg-elevated);
  border-radius: 12px;
  border: 1px dashed var(--border-subtle);
}
.video-lessons__reviews-feed-item {
  margin: 0;
  padding: 12px 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
}
.video-lessons__reviews-feed-item-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin-bottom: 8px;
}
.video-lessons__reviews-feed-delete {
  margin-left: auto;
  flex-shrink: 0;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  color: #f87171;
  background: rgba(248, 113, 113, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.35);
  border-radius: 8px;
  cursor: pointer;
}
.video-lessons__reviews-feed-delete:hover:not(:disabled) {
  background: rgba(248, 113, 113, 0.2);
}
.video-lessons__reviews-feed-delete:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
[data-theme="light"] .video-lessons__reviews-feed-delete {
  color: #b91c1c;
  background: rgba(185, 28, 28, 0.08);
  border-color: rgba(185, 28, 28, 0.3);
}
.video-lessons__reviews-feed-author {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}
.video-lessons__reviews-feed-time {
  font-size: 12px;
  color: var(--text-muted);
}
.video-lessons__reviews-feed-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
  white-space: pre-wrap;
  word-break: break-word;
}
.video-lessons__coach-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
}
.video-lessons__coach-modal[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
  overscroll-behavior: contain;
}
.video-lessons__coach-modal[aria-hidden="false"] .video-lessons__coach-modal-backdrop {
  touch-action: none;
}
.video-lessons__coach-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  cursor: pointer;
}
.video-lessons__coach-modal-box {
  position: relative;
  width: 100%;
  max-width: 460px;
  max-height: 85vh;
  overflow: auto;
  background: var(--card-bg);
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  padding: 20px 18px 18px;
  border: 1px solid var(--border-subtle);
}
.video-lessons__coach-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  border-radius: 8px;
}
.video-lessons__coach-modal-close:hover,
.video-lessons__coach-modal-close:focus-visible {
  color: var(--text);
  background: var(--bg-elevated);
  outline: none;
}
.video-lessons__coach-modal-title {
  margin: 0 36px 10px 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}
.video-lessons__coach-modal-body {
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
}
.video-lessons__coach-modal-body > .video-lessons__coach-modal-lead {
  margin: 0 0 16px;
}
.video-lessons__coach-modal-subtitle {
  margin: 0 0 10px;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}
/* Заголовок вкладки «Остальные отзывы» */
.video-lessons__coach-more-reviews-title {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}
.video-lessons__coach-more-reviews-hint {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-muted);
}
/* Скриншоты отзывов: 4 столбца × 3 ряда */
.video-lessons__coach-reviews-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: auto;
  gap: 8px;
  margin: 0;
  min-width: 0;
}
.video-lessons__coach-reviews-grid img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  vertical-align: top;
  cursor: pointer;
  -webkit-tap-highlight-color: rgba(251, 191, 36, 0.28);
}
@media (max-width: 360px) {
  .video-lessons__coach-reviews-grid {
    gap: 6px;
  }
}
/* Вкладки учеников — визуал как у зала славы (.hall-of-fame__subtabs) */
.video-lessons__coach-students-toolbar {
  margin: 0 0 14px;
  min-width: 0;
}
.video-lessons__coach-students-subtabs {
  display: flex;
  align-items: stretch;
  flex-wrap: nowrap;
  gap: 0;
  padding: 0;
  overflow: hidden;
  box-sizing: border-box;
  min-height: 40px;
  background: var(--block-bg-solid, var(--block-bg));
  border: 1px solid rgba(249, 115, 22, 0.7);
  border-radius: 20px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.video-lessons__coach-student-tab {
  flex: 1;
  min-width: 0;
  margin: 0;
  padding: 8px 10px;
  box-sizing: border-box;
  border: none;
  border-radius: 0;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
  color: var(--text-muted);
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.15s, background 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-right: 1px solid rgba(249, 115, 22, 0.28);
}
.video-lessons__coach-student-tab:last-child {
  border-right: none;
}
/* 3–4 вкладки в узкой модалке — плотнее типографика */
.video-lessons__coach-students-subtabs:has(.video-lessons__coach-student-tab:nth-child(3)) .video-lessons__coach-student-tab {
  font-size: 10px;
  padding: 7px 5px;
  letter-spacing: 0.01em;
  line-height: 1.15;
}
.video-lessons__coach-students-subtabs:has(.video-lessons__coach-student-tab:nth-child(4)) .video-lessons__coach-student-tab {
  font-size: 9px;
  padding: 6px 3px;
  letter-spacing: 0;
  line-height: 1.12;
}
.video-lessons__coach-students-subtabs:has(.video-lessons__coach-student-tab:nth-child(5)) .video-lessons__coach-student-tab {
  font-size: 8px;
  padding: 6px 2px;
  letter-spacing: 0;
  line-height: 1.1;
}
.video-lessons__coach-student-tab:hover {
  color: var(--text);
  background: rgba(249, 115, 22, 0.08);
}
.video-lessons__coach-student-tab--active {
  color: var(--text);
  background: rgba(249, 115, 22, 0.2);
}
[data-theme="dark"] .video-lessons__coach-students-subtabs {
  border-color: rgba(251, 146, 60, 0.65);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}
[data-theme="dark"] .video-lessons__coach-student-tab {
  color: rgba(226, 232, 240, 0.72);
  border-right-color: rgba(251, 146, 60, 0.28);
}
[data-theme="dark"] .video-lessons__coach-student-tab:hover {
  color: #f1f5f9;
  background: rgba(249, 115, 22, 0.12);
}
[data-theme="dark"] .video-lessons__coach-student-tab--active {
  color: #fff7ed;
  background: rgba(249, 115, 22, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
[data-theme="light"] .video-lessons__coach-students-subtabs {
  border-color: rgba(234, 88, 12, 0.65);
}
[data-theme="light"] .video-lessons__coach-student-tab {
  color: #64748b;
  border-right-color: rgba(234, 88, 12, 0.28);
}
[data-theme="light"] .video-lessons__coach-student-tab:hover {
  color: #0f172a;
  background: rgba(251, 146, 60, 0.12);
}
[data-theme="light"] .video-lessons__coach-student-tab--active {
  color: #9a3412;
  background: rgba(251, 146, 60, 0.26);
}
.video-lessons__coach-student-panels {
  min-width: 0;
}
.video-lessons__coach-student-panel {
  display: none;
}
.video-lessons__coach-student-panel--active {
  display: block;
}
.video-lessons__coach-student-gallery {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0 0 14px;
}
/* Две фотографии — в один ряд, два столбца */
.video-lessons__coach-student-gallery:has(img:nth-child(2)) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}
.video-lessons__coach-student-gallery img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  vertical-align: top;
  cursor: pointer;
  -webkit-tap-highlight-color: rgba(251, 191, 36, 0.28);
}
.video-lessons__coach-student-text p {
  margin: 0 0 0.75em;
}
.video-lessons__coach-student-text p:last-child {
  margin-bottom: 0;
}
.video-lessons__coach-student-lead {
  margin: 0 0 10px;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
}
.video-lessons__coach-student-lead strong {
  font-weight: 800;
  letter-spacing: 0.02em;
}
.video-lessons__coach-student-quote {
  margin: 14px 0 0;
  padding: 12px 12px 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--vl-free-border, rgba(249, 115, 22, 0.45));
  background: var(--vl-free-bg-soft, rgba(249, 115, 22, 0.09));
}
.video-lessons__coach-student-quote-label {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--vl-free-open, #fb923c);
}
.video-lessons__coach-student-quote p:not(.video-lessons__coach-student-quote-label) {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
}
[data-theme="light"] .video-lessons__coach-student-quote {
  border-color: rgba(234, 88, 12, 0.4);
  background: rgba(251, 146, 60, 0.1);
}
[data-theme="light"] .video-lessons__coach-student-quote-label {
  color: var(--vl-free-open, #ea580c);
}
/* Видеоуроки: обводки и акценты в чёрно-оранжевом стиле приложения */
.view[data-view="video-lessons"] {
  --vl-free-border: rgba(249, 115, 22, 0.5);
  --vl-free-bg-soft: rgba(249, 115, 22, 0.11);
  --vl-free-open: #fb923c;
  --vl-free-num-fg: #fdba74;
  --vl-free-num-bg: rgba(249, 115, 22, 0.24);
}
[data-theme="light"] .view[data-view="video-lessons"] {
  --vl-free-border: rgba(234, 88, 12, 0.42);
  --vl-free-bg-soft: rgba(251, 146, 60, 0.12);
  --vl-free-open: #ea580c;
  --vl-free-num-fg: #c2410c;
  --vl-free-num-bg: rgba(251, 146, 60, 0.2);
}
.video-lessons__intro {
  margin: 8px 0 20px;
  font-size: 14px;
  color: var(--text-muted);
}
.video-lessons__guest-gate {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin: 0 0 16px;
  padding: 16px 14px;
  text-align: center;
  border: 1px solid var(--vl-free-border);
  border-radius: 12px;
  background: var(--vl-free-bg-soft);
  box-sizing: border-box;
}
.video-lessons__guest-gate--hidden {
  display: none !important;
}
.video-lessons__guest-gate-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--text);
  max-width: 320px;
}
.video-lessons__guest-gate .profile-exit-btn {
  margin-left: 0;
  flex-shrink: 0;
}
.video-lessons--guest-lock .video-lessons__video,
.video-lessons--guest-lock .video-lessons__iframe {
  display: none !important;
}
.video-lessons--guest-lock .video-lessons__open-external,
.video-lessons--guest-lock .video-lessons__attachment,
.video-lessons--guest-lock .video-lessons__training-link {
  display: none !important;
}
.video-lessons__free-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  margin: 0;
  padding: 12px 14px;
  text-align: center;
  border: none;
  border-radius: 0;
  border-bottom: 1px solid var(--vl-free-border);
  background: var(--vl-free-bg-soft);
}
.video-lessons__list > .video-lessons__free-cta {
  flex-shrink: 0;
  border: 1px solid var(--vl-free-border);
  border-radius: 12px;
  border-bottom: 1px solid var(--vl-free-border);
}
.video-lessons__free-cta-text {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--vl-free-num-fg);
}
.video-lessons__free-cta-arrow {
  font-size: 22px;
  line-height: 1;
  color: var(--vl-free-open);
  animation: video-lessons-free-bounce 1.4s ease-in-out infinite;
}
@keyframes video-lessons-free-bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(5px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .video-lessons__free-cta-arrow {
    animation: none;
  }
}
/* Платный МТТ + запись на тренировку — общая обводка: .video-lessons__paid-wrap */
.video-lessons__paid-wrap {
  margin-top: 18px;
  padding: 14px 12px 16px;
  border: 1px solid rgba(24, 22, 20, 0.75);
  border-radius: 14px;
  background: var(--block-bg);
  box-shadow:
    0 0 0 1px rgba(249, 115, 22, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  box-sizing: border-box;
}
[data-theme="light"] .video-lessons__paid-wrap {
  border-color: rgba(41, 37, 36, 0.22);
  box-shadow: 0 0 0 1px rgba(234, 88, 12, 0.35);
}
.video-lessons__mtt-paid {
  margin-top: 0;
  padding: 0;
  border-top: none;
}
.video-lessons__mtt-spoiler.video-lessons__mtt-paid {
  padding: 0 2px 4px;
  margin-top: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.video-lessons__mtt-summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 14px;
  margin: 0;
  list-style: none;
  cursor: pointer;
  border-radius: 14px;
  border: 1px solid rgba(249, 115, 22, 0.55);
  background: linear-gradient(145deg, rgba(35, 32, 30, 0.98), rgba(20, 18, 17, 0.99));
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  transition: border-color 0.2s, box-shadow 0.2s, filter 0.2s;
  box-shadow:
    0 2px 14px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(249, 115, 22, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
[data-theme="light"] .video-lessons__mtt-summary {
  border-color: rgba(234, 88, 12, 0.45);
  background: linear-gradient(145deg, #fff7ed 0%, #ffedd5 55%, #fed7aa 100%);
  box-shadow:
    0 2px 12px rgba(234, 88, 12, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
.video-lessons__mtt-summary::-webkit-details-marker,
.video-lessons__mtt-summary::marker {
  display: none;
  content: "";
}
.video-lessons__mtt-summary:hover {
  border-color: rgba(251, 146, 60, 0.85);
  filter: brightness(1.05);
  box-shadow:
    0 4px 18px rgba(249, 115, 22, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.video-lessons__mtt-spoiler[open] > .video-lessons__mtt-summary {
  margin-bottom: 16px;
  border-color: rgba(251, 146, 60, 0.75);
  box-shadow:
    0 2px 16px rgba(249, 115, 22, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.video-lessons__mtt-spoiler-chevron {
  flex-shrink: 0;
  font-size: 12px;
  line-height: 1;
  color: #fb923c;
  filter: drop-shadow(0 0 8px rgba(249, 115, 22, 0.45));
  transition: transform 0.25s ease;
}
[data-theme="light"] .video-lessons__mtt-spoiler-chevron {
  color: #ea580c;
  filter: none;
}
.video-lessons__mtt-spoiler[open] .video-lessons__mtt-spoiler-chevron {
  transform: rotate(-180deg);
}
.video-lessons__mtt-spoiler-inner {
  padding: 0 2px 4px;
}
.video-lessons__mtt-title {
  margin: 0 0 14px;
  font-size: clamp(17px, 4.5vw, 20px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  text-align: center;
  color: var(--text);
}
.video-lessons__mtt-summary .video-lessons__mtt-title {
  margin: 0;
  flex: 1;
  min-width: 0;
  text-align: center;
  color: #ffedd5;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55), 0 0 18px rgba(249, 115, 22, 0.25);
}
[data-theme="light"] .video-lessons__mtt-summary .video-lessons__mtt-title {
  color: #9a3412;
  text-shadow: none;
}
.video-lessons__mtt-subtitle {
  margin: 18px 0 10px;
  font-size: 15px;
  font-weight: 800;
  color: #fb923c;
  letter-spacing: 0.02em;
}
[data-theme="light"] .video-lessons__mtt-subtitle {
  color: #c2410c;
}
.video-lessons__mtt-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 4px;
}
.video-lessons__mtt-thumb {
  display: block;
  width: 100%;
  max-height: 118px;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(249, 115, 22, 0.4);
  box-sizing: border-box;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  -webkit-tap-highlight-color: rgba(251, 191, 36, 0.25);
}
[data-theme="light"] .video-lessons__mtt-thumb {
  background: rgba(255, 247, 237, 0.95);
  border-color: rgba(234, 88, 12, 0.32);
}
.video-lessons__mtt-desc {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-muted);
}
.video-lessons__mtt-desc p {
  margin: 0 0 12px;
}
.video-lessons__mtt-desc strong {
  color: var(--text);
}
.video-lessons__mtt-ol {
  margin: 0 0 12px;
  padding-left: 1.25rem;
}
.video-lessons__mtt-ol > li {
  margin-bottom: 10px;
}
.video-lessons__mtt-ul {
  margin: 8px 0 0;
  padding-left: 1.1rem;
  list-style: disc;
}
.video-lessons__mtt-ul li {
  margin-bottom: 6px;
}
.video-lessons__mtt-paid .learn-play-hub__training-btn.video-lessons__mtt-cta {
  display: block;
  width: 100%;
  margin-top: 18px;
}
.video-lessons__footer-cta {
  margin-top: 0;
  padding-top: 14px;
  margin-bottom: 0;
  border-top: 1px solid rgba(249, 115, 22, 0.28);
  box-sizing: border-box;
}
[data-theme="light"] .video-lessons__footer-cta {
  border-top-color: rgba(234, 88, 12, 0.22);
}
.video-lessons__footer-cta .learn-play-hub__training-btn {
  display: block;
  width: 100%;
  margin: 0;
}
.video-lessons__group-head {
  flex-shrink: 0;
  margin: 8px 0 4px;
  padding: 10px 8px;
  text-align: center;
  border-radius: 12px;
  background: var(--vl-free-bg-soft);
  border: 1px dashed rgba(249, 115, 22, 0.45);
  box-sizing: border-box;
}
.video-lessons__group-head-text {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: 0.02em;
  color: var(--vl-free-num-fg);
}
[data-theme="light"] .video-lessons__group-head {
  background: var(--vl-free-bg-soft);
  border-color: rgba(234, 88, 12, 0.38);
}
[data-theme="light"] .video-lessons__group-head-text {
  color: var(--vl-free-num-fg);
}
.video-lessons__card.video-lessons__card--bonus {
  border-color: var(--vl-free-border);
  box-shadow: none;
}
.video-lessons__card.video-lessons__card--bonus:hover {
  border-color: var(--vl-free-open);
  box-shadow: 0 0 0 1px rgba(249, 115, 22, 0.12);
}
.video-lessons__card.video-lessons__card--bonus.video-lessons__card--open {
  border-color: var(--vl-free-open);
  box-shadow: 0 0 0 1px rgba(249, 115, 22, 0.18);
}
.video-lessons__num--bonus {
  min-width: 34px;
  font-size: 11px;
  letter-spacing: 0;
  color: var(--vl-free-num-fg);
  background: var(--vl-free-num-bg);
}
[data-theme="light"] .video-lessons__num--bonus {
  color: var(--vl-free-num-fg);
  background: var(--vl-free-num-bg);
}
/* Скролл страницы — html.app-view-long-scroll + body; не задаём max-height на список: иначе flex сжимает карточки (flex-shrink: 1) и «ломает» кнопки */
.video-lessons__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
  overflow-anchor: none;
  padding: 10px 10px 12px;
  border: 1px solid var(--vl-free-border);
  border-radius: 14px;
  overflow: hidden;
  background: var(--block-bg);
}
.video-lessons__list > .video-lessons__group-head {
  margin: 0;
}
.video-lessons__card {
  flex-shrink: 0;
  border: 1px solid var(--vl-free-border);
  border-radius: 14px;
  overflow: hidden;
  background: var(--block-bg);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
/* Без привязки скролла к соседним блокам — меньше «дёрганья» при раскрытии урока */
.video-lessons__list {
  overflow-anchor: none;
}
.video-lessons__list > .video-lessons__card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  border: 1px solid var(--vl-free-border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--block-bg);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.14);
  overflow-anchor: none;
  /* Мгновенное переключение open/hover — иначе 0.2s анимация теней совпадает с scrollBy и визуально «трясёт» */
  transition: none;
}
.video-lessons__card:hover {
  border-color: var(--vl-free-open);
  box-shadow: 0 0 0 1px rgba(249, 115, 22, 0.15);
}
.video-lessons__list > .video-lessons__card:hover {
  border-color: var(--vl-free-open);
  box-shadow: 0 2px 14px rgba(249, 115, 22, 0.18);
  background: rgba(249, 115, 22, 0.05);
}
.video-lessons__card.video-lessons__card--open {
  border-color: var(--vl-free-open);
  box-shadow: 0 0 0 1px rgba(249, 115, 22, 0.22);
}
.video-lessons__list > .video-lessons__card.video-lessons__card--open {
  border-color: var(--vl-free-open);
  box-shadow: 0 0 0 1px rgba(249, 115, 22, 0.28), 0 4px 16px rgba(249, 115, 22, 0.12);
  background: rgba(249, 115, 22, 0.06);
}
.video-lessons__list > .video-lessons__card.video-lessons__card--bonus {
  border-color: var(--vl-free-border);
}
.video-lessons__list > .video-lessons__card.video-lessons__card--bonus:hover {
  border-color: var(--vl-free-open);
  box-shadow: 0 2px 14px rgba(249, 115, 22, 0.16);
}
.video-lessons__list > .video-lessons__card.video-lessons__card--bonus.video-lessons__card--open {
  border-color: var(--vl-free-open);
  box-shadow: 0 0 0 1px rgba(249, 115, 22, 0.25), 0 4px 16px rgba(249, 115, 22, 0.1);
}
.video-lessons__list > .video-lessons__card.video-lessons__card--bonus {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}
/* Заголовок урока — отдельная полоса «спойлера»; под ним только после раскрытия */
.video-lessons__list > .video-lessons__card > .video-lessons__item {
  background: var(--vl-free-bg-soft);
  border-bottom: 1px solid transparent;
}
.video-lessons__list > .video-lessons__card.video-lessons__card--open > .video-lessons__item {
  border-bottom-color: rgba(249, 115, 22, 0.35);
}
[data-theme="light"] .video-lessons__list > .video-lessons__card > .video-lessons__item {
  background: rgba(251, 146, 60, 0.14);
}
.video-lessons__desc {
  margin: 0 0 10px;
  padding: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-muted);
}
/* Описание внутри раскрытого блока (не в строке заголовка) */
.video-lessons__player-inner .video-lessons__desc {
  margin: 0 0 12px;
  padding: 0 4px;
}
.video-lessons__attachment {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 12px;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--vl-free-open);
  text-decoration: none;
  border: 1px solid var(--vl-free-border);
  border-radius: 10px;
  background: var(--vl-free-bg-soft);
  transition: background 0.2s, border-color 0.2s;
}
.video-lessons__attachment:hover {
  background: rgba(249, 115, 22, 0.16);
  border-color: var(--vl-free-open);
}
.video-lessons__attachment::before {
  content: "📎";
  font-size: 1em;
}
/* Кнопка «Записаться…» внутри раскрытого блока */
.video-lessons__player-inner .learn-play-hub__training-btn.video-lessons__training-link {
  display: block;
  margin: 14px 0 0;
  width: 100%;
  max-width: none;
  padding: 12px 14px;
  font-size: 14px;
  box-sizing: border-box;
}
.video-lessons__item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  flex-shrink: 0;
  padding: 14px 16px;
  text-align: left;
  font-size: 15px;
  color: var(--text);
  background: transparent;
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: background 0.2s;
}
.video-lessons__item:hover {
  background: rgba(249, 115, 22, 0.08);
}
.video-lessons__item[aria-expanded="true"] .video-lessons__chevron {
  transform: rotate(180deg);
}
.video-lessons__num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  color: var(--vl-free-num-fg, #67e8f9);
  background: var(--vl-free-num-bg, rgba(34, 211, 238, 0.18));
  border-radius: 8px;
}
.video-lessons__title {
  flex: 1;
  min-width: 0;
  font-size: clamp(15px, 4.1vw, 17px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.video-lessons__chevron {
  flex-shrink: 0;
  font-size: 12px;
  color: rgba(251, 146, 60, 0.85);
  transition: transform 0.25s ease;
}
[data-theme="light"] .video-lessons__chevron {
  color: rgba(234, 88, 12, 0.7);
}
.video-lessons__card--bonus .video-lessons__chevron {
  color: rgba(251, 146, 60, 0.8);
}
[data-theme="light"] .video-lessons__card--bonus .video-lessons__chevron {
  color: rgba(194, 65, 12, 0.65);
}
/* Закрытый урок: контент полностью убран из вёрстки (display:none) — в части WebView grid 0fr «протекал», текст с ✅ оказывался виден под заголовком */
.video-lessons__player-wrap {
  overflow: hidden;
  min-height: 0;
}
.video-lessons__player-wrap.video-lessons__player-wrap--hidden .video-lessons__player-inner {
  display: none;
}
.video-lessons__player-inner {
  min-height: 0;
  padding: 12px 12px 14px;
  display: block;
  overflow: visible;
  contain: layout;
}
.video-lessons__video-error {
  margin: 0 0 10px;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.45;
  color: #fecaca;
  background: rgba(127, 29, 29, 0.4);
  border: 1px solid rgba(248, 113, 113, 0.35);
  border-radius: 10px;
}
.video-lessons__video-error[hidden] {
  display: none !important;
}
[data-theme="light"] .video-lessons__video-error {
  color: #7f1d1d;
  background: rgba(254, 226, 226, 0.95);
  border-color: rgba(185, 28, 28, 0.25);
}
.video-lessons__video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: min(68vh, 520px);
  height: auto;
  border: none;
  border-radius: 10px;
  background: #000;
  object-fit: contain;
  vertical-align: top;
}
.video-lessons__iframe {
  display: block;
  width: 100%;
  height: 220px;
  border: none;
  border-radius: 10px;
  background: #000;
}
.video-lessons__open-external {
  display: inline-block;
  margin-top: 8px;
  font-size: 13px;
  color: var(--accent);
  text-decoration: none;
}
.video-lessons__open-external:hover {
  text-decoration: underline;
}
.video-lessons__no-video {
  margin: 0;
  padding: 20px;
  font-size: 14px;
  color: var(--text-muted);
  text-align: center;
}

.poker-tasks__start {
  padding-bottom: 20px;
}
.poker-tasks__spr-btn {
  display: block;
  width: 100%;
  max-width: 200px;
  margin: 16px 0 0;
  padding: 14px 24px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 12px;
  border: none;
  background: var(--block-bg);
  color: var(--text);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.poker-tasks__spr-btn:hover {
  background: rgba(148, 163, 184, 0.2);
  border-color: rgba(148, 163, 184, 0.5);
}

/* Стартовый экран — выбор режима */
.poker-tasks__desc {
  margin: 12px 0 16px;
  color: var(--text-secondary);
  font-size: 14px;
}
.poker-tasks__mtt-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin: 16px 0;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--block-bg);
  border: 1px solid var(--border-subtle);
}
.poker-tasks__mtt-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.poker-tasks__mtt-stat-label {
  font-size: 12px;
  color: var(--text-secondary);
}
.poker-tasks__start-btn {
  display: block;
  width: 100%;
  max-width: 240px;
  margin: 8px 0 0;
  padding: 14px 24px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 12px;
  border: none;
  background: var(--accent);
  color: var(--btn-on-accent);
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.poker-tasks__start-btn:hover {
  background: #fb923c;
  transform: translateY(-1px);
}
.poker-tasks__leaderboard {
  margin-top: 20px;
  padding: 12px;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
}
.poker-tasks__leaderboard-title {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}
.poker-tasks__leaderboard-table-wrap {
  overflow-x: auto;
}
.poker-tasks__leaderboard-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.poker-tasks__leaderboard-table th,
.poker-tasks__leaderboard-table td {
  padding: 6px 8px;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
}
.poker-tasks__leaderboard-table th {
  font-weight: 600;
  color: var(--text-muted);
}
.poker-tasks__leaderboard-table td {
  color: var(--text);
}
.poker-tasks__leaderboard-table tbody tr:last-child td {
  border-bottom: none;
}
[data-theme="light"] .poker-tasks__leaderboard {
  background: rgba(255, 237, 213, 0.5);
  border-color: rgba(249, 115, 22, 0.3);
}
.poker-streak-header--mtt {
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}
.poker-streak-header--mtt .poker-streak-header__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}
.poker-streak-header__timer-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}
.poker-streak-header__speed-hint {
  font-size: 12px;
  color: var(--text-secondary);
}
.poker-streak-feedback__score {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #ffd700;
}
.poker-streak-feedback__score:empty {
  display: none;
}
.poker-tasks__start-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}
.poker-tasks__mode-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  background: var(--block-bg);
  color: var(--text);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
  text-align: left;
}
.poker-tasks__mode-btn:hover {
  background: rgba(148, 163, 184, 0.15);
  border-color: rgba(148, 163, 184, 0.4);
  transform: translateY(-1px);
}
.poker-tasks__mode-btn--streak {
  border-color: rgba(251, 146, 60, 0.4);
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.9), rgba(51, 65, 85, 0.8));
}
.poker-tasks__mode-btn--streak:hover {
  border-color: rgba(251, 146, 60, 0.6);
  background: linear-gradient(135deg, rgba(51, 65, 85, 0.95), rgba(71, 85, 105, 0.9));
}
.poker-tasks__mode-btn--spr {
  border-color: rgba(148, 163, 184, 0.3);
}
.poker-tasks__mode-btn--easy {
  border-color: rgba(34, 197, 94, 0.4);
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.9), rgba(22, 101, 52, 0.15));
}
.poker-tasks__mode-btn--easy:hover {
  border-color: rgba(34, 197, 94, 0.6);
  background: linear-gradient(135deg, rgba(51, 65, 85, 0.95), rgba(22, 101, 52, 0.25));
}
.poker-tasks__mode-btn--hard {
  border-color: rgba(239, 68, 68, 0.4);
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.9), rgba(127, 29, 29, 0.2));
}
.poker-tasks__mode-btn--hard:hover {
  border-color: rgba(239, 68, 68, 0.6);
  background: linear-gradient(135deg, rgba(51, 65, 85, 0.95), rgba(127, 29, 29, 0.3));
}
.poker-tasks__mode-icon {
  font-size: 24px;
  margin-bottom: 8px;
}
.poker-tasks__mode-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}
.poker-tasks__mode-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.35;
}

/* Poker Streak Challenge — игровой экран */
.poker-streak-screen {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 120% 80% at 50% 40%, rgba(88, 28, 135, 0.25) 0%, transparent 50%), radial-gradient(ellipse 100% 60% at 50% 50%, rgba(236, 72, 153, 0.08) 0%, transparent 60%), #0d0a12;
  display: flex;
  flex-direction: column;
  padding: 12px;
  padding-top: 48px;
  box-sizing: border-box;
  overflow-y: auto;
}
.poker-streak-screen--hidden {
  display: none;
}
.poker-streak-screen__back {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  margin: 0 !important;
  padding: 0 12px 0 10px;
  font-size: 18px;
  line-height: 1;
}
.poker-streak-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(30, 20, 45, 0.5);
}
.poker-streak-header__timer {
  font-size: 24px;
  font-weight: 700;
  color: #00b894;
  min-width: 36px;
}
.poker-streak-header__streak {
  font-size: 14px;
  color: #ffd700;
}
.poker-streak-header__score {
  font-size: 14px;
  font-weight: 600;
  color: #e9d5ff;
}
.poker-streak-progress {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}
.poker-streak-situation {
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 16px;
  color: var(--text);
}
.poker-streak-cards {
  margin-bottom: 16px;
}
.poker-streak-cards__player,
.poker-streak-cards__board {
  margin-bottom: 8px;
  font-size: 14px;
  color: var(--text-secondary);
}
.poker-streak-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 48px;
  padding: 0 6px;
  margin: 0 4px;
  border-radius: 6px;
  background: #fff;
  color: #1a1a2e;
  font-size: 16px;
  font-weight: 700;
  border: 1px solid rgba(0, 0, 0, 0.1);
}
.poker-streak-card--red {
  color: #c0392b;
}
.poker-streak-card__suit {
  font-size: 14px;
  margin-left: 2px;
}
.poker-streak-question {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
  color: #e9d5ff;
}
.poker-streak-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.poker-streak-options--disabled .poker-streak-option {
  pointer-events: none;
  opacity: 0.7;
}
.poker-streak-option {
  width: 100%;
  padding: 14px 16px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 10px;
  border: 2px solid rgba(192, 132, 252, 0.3);
  background: rgba(30, 20, 45, 0.6);
  color: #e9d5ff;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.poker-streak-option:hover {
  background: rgba(192, 132, 252, 0.2);
  border-color: rgba(192, 132, 252, 0.5);
}
.poker-streak-feedback {
  margin-top: 20px;
  padding: 16px;
  border-radius: 12px;
  background: rgba(30, 20, 45, 0.7);
  border: 1px solid rgba(192, 132, 252, 0.3);
}
.poker-streak-feedback--hidden {
  display: none;
}
.poker-streak-feedback__result {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
}
.poker-streak-feedback__result--correct {
  color: #00b894;
}
.poker-streak-feedback__result--wrong {
  color: #e74c3c;
}
.poker-streak-feedback__explanation {
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 16px;
  color: var(--text-secondary);
}
.poker-streak-feedback__next {
  width: 100%;
}

/* Экран итогов Poker Streak */
.poker-streak-result-screen {
  position: absolute;
  inset: 0;
  padding: 20px;
  padding-top: 56px;
  box-sizing: border-box;
  overflow-y: auto;
  background: #0d0a12;
}
.poker-streak-result-screen--hidden {
  display: none;
}
.poker-streak-result-stats {
  margin: 20px 0;
  padding: 20px;
  border-radius: 12px;
  background: var(--block-bg);
  border: 1px solid var(--border-subtle);
}
.poker-streak-result-stats p {
  margin: 8px 0;
  font-size: 16px;
}
.poker-streak-result-stats strong {
  color: var(--accent-2);
}

/* Экран задачи — стол в стиле скрина: овал с неоновой розово-фиолетовой обводкой */
.poker-task-screen {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 120% 80% at 50% 40%, rgba(88, 28, 135, 0.25) 0%, transparent 50%), radial-gradient(ellipse 100% 60% at 50% 50%, rgba(236, 72, 153, 0.08) 0%, transparent 60%), #0d0a12;
  display: flex;
  flex-direction: column;
  padding: 12px;
  box-sizing: border-box;
}
.poker-task-screen--hidden {
  display: none;
}
/* Позиция; вид — общий блок «Назад» (чёрный / оранжевая обводка) */
.poker-task-screen__back {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  margin: 0 !important;
}
.poker-task-screen__nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin: 8px 0 0;
  padding: 0 12px;
  padding-bottom: env(safe-area-inset-bottom, 12px);
  box-sizing: border-box;
}
.poker-task-screen__task-prev,
.poker-task-screen__task-next {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 8px;
  background: rgba(192, 132, 252, 0.15);
  color: #e9d5ff;
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
}
.poker-task-screen__task-prev:hover,
.poker-task-screen__task-next:hover {
  background: rgba(192, 132, 252, 0.28);
}
.poker-task-screen__share {
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  background: rgba(192, 132, 252, 0.2);
  color: #e9d5ff;
  cursor: pointer;
}
.poker-task-screen__share:hover {
  background: rgba(192, 132, 252, 0.35);
}
.poker-task-screen__table-wrap {
  flex: 0 0 auto;
  position: relative;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.poker-task-screen__table {
  position: relative;
  width: 100%;
  max-width: 340px;
  height: 0;
  padding-bottom: 58%;
  border: 2px solid rgba(236, 72, 153, 0.65);
  border-bottom: none;
  border-radius: 50% 50% 0 0;
  background: rgba(30, 20, 45, 0.4);
  box-sizing: content-box;
  box-shadow: 0 0 24px rgba(236, 72, 153, 0.35), 0 0 48px rgba(139, 92, 246, 0.2), inset 0 0 30px rgba(88, 28, 135, 0.15);
}
.poker-task-screen__table--task {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 340px;
  margin: 0;
}
.poker-task-screen__table--hidden {
  visibility: hidden;
  pointer-events: none;
}
.poker-task-screen__table--blue-chips .poker-task-screen__bet-chip {
  background: linear-gradient(145deg, #2563eb 0%, #1d4ed8 50%, #1e40af 100%);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 0 10px rgba(37, 99, 235, 0.35);
}
.poker-task-screen__seat {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(30, 20, 45, 0.9);
  border: 1px solid rgba(192, 132, 252, 0.35);
  font-size: 10px;
  font-weight: 600;
  color: #c4b5fd;
  line-height: 1.2;
  transform: translate(-50%, -50%);
}
.poker-task-screen__seat--hero {
  border: 2px solid rgba(236, 72, 153, 0.9);
  box-shadow: 0 0 0 2px rgba(236, 72, 153, 0.3), 0 0 16px rgba(236, 72, 153, 0.25);
  color: #fce7f3;
}
.poker-task-screen__seat--bb { top: 8%; left: 18%; }
.poker-task-screen__seat--utg { top: 4%; left: 50%; }
.poker-task-screen__seat--utg1 { top: 10%; right: 20%; left: auto; transform: translate(50%, -50%); }
.poker-task-screen__seat--lj { right: 8%; top: 35%; left: auto; transform: translate(50%, -50%); }
.poker-task-screen__seat--hj { right: 14%; bottom: 32%; top: auto; left: auto; transform: translate(50%, 50%); }
.poker-task-screen__seat--co { bottom: 6%; left: 50%; top: auto; transform: translate(-50%, 50%); }
.poker-task-screen__seat--btn { bottom: 8%; left: 18%; top: auto; transform: translate(-50%, 50%); }
.poker-task-screen__seat--sb { left: 10%; top: 42%; transform: translate(-50%, -50%); }
.poker-task-screen__pos { display: block; font-size: 9px; text-transform: uppercase; letter-spacing: 0.02em; }
.poker-task-screen__stack { display: block; font-size: 11px; }
/* Фишки перед игроком: круглые, ближе к центру стола */
.poker-task-screen__bet {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}
.poker-task-screen__seat--bb .poker-task-screen__bet { bottom: -18px; left: calc(50% + 14px); transform: translate(-50%, 0); }
.poker-task-screen__seat--sb .poker-task-screen__bet { bottom: -18px; left: calc(50% + 16px); transform: translate(-50%, 0); }
.poker-task-screen__seat--utg1 .poker-task-screen__bet { bottom: -18px; left: calc(50% - 14px); transform: translate(-50%, 0); }
.poker-task-screen__seat--hj .poker-task-screen__bet { bottom: -18px; left: calc(50% - 16px); transform: translate(-50%, 0); }
.poker-task-screen__bet-chip {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(145deg, #dc2626 0%, #b91c1c 50%, #991b1b 100%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 0 10px rgba(220, 38, 38, 0.3);
}
.poker-task-screen__bet-amount {
  font-size: 11px;
  font-weight: 700;
  color: #fce7f3;
  line-height: 1;
}
.poker-task-screen__dealer {
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  font-weight: 700;
  color: #0d0a12;
  background: rgba(255, 255, 255, 0.95);
  min-width: 16px;
  height: 16px;
  padding: 0 3px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.poker-task-screen__grid {
  position: absolute;
  top: 2px;
  right: 2px;
  font-size: 8px;
  color: var(--text-muted);
  opacity: 0.9;
}
.poker-task-screen__cards {
  position: absolute;
  right: -42px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: 3px;
}
.poker-task-screen__card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 32px;
  font-size: 13px;
  font-weight: 700;
  background: linear-gradient(145deg, #1e3a5f, #1e40af);
  color: #fff;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.25);
}
.poker-task-screen__card--red {
  background: linear-gradient(145deg, #b91c1c, #991b1b);
  color: #fff;
}
.poker-task-screen__pot {
  position: absolute;
  top: 52%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  font-size: 12px;
  color: #93c5fd;
  pointer-events: none;
}
.poker-task-screen__pot-main { display: block; font-weight: 700; font-size: 17px; margin-bottom: 4px; color: #60a5fa; }
.poker-task-screen__pot-bet { display: block; font-size: 11px; color: #a5b4fc; }
.poker-task-screen__pot-bet strong { color: #93c5fd; }
.poker-task-screen__actions {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 10px;
  margin-top: 2cm;
  max-width: 340px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}
.poker-task-screen__action {
  padding: 14px 8px;
  font-size: 13px;
  font-weight: 700;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  color: #fff;
  transition: opacity 0.2s;
}
.poker-task-screen__action:hover {
  opacity: 0.92;
}
.poker-task-screen__action--fold {
  background: #2563eb;
  grid-column: 1;
  grid-row: 1;
}
.poker-task-screen__action--call {
  background: #16a34a;
  grid-column: 2;
  grid-row: 1;
}
.poker-task-screen__action--raise {
  background: #dc2626;
  grid-column: 3;
  grid-row: 1;
}
.poker-task-screen__action--allin {
  background: #991b1b;
  grid-column: 2;
  grid-row: 2;
}

/* Розыгрыши */
.raffles-tagline {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
}
.raffles-hero {
  margin: 0 0 20px;
  padding: 0 0 20px;
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.85), rgba(30, 41, 59, 0.7));
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.raffles-hero__img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px 14px 0 0;
  margin-bottom: 16px;
  object-fit: cover;
}
.raffles-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(249, 115, 22, 0.15), transparent 60%);
  pointer-events: none;
}
.raffles-hero__share-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  justify-content: center;
}
.raffles-hero__share-btn {
  display: inline-block;
  min-width: 0;
  padding: 10px 26px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #e0f2fe;
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.35), rgba(2, 132, 199, 0.25));
  border: 1px solid rgba(186, 230, 253, 0.6);
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(56, 189, 248, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}
.raffles-hero__share-btn--primary {
  color: #0f172a;
  background: linear-gradient(135deg, #fbbf24, #f97316);
  border-color: rgba(251, 191, 36, 0.9);
  box-shadow: 0 4px 18px rgba(251, 191, 36, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.raffles-hero__share-btn--primary:hover {
  background: linear-gradient(135deg, #fde68a, #fdba74);
  border-color: rgba(251, 191, 36, 1);
  box-shadow: 0 6px 22px rgba(251, 191, 36, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.raffles-hero__share-btn:hover {
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.45), rgba(2, 132, 199, 0.35));
  border-color: rgba(186, 230, 253, 0.85);
  box-shadow: 0 6px 20px rgba(56, 189, 248, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}
.raffles-hero__share-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(56, 189, 248, 0.25);
}
[data-theme="light"] .raffles-hero__share-btn {
  color: #0c4a6e;
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.25), rgba(14, 165, 233, 0.2));
  border-color: rgba(14, 165, 233, 0.5);
  box-shadow: 0 4px 12px rgba(56, 189, 248, 0.15);
}
[data-theme="light"] .raffles-hero__share-btn:hover {
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.35), rgba(14, 165, 233, 0.3));
  border-color: rgba(14, 165, 233, 0.7);
  box-shadow: 0 6px 16px rgba(56, 189, 248, 0.25);
}
.raffles-hero__share-btn--copy-icon {
  width: 44px;
  height: 44px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.raffles-hero__copy-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: inherit;
}
.raffles-hero__copy-icon svg {
  display: block;
}
/* Карточка розыгрыша в виде беккинг-билета */
.raffle-card--ticket {
  position: relative;
  margin-bottom: 24px;
  padding: 20px 18px;
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.6), rgba(15, 23, 42, 0.75));
  border: 2px solid var(--border-subtle);
  border-radius: 4px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.raffle-card--ticket::before,
.raffle-card--ticket::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 12px;
  height: 12px;
  border: 2px solid var(--border-subtle);
  border-radius: 50%;
  background: var(--bg-color);
  transform: translateY(-50%);
}
.raffle-card--ticket::before { left: -7px; }
.raffle-card--ticket::after { right: -7px; }
.raffle-card--ticket .raffle-meta { font-size: 14px; color: var(--text); }
.raffle-card--ticket .raffle-end { color: var(--accent-2); font-weight: 500; }
.raffle-card--ticket .raffle-prizes { margin-bottom: 16px; padding-left: 0; }
.raffle-card--ticket .raffle-prize {
  padding: 6px 10px;
  background: rgba(34, 197, 94, 0.08);
  border-left: 3px solid var(--accent-2);
  border-radius: 0 6px 6px 0;
  margin-bottom: 6px;
  font-size: 13px;
}
.raffle-card--ticket .primary-button.raffle-join-btn {
  background: linear-gradient(135deg, var(--accent), #ea580c);
  color: #fff;
  font-weight: 600;
  border: none;
  box-shadow: 0 2px 12px rgba(249, 115, 22, 0.35);
}
.raffle-card--ticket .primary-button.raffle-join-btn:hover {
  filter: brightness(1.1);
  box-shadow: 0 4px 16px rgba(249, 115, 22, 0.4);
}

/* Завершённые розыгрыши — акцент «беккинг-билет разыгран» */
.raffle-completed-card { border-left: 4px solid var(--accent-2); }
.raffle-completed-card__winners-title { color: var(--accent-2); }

.raffles-admin-wrap--hidden { display: none; }
.raffles-create-toggle {
  margin-bottom: 12px;
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid var(--accent);
  background: rgba(249, 115, 22, 0.15);
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.raffle-create-form--hidden { display: none; }
.raffle-create-form {
  margin-bottom: 20px;
  padding: 14px;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.raffles-admin-row {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.raffles-admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.raffles-admin-btn {
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--accent);
  background: rgba(249, 115, 22, 0.08);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.raffles-admin-btn:disabled {
  opacity: 0.7;
  cursor: default;
}
.raffles-admin-btn--ghost {
  background: transparent;
  border-color: var(--border-subtle);
  color: var(--muted);
  font-weight: 500;
}
.raffles-admin-hint {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}
.raffles-admin-hint--pre {
  white-space: pre-wrap;
  word-break: break-word;
}
.raffle-create-form__type-label { margin: 0 0 4px; font-size: 13px; font-weight: 600; color: var(--text); }
.raffle-create-form__type-row { display: flex; flex-direction: column; gap: 8px; }
.raffle-create-form__type-option {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text);
  cursor: pointer;
}
.raffle-create-form__type-option input { accent-color: var(--accent); }
.raffle-create-form__panel--hidden { display: none !important; }
.raffle-create-form__panel { display: flex; flex-direction: column; gap: 12px; }
.raffle-tournament-select {
  width: 100%;
  cursor: pointer;
  color: var(--text);
}
.raffle-tournament-select optgroup {
  font-weight: 600;
  color: var(--text-muted);
}
.raffle-ticket-winners-wrap--single .raffle-ticket-groups { display: none; }
.raffle-ticket-winners-wrap:not(.raffle-ticket-winners-wrap--single) .raffle-ticket-single-winners { display: none; }
.raffle-ticket-groups { display: flex; flex-direction: column; gap: 8px; }
.raffle-ticket-group-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.raffle-ticket-group-row .raffle-tournament-select { min-width: 180px; }
.raffle-create-form__total { margin: 8px 0 0; font-size: 15px; font-weight: 600; color: var(--accent-2); }
.raffle-groups { display: flex; flex-direction: column; gap: 8px; }
.raffle-group-row { display: flex; flex-direction: column; gap: 4px; }
.raffle-current--hidden { display: none; }
.raffle-empty--hidden { display: none; }
.raffle-empty { color: var(--text-muted); margin: 12px 0; }
.raffle-empty .raffle-loading__text { display: inline-block; vertical-align: middle; }
.raffle-loading__spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  margin-right: 8px;
  vertical-align: middle;
  border: 2px solid var(--text-muted);
  border-top-color: transparent;
  border-radius: 50%;
  animation: raffle-loading-spin 0.7s linear infinite;
}
@keyframes raffle-loading-spin {
  to { transform: rotate(360deg); }
}
.raffle-card {
  margin-bottom: 24px;
  padding: 16px;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
}
.raffle-id-note {
  margin: 0 0 12px;
  padding-left: 20px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  list-style: disc;
}
.raffle-id-note li {
  margin-bottom: 4px;
}
.raffle-id-note li:last-child {
  margin-bottom: 0;
}
[data-theme="light"] .raffle-id-note { color: var(--text); }
.raffle-stats-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
}
.raffle-stat {
  margin: 0;
  font-size: 12px;
  font-style: italic;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.raffle-stat--timer { color: var(--accent-2); font-weight: 600; }
.raffle-meta { margin: 0 0 4px; font-size: 14px; color: var(--text-muted); }
.raffle-end { margin: 0; font-size: inherit; color: inherit; }
.raffle-channel-note {
  margin: 4px 0 10px;
  font-size: 12px;
  color: #fff;
}
.raffle-channel-note a {
  color: #fff;
  text-decoration: underline;
}
.raffle-channel-note a:hover {
  color: #fff;
  opacity: 0.9;
}
.raffle-prizes { margin-bottom: 14px; }
.raffle-prize { font-size: 13px; color: var(--text); margin-bottom: 4px; }
.raffle-join-invite-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.raffle-join-invite-row .raffle-join-btn,
.raffle-join-invite-row .raffle-leave-btn {
  margin: 0;
  margin-bottom: 0;
  padding: 8px 12px;
  font-size: 13px;
  min-width: 0;
  width: auto;
  flex: 1 1 auto;
  flex-shrink: 1;
}
.raffle-join-invite-row .raffles-hero__share-btn--inline {
  padding: 8px 14px;
  font-size: 13px;
  min-width: 0;
  flex: 1 1 auto;
  flex-shrink: 1;
}
.raffle-join-leave-cell {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
}
.raffle-join-leave-cell .raffle-join-btn,
.raffle-join-leave-cell .raffle-leave-btn {
  margin: 0;
}
/* В ячейке только одна кнопка видна: Участвовать до входа, Отменить участие — после */
.raffle-join-leave-cell .raffle-join-btn.raffle-join-btn--hidden,
.raffle-join-leave-cell .raffle-leave-btn.raffle-leave-btn--hidden {
  display: none !important;
}
.raffle-join-btn--hidden { display: none; }
.raffle-join-btn { margin-bottom: 12px; }
.raffle-leave-btn--hidden { display: none; }
.raffle-leave-btn {
  margin-left: 10px;
  margin-bottom: 12px;
  padding: 8px 14px;
  font-size: 14px;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  cursor: pointer;
}
.raffle-leave-btn:hover { background: rgba(239, 68, 68, 0.15); color: var(--text); border-color: rgba(239, 68, 68, 0.4); }
.raffle-admin-actions--hidden { display: none !important; }
.raffle-admin-actions { margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.raffle-cancel-btn--hidden { display: none; }
.raffle-cancel-btn {
  margin: 0 0 12px 10px;
  padding: 8px 14px;
  font-size: 14px;
  color: #fecaca;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  border-radius: 10px;
  cursor: pointer;
  display: inline-block;
}
.raffle-complete-btn {
  margin: 0 0 12px 10px;
  padding: 8px 14px;
  font-size: 14px;
  color: #bbf7d0;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.4);
  border-radius: 10px;
  cursor: pointer;
  display: inline-block;
}
.raffle-complete-btn:hover { background: rgba(34, 197, 94, 0.25); color: #bbf7d0; border-color: rgba(34, 197, 94, 0.5); }
.raffle-joined-msg--hidden { display: none; }
.raffle-joined-msg { margin: 0 0 12px; font-weight: 600; color: var(--accent-2); }
.raffle-guest-gate {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin: 0 0 12px;
  padding: 14px 12px;
  text-align: center;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  background: var(--block-bg);
  box-sizing: border-box;
}
.raffle-guest-gate--hidden {
  display: none !important;
}
.raffle-guest-gate__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--text);
  max-width: 320px;
}
.raffle-guest-gate .profile-exit-btn {
  margin-left: 0;
  flex-shrink: 0;
}
.raffle-participants-note { margin: 0 0 12px; font-size: 13px; color: var(--text-muted); line-height: 1.4; }
.raffle-participants-note__highlight { font-weight: 700; text-decoration: underline; }
.raffle-participants-title { margin: 0 0 8px; font-size: 14px; font-weight: 600; color: var(--text); }
.raffle-participants-chance { margin: 0 0 8px; font-size: 12px; color: var(--text-muted); }
.raffle-participants { margin: 0 0 12px; padding-left: 20px; font-size: 13px; color: var(--text); }
.raffle-participants-empty { color: var(--text-muted); list-style: none; margin-left: -20px; }
.raffle-winners-wrap--hidden { display: none; }
.raffle-winners-title { margin: 0 0 8px; font-size: 14px; font-weight: 600; color: var(--accent-2); }
.raffle-winners { margin: 0; padding-left: 20px; font-size: 13px; }
.raffle-winner-group { margin-bottom: 8px; }
.raffle-winner-group ul { margin: 4px 0 0; padding-left: 18px; list-style: none; }
.raffle-winner-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}
.raffle-winner-row__text { flex: 1; min-width: 0; }
.raffle-winner-status {
  font-weight: 600;
  min-width: 1.2em;
}
.raffle-winner-status--ok { color: #22c55e; }
.raffle-winner-status--fail { color: #ef4444; }
.raffle-winner-btns { display: flex; gap: 4px; }
.raffle-winner-btn {
  width: 28px;
  height: 28px;
  padding: 0;
  font-size: 14px;
  line-height: 1;
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  background: rgba(30, 41, 59, 0.5);
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.raffle-winner-btn:hover:not(:disabled) {
  background: rgba(51, 65, 85, 0.8);
  color: var(--text);
}
.raffle-winner-btn--ok.raffle-winner-btn--active {
  background: rgba(34, 197, 94, 0.25);
  color: #22c55e;
  border-color: #22c55e;
}
.raffle-winner-btn--fail.raffle-winner-btn--active {
  background: rgba(239, 68, 68, 0.25);
  color: #ef4444;
  border-color: #ef4444;
}
.raffles-randomizer { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border-subtle); }
.raffles-randomizer-title { margin: 0 0 10px; font-size: 16px; font-weight: 600; color: var(--text); }

.raffles-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
  margin: 16px 0 12px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-subtle);
  padding: 4px;
}
.raffles-tab {
  flex: 1 1 0;
  min-width: 0;
  padding: 10px 8px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.raffles-tab:hover { color: var(--text); background: rgba(148, 163, 184, 0.1); }
.raffles-tab.raffles-tab--active { background: var(--accent-soft); color: var(--accent); }
@media (max-width: 360px) {
  .raffles-tab { font-size: 11px; padding: 8px 6px; }
}
.raffles-panel { margin-top: 0; }
.raffles-panel.raffles-panel--hidden { display: none; }
.raffles-completed-list { display: flex; flex-direction: column; gap: 12px; }
.raffles-completed-list:empty + .raffles-completed-empty { display: block; }
.raffles-completed-list:not(:empty) + .raffles-completed-empty { display: none; }
.raffles-completed-empty { color: var(--text-muted); margin: 12px 0; }

.raffles-subscribe-text {
  margin: 0 0 12px;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
  text-align: center;
}
.raffles-hero__share-row .raffles-subscribe-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}
.raffles-hero__share-row .raffles-subscribe-btn[data-subscribed="1"] {
  opacity: 0.4;
  color: rgba(15, 23, 42, 0.6);
  background: rgba(251, 191, 36, 0.2);
  border-color: rgba(251, 191, 36, 0.35);
}
.raffles-hero__share-row .raffles-subscribe-btn[data-subscribed="1"]:hover {
  opacity: 0.55;
  background: rgba(251, 191, 36, 0.28);
  border-color: rgba(251, 191, 36, 0.5);
}

.raffle-completed-card {
  padding: 14px 16px;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
}
.raffle-completed-card__meta { margin: 0 0 6px; font-size: 13px; color: var(--text-muted); }
.raffle-completed-card__actions {
  margin: 6px 0;
  display: flex;
  gap: 8px;
}
.raffle-completed-card__delete-btn {
  padding: 4px 10px;
  font-size: 12px;
  color: #fecaca;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  border-radius: 999px;
  cursor: pointer;
}
.raffle-completed-card__winners { margin: 0; padding-left: 18px; font-size: 13px; color: var(--text); }
.raffle-completed-card__winners-title { margin: 8px 0 4px; font-size: 13px; font-weight: 600; color: var(--accent-2); }

[data-theme="light"] .raffles-hero {
  background: linear-gradient(145deg, rgba(255, 251, 247, 0.95), rgba(255, 243, 230, 0.9));
  border-color: rgba(249, 115, 22, 0.35);
}
[data-theme="light"] .raffle-create-form,
[data-theme="light"] .raffle-card,
[data-theme="light"] .raffles-tabs,
[data-theme="light"] .raffle-completed-card {
  background: linear-gradient(135deg, rgba(255, 251, 247, 0.95), rgba(255, 243, 230, 0.95));
  border-color: rgba(249, 115, 22, 0.4);
}

.updates-block {
  margin-top: 24px;
  padding: 14px 16px;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
}
.updates-block__title {
  margin: 0 0 10px 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}
.updates-block__list {
  margin: 0;
  padding: 0 0 0 18px;
  list-style: disc;
}
.updates-block__item {
  margin-bottom: 6px;
  font-size: 13px;
  color: var(--text);
  line-height: 1.4;
}
.updates-block__date {
  color: var(--text-muted);
  font-size: 12px;
}
.updates-block__footer {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--border-subtle);
}
.updates-block__ellipsis {
  font-size: 14px;
  color: var(--text-muted);
}
.updates-block__toggle {
  padding: 6px 12px;
  font-size: 12px;
  background: rgba(168, 85, 247, 0.2);
  border: 1px solid rgba(168, 85, 247, 0.4);
  border-radius: 8px;
  color: var(--accent);
  cursor: pointer;
}
.updates-block__toggle:hover {
  background: rgba(168, 85, 247, 0.3);
}

.home-mini-icons {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
  margin-left: auto;
  /* Зазор от правой обводки блока приветствия (Чат / Канал / Предсказание / Розыгрыши) */
  margin-right: 5px;
}
.home-mini-icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 54px;
  min-height: 56px;
  padding: 5px 3px;
  box-sizing: border-box;
  background: rgba(148, 163, 184, 0.2);
  border: 1px solid rgba(148, 163, 184, 0.4);
  border-radius: 12px;
  min-width: 0;
}
.home-mini-icons button.home-mini-icon-item {
  font: inherit;
  cursor: pointer;
  margin: 0;
  color: inherit;
  -webkit-appearance: none;
  appearance: none;
}
/* Неактивные кнопки (Магазин, Акции, Партнёрка) — тусклее */
.home-mini-icons span.home-mini-icon-item {
  opacity: 0.55;
  cursor: default;
}
.home-mini-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  background: none;
  border: none;
  border-radius: 0;
}
.home-mini-icon__label {
  font-size: 6px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: var(--text);
  line-height: 1.15;
  text-align: center;
  max-width: 100%;
  white-space: nowrap;
  overflow: visible;
}

/* Узкие экраны: подписи кнопок (Чат, Канал, Партнёрка) в 2 строки, не обрезаются */
@media (max-width: 400px) {
  .home-mini-icon__label {
    font-size: 8px;
    line-height: 1.2;
    white-space: normal;
    word-break: break-word;
    max-width: 52px;
    overflow: visible;
    text-overflow: clip;
  }
  .home-mini-icon-item {
    width: 52px;
    padding: 5px 2px;
    min-height: 48px;
  }
  .features-section-title {
    font-size: 13px;
  }
  .features {
    margin-top: 14px;
    gap: 8px;
  }
}

.home-mini-icon-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 54px;
  flex-shrink: 0;
}
.home-mini-icon-hint {
  font-size: 8px;
  line-height: 1.2;
  color: var(--text-muted);
  text-align: center;
  width: 54px;
  box-sizing: border-box;
}

/* Зал славы — кнопка над магазином с блеском */
a.home-mini-icon-item {
  text-decoration: none;
  color: inherit;
}
.home-mini-icon-item--hall {
  position: relative;
  box-shadow: 0 0 14px rgba(250, 204, 21, 0.45), 0 0 28px rgba(250, 204, 21, 0.2);
  background: linear-gradient(135deg, rgba(250, 204, 21, 0.25), rgba(234, 179, 8, 0.15));
  border-color: rgba(250, 204, 21, 0.55);
  overflow: hidden;
}
.home-mini-icon-item--hall::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 0%, rgba(255, 255, 255, 0.25) 45%, transparent 55%);
  pointer-events: none;
  animation: hall-shine 2.5s ease-in-out infinite;
}
@keyframes hall-shine {
  0%, 100% { opacity: 0; transform: translateX(-100%); }
  50% { opacity: 1; transform: translateX(100%); }
}
.home-mini-icon-item--hall:hover {
  box-shadow: 0 0 18px rgba(250, 204, 21, 0.55), 0 0 32px rgba(250, 204, 21, 0.25);
}

/* Чат в ТГ и Канал — белая подсветка */
.home-mini-icon-item--white {
  position: relative;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.35), 0 0 20px rgba(255, 255, 255, 0.15);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.06));
  border-color: rgba(255, 255, 255, 0.4);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.home-mini-icon-item--white::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 0%, rgba(255, 255, 255, 0.2) 45%, transparent 55%);
  pointer-events: none;
}
.home-mini-icon-item--white:hover {
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.45), 0 0 28px rgba(255, 255, 255, 0.2);
}
/* Увеличение при наведении только у кнопок Чат в ТГ и Канал */
.home-mini-icon-item--hover-scale:hover {
  transform: scale(1.12);
}
.home-mini-icon-item .feature__badge {
  top: auto;
  bottom: 2px;
  right: 2px;
  min-width: 12px;
  height: 12px;
  font-size: 9px;
  line-height: 12px;
  padding: 0 3px;
}
.home-mini-icon-item .feature__badge--bottom-right {
  bottom: 2px;
  right: 2px;
}
.home-mini-icon--telegram {
  display: flex;
  align-items: center;
  justify-content: center;
}
.home-mini-icon--telegram svg {
  width: 28px;
  height: 28px;
  display: block;
  fill: #fff;
}
[data-theme="light"] .home-mini-icon--telegram svg {
  fill: #fff;
}

.download-layout {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.download-layout__text {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  color: var(--text);
}

.download-intro {
  margin: 0 0 2px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.download-block {
  margin: 0;
  line-height: 1.5;
}

.download-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.download-app {
  position: relative;
  border: none;
  border-radius: 16px;
  padding: 14px 16px;
  background: linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
  border: 1px solid rgba(148, 163, 184, 0.25);
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  overflow: hidden;
  transition:
    background 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.2s ease,
    border-color 0.2s ease;
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.download-app::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
  pointer-events: none;
  border-radius: inherit;
}
.download-app:hover {
  background: linear-gradient(145deg, #334155 0%, #1e293b 100%);
  border-color: rgba(248, 250, 252, 0.35);
  box-shadow:
    0 8px 24px rgba(248, 113, 22, 0.25),
    0 0 0 1px rgba(248, 250, 252, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
  color: var(--btn-on-accent);
}
.download-app:active {
  transform: translateY(0);
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.download-app--poker21 {
  background: linear-gradient(145deg, #dc2626 0%, #b91c1c 50%, #991b1b 100%);
  border: 1px solid rgba(254, 202, 202, 0.5);
  color: #fff;
  box-shadow:
    0 6px 20px rgba(185, 28, 28, 0.4),
    0 0 20px rgba(254, 202, 202, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.download-app--poker21:hover {
  background: linear-gradient(145deg, #ef4444 0%, #dc2626 50%, #b91c1c 100%);
  border-color: rgba(254, 226, 226, 0.7);
  box-shadow:
    0 12px 32px rgba(185, 28, 28, 0.5),
    0 0 24px rgba(254, 202, 202, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
  color: #fff;
}

.download-app--xpoker {
  background: linear-gradient(145deg, #3b82f6 0%, #2563eb 50%, #1d4ed8 100%);
  border: 1px solid rgba(191, 219, 254, 0.4);
  color: #fff;
  box-shadow:
    0 6px 20px rgba(37, 99, 235, 0.35),
    0 0 16px rgba(96, 165, 250, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.download-app--xpoker:hover {
  background: linear-gradient(145deg, #60a5fa 0%, #3b82f6 50%, #2563eb 100%);
  border-color: rgba(191, 219, 254, 0.6);
  box-shadow:
    0 12px 32px rgba(37, 99, 235, 0.45),
    0 0 24px rgba(96, 165, 250, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
  color: #fff;
}

.download-app--pppoker {
  background: linear-gradient(145deg, #22c55e 0%, #16a34a 50%, #15803d 100%);
  border: 1px solid rgba(187, 247, 208, 0.4);
  color: #fff;
  box-shadow:
    0 6px 20px rgba(34, 197, 94, 0.35),
    0 0 16px rgba(74, 222, 128, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.download-app--pppoker:hover {
  background: linear-gradient(145deg, #4ade80 0%, #22c55e 50%, #16a34a 100%);
  border-color: rgba(187, 247, 208, 0.6);
  box-shadow:
    0 12px 32px rgba(34, 197, 94, 0.45),
    0 0 24px rgba(74, 222, 128, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
  color: #fff;
}

.download-app--supremapoker {
  background: linear-gradient(145deg, #ea580c 0%, #c2410c 50%, #9a3412 100%);
  border: 1px solid rgba(255, 237, 213, 0.4);
  color: #fff;
  box-shadow:
    0 6px 20px rgba(234, 88, 12, 0.35),
    0 0 16px rgba(251, 146, 60, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.download-app--supremapoker:hover {
  background: linear-gradient(145deg, #f97316 0%, #ea580c 50%, #c2410c 100%);
  border-color: rgba(255, 237, 213, 0.6);
  box-shadow:
    0 12px 32px rgba(234, 88, 12, 0.45),
    0 0 24px rgba(251, 146, 60, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
  color: #fff;
}

.download-layout__media {
  display: flex;
  justify-content: center;
}

.download-image {
  width: 100%;
  max-width: 360px;
  border-radius: 22px;
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(248, 250, 252, 0.08);
}

.cashout-media {
  margin-top: 12px;
  display: flex;
  justify-content: center;
}

.cashout-image-link {
  display: block;
  text-decoration: none;
  color: inherit;
}
.cashout-image-link:hover {
  opacity: 0.95;
}

.cashout-image {
  width: 100%;
  max-width: 360px;
  border-radius: 22px;
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(248, 250, 252, 0.08);
  display: block;
}

.cashout-anna-btn {
  display: block;
  margin: 12px auto 0;
  max-width: 360px;
  padding: 12px 20px;
  background: #000;
  color: #fff;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.12s ease;
}
.cashout-anna-btn:hover {
  background: #1a1a1a;
  color: #fff;
  transform: scale(1.02);
}
.cashout-anna-btn:active {
  transform: scale(0.99);
}

.cashout-manager-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
  justify-content: center;
}
.cashout-manager-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.12s ease;
  border: 1px solid var(--border-subtle);
  color: var(--text);
  background: var(--block-bg);
  min-width: 140px;
  box-sizing: border-box;
}
.cashout-manager-btn:hover {
  background: rgba(168, 85, 247, 0.15);
  color: var(--accent);
  border-color: rgba(168, 85, 247, 0.4);
}
.cashout-manager-btn--here {
  border: none;
  background: var(--accent, #a855f7);
  color: #fff;
}
.cashout-manager-btn--here:hover {
  background: #9333ea;
  color: #fff;
  transform: scale(1.02);
}
.cashout-manager-btn--tg {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}
.cashout-manager-btn--tg:hover {
  background: rgba(168, 85, 247, 0.12);
}

.cashout-manager-subtitle {
  margin-top: 0;
  margin-bottom: 0;
}

.cashout-deposit-form {
  margin: 0 0 24px;
  padding: 16px;
  background: var(--block-bg);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
}
.cashout-form-label {
  display: block;
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.cashout-form-label--block { margin-top: 14px; }
.cashout-form-input {
  width: 100%;
  max-width: 280px;
  padding: 10px 12px;
  font-size: 15px;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  background: var(--input-bg, var(--block-bg));
  color: var(--text);
  box-sizing: border-box;
}
.cashout-form-input--readonly {
  background: rgba(148, 163, 184, 0.12);
  color: var(--text-muted);
}
.cashout-form-hint {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--text-muted);
}
.cashout-form-platform {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 6px;
}
.cashout-form-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 15px;
  color: var(--text);
}
.cashout-form-option input { accent-color: var(--accent); }
.cashout-form-id-wrap { margin-top: 12px; }
.cashout-form-id-wrap--hidden { display: none; }
.cashout-form-submit {
  display: block;
  width: 100%;
  max-width: 280px;
  margin-top: 18px;
  padding: 12px 20px;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  background: var(--accent, #a855f7);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.12s ease;
}
.cashout-form-submit:hover {
  background: #9333ea;
  transform: scale(1.01);
}
.cashout-form-submit:active { transform: scale(0.99); }

.cashout-now-subtitle {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
}

.cashout-manager-block--hidden {
  display: none;
}

.cashout-text {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text);
}

.cashout-text p {
  margin: 0 0 6px;
}

.download-page {
  display: none;
}
.download-page--active {
  display: block;
}

.download-back:active {
  opacity: 0.92;
}

.poker21-intro {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-muted);
}

.download-buttons-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
  align-items: stretch;
}

.app-store-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
  background: linear-gradient(145deg, #2c2c2e 0%, #1c1c1e 50%, #000 100%);
  color: #fff;
  border-radius: 14px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.03em;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 6px 20px rgba(0, 0, 0, 0.45),
    0 0 20px rgba(255, 255, 255, 0.03),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  flex: 1;
  min-width: 150px;
  overflow: hidden;
}
.app-store-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, transparent 40%);
  pointer-events: none;
  border-radius: inherit;
}
.app-store-btn:hover,
.app-store-btn:active {
  background: linear-gradient(145deg, #3c3c3e 0%, #2c2c2e 50%, #1c1c1e 100%);
  color: #fff;
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.5),
    0 0 24px rgba(255, 255, 255, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}
.app-store-btn:active {
  transform: translateY(0);
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.app-store-btn__icon {
  display: flex;
  align-items: center;
  justify-content: center;
}
.app-store-btn__icon svg {
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

.android-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
  background: linear-gradient(145deg, #4ade80 0%, #22c55e 50%, #16a34a 100%);
  color: #fff;
  border-radius: 14px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.03em;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow:
    0 6px 20px rgba(34, 197, 94, 0.4),
    0 0 20px rgba(74, 222, 128, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  flex: 1;
  min-width: 150px;
  overflow: hidden;
}
.android-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0%, transparent 40%);
  pointer-events: none;
  border-radius: inherit;
}
.android-btn:hover,
.android-btn:active {
  background: linear-gradient(145deg, #6ee7b7 0%, #4ade80 50%, #22c55e 100%);
  color: #fff;
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow:
    0 10px 28px rgba(34, 197, 94, 0.5),
    0 0 24px rgba(74, 222, 128, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.android-btn:active {
  transform: translateY(0);
  box-shadow:
    0 4px 12px rgba(34, 197, 94, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.android-btn__icon {
  display: flex;
  align-items: center;
  justify-content: center;
}
.android-btn__icon svg {
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.download-pppoker-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 20px;
  background: linear-gradient(135deg, #fbbf24, #f97316);
  color: #0f172a;
  border-radius: 14px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  border: 1px solid rgba(251, 191, 36, 0.9);
  box-shadow: 0 4px 18px rgba(251, 191, 36, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  flex: 1;
  min-width: 120px;
}
.download-pppoker-share-btn:hover {
  background: linear-gradient(135deg, #fde68a, #fdba74);
  color: #0f172a;
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(251, 191, 36, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.poker21-arrow-down {
  margin: 14px 0 6px;
  display: flex;
  justify-content: center;
  color: #eab308;
  animation: poker21-arrow-bounce 1.5s ease-in-out infinite;
}
.poker21-arrow-down svg {
  stroke-width: 4;
}
@keyframes poker21-arrow-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

.poker21-after-download {
  margin: 0 auto 14px;
  padding: 0 12px;
  max-width: 100%;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-muted);
  text-align: center;
  box-sizing: border-box;
}
@media (max-width: 400px) {
  .poker21-after-download {
    font-size: 12px;
    padding: 0 8px;
  }
}

.app-club-id {
  margin: 12px 0 0;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text);
}
.app-club-id__number {
  color: #f97316;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.app-club-note {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-muted);
}

.poker21-example-media {
  margin-top: 14px;
  display: flex;
  justify-content: center;
}
.poker21-example-image {
  width: 100%;
  max-width: 340px;
  border-radius: 16px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.poker21-managers {
  margin-top: 20px;
  padding: 14px 12px;
  background: rgba(148, 163, 184, 0.12);
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.35);
}
.poker21-managers__title {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}
.poker21-managers__line {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.poker21-managers__line:last-child {
  margin-bottom: 0;
}

.manager-link {
  color: #f97316;
  text-decoration: none;
  font-weight: inherit;
}
.manager-link:hover {
  text-decoration: underline;
}

.download-hint {
  margin: 4px 0 12px;
  font-size: 11px;
  line-height: 1.4;
  color: var(--text-muted);
}

.hero-row {
  margin-top: 20px;
  width: 100%;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 0;
  box-sizing: border-box;
}

.hero {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero__link {
  display: block;
  width: 88%;
  max-width: 100%;
  margin-left: 0;
  margin-right: auto;
  aspect-ratio: 1;
  text-decoration: none;
  color: inherit;
  position: relative;
  border-radius: 999px;
  overflow: hidden;
  box-shadow:
    0 0 12px rgba(255, 255, 255, 0.35),
    0 0 24px rgba(255, 255, 255, 0.15),
    0 4px 16px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.4);
  transition: box-shadow 0.2s ease;
}
.hero__link:hover {
  box-shadow:
    0 0 18px rgba(255, 255, 255, 0.45),
    0 0 32px rgba(255, 255, 255, 0.2),
    0 6px 20px rgba(0, 0, 0, 0.45);
}

.hero__image,
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 999px;
  object-fit: cover;
  display: block;
}

/* Узкие экраны: меньше отступы и gap, кнопки остаются в границах */
@media (max-width: 430px) {
  .hero-row {
    gap: 8px;
  }
}
@media (max-width: 380px) {
  .hero-row {
    gap: 6px;
  }
}

.feature {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 14px;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.feature__badge {
  position: absolute;
  top: 6px;
  right: 8px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: #ef4444;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
  box-shadow: 0 0 0 2px var(--card-bg, #0f172a);
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature__badge--hidden {
  display: none;
}

.feature--link {
  text-decoration: none;
  color: inherit;
}

.feature--link:hover {
  filter: brightness(1.05);
}

.feature--hidden {
  display: none !important;
}

.feature--highlight {
  border: 2px solid rgba(168, 85, 247, 0.65);
  box-shadow: 0 4px 20px rgba(168, 85, 247, 0.35);
  background: linear-gradient(to bottom, #2d2640 0%, #231d35 50%, #1a1528 100%);
}

/* Главная: все кнопки и карточки светло-оранжевые */
[data-theme="light"] .view--active[data-view="home"] .feature.feature--link {
  background: linear-gradient(135deg, #ffedd5, #fed7aa);
  border-color: rgba(249, 115, 22, 0.5);
  box-shadow: 0 2px 10px rgba(249, 115, 22, 0.15);
}
[data-theme="light"] .view--active[data-view="home"] .feature.feature--link:hover {
  background: linear-gradient(135deg, #fed7aa, #fdba74);
  border-color: rgba(249, 115, 22, 0.6);
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.2);
}
[data-theme="light"] .view--active[data-view="home"] .feature.feature--link.feature--highlight {
  background: linear-gradient(135deg, #fed7aa, #fdba74);
  border: 2px solid rgba(249, 115, 22, 0.7);
  box-shadow: 0 4px 20px rgba(249, 115, 22, 0.35);
}
[data-theme="light"] .view--active[data-view="home"] .updates-block__toggle {
  background: linear-gradient(135deg, #ffedd5, #fed7aa);
  border: 1px solid rgba(249, 115, 22, 0.5);
  color: #c2410c;
}
[data-theme="light"] .view--active[data-view="home"] .updates-block__toggle:hover {
  background: linear-gradient(135deg, #fed7aa, #fdba74);
  border-color: rgba(249, 115, 22, 0.6);
  color: #9a3412;
}
[data-theme="light"] .view--active[data-view="home"] .home-mini-icon-item {
  background: linear-gradient(135deg, #ffedd5, #fed7aa);
  border-color: rgba(249, 115, 22, 0.5);
  box-shadow: 0 2px 8px rgba(249, 115, 22, 0.12);
}
[data-theme="light"] .view--active[data-view="home"] .home-mini-icon-item:hover {
  background: linear-gradient(135deg, #fed7aa, #fdba74);
  border-color: rgba(249, 115, 22, 0.6);
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.2);
}
[data-theme="light"] .view--active[data-view="home"] .home-mini-icon-item--hall {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border-color: rgba(234, 179, 8, 0.6);
  box-shadow: 0 0 14px rgba(234, 179, 8, 0.5), 0 0 28px rgba(234, 179, 8, 0.25);
}
[data-theme="light"] .view--active[data-view="home"] .home-mini-icon-item--hall:hover {
  box-shadow: 0 0 18px rgba(234, 179, 8, 0.6), 0 0 32px rgba(234, 179, 8, 0.3);
}
[data-theme="light"] .view--active[data-view="home"] .home-mini-icon-item--white {
  background: linear-gradient(135deg, #ffedd5, #fed7aa);
  border-color: rgba(249, 115, 22, 0.5);
  box-shadow: 0 2px 8px rgba(249, 115, 22, 0.12);
}
[data-theme="light"] .view--active[data-view="home"] .home-mini-icon-item--white:hover {
  background: linear-gradient(135deg, #fed7aa, #fdba74);
  border-color: rgba(249, 115, 22, 0.6);
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.2);
}

/* Рейтинг Турнирщиков зимы — стильный блок в духе покерного клуба */
/* Зимний рейтинг: зимняя тема + покер */
.winter-rating {
  width: 100%;
  margin: 20px 0 24px;
  padding: 20px 0 20px;
  border-radius: 16px;
  background: linear-gradient(165deg, rgba(14, 35, 55, 0.92) 0%, rgba(22, 45, 65, 0.88) 40%, rgba(15, 40, 55, 0.9) 100%);
  border: 1px solid rgba(186, 230, 253, 0.2);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 0 0 1px rgba(100, 149, 237, 0.08);
  position: relative;
}

.winter-rating.spring-rating {
  background: transparent;
  border: none;
  box-shadow: none;
}
.winter-rating.spring-rating::before {
  background-image: none;
}
.winter-rating.spring-rating .winter-rating__winter-decor .winter-rating__suit {
  color: rgba(134, 239, 172, 0.32);
}
.winter-rating.spring-rating .winter-rating__winter-decor .winter-rating__snow {
  font-size: 0;
  color: transparent;
}
.winter-rating.spring-rating .winter-rating__winter-decor .winter-rating__snow::before {
  content: "🌿";
  font-size: 14px;
  color: rgba(187, 247, 208, 0.55);
}
.winter-rating.spring-rating .winter-rating__title-snow {
  font-size: 0;
  color: transparent;
}
.winter-rating.spring-rating .winter-rating__title-snow::before {
  content: "🌿";
  font-size: inherit;
  margin-left: 4px;
  opacity: 0.9;
}
.winter-rating.spring-rating .winter-rating__caption-icon {
  font-size: 0;
  color: transparent;
}
.winter-rating.spring-rating .winter-rating__caption-icon::before {
  content: "🌿";
  font-size: 1em;
  margin-right: 6px;
  opacity: 0.75;
  color: rgba(181, 196, 138, 0.72);
}
.winter-rating.spring-rating .winter-rating__title-accent {
  color: rgba(181, 196, 138, 0.88);
  text-shadow: 0 0 20px rgba(181, 196, 138, 0.22), 0 0 40px rgba(107, 142, 35, 0.08);
}
.winter-rating__spring-conditions-wrap {
  display: none;
  margin: 0 0 8mm;
}
.winter-rating.spring-rating .winter-rating__spring-conditions-wrap {
  display: block;
  text-align: center;
}
.winter-rating__spring-conditions-btn {
  display: inline-block;
  padding: 10px 20px;
  font-size: 15px;
  font-weight: 600;
  color: rgba(15, 35, 20, 0.95);
  background: linear-gradient(180deg, rgba(181, 196, 138, 0.9), rgba(107, 142, 35, 0.85));
  border: 1px solid rgba(181, 196, 138, 0.6);
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.1s ease;
  box-shadow: 0 2px 8px rgba(85, 107, 47, 0.2);
}
.winter-rating__spring-conditions-btn:hover {
  background: linear-gradient(180deg, rgba(213, 224, 184, 0.95), rgba(181, 196, 138, 0.9));
  border-color: rgba(181, 196, 138, 0.8);
}
.winter-rating__spring-conditions-btn:active {
  transform: scale(0.98);
}
[data-theme="light"] .winter-rating.spring-rating .winter-rating__spring-conditions-btn {
  color: #4a5d23;
  background: linear-gradient(180deg, rgba(213, 224, 184, 0.95), rgba(181, 196, 138, 0.9));
  border-color: rgba(107, 142, 35, 0.5);
}
[data-theme="light"] .winter-rating.spring-rating .winter-rating__spring-conditions-btn:hover {
  background: linear-gradient(180deg, rgba(228, 236, 208, 0.98), rgba(213, 224, 184, 0.95));
  border-color: rgba(107, 142, 35, 0.6);
}
.winter-rating__spring-main-tabs {
  display: flex;
  width: 100%;
  margin: 0 0 12px;
  border: none;
  background: transparent;
}
.winter-rating__spring-main-tabs[hidden] {
  display: none !important;
}
.winter-rating__spring-main-tab {
  flex: 1;
  padding: 12px 16px;
  font-size: 16px;
  font-weight: 700;
  color: rgba(186, 230, 253, 0.7);
  background: rgba(30, 58, 85, 0.5);
  border: 1px solid rgba(186, 230, 253, 0.25);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.winter-rating__spring-main-tab:first-child {
  border-radius: 12px 0 0 12px;
  border-right-width: 0;
}
.winter-rating__spring-main-tab:last-child {
  border-radius: 0 12px 12px 0;
  border-left-width: 1px;
}
.winter-rating__spring-main-tab:hover {
  color: #bae6fd;
  background: rgba(30, 58, 85, 0.7);
}
.winter-rating__spring-main-tab--active {
  color: rgba(15, 35, 20, 0.95);
  background: linear-gradient(180deg, rgba(181, 196, 138, 0.9), rgba(107, 142, 35, 0.85));
  border-color: rgba(181, 196, 138, 0.6);
}
.winter-rating__spring-main-tab--active:hover {
  background: linear-gradient(180deg, rgba(213, 224, 184, 0.95), rgba(181, 196, 138, 0.9));
}
[data-theme="light"] .winter-rating__spring-main-tab {
  color: #0369a1;
  background: rgba(224, 242, 254, 0.5);
  border-color: rgba(56, 189, 248, 0.3);
}
[data-theme="light"] .winter-rating__spring-main-tab--active {
  color: #4a5d23;
  background: linear-gradient(180deg, rgba(213, 224, 184, 0.95), rgba(181, 196, 138, 0.9));
  border-color: rgba(107, 142, 35, 0.5);
}
.winter-rating.spring-rating .winter-rating__table-caption {
  color: rgba(228, 236, 208, 0.95);
}
.winter-rating.spring-rating .winter-rating__show-all-btn {
  background: linear-gradient(180deg, rgba(107, 142, 35, 0.22), rgba(85, 107, 47, 0.28));
  border-color: rgba(181, 196, 138, 0.35);
  color: rgba(181, 196, 138, 0.92);
}
.winter-rating.spring-rating .winter-rating__show-all-btn:hover {
  background: linear-gradient(180deg, rgba(107, 142, 35, 0.3), rgba(85, 107, 47, 0.35));
  border-color: rgba(181, 196, 138, 0.45);
}
.winter-rating.spring-rating .winter-rating__date-btn {
  background: linear-gradient(180deg, rgba(107, 142, 35, 0.12), rgba(74, 93, 35, 0.22));
  border-color: rgba(181, 196, 138, 0.28);
  color: rgba(181, 196, 138, 0.92);
}
.winter-rating.spring-rating .winter-rating__date-btn:hover,
.winter-rating.spring-rating .winter-rating__date-item[aria-expanded="true"] .winter-rating__date-btn {
  background: linear-gradient(180deg, rgba(107, 142, 35, 0.22), rgba(85, 107, 47, 0.28));
  border-color: rgba(181, 196, 138, 0.4);
}
.winter-rating.spring-rating .winter-rating__subscribe-btn {
  color: #0f172a;
  background: linear-gradient(135deg, #fbbf24, #f97316);
  border: 1px solid rgba(251, 191, 36, 0.9);
  box-shadow: 0 4px 18px rgba(251, 191, 36, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.winter-rating.spring-rating .winter-rating__subscribe-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #fde68a, #fdba74);
  border-color: rgba(251, 191, 36, 1);
  box-shadow: 0 6px 22px rgba(251, 191, 36, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.winter-rating.spring-rating .winter-rating__subscribe-btn[data-subscribed="1"] {
  opacity: 0.38;
  color: rgba(181, 196, 138, 0.5);
  background: rgba(107, 142, 35, 0.06);
  border-color: rgba(181, 196, 138, 0.2);
}
.winter-rating.spring-rating .winter-rating__subscribe-btn[data-subscribed="1"]:hover {
  opacity: 0.5;
  background: rgba(107, 142, 35, 0.1);
}
.winter-rating.spring-rating .winter-rating__share-btn {
  color: #0f172a;
  background: linear-gradient(135deg, #fbbf24, #f97316);
  border-color: rgba(251, 191, 36, 0.9);
  box-shadow: 0 4px 18px rgba(251, 191, 36, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.winter-rating.spring-rating .winter-rating__share-btn:hover {
  background: linear-gradient(135deg, #fde68a, #fdba74);
  border-color: rgba(251, 191, 36, 1);
  box-shadow: 0 6px 22px rgba(251, 191, 36, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.winter-rating.spring-rating .winter-rating__week-top-btn {
  background: linear-gradient(180deg, rgba(107, 142, 35, 0.12), rgba(74, 93, 35, 0.22));
  border-color: rgba(181, 196, 138, 0.28);
  color: rgba(181, 196, 138, 0.92);
}
.winter-rating.spring-rating .winter-rating__week-top-btn:hover {
  background: linear-gradient(180deg, rgba(107, 142, 35, 0.22), rgba(85, 107, 47, 0.28));
  border-color: rgba(181, 196, 138, 0.4);
}
[data-theme="light"] .winter-rating.spring-rating {
  background: transparent;
  box-shadow: none;
}
[data-theme="light"] .winter-rating.spring-rating .winter-rating__title-accent {
  color: #556b2f;
  text-shadow: 0 0 12px rgba(107, 142, 35, 0.25);
}
[data-theme="light"] .winter-rating.spring-rating .winter-rating__caption-icon::before {
  color: #4a5d23;
}
[data-theme="light"] .winter-rating.spring-rating .winter-rating__show-all-btn {
  background: linear-gradient(180deg, rgba(107, 142, 35, 0.25), rgba(85, 107, 47, 0.2));
  border-color: rgba(107, 142, 35, 0.5);
  color: #556b2f;
}
[data-theme="light"] .winter-rating.spring-rating .winter-rating__date-btn {
  background: linear-gradient(180deg, rgba(213, 224, 184, 0.5), rgba(181, 196, 138, 0.4));
  border-color: rgba(107, 142, 35, 0.4);
  color: #4a5d23;
}
[data-theme="light"] .winter-rating.spring-rating .winter-rating__subscribe-btn {
  color: #0f172a;
  background: linear-gradient(135deg, #fbbf24, #f97316);
  border-color: rgba(251, 191, 36, 0.9);
  box-shadow: 0 4px 14px rgba(251, 191, 36, 0.4);
}
[data-theme="light"] .winter-rating.spring-rating .winter-rating__subscribe-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #fde68a, #fdba74);
  border-color: rgba(251, 191, 36, 1);
  box-shadow: 0 6px 20px rgba(251, 191, 36, 0.5);
}
[data-theme="light"] .winter-rating.spring-rating .winter-rating__subscribe-btn[data-subscribed="1"] {
  color: rgba(85, 107, 47, 0.5);
  background: rgba(107, 142, 35, 0.08);
  border-color: rgba(107, 142, 35, 0.3);
}
[data-theme="light"] .winter-rating.spring-rating .winter-rating__share-btn {
  color: #0f172a;
  background: linear-gradient(135deg, #fbbf24, #f97316);
  border-color: rgba(251, 191, 36, 0.9);
  box-shadow: 0 4px 14px rgba(251, 191, 36, 0.4);
}
[data-theme="light"] .winter-rating.spring-rating .winter-rating__share-btn:hover {
  background: linear-gradient(135deg, #fde68a, #fdba74);
  border-color: rgba(251, 191, 36, 1);
  box-shadow: 0 6px 20px rgba(251, 191, 36, 0.5);
}
[data-theme="light"] .winter-rating.spring-rating .winter-rating__week-top-btn {
  background: linear-gradient(180deg, rgba(213, 224, 184, 0.5), rgba(181, 196, 138, 0.4));
  border-color: rgba(107, 142, 35, 0.4);
  color: #4a5d23;
}
[data-theme="light"] .winter-rating.spring-rating .winter-rating__week-top-btn:hover {
  background: linear-gradient(180deg, rgba(181, 196, 138, 0.6), rgba(107, 142, 35, 0.35));
  border-color: rgba(107, 142, 35, 0.55);
}

.winter-rating__winter-decor {
  text-align: center;
  letter-spacing: 0.4em;
  font-size: 14px;
  margin-bottom: 6px;
  opacity: 0.6;
}
.winter-rating__winter-decor .winter-rating__suit {
  color: rgba(186, 230, 253, 0.5);
  margin: 0 0.1em;
}
.winter-rating__winter-decor .winter-rating__snow {
  color: rgba(255, 255, 255, 0.5);
}
[data-theme="light"] .winter-rating__winter-decor .winter-rating__suit {
  color: rgba(56, 189, 248, 0.5);
}
[data-theme="light"] .winter-rating__winter-decor .winter-rating__snow {
  color: rgba(30, 64, 175, 0.35);
}
.winter-rating__title-snow {
  margin-left: 4px;
  opacity: 0.85;
  font-size: 0.9em;
}
.winter-rating__caption-icon {
  margin-right: 6px;
  opacity: 0.8;
}
.winter-rating::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-image: radial-gradient(circle at 20% 10%, rgba(186, 230, 253, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 80% 90%, rgba(255, 255, 255, 0.04) 0%, transparent 40%);
  pointer-events: none;
}
[data-theme="light"] .winter-rating {
  background: linear-gradient(165deg, rgba(240, 249, 255, 0.98) 0%, rgba(224, 242, 254, 0.95) 50%, rgba(239, 246, 255, 0.98) 100%);
  border-color: rgba(56, 189, 248, 0.3);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
[data-theme="light"] .winter-rating::before {
  background-image: radial-gradient(circle at 20% 10%, rgba(56, 189, 248, 0.08) 0%, transparent 50%);
}
.winter-rating__title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  text-align: center;
}
.winter-rating__title-text {
  line-height: 1.3;
}
.winter-rating__title-accent {
  color: #bae6fd;
  font-weight: 800;
  font-size: 1.33em;
  line-height: 1.2;
  text-shadow: 0 0 20px rgba(186, 230, 253, 0.4), 0 0 40px rgba(212, 175, 55, 0.15);
}
[data-theme="light"] .winter-rating__title-accent {
  color: #0284c7;
  text-shadow: 0 0 12px rgba(2, 132, 199, 0.2);
}
.winter-rating__cup {
  font-size: 40px; /* +10% от 36 */
  line-height: 1;
}
.winter-rating__table-caption-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0 12px 10px;
}
.winter-rating__table-caption {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
}
[data-theme="light"] .winter-rating__table-caption {
  color: var(--text);
}
.winter-rating__counters-block {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  flex-shrink: 0;
  gap: 2px;
}
.winter-rating__counters {
  margin: 0;
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.4;
}
.winter-rating__counters strong {
  color: var(--text-muted);
  font-weight: 600;
}

.winter-rating__counters-block .winter-rating__updated {
  margin-top: 2px;
}
.winter-rating__updated {
  margin: 0;
  font-size: 11px;
  color: var(--text-muted);
  text-align: right;
}
.winter-rating__prize-respect {
  color: var(--text-muted);
}
.winter-rating__table-wrap {
  overflow-x: auto;
  margin: 0 12px 20px;
  -webkit-overflow-scrolling: touch;
  overflow-anchor: none;
}
.winter-rating__spring-placeholder {
  text-align: center;
  padding: 24px 16px;
  color: var(--text-secondary);
  line-height: 1.5;
}
.winter-rating__spring-leagues {
  margin: 0 0 20px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: hidden;
}
.winter-rating__spring-league {
  margin-bottom: 24px;
  width: 100%;
  min-width: 0;
}
.winter-rating__spring-league.winter-rating__spring-league--main {
  margin-bottom: 0;
}
.winter-rating__spring-league:last-child {
  margin-bottom: 0;
}
.winter-rating__spring-league-caption {
  margin: 0 12px 14px;
  font-size: 20px;
  font-weight: 700;
  color: #bae6fd;
  text-align: center;
}
[data-theme="light"] .winter-rating__spring-league-caption {
  color: #0369a1;
}
.spring-rating-final-countdown {
  margin: 0 12px 10px;
  padding: 0;
  font-size: 11px;
  line-height: 1.35;
  font-weight: 500;
  color: var(--text-muted, #94a3b8);
  text-align: right;
}
.spring-rating-final-countdown__line {
  display: block;
}
[data-theme="light"] .spring-rating-final-countdown {
  color: #64748b;
}
.winter-rating__table-wrap--league {
  margin-bottom: 0;
}
.winter-rating__table-wrap--league1 {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  min-width: 0;
}
.winter-rating__table--league1-prizes {
  table-layout: fixed;
  width: 100%;
  min-width: 280px;
}
/* На узких экранах таблица не сжимается — скролл по горизонтали внутри обёртки */
@media (max-width: 400px) {
  .winter-rating__table--league1-prizes {
    width: auto;
    min-width: 280px;
  }
}
.winter-rating__table--league1-prizes .winter-rating__th-place,
.winter-rating__table--league1-prizes td:nth-child(1) {
  width: 4.2em;
  min-width: 4.2em;
  box-sizing: border-box;
}
.winter-rating__table--league1-prizes .winter-rating__th-nick,
.winter-rating__table--league1-prizes td:nth-child(2) {
  width: 7em;
  min-width: 5em;
  max-width: 10em;
  box-sizing: border-box;
  overflow: hidden;
  text-overflow: ellipsis;
}
.winter-rating__table--league1-prizes .winter-rating__th-points,
.winter-rating__table--league1-prizes td:nth-child(3) {
  width: 4.2em;
  min-width: 4.2em;
  text-align: right;
  box-sizing: border-box;
}
.winter-rating__table--league1-prizes .winter-rating__th-reward,
.winter-rating__table--league1-prizes td:nth-child(4) {
  width: 6em;
  min-width: 6em;
  text-align: right;
  white-space: nowrap;
  box-sizing: border-box;
}
.winter-rating__table--league1-prizes .winter-rating__th-prize,
.winter-rating__table--league1-prizes .winter-rating__td-prize {
  width: 4em;
  min-width: 4em;
  max-width: 4em;
  white-space: nowrap;
  text-align: right;
  font-size: 0.9em;
  padding-left: 4px;
  padding-right: 8px;
  box-sizing: border-box;
}
.winter-rating__table--league1-prizes th {
  white-space: normal;
  overflow: visible;
  line-height: 1.2;
}
.winter-rating__table--league1-prizes .winter-rating__th-prize {
  white-space: nowrap;
}
.winter-rating__spring-league-share-wrap {
  margin: 12px 12px 0;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.winter-rating__table-wrap--collapsed .winter-rating__table tbody tr:nth-child(n+11) {
  display: none;
}
.winter-rating__show-all-wrap {
  margin: 0 12px 16px;
  text-align: center;
}
.winter-rating__search-wrap {
  margin: 0 12px 12px;
}
.winter-rating__search-wrap--league {
  margin: 0 12px 12px;
}
.winter-rating__search-input {
  width: 100%;
  max-width: 320px;
  display: block;
  margin: 0 auto;
  padding: 10px 14px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.4);
  border-radius: 10px;
  box-sizing: border-box;
}
.winter-rating__search-input::placeholder {
  color: var(--text-muted);
}
.winter-rating__search-input:focus {
  outline: none;
  border-color: rgba(56, 189, 248, 0.6);
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.2);
}
[data-theme="light"] .winter-rating__search-input {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(249, 115, 22, 0.4);
  color: var(--text);
}
[data-theme="light"] .winter-rating__search-input:focus {
  border-color: rgba(148, 163, 184, 0.9);
  box-shadow: none;
}
.winter-rating__show-all-btn {
  font: inherit;
  font-size: 14px;
  color: #bae6fd;
  background: none;
  border: none;
  padding: 6px 12px;
  cursor: pointer;
  text-decoration: underline;
}
[data-theme="light"] .winter-rating__show-all-btn {
  color: #0284c7;
}
.winter-rating__show-all-btn:hover {
  opacity: 0.85;
}
.winter-rating__actions-wrap {
  margin: 0 12px 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(186, 230, 253, 0.25);
  text-align: center;
}
[data-theme="light"] .winter-rating__actions-wrap {
  border-top-color: rgba(56, 189, 248, 0.3);
}
.winter-rating__subscribe-text {
  margin: 0 0 10px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.4;
}
.winter-rating__actions-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.winter-rating__admin-row--hidden {
  display: none;
}
.winter-rating__admin-btn {
  flex: 1 1 0;
  min-width: 0;
  min-height: 36px;
  padding: 6px 10px;
  box-sizing: border-box;
  border-radius: 8px;
  border: 1px dashed rgba(96, 165, 250, 0.8);
  background: rgba(15, 23, 42, 0.7);
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.winter-rating__admin-btn:disabled {
  opacity: 0.6;
  cursor: default;
}
.winter-rating__admin-hint {
  font-size: 11px;
  opacity: 0.8;
}
.winter-rating__actions-row .winter-rating__subscribe-btn,
.winter-rating__actions-row .winter-rating__share-btn {
  flex: 1 1 0;
  min-width: 0;
  min-height: 44px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.winter-rating__actions-row .winter-rating__subscribe-btn {
  box-shadow: 0 1px 4px rgba(56, 189, 248, 0.12);
}
.winter-rating__actions-row .winter-rating__share-btn {
  box-shadow: 0 4px 18px rgba(251, 191, 36, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.winter-rating__actions-row .winter-rating__share-btn:hover {
  box-shadow: 0 6px 22px rgba(251, 191, 36, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.winter-rating.spring-rating .winter-rating__actions-row .winter-rating__share-btn {
  box-shadow: 0 4px 18px rgba(251, 191, 36, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.winter-rating.spring-rating .winter-rating__actions-row .winter-rating__share-btn:hover {
  box-shadow: 0 6px 22px rgba(251, 191, 36, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
@media (max-width: 480px) {
  .winter-rating__actions-row {
    gap: 8px;
  }
  .winter-rating__actions-row .winter-rating__subscribe-btn,
  .winter-rating__actions-row .winter-rating__share-btn {
    padding: 8px 10px;
    font-size: 12px;
  }
}
.winter-rating__subscribe-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
  background: linear-gradient(135deg, #fbbf24, #f97316);
  border: 1px solid rgba(251, 191, 36, 0.9);
  border-radius: 8px;
  box-shadow: 0 4px 18px rgba(251, 191, 36, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.winter-rating__subscribe-btn .subscribe-btn__in-dev {
}
.winter-rating__subscribe-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #fde68a, #fdba74);
  border-color: rgba(251, 191, 36, 1);
  box-shadow: 0 6px 22px rgba(251, 191, 36, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.winter-rating__subscribe-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}
.winter-rating__subscribe-btn[data-subscribed="1"] {
  opacity: 0.38;
  color: rgba(186, 230, 253, 0.5);
  background: rgba(56, 189, 248, 0.08);
  border-color: rgba(186, 230, 253, 0.25);
}
.winter-rating__subscribe-btn[data-subscribed="1"]:hover {
  opacity: 0.5;
  background: rgba(56, 189, 248, 0.12);
}
.winter-rating__share-btn--copy-icon::before {
  display: none;
}
.winter-rating__share-btn--copy-icon {
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 0;
  text-align: center;
}
.winter-rating__share-btn--copy-icon .winter-rating__share-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 100%;
  height: 100%;
  padding: 8px;
  box-sizing: border-box;
}
.winter-rating__share-btn--copy-icon .winter-rating__share-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}
.winter-rating__share-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: inherit;
}
.winter-rating__share-icon svg {
  display: block;
  vertical-align: middle;
}
.winter-rating__share-btn {
  display: inline-block;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
  background: linear-gradient(135deg, #fbbf24, #f97316);
  border: 1px solid rgba(251, 191, 36, 0.9);
  border-radius: 8px;
  box-shadow: 0 4px 18px rgba(251, 191, 36, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.winter-rating__share-btn:hover {
  background: linear-gradient(135deg, #fde68a, #fdba74);
  border-color: rgba(251, 191, 36, 1);
  box-shadow: 0 6px 22px rgba(251, 191, 36, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
[data-theme="light"] .winter-rating__subscribe-btn {
  color: #0f172a;
  background: linear-gradient(135deg, #fbbf24, #f97316);
  border-color: rgba(251, 191, 36, 0.9);
  box-shadow: 0 4px 14px rgba(251, 191, 36, 0.4);
}
[data-theme="light"] .winter-rating__subscribe-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #fde68a, #fdba74);
  border-color: rgba(251, 191, 36, 1);
  box-shadow: 0 6px 20px rgba(251, 191, 36, 0.5);
}
[data-theme="light"] .winter-rating__subscribe-btn[data-subscribed="1"] {
  opacity: 0.4;
  color: rgba(3, 105, 161, 0.5);
  background: rgba(56, 189, 248, 0.06);
}
[data-theme="light"] .winter-rating__share-btn {
  color: #0f172a;
  background: linear-gradient(135deg, #fbbf24, #f97316);
  border-color: rgba(251, 191, 36, 0.9);
  box-shadow: 0 4px 14px rgba(251, 191, 36, 0.4);
}
[data-theme="light"] .winter-rating__share-btn:hover {
  background: linear-gradient(135deg, #fde68a, #fdba74);
  border-color: rgba(251, 191, 36, 1);
  box-shadow: 0 6px 20px rgba(251, 191, 36, 0.5);
}
.winter-rating__date-share {
  margin: 16px 12px 20px;
  padding: 0;
}
.winter-rating__date-share .winter-rating__date-share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0;
  border-radius: 12px;
}
.winter-rating__date-share .winter-rating__date-share-btn:not(.winter-rating__share-btn--copy-icon) {
  width: 100%;
  max-width: 100%;
  padding: 14px 20px;
  font-size: 16px;
  min-height: 50px;
}
.winter-rating__date-share .winter-rating__share-btn--copy-icon.winter-rating__date-share-btn {
  width: 44px;
  min-height: 44px;
  padding: 0;
  box-shadow: 0 4px 18px rgba(251, 191, 36, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}
.winter-rating__date-share .winter-rating__date-share-btn:hover {
  box-shadow: 0 6px 22px rgba(251, 191, 36, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}
[data-theme="light"] .winter-rating__date-share .winter-rating__date-share-btn {
  box-shadow: 0 4px 14px rgba(251, 191, 36, 0.4);
}
[data-theme="light"] .winter-rating__date-share .winter-rating__date-share-btn:hover {
  box-shadow: 0 6px 20px rgba(251, 191, 36, 0.5);
}
.winter-rating__spring-league-share-wrap .winter-rating__subscribe-btn {
  min-height: 44px;
}
.winter-rating__spring-league-share-wrap .winter-rating__share-btn:not(.winter-rating__share-btn--copy-icon) {
  border-radius: 10px;
}
.winter-rating__spring-league-share-wrap .winter-rating__share-btn.winter-rating__share-btn--copy-icon {
  width: 44px;
  min-height: 44px;
  padding: 0;
  border-radius: 12px;
  box-shadow: 0 4px 18px rgba(251, 191, 36, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}
.winter-rating__spring-league-share-wrap .winter-rating__share-btn {
  box-shadow: 0 4px 18px rgba(251, 191, 36, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}
.winter-rating__spring-league-share-wrap .winter-rating__share-btn:hover {
  box-shadow: 0 6px 22px rgba(251, 191, 36, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.winter-rating__spring-league-share-wrap .winter-rating__share-btn.winter-rating__share-btn--copy-icon:hover {
  transform: translateY(-1px);
}
.winter-rating.spring-rating .winter-rating__spring-league-share-wrap .winter-rating__share-btn {
  box-shadow: 0 4px 18px rgba(251, 191, 36, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.winter-rating.spring-rating .winter-rating__spring-league-share-wrap .winter-rating__share-btn:hover {
  box-shadow: 0 6px 22px rgba(251, 191, 36, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
[data-theme="light"] .winter-rating__spring-league-share-wrap .winter-rating__share-btn.winter-rating__share-btn--copy-icon {
  box-shadow: 0 4px 14px rgba(251, 191, 36, 0.4);
}
[data-theme="light"] .winter-rating__spring-league-share-wrap .winter-rating__share-btn.winter-rating__share-btn--copy-icon:hover {
  box-shadow: 0 6px 20px rgba(251, 191, 36, 0.5);
}
.winter-rating__nick-btn {
  font: inherit;
  font-size: inherit;
  color: #bae6fd;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-align: left;
}
.winter-rating__nick-btn:hover {
  opacity: 0.9;
}
[data-theme="light"] .winter-rating__nick-btn {
  color: #0284c7;
}

/* Модалка сводки по игроку — в стиле покерного клуба */
.winter-rating-player-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.78);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}
.winter-rating-player-modal[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
}
.winter-rating-player-modal__inner {
  position: relative;
  max-width: 100%;
  max-height: 85vh;
  overflow: auto;
  background: linear-gradient(175deg, #1a2332 0%, #0f1923 50%, #0d161c 100%);
  border-radius: 16px;
  padding: 24px 20px 20px;
  border: 1px solid rgba(212, 175, 55, 0.25);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2), 0 12px 40px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
[data-theme="light"] .winter-rating-player-modal__inner {
  background: linear-gradient(175deg, #f8fafc 0%, #f1f5f9 100%);
  border-color: rgba(249, 115, 22, 0.3);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}
.winter-rating-player-modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 0.2s ease;
}
.winter-rating-player-modal__close:hover {
  background: rgba(212, 175, 55, 0.2);
}
.winter-rating-player-modal__back {
  margin: 0 0 14px;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}
[data-theme="light"] .winter-rating-player-modal__share-btn.winter-rating__share-btn--copy-icon {
  color: #0f172a;
  background: linear-gradient(135deg, #fbbf24, #f97316);
  border-color: rgba(251, 191, 36, 0.9);
  box-shadow: 0 4px 14px rgba(251, 191, 36, 0.4);
}
[data-theme="light"] .winter-rating-player-modal__share-btn.winter-rating__share-btn--copy-icon:hover {
  background: linear-gradient(135deg, #fde68a, #fdba74);
  border-color: rgba(251, 191, 36, 1);
  box-shadow: 0 6px 20px rgba(251, 191, 36, 0.5);
}
.winter-rating-player-modal__header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.winter-rating-player-modal__title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.01em;
  min-width: 0;
}
.winter-rating-player-modal__toolbar {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 10px;
  margin-top: 0;
  margin-bottom: 12px;
  min-width: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.winter-rating-player-modal__filter {
  flex-shrink: 0;
  min-width: 0;
}
.winter-rating-player-modal__filter select {
  font-size: 14px;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background: var(--card-bg);
  color: var(--text);
  min-width: 140px;
  max-width: 100%;
}
.winter-rating-player-modal__sort {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.winter-rating-player-modal__sort button {
  font-size: 13px;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background: var(--card-bg);
  color: var(--text);
  cursor: pointer;
  white-space: nowrap;
}
.winter-rating-player-modal__sort-dir {
  min-width: 36px;
  font-size: 16px;
  line-height: 1;
}
.winter-rating-player-modal__table-wrap {
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  margin-top: 12px;
  max-width: 100%;
}
.winter-rating-player-modal__table {
  margin: 0;
}
/* Остальные колонки — в одну строку; «Турнир» с переносом (см. ниже) */
.winter-rating-player-modal__table th:not(.winter-rating-player-modal__th-tournament),
.winter-rating-player-modal__table td:not(.winter-rating-player-modal__td-tournament) {
  white-space: nowrap;
  vertical-align: top;
}
.winter-rating-player-modal__table th:first-child,
.winter-rating-player-modal__table td:first-child {
  min-width: 5.5rem;
}
.winter-rating-player-modal__table th:nth-last-child(1),
.winter-rating-player-modal__table tbody td:nth-last-child(1),
.winter-rating-player-modal__table tfoot td:nth-last-child(1) {
  text-align: right;
  min-width: 6.5rem;
}
.winter-rating-player-modal__table .winter-rating-player-modal__tr--month-start td {
  border-top: 2px solid var(--border-subtle);
  padding-top: 10px;
}
.winter-rating-player-modal__table tr.winter-rating-player-modal__tr--reward-mid td {
  background-color: rgba(251, 146, 60, 0.35);
}
.winter-rating-player-modal__table tr.winter-rating-player-modal__tr--reward-high td {
  background-color: rgba(34, 197, 94, 0.35);
}
.winter-rating-player-modal__table tfoot tr.winter-rating-player-modal__total-row td {
  border-top: 2px solid var(--border-subtle);
  padding-top: 10px;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.08);
}
.winter-rating-player-modal__table .winter-rating-player-modal__total-label {
  text-align: right;
}
.winter-rating-player-modal__table .winter-rating-player-modal__total-value {
  text-align: left;
}
.winter-rating-player-modal__empty {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
}
.winter-rating-player-modal__summary {
  margin-top: 8px;
  margin-bottom: 16px;
  padding: 12px;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  background: var(--card-bg);
}
.winter-rating-player-modal__table-label {
  margin: 0 0 8px;
  font-size: 14px;
  color: var(--text-muted);
}
.winter-rating-player-modal__summary-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  color: var(--text);
}
.winter-rating-player-modal__summary-table td {
  padding: 6px 10px 6px 0;
  vertical-align: top;
  border-bottom: 1px solid var(--border-subtle);
}
.winter-rating-player-modal__summary-table tr:last-child td {
  border-bottom: none;
}
.winter-rating-player-modal__summary-label {
  color: var(--text-muted);
}
.winter-rating-player-modal__summary-value {
  text-align: right;
  font-weight: 500;
  white-space: nowrap;
}
.winter-rating-player-modal__summary-total-row .winter-rating-player-modal__summary-label {
  font-weight: 600;
  color: var(--text);
}
.winter-rating-player-modal__summary-total-row .winter-rating-player-modal__summary-value {
  font-weight: 600;
}
.winter-rating-player-modal__summary-months-sep td {
  padding-top: 10px;
  font-weight: 600;
  color: var(--text);
  border-bottom: none;
}
.winter-rating-player-modal__summary-line {
  margin: 0 0 6px;
  font-size: 14px;
  color: var(--text);
}
.winter-rating-player-modal__summary-line:last-child {
  margin-bottom: 0;
}
.winter-rating-player-modal__summary-total {
  font-weight: 600;
  margin-bottom: 8px;
}
.winter-rating-player-modal__show-all-wrap {
  margin-top: 10px;
  text-align: center;
}
.winter-rating-player-modal__show-all-btn {
  display: inline-block;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  background: var(--block-bg);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.winter-rating-player-modal__show-all-btn:hover {
  background: var(--card-bg);
  border-color: rgba(148, 163, 184, 0.5);
}
.winter-rating-player-modal__nick-line {
  margin: 0 0 10px;
  font-size: 14px;
  color: var(--text-muted);
}
.winter-rating-player-modal__nick-line span {
  font-weight: 600;
  color: var(--text);
}
.winter-rating-player-modal__share-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.winter-rating-player-modal__share-btn.winter-rating__share-btn--copy-icon {
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #0f172a;
  background: linear-gradient(135deg, #fbbf24, #f97316);
  border: 1px solid rgba(251, 191, 36, 0.9);
  box-shadow: 0 4px 18px rgba(251, 191, 36, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  border-radius: 12px;
}
.winter-rating-player-modal__share-btn.winter-rating__share-btn--copy-icon:hover {
  background: linear-gradient(135deg, #fde68a, #fdba74);
  border-color: rgba(251, 191, 36, 1);
  box-shadow: 0 6px 22px rgba(251, 191, 36, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.winter-rating-player-modal__share-btn.winter-rating__share-btn--copy-icon::before {
  display: none;
}
.winter-rating-player-modal__share-btn {
  display: inline-block;
  font-size: 14px;
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: var(--card-bg);
  color: var(--text);
  cursor: pointer;
}
.winter-rating-player-modal__share-btn:hover {
  background: var(--block-bg);
}
.winter-rating-player-modal__share-telegram-btn {
  color: #0f172a;
  background: linear-gradient(135deg, #fbbf24, #f97316);
  border: 1px solid rgba(251, 191, 36, 0.9);
  box-shadow: 0 4px 18px rgba(251, 191, 36, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 12px;
}
.winter-rating-player-modal__share-telegram-btn:hover {
  background: linear-gradient(135deg, #fde68a, #fdba74);
  border-color: rgba(251, 191, 36, 1);
  box-shadow: 0 6px 22px rgba(251, 191, 36, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.winter-rating-player-modal__share-telegram-btn::before {
  display: none;
}
/* Колонка «Турнир» — перенос текста, без обрезки многоточием */
.winter-rating-player-modal__th-tournament,
.winter-rating-player-modal__td-tournament {
  min-width: 8rem;
  max-width: min(52vw, 280px);
  width: auto;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  word-break: break-word;
  overflow-wrap: anywhere;
  font-size: 12px;
  vertical-align: top;
}
/* «Турниры за все время»: название турнира — 6ch в одну строку (без переноса), обрезка … */
.winter-rating-player-modal--all-time .winter-rating-player-modal__td-tournament {
  min-width: 6ch;
  max-width: 6ch;
  width: 6ch;
  box-sizing: border-box;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: normal;
  overflow-wrap: normal;
}
.winter-rating-player-modal--all-time .winter-rating-player-modal__th-tournament {
  min-width: 6ch;
  max-width: 7.5ch;
  width: 7.5ch;
  box-sizing: border-box;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: normal;
  overflow-wrap: normal;
}
/* Модалка игрока в стиле газеты (при открытии из «Заносов недели») */
.winter-rating-player-modal--gazette .winter-rating-player-modal__inner {
  background: #f4e4c1;
  background-image:
    linear-gradient(rgba(139, 90, 43, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 90, 43, 0.03) 1px, transparent 1px);
  background-size: 20px 20px;
  color: #2c1810;
  font-family: Georgia, "Times New Roman", serif;
  box-shadow:
    inset 0 0 60px rgba(139, 90, 43, 0.08),
    0 8px 32px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(139, 90, 43, 0.3);
  border: none;
}
.winter-rating-player-modal--gazette .winter-rating-player-modal__close {
  background: rgba(139, 90, 43, 0.15);
  border: 1px solid rgba(139, 90, 43, 0.35);
  color: #2c1810;
}
.winter-rating-player-modal--gazette .winter-rating-player-modal__close:hover {
  background: rgba(139, 90, 43, 0.25);
}
.winter-rating-player-modal--gazette .winter-rating-player-modal__title {
  color: #2c1810;
}
.winter-rating-player-modal--gazette .winter-rating-player-modal__empty {
  color: #5c4033;
}
.winter-rating-player-modal--gazette .winter-rating-player-modal__table {
  color: #2c1810;
}
.winter-rating-player-modal--gazette .winter-rating-player-modal__table th,
.winter-rating-player-modal--gazette .winter-rating-player-modal__table td {
  border-color: rgba(139, 90, 43, 0.35);
  color: #2c1810;
}
.winter-rating-player-modal--gazette .winter-rating-player-modal__table thead th {
  color: #5c4033;
  font-weight: 700;
}
.winter-rating-player-modal--gazette .winter-rating-player-modal__table tr.winter-rating-player-modal__tr--reward-mid td {
  background-color: rgba(234, 88, 12, 0.25);
}
.winter-rating-player-modal--gazette .winter-rating-player-modal__table tr.winter-rating-player-modal__tr--reward-high td {
  background-color: rgba(22, 163, 74, 0.3);
}

/* Топ-3 рейтинга весны: подиум над таблицей */
.spring-rating-top3 {
  margin: 16px 0 20px;
  padding: 16px 12px;
  background: rgba(30, 41, 59, 0.9);
  border: 1px solid rgba(251, 191, 36, 0.35);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(251, 191, 36, 0.1);
}
.spring-rating-top3[hidden] {
  display: none !important;
}
.spring-rating-top3--league {
  margin-top: 8px;
}
.spring-rating-top3__title {
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  color: #fbbf24;
  margin-bottom: 14px;
}
.spring-rating-top3__podium {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.spring-rating-top3__card {
  position: relative;
  flex: 1;
  min-width: 0;
  max-width: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 8px;
  background: rgba(51, 65, 85, 0.8);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.spring-rating-top3__card--first {
  max-width: 130px;
  margin-bottom: 8px;
  background: rgba(51, 65, 85, 0.95);
  border-color: rgba(251, 191, 36, 0.4);
  box-shadow: 0 4px 16px rgba(251, 191, 36, 0.15);
}
.spring-rating-top3__rank {
  font-size: 14px;
  font-weight: 700;
  color: #e2e8f0;
  margin-bottom: 6px;
}
.spring-rating-top3__card--first .spring-rating-top3__rank {
  font-size: 18px;
  color: #fbbf24;
}
.spring-rating-top3__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(251, 191, 36, 0.25);
  border: 2px solid rgba(251, 191, 36, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  color: #f8fafc;
  margin-bottom: 6px;
}
.spring-rating-top3__card--first .spring-rating-top3__avatar {
  width: 56px;
  height: 56px;
  font-size: 24px;
}
.spring-rating-top3__nick {
  font-size: 12px;
  font-weight: 600;
  color: #f8fafc;
  text-align: center;
  margin-bottom: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}
.spring-rating-top3__stats {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 11px;
  color: #94a3b8;
}
.spring-rating-top3__points {
  font-weight: 600;
  color: #e2e8f0;
}
.spring-rating-top3__reward {
  color: #fbbf24;
  font-weight: 600;
}
.spring-rating-top3__nick-btn {
  position: absolute;
  inset: 0;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 12px;
}
[data-theme="light"] .spring-rating-top3 {
  background: linear-gradient(180deg, rgba(254, 243, 199, 0.95), rgba(253, 230, 138, 0.9));
  border-color: rgba(245, 158, 11, 0.4);
}
[data-theme="light"] .spring-rating-top3__title {
  color: #b45309;
}
[data-theme="light"] .spring-rating-top3__card {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(0, 0, 0, 0.08);
}
[data-theme="light"] .spring-rating-top3__card--first {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(245, 158, 11, 0.5);
}
[data-theme="light"] .spring-rating-top3__rank,
[data-theme="light"] .spring-rating-top3__nick {
  color: #1e293b;
}
[data-theme="light"] .spring-rating-top3__card--first .spring-rating-top3__rank {
  color: #b45309;
}
[data-theme="light"] .spring-rating-top3__avatar {
  background: rgba(245, 158, 11, 0.2);
  border-color: rgba(245, 158, 11, 0.5);
  color: #78350f;
}
[data-theme="light"] .spring-rating-top3__points {
  color: #475569;
}
[data-theme="light"] .spring-rating-top3__reward {
  color: #b45309;
}

/* Модалка «Рейтинг турнирщиков весны» — в стиле кнопки весны (slate + amber) */
.spring-rating-info-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
}
.spring-rating-info-modal.spring-rating-info-modal--open {
  opacity: 1;
  visibility: visible;
}
.spring-rating-info-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  cursor: pointer;
}
.spring-rating-info-modal__inner {
  position: relative;
  width: 100%;
  max-width: 360px;
  max-height: 85vh;
  overflow: auto;
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.98), rgba(51, 65, 85, 0.96));
  border-radius: 16px;
  padding: 20px 16px 20px;
  border: 1px solid rgba(251, 191, 36, 0.5);
  box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.2), 0 8px 32px rgba(0, 0, 0, 0.4), 0 4px 20px rgba(251, 191, 36, 0.12);
}

/* Модалка «Предсказание на день» — стиль похоже на весенний рейтинг, но компактнее */
.daily-prediction-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
}
.daily-prediction-modal.daily-prediction-modal--open {
  opacity: 1;
  visibility: visible;
}
.daily-prediction-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  cursor: pointer;
}
.daily-prediction-modal__inner {
  position: relative;
  width: 100%;
  max-width: 340px;
  max-height: 80vh;
  overflow: auto;
  background: radial-gradient(circle at 0 0, rgba(129, 140, 248, 0.4), transparent 60%), radial-gradient(circle at 100% 0, rgba(244, 114, 182, 0.4), transparent 60%), linear-gradient(180deg, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.96));
  border-radius: 16px;
  padding: 20px 16px 18px;
  border: 1px solid rgba(129, 140, 248, 0.7);
  box-shadow:
    0 0 0 1px rgba(129, 140, 248, 0.35),
    0 12px 40px rgba(15, 23, 42, 0.9),
    0 4px 18px rgba(129, 140, 248, 0.4);
}
.daily-prediction-modal__close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: none;
  background: rgba(15, 23, 42, 0.9);
  color: #e5e7eb;
  font-size: 20px;
  cursor: pointer;
}
.daily-prediction-modal__title {
  margin: 0 32px 10px 0;
  font-size: 16px;
  font-weight: 700;
  color: #e5e7eb;
  text-align: left;
}
.daily-prediction-modal__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #e5e7eb;
}
[data-theme="light"] .daily-prediction-modal__inner {
  background: linear-gradient(180deg, #fef9c3, #ffe4e6);
  border-color: rgba(129, 140, 248, 0.7);
  box-shadow:
    0 0 0 1px rgba(129, 140, 248, 0.35),
    0 12px 40px rgba(148, 163, 184, 0.6),
    0 4px 18px rgba(129, 140, 248, 0.4);
}
[data-theme="light"] .daily-prediction-modal__title,
[data-theme="light"] .daily-prediction-modal__text {
  color: #1f2937;
}
[data-theme="light"] .daily-prediction-modal__close {
  background: rgba(248, 250, 252, 0.9);
  color: #111827;
}
.daily-prediction-modal__actions {
  margin-top: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.daily-prediction-modal__timer {
  font-size: 11px;
  color: #9ca3af;
}
.daily-prediction-modal__share-btn {
  padding: 8px 14px;
  border-radius: 999px;
  border: none;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #ecfdf5;
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.5);
}
.daily-prediction-modal__share-btn:active {
  transform: translateY(1px);
  box-shadow: 0 2px 8px rgba(22, 163, 74, 0.6);
}
[data-theme="light"] .daily-prediction-modal__inner {
  background: linear-gradient(180deg, #fef9c3, #ffe4e6);
  border-color: rgba(129, 140, 248, 0.7);
  box-shadow:
    0 0 0 1px rgba(129, 140, 248, 0.35),
    0 12px 40px rgba(148, 163, 184, 0.6),
    0 4px 18px rgba(129, 140, 248, 0.4);
}
[data-theme="light"] .daily-prediction-modal__title,
[data-theme="light"] .daily-prediction-modal__text {
  color: #1f2937;
}
[data-theme="light"] .daily-prediction-modal__close {
  background: rgba(248, 250, 252, 0.9);
  color: #111827;
}

/* Бейдж предсказания: внизу справа внутри кнопки */
.feature__badge--bottom-right {
  top: auto;
  bottom: -4px;
  right: -4px;
}
[data-theme="light"] .daily-prediction-modal__inner {
  background: linear-gradient(180deg, #fef9c3, #ffe4e6);
  border-color: rgba(129, 140, 248, 0.7);
  box-shadow:
    0 0 0 1px rgba(129, 140, 248, 0.35),
    0 12px 40px rgba(148, 163, 184, 0.6),
    0 4px 18px rgba(129, 140, 248, 0.4);
}
[data-theme="light"] .daily-prediction-modal__title,
[data-theme="light"] .daily-prediction-modal__text {
  color: #1f2937;
}
[data-theme="light"] .daily-prediction-modal__close {
  background: rgba(248, 250, 252, 0.9);
  color: #111827;
}
.spring-rating-info-modal__close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(251, 191, 36, 0.15);
  color: #f8fafc;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.spring-rating-info-modal__close:hover {
  background: rgba(251, 191, 36, 0.28);
}
.spring-rating-info-modal__title {
  margin: 0 36px 6px 0;
  font-size: 18px;
  font-weight: 700;
  color: #f8fafc;
}
.spring-rating-info-modal__subtitle {
  margin: 0 0 14px;
  font-size: 14px;
  color: #fbbf24;
}
.spring-rating-info-modal__leagues {
  margin: 0 0 14px;
  padding: 12px;
  background: rgba(251, 191, 36, 0.08);
  border-radius: 10px;
  border: 1px solid rgba(251, 191, 36, 0.2);
}
[data-theme="light"] .spring-rating-info-modal__leagues {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.25);
}
.spring-rating-info-modal__league-block {
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.4;
  color: #e2e8f0;
}
.spring-rating-info-modal__league-block:last-child {
  margin-bottom: 0;
}
.spring-rating-info-modal__league-title {
  margin: 0 0 4px;
  font-size: 14px;
  color: #fbbf24;
}
.spring-rating-info-modal__league-sub {
  margin: 0 0 6px;
  font-size: 13px;
  color: #cbd5e1;
}
.spring-rating-info-modal__league-prizes {
  margin: 0 0 0 18px;
  padding: 0;
  list-style: disc;
  color: #e2e8f0;
}
.spring-rating-info-modal__league-prizes li {
  margin-bottom: 2px;
}
.spring-rating-info-modal__intro {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  color: #f8fafc;
}
.spring-rating-info-modal__points {
  margin: 0 0 10px;
  padding-left: 20px;
  font-size: 13px;
  line-height: 1.5;
  color: #e2e8f0;
}
.spring-rating-info-modal__note {
  margin: 0 0 12px;
  font-size: 12px;
  font-style: italic;
  color: #94a3b8;
  line-height: 1.4;
}
[data-theme="light"] .spring-rating-info-modal__inner {
  background: linear-gradient(180deg, #fef3c7 0%, #fde68a 50%, #fcd34d 100%);
  border-color: rgba(245, 158, 11, 0.55);
  box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.22), 0 8px 32px rgba(0, 0, 0, 0.15), 0 4px 20px rgba(245, 158, 11, 0.15);
}
[data-theme="light"] .spring-rating-info-modal__close {
  background: rgba(0, 0, 0, 0.08);
  color: #78350f;
}
[data-theme="light"] .spring-rating-info-modal__close:hover {
  background: rgba(0, 0, 0, 0.14);
}
[data-theme="light"] .spring-rating-info-modal__title {
  color: #78350f;
}
[data-theme="light"] .spring-rating-info-modal__subtitle {
  color: #b45309;
}
[data-theme="light"] .spring-rating-info-modal__league-block,
[data-theme="light"] .spring-rating-info-modal__league-prizes,
[data-theme="light"] .spring-rating-info-modal__points {
  color: #451a03;
}
[data-theme="light"] .spring-rating-info-modal__league-title {
  color: #b45309;
}
[data-theme="light"] .spring-rating-info-modal__league-sub {
  color: #78350f;
}
[data-theme="light"] .spring-rating-info-modal__intro {
  color: #451a03;
}
[data-theme="light"] .spring-rating-info-modal__note {
  color: #92400e;
}

/* Модалка «Рейтинг МТТ осени 2025» — осенняя палитра */
.autumn-rating-2025-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  padding-bottom: max(16px, env(safe-area-inset-bottom, 0px));
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
}
.autumn-rating-2025-modal.autumn-rating-2025-modal--open {
  opacity: 1;
  visibility: visible;
}
.autumn-rating-2025-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(28, 15, 8, 0.88);
  cursor: pointer;
}
.autumn-rating-2025-modal__inner {
  position: relative;
  width: 100%;
  max-width: 420px;
  max-height: min(90vh, 720px);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  background: linear-gradient(180deg, rgba(41, 37, 36, 0.98) 0%, rgba(28, 25, 23, 0.99) 100%);
  border-radius: 16px;
  padding: 20px 14px 22px;
  padding-top: 48px;
  border: 1px solid rgba(251, 146, 60, 0.45);
  box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.15), 0 12px 40px rgba(0, 0, 0, 0.5), 0 4px 24px rgba(234, 88, 12, 0.15);
}
.autumn-rating-2025-modal__close {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.35);
  color: #fde68a;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}
.autumn-rating-2025-modal__close:hover {
  background: rgba(251, 146, 60, 0.25);
  color: #fff;
}
.autumn-rating-2025-modal__title {
  margin: 0 0 6px;
  padding: 0 32px;
  font-size: 17px;
  font-weight: 800;
  color: #fed7aa;
  letter-spacing: 0.02em;
  text-align: center;
}
.autumn-rating-2025-modal__subtitle {
  margin: 0 0 14px;
  font-size: 14px;
  color: #fdba74;
  text-align: center;
  line-height: 1.4;
}
.autumn-rating-2025-modal__figure {
  margin: 0 0 16px;
  padding: 0;
  text-align: center;
}
.autumn-rating-2025-modal__photo {
  display: block;
  width: 100%;
  max-width: 280px;
  height: auto;
  margin: 0 auto;
  border-radius: 12px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(251, 191, 36, 0.25);
}
.autumn-rating-2025-modal__figcaption {
  margin-top: 8px;
  font-size: 11px;
  color: #a8a29e;
  line-height: 1.35;
}
.autumn-rating-2025-modal__prose {
  margin-bottom: 16px;
}
.autumn-rating-2025-modal__prose p {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.55;
  color: #e7e5e4;
}
.autumn-rating-2025-modal__prose p:last-child {
  margin-bottom: 0;
}
.autumn-rating-2025-modal__top-heading {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 800;
  color: #fdba74;
  text-align: center;
}
.autumn-rating-2025-modal__top-hint {
  margin: 0 0 10px;
  font-size: 11px;
  color: #a8a29e;
  text-align: center;
}
.autumn-rating-2025-modal__table-wrap {
  overflow-x: auto;
  margin: 0 -4px;
  border-radius: 10px;
  border: 1px solid rgba(251, 146, 60, 0.2);
  background: rgba(0, 0, 0, 0.2);
}
.autumn-rating-2025-modal__table {
  width: 100%;
  min-width: 300px;
  border-collapse: collapse;
  font-size: 11px;
  color: #f5f5f4;
}
.autumn-rating-2025-modal__table th,
.autumn-rating-2025-modal__table td {
  padding: 8px 6px;
  text-align: left;
  border-bottom: 1px solid rgba(120, 113, 108, 0.35);
  vertical-align: top;
}
.autumn-rating-2025-modal__table th {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #fdba74;
  background: rgba(154, 52, 18, 0.25);
}
.autumn-rating-2025-modal__table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.03);
}
.autumn-rating-2025-modal__table tbody tr:first-child td {
  font-weight: 700;
  color: #fde68a;
}
.autumn-rating-2025-modal__table td:first-child {
  font-weight: 700;
  color: #fdba74;
  width: 1.75em;
}
[data-theme="light"] .autumn-rating-2025-modal__backdrop {
  background: rgba(67, 20, 7, 0.45);
}
[data-theme="light"] .autumn-rating-2025-modal__inner {
  background: linear-gradient(180deg, #fffbeb 0%, #ffedd5 40%, #fed7aa 100%);
  border-color: rgba(234, 88, 12, 0.4);
  box-shadow: 0 8px 32px rgba(154, 52, 18, 0.2);
}
[data-theme="light"] .autumn-rating-2025-modal__close {
  background: rgba(255, 255, 255, 0.85);
  color: #9a3412;
}
[data-theme="light"] .autumn-rating-2025-modal__title {
  color: #9a3412;
}
[data-theme="light"] .autumn-rating-2025-modal__subtitle {
  color: #c2410c;
}
[data-theme="light"] .autumn-rating-2025-modal__figcaption {
  color: #78716c;
}
[data-theme="light"] .autumn-rating-2025-modal__prose p {
  color: #44403c;
}
[data-theme="light"] .autumn-rating-2025-modal__top-heading {
  color: #c2410c;
}
[data-theme="light"] .autumn-rating-2025-modal__top-hint {
  color: #78716c;
}
[data-theme="light"] .autumn-rating-2025-modal__table-wrap {
  border-color: rgba(234, 88, 12, 0.25);
  background: rgba(255, 255, 255, 0.6);
}
[data-theme="light"] .autumn-rating-2025-modal__table {
  color: #292524;
}
[data-theme="light"] .autumn-rating-2025-modal__table th,
[data-theme="light"] .autumn-rating-2025-modal__table td {
  border-bottom-color: rgba(251, 146, 60, 0.25);
}
[data-theme="light"] .autumn-rating-2025-modal__table th {
  color: #9a3412;
  background: rgba(254, 215, 170, 0.6);
}
[data-theme="light"] .autumn-rating-2025-modal__table tbody tr:nth-child(even) {
  background: rgba(255, 247, 237, 0.5);
}
[data-theme="light"] .autumn-rating-2025-modal__table tbody tr:first-child td {
  color: #b45309;
}

/* Модалки «Кубок лета 2024/2025» — оболочка: небо, солнце, бирюза */
.summer-rating-2024-modal,
.summer-rating-2025-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  padding-bottom: max(16px, env(safe-area-inset-bottom, 0px));
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
}
.summer-rating-2024-modal.summer-rating-2024-modal--open,
.summer-rating-2025-modal.summer-rating-2025-modal--open {
  opacity: 1;
  visibility: visible;
}
.summer-rating-2024-modal__backdrop,
.summer-rating-2025-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 44, 62, 0.88);
  cursor: pointer;
}
.summer-rating-2024-modal__inner,
.summer-rating-2025-modal__inner {
  position: relative;
  width: 100%;
  max-width: 420px;
  max-height: min(90vh, 760px);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  background: linear-gradient(180deg, rgba(21, 94, 117, 0.97) 0%, rgba(15, 23, 42, 0.98) 55%, rgba(30, 41, 59, 0.99) 100%);
  border-radius: 16px;
  padding: 20px 14px 22px;
  padding-top: 48px;
  border: 1px solid rgba(34, 211, 238, 0.45);
  box-shadow: 0 0 0 1px rgba(253, 224, 71, 0.12), 0 12px 40px rgba(0, 0, 0, 0.45), 0 4px 28px rgba(34, 211, 238, 0.12);
}
.summer-rating-2024-modal__close,
.summer-rating-2025-modal__close {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.3);
  color: #fef08a;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}
.summer-rating-2024-modal__close:hover,
.summer-rating-2025-modal__close:hover {
  background: rgba(34, 211, 238, 0.25);
  color: #fff;
}
.summer-rating-2024-modal__title,
.summer-rating-2025-modal__title {
  margin: 0 0 6px;
  padding: 0 32px;
  font-size: 17px;
  font-weight: 800;
  color: #fef08a;
  letter-spacing: 0.02em;
  text-align: center;
}
.summer-rating-2024-modal__subtitle,
.summer-rating-2025-modal__subtitle {
  margin: 0 0 14px;
  font-size: 14px;
  color: #a5f3fc;
  text-align: center;
  line-height: 1.4;
}
/* Лето 2024: модалка с фото кубка */
.summer-rating-2024-modal__inner {
  max-height: min(90vh, 760px);
}
.summer-rating-2024-modal__figure {
  margin: 0 0 16px;
  padding: 0;
  text-align: center;
}
.summer-rating-2024-modal__photo {
  display: block;
  width: 100%;
  max-width: 300px;
  height: auto;
  margin: 0 auto;
  border-radius: 12px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(253, 224, 71, 0.25);
}
.summer-rating-2024-modal__figcaption {
  margin-top: 8px;
  font-size: 11px;
  color: #94a3b8;
  line-height: 1.35;
}
.summer-rating-2025-modal__figure {
  margin: 0 0 16px;
  padding: 0;
  text-align: center;
}
.summer-rating-2025-modal__photo {
  display: block;
  width: 100%;
  max-width: 280px;
  height: auto;
  margin: 0 auto;
  border-radius: 12px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(253, 224, 71, 0.25);
}
.summer-rating-2025-modal__figcaption {
  margin-top: 8px;
  font-size: 11px;
  color: #94a3b8;
  line-height: 1.35;
}
.summer-rating-2025-modal__prose {
  margin-bottom: 18px;
}
.summer-rating-2025-modal__prose p {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.55;
  color: #e2e8f0;
}
.summer-rating-2025-modal__prose p:last-child {
  margin-bottom: 0;
}
.summer-rating-2025-modal__totals-heading {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 800;
  color: #fef08a;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.summer-rating-2025-modal__podium {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 18px;
}
.summer-rating-2025-modal__place {
  padding: 12px 12px 10px;
  border-radius: 12px;
  border: 1px solid rgba(34, 211, 238, 0.22);
  background: rgba(0, 0, 0, 0.18);
}
.summer-rating-2025-modal__place--1 {
  border-color: rgba(253, 224, 71, 0.45);
  background: linear-gradient(135deg, rgba(120, 53, 15, 0.35), rgba(15, 23, 42, 0.5));
}
.summer-rating-2025-modal__place--2 {
  border-color: rgba(148, 163, 184, 0.35);
}
.summer-rating-2025-modal__place--3 {
  border-color: rgba(180, 83, 9, 0.35);
}
.summer-rating-2025-modal__place-line {
  margin: 0 0 8px;
  font-size: 13px;
  line-height: 1.4;
  color: #f8fafc;
}
.summer-rating-2025-modal__bullets {
  margin: 0;
  padding-left: 1.1em;
  font-size: 12px;
  line-height: 1.5;
  color: #cbd5e1;
}
.summer-rating-2025-modal__bullets li {
  margin-bottom: 4px;
}
.summer-rating-2025-modal__rest-wrap {
  border-radius: 10px;
  border: 1px solid rgba(34, 211, 238, 0.2);
  background: rgba(0, 0, 0, 0.15);
  padding: 12px 14px;
}
.summer-rating-2025-modal__rest-title {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  color: #a5f3fc;
  text-align: center;
}
.summer-rating-2025-modal__rest-list {
  margin: 0;
  padding-left: 1.35em;
  font-size: 12px;
  line-height: 1.55;
  color: #e2e8f0;
}
.summer-rating-2025-modal__rest-list li {
  margin-bottom: 4px;
}
[data-theme="light"] .summer-rating-2024-modal__backdrop,
[data-theme="light"] .summer-rating-2025-modal__backdrop {
  background: rgba(14, 116, 144, 0.35);
}
[data-theme="light"] .summer-rating-2024-modal__inner,
[data-theme="light"] .summer-rating-2025-modal__inner {
  background: linear-gradient(180deg, #f0fdfa 0%, #ccfbf1 40%, #99f6e4 100%);
  border-color: rgba(6, 182, 212, 0.45);
  box-shadow: 0 8px 32px rgba(14, 116, 144, 0.15);
}
[data-theme="light"] .summer-rating-2024-modal__close,
[data-theme="light"] .summer-rating-2025-modal__close {
  background: rgba(255, 255, 255, 0.9);
  color: #0e7490;
}
[data-theme="light"] .summer-rating-2024-modal__title,
[data-theme="light"] .summer-rating-2025-modal__title {
  color: #b45309;
}
[data-theme="light"] .summer-rating-2024-modal__subtitle,
[data-theme="light"] .summer-rating-2025-modal__subtitle {
  color: #0e7490;
}
[data-theme="light"] .summer-rating-2024-modal__figcaption,
[data-theme="light"] .summer-rating-2025-modal__figcaption {
  color: #64748b;
}
[data-theme="light"] .summer-rating-2025-modal__prose p {
  color: #334155;
}
[data-theme="light"] .summer-rating-2025-modal__totals-heading {
  color: #c2410c;
}
[data-theme="light"] .summer-rating-2025-modal__place {
  background: rgba(255, 255, 255, 0.65);
  border-color: rgba(6, 182, 212, 0.3);
}
[data-theme="light"] .summer-rating-2025-modal__place--1 {
  background: linear-gradient(135deg, rgba(254, 243, 199, 0.9), rgba(255, 255, 255, 0.85));
  border-color: rgba(245, 158, 11, 0.4);
}
[data-theme="light"] .summer-rating-2025-modal__place-line {
  color: #0f172a;
}
[data-theme="light"] .summer-rating-2025-modal__bullets {
  color: #475569;
}
[data-theme="light"] .summer-rating-2025-modal__rest-wrap {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(6, 182, 212, 0.28);
}
[data-theme="light"] .summer-rating-2025-modal__rest-title {
  color: #0e7490;
}
[data-theme="light"] .summer-rating-2025-modal__rest-list {
  color: #334155;
}

/* Модалка «Весна 2024» — Рыбнадзор, кубок турнирщика весны */
.spring-rating-2024-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  padding-bottom: max(16px, env(safe-area-inset-bottom, 0px));
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
}
.spring-rating-2024-modal.spring-rating-2024-modal--open {
  opacity: 1;
  visibility: visible;
}
.spring-rating-2024-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 40, 28, 0.88);
  cursor: pointer;
}
.spring-rating-2024-modal__inner {
  position: relative;
  width: 100%;
  max-width: 400px;
  max-height: min(88vh, 640px);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  background: linear-gradient(180deg, rgba(6, 78, 59, 0.97) 0%, rgba(15, 23, 42, 0.98) 100%);
  border-radius: 16px;
  padding: 20px 14px 22px;
  padding-top: 48px;
  border: 1px solid rgba(52, 211, 153, 0.45);
  box-shadow: 0 0 0 1px rgba(167, 243, 208, 0.12), 0 12px 40px rgba(0, 0, 0, 0.45);
}
.spring-rating-2024-modal__close {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.3);
  color: #a7f3d0;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}
.spring-rating-2024-modal__close:hover {
  background: rgba(52, 211, 153, 0.25);
  color: #fff;
}
.spring-rating-2024-modal__title {
  margin: 0 0 6px;
  padding: 0 32px;
  font-size: 17px;
  font-weight: 800;
  color: #a7f3d0;
  letter-spacing: 0.02em;
  text-align: center;
}
.spring-rating-2024-modal__subtitle {
  margin: 0 0 14px;
  font-size: 14px;
  color: #6ee7b7;
  text-align: center;
  line-height: 1.4;
}
.spring-rating-2024-modal__figure {
  margin: 0 0 16px;
  padding: 0;
  text-align: center;
}
.spring-rating-2024-modal__photo {
  display: block;
  width: 100%;
  max-width: 260px;
  height: auto;
  margin: 0 auto;
  border-radius: 12px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(52, 211, 153, 0.25);
}
.spring-rating-2024-modal__figcaption {
  margin-top: 8px;
  font-size: 11px;
  color: #94a3b8;
  line-height: 1.35;
}
.spring-rating-2024-modal__prose {
  margin: 0;
}
.spring-rating-2024-modal__prose p {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  font-weight: 600;
  color: #ecfdf5;
  text-align: center;
}
[data-theme="light"] .spring-rating-2024-modal__backdrop {
  background: rgba(6, 95, 70, 0.35);
}
[data-theme="light"] .spring-rating-2024-modal__inner {
  background: linear-gradient(180deg, #ecfdf5 0%, #d1fae5 50%, #a7f3d0 100%);
  border-color: rgba(5, 150, 105, 0.4);
}
[data-theme="light"] .spring-rating-2024-modal__close {
  background: rgba(255, 255, 255, 0.9);
  color: #047857;
}
[data-theme="light"] .spring-rating-2024-modal__title {
  color: #065f46;
}
[data-theme="light"] .spring-rating-2024-modal__subtitle {
  color: #047857;
}
[data-theme="light"] .spring-rating-2024-modal__figcaption {
  color: #64748b;
}
[data-theme="light"] .spring-rating-2024-modal__prose p {
  color: #14532d;
}

/* Модалка карточки пользователя в чате */
.chat-user-modal {
  position: fixed;
  inset: 0;
  z-index: 10060;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
}

/* Модалка шаблонов сообщений */
.chat-templates-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
}
.chat-templates-modal.chat-templates-modal--open {
  opacity: 1;
  visibility: visible;
}
.chat-templates-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  cursor: pointer;
}
.chat-templates-modal__inner {
  position: relative;
  max-width: 100%;
  width: 360px;
  max-height: 85vh;
  overflow: hidden;
  background: var(--block-bg-solid, #1e293b);
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
}
.chat-templates-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 14px 10px;
  border-bottom: 1px solid var(--border-subtle);
}
.chat-templates-modal__title {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
}
.chat-templates-modal__header-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
.chat-templates-modal__icon-btn {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: rgba(168, 85, 247, 0.15);
  color: var(--text);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.chat-templates-modal__icon-btn:hover { background: rgba(168, 85, 247, 0.25); }
.chat-templates-modal__body {
  padding: 10px 12px 12px;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}
.chat-templates-modal__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.chat-templates-modal__item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.chat-templates-modal__item-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 12px;
  border: none;
  background: none;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  min-width: 0;
}
.chat-templates-modal__item-main:hover { background: rgba(255, 255, 255, 0.06); }
.chat-templates-modal__item-title {
  font-weight: 800;
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  flex: 1;
}
.chat-templates-modal__item-arrow {
  flex-shrink: 0;
  opacity: 0.8;
}
.chat-templates-modal__item-btn {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 14px;
  cursor: pointer;
}
.chat-templates-modal__item-btn:hover { background: rgba(255, 255, 255, 0.14); }
.chat-templates-modal__item-btn--edit { background: rgba(168, 85, 247, 0.2); }
.chat-templates-modal__item-btn--edit:hover { background: rgba(168, 85, 247, 0.35); }
.chat-templates-modal__item-btn--delete { background: rgba(239, 68, 68, 0.2); color: #fca5a5; }
.chat-templates-modal__item-btn--delete:hover { background: rgba(239, 68, 68, 0.35); }
.chat-templates-modal__empty {
  margin: 0;
  padding: 10px 2px;
  color: var(--text-muted);
  font-size: 13px;
}
.chat-templates-modal__form {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.chat-templates-modal__form--hidden { display: none !important; }
.chat-templates-modal__label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
}
.chat-templates-modal__input,
.chat-templates-modal__textarea {
  width: 100%;
  box-sizing: border-box;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  padding: 10px 10px;
  font-family: inherit;
  font-size: 14px;
}
.chat-templates-modal__textarea { resize: vertical; min-height: 180px; }
.chat-templates-modal__form-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}
.chat-templates-modal__btn {
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 10px 12px;
  font-weight: 800;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}
.chat-templates-modal__btn:hover { background: rgba(255, 255, 255, 0.10); }
.chat-templates-modal__btn--primary {
  background: rgba(168, 85, 247, 0.25);
  border-color: rgba(168, 85, 247, 0.45);
}
.chat-templates-modal__btn--primary:hover { background: rgba(168, 85, 247, 0.35); }
.chat-templates-modal__btn--ghost {
  background: transparent;
}
.chat-templates-modal__hint {
  margin: 0;
  min-height: 16px;
  font-size: 12px;
  color: var(--text-muted);
}
.chat-user-modal.chat-user-modal--open {
  opacity: 1;
  visibility: visible;
}
.chat-user-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  cursor: pointer;
}
.chat-user-modal__inner {
  position: relative;
  max-width: 100%;
  width: 320px;
  max-height: 85vh;
  overflow-y: auto;
  overflow-x: hidden;
  background: var(--block-bg-solid, #1e293b);
  border-radius: 12px;
  padding: 20px 16px 16px;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}
.chat-user-modal__intro {
  margin: 0 0 10px;
  font-size: 12px;
  color: var(--text-muted);
}
.chat-user-modal__level {
  text-align: center;
  margin-bottom: 12px;
}
.chat-user-modal__level-img {
  display: block;
  width: 64px;
  height: auto;
  margin: 0 auto 6px;
  border-radius: 8px;
}
.chat-user-modal__level-text {
  margin: 0;
  font-size: 14px;
  color: var(--text);
}
.chat-user-modal__respect {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--text-muted);
}
.chat-user-modal__respect-val {
  font-weight: 600;
  color: var(--text);
}
.chat-user-modal__status {
  margin: 12px 0;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
}
.chat-user-modal__status-title {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}
.chat-user-modal__status-scale {
  display: flex;
  align-items: center;
  gap: 8px;
}
.chat-user-modal__status-card {
  flex-shrink: 0;
  font-size: 12px;
  color: var(--text-muted);
}
.chat-user-modal__status-track {
  position: relative;
  flex: 1;
  height: 20px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
}
.chat-user-modal__status-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: calc(var(--status-value, 0) * 1%);
  max-width: 100%;
  background: var(--accent);
  border-radius: 10px;
  transition: width 0.35s ease-out;
}
.chat-user-modal__status-fish {
  position: absolute;
  left: calc(var(--status-value, 0) * 1%);
  top: 50%;
  transform: translate(-50%, -50%) scaleX(-1);
  font-size: 18px;
  line-height: 1;
  transition: left 0.35s ease-out;
  pointer-events: none;
}
.chat-user-modal__section {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
}
.chat-user-modal__section-title {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}
.chat-user-modal__placeholder {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}
.chat-user-modal__personal-block {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
}
.chat-user-modal__personal-block--hidden {
  display: none;
}
.chat-user-modal__personal-block .chat-user-modal__personal {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--text);
}
.chat-user-modal__friends-row {
  margin-top: 16px;
}
.chat-user-modal__friends-btn {
  width: 100%;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  cursor: pointer;
  box-sizing: border-box;
}
.chat-user-modal__friends-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}
.chat-user-modal__actions {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}
.chat-user-modal__actions .chat-user-modal__respect-actions {
  margin-bottom: 12px;
}
.chat-user-modal__actions .chat-user-modal__friend-row {
  margin-top: 0;
}
.chat-user-modal__actions .chat-user-modal__write-btn {
  margin-top: 12px;
}
.chat-user-modal__close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.chat-user-modal__close:hover {
  background: rgba(255, 255, 255, 0.2);
}
.chat-user-modal__header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 4px;
}
.chat-user-modal__avatar-wrap {
  position: relative;
  flex-shrink: 0;
}
.chat-user-modal__avatar-wrap .chat-user-modal__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}
.chat-user-modal__avatar-wrap .chat-user-modal__avatar--placeholder {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  background: rgba(148, 163, 184, 0.25);
}
.chat-user-modal__title {
  margin: 0 32px 12px 0;
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
}
.chat-user-modal__p21 {
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--text-muted);
}
.chat-user-modal__personal-and-respect {
  margin-bottom: 16px;
}
.chat-user-modal__personal {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--text);
  white-space: pre-wrap;
  word-break: break-word;
}
.chat-user-modal__respect-actions {
  display: flex;
  gap: 8px;
  margin-bottom: 0;
}
.chat-user-modal__respect-btn {
  flex: 1;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  background: var(--block-bg-solid);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  cursor: pointer;
  box-sizing: border-box;
}
.chat-user-modal__respect-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.1);
}
.chat-user-modal__respect-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.chat-user-modal__friend-row {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.chat-user-modal__friend-btn {
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  background: var(--block-bg-solid);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  cursor: pointer;
  box-sizing: border-box;
}
.chat-user-modal__friend-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.1);
}
.chat-user-modal__friend-btn:disabled,
.chat-user-modal__friend-btn--added {
  opacity: 0.6;
  cursor: default;
}
.chat-user-modal__friend-msg {
  font-size: 13px;
  color: var(--accent-2);
  display: none;
}
.chat-user-modal__write-btn {
  width: 100%;
  padding: 10px 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--btn-on-accent);
  background: var(--accent);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  box-sizing: border-box;
}
.chat-user-modal__write-btn:hover {
  filter: brightness(1.08);
}

.winter-rating__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
/* Модалка игрока: таблица может шире экрана — горизонтальный скролл в обёртке */
.winter-rating-player-modal__table.winter-rating__table {
  width: max-content;
  min-width: 100%;
  table-layout: auto;
}
/* Итоговая таблица — крупный шрифт */
#winterRatingTableWrap .winter-rating__table {
  font-size: 16px;
}
#winterRatingTableWrap .winter-rating__table th,
#winterRatingTableWrap .winter-rating__table td {
  padding: 10px 12px;
}
.winter-rating__table th,
.winter-rating__table td {
  padding: 8px 10px;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
}
.winter-rating__table tr.winter-rating__row--gold {
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.2), transparent);
}
.winter-rating__table tr.winter-rating__row--gold td:first-child {
  font-weight: 700;
}
.winter-rating__table tr.winter-rating__row--silver {
  background: linear-gradient(90deg, rgba(192, 192, 192, 0.2), transparent);
}
.winter-rating__table tr.winter-rating__row--silver td:first-child {
  font-weight: 600;
}
.winter-rating__table tr.winter-rating__row--bronze {
  background: linear-gradient(90deg, rgba(205, 127, 50, 0.2), transparent);
}
.winter-rating__table tr.winter-rating__row--bronze td:first-child {
  font-weight: 600;
}
.winter-rating__table tr.winter-rating__row--gold {
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.2) 0%, transparent 100%);
}
.winter-rating__table tr.winter-rating__row--silver {
  background: linear-gradient(90deg, rgba(192, 192, 192, 0.25) 0%, transparent 100%);
}
.winter-rating__table tr.winter-rating__row--bronze {
  background: linear-gradient(90deg, rgba(205, 127, 50, 0.2) 0%, transparent 100%);
}
.winter-rating__table tr.winter-rating__row--gold .winter-rating__place-medal,
.winter-rating__table tr.winter-rating__row--silver .winter-rating__place-medal,
.winter-rating__table tr.winter-rating__row--bronze .winter-rating__place-medal {
  font-size: 1.1em;
}
.winter-rating__table th {
  font-weight: 600;
  color: var(--text-muted);
}
.winter-rating__table td {
  color: var(--text);
}
.winter-rating__table tbody tr:last-child td {
  border-bottom: none;
}
.winter-rating__table-total-row td {
  border-top: 1px solid var(--border-subtle);
  font-weight: 600;
  color: var(--text-muted);
  padding-top: 10px;
}
/* Итоговая таблица: последняя колонка «Приз» компактно */
#winterRatingTableOverall th:last-child,
#winterRatingTableOverall td:last-child {
  white-space: nowrap;
  text-align: right;
  padding-left: 6px;
  padding-right: 8px;
  min-width: 0;
  width: 1%;
}
#winterRatingTableOverall th:last-child {
  padding-right: 10px;
}
.winter-rating__week-tops-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 12px 10px;
}
.winter-rating-week__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0;
  background: none;
  border: none;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.winter-rating-week__summary {
  font-size: 12px;
  color: var(--text-muted);
  margin-left: 6px;
  white-space: nowrap;
}
.winter-rating-week__toggle::after {
  content: "▾";
  font-size: 12px;
  opacity: 0.7;
  margin-left: 4px;
}
.winter-rating-week--collapsed .winter-rating-week__toggle::after {
  transform: rotate(-90deg);
}
.winter-rating-week__body[hidden] {
  display: none !important;
}
.winter-rating__single-top-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 8px 12px 16px;
}
.winter-rating__single-top-wrap {
  flex: 1;
  min-width: 180px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.55);
  background: rgba(15, 23, 42, 0.6);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.35);
}
.winter-rating__single-top-wrap--march[hidden] {
  display: none !important;
}
.winter-rating__past-week-section {
  margin: 16px 12px 20px;
  padding: 12px 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.12), transparent 55%),
    radial-gradient(circle at bottom right, rgba(52, 211, 153, 0.12), transparent 55%),
    rgba(15, 23, 42, 0.7);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.65);
}
.winter-rating__past-week-section[hidden] {
  display: none !important;
}
.winter-rating__past-week-heading {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}
.winter-rating__past-week-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
}
.winter-rating__past-week-row .winter-rating__past-week-wrap {
  flex: 1;
  min-width: 0;
  margin: 0;
}
.winter-rating__past-week-row .winter-rating__past-week-title {
  font-size: 12px;
}
.winter-rating__past-week-row .winter-rating__single-top-list {
  font-size: 11px;
}
.winter-rating__past-week-wrap {
  margin: 8px 12px 16px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.55);
  background: rgba(15, 23, 42, 0.6);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.35);
}
.winter-rating__past-week-wrap[hidden] {
  display: none !important;
}
.winter-rating__past-week-title {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}
.winter-rating__past-week-total {
  margin: 8px 0 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.winter-rating__past-week-total--below {
  margin: 10px 0 0;
}
[data-theme="light"] .winter-rating__past-week-wrap {
  background: rgba(248, 250, 252, 0.9);
  border-color: rgba(148, 163, 184, 0.5);
}
.winter-rating__single-top--sublabel {
  margin-top: 6px;
  font-size: 12px;
  font-weight: 600;
}
.winter-rating__single-top {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 600;
}
.winter-rating__single-top--title {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
}
.winter-rating__single-top-link {
  display: inline-block;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 6px 8px;
  text-align: left;
  font: inherit;
  font-size: 12px;
  color: var(--text);
  background: rgba(30, 41, 59, 0.45);
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 8px;
  cursor: pointer;
  white-space: normal;
  word-break: break-word;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.winter-rating__single-top-link:hover,
.winter-rating__single-top-link:focus-visible {
  background: rgba(51, 65, 85, 0.65);
  border-color: rgba(251, 191, 36, 0.45);
  outline: none;
}
/* Топ заносов: места без привязанного скрина — тот же вид, без клика */
.winter-rating__single-top-static {
  display: inline-block;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 6px 8px;
  text-align: left;
  font: inherit;
  font-size: 12px;
  color: var(--text);
  background: rgba(30, 41, 59, 0.35);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 8px;
  cursor: default;
  white-space: normal;
  word-break: break-word;
  box-sizing: border-box;
}
.winter-rating__single-top-expand {
  margin-top: 8px;
  padding: 8px 12px;
  width: 100%;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  background: rgba(30, 58, 95, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.4);
  border-radius: 8px;
  cursor: pointer;
}
.winter-rating__single-top-expand:hover {
  border-color: rgba(251, 191, 36, 0.4);
}
.winter-rating__single-top-more {
  margin-top: 6px;
}
.winter-rating__single-top-more[hidden] {
  display: none !important;
}
.winter-rating__single-top-list {
  margin: 0;
  padding-left: 0;
  font-size: 12px;
  list-style: none;
}
.winter-rating__single-top-item {
  margin: 0 0 2px;
  white-space: nowrap;
}

/* Топ-15: карточка по центру (рейтинг + зал славы) */
#winterRatingSingleTopWrap,
.view[data-view="hall-of-fame"] .hall-of-fame__single-top-wrap {
  margin-left: auto;
  margin-right: auto;
  flex: 0 1 auto;
  width: 100%;
  max-width: 420px;
}


.view[data-view="hall-of-fame"] .hall-of-fame__blog-top15-copy-wrap {
  align-items: center;
}
.view[data-view="hall-of-fame"] .hall-of-fame__blog-top15-copy-hint {
  text-align: center;
}

.winter-rating__week-tops-hint {
  margin: 12px 12px 0;
  font-size: 12px;
  color: var(--text-muted);
}
.winter-rating.spring-rating .winter-rating__week-tops-hint,
.winter-rating.spring-rating .winter-rating__week-tops-row {
  display: none;
}
.winter-rating__week-top-btn {
  flex: 1;
  min-width: 140px;
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  background: rgba(22, 45, 65, 0.5);
  border: 1px solid rgba(186, 230, 253, 0.22);
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.winter-rating__week-top-btn:hover {
  background: rgba(212, 175, 55, 0.12);
  border-color: rgba(212, 175, 55, 0.35);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
[data-theme="light"] .winter-rating__week-top-btn {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(56, 189, 248, 0.3);
}
[data-theme="light"] .winter-rating__week-top-btn:hover {
  background: rgba(56, 189, 248, 0.08);
  border-color: rgba(56, 189, 248, 0.45);
}
.winter-rating__week-top-btn-label {
  display: block;
  font-weight: 700;
}
.winter-rating__week-top-btn-preview {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
}
.winter-rating__week-top-preview-line {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.winter-rating__week-top-preview-ellipsis {
  display: block;
  margin-top: 2px;
}
.winter-rating__week-top-list {
  font-size: 13px;
  line-height: 1.6;
}
.winter-rating__week-top-item {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 4px 0;
  border-bottom: 1px dotted rgba(148, 163, 184, 0.25);
}
.winter-rating__week-top-item:last-child {
  border-bottom: none;
}
.winter-rating__week-top-num {
  font-weight: 700;
  color: var(--text-muted);
  min-width: 1.2em;
}
.winter-rating__week-top-list .winter-rating__nick-btn {
  flex: 1;
  min-width: 0;
  text-align: left;
}
.winter-rating__week-top-reward {
  font-weight: 700;
  color: #bae6fd;
  white-space: nowrap;
}
[data-theme="light"] .winter-rating__week-top-reward {
  color: #0284c7;
}
.winter-rating__week-top-empty {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}

/* Модалка «Топы за неделю» — в стиле покерного клуба */
.winter-rating-week-top-modal {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}
.winter-rating-week-top-modal[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
}
.winter-rating-week-top-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  cursor: pointer;
}
.winter-rating-week-top-modal__inner {
  position: relative;
  width: 100%;
  max-width: 380px;
  max-height: 80vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: linear-gradient(175deg, #0b1220 0%, #020617 100%);
  border: 1px solid rgba(148, 163, 184, 0.4);
  border-radius: 16px;
  padding: 24px 20px 20px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
[data-theme="light"] .winter-rating-week-top-modal__inner {
  background: linear-gradient(175deg, #f8fafc 0%, #f1f5f9 100%);
  border-color: rgba(148, 163, 184, 0.55);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}
.winter-rating-week-top-modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}
.winter-rating-week-top-modal__close:hover {
  background: rgba(212, 175, 55, 0.2);
}
.winter-rating-week-top-modal__title {
  margin: 0 40px 14px 0;
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.01em;
}
.winter-rating-week-top-modal__prize {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.4;
}
.winter-rating-week-top-modal__list {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.winter-rating-week-top-modal__list--with-prize .winter-rating__week-top-header {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 4px 0 6px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.35);
  margin-bottom: 2px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.winter-rating-week-top-modal__list--with-prize .winter-rating__week-top-header-nick {
  flex: 1;
  min-width: 0;
}
.winter-rating-week-top-modal__list--with-prize .winter-rating__week-top-item {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.winter-rating-week-top-modal__list--with-prize .winter-rating__week-top-item .winter-rating__nick-btn {
  flex: 1;
  min-width: 0;
}
.winter-rating-week-top-modal__list--with-prize .winter-rating__week-top-prize {
  font-weight: 700;
  color: var(--accent, #d4af37);
  white-space: nowrap;
  min-width: 4.5em;
  text-align: right;
}
.winter-rating-week-top-modal__list--with-prize .winter-rating__week-top-header-prize {
  min-width: 4.5em;
  text-align: right;
}
.winter-rating-week-top-modal__share-row {
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
}
.winter-rating-week-top-modal__share-btn.winter-rating__share-btn--copy-icon {
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  justify-content: center;
  color: #0f172a;
  background: linear-gradient(135deg, #fbbf24, #f97316);
  border: 1px solid rgba(251, 191, 36, 0.9);
  box-shadow: 0 4px 18px rgba(251, 191, 36, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.winter-rating-week-top-modal__share-btn.winter-rating__share-btn--copy-icon:hover {
  background: linear-gradient(135deg, #fde68a, #fdba74);
  border-color: rgba(251, 191, 36, 1);
  box-shadow: 0 6px 22px rgba(251, 191, 36, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.winter-rating-week-top-modal__share-btn.winter-rating__share-btn--copy-icon::before {
  display: none;
}
.winter-rating-week-top-modal__share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  border: 1px solid rgba(186, 230, 253, 0.5);
  background: rgba(56, 189, 248, 0.15);
  color: #bae6fd;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s, border-color 0.2s;
}
.winter-rating-week-top-modal__share-btn:hover {
  background: rgba(56, 189, 248, 0.28);
  border-color: rgba(186, 230, 253, 0.7);
}
[data-theme="light"] .winter-rating-week-top-modal__share-btn {
  color: #0369a1;
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.4);
}
[data-theme="light"] .winter-rating-week-top-modal__share-btn:hover {
  background: rgba(56, 189, 248, 0.22);
  border-color: rgba(56, 189, 248, 0.6);
}
[data-theme="light"] .winter-rating-week-top-modal__share-btn.winter-rating__share-btn--copy-icon {
  color: #0f172a;
  background: linear-gradient(135deg, #fbbf24, #f97316);
  border-color: rgba(251, 191, 36, 0.9);
  box-shadow: 0 4px 14px rgba(251, 191, 36, 0.4);
}
[data-theme="light"] .winter-rating-week-top-modal__share-btn.winter-rating__share-btn--copy-icon:hover {
  background: linear-gradient(135deg, #fde68a, #fdba74);
  border-color: rgba(251, 191, 36, 1);
  box-shadow: 0 6px 20px rgba(251, 191, 36, 0.5);
}

/* Модалка «Рейтинг на дату» по клику в календаре */
.winter-rating-date-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}
.winter-rating-date-modal[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
}
.winter-rating-date-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  cursor: pointer;
}
.winter-rating-date-modal__inner {
  position: relative;
  width: 100%;
  max-width: 420px;
  max-height: 85vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--card-bg);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 48px 16px 20px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}
.winter-rating-date-modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.12);
  color: var(--text);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}
.winter-rating-date-modal__close:hover {
  background: rgba(0, 0, 0, 0.2);
}
.winter-rating-date-modal__title {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}
.winter-rating-date-modal__body {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  flex: 1;
  min-height: 0;
}
.winter-rating-date-modal__body .winter-rating__date-panel {
  display: block;
  padding: 0;
  border: none;
}
.winter-rating-date-modal__body .winter-rating__screenshots {
  margin-bottom: 12px;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
@media (max-width: 480px) {
  .winter-rating-date-modal__body .winter-rating__screenshots {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }
}
.winter-rating-date-modal__body .winter-rating__date-table-wrap {
  overflow-x: auto;
}

.winter-rating__dates-caption {
  margin: 24px 12px 8px 12px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}
.winter-rating__dates-hint {
  margin: 0 12px 10px;
  font-size: 12px;
  color: var(--text-muted);
}
.winter-rating__dates {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 12px;
}
/* Календарь по датам */
.winter-rating__calendar-wrap {
  margin-bottom: 10px;
}
.winter-rating__calendar {
  background: rgba(15, 23, 42, 0.25);
  border-radius: 12px;
  padding: 12px 10px 10px;
  border: 1px solid var(--border-subtle);
}
[data-theme="light"] .winter-rating__calendar {
  background: rgba(248, 250, 252, 0.8);
}
.winter-rating__calendar-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}
.winter-rating__calendar-title {
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  flex: 1;
}
.winter-rating__calendar-nav {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
  color: var(--text);
  background: rgba(148, 163, 184, 0.2);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.winter-rating__calendar-nav:hover:not(:disabled) {
  background: rgba(148, 163, 184, 0.35);
  border-color: rgba(148, 163, 184, 0.5);
}
.winter-rating__calendar-nav:disabled {
  opacity: 0.4;
  cursor: default;
}
.winter-rating__calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-bottom: 4px;
}
.winter-rating__calendar-wday {
  text-align: center;
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
}
.winter-rating__calendar-grid {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.winter-rating__calendar-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}
.winter-rating__calendar-cell {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  border-radius: 8px;
  min-width: 0;
}
.winter-rating__calendar-cell--empty {
  visibility: hidden;
}
.winter-rating__calendar-cell--no-data {
  color: var(--text-muted);
  opacity: 0.5;
}
.winter-rating__calendar-cell--day {
  border: none;
  background: rgba(148, 163, 184, 0.15);
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  font-family: inherit;
}
.winter-rating__calendar-cell--day:hover {
  background: rgba(212, 175, 55, 0.25);
}
.winter-rating__calendar-cell--day.winter-rating__calendar-cell--active {
  background: rgba(212, 175, 55, 0.35);
  color: var(--text);
  box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.4);
}
[data-theme="light"] .winter-rating__calendar-cell--day:hover {
  background: rgba(249, 115, 22, 0.2);
}
[data-theme="light"] .winter-rating__calendar-cell--day.winter-rating__calendar-cell--active {
  background: rgba(249, 115, 22, 0.3);
  box-shadow: 0 0 0 1px rgba(249, 115, 22, 0.4);
}
/* Список дат: кнопки скрыты, открытие только через календарь */
.winter-rating__dates .winter-rating__date-item > .winter-rating__date-btn {
  display: none;
}
.winter-rating__dates .winter-rating__date-item {
  border: none;
  border-radius: 0;
  background: transparent;
  padding: 0;
}
.winter-rating__dates .winter-rating__date-item .winter-rating__date-panel {
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  margin-top: 4px;
}
.winter-rating__dates .winter-rating__date-panel--hidden {
  display: none;
}
/* Экран рейтинга — уместить в один экран, контент не уезжает в сторону */
.card:has(.view--active[data-view="winter-rating"]) .card__content,
html.app-view-winter-rating .card .card__content {
  overflow: hidden;
  overflow-x: hidden;
  min-height: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.view--active[data-view="winter-rating"] {
  flex: 1;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}
html.app-view-winter-rating .card .view.view--active[data-view="winter-rating"] {
  flex: 1;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}
/* Карточка на экране рейтинга — не уезжает в сторону, всегда в видимой области */
.app:has(.view--active[data-view="winter-rating"]) .card,
html.app-view-winter-rating .app .card {
  min-width: 0;
  max-width: 100%;
  width: 100%;
  overflow-x: hidden;
}
.app:has(.view--active[data-view="winter-rating"]),
html.app-view-winter-rating .app {
  overflow-x: hidden;
}
/* Фон карточки на экране рейтинга (fallback без :has(), против чёрного экрана на части устройств) */
html.app-view-winter-rating .card {
  background: var(--card-bg);
  min-height: 200px;
  min-width: 0;
  max-width: 100%;
  width: 100%;
  overflow-x: hidden;
}
html.app-view-winter-rating .card::before {
  opacity: 0;
  pointer-events: none;
}
.view--active[data-view="winter-rating"] .winter-rating,
html.app-view-winter-rating .card .winter-rating {
  flex: 1;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 6px 0 8px;
}
.view--active[data-view="winter-rating"] .winter-rating__table-wrap,
html.app-view-winter-rating .card .winter-rating__table-wrap {
  min-width: 0;
  overflow-x: auto;
}
.view--active[data-view="winter-rating"] .winter-rating__title {
  margin: 0 0 12px;
  font-size: 18px;
  gap: 6px;
}
.view--active[data-view="winter-rating"] .winter-rating__cup {
  font-size: 43px; /* +10% от 39 */
  margin-left: -6px;
  margin-right: 2px;
}
.view--active[data-view="winter-rating"] .winter-rating__updated {
  margin: 0;
  font-size: 10px;
}
.view--active[data-view="winter-rating"] .winter-rating__table-caption-row {
  margin: 0 12px 4px;
}
.view--active[data-view="winter-rating"] .winter-rating__table-caption {
  font-size: 13px;
}
.view--active[data-view="winter-rating"] .winter-rating__counters {
  font-size: 10px;
}
.view--active[data-view="winter-rating"] .winter-rating__table-wrap {
  margin: 0 12px 6px;
  flex: 1;
  min-height: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y pan-x;
}
.view--active[data-view="winter-rating"] .winter-rating__table {
  font-size: 11px;
}
/* Итоговая таблица в экране рейтинга — оставляем крупный шрифт */
.view--active[data-view="winter-rating"] #winterRatingTableWrap .winter-rating__table {
  font-size: 15px;
}
.view--active[data-view="winter-rating"] .winter-rating__table th,
.view--active[data-view="winter-rating"] .winter-rating__table td {
  padding: 4px 6px;
}
.view--active[data-view="winter-rating"] #winterRatingTableWrap .winter-rating__table th,
.view--active[data-view="winter-rating"] #winterRatingTableWrap .winter-rating__table td {
  padding: 8px 10px;
}
.view--active[data-view="winter-rating"] #winterRatingTableOverall th:last-child,
.view--active[data-view="winter-rating"] #winterRatingTableOverall td:last-child {
  padding-left: 4px;
  padding-right: 6px;
}
.view--active[data-view="winter-rating"] #winterRatingTableWrap .winter-rating__table th:last-child,
.view--active[data-view="winter-rating"] #winterRatingTableWrap .winter-rating__table td:last-child {
  padding-left: 8px;
  padding-right: 10px;
}
.view--active[data-view="winter-rating"] .winter-rating__show-all-wrap {
  margin: 0 12px 4px;
}
.view--active[data-view="winter-rating"] .winter-rating__show-all-btn {
  font-size: 12px;
  padding: 4px 8px;
}
.view--active[data-view="winter-rating"] .winter-rating__dates-caption {
  margin: 6px 12px 4px;
  font-size: 13px;
}
.view--active[data-view="winter-rating"] .winter-rating__dates-hint {
  margin: 0 12px 4px;
  font-size: 11px;
}
.view--active[data-view="winter-rating"] .winter-rating__dates {
  flex-direction: column;
  gap: 0;
  margin: 0 12px;
}
/* После календаря и блока «самый выигрыш» — минимальный отступ, без пропасти от gap между скрытыми date-item */
.view--active[data-view="winter-rating"] .winter-rating__calendar-wrap {
  margin-bottom: 8px;
}
.view--active[data-view="winter-rating"] .winter-rating__single-top-row {
  margin-bottom: 8px;
}
.view--active[data-view="winter-rating"] .winter-rating__dates .winter-rating__date-item {
  margin-bottom: 0;
}
/* Таблица по датам и календарь видны и в рейтинге весны */
.view--active[data-view="spring-rating"] .winter-rating__dates-caption {
  margin: 6px 12px 4px;
  font-size: 13px;
}
.view--active[data-view="spring-rating"] .winter-rating__dates-hint {
  margin: 0 12px 4px;
  font-size: 11px;
}
.view--active[data-view="spring-rating"] .winter-rating__dates {
  flex-direction: column;
  gap: 0;
  margin: 0 12px;
}
.view--active[data-view="spring-rating"] .winter-rating__calendar-wrap {
  margin-bottom: 8px;
}
.view--active[data-view="spring-rating"] .winter-rating__single-top-row {
  margin-bottom: 8px;
}
.view--active[data-view="spring-rating"] .winter-rating__dates .winter-rating__date-item {
  margin-bottom: 0;
}
.view--active[data-view="winter-rating"] .bonus-game-back {
  margin: 0 0 5px;
}
/* Рейтинг весны: убираем отступ между кнопкой «Назад» и листочками */
.view--active[data-view="spring-rating"] .bonus-game-back {
  margin-bottom: 0;
}
.view--active[data-view="spring-rating"] .winter-rating {
  margin-top: 0;
}
/* Рейтинг весны: скрываем верхнее и нижнее меню */
.card:has(.view--active[data-view="spring-rating"]) .card__header {
  display: none !important;
}
#app:has(.view--active[data-view="spring-rating"]) ~ .bottom-nav {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: transform 0.25s ease-out, opacity 0.25s ease-out, visibility 0s linear 0.26s;
}
/* Зал славы и расписание: скрываем верхнее и нижнее меню (как в турнире дня и газете) */
.card:has(.view--active[data-view="hall-of-fame"]) .card__header,
.card:has(.view--active[data-view="schedule"]) .card__header {
  display: none !important;
}
#app:has(.view--active[data-view="hall-of-fame"]) ~ .bottom-nav,
#app:has(.view--active[data-view="schedule"]) ~ .bottom-nav {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: transform 0.25s ease-out, opacity 0.25s ease-out, visibility 0s linear 0.26s;
}
/* Кнопки игр и приложений (с главной): скрываем верхнее и нижнее меню */
.card:has(.view--active[data-view="bonus-game"]) .card__header,
.card:has(.view--active[data-view="plasterer-game"]) .card__header,
.card:has(.view--active[data-view="raffles"]) .card__header,
.card:has(.view--active[data-view="learn-play-hub"]) .card__header,
.card:has(.view--active[data-view="poker-tasks"]) .card__header,
.card:has(.view--active[data-view="video-lessons"]) .card__header,
.card:has(.view--active[data-view="streams"]) .card__header,
.card:has(.view--active[data-view="equilator"]) .card__header,
.card:has(.view--active[data-view="winter-rating"]) .card__header {
  display: none !important;
}
/* Скачать, Депозит, Профиль: скрываем только верхнее меню */
.card:has(.view--active[data-view="download"]) .card__header,
.card:has(.view--active[data-view="cashout"]) .card__header,
.card:has(.view--active[data-view="profile"]) .card__header {
  display: none !important;
}
#app:has(.view--active[data-view="bonus-game"]) ~ .bottom-nav,
#app:has(.view--active[data-view="plasterer-game"]) ~ .bottom-nav,
#app:has(.view--active[data-view="raffles"]) ~ .bottom-nav,
#app:has(.view--active[data-view="learn-play-hub"]) ~ .bottom-nav,
#app:has(.view--active[data-view="poker-tasks"]) ~ .bottom-nav,
#app:has(.view--active[data-view="video-lessons"]) ~ .bottom-nav,
#app:has(.view--active[data-view="streams"]) ~ .bottom-nav,
#app:has(.view--active[data-view="equilator"]) ~ .bottom-nav,
#app:has(.view--active[data-view="winter-rating"]) ~ .bottom-nav {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: transform 0.25s ease-out, opacity 0.25s ease-out, visibility 0s linear 0.26s;
}

/* Нижнее меню скрыто — компактный запас + safe-area (меньше «пустой» нижней резинки) */
.app:has(.view--active[data-view="spring-rating"]),
.app:has(.view--active[data-view="hall-of-fame"]),
.app:has(.view--active[data-view="schedule"]),
.app:has(.view--active[data-view="bonus-game"]),
.app:has(.view--active[data-view="plasterer-game"]),
.app:has(.view--active[data-view="raffles"]),
.app:has(.view--active[data-view="learn-play-hub"]),
.app:has(.view--active[data-view="poker-tasks"]),
.app:has(.view--active[data-view="video-lessons"]),
.app:has(.view--active[data-view="streams"]),
.app:has(.view--active[data-view="equilator"]),
.app:has(.view--active[data-view="winter-rating"]) {
  padding-bottom: max(10px, calc(6px + env(safe-area-inset-bottom, 0px)));
}
/* Видеоуроки: ещё компактнее — safe-area достаточно с края экрана */
.app:has(.view--active[data-view="video-lessons"]) {
  padding-bottom: max(6px, calc(4px + env(safe-area-inset-bottom, 0px)));
}

.winter-rating__date-item {
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.3);
}
[data-theme="light"] .winter-rating__date-item {
  background: rgba(255, 251, 247, 0.6);
}
.winter-rating__date-btn {
  display: block;
  width: 100%;
  padding: 12px 14px;
  border: none;
  border-radius: 0;
  background: transparent;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s;
}
.winter-rating__date-btn:hover {
  background: rgba(148, 163, 184, 0.12);
}
.winter-rating__date-btn[aria-expanded="true"] {
  background: rgba(168, 85, 247, 0.15);
  border-bottom: 1px solid var(--border-subtle);
}
.winter-rating__date-panel {
  padding: 14px;
  border-top: none;
}
.winter-rating__date-panel--hidden {
  display: none;
}
.spring-rating-date-leagues {
  margin-top: 0;
}
.spring-rating-date-league-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.spring-rating-date-league-tab {
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  background: rgba(192, 132, 252, 0.15);
  color: #e9d5ff;
  cursor: pointer;
  min-height: 44px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.spring-rating-date-league-tab:hover {
  background: rgba(192, 132, 252, 0.25);
}
.spring-rating-date-league-tab--active {
  background: rgba(192, 132, 252, 0.35);
  color: #fff;
}
.spring-rating-date-league {
  margin-bottom: 12px;
}
.spring-rating-date-league .winter-rating__screenshots {
  margin-bottom: 10px;
}
.winter-rating__date-tournaments-list:not(:empty) {
  margin-bottom: 12px;
}
.winter-rating__date-tournaments-caption {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-secondary);
}
.winter-rating__screenshots {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

@media (max-width: 480px) {
  .winter-rating__screenshots {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 481px) and (max-width: 768px) {
  .winter-rating__screenshots {
    grid-template-columns: repeat(3, 1fr);
  }
}

.winter-rating__screenshot {
  margin: 0;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-elevated);
  cursor: pointer;
  aspect-ratio: 1;
}

.winter-rating__screenshot:hover {
  opacity: 0.9;
}

.winter-rating__screenshot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  vertical-align: middle;
  pointer-events: none;
}
.winter-rating__screenshot img[src=""],
.winter-rating__screenshot img:not([src]) {
  min-height: 80px;
  background: var(--border-subtle);
}

/* Лайтбокс: увеличение скрина по клику — на весь экран без обрезки низа */
/* Отступ сверху как у .app: под шапку Telegram Mini App + safe-area, иначе ×/«Назад» не нажимаются */
.winter-rating-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.85);
  padding: 0;
  /* Одно calc без вложенности — надёжнее в старых WebView */
  padding-top: calc(env(safe-area-inset-top, 0px) + 52px);
  padding-right: env(safe-area-inset-right, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  padding-left: env(safe-area-inset-left, 0px);
  box-sizing: border-box;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s, visibility 0.2s;
}

.winter-rating-lightbox[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
/* Один скрин (топ‑15 и т.п.): без прокрутки оверлея и жестов «листания» по картинке */
.winter-rating-lightbox--single {
  overflow: hidden;
  overscroll-behavior: contain;
}
.winter-rating-lightbox--single .winter-rating-lightbox__img {
  touch-action: none;
}

.winter-rating-lightbox__close {
  position: absolute;
  top: calc(env(safe-area-inset-top, 0px) + 52px + 8px);
  right: max(12px, env(safe-area-inset-right, 0px));
  z-index: 20;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  pointer-events: auto;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.winter-rating-lightbox__close:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Позиция «Назад» в лайтбоксе; цвета — у селектора .winter-rating-lightbox .winter-rating-lightbox__back выше */
.winter-rating-lightbox .winter-rating-lightbox__back.chat-back-btn {
  position: absolute;
  top: calc(env(safe-area-inset-top, 0px) + 52px + 8px);
  left: max(12px, env(safe-area-inset-left, 0px));
  z-index: 20;
  margin: 0;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.5);
  pointer-events: auto;
  touch-action: manipulation;
}

.winter-rating-lightbox__img {
  position: relative;
  z-index: 0;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 0;
  /* Нужны клики: повторное нажатие по скрину закрывает лайтбокс (см. initWinterRatingLightbox) */
  pointer-events: auto;
  cursor: pointer;
  touch-action: manipulation;
}

.winter-rating-lightbox__prev,
.winter-rating-lightbox__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 0.2s;
  pointer-events: auto;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.winter-rating-lightbox__prev:hover,
.winter-rating-lightbox__next:hover {
  background: rgba(255, 255, 255, 0.35);
}

.winter-rating-lightbox__prev {
  left: max(12px, env(safe-area-inset-left, 0px));
}

.winter-rating-lightbox__next {
  right: max(12px, env(safe-area-inset-right, 0px));
}

.winter-rating-lightbox__counter {
  position: absolute;
  bottom: max(16px, env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  pointer-events: none;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
}
.winter-rating__date-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  min-width: 0;
}
.winter-rating__date-table-wrap .winter-rating__table {
  margin: 0;
}
.winter-rating__date-table-wrap .winter-rating__table tr.winter-rating__tr--reward-mid td {
  background-color: rgba(251, 146, 60, 0.35);
}
.winter-rating__date-table-wrap .winter-rating__table tr.winter-rating__tr--reward-high td {
  background-color: rgba(34, 197, 94, 0.35);
}

/* Обёртка «Турнир дня» для всплывающей подсказки */
.feature-tooltip-wrap {
  position: relative;
}

.tournament-day-tooltip {
  position: absolute;
  bottom: 100%;
  left: 0;
  margin-bottom: 8px;
  padding: 12px 14px;
  min-width: 200px;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border: 1px solid rgba(168, 85, 247, 0.4);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
  pointer-events: none;
  z-index: 10;
}

.tournament-day-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 20px;
  border: 6px solid transparent;
  border-top-color: rgba(168, 85, 247, 0.4);
}

.feature-tooltip-wrap:hover .tournament-day-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.tournament-day-tooltip__logo {
  font-size: 15px;
  font-weight: 700;
  color: #a78bfa;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

.tournament-day-tooltip__row {
  font-size: 13px;
  color: var(--text);
  line-height: 1.5;
}

.tournament-day-tooltip__row + .tournament-day-tooltip__row {
  margin-top: 2px;
}

.tournament-day-tooltip__note {
  font-size: 11px;
  color: var(--text-muted, rgba(148, 163, 184, 0.9));
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  line-height: 1.35;
}

/* Карточка «Турнир дня» с возможностью разворота */
.tournament-day-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 0;
  border-radius: 14px;
  text-align: left;
  width: 100%;
}

.tournament-day-card__toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 16px;
  background: none;
  border: none;
  border-radius: inherit;
  cursor: pointer;
  font: inherit;
  color: inherit;
  text-align: left;
  transition: background 0.2s ease;
}

.tournament-day-card__toggle:hover {
  background: rgba(168, 85, 247, 0.08);
}

.tournament-day-card__toggle .feature__body {
  flex: 1;
  min-width: 0;
}

.tournament-day-lines {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 4px;
}

.tournament-day-line {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
}

.tournament-day-line .feature__timer {
  display: inline;
  margin-top: 0;
  min-width: 6ch;
}

.tournament-day-card__chevron {
  flex-shrink: 0;
  font-size: 10px;
  opacity: 0.7;
  transition: transform 0.2s ease;
}

.tournament-day-wrap--expanded .tournament-day-card__chevron {
  transform: rotate(180deg);
}

.tournament-day-expanded {
  overflow: hidden;
  transition: opacity 0.2s ease;
}

.tournament-day-expanded[hidden] {
  display: none;
}

.tournament-day-expanded__inner {
  padding: 12px 16px 16px;
  margin: 0 16px 14px;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border: 1px solid rgba(168, 85, 247, 0.35);
  border-radius: 12px;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

.tournament-day-expanded__inner .tournament-day-tooltip__logo {
  margin-bottom: 8px;
  padding-bottom: 6px;
}

.tournament-day-expanded__inner .tournament-day-tooltip__row + .tournament-day-tooltip__row {
  margin-top: 2px;
}

.tournament-day-expanded__inner .tournament-day-tooltip__note {
  margin-top: 8px;
  padding-top: 8px;
}

.tournament-day-expanded__link {
  display: block;
  margin-top: 12px;
  text-align: center;
  text-decoration: none;
}

.tournament-day-card__remind-now {
  margin: 8px 16px 4px;
}

.tournament-day-card__remind-now-btn {
  display: block;
  width: 100%;
  padding: 10px 16px;
  font-size: 14px !important;
}

.tournament-day-card__remind-options {
  margin: 8px 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tournament-day-card__remind-option {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  padding: 4px 0;
}

.tournament-day-card__remind-option input {
  width: 18px;
  height: 18px;
  accent-color: #a855f7;
}

.feature__icon {
  width: 32px;
  height: 32px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.feature__icon--green {
  background: radial-gradient(circle at 30% 20%, #22c55e, #16a34a);
  box-shadow: 0 10px 18px rgba(34, 197, 94, 0.45);
}

.feature__icon--purple {
  background: radial-gradient(circle at 30% 20%, #a855f7, #7c3aed);
  box-shadow: 0 10px 18px rgba(168, 85, 247, 0.45);
}

.feature__icon--orange {
  background: radial-gradient(circle at 30% 20%, #fb923c, #f97316);
  box-shadow: 0 10px 18px rgba(249, 115, 22, 0.45);
}

.feature__icon--gold {
  background: radial-gradient(circle at 30% 20%, #fbbf24, #f59e0b);
  box-shadow: 0 10px 18px rgba(245, 158, 11, 0.45);
}

.feature__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.feature__title {
  font-size: 13px;
  font-weight: 600;
}

.feature__desc {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 400;
}

.feature__text {
  font-size: 12px;
  color: var(--text-muted);
}

.feature__timer {
  display: block;
  margin-top: 4px;
  font-weight: 600;
  color: var(--text);
}

/* Турнир дня: сверху стол с паролем на всю ширину + стрелка, турнир дня, внизу справа билет + стрелка вверх */
.tournament-day {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.tournament-day__top {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.tournament-day--hidden {
  display: none !important;
}

.tournament-day__arrow--to-tournament {
  margin: 6px 0;
  flex-shrink: 0;
}

.tournament-day__bottom-row {
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 4px;
  flex-wrap: wrap;
}

.tournament-day__bottom-row .tournament-day__freeroll-table + .lottery-ticket {
  margin-left: 16px;
}

.tournament-day__bottom-row .tournament-day__freeroll-table {
  flex: 1;
  min-width: 0;
  max-width: 100%;
}

.tournament-day__arrow--left {
  flex-shrink: 0;
}

.tournament-day__bottom-row .lottery-ticket {
  flex-shrink: 0;
}

.tournament-day__freeroll-heading {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--text);
}

.tournament-day__freeroll-table {
  width: 100%;
  max-width: 100%;
}

.private-table-link {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.private-table-link:hover .private-table {
  filter: brightness(1.08);
}

.private-table-link:active .private-table {
  filter: brightness(0.98);
}

/* Лотерейный билет — в стиле стола Poker21 (овал, тёмный фон, золотая рамка), меньше, по центру */
.lottery-ticket {
  width: 100%;
  max-width: 100%;
  padding: 14px 12px;
  background: linear-gradient(145deg, #fef3c7 0%, #fde68a 50%, #fcd34d 100%);
  border: 2px solid #d97706;
  border-radius: 12px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    0 4px 12px rgba(0, 0, 0, 0.25);
  position: relative;
}

.lottery-ticket--table-style {
  width: auto;
  max-width: 200px;
  padding: 14px 18px;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(255, 255, 255, 0.04) 0%, transparent 50%),
    linear-gradient(180deg, #1c1c1e 0%, #141416 50%, #0e0e10 100%);
  border: none;
  border-radius: 50% / 38%;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 -1px 0 rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(180, 150, 80, 0.35),
    0 0 0 2px rgba(120, 90, 40, 0.25),
    0 4px 16px rgba(0, 0, 0, 0.4),
    0 8px 24px rgba(0, 0, 0, 0.35);
}

.lottery-ticket--table-style::before {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: inherit;
  border: 1px solid rgba(200, 170, 100, 0.2);
  pointer-events: none;
}

.lottery-ticket__text {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  color: #78350f;
  text-align: center;
  letter-spacing: 0.02em;
}

.lottery-ticket--table-style .lottery-ticket__text {
  font-size: 11px;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.95);
}

.lottery-ticket--link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.lottery-ticket--link:hover {
  filter: brightness(1.1);
}

.lottery-ticket__link-label {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: underline;
}

.lottery-ticket--blink {
  animation: lottery-blink 1.5s ease-in-out infinite;
}

@keyframes lottery-blink {
  0%, 100% { opacity: 1; filter: brightness(1); }
  50% { opacity: 0.85; filter: brightness(1.15); }
}

/* Стол фриролла — овал, тёмное сукно, аккуратная металлическая рамка */
.private-table {
  position: relative;
  width: 100%;
  max-width: none;
  padding: 18px 22px 16px;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(255, 255, 255, 0.04) 0%, transparent 50%),
    linear-gradient(180deg, #1c1c1e 0%, #141416 50%, #0e0e10 100%);
  border: none;
  border-radius: 50% / 38%;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 -1px 0 rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(180, 150, 80, 0.35),
    0 0 0 2px rgba(120, 90, 40, 0.25),
    0 4px 16px rgba(0, 0, 0, 0.4),
    0 12px 32px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-align: center;
}

.private-table::before {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: inherit;
  border: 1px solid rgba(200, 170, 100, 0.2);
  pointer-events: none;
}

.private-table__logo {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  line-height: 1.2;
}

.private-table__logo--freeroll {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
}

.private-table__freeroll-label {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #e63946;
}

.private-table__freeroll-date {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

.private-table__logo-name {
  font-family: "Pacifico", cursive;
  font-size: 22px;
  font-weight: 400;
  color: #e63e4a;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.private-table__row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.private-table__lock {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b8a050;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.4));
}

.private-table__password-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #fff;
}

.private-table__combo {
  display: flex;
  gap: 2px;
}

.private-table__digit {
  width: 24px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #c9a227 0%, #a78b2a 45%, #8b7318 100%);
  border: 1px solid rgba(220, 190, 120, 0.4);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  color: #1a1a1a;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2),
    0 1px 2px rgba(0, 0, 0, 0.2);
}

.private-table__meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.9);
}

.private-table__meta-line1 {
  line-height: 1.35;
  white-space: nowrap;
  font-size: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.03em;
}

.private-table__meta-line2 {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.85);
}

.tournament-day__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
}

.tournament-day__arrow svg {
  stroke-width: 2.5;
}

.tournament-day__arrow--bold {
  color: #c2410c;
}

.tournament-day__arrow--bold svg {
  stroke-width: 4;
  filter: drop-shadow(0 0 1px #9a3412);
}

.tournament-day__arrow--between {
  margin: 6px 0;
  flex-shrink: 0;
}

.tournament-day__main-table {
  width: 100%;
  max-width: 100%;
  margin-top: 4px;
}

.tournament-day__main-table.poker-table {
  max-width: none;
}

/* Турнир дня — тот же стиль сукна, рамка чуть выразительнее */
.poker-table.poker-table--private-style {
  padding: 18px 22px 16px;
  gap: 10px;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
    linear-gradient(180deg, #1c1c1e 0%, #141416 50%, #0e0e10 100%) !important;
  border: none;
  border-radius: 50% / 38%;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -1px 0 rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(200, 170, 100, 0.4),
    0 0 0 3px rgba(160, 130, 60, 0.25),
    0 4px 20px rgba(0, 0, 0, 0.4),
    0 12px 36px rgba(0, 0, 0, 0.35);
  color: #fff;
}

.poker-table--private-style::before {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: inherit;
  border: 1px solid rgba(200, 170, 100, 0.25);
  pointer-events: none;
}

.poker-table--private-style .poker-table__logo-name {
  font-family: "Pacifico", cursive;
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: #e63e4a;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.poker-table--private-style .poker-table__title {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #e63e4a;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.poker-table--private-style .poker-table__date,
.poker-table--private-style .poker-table__info {
  color: rgba(255, 255, 255, 0.9);
}

.poker-table--private-style .poker-table__tag {
  color: #9fcc9f;
  letter-spacing: 0.06em;
}

.poker-table__title-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.poker-table__trophy {
  font-size: 20px;
  line-height: 1;
}

.poker-table--featured .poker-table__title {
  color: #fef08a;
  text-shadow: 0 0 12px rgba(254, 240, 138, 0.5);
}

.poker-table {
  position: relative;
  width: 100%;
  max-width: 340px;
  padding: 16px 20px;
  background: linear-gradient(160deg, #0d5c2e 0%, #0a4723 40%, #083d1e 100%);
  border-radius: 50% / 30%;
  border: 3px solid #1a3d27;
  box-shadow:
    inset 0 4px 12px rgba(255, 255, 255, 0.08),
    0 8px 24px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: #e8f5e9;
  text-align: center;
}

.poker-table--small {
  max-width: 260px;
  padding: 10px 14px;
  gap: 2px;
}

.poker-table__title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
}

.poker-table__date {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
}

.poker-table__info {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #fff;
}

.poker-table__tag {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #a5d6a7;
}

.poker-table__label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
}

.poker-table__detail {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.9);
}

/* Зал славы — экран */
.hall-of-fame__toolbar {
  display: flex;
  align-items: stretch;
  gap: 8px;
  margin: 0 0 10px;
  min-width: 0;
}
.hall-of-fame__toolbar-back {
  margin: 0 !important;
  flex-shrink: 0;
  align-self: stretch;
}
/* Одна сплошная полоса с общей обводкой на всю оставшуюся ширину */
.hall-of-fame__subtabs {
  display: flex;
  align-items: stretch;
  flex: 1;
  min-width: 0;
  gap: 0;
  padding: 0;
  overflow: hidden;
  box-sizing: border-box;
  min-height: var(--app-back-btn-min-height);
  background: var(--block-bg-solid);
  border: 1px solid rgba(249, 115, 22, 0.7);
  border-radius: 20px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.hall-of-fame__subtab {
  flex: 1;
  min-width: 0;
  margin: 0;
  padding: 6px 4px;
  box-sizing: border-box;
  border: none;
  border-radius: 0;
  font-family: inherit;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.15;
  color: var(--text-muted);
  background: transparent;
  box-shadow: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.15s, background 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-right: 1px solid rgba(249, 115, 22, 0.28);
}
.hall-of-fame__subtab:last-child {
  border-right: none;
}
@media (max-width: 400px) {
  .hall-of-fame__subtab {
    font-size: 9px;
    padding: 6px 2px;
  }
}
.hall-of-fame__subtab:hover {
  color: var(--text);
  background: rgba(249, 115, 22, 0.08);
}
.hall-of-fame__subtab--active {
  color: var(--text);
  background: rgba(249, 115, 22, 0.2);
  box-shadow: none;
}
[data-theme="dark"] .hall-of-fame__subtabs {
  border-color: rgba(251, 146, 60, 0.65);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}
[data-theme="dark"] .hall-of-fame__subtab {
  color: rgba(226, 232, 240, 0.72);
  border-right-color: rgba(251, 146, 60, 0.28);
}
[data-theme="dark"] .hall-of-fame__subtab:hover {
  color: #f1f5f9;
  background: rgba(249, 115, 22, 0.12);
}
[data-theme="dark"] .hall-of-fame__subtab--active {
  color: #fff7ed;
  background: rgba(249, 115, 22, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
[data-theme="light"] .hall-of-fame__subtabs {
  border-color: rgba(234, 88, 12, 0.65);
}
[data-theme="light"] .hall-of-fame__subtab {
  color: #64748b;
  border-right-color: rgba(234, 88, 12, 0.28);
}
[data-theme="light"] .hall-of-fame__subtab:hover {
  color: #0f172a;
  background: rgba(251, 146, 60, 0.12);
}
[data-theme="light"] .hall-of-fame__subtab--active {
  color: #9a3412;
  background: rgba(251, 146, 60, 0.26);
}
.hall-of-fame__main-title {
  margin: 4px 0 10px;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.hall-of-fame__main-title--top {
  margin: 0 0 10px;
  text-align: center;
  width: 100%;
}
/* Ссылка на вкладку: Поделиться / Скопировать (уникальный startapp на раздел) */
/* Ряд «Поделиться / копировать»: отступы зала славы + разметка как .raffles-hero__share-row */
.hall-of-fame__panel-share-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 0 12px;
  width: 100%;
  box-sizing: border-box;
}
.hall-of-fame__panel-share-row--in-card {
  margin-top: 0;
}
.hall-of-fame__startapp-code {
  font-size: 0.9em;
  padding: 1px 4px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.2);
  word-break: break-all;
}
[data-theme="light"] .hall-of-fame__startapp-code {
  background: rgba(0, 0, 0, 0.06);
}

.hall-of-fame__panels {
  margin-top: 4px;
  min-height: 120px;
}
.hall-of-fame__panel[hidden] {
  display: none !important;
}
.hall-of-fame__panel--active {
  display: block;
}
.hall-of-fame__block--nested {
  margin-top: 8px;
  margin-bottom: 0;
}
/* Топ-15 заносов за один турнир — под заголовком зала славы */
.hall-of-fame__single-top-outer {
  margin: 0 auto 20px;
  max-width: 100%;
}
.view[data-view="hall-of-fame"] .hall-of-fame__single-top-wrap {
  width: 100%;
  max-width: none;
}
.hall-of-fame__blog-top15-copy-wrap {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}
/* Визуал кнопки — как .raffles-hero__share-btn--copy-icon */
.hall-of-fame__blog-top15-copy-btn {
  cursor: pointer;
}
.hall-of-fame__blog-top15-copy-btn:active {
  opacity: 0.9;
}
.hall-of-fame__blog-top15-copy-hint {
  margin: 0;
  font-size: 11px;
  line-height: 1.35;
  color: var(--muted);
  max-width: 100%;
}

/* Фотоальбом — сетка превью 5×N, плотные зазоры */
.hall-photo-album--feed {
  position: relative;
  padding: 16px 10px 22px;
  border-radius: 22px;
  overflow: hidden;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  background: linear-gradient(165deg, rgba(30, 58, 42, 0.35) 0%, rgba(15, 23, 42, 0.72) 50%, rgba(15, 23, 42, 0.85) 100%),
    radial-gradient(ellipse 100% 70% at 50% 0%, rgba(251, 146, 60, 0.1), transparent 55%);
  border: 1px solid rgba(251, 146, 60, 0.32);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 12px 40px rgba(0, 0, 0, 0.35);
}
.hall-photo-album--feed::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(-7deg, transparent, transparent 14px, rgba(0, 0, 0, 0.025) 14px, rgba(0, 0, 0, 0.025) 15px);
  pointer-events: none;
  border-radius: inherit;
}
.hall-photo-album__ribbon {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-bottom: 6px;
  font-size: 22px;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35));
}
.hall-photo-album__suit--spade,
.hall-photo-album__suit--club {
  color: #e2e8f0;
}
.hall-photo-album__suit--heart,
.hall-photo-album__suit--diamond {
  color: #fb7185;
}
.hall-photo-album__title {
  position: relative;
  z-index: 1;
  margin-top: 0 !important;
  margin-bottom: 8px !important;
  text-align: center;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}
.hall-photo-album__lead {
  position: relative;
  z-index: 1;
  margin: 0 0 18px;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(226, 232, 240, 0.9);
  text-align: center;
  max-width: 32em;
  margin-left: auto;
  margin-right: auto;
  font-style: italic;
}
[data-theme="light"] .hall-photo-album--feed {
  background: linear-gradient(170deg, rgba(214, 232, 212, 0.55) 0%, rgba(255, 252, 245, 0.98) 45%, rgba(254, 236, 214, 0.45) 100%),
    radial-gradient(ellipse 90% 50% at 50% 0%, rgba(251, 146, 60, 0.12), transparent 50%);
  border-color: rgba(234, 88, 12, 0.3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 8px 28px rgba(15, 23, 42, 0.1);
}
[data-theme="light"] .hall-photo-album__suit--spade,
[data-theme="light"] .hall-photo-album__suit--club {
  color: #0f172a;
}
[data-theme="light"] .hall-photo-album__suit--heart,
[data-theme="light"] .hall-photo-album__suit--diamond {
  color: #dc2626;
}
[data-theme="light"] .hall-photo-album__lead {
  color: #475569;
}

.hall-photo-album__grid {
  position: relative;
  z-index: 1;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

/* Подзаголовок серии — на всю ширину сетки */
.hall-photo-album__group-head {
  grid-column: 1 / -1;
  list-style: none;
  margin: 4px 0 0;
  padding: 8px 6px 4px;
  text-align: center;
  border-radius: 10px;
  background: rgba(251, 146, 60, 0.08);
  border: 1px dashed rgba(251, 146, 60, 0.35);
  box-sizing: border-box;
}
.hall-photo-album__group-head-text {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: 0.02em;
  color: rgba(253, 230, 138, 0.95);
}
[data-theme="light"] .hall-photo-album__group-head {
  background: rgba(251, 146, 60, 0.12);
  border-color: rgba(234, 88, 12, 0.35);
}
[data-theme="light"] .hall-photo-album__group-head-text {
  color: #9a3412;
}

.hall-photo-album__card {
  margin: 0;
  padding: 0;
  list-style: none;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(251, 146, 60, 0.22);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  box-sizing: border-box;
  min-width: 0;
}
[data-theme="light"] .hall-photo-album__card {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(234, 88, 12, 0.2);
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.08);
}

.hall-photo-album__card-body {
  padding: 3px 2px 5px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-width: 0;
}

.hall-photo-album--feed .hall-photo-album__idx {
  display: none;
}

.hall-photo-album__idx {
  align-self: flex-start;
  margin-bottom: 8px;
  padding: 2px 8px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: rgba(251, 191, 36, 0.95);
  background: rgba(0, 0, 0, 0.25);
}
[data-theme="light"] .hall-photo-album__idx {
  color: #b45309;
  background: rgba(251, 146, 60, 0.15);
}

.hall-photo-album--feed .hall-photo-album__btn {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  padding: 0;
  border: none;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  background: #0c0a09;
  line-height: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  margin: 0;
}
.hall-photo-album--feed .hall-photo-album__btn:hover,
.hall-photo-album--feed .hall-photo-album__btn:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12), 0 0 0 2px rgba(251, 146, 60, 0.45);
}
.hall-photo-album--feed .hall-photo-album__btn:active .hall-photo-album__img {
  transform: scale(0.995);
}

.hall-photo-album--feed .hall-photo-album__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  vertical-align: middle;
  transition: transform 0.25s ease;
  background: #1c1917;
}

.hall-photo-album--feed .hall-photo-album__caption {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  margin: 4px 0 0;
  padding: 0 1px;
  font-size: 9px;
  font-weight: 600;
  font-family: inherit;
  text-align: center;
  line-height: 1.25;
  color: rgba(250, 250, 249, 0.92);
  overflow-wrap: break-word;
  word-wrap: break-word;
  hyphens: auto;
  -webkit-hyphens: auto;
}
[data-theme="light"] .hall-photo-album--feed .hall-photo-album__caption {
  color: #334155;
}
.hall-photo-album--feed .hall-photo-album__caption--long {
  font-size: 8px;
  line-height: 1.3;
  font-weight: 500;
}

@media (max-width: 380px) {
  .hall-photo-album__grid {
    gap: 3px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hall-photo-album--feed .hall-photo-album__img,
  .hall-photo-album--feed .hall-photo-album__btn {
    transition: none;
  }
}

/* Доска позора — вкладка справа от «Фото» */
.hall-shame-board {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}
.hall-shame-board__title {
  position: relative;
}
.hall-shame-board__title::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  margin: 8px auto 0;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(100, 116, 139, 0.4), rgba(71, 85, 105, 0.9), rgba(100, 116, 139, 0.4));
}
.hall-shame-board__lead {
  margin: 0 0 18px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-muted, var(--muted));
  text-align: center;
  max-width: 34em;
  margin-left: auto;
  margin-right: auto;
}
.hall-shame-board__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.hall-shame-board__item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(100, 116, 139, 0.45);
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.55), rgba(15, 23, 42, 0.75));
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}
.hall-shame-board__item--muted {
  opacity: 0.92;
  border-style: dashed;
  border-color: rgba(100, 116, 139, 0.35);
}
.hall-shame-board__item--featured {
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  border-color: rgba(148, 163, 184, 0.55);
  background: linear-gradient(145deg, rgba(51, 65, 85, 0.65), rgba(15, 23, 42, 0.88));
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}
/* Ряд «скрины | текст» только когда хватает ширины; иначе снова узкий текст и вылет галереи за колонку */
@media (min-width: 640px) {
  .hall-shame-board__item--featured {
    flex-direction: row;
    align-items: flex-start;
    gap: 16px;
  }
}
.hall-shame-board__featured-media {
  position: relative;
  flex-shrink: 0;
  align-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 280px;
  box-sizing: border-box;
}
.hall-shame-board__featured-media:has(.hall-shame-board__corgi-gallery--mosaic) {
  max-width: 100%;
}
@media (min-width: 640px) {
  .hall-shame-board__featured-media {
    align-self: flex-start;
    flex: 0 0 200px;
    width: 200px;
    max-width: 200px;
  }
  /* Мозаика 2+1: узкая колонка картинок — больше места под текст */
  .hall-shame-board__item--featured .hall-shame-board__featured-media:has(.hall-shame-board__corgi-gallery--mosaic) {
    flex: 0 0 min(220px, 34%);
    width: min(220px, 34%);
    max-width: min(220px, 34%);
  }
}
.hall-shame-board__item--featured .hall-shame-board__body {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: break-word;
  word-wrap: break-word;
}
@media (min-width: 640px) {
  /* Не flex-basis в %: 55% + колонка 200px даёт переполнение узкой карточки — текст «уезжает» вправо */
  .hall-shame-board__item--featured .hall-shame-board__body {
    flex: 1 1 0;
    min-width: 0;
    max-width: 100%;
  }
}
.hall-shame-board__corgi-gallery-title {
  margin: 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.95);
  text-align: center;
}
[data-theme="light"] .hall-shame-board__corgi-gallery-title {
  color: rgba(71, 85, 105, 0.88);
}
.hall-shame-board__corgi-gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-end;
  gap: 10px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
/* Три превью столбиком (не мозаика) */
.hall-shame-board__item--featured .hall-shame-board__corgi-gallery:not(.hall-shame-board__corgi-gallery--mosaic) {
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: stretch;
  align-self: stretch;
  gap: 10px;
}
/* Первая статья: два скрина в ряд, третий на всю ширину снизу */
.hall-shame-board__corgi-gallery--mosaic {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  width: 100%;
  max-width: 100%;
}
.hall-shame-board__corgi-gallery--mosaic > .hall-shame-board__thumb-btn:nth-child(3) {
  grid-column: 1 / -1;
}
.hall-shame-board__corgi-gallery--mosaic .hall-shame-board__thumb-btn {
  margin: 0;
  width: 100%;
  max-width: none;
}
.hall-shame-board__corgi-gallery--mosaic .hall-shame-board__thumb-btn--chat {
  max-width: none;
}
.hall-shame-board__corgi-gallery--mosaic .hall-shame-board__avatar {
  max-width: none;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  height: auto;
}
.hall-shame-board__corgi-gallery--mosaic .hall-shame-board__chat-thumb {
  max-width: none;
  width: 100%;
  max-height: min(22vw, 130px);
  object-fit: cover;
  object-position: top center;
}
.hall-shame-board__corgi-gallery--mosaic > .hall-shame-board__thumb-btn:nth-child(3) .hall-shame-board__chat-thumb {
  max-height: min(36vh, 200px);
}
.hall-shame-board__corgi-gallery .hall-shame-board__thumb-btn {
  margin: 0;
  max-width: 100%;
  width: 100%;
}
.hall-shame-board__item--featured .hall-shame-board__corgi-gallery:not(.hall-shame-board__corgi-gallery--mosaic) .hall-shame-board__thumb-btn {
  margin: 0 auto;
  width: 100%;
  max-width: 200px;
}
.hall-shame-board__thumb-btn--chat {
  max-width: 132px;
  margin: 0;
  flex-shrink: 0;
}
.hall-shame-board__item--featured .hall-shame-board__corgi-gallery:not(.hall-shame-board__corgi-gallery--mosaic) .hall-shame-board__thumb-btn--chat {
  max-width: 200px;
  width: 100%;
}
.hall-shame-board__chat-thumb {
  display: block;
  width: 100%;
  max-width: 132px;
  height: auto;
  max-height: 260px;
  object-fit: cover;
  object-position: top center;
  vertical-align: middle;
}
.hall-shame-board__item--featured .hall-shame-board__corgi-gallery:not(.hall-shame-board__corgi-gallery--mosaic) .hall-shame-board__chat-thumb {
  max-width: 200px;
  margin: 0 auto;
  max-height: 200px;
}
.hall-shame-board__badge {
  position: absolute;
  top: -6px;
  right: -6px;
  z-index: 1;
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #64748b, #334155);
  border-radius: 999px;
  border: 2px solid rgba(15, 23, 42, 0.9);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}
.hall-shame-board__thumb-btn {
  display: block;
  padding: 0;
  border: none;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.25);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  max-width: 200px;
  margin: 0 auto;
}
.hall-shame-board__thumb-btn:hover,
.hall-shame-board__thumb-btn:focus-visible {
  transform: scale(1.02);
  outline: none;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4), 0 0 0 2px rgba(251, 146, 60, 0.45);
}
.hall-shame-board__avatar {
  display: block;
  width: 100%;
  max-width: 200px;
  height: auto;
  vertical-align: middle;
}
.hall-shame-board__tag {
  display: inline-block;
  margin-bottom: 6px;
  padding: 4px 10px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(251, 191, 36, 0.95);
  background: rgba(120, 53, 15, 0.35);
  border-radius: 8px;
  border: 1px solid rgba(251, 191, 36, 0.35);
}
[data-theme="light"] .hall-shame-board__item--featured {
  background: linear-gradient(145deg, rgba(248, 250, 252, 0.98), rgba(226, 232, 240, 0.95));
  border-color: rgba(100, 116, 139, 0.4);
}
[data-theme="light"] .hall-shame-board__tag {
  color: #92400e;
  background: rgba(254, 243, 199, 0.9);
  border-color: rgba(245, 158, 11, 0.45);
}
.hall-shame-board__emoji {
  font-size: 28px;
  line-height: 1;
  flex-shrink: 0;
}
.hall-shame-board__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.hall-shame-board__nomination {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.02em;
  max-width: 100%;
  overflow-wrap: break-word;
  word-wrap: break-word;
}
.hall-shame-board__desc {
  font-size: 12px;
  line-height: 1.4;
  color: var(--text-muted, var(--muted));
  max-width: 100%;
  overflow-wrap: break-word;
  word-wrap: break-word;
}
.hall-shame-board__item--featured .hall-shame-board__tag {
  max-width: 100%;
  box-sizing: border-box;
  overflow-wrap: break-word;
  word-wrap: break-word;
}
.hall-shame-board__gazette-teaser {
  margin: 10px 0 0;
  font-size: 12px;
  line-height: 1.45;
  font-weight: 600;
  color: rgba(226, 232, 240, 0.92);
}
.hall-shame-board__gazette-link {
  color: #fb923c;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.hall-shame-board__gazette-link:hover,
.hall-shame-board__gazette-link:focus-visible {
  color: #fdba74;
}
[data-theme="light"] .hall-shame-board__gazette-teaser {
  color: #334155;
}
[data-theme="light"] .hall-shame-board__gazette-link {
  color: #c2410c;
}
[data-theme="light"] .hall-shame-board__gazette-link:hover,
[data-theme="light"] .hall-shame-board__gazette-link:focus-visible {
  color: #9a3412;
}
[data-theme="light"] .hall-shame-board__item {
  background: linear-gradient(135deg, rgba(241, 245, 249, 0.95), rgba(226, 232, 240, 0.9));
  border-color: rgba(100, 116, 139, 0.35);
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
}
[data-theme="light"] .hall-shame-board__item--muted {
  border-color: rgba(148, 163, 184, 0.5);
}

.hall-of-fame__section-title--cups-above-rating {
  margin: 8px auto 12px;
  max-width: 100%;
  text-align: center;
}
.hall-of-fame__rating-card-wrap {
  margin: 0 auto 10px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
/* Карточка «Зимний рейтинг» в Зале славы — тот же вид, что на главной */
.view--active[data-view="hall-of-fame"] .hall-of-fame__winter-rating-card,
.view[data-view="hall-of-fame"] .hall-of-fame__winter-rating-card {
  border: 1px solid rgba(186, 230, 253, 0.6) !important;
  border-radius: 22px !important;
  background: linear-gradient(145deg, rgba(30, 58, 95, 0.95), rgba(15, 23, 42, 0.98)) !important;
  box-shadow: 0 0 0 1px rgba(186, 230, 253, 0.25),
              0 4px 20px rgba(56, 189, 248, 0.15),
              inset 0 1px 0 rgba(255, 255, 255, 0.14) !important;
}
.view--active[data-view="hall-of-fame"] .hall-of-fame__winter-rating-card:hover,
.view[data-view="hall-of-fame"] .hall-of-fame__winter-rating-card:hover {
  box-shadow: 0 0 0 1px rgba(186, 230, 253, 0.35),
              0 6px 24px rgba(56, 189, 248, 0.2),
              inset 0 1px 0 rgba(255, 255, 255, 0.18) !important;
}
.view--active[data-view="hall-of-fame"] .hall-of-fame__winter-rating-card .feature__title-prize,
.view[data-view="hall-of-fame"] .hall-of-fame__winter-rating-card .feature__title-prize {
  color: #7dd3fc !important;
  text-shadow: 0 0 12px rgba(125, 211, 252, 0.4);
}
[data-theme="light"] .view--active[data-view="hall-of-fame"] .hall-of-fame__winter-rating-card,
[data-theme="light"] .view[data-view="hall-of-fame"] .hall-of-fame__winter-rating-card {
  border: 1px solid rgba(56, 189, 248, 0.5) !important;
  background: linear-gradient(145deg, #f0f9ff 0%, #e0f2fe 50%, #bae6fd 100%) !important;
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.2),
              0 4px 16px rgba(56, 189, 248, 0.12),
              inset 0 1px 0 rgba(255, 255, 255, 0.95) !important;
}
[data-theme="light"] .view--active[data-view="hall-of-fame"] .hall-of-fame__winter-rating-card:hover,
[data-theme="light"] .view[data-view="hall-of-fame"] .hall-of-fame__winter-rating-card:hover {
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.35),
              0 6px 20px rgba(56, 189, 248, 0.18),
              inset 0 1px 0 rgba(255, 255, 255, 1) !important;
}
[data-theme="light"] .view--active[data-view="hall-of-fame"] .hall-of-fame__winter-rating-card .feature__title-prize,
[data-theme="light"] .view[data-view="hall-of-fame"] .hall-of-fame__winter-rating-card .feature__title-prize {
  color: #0284c7 !important;
  text-shadow: none;
}
.hall-of-fame__winter-winner {
  display: block;
  margin-top: 4px;
  font-size: 1em;
  font-weight: 600;
  color: #7dd3fc;
  text-transform: none;
  letter-spacing: 0.02em;
}
[data-theme="light"] .hall-of-fame__winter-winner {
  color: #0284c7;
}

/* Карточка «Рейтинг осени 2025» — тёплая осенняя палитра */
.view--active[data-view="hall-of-fame"] .hall-of-fame__autumn-rating-card,
.view[data-view="hall-of-fame"] .hall-of-fame__autumn-rating-card {
  appearance: none;
  -webkit-appearance: none;
  font-family: inherit;
  width: 100%;
  margin: 0;
  text-align: center;
  cursor: pointer;
  border: 1px solid rgba(251, 191, 36, 0.5) !important;
  border-radius: 22px !important;
  background: linear-gradient(155deg, rgba(154, 52, 18, 0.42) 0%, rgba(67, 20, 7, 0.92) 45%, rgba(28, 25, 23, 0.98) 100%) !important;
  box-shadow: 0 0 0 1px rgba(234, 88, 12, 0.22),
              0 4px 22px rgba(234, 88, 12, 0.2),
              inset 0 1px 0 rgba(255, 237, 213, 0.12) !important;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}
.view--active[data-view="hall-of-fame"] .hall-of-fame__autumn-rating-card:hover,
.view[data-view="hall-of-fame"] .hall-of-fame__autumn-rating-card:hover {
  box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.35),
              0 6px 26px rgba(234, 88, 12, 0.28),
              inset 0 1px 0 rgba(255, 247, 237, 0.16) !important;
}
.view--active[data-view="hall-of-fame"] .hall-of-fame__autumn-rating-card .hall-of-fame__autumn-rating-card__prize,
.view[data-view="hall-of-fame"] .hall-of-fame__autumn-rating-card .hall-of-fame__autumn-rating-card__prize {
  color: #fdba74 !important;
  text-shadow: 0 0 14px rgba(251, 191, 36, 0.35);
}
.view--active[data-view="hall-of-fame"] .hall-of-fame__autumn-rating-card .hall-of-fame__autumn-rating-card__season,
.view[data-view="hall-of-fame"] .hall-of-fame__autumn-rating-card .hall-of-fame__autumn-rating-card__season {
  color: #fed7aa !important;
}
.hall-of-fame__autumn-leaf {
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
}
.hall-of-fame__autumn-winner {
  display: block;
  margin-top: 4px;
  font-size: 1em;
  font-weight: 600;
  color: #fde68a;
  text-transform: none;
  letter-spacing: 0.02em;
}
[data-theme="light"] .view--active[data-view="hall-of-fame"] .hall-of-fame__autumn-rating-card,
[data-theme="light"] .view[data-view="hall-of-fame"] .hall-of-fame__autumn-rating-card {
  border: 1px solid rgba(234, 88, 12, 0.45) !important;
  background: linear-gradient(165deg, #fff7ed 0%, #ffedd5 35%, #fdba74 100%) !important;
  box-shadow: 0 0 0 1px rgba(251, 146, 60, 0.2),
              0 4px 18px rgba(234, 88, 12, 0.15),
              inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}
[data-theme="light"] .view--active[data-view="hall-of-fame"] .hall-of-fame__autumn-rating-card:hover,
[data-theme="light"] .view[data-view="hall-of-fame"] .hall-of-fame__autumn-rating-card:hover {
  box-shadow: 0 0 0 1px rgba(234, 88, 12, 0.35),
              0 6px 22px rgba(234, 88, 12, 0.2),
              inset 0 1px 0 rgba(255, 255, 255, 1) !important;
}
[data-theme="light"] .view--active[data-view="hall-of-fame"] .hall-of-fame__autumn-rating-card .hall-of-fame__autumn-rating-card__prize,
[data-theme="light"] .view[data-view="hall-of-fame"] .hall-of-fame__autumn-rating-card .hall-of-fame__autumn-rating-card__prize {
  color: #c2410c !important;
  text-shadow: none;
}
[data-theme="light"] .view--active[data-view="hall-of-fame"] .hall-of-fame__autumn-rating-card .hall-of-fame__autumn-rating-card__season,
[data-theme="light"] .view[data-view="hall-of-fame"] .hall-of-fame__autumn-rating-card .hall-of-fame__autumn-rating-card__season {
  color: #9a3412 !important;
}
[data-theme="light"] .hall-of-fame__autumn-winner {
  color: #b45309;
}

/* Карточка «Кубок лета 2025» — солнечная палитра */
.view--active[data-view="hall-of-fame"] .hall-of-fame__summer-rating-card,
.view[data-view="hall-of-fame"] .hall-of-fame__summer-rating-card {
  appearance: none;
  -webkit-appearance: none;
  font-family: inherit;
  width: 100%;
  margin: 0;
  text-align: center;
  cursor: pointer;
  border: 1px solid rgba(250, 204, 21, 0.55) !important;
  border-radius: 22px !important;
  background: linear-gradient(160deg, rgba(14, 116, 144, 0.55) 0%, rgba(21, 94, 117, 0.75) 28%, rgba(30, 58, 95, 0.92) 100%) !important;
  box-shadow: 0 0 0 1px rgba(253, 224, 71, 0.2),
              0 4px 22px rgba(34, 211, 238, 0.18),
              inset 0 1px 0 rgba(254, 249, 195, 0.14) !important;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}
.view--active[data-view="hall-of-fame"] .hall-of-fame__summer-rating-card:hover,
.view[data-view="hall-of-fame"] .hall-of-fame__summer-rating-card:hover {
  box-shadow: 0 0 0 1px rgba(253, 224, 71, 0.4),
              0 6px 28px rgba(34, 211, 238, 0.25),
              inset 0 1px 0 rgba(255, 251, 235, 0.2) !important;
}
.view--active[data-view="hall-of-fame"] .hall-of-fame__summer-rating-card .hall-of-fame__summer-rating-card__prize,
.view[data-view="hall-of-fame"] .hall-of-fame__summer-rating-card .hall-of-fame__summer-rating-card__prize {
  color: #fef08a !important;
  text-shadow: 0 0 16px rgba(250, 204, 21, 0.45);
}
.view--active[data-view="hall-of-fame"] .hall-of-fame__summer-rating-card .hall-of-fame__summer-rating-card__season,
.view[data-view="hall-of-fame"] .hall-of-fame__summer-rating-card .hall-of-fame__summer-rating-card__season {
  color: #a5f3fc !important;
}
.hall-of-fame__summer-sun {
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.35));
}
.hall-of-fame__summer-winner {
  display: block;
  margin-top: 4px;
  font-size: 1em;
  font-weight: 600;
  color: #fef9c3;
  text-transform: none;
  letter-spacing: 0.02em;
}
[data-theme="light"] .view--active[data-view="hall-of-fame"] .hall-of-fame__summer-rating-card,
[data-theme="light"] .view[data-view="hall-of-fame"] .hall-of-fame__summer-rating-card {
  border: 1px solid rgba(14, 165, 233, 0.45) !important;
  background: linear-gradient(165deg, #ecfeff 0%, #cffafe 35%, #a5f3fc 100%) !important;
  box-shadow: 0 0 0 1px rgba(14, 165, 233, 0.2),
              0 4px 20px rgba(14, 165, 233, 0.18),
              inset 0 1px 0 rgba(255, 255, 255, 0.95) !important;
}
[data-theme="light"] .view--active[data-view="hall-of-fame"] .hall-of-fame__summer-rating-card:hover,
[data-theme="light"] .view[data-view="hall-of-fame"] .hall-of-fame__summer-rating-card:hover {
  box-shadow: 0 0 0 1px rgba(2, 132, 199, 0.35),
              0 6px 24px rgba(14, 165, 233, 0.22),
              inset 0 1px 0 rgba(255, 255, 255, 1) !important;
}
[data-theme="light"] .view--active[data-view="hall-of-fame"] .hall-of-fame__summer-rating-card .hall-of-fame__summer-rating-card__prize,
[data-theme="light"] .view[data-view="hall-of-fame"] .hall-of-fame__summer-rating-card .hall-of-fame__summer-rating-card__prize {
  color: #0369a1 !important;
  text-shadow: none;
}
[data-theme="light"] .view--active[data-view="hall-of-fame"] .hall-of-fame__summer-rating-card .hall-of-fame__summer-rating-card__season,
[data-theme="light"] .view[data-view="hall-of-fame"] .hall-of-fame__summer-rating-card .hall-of-fame__summer-rating-card__season {
  color: #0e7490 !important;
}
[data-theme="light"] .hall-of-fame__summer-winner {
  color: #0c4a6e;
}

/* Кубок лета 2024 — миниатюра на кнопке в зале славы */
.view[data-view="hall-of-fame"] .hall-of-fame__summer-rating-card--cup-thumb .feature__cup--photo.hall-of-fame__summer-2024-cup {
  font-size: 0;
  line-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  flex-shrink: 0;
}
.view[data-view="hall-of-fame"] .hall-of-fame__summer-rating-card--cup-thumb .hall-of-fame__cup-thumb {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(253, 224, 71, 0.3);
}
@media (max-width: 400px) {
  .view[data-view="hall-of-fame"] .hall-of-fame__summer-rating-card--cup-thumb .feature__cup--photo.hall-of-fame__summer-2024-cup {
    width: 44px;
    height: 44px;
  }
}

/* Карточка «Весна 2024» — свежая весенняя палитра */
.view--active[data-view="hall-of-fame"] .hall-of-fame__spring-2024-rating-card,
.view[data-view="hall-of-fame"] .hall-of-fame__spring-2024-rating-card {
  appearance: none;
  -webkit-appearance: none;
  font-family: inherit;
  width: 100%;
  margin: 0;
  text-align: center;
  cursor: pointer;
  border: 1px solid rgba(167, 243, 208, 0.55) !important;
  border-radius: 22px !important;
  background: linear-gradient(155deg, rgba(6, 95, 70, 0.5) 0%, rgba(20, 83, 45, 0.82) 45%, rgba(15, 23, 42, 0.95) 100%) !important;
  box-shadow: 0 0 0 1px rgba(52, 211, 153, 0.22),
              0 4px 22px rgba(16, 185, 129, 0.2),
              inset 0 1px 0 rgba(236, 253, 245, 0.1) !important;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}
.view--active[data-view="hall-of-fame"] .hall-of-fame__spring-2024-rating-card:hover,
.view[data-view="hall-of-fame"] .hall-of-fame__spring-2024-rating-card:hover {
  box-shadow: 0 0 0 1px rgba(110, 231, 183, 0.4),
              0 6px 26px rgba(16, 185, 129, 0.28),
              inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
}
.view--active[data-view="hall-of-fame"] .hall-of-fame__spring-2024-rating-card .hall-of-fame__spring-2024-rating-card__prize,
.view[data-view="hall-of-fame"] .hall-of-fame__spring-2024-rating-card .hall-of-fame__spring-2024-rating-card__prize {
  color: #a7f3d0 !important;
  text-shadow: 0 0 12px rgba(52, 211, 153, 0.35);
}
.view--active[data-view="hall-of-fame"] .hall-of-fame__spring-2024-rating-card .hall-of-fame__spring-2024-rating-card__season,
.view[data-view="hall-of-fame"] .hall-of-fame__spring-2024-rating-card .hall-of-fame__spring-2024-rating-card__season {
  color: #d1fae5 !important;
}
.hall-of-fame__spring-2024-winner {
  display: block;
  margin-top: 4px;
  font-size: 1em;
  font-weight: 600;
  color: #ecfdf5;
  text-transform: none;
  letter-spacing: 0.02em;
}
[data-theme="light"] .view--active[data-view="hall-of-fame"] .hall-of-fame__spring-2024-rating-card,
[data-theme="light"] .view[data-view="hall-of-fame"] .hall-of-fame__spring-2024-rating-card {
  border: 1px solid rgba(16, 185, 129, 0.45) !important;
  background: linear-gradient(165deg, #ecfdf5 0%, #d1fae5 40%, #a7f3d0 100%) !important;
  box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.2),
              0 4px 18px rgba(5, 150, 105, 0.12),
              inset 0 1px 0 rgba(255, 255, 255, 0.95) !important;
}
[data-theme="light"] .view--active[data-view="hall-of-fame"] .hall-of-fame__spring-2024-rating-card:hover,
[data-theme="light"] .view[data-view="hall-of-fame"] .hall-of-fame__spring-2024-rating-card:hover {
  box-shadow: 0 0 0 1px rgba(5, 150, 105, 0.35),
              0 6px 22px rgba(16, 185, 129, 0.18),
              inset 0 1px 0 rgba(255, 255, 255, 1) !important;
}
[data-theme="light"] .view--active[data-view="hall-of-fame"] .hall-of-fame__spring-2024-rating-card .hall-of-fame__spring-2024-rating-card__prize,
[data-theme="light"] .view[data-view="hall-of-fame"] .hall-of-fame__spring-2024-rating-card .hall-of-fame__spring-2024-rating-card__prize {
  color: #047857 !important;
  text-shadow: none;
}
[data-theme="light"] .view--active[data-view="hall-of-fame"] .hall-of-fame__spring-2024-rating-card .hall-of-fame__spring-2024-rating-card__season,
[data-theme="light"] .view[data-view="hall-of-fame"] .hall-of-fame__spring-2024-rating-card .hall-of-fame__spring-2024-rating-card__season {
  color: #065f46 !important;
}
[data-theme="light"] .hall-of-fame__spring-2024-winner {
  color: #064e3b;
}

.hall-of-fame__block {
  margin-bottom: 12px;
}
.hall-of-fame__section-title {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text);
}
.hall-of-fame__placeholder {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.45;
}
.hall-of-fame__legends-list {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
/* Карта с надписью «Легенда Два туза» и человечком */
.hall-of-fame__legend-link {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  width: 88px;
  padding: 10px 8px 12px;
  font-family: inherit;
  color: var(--text);
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.95) 0%, rgba(226, 232, 240, 0.9) 100%);
  border: 1px solid rgba(148, 163, 184, 0.45);
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, border-color 0.2s;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.1);
}
[data-theme="dark"] .hall-of-fame__legend-link {
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 0.95) 100%);
  border-color: rgba(148, 163, 184, 0.35);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}
.hall-of-fame__legend-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.18);
  border-color: rgba(148, 163, 184, 0.55);
}
[data-theme="dark"] .hall-of-fame__legend-link:hover {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}
.hall-of-fame__legend-card-label {
  display: block;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-muted);
  margin-bottom: 8px;
  padding: 0 2px;
}
.hall-of-fame__legend-head {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  font-size: 28px;
  line-height: 1;
  background: rgba(148, 163, 184, 0.2);
  border: 2px solid rgba(148, 163, 184, 0.4);
  border-radius: 50%;
  margin-bottom: 6px;
  flex-shrink: 0;
}
.hall-of-fame__legend-link:hover .hall-of-fame__legend-head {
  background: rgba(148, 163, 184, 0.3);
  border-color: rgba(148, 163, 184, 0.55);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.2);
}
.hall-of-fame__legend-name {
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 0 2px;
}

[data-view="bonus-game"] .bonus-game-desc:first-of-type {
  margin-top: 16px;
}

.bonus-game-desc {
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.45;
}

.cooler-game-hint {
  font-weight: 600;
  color: var(--text);
}

.bonus-game-all-codes-done {
  margin: 0 0 16px;
  padding: 12px;
  font-size: 14px;
  color: var(--text);
  text-align: center;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.35);
  border-radius: 12px;
}

.bonus-game-no-attempts {
  margin: 0 0 16px;
  padding: 12px;
  font-size: 15px;
  color: var(--text-muted);
  text-align: center;
  background: rgba(148, 163, 184, 0.1);
  border-radius: 12px;
}

.bonus-game-stats {
  margin: 0 0 12px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.4;
}

.bonus-game-stats #bonusGameAttemptsCount,
.bonus-game-stats #bonusGamePromoCount {
  font-weight: 600;
  color: var(--text);
}

.bonus-game-cards {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 6px;
  margin-bottom: 16px;
}

.bonus-card {
  aspect-ratio: 2.5/3.5;
  max-height: 56px;
  min-height: 44px;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.4);
  background-image: url("./assets/equilator-back.png");
  background-size: cover;
  background-position: center;
  background-color: #1a1a2e;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}

.bonus-card:hover:not(.bonus-card--revealed):not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
  border-color: var(--accent);
}

.bonus-card:disabled {
  cursor: default;
}

.bonus-card__back {
  font-family: "Permanent Marker", cursive;
  font-size: 9px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 0.02em;
  color: #ef4444;
  text-align: center;
  padding: 0 2px;
  transform: rotate(-42deg);
  white-space: nowrap;
}

.bonus-card__face {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
  padding: 4px;
  background: linear-gradient(145deg, #f1f5f9, #e2e8f0);
  color: #1e293b;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.bonus-card__rank {
  position: absolute;
  font-size: 10px;
  line-height: 1;
  color: var(--text);
}

.bonus-card__rank--tl {
  top: 2px;
  left: 4px;
}

.bonus-card__rank--br {
  bottom: 2px;
  right: 4px;
  transform: rotate(180deg);
}

.bonus-card__suit {
  font-size: 22px;
  line-height: 1;
  color: #f87171;
}

.bonus-card__suit--spade {
  color: #1e293b;
}

.bonus-card__face-text.bonus-card__face--joker {
  font-size: 9px;
  letter-spacing: 0.02em;
  color: #a78bfa;
  transform: rotate(42deg);
  white-space: nowrap;
}

.bonus-card--revealed .bonus-card__back {
  opacity: 0;
}

.bonus-card--revealed .bonus-card__face {
  opacity: 1;
}

.bonus-card--win .bonus-card__face {
  background: linear-gradient(145deg, #14532d, #052e16);
  border-radius: 6px;
  color: #86efac;
}

.bonus-card--win .bonus-card__suit {
  color: #86efac;
}

.bonus-card--win .bonus-card__rank {
  color: #86efac;
}

.bonus-card--win .bonus-card__face-text.bonus-card__face--joker {
  color: #bbf7d0;
}

.bonus-card--lose {
  border-color: #ef4444;
  box-shadow: 0 0 0 2px #ef4444;
}

.bonus-card--lose .bonus-card__face {
  background: linear-gradient(145deg, #1e293b, #0f172a);
}

.bonus-game-result {
  min-height: 2.5em;
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 500;
  text-align: center;
  line-height: 1.4;
}

.bonus-game-result--win {
  color: var(--accent-2);
}

.bonus-game-result--lose {
  color: var(--text-muted);
}

.bonus-game-retry {
  margin-top: 8px;
}

.bonus-game-reset-wrap {
  margin: 16px 0 0;
  text-align: center;
}

.bonus-game-reset {
  padding: 6px 10px;
  font-size: 12px;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: underline;
}

.bonus-game-reset:hover {
  color: var(--text);
}

/* Переедь Штукатура */
.plasterer-desc {
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.45;
}

.plasterer-table {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  padding: 20px;
  background: linear-gradient(145deg, #0f172a, #1e293b);
  border-radius: 16px;
  border: 1px solid var(--border-subtle);
}

.plasterer-hands-row {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
  gap: 16px;
}

.plasterer-opponent {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0;
}

.plasterer-opponent .plasterer-equity,
.plasterer-opponent .plasterer-hand-name {
  margin-top: 4px;
}

.plasterer-opponent .plasterer-cards {
  margin-top: 8px;
}

.plasterer-avatar {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.plasterer-opponent-head {
  margin-bottom: 0;
}

.plasterer-opponent-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-muted);
}

.plasterer-equity {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.plasterer-hand-name {
  font-size: 11px;
  color: var(--text-muted);
  opacity: 0.9;
}

.plasterer-cards {
  display: flex;
  gap: 6px;
  justify-content: center;
  min-height: 52px;
}

.plasterer-board {
  display: flex;
  gap: 6px;
  justify-content: center;
  min-height: 52px;
}

.plasterer-board-slot {
  width: 48px;
  height: 68px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--text);
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: linear-gradient(145deg, #f1f5f9, #e2e8f0);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.plasterer-board-slot:not(.has-card) {
  background-image: url("./assets/equilator-back.png");
  background-size: cover;
  background-position: center;
  background-color: #1a1a2e;
  border-color: rgba(255, 255, 255, 0.15);
}

.plasterer-player {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.plasterer-card {
  cursor: default;
}

.plasterer-result {
  min-height: 1.5em;
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  color: var(--text);
}

.plasterer-result--win {
  color: #22c55e;
}

.plasterer-result--lose {
  color: #ef4444;
}

.plasterer-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.plasterer-actions .primary-button {
  margin-top: 0;
}

@media (max-width: 480px) {
  .bonus-game-cards {
    grid-template-columns: repeat(9, 1fr);
    gap: 6px;
  }
  .bonus-card {
    max-height: 64px;
    min-height: 48px;
  }
  .bonus-card__back {
    font-size: 9px;
  }
  .bonus-card__rank {
    font-size: 8px;
  }
  .bonus-card__suit {
    font-size: 18px;
  }
  .bonus-card__face-text.bonus-card__face--joker {
    font-size: 9px;
  }
}

.card__footer {
  margin-top: 4px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.card__footer--home {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
}

.card__footer--hidden {
  display: none;
}

.primary-button {
  width: 100%;
  border: none;
  border-radius: 999px;
  padding: 11px 16px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--btn-on-accent);
  background: linear-gradient(135deg, #f97316, #fb923c);
  box-shadow:
    0 14px 30px rgba(248, 113, 22, 0.65),
    0 0 0 1px rgba(248, 250, 252, 0.12);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition:
    transform 0.12s ease-out,
    box-shadow 0.12s ease-out,
    filter 0.12s ease-out;
}

.primary-button:active {
  transform: translateY(1px) scale(0.99);
  box-shadow:
    0 6px 14px rgba(248, 113, 22, 0.6),
    0 0 0 1px rgba(248, 250, 252, 0.12);
  filter: brightness(0.97);
}

.footer-visitors {
  margin: 0;
  font-size: 11px;
  line-height: 1.4;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.footer-visitors__total strong,
.footer-visitors__unique strong,
.footer-visitors__returning strong {
  color: var(--text);
}

.footer-visitors__version {
  white-space: nowrap;
  opacity: 0.92;
}

.footer-note {
  margin: 0;
  font-size: 10px;
  line-height: 1.4;
  color: var(--text-muted);
}

.footer-admin-visitors {
  margin: 8px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-admin-visitors--hidden {
  display: none !important;
}
.footer-admin-visitors__btn {
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background: var(--block-bg);
  color: var(--text-muted);
  cursor: pointer;
}
.footer-admin-visitors__btn:hover {
  color: var(--text);
  background: var(--bg-elevated);
}

/* Админ: просмотры раздела (внизу каждого .view) */
.admin-section-views {
  margin-top: 12px;
  padding: 8px 12px 10px;
  font-size: 11px;
  line-height: 1.35;
  text-align: center;
  color: var(--text-muted);
  border-top: 1px solid var(--border-subtle);
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.12));
}
.admin-section-views--hidden {
  display: none !important;
}
.admin-section-views__text strong {
  color: var(--text);
  font-weight: 600;
}

/* Модалка «Посетители» (админ) */
.visitors-admin-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
}
.visitors-admin-modal[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
}

.share-stats-admin-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
}
.share-stats-admin-modal[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
}
.share-stats-admin-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  cursor: pointer;
}
.share-stats-admin-modal__box {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: 85vh;
  overflow: auto;
  background: var(--card-bg);
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  padding: 20px;
}
.share-stats-admin-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  border-radius: 8px;
}
.share-stats-admin-modal__close:hover {
  color: var(--text);
  background: var(--bg-elevated);
}
.share-stats-admin-modal__title {
  margin: 0 0 8px;
  font-size: 1.25rem;
  color: var(--text);
}
.share-stats-admin-modal__hint {
  margin: 0 0 8px;
  font-size: 14px;
  color: var(--text-muted);
}
.share-stats-admin-modal__hint code {
  font-size: 12px;
  padding: 1px 4px;
  border-radius: 4px;
  background: var(--block-bg, rgba(148, 163, 184, 0.15));
}
.share-stats-admin-modal__box--wide {
  max-width: 560px;
}
.visitors-admin-modal__admin-tools-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}
.visitors-admin-modal__admin-tools-row .visitors-admin-modal__share-stats-btn {
  margin-bottom: 0;
}
@media (min-width: 400px) {
  .visitors-admin-modal__admin-tools-row {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .visitors-admin-modal__admin-tools-row .visitors-admin-modal__share-stats-btn {
    flex: 1;
    min-width: 140px;
  }
}
.tracking-links-admin__form {
  margin-bottom: 16px;
}
.tracking-links-admin__create-msg {
  min-height: 1.2em;
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--text-muted);
}
.tracking-links-admin__create-msg--err {
  color: #f87171;
}
.tracking-links-admin__new-url-wrap {
  margin-top: 12px;
}
.tracking-links-admin__new-url-wrap--hidden {
  display: none !important;
}
.tracking-links-admin__new-url-label {
  margin: 0 0 6px;
  font-size: 13px;
  color: var(--text-muted);
}
.tracking-links-admin__new-url-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
@media (min-width: 420px) {
  .tracking-links-admin__new-url-row {
    flex-direction: row;
    align-items: stretch;
  }
  .tracking-links-admin__new-url-row .visitors-admin-modal__broadcast-input {
    flex: 1;
    min-width: 0;
  }
}
.tracking-links-admin__copy-btn {
  flex-shrink: 0;
  white-space: nowrap;
}
.tracking-links-admin__th-hint {
  display: block;
  font-weight: 400;
  font-size: 10px;
  color: var(--text-muted);
  white-space: normal;
  max-width: 140px;
  line-height: 1.2;
}
.tracking-links-admin__url-copy-btn {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 6px 8px;
  border: none;
  border-radius: 8px;
  background: rgba(148, 163, 184, 0.12);
  color: var(--accent, #f97316);
  font-size: 11px;
  font-weight: 500;
  text-align: left;
  line-height: 1.35;
  word-break: break-all;
  overflow-wrap: anywhere;
  cursor: pointer;
  box-sizing: border-box;
  font-family: inherit;
}
.tracking-links-admin__url-copy-btn:hover {
  background: rgba(148, 163, 184, 0.2);
}
.tracking-links-admin__url-copy-btn:active {
  opacity: 0.9;
}
.tracking-links-admin__cell-activity {
  white-space: normal;
  max-width: 220px;
  vertical-align: top;
  font-size: 11px;
  line-height: 1.35;
}
.tracking-links-admin__no-activity {
  color: var(--text-muted);
  font-style: italic;
}
.tracking-links-admin__act-block {
  text-align: left;
}
.tracking-links-admin__act-total {
  margin-bottom: 4px;
  color: var(--text);
}
.tracking-links-admin__act-last {
  margin-top: 6px;
  font-size: 10px;
  color: var(--text-muted);
}
.tracking-links-admin__list-title {
  margin: 16px 0 8px;
  font-size: 15px;
  color: var(--text);
}
.tracking-links-admin__table-wrap {
  overflow-x: auto;
  max-height: 42vh;
  overflow-y: auto;
  border: 1px solid var(--border, #334155);
  border-radius: 10px;
}
.tracking-links-admin__table-wrap--tall {
  max-height: 55vh;
}
.tracking-links-admin__table td.tracking-links-admin__cell-label {
  white-space: normal;
  max-width: 200px;
}
.tracking-links-admin__cell-sub {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: var(--text-muted);
  word-break: break-all;
  white-space: normal;
}
.tracking-links-admin__who-btn {
  font-size: 11px;
  padding: 6px 8px;
  white-space: nowrap;
}
.tracking-links-admin__back-btn {
  margin: 0 0 12px;
  align-self: flex-start;
}
.share-stats-admin-modal__table-wrap {
  overflow-x: auto;
}
.share-stats-admin-modal__table-wrap--matrix {
  max-width: 100%;
}
.share-stats-admin-modal__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.share-stats-admin-modal__table--matrix {
  table-layout: fixed;
}
.share-stats-admin-modal__table--matrix thead tr {
  background: rgba(34, 197, 94, 0.2);
}
.share-stats-admin-modal__table--matrix th,
.share-stats-admin-modal__table--matrix td {
  width: 25%;
  padding: 3px 4px;
  text-align: left;
  border: 1px solid var(--border, #334155);
  white-space: nowrap;
}
.share-stats-admin-modal__table--matrix td:nth-child(odd) {
  font-size: 11px;
  color: var(--text-muted);
}
.share-stats-admin-modal__table th,
.share-stats-admin-modal__table td {
  padding: 4px 6px;
  text-align: left;
  border-bottom: 1px solid var(--border, #334155);
  white-space: nowrap;
}
.share-stats-admin-modal__table th {
  font-weight: 600;
  color: var(--text-muted);
}
.share-stats-admin-modal__table td {
  color: var(--text);
}
.share-stats-admin-modal__table tbody tr:last-child td {
  border-bottom: none;
}

.admin-report-input {
  width: 100%;
  max-width: 90px;
  padding: 3px 4px;
  border-radius: 6px;
  border: 1px solid var(--border-subtle);
  background: var(--input-bg, var(--card-bg));
  color: var(--text);
  font-size: 12px;
  box-sizing: border-box;
}
.share-stats-admin-modal__table--matrix .admin-report-input {
  max-width: none;
}
.admin-report-input--full {
  max-width: none;
}
.admin-report-date {
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--text-muted);
}
.admin-report-tabs {
  display: inline-flex;
  gap: 4px;
  margin-bottom: 8px;
}
.admin-report-tab {
  padding: 4px 10px;
  font-size: 13px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
}
.admin-report-tab--active {
  background: var(--accent, #a855f7);
  color: #fff;
  border-color: transparent;
}
.admin-report-panel {
  display: none;
  margin-top: 4px;
}
.admin-report-panel--active {
  display: block;
}
.admin-report-add-extra-btn {
  width: 36px;
  height: 36px;
  padding: 0;
  margin-right: 8px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  background: var(--card-bg);
  color: var(--text);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
}
.admin-report-add-extra-btn:hover {
  background: var(--accent, #a855f7);
  color: #fff;
  border-color: transparent;
}
.admin-report-submit-btn {
  margin-top: 10px;
}
.admin-report-preview-wrap {
  margin-top: 12px;
}
.admin-report-preview-wrap--hidden {
  display: none !important;
}
.admin-report-preview-title {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.admin-report-preview-content {
  font-size: 13px;
  color: var(--text);
  margin-bottom: 12px;
  max-height: 200px;
  overflow-y: auto;
}
.admin-report-preview-content .admin-report-preview-line { margin: 4px 0; }
.admin-report-preview-content .admin-report-preview-total { font-weight: 700; margin-top: 8px; }
.admin-report-preview-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.admin-report-preview-back-btn {
  min-height: var(--app-back-btn-min-height);
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background: transparent;
  color: var(--text);
  font-size: 13px;
  cursor: pointer;
}
.admin-report-preview-back-btn:hover {
  background: rgba(255,255,255,0.08);
}

/* Отправленные отчёты: по дням недели, развернуть детали */
.admin-report-sent-wrap {
  max-height: 60vh;
  overflow-y: auto;
}
.admin-report-sent-current {
  margin-bottom: 4px;
}
.admin-report-sent-actions {
  margin: 8px 0 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.admin-report-copy-summary-btn {
  padding: 8px 12px;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 13px;
  cursor: pointer;
}
.admin-report-copy-summary-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}
.admin-report-sent-period-hint {
  margin: 0 0 12px;
  padding: 8px 0;
  color: var(--text-muted);
  font-size: 13px;
}
.admin-report-week-copy-btn {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  font-size: 14px;
  cursor: pointer;
  flex: 0 0 auto;
}
.admin-report-week-copy-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text);
}
.admin-report-sent-archive {
  margin-top: 12px;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  overflow: hidden;
  background: var(--card-bg);
}
.admin-report-sent-archive__summary {
  padding: 10px 12px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  list-style: none;
}
.admin-report-sent-archive__summary::-webkit-details-marker {
  display: none;
}
.admin-report-sent-archive__inner {
  padding: 12px 12px 4px;
  border-top: 1px solid var(--border-subtle);
}
.admin-report-sent-empty {
  margin: 0;
  padding: 12px 0;
  color: var(--text-muted);
  font-size: 14px;
  text-align: center;
}
.admin-report-sent-day {
  margin-bottom: 16px;
}
.admin-report-sent-day:last-child {
  margin-bottom: 0;
}
.admin-report-sent-day-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--border-subtle);
}
.admin-report-sent-item {
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  margin-bottom: 8px;
  overflow: hidden;
}
.admin-report-sent-item:last-child {
  margin-bottom: 0;
}
.admin-report-sent-item__head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  cursor: pointer;
  background: var(--card-bg);
  color: var(--text);
  font-size: 13px;
  flex-wrap: wrap;
}
.admin-report-sent-item__head:hover {
  background: rgba(255,255,255,0.05);
}
.admin-report-sent-item__date {
  flex: 0 0 auto;
  color: var(--text-muted);
}
.admin-report-sent-item__who {
  flex: 1 1 auto;
  min-width: 0;
}
.admin-report-sent-item__total {
  font-weight: 600;
  flex: 0 0 auto;
}
.admin-report-sent-item__actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
}
.admin-report-sent-edit-btn,
.admin-report-sent-delete-btn {
  width: 28px;
  height: 28px;
  padding: 0;
  border: none;
  border-radius: 6px;
  background: rgba(255,255,255,0.1);
  color: var(--text-muted);
  font-size: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.admin-report-sent-edit-btn:hover,
.admin-report-sent-delete-btn:hover {
  background: rgba(255,255,255,0.15);
  color: var(--text);
}
.admin-report-sent-delete-btn:hover {
  background: rgba(220, 53, 69, 0.3);
  color: #dc3545;
}
.admin-report-sent-item__toggle {
  flex: 0 0 auto;
  color: var(--text-muted);
  font-size: 10px;
  transition: transform 0.2s;
}
.admin-report-sent-detail {
  background: rgba(0,0,0,0.2);
  border-top: 1px solid var(--border-subtle);
  padding: 10px 12px;
}
.admin-report-sent-detail__inner {
  display: grid;
  gap: 4px 12px;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  font-size: 12px;
  max-width: 320px;
}
.admin-report-sent-detail__row {
  display: contents;
}
.admin-report-sent-detail__label {
  color: var(--text-muted);
}
.admin-report-sent-detail__value {
  text-align: right;
  color: var(--text);
}
.admin-report-sent-detail__row.admin-report-sent-detail__total .admin-report-sent-detail__value {
  font-weight: 700;
}

.visitors-admin-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  cursor: pointer;
}
.visitors-admin-modal__box {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: 85vh;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  background: var(--card-bg);
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  padding: 20px;
}
.visitors-admin-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  border-radius: 8px;
}
.visitors-admin-modal__close:hover {
  color: var(--text);
  background: var(--bg-elevated);
}
.visitors-admin-modal__title {
  margin: 0 0 12px;
  font-size: 1.25rem;
  color: var(--text);
}
.visitors-admin-modal__stats {
  margin: 0 0 12px;
  font-size: 14px;
  color: var(--text-muted);
}
.visitors-admin-modal__stats strong {
  color: var(--text);
}
.visitors-admin-modal__filter-wrap {
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.visitors-admin-modal__filter-label {
  font-size: 14px;
  color: var(--text-muted);
}
.visitors-admin-modal__filter-select {
  padding: 6px 10px;
  font-size: 14px;
  background: var(--card-bg, #1e293b);
  border: 1px solid var(--border, #334155);
  border-radius: 8px;
  color: var(--text);
  min-width: 140px;
}
.visitors-admin-modal__stats-wrap {
  margin: 0 0 12px;
}
.visitors-admin-modal__stats-label {
  margin: 0 0 8px;
  font-size: 14px;
  color: var(--text-muted);
}
.visitors-admin-modal__groups-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.visitors-admin-modal__group-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  font-size: 14px;
  color: var(--text);
  background: var(--card-bg, #1e293b);
  border: 1px solid var(--border, #334155);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.visitors-admin-modal__group-btn:hover {
  border-color: var(--accent, #4fc3f7);
  background: rgba(79, 195, 247, 0.08);
}
.visitors-admin-modal__group-btn[aria-pressed="true"] {
  border-color: var(--accent, #4fc3f7);
  background: rgba(79, 195, 247, 0.15);
}
.visitors-admin-modal__group-btn[aria-pressed="true"] .visitors-admin-modal__group-check {
  opacity: 1;
}
.visitors-admin-modal__group-check {
  font-size: 16px;
  opacity: 0.7;
}
.visitors-admin-modal__group-btn strong {
  color: var(--text);
}
.visitors-admin-modal__stats-row {
  margin: 0 0 6px;
  font-size: 14px;
  color: var(--text-muted);
}
.visitors-admin-modal__stats-row strong {
  color: var(--text);
}
.visitors-admin-modal__show-btn {
  margin-bottom: 8px;
}
.visitors-admin-modal__broadcast-btn {
  margin-bottom: 8px;
}
.visitors-admin-modal__share-stats-btn {
  margin-bottom: 16px;
}
.visitors-admin-modal__broadcast-hint {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--text-muted);
}
.visitors-admin-modal__broadcast-label {
  display: block;
  margin-bottom: 12px;
}
.visitors-admin-modal__broadcast-label-text {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
  color: var(--text-muted);
}
.visitors-admin-modal__broadcast-text {
  width: 100%;
  padding: 8px 10px;
  font-size: 14px;
  background: var(--card-bg, #1e293b);
  border: 1px solid var(--border, #334155);
  border-radius: 8px;
  color: var(--text);
  resize: vertical;
  box-sizing: border-box;
}
.visitors-admin-modal__broadcast-input {
  width: 100%;
  padding: 8px 10px;
  font-size: 14px;
  background: var(--card-bg, #1e293b);
  border: 1px solid var(--border, #334155);
  border-radius: 8px;
  color: var(--text);
  box-sizing: border-box;
}
.visitors-admin-modal__broadcast-file {
  width: 100%;
  padding: 8px 0;
  font-size: 14px;
  color: var(--text);
  cursor: pointer;
}
.visitors-admin-modal__broadcast-file-name {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  color: var(--text-muted);
}
.visitors-admin-modal__box--broadcast .visitors-admin-modal__show-btn {
  margin-top: 8px;
}
.visitors-admin-modal__list-wrap {
  min-height: 120px;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 12px;
  background: var(--block-bg);
}
.visitors-admin-modal__list-wrap--hidden {
  display: none !important;
}
.visitors-admin-modal__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.visitors-admin-item {
  padding: 12px;
  border-radius: 10px;
  background: var(--card-bg);
  border: 1px solid var(--border-subtle);
  font-size: 13px;
}
.visitors-admin-item__row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 6px;
}
.visitors-admin-item__id {
  font-family: monospace;
  font-weight: 600;
  color: var(--text);
}
.visitors-admin-item__meta {
  color: var(--text-muted);
  font-size: 12px;
}
.visitors-admin-item__badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11px;
  background: var(--bg-elevated);
  color: var(--text-muted);
}
.visitors-admin-item__badge--yes { color: var(--success, #22c55e); }
.visitors-admin-item__badge--no { color: var(--danger, #ef4444); }
.visitors-admin-item__send {
  margin-top: 8px;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.visitors-admin-item__send input {
  flex: 1;
  min-width: 120px;
  padding: 6px 10px;
  font-size: 13px;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  background: var(--block-bg);
  color: var(--text);
}
.visitors-admin-item__send button {
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
}
.visitors-admin-item__send button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Профиль */
.profile-header-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}
.profile-header-row .title {
  margin: 0;
}

.profile-exit-btn {
  margin-left: auto;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background: var(--block-bg);
  color: var(--text);
  cursor: pointer;
}
.profile-exit-btn:hover {
  opacity: 0.9;
}
.profile-exit-btn--hidden { display: none; }
.profile-header-id {
  font-size: 14px;
  color: var(--text-muted);
}
.profile-header-id #profileUserId {
  font-family: monospace;
  font-weight: 600;
  color: var(--text);
}

.profile-greeting {
  margin: 8px 0 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
}

.profile-greeting #profileUserName {
  font-weight: 700;
  color: var(--accent);
}

.profile-greeting .profile-user-meta {
  font-size: 0.9em;
  font-weight: 400;
  color: var(--text-muted);
  font-family: var(--font-mono, monospace);
}

.profile-user-id {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--text-muted);
  font-family: monospace;
}
.profile-p21-id {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--text);
}
.profile-p21-id label {
  display: inline-block;
  margin-right: 8px;
  font-weight: 600;
  color: var(--text-muted);
}
.profile-p21-id input {
  width: 80px;
  padding: 6px 10px;
  font-size: 14px;
  font-family: monospace;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  background: var(--block-bg);
  color: var(--text);
}
.profile-p21-id input::placeholder {
  color: var(--text-muted);
}
.profile-save-btn {
  margin-left: 10px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background: var(--accent);
  color: var(--btn-on-accent);
  cursor: pointer;
}
.profile-save-btn:hover {
  opacity: 0.9;
}
.profile-save-feedback {
  margin-left: 8px;
  font-size: 12px;
  color: var(--accent-2);
  opacity: 0;
  transition: opacity 0.2s;
}
.profile-save-feedback--visible {
  opacity: 1;
}

.profile-avatar-block {
  margin-top: 16px;
  margin-bottom: 24px;
  text-align: center;
}
.profile-avatar-block__img {
  display: block;
  width: 96px;
  height: 96px;
  margin: 0 auto 10px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-subtle);
}
.profile-avatar-block__btn {
  display: inline-block;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  cursor: pointer;
}
.profile-avatar-block__btn:hover {
  background: rgba(255, 255, 255, 0.12);
}
.profile-avatar-block__btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.profile-visible-to-others {
  margin-top: 24px;
  padding: 16px;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.15);
}
.profile-visible-to-others__intro {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
}
.profile-visible-to-others__p21-hint {
  margin: 0 0 10px;
  padding: 0 4px;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 600;
  color: var(--text);
  text-align: center;
}
.profile-visible-to-others__p21-hint-arrow {
  display: inline-block;
  margin-left: 4px;
  font-weight: 800;
  color: var(--accent-2, #38bdf8);
  animation: profile-p21-hint-arrow-bounce 1.35s ease-in-out infinite;
  vertical-align: middle;
}
@keyframes profile-p21-hint-arrow-bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(5px);
  }
}
[data-theme="light"] .profile-visible-to-others__p21-hint-arrow {
  color: #0284c7;
}
.profile-visible-to-others__p21-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
}
.profile-visible-to-others__p21-input {
  width: 7.25rem;
  min-width: 6.5rem;
  max-width: 100%;
  padding: 8px 10px;
  font-size: 15px;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  letter-spacing: 0.06em;
  text-align: center;
  color: var(--text);
  background: var(--block-bg-solid);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  box-sizing: border-box;
}
.profile-visible-to-others__p21-input::placeholder {
  color: var(--text-muted);
  opacity: 0.85;
  letter-spacing: 0.06em;
}
.profile-visible-to-others__p21-save {
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--btn-on-accent);
  background: var(--accent);
  border: none;
  border-radius: 8px;
  cursor: pointer;
}
.profile-visible-to-others__p21-save:hover:not(:disabled) {
  filter: brightness(1.08);
}
.profile-visible-to-others__p21-feedback {
  font-size: 12px;
  color: var(--accent-2);
}
.profile-visible-to-others__p21-feedback:empty {
  display: none;
}
.profile-visible-to-others__level {
  text-align: center;
  margin-bottom: 16px;
}
.profile-visible-to-others__level-img {
  display: block;
  max-width: 120px;
  height: auto;
  margin: 0 auto 8px;
  border-radius: 8px;
}
.profile-visible-to-others__level-text {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
}
.profile-visible-to-others__respect {
  margin: 8px 0 0;
  font-size: 14px;
  color: var(--text-muted);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
}
.profile-visible-to-others__respect-val {
  font-weight: 600;
  color: var(--text);
}

.profile-status {
  margin-top: 0;
  margin-bottom: 8px;
}
.profile-status__title {
  margin: 0 0 10px;
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
}
.profile-status__scale-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.profile-status__labels--cards {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}
.profile-status__card {
  flex-shrink: 0;
  line-height: 1;
}
.profile-status__scale-visual {
  flex: 1;
  min-width: 0;
  --status-value: 0;
}
.profile-status__scale-input {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
  pointer-events: none;
}
.profile-status__track {
  position: relative;
  height: 28px;
  background: var(--block-bg-solid);
  border-radius: 14px;
  overflow: visible;
}
.profile-status__fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: calc(var(--status-value) * 1%);
  max-width: 100%;
  background: var(--accent);
  border-radius: 14px;
  transition: width 0.35s ease-out;
  z-index: 0;
}
.profile-status__fish {
  position: absolute;
  left: calc(var(--status-value) * 1%);
  top: 50%;
  transform: translate(-50%, -50%) scaleX(-1);
  font-size: 22px;
  line-height: 1;
  transition: left 0.35s ease-out;
  z-index: 1;
}
.profile-status__labels {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
  padding: 0 2px;
}

.profile-section {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
}
.profile-section__title {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
}
.profile-section__hint {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--text-muted);
}
.profile-section__textarea {
  width: 100%;
  max-width: 100%;
  min-height: 88px;
  padding: 10px 12px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--text);
  background: var(--block-bg-solid);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  box-sizing: border-box;
  resize: vertical;
}
.profile-section__textarea::placeholder {
  color: var(--text-muted);
}
.profile-section__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.profile-section__save-btn {
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--btn-on-accent);
  background: var(--accent);
  border: none;
  border-radius: 8px;
  cursor: pointer;
}
.profile-section__save-btn:hover:not(:disabled) {
  filter: brightness(1.08);
}
.profile-section__save-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}
.profile-section__feedback {
  font-size: 13px;
  color: var(--accent-2);
  opacity: 0;
  transition: opacity 0.2s;
}
.profile-section__feedback--visible {
  opacity: 1;
}

.profile-cols {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
}
.profile-cols--three .profile-col {
  flex: 1 1 0;
  min-width: 0;
}
.profile-col {
  padding: 12px 14px;
  background: var(--block-bg-solid);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  text-align: center;
}
.profile-col__name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}
.profile-col__range {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.3;
}

.profile-friends {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
}
.profile-friends__btn {
  width: 100%;
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  background: var(--block-bg-solid);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  cursor: pointer;
  box-sizing: border-box;
}
.profile-friends__btn:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* Стримы (с главной: Игры и приложения) */
.streams-title {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 700;
}
.streams-intro {
  margin: 0 0 20px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.45;
}

/* Расписание турниров */
.schedule-title {
  margin: 0 0 4px;
  font-size: 22px;
  font-weight: 700;
}
.schedule-subtitle {
  margin: 0 0 20px;
  font-size: 14px;
  color: var(--text-muted);
}
.tournament-day-schedule-wrap {
  margin: 16px 0 20px;
}
.tournament-day-schedule-wrap__title {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
}
.tournament-day-schedule-wrap .tournament-day-block--schedule {
  display: flex;
  align-items: stretch;
  gap: 10px;
  width: 100%;
  padding: 12px 14px;
  min-height: 72px;
  margin: 0;
  box-sizing: border-box;
  background: #000 !important;
  border: 1px solid rgba(251, 146, 60, 0.5);
  border-radius: 16px 16px 0 0;
  border-bottom: none;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(251, 146, 60, 0.2) !important;
}
.tournament-day-schedule-wrap .tournament-day-block--schedule .feature__icon {
  flex-shrink: 0;
  align-self: stretch;
  width: 50%;
  min-width: 120px;
  max-width: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  box-sizing: border-box;
}
.tournament-day-schedule-wrap .tournament-day-block__trophy-img {
  display: block;
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: center;
}
.tournament-day-schedule-wrap .tournament-day-block--schedule .tournament-day-block__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.tournament-day-schedule-wrap .tournament-day-block--schedule .tournament-day-block__name {
  font-size: 18px;
  font-weight: 700;
  color: rgb(251, 146, 60);
}
.tournament-day-schedule-wrap .tournament-day-block--schedule .tournament-day-block__meta {
  font-size: 14px;
  line-height: 1.3;
}
.tournament-day-schedule-wrap .tournament-day-block--schedule .tournament-day-block__meta .tournament-day-block__timer {
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
}
.tournament-day-schedule-wrap .tournament-day-block--schedule .tournament-day-block__name.tournament-day-name--freeroll {
  font-size: 22px;
  font-weight: 800;
}
.tournament-day-schedule-wrap .tournament-day-share-btn {
  border-radius: 0 0 16px 16px;
}
[data-theme="light"] .tournament-day-schedule-wrap .tournament-day-block--schedule {
  background: #000 !important;
  border-color: rgba(249, 115, 22, 0.5);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(0, 0, 0, 0.05), 0 0 0 1px rgba(249, 115, 22, 0.15) !important;
}
.tournament-day-block--schedule .tournament-day-block__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.tournament-day-block--schedule .tournament-day-block__name {
  font-size: 16px;
  font-weight: 600;
}
.tournament-day-block--schedule .tournament-day-block__meta {
  font-size: 13px;
  line-height: 1.3;
}
.tournament-day-block--schedule .tournament-day-block__timer {
  font-weight: 600;
  color: var(--accent);
}
[data-theme="light"] .tournament-day-block--schedule {
  background: rgba(255, 245, 235, 0.95);
  border-color: rgba(249, 115, 22, 0.4);
}

.schedule-section {
  margin-bottom: 24px;
}
.schedule-section:last-child {
  margin-bottom: 0;
}
.schedule-section__title {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 700;
  color: var(--accent);
}
.schedule-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.5);
}
.schedule-table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  font-size: 13px;
}
.schedule-table th,
.schedule-table td {
  padding: 10px 8px;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
}
.schedule-table th {
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(30, 41, 59, 0.6);
  white-space: nowrap;
}
.schedule-table td {
  color: var(--text);
}
.schedule-table tbody tr:last-child td {
  border-bottom: none;
}
.schedule-table tbody tr:nth-child(even) {
  background: rgba(30, 41, 59, 0.2);
}
[data-theme="light"] .schedule-table-wrap {
  background: rgba(255, 237, 213, 0.5);
  border-color: rgba(249, 115, 22, 0.35);
}
[data-theme="light"] .schedule-table th {
  background: rgba(255, 248, 240, 0.9);
  color: var(--text-muted);
}
[data-theme="light"] .schedule-table td {
  color: var(--text);
}
[data-theme="light"] .schedule-table tbody tr:nth-child(even) {
  background: rgba(255, 251, 247, 0.6);
}

/* Турнир дня — выделенная секция и таблица */
.schedule-section--tournament-day {
  margin-top: 20px;
  padding: 16px;
  background: linear-gradient(135deg, rgba(251, 146, 60, 0.12), rgba(234, 88, 12, 0.08));
  border: 1px solid rgba(251, 146, 60, 0.4);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(251, 146, 60, 0.15);
}
.schedule-section--tournament-day .schedule-section__title {
  font-size: 18px;
  margin-bottom: 12px;
}
.schedule-section__title-badge {
  display: inline-block;
  padding: 4px 10px;
  margin-right: 6px;
  background: linear-gradient(135deg, var(--accent), #ea580c);
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.02em;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(251, 146, 60, 0.4);
}
.schedule-table-wrap--tournament-day {
  border: 2px solid rgba(251, 146, 60, 0.5);
  background: rgba(15, 23, 42, 0.7);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 2px 12px rgba(0, 0, 0, 0.3);
}
.schedule-section--tournament-day .schedule-table th {
  background: rgba(251, 146, 60, 0.25);
  color: rgba(255, 255, 255, 0.95);
  font-weight: 700;
}
[data-theme="light"] .schedule-section--tournament-day {
  background: linear-gradient(135deg, rgba(251, 146, 60, 0.15), rgba(234, 88, 12, 0.08));
  border-color: rgba(249, 115, 22, 0.5);
}
[data-theme="light"] .schedule-section__title-badge {
  background: linear-gradient(135deg, #f97316, #ea580c);
  box-shadow: 0 2px 8px rgba(249, 115, 22, 0.35);
}
[data-theme="light"] .schedule-table-wrap--tournament-day {
  border-color: rgba(249, 115, 22, 0.5);
  background: rgba(255, 248, 240, 0.9);
}
[data-theme="light"] .schedule-section--tournament-day .schedule-table th {
  background: rgba(249, 115, 22, 0.2);
  color: var(--text);
}
.schedule-row--today td {
  background: rgba(251, 146, 60, 0.35) !important;
  font-weight: 600;
}
[data-theme="light"] .schedule-row--today td {
  background: rgba(255, 237, 213, 0.95) !important;
}
.schedule-tournament-day-trophy-inline {
  display: inline-block;
  vertical-align: middle;
  width: 52px;
  height: 52px;
  object-fit: contain;
  margin-right: 10px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

/* Эквилятор */
.equilator-intro {
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.45;
}
.equilator-form {
  margin-bottom: 24px;
  padding: 16px;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.equilator-section__title {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}
.equilator-hand-label {
  font-size: 16px;
}
.equilator-hint {
  margin: 0 0 8px;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.35;
}
.equilator-cards,
.equilator-board {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-start;
}
.equilator-hands-row {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
  gap: 16px;
}
.equilator-hero-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.equilator-opp-block {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}
.equilator-opp-list {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}
.equilator-add-player-btn {
  padding: 6px 12px;
  font-size: 13px;
  color: var(--text-muted);
  background: rgba(30, 41, 59, 0.6);
  border: 1px dashed var(--border-subtle);
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.equilator-add-player-btn:hover {
  background: rgba(51, 65, 85, 0.8);
  color: var(--text);
}
.equilator-opp-row {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  margin-bottom: 0;
}
.equilator-opp-row-head {
  display: flex;
  align-items: center;
  gap: 8px;
}
.equilator-opp-remove-btn {
  width: 24px;
  height: 24px;
  padding: 0;
  font-size: 18px;
  line-height: 1;
  color: var(--text-muted);
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.5);
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
}
.equilator-opp-remove-btn:hover {
  background: rgba(239, 68, 68, 0.4);
  color: #ef4444;
}
.equilator-opp-label {
  min-width: 70px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-muted);
}
.equilator-card-pick {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.equilator-label {
  display: block;
  width: 100%;
  margin: 0 0 2px;
  font-size: 12px;
  color: var(--text-muted);
}
.equilator-select {
  padding: 8px 10px;
  font-size: 14px;
  color: var(--text);
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  min-width: 52px;
}
.equilator-select--wide {
  min-width: 80px;
}
.equilator-result--hidden {
  display: none;
}
.equilator-result {
  padding: 16px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  margin-top: 8px;
}
.equilator-result__title {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}
.equilator-result__line {
  margin: 0 0 6px;
  font-size: 14px;
  color: var(--text);
}
.equilator-result__label {
  color: var(--text-muted);
  margin-right: 6px;
}
.equilator-result__meta {
  margin: 12px 0 0;
  font-size: 12px;
  color: var(--text-muted);
}

[data-theme="light"] .equilator-result {
  background: linear-gradient(135deg, rgba(255, 251, 247, 0.98), rgba(255, 237, 213, 0.95));
  border-color: rgba(249, 115, 22, 0.4);
  box-shadow: 0 2px 8px rgba(249, 115, 22, 0.08);
}
[data-theme="light"] .equilator-result__title,
[data-theme="light"] .equilator-result__line {
  color: var(--text);
}
[data-theme="light"] .equilator-result__label,
[data-theme="light"] .equilator-result__meta {
  color: var(--text-muted);
}

.equilator-card-slot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 68px;
  padding: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  background: linear-gradient(145deg, #f1f5f9, #e2e8f0);
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}
.equilator-card-slot:not([data-rank]) {
  background-image: url("./assets/equilator-back.png");
  background-size: cover;
  background-position: center;
  background-color: #1a1a2e;
  border-color: rgba(255, 255, 255, 0.15);
  color: transparent;
}
.equilator-card-slot:not([data-rank]) .equilator-card-slot__text { visibility: hidden; }
.equilator-card-slot:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}
.equilator-card-slot[data-rank]:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.2), 0 2px 6px rgba(0, 0, 0, 0.25);
}
.equilator-card-slot--spade { color: #1e293b; }
.equilator-card-slot--heart { color: #dc2626; }
.equilator-card-slot--diamond { color: #2563eb; }
.equilator-card-slot--club { color: #16a34a; }
.equilator-card-slot__text { font-variant-numeric: tabular-nums; }
.equilator-slot-wrap {
  display: inline-flex;
  position: relative;
  align-items: flex-start;
}
.equilator-card-slot__reset {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 22px;
  height: 22px;
  padding: 0;
  font-size: 16px;
  line-height: 1;
  color: #fff;
  background: #64748b;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  transition: background 0.15s;
}
.equilator-card-slot__reset:hover {
  background: #ef4444;
}
.equilator-card-slot__reset--hidden {
  display: none !important;
}
.equilator-board-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.equilator-board-row:last-of-type { margin-bottom: 0; }
.equilator-board-label {
  min-width: 52px;
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}
.equilator-picker-wrap {
  margin: 12px 0;
  padding: 14px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  z-index: 100;
}
.equilator-picker-wrap--hidden { display: none; }
.equilator-picker-title {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.equilator-picker-grid {
  display: grid;
  grid-template-columns: repeat(13, 1fr);
  gap: 4px;
  margin-bottom: 10px;
}
.equilator-picker-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 4px 2px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text);
  background: linear-gradient(145deg, #f8fafc, #e2e8f0);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}
.equilator-picker-card:hover:not(:disabled) {
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), 0 0 0 2px var(--accent);
}
.equilator-picker-card--spade { color: #1e293b; }
.equilator-picker-card--heart { color: #dc2626; }
.equilator-picker-card--diamond { color: #2563eb; }
.equilator-picker-card--club { color: #16a34a; }
.equilator-picker-card:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}
.equilator-picker-close {
  padding: 8px 14px;
  font-size: 13px;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  cursor: pointer;
}
.equilator-picker-close:hover { color: var(--text); border-color: var(--text-muted); }

.streams-open-in-browser {
  margin-bottom: 20px;
  padding: 12px 14px;
  background: rgba(249, 115, 22, 0.1);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
}
.streams-open-in-browser__text {
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.4;
}
.streams-open-in-browser .streams-link-row {
  margin-top: 0;
}
.streams-open-in-browser__row {
  flex-wrap: wrap;
  gap: 8px;
}
.streams-open-in-browser__row .streams-link-input {
  flex: 1 1 100%;
  min-width: 0;
}
.streams-open-browser-btn {
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  background: rgba(34, 197, 94, 0.25);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
}
.streams-open-browser-btn:hover {
  background: rgba(34, 197, 94, 0.35);
}
.streams-actions {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.streams-block {
  padding: 16px;
  background: var(--block-bg-solid);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
}
.streams-block__title {
  margin: 0 0 4px;
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
}
.streams-block__hint {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.4;
}
.streams-btn {
  padding: 10px 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  background: rgba(249, 115, 22, 0.2);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s;
}
.streams-btn:hover {
  background: rgba(249, 115, 22, 0.3);
}
.streams-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.streams-btn--stop {
  margin-top: 12px;
  background: rgba(239, 68, 68, 0.2);
}
.streams-btn--stop:hover {
  background: rgba(239, 68, 68, 0.35);
}
.streams-preview-wrap,
.streams-remote-wrap {
  margin-top: 12px;
}
.streams-preview-wrap--hidden,
.streams-remote-wrap--hidden {
  display: none !important;
}
.streams-preview-video,
.streams-remote-video {
  display: block;
  width: 100%;
  max-height: 240px;
  border-radius: 8px;
  background: #000;
  object-fit: contain;
}
.streams-link-label {
  margin: 10px 0 4px;
  font-size: 13px;
  color: var(--text-muted);
}
.streams-link-row {
  display: flex;
  gap: 8px;
  margin-top: 4px;
  align-items: center;
}
.streams-link-input {
  flex: 1;
  min-width: 0;
  padding: 8px 10px;
  font-size: 13px;
  color: var(--text);
  background: var(--input-bg, rgba(255, 255, 255, 0.06));
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
}
.streams-copy-btn {
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  background: var(--block-bg-solid);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
}
.streams-copy-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}
.streams-watch-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.streams-room-input {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  font-size: 15px;
  color: var(--text);
  background: var(--input-bg, rgba(255, 255, 255, 0.06));
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
}
.streams-remote-wrap {
  margin-top: 16px;
}
.streams-remote-video {
  max-height: 280px;
}

.respect-voters-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
}
.respect-voters-modal.respect-voters-modal--open {
  opacity: 1;
  visibility: visible;
}
.respect-voters-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  cursor: pointer;
}
.respect-voters-modal__inner {
  position: relative;
  width: 100%;
  max-width: 320px;
  max-height: 70vh;
  overflow: auto;
  background: var(--block-bg);
  border-radius: 12px;
  padding: 20px 16px 16px;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}
.respect-voters-modal__close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.respect-voters-modal__close:hover {
  background: rgba(255, 255, 255, 0.2);
}
.respect-voters-modal__title {
  margin: 0 0 12px;
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
}
.respect-voters-modal__actions {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.respect-voters-modal__btn {
  flex: 1;
  min-width: 120px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.1s;
}
.respect-voters-modal__btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.respect-voters-modal__btn--up {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff;
}
.respect-voters-modal__btn--up:hover:not(:disabled) {
  opacity: 0.95;
}
.respect-voters-modal__btn--down {
  background: linear-gradient(135deg, #64748b, #475569);
  color: #fff;
}
.respect-voters-modal__btn--down:hover:not(:disabled) {
  opacity: 0.95;
}
.respect-voters-modal__section {
  margin-bottom: 16px;
}
.respect-voters-modal__subtitle {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}
.respect-voters-modal__list {
  font-size: 14px;
  color: var(--text);
  line-height: 1.5;
}
.respect-voters-modal__list:empty::before {
  content: "Никто";
  color: var(--text-muted);
}

.friends-list-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
}
.friends-list-modal.friends-list-modal--open {
  opacity: 1;
  visibility: visible;
}
.friends-list-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  cursor: pointer;
}
.friends-list-modal__inner {
  position: relative;
  width: 100%;
  max-width: 320px;
  max-height: 70vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--block-bg);
  border-radius: 12px;
  padding: 20px 16px 16px;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}
.friends-list-modal__close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.friends-list-modal__close:hover {
  background: rgba(255, 255, 255, 0.2);
}
.friends-list-modal__title {
  margin: 0 0 16px;
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
}
.friends-list-modal__list {
  overflow: auto;
  flex: 1;
  min-height: 0;
}
.friends-list-modal__loading,
.friends-list-modal__empty {
  margin: 0;
  padding: 12px 0;
  font-size: 14px;
  color: var(--text-muted);
}
.friends-list-modal__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  font-size: 14px;
  color: var(--text);
  text-decoration: none;
  border-radius: 8px;
  margin-bottom: 4px;
  cursor: pointer;
}
.friends-list-modal__item:hover {
  background: rgba(255, 255, 255, 0.08);
}
.friends-list-modal__item-action {
  font-size: 12px;
  color: var(--accent);
  margin-left: 8px;
}
.friends-list-modal__item:hover .friends-list-modal__item-action {
  text-decoration: underline;
}

.profile-personal {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
}
.profile-personal__title {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
}
.profile-personal__hint {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--text-muted);
}
.profile-personal__textarea {
  width: 100%;
  max-width: 100%;
  min-height: 88px;
  padding: 10px 12px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--text);
  background: var(--block-bg-solid);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  box-sizing: border-box;
  resize: vertical;
}
.profile-personal__textarea::placeholder {
  color: var(--text-muted);
}
.profile-personal__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.profile-personal__save-btn {
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--btn-on-accent);
  background: var(--accent);
  border: none;
  border-radius: 8px;
  cursor: pointer;
}
.profile-personal__save-btn:hover:not(:disabled) {
  filter: brightness(1.08);
}
.profile-personal__save-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}
.profile-personal__feedback {
  font-size: 13px;
  color: var(--accent-2);
  opacity: 0;
  transition: opacity 0.2s;
}
.profile-personal__feedback--visible {
  opacity: 1;
}

.profile-randomizer {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}
.profile-randomizer-title {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}
.profile-image-wrap {
  margin-top: 20px;
  display: flex;
  justify-content: center;
}

.profile-image {
  max-width: 100%;
  width: 240px;
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
}

.profile-avatar-section {
  margin-top: 20px;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0;
  flex-wrap: wrap;
}
.profile-avatar-wrap {
  flex-shrink: 0;
  width: 50%;
  min-width: 140px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.profile-ids {
  flex: 1;
  min-width: 0;
  width: 50%;
  max-width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px 24px;
  padding-left: 16px;
}
.profile-hall-section {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
}
.profile-hall-title { font-size: 18px; margin-bottom: 4px; }
.profile-hall-subtitle { font-size: 14px; color: var(--text-muted); margin-bottom: 16px; }

.profile-user-id-hint {
  font-size: 12px;
  font-weight: normal;
  color: var(--text-muted);
}
.profile-ids .profile-user-id {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.profile-ids .profile-user-id #profileUserId {
  font-family: monospace;
  font-weight: 600;
  color: var(--text);
}
.profile-ids .profile-p21-id {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  font-size: 16px;
  min-width: 0;
  width: fit-content;
}
.profile-ids .profile-p21-label-input {
  display: flex;
  align-items: center;
  gap: 8px;
}
.profile-ids .profile-p21-id input {
  width: 96px;
  max-width: 96px;
  padding: 8px 12px;
  font-size: 16px;
  box-sizing: border-box;
}
.profile-ids .profile-p21-btn-wrap {
  width: 100%;
}
.profile-ids .profile-p21-btn-wrap .profile-save-btn {
  width: 100%;
  margin: 0;
  padding: 10px 16px;
  font-size: 15px;
  box-sizing: border-box;
}
.profile-ids .profile-p21-id label {
  margin-right: 0;
  font-weight: 600;
  font-size: 16px;
}
.profile-ids .profile-save-feedback {
  margin-top: 4px;
  font-size: 14px;
}

.profile-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.profile-avatar-btn {
  padding: 10px 18px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.profile-avatar-btn:hover {
  background: rgba(168, 85, 247, 0.2);
}

/* z-index выше подложек/оверлеев, чтобы нижнее меню никогда не перекрывалось */
.bottom-nav.bottom-nav--no-transition {
  transition: none !important;
}

.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  padding: 8px max(12px, var(--app-gutter), env(safe-area-inset-right, 0px))
    max(10px, env(safe-area-inset-bottom, 0px)) max(12px, var(--app-gutter), env(safe-area-inset-left, 0px));
  min-height: 56px;
  /* Непрозрачная база + градиент: иначе под backdrop-filter на iOS при скролле/PWA «просвечивает» лента */
  background-color: var(--overscroll-canvas);
  background-image: var(--nav-bg);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border-top: 1px solid rgba(148, 163, 184, 0.4);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  z-index: 1001;
  pointer-events: auto;
  box-sizing: border-box;
  overflow: visible;
  /* Стабилизация слоя position:fixed в WKWebView (меньше субпиксельных зазоров при резинке) */
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  /* На iOS фиксированный элемент иногда "подпрыгивает" при изменении layout viewport.
     Убираем transition для transform, чтобы не было визуального «подъёма» при свайпах. */
  transition: opacity 0.25s ease-out;
}
/* PWA: нижняя зона часто визуально «отрывается» от края — чуть больше запас под safe-area и домашнюю полосу */
@media (display-mode: standalone) {
  .bottom-nav {
    /* iOS PWA: backdrop-filter + fixed даёт «подпрыгивание» панели при скролле */
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    transform: translate3d(0, 0, 0);
    padding-bottom: max(12px, calc(env(safe-area-inset-bottom, 0px) + 6px));
  }
}
.bottom-nav__item {
  flex: 1;
  min-width: 0;
  max-width: 120px;
  border: none;
  border-radius: 12px;
  background: var(--nav-item-bg);
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 6px 4px 8px;
  border-radius: 999px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.2;
  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
  overflow: visible;
  box-sizing: border-box;
}
.bottom-nav__item .bottom-nav__label {
  line-height: 1.2;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.bottom-nav__item:nth-child(3),
.bottom-nav__chat-wrap .bottom-nav__item {
  font-size: 10px;
  padding: 6px 8px 8px;
}

.bottom-nav__icon-wrap {
  position: relative;
  display: inline-block;
}
.bottom-nav__icon {
  font-size: 18px;
}
.bottom-nav__dot {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
  display: none;
}
.bottom-nav__dot.bottom-nav__dot--on { display: block; }
.bottom-nav__badge {
  position: absolute;
  top: -6px;
  right: -8px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  border-radius: 9px;
  background: #ef4444;
  color: #fff;
  display: none;
  box-sizing: border-box;
}
.bottom-nav__badge.bottom-nav__badge--on {
  display: inline-block;
}

.bottom-nav__item:nth-child(3) .bottom-nav__icon,
.bottom-nav__chat-wrap .bottom-nav__icon {
  font-size: 20px;
}

.bottom-nav__item--active {
  color: var(--btn-on-accent);
  background: linear-gradient(135deg, #f97316, #fb923c);
  box-shadow: 0 8px 18px rgba(248, 113, 22, 0.6);
}

.bottom-nav__chat-wrap {
  position: relative;
  flex: 1;
  min-width: 0;
  max-width: 120px;
  display: flex;
  justify-content: center;
  align-items: stretch;
}
.bottom-nav__chat-wrap--hidden {
  display: none !important;
}
.bottom-nav__chat-wrap .bottom-nav__item {
  width: 100%;
  max-width: 100%;
  flex-direction: column;
}
.bottom-nav__chat-wrap .bottom-nav__item .bottom-nav__label {
  flex: none;
  min-width: 0;
  text-align: center;
}

/* Узкие экраны: нижнее меню влезает в ширину (Realme C11 и др.) */
@media (max-width: 400px) {
  .bottom-nav {
    padding-left: 6px;
    padding-right: 6px;
  }
  .bottom-nav__item,
  .bottom-nav__chat-wrap .bottom-nav__item {
    max-width: none;
    padding: 6px 2px 8px;
    font-size: 9px;
    letter-spacing: 0.02em;
  }
  .bottom-nav__chat-wrap {
    max-width: none;
  }
  .bottom-nav__icon {
    font-size: 16px;
  }
  .bottom-nav__item:nth-child(3) .bottom-nav__icon,
  .bottom-nav__chat-wrap .bottom-nav__icon {
    font-size: 18px;
  }
}
@media (max-width: 360px) {
  .bottom-nav__item,
  .bottom-nav__chat-wrap .bottom-nav__item {
    font-size: 8px;
    padding: 4px 1px 6px;
  }
  .bottom-nav__icon {
    font-size: 14px;
  }
  .bottom-nav__item:nth-child(3) .bottom-nav__icon,
  .bottom-nav__chat-wrap .bottom-nav__icon {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .card {
    padding: 18px var(--card-padding-x) 14px;
    border-radius: 20px;
  }
  .logo__mark {
    width: 38px;
    height: 38px;
    font-size: 17px;
  }

  .title {
    font-size: 22px;
  }

  .subtitle {
    font-size: 13px;
  }
}

/* Экран загрузки при открытии Mini App */
.app-boot-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0f172a;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
[data-theme="light"] .app-boot-overlay {
  background: linear-gradient(135deg, #ffedd5 0%, #fed7aa 100%);
}
.app-boot-overlay__panel {
  text-align: center;
  padding: 24px 32px;
  border-radius: 20px;
  background: rgba(30, 41, 59, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}
[data-theme="light"] .app-boot-overlay__panel {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(251, 146, 60, 0.35);
  box-shadow: 0 12px 32px rgba(251, 146, 60, 0.15);
}
.app-boot-overlay__logo {
  display: block;
  width: 52px;
  height: 52px;
  margin: 0 auto 10px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(249, 115, 22, 0.12);
}
.app-boot-overlay__spinner {
  width: 36px;
  height: 36px;
  margin: 0 auto 12px;
  border: 3px solid rgba(148, 163, 184, 0.35);
  border-top-color: #38bdf8;
  border-radius: 50%;
  animation: app-boot-spin 0.75s linear infinite;
}
[data-theme="light"] .app-boot-overlay__spinner {
  border-color: rgba(251, 146, 60, 0.35);
  border-top-color: #ea580c;
}
@keyframes app-boot-spin {
  to {
    transform: rotate(360deg);
  }
}
.app-boot-overlay__text {
  margin: 0 auto;
  max-width: 280px;
  font-size: 14px;
  line-height: 1.35;
  color: #94a3b8;
  white-space: pre-line;
}
[data-theme="light"] .app-boot-overlay__text {
  color: #64748b;
}
.app-boot-overlay.app-boot-overlay--hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Чат: кнопка отправки/микрофона во время запроса */
.chat-send-btn.chat-send-btn--waiting {
  opacity: 0.55;
  pointer-events: none;
}

/* Главный чат: заявка / админ-список доступа */
.chat-club-access-modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
}
.chat-club-access-modal:not(.chat-club-access-modal--hidden) {
  opacity: 1;
  visibility: visible;
}
.chat-club-access-modal--hidden {
  pointer-events: none;
}
.chat-club-access-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  cursor: pointer;
}
.chat-club-access-modal__panel {
  position: relative;
  width: 100%;
  max-width: 400px;
  max-height: 80vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--block-bg-solid, #1e293b);
  border-radius: 14px;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}
.chat-club-access-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-subtle);
}
.chat-club-access-modal__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}
.chat-club-access-modal__x {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.chat-club-access-modal__body {
  padding: 12px 14px 16px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.chat-club-access-modal__subtitle {
  margin: 10px 0 6px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}
.chat-club-access-modal__subtitle:first-child {
  margin-top: 0;
}
.chat-club-access-modal__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.chat-club-access-modal__row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.04);
}
.chat-club-access-modal__name {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  color: var(--text);
  word-break: break-all;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0 4px;
}
.chat-club-access-modal__profile-btn {
  max-width: 100%;
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  font-size: 14px;
  color: var(--accent);
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  word-break: break-all;
}
.chat-club-access-modal__profile-btn:active {
  opacity: 0.85;
}
.chat-club-access-modal__badge {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-radius: 6px;
  background: rgba(249, 115, 22, 0.2);
  color: var(--accent);
  vertical-align: middle;
}
[data-theme="light"] .chat-club-access-modal__badge {
  background: rgba(234, 88, 12, 0.18);
}
.chat-club-access-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.chat-club-access-modal__btn {
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 8px;
  border: 1px solid rgba(249, 115, 22, 0.5);
  background: rgba(249, 115, 22, 0.15);
  color: var(--text);
  cursor: pointer;
  font-family: inherit;
}
.chat-club-access-modal__btn--danger {
  border-color: rgba(239, 68, 68, 0.5);
  background: rgba(239, 68, 68, 0.15);
}
.chat-club-access-modal__hint {
  margin: 12px 0 0;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}
.chat-general-gate {
  padding: 16px 12px;
  text-align: center;
}
.chat-general-gate .chat-empty {
  margin: 0;
  line-height: 1.5;
}
#chatGeneralView .chat-input-area--locked {
  opacity: 0.45;
  pointer-events: none;
}

