/* styles/01-tokens.css */
    :root {
      --tg-blue: #229ED9;
      --tg-blue-dark: #168AC2;
      --bg: #FFFFFF;
      --surface: #ffffff;
      --surface-soft: #f7fafc;
      --surface-2: #edf3f8;
      --text: #0f1720;
      --muted: #667789;
      --muted-2: #96a4b1;
      --line: rgba(15, 23, 32, .075);
      --green: #17b26a;
      --red: #ef4444;
      --amber: #f59e0b;
      /* Цвета линий графика шансов. Это НЕ те же --green/--red: пара
         --green/--red дает для дейтеранопии разницу всего ΔE 5.3, то есть
         линии «да» и «нет» для дальтоника сливаются. Здесь красный углублен до
         ΔE 10.7 при неизменном зеленом - проверено валидатором палитры для
         обеих тем. Плюс линия «нет» рисуется пунктиром, чтобы различие не
         держалось на одном цвете. */
      --chart-yes: #17b26a;
      --chart-no: #d92020;
      --shadow: 0 18px 44px rgba(31, 45, 61, .105);
      --shadow-soft: 0 8px 22px rgba(31, 45, 61, .055);
      --app-max: 430px;
      --page-gutter: 14px;
      --radius-lg: 24px;
      --radius: 18px;
      --radius-sm: 12px;
      --tap: 48px;
      --nav-height: 82px;
      letter-spacing: 0.015em;
      /* Safe-area / Telegram fullscreen insets.
         Fallback to CSS env(); overridden from JS with Telegram's
         safeAreaInset / contentSafeAreaInset when running in a Mini App. */
      --safe-top: env(safe-area-inset-top, 0px);
      --safe-bottom: env(safe-area-inset-bottom, 0px);
      --safe-left: env(safe-area-inset-left, 0px);
      --safe-right: env(safe-area-inset-right, 0px);
      --content-top: 0px;
      font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    }

    [data-theme="dark"] {
      --bg: #0E1621;
      --surface: #17212b;
      --surface-soft: #1b2733;
      --surface-2: #202e3a;
      --text: #f4f8fb;
      --muted: #9aaaba;
      --muted-2: #758696;
      --line: rgba(255, 255, 255, .085);
      --shadow: 0 18px 44px rgba(0, 0, 0, .28);
      --shadow-soft: 0 8px 22px rgba(0, 0, 0, .18);
      /* Своя пара для темной темы: на темной подложке светлый зеленый выходит
         за допустимую полосу светлоты, поэтому оба тона пересчитаны и заново
         проверены валидатором (CVD ΔE 10.3, контраст к подложке в норме). */
      --chart-yes: #1cb06f;
      --chart-no: #d92626;
    }


/* styles/02-platform.css */
    /* ── Android = iOS parity ─────────────────────────────────────────────
       Современный Telegram WebView на Android (Chromium) корректно
       поддерживает backdrop-filter, поэтому frosted-glass панели (topbar,
       bottom-nav, trm-actions) рендерятся так же, как на iOS. Раньше здесь
       стояли solid-фолбэки, которые делали Android-вид другим - теперь обе
       платформы используют один и тот же размытый фон из базовых стилей. */

    * {
      box-sizing: border-box;
      -webkit-tap-highlight-color: transparent;
      touch-action: manipulation;
      scrollbar-width: none;
      -webkit-overflow-scrolling: touch;
    }
    *::-webkit-scrollbar { display: none; }
    html {
      height: 100%;
      min-height: 100%;
      background: var(--bg);
      overscroll-behavior-x: none;
      overscroll-behavior-y: contain;
    }
    body {
      height: 100%;
      min-height: 100%;
      min-height: 100dvh;
      margin: 0;
      color: var(--text);
      overscroll-behavior-x: none;
      overscroll-behavior-y: none;
      background: var(--bg);
      -webkit-font-smoothing: antialiased;
      text-rendering: geometricPrecision;
      overflow: hidden;
      user-select: none;
      -webkit-user-select: none;
      -webkit-touch-callout: none;
    }
    /* Fixed background layer - covers the whole viewport (incl. the area
       behind Telegram's fullscreen UI) and stays put while scrolling.
       Replaces `background-attachment: fixed`, which jitters/breaks in the
       Telegram webview in fullscreen mode. */
    body::before {
      content: "";
      position: fixed;
      inset: 0;
      z-index: -1;
      pointer-events: none;
      background: var(--bg);
    }

    body.no-scroll {
      overflow: hidden;
      height: 100vh;
      height: 100dvh;
    }

    /* Когда открыта экранная клавиатура (фокус в поле ввода) - не даем
       прилипшим к низу элементам «выезжать» вверх над клавиатурой. */
    body.kb-open .bottom-nav { display: none; }
    body.kb-open .trm-actions {
      position: static;
      left: auto;
      bottom: auto;
      width: auto;
      max-width: none;
      transform: none;
    }
    /* Раньше при клавиатуре модалку прижимали к верху вручную - теперь она сама
       живет внутри визуального вьюпорта (см. .modal выше), и хак не нужен. */

    /* Блокировка горизонтальной ориентации */
    .orientation-lock {
      position: fixed;
      inset: 0;
      z-index: 9999;
      display: none;
      align-items: center;
      justify-content: center;
      padding: 32px;
      text-align: center;
      background: var(--bg);
    }
    .orientation-lock-inner { display: grid; gap: 12px; justify-items: center; max-width: 320px; }
    .orientation-lock svg {
      width: 56px;
      height: 56px;
      color: var(--tg-blue);
      animation: rotate-hint 2.2s ease-in-out infinite;
    }
    .orientation-lock strong { font-size: 19px; font-weight: 950; letter-spacing: normal; }
    .orientation-lock span { color: var(--muted); font-size: 14px; line-height: 1.45; }
    @keyframes rotate-hint {
      0%, 60%, 100% { transform: rotate(0deg); }
      30% { transform: rotate(-90deg); }
    }
    /* Только для телефонов и планшетов: на ПК ландшафтное окно - норма, и
       требовать «поверните устройство» от монитора бессмысленно. */
    @media (orientation: landscape) and (max-height: 540px) {
      html:not([data-device="desktop"]) .orientation-lock { display: flex; }
      html:not([data-device="desktop"]) body.no-scroll,
      html:not([data-device="desktop"]) body { overflow: hidden; }
    }

    /* ── Планшеты: используем реальную ширину экрана вместо мобильной
       колонки на 430px - карточки и текст занимают доступное пространство. */
    html[data-device="tablet"] {
      --app-max: 700px;
      --page-gutter: 22px;
    }

    body, button, input { font: inherit; }
    button {
      border: 0;
      cursor: pointer;
      user-select: none;
      -webkit-user-select: none;
    }
    input {
      border: 0;
      outline: none;
      user-select: text;
      -webkit-user-select: text;
    }
    svg { display: block; }

    .app {
      width: min(100%, var(--app-max));
      height: 100vh;
      height: 100dvh;
      min-height: 100vh;
      min-height: 100dvh;
      margin: 0 auto;
      padding: 0 var(--page-gutter) calc(var(--nav-height) + 18px + var(--safe-bottom));
      overflow-y: auto;
      overscroll-behavior-y: contain;
      -webkit-overflow-scrolling: touch;
      scroll-behavior: smooth;
    }

    body.no-scroll .app {
      overflow: hidden;
    }


/* styles/16-splash.css */
    /* ── First-launch splash / loading screen ─────────────────────────── */
    .splash {
      position: fixed; inset: 0; z-index: 10000;
      display: grid; place-items: center;
      background: var(--bg);
      color: var(--text);
      font-family: inherit;
      padding:
        max(28px, var(--safe-top))
        max(22px, var(--safe-right))
        max(28px, var(--safe-bottom))
        max(22px, var(--safe-left));
      overflow: hidden;
      transition: opacity .5s ease, visibility .5s ease;
    }
    .splash.hide { opacity: 0; visibility: hidden; pointer-events: none; }
    /* То же кольцо, что и при разворачивании рынка: один индикатор ожидания
       на все приложение, чтобы «идет работа» выглядело всюду одинаково. */
    .splash-ring {
      width: 44px; height: 44px;
      border-radius: 50%;
      border: 3px solid var(--line);
      border-top-color: var(--tg-blue);
      animation: deploy-spin 0.9s linear infinite;
    }
    @media (prefers-reduced-motion: reduce) {
      .splash-ring { animation: none; }
      .market-list.appear > * { animation: none; }
      .sk-line::after { animation: none; }
      .screen.active.screen-anim-market-open { animation: none; }
      .market-card, .pred-card { transition: none; }
    }


/* styles/19a-lite-app.css */
    /* ── Лайт-режим: собственная оболочка ────────────────────────────────────
       Это не тема поверх основного приложения, а второй интерфейс. Лайт живет
       по своим правилам (звезды вместо цепи, свой пул, свой лидерборд), и
       натягивать его на разметку основного режима значило бы держать в каждом
       экране развилку «а если лайт». Поэтому у лайта свой контейнер, своя
       навигация и свои классы с приставкой lt-, а основная оболочка на время
       лайта просто убирается с экрана целиком.

       Приставка lt- обязательна: файлов стилей два десятка, и любое общее имя
       («.market», «.sheet», «.toggle») уже занято основным режимом. Ни одно
       правило отсюда не должно дотягиваться до его разметки и наоборот.

       Файл стоит перед 20-desktop.css: правила ПК обязаны оставаться
       последними. Про порядок файлов см. frontend/README. */

    /* ── Токены ──────────────────────────────────────────────────────────────
       Единая темная фиолетовая палитра на весь лайт, не только на главный
       экран. Раньше здесь была светлая Telegram-адаптивная тема с отдельным
       [data-theme="dark"] оверлеем - по просьбе пользователя весь лайт
       переведен на ту же палитру, что уже жила в 19b под главный экран
       (--lt2-* оттуда), и переключение системной темы больше ни на что не
       влияет: лайт всегда темный, как и его баннер на главной. Значения
       ЗАФИКСИРОВАНЫ, а не завязаны на Telegram theme-params - см. историю
       ниже про белый герой на бледном button_color. */
    body.lite-app {
      --lt-blue: #C36CFF;
      --lt-blue-text: #FFFFFF;
      --lt-bg: #14151F;
      --lt-surface: #1C202D;
      --lt-text: #F3F1F8;
      /* #AAB0C0 на #14151F сохраняет читаемость вторичного текста: старый
         #767C8E был слишком близок к фону на небольших подписях. */
      --lt-muted: #AAB0C0;
      --lt-link: #D9BBFF;
      --lt-line: rgba(116, 122, 144, .32);
      --lt-yes: #3CCB88;
      --lt-yes-soft: #15372A;
      --lt-no: #FF737C;
      --lt-no-soft: #3B2026;
      --lt-star: #FFD451;
      --lt-on-blue: #FFFFFF;
      --lt-shadow: 0 14px 34px rgba(0, 0, 0, .32);
      --lt-max: 500px;
      --lt-r-sm: 12px;
      --lt-r-md: 16px;
      --lt-r-lg: 22px;
      /* Вырезы и панели Telegram уже измерены основным приложением - берем
         готовые значения, а не считаем их второй раз своей формулой.
         --content-top - это ОТДЕЛЬНАЯ величина от --safe-top (не входит в
         нее): отступ под собственные кнопки Telegram в полноэкранном режиме
         (закрыть/меню), а --safe-top - под вырез устройства. Основная шапка
         складывает оба (styles/03-shell.css) - без --content-top шапка лайта
         пряталась бы под кнопками Telegram. */
      --lt-safe-top: calc(var(--safe-top, 0px) + var(--content-top, 0px));
      --lt-safe-bottom: var(--safe-bottom, 0px);
      background: var(--lt-bg);
    }

    /* Основная оболочка на время лайта убирается целиком - вместе с нижним
       меню и всеми плавающими панелями, которые живут вне <main class="app">.
       Прятать их поштучно из кода значило бы вспоминать про каждую при
       добавлении следующей. */
    body.lite-app .app,
    body.lite-app .bottom-nav,
    body.lite-app .trm-actions,
    body.lite-app #predictionsCreateBar,
    body.lite-app .desktop-nav,
    body.lite-app .desktop-nav-backdrop { display: none !important; }

    /* ── Каркас ──────────────────────────────────────────────────────────── */
    /* body держит overflow:hidden безусловно (styles/02-platform.css) -
       реальный скролл во всем приложении дает не документ, а конкретный
       контейнер экрана (там - .app). Макет лайта на это не рассчитывал (там
       обычная страница, и скроллил document). Без своего overflow-y здесь
       ничего не листалось бы вообще - тот самый "не свайпается вверх вниз". */
    .lt-app {
      width: min(100%, var(--lt-max));
      height: 100vh;
      height: 100dvh;
      min-height: 100vh;
      min-height: 100dvh;
      margin: 0 auto;
      background: var(--lt-bg);
      color: var(--lt-text);
      position: relative;
      letter-spacing: normal;
      overflow-y: auto;
      overscroll-behavior-y: auto;
      touch-action: pan-y;
      -webkit-overflow-scrolling: touch;
    }
    /* Явное правило, а не расчет на [hidden] браузера: в этом проекте у любого
       элемента со своим display оно бы не сработало, и одно общее правило
       здесь надежнее, чем помнить про это при каждой правке. */
    .lt-app[hidden] { display: none !important; }
    .lt-app button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
    /* Только семейство, не сокращение font: сокращение сбросило бы размер и
       начертание, заданные ниже у каждого поля и каждой кнопки. Без этого
       textarea и input рисуются моноширинным шрифтом браузера. */
    .lt-app button, .lt-app input, .lt-app textarea, .lt-app select,
    .lt-sheet button, .lt-sheet input, .lt-sheet textarea, .lt-sheet select { font-family: inherit; }
    .lt-app :focus-visible {
      outline: 3px solid color-mix(in srgb, var(--lt-blue) 36%, transparent);
      outline-offset: 2px;
    }
    .lt-page { min-height: 100dvh; padding: calc(var(--lt-safe-top) + 8px) 16px calc(82px + var(--lt-safe-bottom)); }
    /* Экран со «липкими» кнопками выбора внизу: им нужно место, иначе они
       накрывают последний блок страницы, до которого не долистать. */
    .lt-page--sticky { padding-bottom: calc(150px + var(--lt-safe-bottom)); }

    .lt-topbar { min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
    .lt-profile {
      min-width: 0; border: 0; background: transparent; padding: 2px 0;
      display: flex; align-items: center; gap: 10px; color: inherit; text-align: left;
    }
    .lt-avatar {
      width: 40px; height: 40px; border-radius: 50%; background: var(--lt-blue); color: #fff;
      display: grid; place-items: center; font-weight: 800; font-size: 14px; flex: 0 0 auto;
    }
    .lt-profile-copy { min-width: 0; }
    .lt-profile-copy strong {
      display: block; font-size: 14px; line-height: 18px;
      white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 145px;
    }
    .lt-profile-copy span {
      display: block; font-size: 12px; line-height: 16px; color: var(--lt-muted);
      white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 145px;
    }
    .lt-balance-btn {
      height: 40px; border: 0; border-radius: 13px; background: var(--lt-surface); padding: 0 11px;
      display: flex; align-items: center; gap: 7px; color: var(--lt-text);
      font-weight: 800; font-variant-numeric: tabular-nums;
    }
    /* Раньше сюда клали текстовый глиф ★ - теперь SVG (LT_ICON_STAR), одна и
       та же форма на любой платформе вместо системного шрифтового звездчика.
       display:inline-flex - чтобы SVG не проваливался ниже базовой линии
       соседнего текста, как это иногда бывает с inline-svg по умолчанию. */
    .lt-star { display: inline-flex; color: var(--lt-star); }
    .lt-star svg { width: 15px; height: 15px; }
    /* Тот же значок в местах, где раньше стоял просто текстовый ★ рядом с
       числом и красился текущим цветом строки (не золотым по умолчанию,
       как .lt-star) - лидерборд, баланс портфеля, статистика админа. Цвет
       наследуется от родителя (currentColor).
       Класс - на самом svg (LT_ICON_STAR_INLINE), не на обертке-span: у
       карточек лайта то и дело встречаются общие правила вида
       ".card span {display:block; font-size:13px}" для подписей, и обертка
       под них попадала бы и получала чужой размер вместо своего (проверено
       на .lt-balance-card span и .lt-fact span - оба перебивали обертку).
       Размер в em, а не в px: значок стоит рядом с числами очень разных
       кеглей - 13px в лидерборде, 34px в балансе портфеля. */
    svg.lt-star-ico { display: inline-block; width: 0.86em; height: 0.86em; vertical-align: -0.1em; }
    .lt-offline { margin: 4px 0 10px; background: #3A3218; color: #F3D879; padding: 9px 11px; border-radius: 12px; font-size: 12px; }

    /* ── Главная ─────────────────────────────────────────────────────────── */
    /* Герой, чипы категорий и старые вкладки периода лидеров (.lt-hero*,
       .lt-quick*, .lt-period-tab*, бесклассовый .lt-board) отсюда убраны -
       главный экран лайта переехал на свою тему в 19b-lite-home-neon.css
       (редизайн по референсу пользователя). .lt-leader/.lt-rank/... ниже
       остались: их переиспользует новая доска лидеров (.lt-board2), только
       раскрашивая по-другому. */
    .lt-section-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin: 0 2px 10px; }
    /* Заголовок сразу после карточки настроек - самой карточке некогда
       задать нижний отступ под следующий блок. */
    .lt-settings + .lt-section-head { margin-top: 20px; }
    .lt-section-head h2 { margin: 0; font-size: 19px; letter-spacing: -.25px; }
    .lt-section-head button { border: 0; background: transparent; color: var(--lt-link); font-size: 13px; font-weight: 700; padding: 4px; }

    .lt-leader { display: grid; grid-template-columns: 32px 36px 1fr auto; align-items: center; gap: 9px; min-height: 56px; padding: 8px 12px; }
    .lt-leader + .lt-leader { border-top: 1px solid var(--lt-line); }
    .lt-rank { text-align: center; font-weight: 800; font-size: 13px; color: var(--lt-muted); }
    .lt-leader-ava { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--lt-bg); font-size: 16px; }
    .lt-leader-name { font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .lt-leader-score { font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums; }
    .lt-leader.mine { background: color-mix(in srgb, var(--lt-blue) 8%, transparent); }
    .lt-board-empty { padding: 22px 16px; text-align: center; color: var(--lt-muted); font-size: 13px; line-height: 18px; }

    /* ── Списки ──────────────────────────────────────────────────────────── */
    .lt-title {
      font-family: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      font-size: 30px; line-height: 34px; letter-spacing: -.8px; margin: 16px 0 12px;
    }
    .lt-search { height: 48px; background: var(--lt-surface); border-radius: 14px; display: flex; align-items: center; gap: 9px; padding: 0 13px; margin-bottom: 12px; }
    .lt-search svg { width: 20px; height: 20px; stroke: var(--lt-muted); fill: none; stroke-width: 2; stroke-linecap: round; }
    .lt-search input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--lt-text); font-size: 15px; }
    .lt-search input::placeholder { color: var(--lt-muted); }

    .lt-filters { display: flex; gap: 5px; overflow: auto; margin: 0 -16px 10px; padding: 0 16px; scrollbar-width: none; }
    .lt-filters::-webkit-scrollbar { display: none; }
    .lt-filter { height: 38px; border: 0; border-radius: 11px; background: transparent; color: var(--lt-muted); padding: 0 12px; font-size: 13px; font-weight: 750; white-space: nowrap; }
    .lt-filter.active { background: var(--lt-surface); color: var(--lt-text); }

    .lt-list, .lt-pulse, .lt-facts, .lt-positions, .lt-settings, .lt-referral-card {
      border: 0;
      box-shadow: 0 8px 22px rgba(0, 0, 0, .12);
    }
    .lt-list { background: var(--lt-surface); border-radius: var(--lt-r-lg); overflow: hidden; }
    .lt-item { position: relative; }
    /* Разделитель рисуется псевдоэлементом, а не border-top: он начинается
       после иконки, поэтому это не граница блока, а линия внутри него. */
    .lt-item + .lt-item::before { content: ""; position: absolute; left: 66px; right: 14px; top: 0; height: 1px; background: var(--lt-line); }
    .lt-item-btn { width: 100%; border: 0; background: transparent; color: inherit; text-align: left; padding: 14px; display: grid; grid-template-columns: 42px 1fr; gap: 10px; }
    .lt-item-ico { width: 42px; height: 42px; border-radius: 13px; background: var(--lt-bg); display: grid; place-items: center; font-size: 21px; overflow: hidden; }
    .lt-item-ico img { width: 100%; height: 100%; object-fit: cover; }
    .lt-item-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 4px; }
    .lt-item-cat, .lt-item-time { font-size: 11px; color: var(--lt-muted); font-weight: 700; }
    /* Отступ справа - под звезду избранного: она лежит поверх карточки
       абсолютно, и длинный вопрос иначе уходит прямо под нее. */
    .lt-item-title { font-size: 15px; line-height: 20px; font-weight: 720; margin: 0 0 9px; padding-right: 30px; letter-spacing: -.12px; }
    .lt-split { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; }
    .lt-split b { font-size: 12px; }
    .lt-split .yes { color: var(--lt-yes); }
    .lt-split .no { color: var(--lt-no); }
    .lt-split-bar { height: 7px; border-radius: 99px; background: var(--lt-no-soft); overflow: hidden; }
    .lt-split-bar i { display: block; height: 100%; background: var(--lt-yes); border-radius: 99px; }
    .lt-fav { position: absolute; right: 10px; top: 36px; width: 34px; height: 34px; border: 0; background: transparent; color: #B1B7C0; font-size: 20px; z-index: 2; }
    .lt-fav.active { color: #FFB020; }

    .lt-empty { text-align: center; padding: 52px 24px; color: var(--lt-muted); }
    .lt-empty .emoji { font-size: 38px; margin-bottom: 9px; }
    .lt-empty strong { display: block; color: var(--lt-text); font-size: 16px; margin-bottom: 4px; }
    .lt-empty span { font-size: 13px; line-height: 18px; }

    /* Круглая, крупнее прежней плитки: "+" - самое частое действие на экране
       угадалок (создать свою), и на квадрате с текстовым "+" глиф ощутимо
       "плавал" мимо оптического центра - у шрифтов плюс редко стоит на
       середине em-квадрата. display:grid + place-items вместо текста решает
       это раз и навсегда: центрируется сама SVG-иконка, а не символ шрифта. */
    .lt-fab {
      position: fixed; right: max(18px, calc((100vw - var(--lt-max)) / 2 + 18px));
      bottom: calc(88px + var(--lt-safe-bottom));
      width: 64px; height: 64px; border: 0; border-radius: 50%;
      display: grid; place-items: center;
      background: var(--lt-blue); color: #fff;
      box-shadow: var(--lt-shadow); z-index: 25;
    }
    .lt-fab svg { width: 28px; height: 28px; stroke: currentColor; fill: none; stroke-width: 2.4; stroke-linecap: round; }
    .lt-fab:active { transform: scale(.97); }

    /* ── Карточка рынка ──────────────────────────────────────────────────── */
    .lt-back { width: 42px; height: 42px; border: 0; border-radius: 13px; background: var(--lt-surface); display: grid; place-items: center; color: var(--lt-text); }
    .lt-back svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
    .lt-detail-meta { margin: 16px 2px 7px; color: var(--lt-muted); font-size: 12px; font-weight: 700; }
    .lt-detail-title {
      font-family: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      font-size: 29px; line-height: 34px; letter-spacing: -.7px; margin: 0 0 18px;
    }
    .lt-pulse { background: var(--lt-surface); border-radius: var(--lt-r-lg); padding: 16px; margin-bottom: 10px; }
    .lt-pulse-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
    .lt-pulse-top span { font-size: 13px; color: var(--lt-muted); }
    .lt-info-btn { width: 30px; height: 30px; border: 0; border-radius: 9px; background: var(--lt-bg); color: var(--lt-muted); font-weight: 850; }
    .lt-pulse-values { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 9px; }
    .lt-pulse-values strong { font-size: 22px; }
    .lt-pulse-bar { height: 10px; background: var(--lt-no-soft); border-radius: 99px; overflow: hidden; }
    .lt-pulse-bar i { display: block; height: 100%; background: var(--lt-yes); border-radius: 99px; transition: width 180ms ease-out; }

    .lt-facts { background: var(--lt-surface); border-radius: var(--lt-r-lg); overflow: hidden; }
    .lt-fact { padding: 14px 15px; display: grid; grid-template-columns: 28px 1fr; gap: 10px; }
    .lt-fact + .lt-fact { border-top: 1px solid var(--lt-line); }
    .lt-fact-ico { font-size: 18px; line-height: 22px; text-align: center; }
    /* Большинство fact-ico - эмодзи (свой цвет уже встроен в картинку), но
       звезда теперь SVG и красится текстовым цветом строки, как эмодзи-звезда
       красилась бы желтым у себя - желтый и есть цвет валюты, поэтому золото
       здесь уместнее наследуемого currentColor. */
    .lt-fact-ico svg { width: 18px; height: 18px; display: inline-block; vertical-align: -3px; color: var(--lt-star); }
    .lt-fact strong { display: block; font-size: 13px; margin-bottom: 2px; }
    .lt-fact span { display: block; font-size: 13px; line-height: 18px; color: var(--lt-muted); }
    .lt-note { margin: 10px 2px; color: var(--lt-muted); font-size: 12px; line-height: 17px; }

    .lt-sticky {
      position: fixed; left: 50%; bottom: 0; transform: translateX(-50%);
      width: min(100%, var(--lt-max)); padding: 10px 16px calc(12px + var(--lt-safe-bottom));
      background: linear-gradient(to top, var(--lt-bg) 74%, transparent); z-index: 24;
    }
    .lt-choice-label { text-align: center; color: var(--lt-muted); font-size: 12px; margin-bottom: 7px; }
    .lt-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
    .lt-choice { height: 58px; border: 0; border-radius: 15px; font-size: 17px; font-weight: 850; }
    .lt-choice.no { background: var(--lt-no-soft); color: var(--lt-no); }
    .lt-choice.yes { background: var(--lt-yes); color: #fff; }
    .lt-choice:disabled { opacity: .45; }
    .lt-choice:active { transform: scale(.985); }

    /* ── Раунды по крипте ─────────────────────────────────────────────────
       Тот же язык карточек, что и у угадаек, но вместо доли «да» показывается
       цена: у раунда вопрос не «сбудется ли», а «выше или ниже вот этой
       отметки», и без самой отметки карточка ничего не сообщает. */
    .lt-price { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
    .lt-price strong { font-size: 17px; font-variant-numeric: tabular-nums; letter-spacing: -.3px; }
    .lt-price span { font-size: 12px; color: var(--lt-muted); font-variant-numeric: tabular-nums; }
    .lt-round-target { background: var(--lt-surface); border: 1px solid var(--lt-line); border-radius: var(--lt-r-lg); box-shadow: 0 8px 22px rgba(0, 0, 0, .12); padding: 16px; margin-bottom: 10px; text-align: center; }
    .lt-round-target span { display: block; font-size: 13px; color: var(--lt-muted); margin-bottom: 6px; }
    .lt-round-target strong { display: block; font-size: 30px; line-height: 34px; letter-spacing: -.7px; font-variant-numeric: tabular-nums; }
    .lt-round-clock { margin-top: 10px; font-size: 13px; color: var(--lt-muted); font-variant-numeric: tabular-nums; }

    /* ── Создание ────────────────────────────────────────────────────────── */
    .lt-create-intro { text-align: center; padding: 15px 20px 18px; }
    .lt-create-intro .emoji { font-size: 35px; margin-bottom: 5px; }
    .lt-create-intro h1 {
      font-family: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      font-size: 28px; line-height: 32px; margin: 0 0 5px;
    }
    .lt-create-intro p { margin: 0; color: var(--lt-muted); font-size: 13px; line-height: 18px; }
    .lt-form { display: grid; gap: 14px; }
    .lt-field label { display: block; font-size: 13px; font-weight: 750; margin: 0 0 7px 2px; }
    .lt-field input, .lt-field textarea, .lt-field select {
      width: 100%; border: 0; outline: 0; background: var(--lt-surface); color: var(--lt-text);
      border-radius: 14px; padding: 13px 14px; font-size: 15px;
    }
    .lt-field textarea { min-height: 104px; resize: vertical; line-height: 20px; }
    .lt-field .helper { display: block; font-size: 11px; color: var(--lt-muted); margin: 6px 2px 0; line-height: 15px; }
    .lt-answers { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
    .lt-answer { height: 50px; border-radius: 14px; display: flex; align-items: center; padding: 0 14px; font-weight: 800; }
    .lt-answer.yes { background: var(--lt-yes-soft); color: var(--lt-yes); }
    .lt-answer.no { background: var(--lt-no-soft); color: var(--lt-no); }
    .lt-submit {
      width: 100%; height: 54px; border: 0; border-radius: 15px;
      background: var(--lt-blue); color: var(--lt-blue-text); font-weight: 850; font-size: 16px; margin-top: 2px;
    }
    .lt-submit:disabled { opacity: .45; }

    /* ── Портфель ────────────────────────────────────────────────────────── */
    .lt-balance-card {
      background: linear-gradient(135deg, #2B1F42, #1C202D 68%); color: #fff;
      border: 1px solid rgba(217, 187, 255, .26); border-radius: 26px;
      box-shadow: var(--lt-shadow); padding: 18px; margin: 12px 0 14px;
    }
    .lt-balance-card span { display: block; font-size: 13px; color: rgba(255, 255, 255, .82); margin-bottom: 4px; }
    .lt-balance-card strong { display: block; font-size: 34px; line-height: 39px; letter-spacing: -.7px; margin-bottom: 14px; font-variant-numeric: tabular-nums; }
    /* Не 1fr/1fr: «Вывести подарком» вдвое длиннее «Пополнить» и в равной
       колонке ломается на две строки. */
    .lt-balance-actions { display: grid; grid-template-columns: 1fr 1.25fr; gap: 8px; }
    .lt-balance-actions:only-child, .lt-balance-actions.one { grid-template-columns: 1fr; }
    .lt-balance-card button { height: 45px; border: 0; border-radius: 13px; background: var(--lt2-cta-bg, #D9BBFF); color: #241B36; font-weight: 850; font-size: 13px; padding: 0 8px; white-space: nowrap; }
    .lt-balance-card button.ghost { background: rgba(255, 255, 255, .08); color: #fff; border: 1px solid rgba(217, 187, 255, .28); }

    .lt-subtabs { display: flex; gap: 5px; margin-bottom: 9px; }
    .lt-subtab { height: 36px; border: 0; border-radius: 10px; background: transparent; color: var(--lt-muted); font-size: 13px; font-weight: 750; padding: 0 12px; }
    .lt-subtab.active { background: var(--lt-surface); color: var(--lt-text); }
    .lt-positions { background: var(--lt-surface); border-radius: var(--lt-r-lg); overflow: hidden; }
    .lt-position { padding: 14px; }
    .lt-position + .lt-position { border-top: 1px solid var(--lt-line); }
    .lt-position-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 5px; }
    .lt-side { height: 24px; border-radius: 8px; padding: 0 8px; display: inline-flex; align-items: center; font-size: 11px; font-weight: 850; }
    .lt-side.yes { background: var(--lt-yes-soft); color: var(--lt-yes); }
    .lt-side.no { background: var(--lt-no-soft); color: var(--lt-no); }
    .lt-position-amount { font-size: 12px; color: var(--lt-muted); font-variant-numeric: tabular-nums; }
    .lt-position h3 { font-size: 14px; line-height: 19px; margin: 0 0 6px; }
    .lt-position-foot { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--lt-muted); }
    .lt-position-foot .win { color: var(--lt-yes); font-weight: 800; }
    .lt-position-foot .lose { color: var(--lt-no); font-weight: 800; }

    /* ── Настройки ───────────────────────────────────────────────────────── */
    .lt-settings { background: var(--lt-surface); border-radius: var(--lt-r-lg); overflow: hidden; margin-top: 12px; }
    .lt-set-row {
      width: 100%; min-height: 54px; border: 0; background: transparent; color: inherit; padding: 0 14px;
      display: flex; align-items: center; justify-content: space-between; gap: 10px; text-align: left;
    }
    .lt-set-row + .lt-set-row { border-top: 1px solid var(--lt-line); }
    .lt-set-row span:first-child { font-size: 14px; font-weight: 650; }
    .lt-set-row span:last-child { font-size: 13px; color: var(--lt-muted); }
    /* Строка-ссылка с иконкой слева (Официальный канал, Условия, Политика) -
       .lt-set-left оборачивает иконку и текст в один first-child, чтобы
       правило выше (font-size/weight на первом span) само дошло до подписи
       через наследование, без отдельного селектора под нее. */
    .lt-set-left { display: flex; align-items: center; gap: 11px; min-width: 0; }
    .lt-set-left span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .lt-set-icon {
      flex: 0 0 auto; width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center;
      background: color-mix(in srgb, var(--lt-blue) 14%, transparent); color: var(--lt-blue);
    }
    .lt-set-icon svg { width: 18px; height: 18px; }
    .lt-toggle { width: 47px; height: 28px; border-radius: 99px; background: #364554; padding: 3px; transition: .16s; flex: 0 0 auto; }
    .lt-toggle i { display: block; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: .16s; box-shadow: 0 1px 2px rgba(0, 0, 0, .15); }
    .lt-toggle.on { background: var(--lt-blue); }
    .lt-toggle.on i { transform: translateX(19px); }

    /* Карточка приглашения друга - код и ссылка, без партнерских процентов
       (те считаются по цепи и в лайт не переносятся, см. ltReferralSection). */
    .lt-referral-card { background: var(--lt-surface); border-radius: var(--lt-r-md); padding: 16px; margin-top: 12px; }
    .lt-referral-head { display: flex; align-items: center; gap: 12px; }
    .lt-referral-ico {
      flex: 0 0 auto; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
      background: color-mix(in srgb, var(--lt-blue) 14%, transparent); color: var(--lt-blue);
    }
    .lt-referral-ico svg { width: 20px; height: 20px; }
    .lt-referral-head b { display: block; font-size: 14px; }
    .lt-referral-head span { display: block; font-size: 12px; color: var(--lt-muted); margin-top: 2px; line-height: 1.35; }
    .lt-referral-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 14px 0; }
    .lt-referral-stats div { background: var(--lt-bg); border-radius: 12px; padding: 10px 12px; text-align: center; }
    .lt-referral-stats b { display: block; font-size: 20px; font-variant-numeric: tabular-nums; }
    .lt-referral-stats span { display: block; font-size: 11px; color: var(--lt-muted); margin-top: 2px; }
    .lt-referral-link {
      width: 100%; display: flex; align-items: center; gap: 8px; background: var(--lt-bg); border: 0;
      border-radius: 12px; padding: 12px 14px; font-size: 13px; font-weight: 700; color: var(--lt-text);
      text-align: left; margin-bottom: 12px;
    }
    .lt-referral-link svg:first-child { flex: 0 0 auto; width: 16px; height: 16px; color: var(--lt-muted); }
    .lt-referral-link span { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .lt-referral-link svg:last-child { flex: 0 0 auto; width: 16px; height: 16px; color: var(--lt-muted); }
    .lt-referral-code-row { display: flex; gap: 8px; }
    /* .lt-field input уже задает width:100% - переопределяем на flex:1, иначе
       поле требовало бы всю ширину строки и выталкивало кнопку «Применить». */
    .lt-referral-code-row input {
      width: auto; flex: 1 1 auto; min-width: 0; border: 0; outline: 0; background: var(--lt-bg); color: var(--lt-text);
      border-radius: 12px; padding: 12px 14px; font-size: 14px;
    }
    .lt-referral-code-row .lt-secondary { width: auto; flex: 0 0 auto; margin: 0; padding: 0 16px; }
    .lt-referral-footer { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
    .lt-referral-footer .lt-secondary, .lt-referral-footer .lt-primary { width: 100%; height: 48px; margin: 0; }

    /* ── Шторки ──────────────────────────────────────────────────────────── */
    .lt-sheet-wrap {
      position: fixed; inset: 0; background: rgba(4, 5, 10, .68); z-index: 80;
      display: flex; align-items: flex-end; justify-content: center;
      opacity: 0; visibility: hidden; pointer-events: none;
      transition: opacity 180ms ease, visibility 0s linear 180ms;
    }
    .lt-sheet-wrap.open { opacity: 1; visibility: visible; pointer-events: auto; transition-delay: 0s; }
    .lt-sheet {
      width: min(100%, var(--lt-max)); background: var(--lt-surface); color: var(--lt-text);
      border: 1px solid rgba(217, 187, 255, .18); border-bottom: 0; border-radius: 26px 26px 0 0;
      padding: 9px 16px calc(16px + var(--lt-safe-bottom)); max-height: 92dvh; overflow: auto;
      transform: translateY(24px); transition: transform 220ms cubic-bezier(.2, .8, .2, 1);
    }
    .lt-sheet-wrap.open .lt-sheet { transform: translateY(0); }
    .lt-grab { width: 35px; height: 4px; border-radius: 99px; background: #475564; margin: 2px auto 15px; }
    .lt-sheet h2 {
      font-family: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      font-size: 22px; line-height: 27px; margin: 0 0 5px; letter-spacing: -.35px;
    }
    .lt-sheet-sub { font-size: 13px; line-height: 18px; color: var(--lt-muted); margin: 0 0 14px; }
    /* Поле внутри шторки: сама шторка уже белая, и поле цвета surface на ней
       не видно вовсе. */
    .lt-sheet .lt-field input, .lt-sheet .lt-field textarea, .lt-sheet .lt-field select { background: var(--lt-bg); }
    .lt-menu { display: grid; gap: 7px; margin-top: 10px; }
    .lt-menu-item {
      width: 100%; min-height: 50px; border: 0; border-radius: 13px; background: var(--lt-bg); color: var(--lt-text);
      display: flex; align-items: center; gap: 11px; padding: 0 13px; text-align: left; font-weight: 750;
    }
    .lt-menu-item .ico {
      flex: 0 0 auto; width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center;
      background: color-mix(in srgb, var(--lt-blue) 14%, transparent); color: var(--lt-blue);
    }
    .lt-menu-item .ico svg { width: 18px; height: 18px; }
    .lt-sel-side { display: inline-flex; height: 28px; align-items: center; padding: 0 9px; border-radius: 8px; font-size: 12px; font-weight: 850; margin-bottom: 9px; }
    .lt-sel-side.yes { background: var(--lt-yes-soft); color: var(--lt-yes); }
    .lt-sel-side.no { background: var(--lt-no-soft); color: var(--lt-no); }
    .lt-sheet-balance { display: flex; align-items: center; justify-content: space-between; background: var(--lt-bg); border-radius: 13px; padding: 10px 12px; margin: 12px 0; }
    .lt-sheet-balance span { font-size: 12px; color: var(--lt-muted); }
    .lt-sheet-balance strong { font-size: 15px; font-variant-numeric: tabular-nums; }
    .lt-amount { height: 58px; background: var(--lt-bg); border-radius: 14px; display: flex; align-items: center; padding: 0 13px; margin: 7px 0 8px; }
    .lt-amount .lt-star { margin-right: 7px; }
    .lt-amount input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--lt-text); font-size: 25px; font-weight: 850; font-variant-numeric: tabular-nums; }
    .lt-presets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; margin-bottom: 13px; }
    .lt-preset { height: 38px; border: 0; border-radius: 10px; background: var(--lt-bg); color: var(--lt-text); font-size: 13px; font-weight: 800; }
    .lt-preset:disabled { opacity: .35; }
    .lt-reward { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--lt-yes-soft); border-radius: 13px; padding: 11px 12px; margin-bottom: 13px; }
    .lt-reward span { font-size: 12px; color: #8CC8A8; }
    .lt-reward strong { font-size: 18px; color: #63DB9C; font-variant-numeric: tabular-nums; }
    .lt-primary { width: 100%; height: 54px; border: 0; border-radius: 999px; background: var(--lt2-cta-bg, #D9BBFF); color: #241B36; font-size: 16px; font-weight: 850; }
    .lt-primary:disabled { opacity: .45; }
    .lt-secondary { width: 100%; height: 48px; border: 0; border-radius: 13px; background: var(--lt-bg); color: var(--lt-text); font-size: 14px; font-weight: 800; margin-top: 8px; }
    .lt-packs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0; }
    .lt-pack { border: 0; border-radius: 14px; background: var(--lt-bg); color: var(--lt-text); padding: 14px 12px; text-align: left; }
    .lt-pack strong { display: block; font-size: 20px; margin-bottom: 2px; font-variant-numeric: tabular-nums; }
    .lt-pack span { font-size: 12px; color: var(--lt-muted); }
    .lt-rate { text-align: center; font-size: 12px; color: var(--lt-muted); margin: 3px 0 5px; }
    .lt-success { text-align: center; padding: 9px 4px 4px; }
    .lt-success .emoji { font-size: 45px; margin-bottom: 8px; }
    .lt-success h2 { margin-bottom: 5px; }
    .lt-success p { margin: 0 auto 15px; color: var(--lt-muted); font-size: 13px; line-height: 18px; max-width: 310px; }

    /* Витрина подарков - единственный выход звезд наружу. Сетка на три, как в
       прежней модалке: подарков у Telegram бывает два десятка. */
    .lt-gifts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 12px 0; max-height: 46vh; overflow-y: auto; }
    .lt-gift { display: grid; justify-items: center; gap: 6px; padding: 12px 6px; border: 0; border-radius: 13px; background: var(--lt-bg); color: var(--lt-text); }
    .lt-gift:active { transform: scale(.97); }
    .lt-gift:disabled { opacity: .4; }
    .lt-gift-emoji { font-size: 26px; line-height: 1; }
    .lt-gift-price { font-size: 12px; font-weight: 850; white-space: nowrap; font-variant-numeric: tabular-nums; }

    /* ── Навигация ───────────────────────────────────────────────────────── */
    .lt-nav {
      position: fixed; left: 50%; bottom: 0; transform: translateX(-50%);
      width: min(100%, var(--lt-max)); height: calc(68px + var(--lt-safe-bottom));
      padding: 4px 16px var(--lt-safe-bottom); background: var(--lt-surface);
      border-top: 1px solid var(--lt-line); display: grid; grid-template-columns: repeat(3, 1fr); z-index: 30;
    }
    .lt-nav button {
      border: 0; background: transparent; color: #738090;
      display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
      font-size: 11px; font-weight: 750;
    }
    .lt-nav button.active { color: var(--lt-blue); }
    .lt-nav svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

    .lt-toast {
      position: fixed; left: 50%; bottom: calc(82px + var(--lt-safe-bottom)); transform: translate(-50%, 10px);
      background: var(--lt-surface); color: var(--lt-text); border: 1px solid var(--lt-line); border-radius: 13px; padding: 10px 13px;
      max-width: calc(min(100%, var(--lt-max)) - 30px); font-size: 12px;
      opacity: 0; pointer-events: none; transition: .18s; z-index: 100; text-align: center;
    }
    .lt-toast.show { opacity: 1; transform: translate(-50%, 0); }
    .lt-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

    @media (max-width: 360px) {
      .lt-profile-copy { display: none; }
      .lt-item-btn { grid-template-columns: 38px 1fr; }
      .lt-item-ico { width: 38px; height: 38px; }
    }

    /* Движение должно подтверждать действие, а не отвлекать при секундном
       обновлении рынков. Поэтому двигаются только прямые действия человека:
       нажатия, смена вкладки, шторка и значение пула. */
    .lt-app button:not(:disabled) { transition: transform 120ms ease, filter 120ms ease, background-color 160ms ease, color 160ms ease; }
    .lt-app button:not(:disabled):active { transform: scale(.98); filter: brightness(1.06); }
    .lt-fab:active, .lt-choice:active, .lt-gift:active { transform: scale(.97); }
    @media (prefers-reduced-motion: reduce) {
      .lt-app *, .lt-sheet-wrap, .lt-sheet { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    }

/* styles/19b-lite-home-neon.css */
    /* ── Главный экран лайта: отдельная тема ─────────────────────────────────
       По прямой просьбе пользователя переработан 1 в 1 по референсу
       (скриншот с художественным баннером "угадывай и зарабатывай!") -
       см. память opton-lite-mode.md. Это НЕ общая тема лайта: только главный
       экран (ltScreenHome) и нижняя навигация (общий для всех экранов
       элемент - без ее переоформления под темным баннером виднелся бы шов
       между темным экраном и светлым баром). Остальные экраны лайта
       (угадалки, раунды, портфель, настройки) остаются на прежней светлой
       палитре - об этом просили именно "главную".

       Тема фиксированная (темная), а не завязанная на data-theme: сама
       иллюстрация нарисована для темного фона, и переключение в системную
       светлую тему испортило бы контраст текста на баннере. Токены ниже -
       ЗАМЕНА -lt-* для этого экрана, не поверх них: получить синий герой из
       19a-lite-app.css вместо темного значило бы наполовину применить
       редизайн.

       Второй заход (по детальному пиксельному брифу с точными координатами/
       цветами/шрифтами): --lt2-bg у героя ОБЯЗАН остаться цветом самого файла
       lite-hero.jpg (сняли пипеткой) - это не по вкусу, а чтобы низ карточки
       (сплошная заливка) не имел шва с картинкой сверху. Доска лидеров и фон
       страницы вокруг карточек красятся уже в СВОИ, чуть более темные/светлые
       оттенки - в брифе они трехуровневые (страница темнее, карточки светлее),
       но именно у героя выбора нет. */
    .lt-page-home { background: var(--lt2-page-bg); }

    body.lite-app {
      --lt2-page-bg: #14151F;
      --lt2-bg: #171A23;
      --lt2-card-bg: #1C202D;
      --lt2-line: rgba(116, 122, 144, .32);
      --lt2-text: #F3F1F8;
      --lt2-muted: #AAB0C0;
      --lt2-purple: #C36CFF;
      --lt2-purple-soft: rgba(196, 108, 255, .16);
      --lt2-lavender: #CE83FF;
      --lt2-cta-bg: #D9BBFF;
      --lt2-cta-text: #241B36;
      --lt2-green: #7CFA6E;
      --lt2-yellow: #FFD42A;
      /* Рукописный шрифт - только для двух надписей, которые на референсе
         явно не sans-serif ("лидеры" и текст кнопки "Угадывать!"). Кириллица
         у Neucha - родная (шрифт исходно рисовался под русский), поэтому
         страховка от "красивых квадратиков" не нужна, но системный курсив
         все равно стоит запасным на случай недоступности Google Fonts. */
      --lt2-hand: "Neucha", "Segoe Script", cursive;
    }

    /* ── Шапка (только главный экран) ────────────────────────────────────── */
    .lt-home-head {
      min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
    }
    .lt-home-head .lt-profile { color: var(--lt2-text); }
    .lt-home-head .lt-profile-copy span { color: var(--lt2-muted); }
    /* Синий аватар (--lt-blue) из общей шапки спорил бы с фиолетово-зеленой
       палитрой этого экрана. Форма - скругленный квадрат, а не круг: на
       референсе это плейсхолдер именно такой формы. Имя и юзернейм оставлены
       настоящими (не серыми плашками-заглушками, как буквально на скрине) -
       постоянные нечитаемые полосы вместо своего имени в живом приложении
       выглядели бы забытым лоадером, а не оформлением. */
    .lt-home-head .lt-avatar { background: linear-gradient(135deg, #A855F7, #7C3AED); border-radius: 16px; }
    /* Кнопка справа заменяет собой пилюлю с балансом обычной шапки: баланс
       переехал в саму карточку героя (там же, где на референсе), а здесь -
       единственный на весь лайт вход в портфель без цифр, только значок. */
    .lt-home-sparkle {
      width: 42px; height: 42px; border: 0; border-radius: 13px; flex: 0 0 auto;
      display: grid; place-items: center; color: #fff;
      background: linear-gradient(135deg, #A855F7, #7C3AED);
      box-shadow: 0 6px 16px rgba(124, 58, 237, .35);
    }
    .lt-home-sparkle svg { width: 20px; height: 20px; }
    .lt-home-sparkle:active { transform: scale(.95); }

    /* ── Герой ───────────────────────────────────────────────────────────── */
    .lt-hero2 {
      margin-top: 10px; background: var(--lt2-bg); border: 0;
      border-radius: 30px; overflow: hidden; box-shadow: var(--lt-shadow);
    }
    /* Пропорции ровно как у самого файла (900x720 = 5:4) - без этого браузер
       резервирует место под неизвестную высоту, и герой "прыгает" при
       появлении картинки. */
    .lt-hero2-media { position: relative; }
    .lt-hero2-art { display: block; width: 100%; aspect-ratio: 5 / 4; object-fit: cover; }
    /* Подпись и стрелка лежат прямо на картинке, у ее нижнего края - там фон
       уже темный и ровный (тот же тон, что и остальная картинка), белый текст
       читается без градиента-подложки под ним. Смещена ближе к самому краю
       (bottom:6px, было 14px), а отступ тела под кнопками урезан следом
       (было 12px) - по просьбе пользователя кнопки должны стоять сразу под
       подписью, а не через большой просвет. */
    .lt-hero2-overlay { position: absolute; left: 18px; right: 18px; bottom: 6px; }
    .lt-hero2-sub {
      margin: 0; color: var(--lt2-text); font-size: 15px; line-height: 21px; font-weight: 650;
      text-shadow: 0 1px 4px rgba(0, 0, 0, .55);
    }
    .lt-hero2-sub b { color: var(--lt2-purple); font-weight: 850; }
    .lt-hero2-arrow { margin: 4px 0 0; color: var(--lt2-lavender); filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .55)); }
    .lt-hero2-arrow svg { width: 26px; height: 26px; }
    /* Кнопки - сразу под картинкой, в сплошной части карточки. */
    .lt-hero2-body { padding: 4px 18px 18px; }
    .lt-hero2-actions { display: grid; grid-template-columns: 1.5fr .82fr; gap: 9px; }
    .lt-hero2-cta, .lt-hero2-balance {
      height: 54px; border: 0; border-radius: 999px; font-size: 19px;
    }
    .lt-hero2-cta {
      background: var(--lt2-cta-bg); color: var(--lt2-cta-text);
      display: flex; align-items: center; justify-content: center; gap: 4px;
      box-shadow: 0 8px 20px -4px rgba(196, 108, 255, .55);
    }
    /* Специфичность "класс+тег" - иначе .lt-app button {font-family:inherit}
       из 19a-lite-app.css (тоже класс+тег) побеждает по порядку файлов, и
       рукописный шрифт на кнопку не долетает. */
    button.lt-hero2-cta { font-family: var(--lt2-hand); font-weight: 700; }
    .lt-hero2-cta svg { width: 18px; height: 18px; }
    .lt-hero2-balance {
      background: transparent; color: var(--lt2-text); border: 1.5px solid var(--lt2-line);
      display: flex; align-items: center; justify-content: center; gap: 6px;
      font-size: 16px; font-weight: 850; font-variant-numeric: tabular-nums;
    }
    .lt-hero2-balance .lt-star { color: var(--lt2-purple); }
    .lt-hero2-cta:active, .lt-hero2-balance:active { transform: scale(.985); }

    /* ── Заголовок раздела и доска лидеров ───────────────────────────────── */
    .lt-section-head2 {
      display: flex; align-items: center; gap: 8px; margin: 20px 2px 10px;
      font-family: var(--lt2-hand); font-size: 26px; font-weight: 700; color: var(--lt2-text); letter-spacing: normal;
    }
    .lt-section-head2 svg { width: 24px; height: 24px; color: var(--lt2-green); }
    .lt-board2 { background: var(--lt2-card-bg); border: 0; border-radius: 26px; overflow: hidden; }
    .lt-board2-tabs { display: grid; grid-template-columns: repeat(3, 1fr); padding: 14px 8px 0; }
    .lt-board2-tab {
      height: 32px; border: 0; background: transparent; color: var(--lt2-muted);
      font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
      border-bottom: 2px solid transparent; padding-bottom: 8px;
    }
    .lt-board2-tab.active {
      color: var(--lt2-text); border-bottom-color: var(--lt2-green);
      filter: drop-shadow(0 0 5px rgba(124, 250, 110, .65));
    }
    /* .lt-leader - тот же div, что и .lt-board2-tabs, поэтому ни :first-child,
       ни :first-of-type не находят именно первую строку рейтинга (у div'ов
       общий тип тега). Соседский селектор от вкладок - единственный точный
       способ снять верхнюю границу ровно у первой строки. */
    .lt-board2 .lt-leader { border-top: 1px solid var(--lt2-line); }
    .lt-board2-tabs + .lt-leader { border-top: 0; margin-top: 8px; }
    .lt-board2 .lt-rank { color: var(--lt2-muted); }
    .lt-board2 .lt-leader-ava { background: var(--lt2-purple-soft); }
    .lt-board2 .lt-leader-name { color: var(--lt2-text); }
    .lt-board2 .lt-leader-score { color: var(--lt2-text); }
    .lt-board2 .lt-leader.mine { background: var(--lt2-purple-soft); }
    .lt-board2-empty {
      display: flex; align-items: center; gap: 12px; padding: 22px 18px;
      color: var(--lt2-text); font-size: 14px; line-height: 19px;
    }
    .lt-board2-empty svg { flex: 0 0 auto; width: 34px; height: 34px; color: var(--lt2-yellow); }

    /* ── Навигация: единственный элемент, общий для всех экранов лайта -
       теперь весь лайт темный и фиолетовый (см. 19a-lite-app.css), так что
       эта плашка больше не единственное темное пятно, но форму (плавающая,
       узкая, 2 значка) референс держит именно такой. Раньше здесь был
       эффект "жидкого стекла" (blur + полупрозрачная белая обводка) - по
       просьбе пользователя убран: сплошная заливка тем же тоном карточек,
       без размытия и без обводки. Третья вкладка "Раунды" отсюда убрана и
       переехала в меню профиля (см. ltOpenProfile), чтобы раунды не
       потеряли точку входа. */
    .lt-nav {
      left: 50%; bottom: calc(14px + var(--lt-safe-bottom)); transform: translateX(-50%);
      width: 54%; min-width: 190px; height: 66px; padding: 0;
      grid-template-columns: repeat(2, 1fr);
      background: var(--lt2-card-bg); border: 0; border-radius: 26px;
      box-shadow: 0 12px 30px rgba(0, 0, 0, .35);
    }
    .lt-nav button { color: #6B6980; gap: 4px; }
    .lt-nav svg { width: 24px; height: 24px; }
    .lt-nav button.active { color: var(--lt2-purple); }
    .lt-nav button.active svg { filter: drop-shadow(0 0 6px rgba(195, 108, 255, .6)); }
    /* Полоска под активной вкладкой вместо смены цвета одной иконки - так
       активный таб виден даже мельком, не всматриваясь в цвет. */
    .lt-nav button.active::after {
      content: ""; width: 18px; height: 3px; border-radius: 99px; background: var(--lt2-purple); margin-top: 1px;
    }
    /* Навигация теперь плавающая и узкая, а не сплошной бар, под который был
       посчитан отступ в 19a-lite-app.css, - пересчитан с запасом на просвет
       между последней карточкой и панелью. */
    .lt-page { padding-bottom: calc(96px + var(--lt-safe-bottom)); }
    .lt-page--sticky { padding-bottom: calc(164px + var(--lt-safe-bottom)); }

    @media (max-width: 360px) {
      .lt-hero2-actions { grid-template-columns: 1fr; }
      .lt-nav { width: 68%; }
    }
