/* ════════════════════════════════════════════════════════════════════
   TDS STRATEGY — Liquid Glass (iOS style)
   Глубокий тёмный фон, стеклянные поверхности с blur, синие акценты.
   ════════════════════════════════════════════════════════════════════ */

/* ────────────────────────────────────────────────────────────
   1. ДИЗАЙН-ТОКЕНЫ
   ──────────────────────────────────────────────────────────── */
:root {
    /* 
      ADVANCED LIQUID GLASS & VISION OS DESIGN SYSTEM (v26)
    */
    --bg-0: #000000;
    --bg-1: #09090b;
    --bg-2: #121216;
    
    /* True Liquid Glass Surfaces (@rdlabo/ionic-theme-ios26) */
    --ios26-glass-background-rgb: 62, 62, 62;
    --ios26-glass-box-shadow-color-rgb: 0, 0, 0;
    --ios26-glass-border-color-rgb: 68, 68, 68;
    --surface-solid: rgba(30, 30, 36, 0.65);
    --surface-hover: rgba(55, 55, 70, 0.55);

    /* Blur & Filters */
    --blur-heavy: blur(8px) saturate(140%);
    --blur-light: blur(8px) saturate(140%);

    /* Vibrant iOS Blue */
    --accent: #0A84FF;
    --accent-2: #409CFF;            /* вторичный голубой (iOS 26) — тексты, градиенты, outline */
    --accent-glow: rgba(10, 132, 255, 0.4);
    --accent-soft: rgba(10, 132, 255, 0.15);
    --primary: #0A84FF;
    --success: #32D74B;
    --success-soft: rgba(50, 215, 75, 0.15);
    --danger: #FF453A;
    --danger-soft: rgba(255, 69, 58, 0.15);
    --warning: #FFD60A;             /* iOS yellow */

    /* Text */
    --text: #FFFFFF;
    --text-muted: rgba(255, 255, 255, 0.6);
    --text-faint: rgba(255, 255, 255, 0.3);

    /* Specular Light Borders */
    --border: rgba(255, 255, 255, 0.08);
    --border-light: rgba(255, 255, 255, 0.25);
    --border-dim: rgba(255, 255, 255, 0.04);
    --border-hover: rgba(255, 255, 255, 0.18);
    --border-accent: rgba(10, 132, 255, 0.5);

    /* Glass surfaces */
    --surface: rgba(var(--ios26-glass-background-rgb), 0.72);
    --surface-2: rgba(16, 16, 20, 0.5);
    --surface-light: rgba(45, 45, 55, 0.6);
    --surface-dark: rgba(20, 20, 26, 0.7);

    /* Apple Squircles */
    --r-sm: 14px;
    --r-md: 22px;
    --r-lg: 32px;
    --r-xl: 40px;

    /* Shadows */
    --shadow-glass: 0 16px 40px rgba(0, 0, 0, 0.5);
    --shadow-accent: 0 8px 24px var(--accent-glow);
    --shadow-float: 0 16px 40px rgba(0, 0, 0, 0.5);
    --shadow-inner-light: inset 0 1px 1px rgba(255, 255, 255, 0.3);
    --shadow-inner-glow: inset 0 0 20px rgba(255, 255, 255, 0.03);

    /* Animation */
    --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
    --ease-fluid: cubic-bezier(0.2, 0.8, 0.2, 1);
    --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
    --dur: 0.4s;
    --dur-fast: 0.2s;
    --dur-slow: 0.6s;
}

.animated-emoji-icon {
    width: 22px;
    height: 22px;
    vertical-align: middle;
    margin-right: 6px;
    object-fit: contain;
    display: inline-block;
}

.room-card-mode .animated-emoji-icon {
    width: 18px;
    height: 18px;
    margin-right: 4px;
}

/* ────────────────────────────────────────────────────────────
   2. СБРОС И БАЗА
   ──────────────────────────────────────────────────────────── */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    height: 100%;
    overscroll-behavior: none;
    touch-action: manipulation;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: var(--bg-0);
    color: var(--text);
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
    line-height: 1.4;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

button, input, select, textarea, a {
    color: inherit;
    font-family: inherit;
    font-size: inherit;
    touch-action: manipulation;
}

/* ────────────────────────────────────────────────────────────
   3. ФОН — премиальная глубина (два мягких свечения поверх
   тёмного градиента). Никакой сакуры/мельтешения.
   ──────────────────────────────────────────────────────────── */





.bg-image {
    position: fixed;
    inset: -20%;
    z-index: -10;
    background-color: #000;
    /* ПЕРФ: градиенты уже мягкие — filter: blur(40px) на весь вьюпорт убран
       (постоянная растеризация GPU на слабых телефонах, визуально идентично) */
    background-image: 
        radial-gradient(ellipse at 15% 20%, rgba(10, 132, 255, 0.16) 0%, rgba(10, 132, 255, 0.05) 35%, transparent 60%),
        radial-gradient(ellipse at 85% 80%, rgba(94, 92, 230, 0.13) 0%, rgba(94, 92, 230, 0.04) 35%, transparent 60%),
        radial-gradient(ellipse at 50% 50%, rgba(255, 255, 255, 0.025) 0%, transparent 75%);
    pointer-events: none;
}

.sakura-leaves { display: none; }

/* ────────────────────────────────────────────────────────────
   4. АРХИТЕКТУРА SPA

   КЛЮЧЕВОЙ ФИКС ДЁРГАННОСТИ: страницы ВСЕГДА в потоке и предвычислены
   по размерам. Переключение через opacity + visibility, а НЕ display:none.
   → при открытии страницы нулевой layout-reflow → ноль скачков размеров.
   ──────────────────────────────────────────────────────────── */
.app-container {
    position: relative;
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
    height: 100dvh;
    overflow: hidden;
}

.page {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px) scale(0.992);
    transition:
        opacity var(--dur) var(--ease),
        transform var(--dur) var(--ease),
        visibility 0s linear var(--dur);
    pointer-events: none;
}

.page.active {
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
    content-visibility: visible !important;
    transition:
        opacity var(--dur) var(--ease),
        transform var(--dur) var(--ease),
        visibility 0s;
    z-index: 2;
}

/* .hidden — служебный класс для бэра/панелей, оставляем как display:none */
.hidden {
    display: none !important;
}
/* Но для .page.hidden используем visibility, чтобы не ломать SPA-фикс */
.page.hidden {
    display: flex !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(8px) scale(0.992) !important;
    pointer-events: none !important;
    content-visibility: hidden !important;
    contain: strict !important;
}

/* ПЕРФ: на скрытых страницах все CSS-анимации ставятся на паузу —
   бесконечные циклы (конвейер, пульсации, shine) не жгут GPU в фоне */
.page.hidden *,
.page.hidden *::before,
.page.hidden *::after {
    animation-play-state: paused !important;
}

/* Зона скролла */
.scroll-area {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    padding: 16px 16px 110px;
    scrollbar-width: none;
    overscroll-behavior-y: contain;
    overscroll-behavior: contain;
    touch-action: pan-y;
}
.scroll-area::-webkit-scrollbar { display: none; }

/* Таб-корневые страницы листаются целиком вместе с шапкой */
#page-tab-base,
#page-tab-market,
#page-tab-lobby,
#page-tab-giveaways {
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
    display: flex;
    flex-direction: column;
}
#page-tab-base::-webkit-scrollbar,
#page-tab-market::-webkit-scrollbar,
#page-tab-lobby::-webkit-scrollbar,
#page-tab-giveaways::-webkit-scrollbar { display: none; }
#page-tab-base .scroll-area,
#page-tab-market .scroll-area,
#page-tab-lobby .scroll-area,
#page-tab-giveaways .scroll-area {
    overflow: visible;
    flex: none;
    padding-top: 8px;
}

/* Обратная совместимость (page-main если где-то осталась) */
#page-main {
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
    display: flex;
    flex-direction: column;
}
#page-main::-webkit-scrollbar { display: none; }
#page-main .scroll-area {
    overflow: visible;
    flex: none;
    padding-top: 8px;
}

/* ────────────────────────────────────────────────────────────
   5. УТИЛИТЫ
   ──────────────────────────────────────────────────────────── */
.flex-col { display: flex; flex-direction: column; }
.flex-1 { flex: 1; min-width: 0; }
.w-100 { width: 100%; }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-accent { color: var(--accent-2); font-weight: 700; }
.text-small { font-size: 13px; line-height: 1.45; }
.text-large { font-size: 24px; font-weight: 800; margin-bottom: 4px; }
.mt-5 { margin-top: 4px !important; } .mt-10 { margin-top: 8px !important; }
.mt-15 { margin-top: 10px !important; } .mt-20 { margin-top: 14px !important; }
.mb-10 { margin-bottom: 8px !important; } .mb-15 { margin-bottom: 10px !important; }
.mb-20 { margin-bottom: 14px !important; } .mb-30 { margin-bottom: 20px !important; }

/* ────────────────────────────────────────────────────────────
   6. ПОВЕРХНОСТИ (GLASS)
   ──────────────────────────────────────────────────────────── */
.glass-panel {
    background: rgba(var(--ios26-glass-background-rgb), 0.72);
    backdrop-filter: var(--blur-heavy);
    -webkit-backdrop-filter: var(--blur-heavy);
    border-radius: var(--r-lg);
    padding: 20px;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.12), inset 0 0 8px 0 rgba(var(--ios26-glass-box-shadow-color-rgb), 0.2), 0 4px 12px rgba(0, 0, 0, 0.4);
    border-top: .5px solid rgba(255, 255, 255, 0.15);
    border-right: .5px solid rgba(255, 255, 255, 0.05);
    border-bottom: .5px solid rgba(255, 255, 255, 0.02);
    border-left: .5px solid rgba(255, 255, 255, 0.05);
    contain: layout style;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.glass-card, .room-card, .mp-lot-card, .mp-helper-card, .tier-card { 
    padding: 20px; 
    border-radius: var(--r-md);
    background: rgba(var(--ios26-glass-background-rgb), 0.72);
    backdrop-filter: var(--blur-heavy);
    -webkit-backdrop-filter: var(--blur-heavy);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.12), inset 0 0 8px 0 rgba(var(--ios26-glass-box-shadow-color-rgb), 0.2), 0 4px 12px rgba(0, 0, 0, 0.3);
    border-top: .5px solid rgba(255, 255, 255, 0.15);
    border-right: .5px solid rgba(255, 255, 255, 0.05);
    border-bottom: .5px solid rgba(255, 255, 255, 0.02);
    border-left: .5px solid rgba(255, 255, 255, 0.05);
    contain: layout style;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.glass-btn {
    background: rgba(var(--ios26-glass-background-rgb), 0.72);
    backdrop-filter: var(--blur-heavy);
    -webkit-backdrop-filter: var(--blur-heavy);
    color: var(--text);
    border-radius: var(--r-sm);
    font-weight: 600;
    padding: 12px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.15), inset 0 0 8px 0 rgba(var(--ios26-glass-box-shadow-color-rgb), 0.1), 0 4px 10px rgba(0, 0, 0, 0.3);
    border-top: .5px solid rgba(255, 255, 255, 0.2);
    border-right: .5px solid rgba(255, 255, 255, 0.08);
    border-bottom: .5px solid rgba(255, 255, 255, 0.02);
    border-left: .5px solid rgba(255, 255, 255, 0.08);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    /* ПЕРФ: вместо transition:all — только реально анимируемые свойства */
    transition: transform var(--dur-fast) var(--ease-fluid),
                opacity var(--dur-fast) var(--ease-fluid),
                background-color var(--dur-fast) var(--ease-fluid),
                border-color var(--dur-fast) var(--ease-fluid),
                box-shadow var(--dur-fast) var(--ease-fluid);
}

.glass-input {
    background: rgba(16, 16, 20, 0.4);
    backdrop-filter: blur(12px) saturate(140%);
    -webkit-backdrop-filter: blur(12px) saturate(140%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text);
    border-radius: var(--r-sm);
    padding: 14px;
    font-size: 15px;
    outline: none;
    resize: none;
    transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.glass-input::placeholder { color: var(--text-faint); }
.glass-input:focus {
    border-color: var(--border-accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

/* Цветные заливки кнопок — iOS blue */
.primary-bg, .accent-bg, .buy-btn, .room-card-btn.primary, .room-card-btn.accent {
    background: linear-gradient(180deg, #2A93FF 0%, #007AFF 100%) !important;
    color: #fff !important;
    border: none !important;
    font-weight: 700;
    box-shadow: 0 4px 16px var(--accent-glow), inset 0 1px 1px rgba(255,255,255,0.4) !important;
    border-radius: var(--r-sm);
}

.danger-bg {
    background: linear-gradient(135deg, #FF453A 0%, #FF6961 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    box-shadow: 0 8px 24px rgba(255, 69, 58, 0.28);
}

/* Акцентная рамка-подсветка для CTA — единый мягкий голубой контур */
.highlight-border {
    border-color: var(--border-accent) !important;
    box-shadow: 0 0 0 1px var(--border-accent), 0 6px 22px var(--accent-glow) !important;
}

/* ────────────────────────────────────────────────────────────
   7. ЕДИНАЯ ИНТЕРАКТИВНОСТЬ (профессиональная, без пружин)

   Все кликабельные элементы получают одно поведение:
   • hover (только устройства с мышью): лёгкий подъём + свечение + рамка
   • active: быстрое микро-сжатие 0.985 (не «проваливание» 0.96)
   • focus-visible: доступный outline
   ──────────────────────────────────────────────────────────── */
button.main-menu-btn,
button.square-btn,
button.glass-card,
button.glass-btn,
button.list-btn,
button.massive-btn,
button.icon-btn,
button.action-btn,
button.strategy-card,
button.mp-tab,
button.mp-cat-btn,
button.mp-buy-btn,
button.mp-pay-method-btn,
button.mp-order-action-btn,
button.star-btn,
button.sbp-copy-mini,
button.copy-btn,
button.ref-copy-btn,
div.main-menu-btn,
div.glass-card,
div.shop-item-clickable,
.mp-helper-card,
.mp-lot-card,
.mp-order-card,
.stars-cta-btn,
.sbp-cta-btn {
    cursor: pointer;
    transition:
        transform var(--dur) var(--ease),
        background var(--dur) var(--ease),
        border-color var(--dur) var(--ease),
        box-shadow var(--dur) var(--ease);
    -webkit-user-select: none;
    user-select: none;
    will-change: transform;
}

/* Активное нажатие — везде одинаковое, микро-сжатие */
button.main-menu-btn:active,
button.square-btn:active,
button.glass-card:active,
button.glass-btn:active,
button.list-btn:active,
button.massive-btn:active,
button.icon-btn:active,
button.action-btn:active,
button.strategy-card:active,
button.mp-buy-btn:active,
button.mp-pay-method-btn:active,
button.mp-order-action-btn:active,
div.shop-item-clickable:active,
.mp-helper-card:active,
.mp-lot-card:active,
.mp-order-card:active,
.stars-cta-btn:active,
.sbp-cta-btn:active {
    transform: scale(0.985);
}

button.mp-tab:active,
button.mp-cat-btn:active,
button.star-btn:active,
button.sbp-copy-mini:active,
button.copy-btn:active,
button.ref-copy-btn:active {
    transform: scale(0.94);
}

/* Hover — ТОЛЬКО для устройств с точным указателем (ПК) */
@media (hover: hover) and (pointer: fine) {
    .stars-cta-btn:hover,
    .sbp-cta-btn:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-float);
    }
}

/* Доступный фокус */
button:focus-visible,
.glass-input:focus-visible {
    outline: 2px solid var(--accent-2);
    outline-offset: 2px;
}

/* ────────────────────────────────────────────────────────────
   8. ШАПКИ
   ──────────────────────────────────────────────────────────── */
.main-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 12px;
    padding: 16px 20px !important;
    width: calc(100% - 32px);
    margin: 16px auto 0 !important;
    box-sizing: border-box;
}
.user-greeting h1 {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 4px;
}
.subtitle {
    font-size: 13px;
    color: var(--text-muted);
}
.header-profile-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    flex-shrink: 0;
}
#main-header-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50% !important;
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    font-size: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.header-profile-text {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}

/* Навигационная шапка внутренних страниц */
.nav-header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 14px 16px;
    border-radius: 0 0 var(--r-lg) var(--r-lg);
    border-top: none;
    border-bottom: 1px solid var(--border);
    background: rgba(16, 16, 20, 0.70);
    backdrop-filter: blur(16px) saturate(180%) brightness(1.05);
    -webkit-backdrop-filter: blur(16px) saturate(180%) brightness(1.05);
    flex-shrink: 0;
}
.nav-header h2 {
    font-size: 17px;
    font-weight: 700;
    text-align: center;
    grid-column: 2;
    letter-spacing: -0.01em;
}
.back-btn {
    grid-column: 1;
    justify-self: start;
    background: transparent;
    border: none;
    color: var(--accent-2);
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 8px 6px 2px;
    border-radius: var(--r-sm);
    cursor: pointer;
    transition: opacity var(--dur-fast) var(--ease);
    flex-shrink: 0;
}
.back-btn .icon { font-size: 13px; opacity: 0.8; }
.back-btn:active { opacity: 0.6; }

/* Кнопка справа в nav-header (для «К диалогам» в ИИ-чате) */
.header-right-btn {
    grid-column: 3;
    justify-self: end;
    background: transparent;
    border: none;
    color: var(--accent-2);
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 6px 2px 6px 8px;
    border-radius: var(--r-sm);
    cursor: pointer;
    transition: opacity var(--dur-fast) var(--ease);
    flex-shrink: 0;
    white-space: nowrap;
}
.header-right-btn:active { opacity: 0.6; }

/* ────────────────────────────────────────────────────────────
   9. ГЛАВНОЕ МЕНЮ — премиальные карточки с icon-chip
   ──────────────────────────────────────────────────────────── */
.menu-section { display: flex; flex-direction: column; gap: 8px; }
.menu-section > *, .grid-2-cols > * { margin-bottom: 0 !important; }

.main-menu-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    width: 100%;
    height: 64px;
    box-sizing: border-box;
    text-align: left;
    border-radius: var(--r-md);
}

/* Премиальный icon-chip — скруглённый квадрат с тонким градиентом.
   Заменяет «гигантские качающиеся эмодзи» на единый дорогой паттерн. */
.menu-icon-chip {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    border-radius: var(--r-sm);
    background: rgba(0, 122, 255, 0.12);
    border: 1px solid rgba(0, 122, 255, 0.22);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    filter: drop-shadow(0 4px 10px rgba(0, 122, 255, 0.15));
}
.menu-icon-chip.chip-accent {
    background: rgba(255, 214, 10, 0.12);
    border-color: rgba(255, 214, 10, 0.25);
    filter: drop-shadow(0 4px 10px rgba(255, 214, 10, 0.15));
}
.menu-icon-chip.chip-cyan {
    background: rgba(0, 122, 255, 0.12);
    border-color: rgba(0, 122, 255, 0.25);
    filter: drop-shadow(0 4px 10px rgba(0, 122, 255, 0.15));
}

.btn-text { flex: 1; min-width: 0; }
.btn-text h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 2px;
    letter-spacing: -0.01em;
}
.btn-text p {
    font-size: 13px;
    color: var(--text-muted);
}

/* Шеврон справа — указатель «есть следующая страница» */
.menu-chevron {
    flex-shrink: 0;
    font-size: 24px;
    font-weight: 300;
    color: var(--text-faint);
    line-height: 1;
    transition: transform var(--dur) var(--ease), color var(--dur) var(--ease);
}


/* Легаси-классы эмодзи (HTML/JS их ещё использует) */
.emoji-large { font-size: 28px; }
.emoji-med { font-size: 24px; }
.emoji-huge {
    font-size: 56px;
    display: block;
    filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.5));
}

/* Сетки */
.grid-2-cols {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}
.square-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(var(--ios26-glass-background-rgb), 0.72);
    backdrop-filter: var(--blur-heavy);
    -webkit-backdrop-filter: var(--blur-heavy);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 16px;
    color: var(--text);
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s, border-color 0.2s;
}

/* Тонкий вариант: иконка + текст в один ряд, без лишней высоты */
.square-btn.square-btn-thin {
    flex-direction: row;
    gap: 6px;
    padding: 10px 12px;
}

.massive-btn {
    width: 100%;
    padding: 14px 16px;
    font-size: 16px;
    font-weight: 700;
    border-radius: var(--r-md);
    letter-spacing: -0.01em;
}

.btn-full-width {
    width: 100%;
    padding: 18px;
    font-size: 16px;
    font-weight: 700;
    background: rgba(var(--ios26-glass-background-rgb), 0.72);
    backdrop-filter: blur(12px) saturate(140%);
    -webkit-backdrop-filter: blur(12px) saturate(140%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--r-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* ────────────────────────────────────────────────────────────
   10. РЕЖИМЫ / КАРТОЧКИ СТРАТЕГИЙ
   ──────────────────────────────────────────────────────────── */
.strategy-banner { padding: 20px 16px !important; }
.action-summary { padding: 20px 16px !important; }

.mp-tab-content { min-height: 60px; }

.cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
.strategy-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 10px;
    text-align: center;
    border-radius: var(--r-md);
}
.strategy-card .emoji { font-size: 32px; margin-bottom: 8px; }
.strategy-card .name { font-size: 14px; font-weight: 600; text-align: center; }
/* Последняя нечётная карточка — на всю ширину */
.cards-grid > .strategy-card:nth-child(odd):last-child {
    grid-column: 1 / -1;
}
.info-text {
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--text-muted);
}

/* ────────────────────────────────────────────────────────────
   11. СПИСКИ
   ──────────────────────────────────────────────────────────── */
.list-layout { display: flex; flex-direction: column; gap: 10px; }
.list-btn {
    width: 100%;
    text-align: left;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: var(--r-sm);
}

/* Магазин */
.shop-list { padding: 8px; }
.shop-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px;
    border-radius: var(--r-sm);
    font-size: 15px;
    border-bottom: 1px solid var(--border);
}
.shop-item:last-child { border-bottom: none; }
.section-title {
    font-size: 15px;
    margin-bottom: 10px;
    margin-top: 4px;
    font-weight: 700;
    padding-left: 6px;
    letter-spacing: -0.01em;
}
.task-list { padding-left: 20px; font-size: 14px; line-height: 1.6; color: var(--text-muted); }

/* ────────────────────────────────────────────────────────────
   12. ПРОФИЛИ
   ──────────────────────────────────────────────────────────── */
.avatar-large {
    width: 84px;
    height: 84px;
    background: rgba(0, 122, 255, 0.10);
    border: 1px solid rgba(0, 122, 255, 0.30);
    border-radius: 50%;
    font-size: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}
.status-badge {
    background: var(--accent-soft);
    color: var(--accent-2);
    padding: 5px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    display: inline-block;
    border: 1px solid var(--border-accent);
}
.stats-grid-profile {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
.stat-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px;
    border-radius: var(--r-md);
}
.profile-card { padding: 22px 16px !important; }
.helper-profile { padding: 22px 16px !important; }
.helper-stats { margin-top: 16px; }

/* ────────────────────────────────────────────────────────────
   13. ОТЗЫВЫ
   ──────────────────────────────────────────────────────────── */
.stars-selector { display: flex; justify-content: center; gap: 10px; }
.star-btn {
    background: none;
    border: none;
    font-size: 32px;
    filter: grayscale(100%) opacity(0.5);
    transition: filter var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.star-btn.active {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.12);
}
.reviews-layout { display: flex; flex-direction: column; gap: 12px; }
.review-card { padding: 16px; border-radius: var(--r-md); }
.review-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 13px;
    color: var(--text-muted);
}
.review-text { font-size: 14px; line-height: 1.55; font-style: italic; color: var(--text); }

/* ────────────────────────────────────────────────────────────
   14. МАГАЗИН — каталог + плавающая панель + CTA
   ──────────────────────────────────────────────────────────── */
.shop-bottom-actions .shop-action-btn {
    background: rgba(var(--ios26-glass-background-rgb), 0.72);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--r-sm);
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    text-align: left;
    color: var(--text);
}
.shop-bottom-actions .shop-action-btn.highlight-border {
    border-color: var(--border-accent);
    box-shadow: 0 0 0 1px var(--border-accent), 0 6px 22px var(--accent-glow);
}

.shop-item-clickable {
    cursor: pointer;
    border-radius: var(--r-sm);
    margin: 2px 0;
    padding: 14px !important;
    transition: background var(--dur) var(--ease), box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.shop-item-clickable.selected {
    background: var(--accent-soft) !important;
    box-shadow: inset 0 0 0 2px var(--accent), 0 0 18px var(--accent-glow) !important;
}

/* Плавающая панель «Купить» */
.buy-floating-bar {
    position: fixed;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 32px);
    max-width: 408px;
    z-index: 100;
    background: rgba(10, 10, 14, 0.88);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid var(--border-accent);
    border-radius: var(--r-lg);
    padding: 14px 16px;
    box-shadow: var(--shadow-float), 0 0 30px var(--accent-glow);
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.buy-bar-info { display: flex; flex-direction: column; gap: 2px; }
.buy-bar-label { font-size: 12px; color: var(--text-muted); }
.buy-bar-name { font-size: 15px; font-weight: 700; color: var(--text); }
.buy-bar-btn {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    font-weight: 700;
    border-radius: var(--r-sm);
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    box-shadow: var(--shadow-accent);
    transition: transform 0.2s, box-shadow 0.2s;
}
.buy-bar-btn:active { transform: scale(0.96); box-shadow: none; }
.buy-bar-actions { display: flex; gap: 8px; }
.buy-bar-actions .buy-bar-btn { flex: 1; padding: 13px 8px; font-size: 14px; }
.buy-bar-btn-stars {
    flex: 1;
    padding: 13px 8px;
    font-size: 14px;
    font-weight: 700;
    border-radius: var(--r-sm);
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.9), rgba(234, 179, 8, 0.9));
    box-shadow: 0 6px 18px rgba(251, 191, 36, 0.34);
    transition: transform 0.2s, box-shadow 0.2s;
}
.buy-bar-btn-stars:active { transform: scale(0.96); box-shadow: none; }

/* Баланс */
.balance-card,
.balance-card.glass-panel {
    background: linear-gradient(145deg, var(--surface-light) 0%, var(--surface-dark) 100%);
    backdrop-filter: var(--blur-heavy);
    -webkit-backdrop-filter: var(--blur-heavy);
    border-radius: var(--r-lg);
    padding: 20px;
    box-shadow: var(--shadow-glass), var(--shadow-inner-light), var(--shadow-inner-glow);
    border: 1px solid transparent;
    border-top-color: var(--border-light);
    border-left-color: rgba(255, 255, 255, 0.1);
    border-right-color: var(--border-dim);
    border-bottom-color: var(--border-dim);
}
.balance-card-top {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    min-width: 0;
    flex-shrink: 0;
}
.balance-card-top span { font-size: 12px; color: var(--text-muted); white-space: nowrap; }
.balance-card-top h2 {
    font-size: 24px;
    font-weight: 800;
    color: var(--accent-2);
    line-height: 1.1;
    white-space: nowrap;
    letter-spacing: -0.02em;
}

/* CTA «Пополнить звёздами» / «СБП» — премиальный статичный градиент
   (без зацикленного блика-мельтешения) */
.stars-cta-btn,
.sbp-cta-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: var(--r-md);
    text-align: left;
    color: #fff;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-hover);
}
.stars-cta-btn {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.22), rgba(124, 92, 255, 0.18));
    border-color: rgba(251, 191, 36, 0.4);
    box-shadow: 0 8px 28px rgba(251, 191, 36, 0.18);
}
.sbp-cta-btn {
    flex: 1;
    min-width: 0;
    margin: 0;
    background: linear-gradient(135deg, rgba(52, 211, 153, 0.22), rgba(16, 185, 129, 0.14));
    border-color: rgba(52, 211, 153, 0.4);
    box-shadow: 0 6px 22px rgba(52, 211, 153, 0.18);
}
.stars-cta-btn > *,
.sbp-cta-btn > * { position: relative; z-index: 1; }

.stars-icon-bg,
.sbp-icon-bg {
    width: 46px;
    height: 46px;
    min-width: 46px;
    border-radius: var(--r-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.stars-icon-bg { background: linear-gradient(135deg, #FBBF24, #F59E0B); box-shadow: 0 6px 18px rgba(251, 191, 36, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.18); }
.sbp-icon-bg { width: 40px; height: 40px; min-width: 40px; font-size: 20px; background: linear-gradient(135deg, #34D399, #10B981); box-shadow: 0 4px 14px rgba(52, 211, 153, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.18); }

.stars-cta-text, .sbp-cta-text { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.stars-cta-title, .sbp-cta-title { font-size: 15px; font-weight: 800; line-height: 1.2; }
.sbp-cta-title { font-size: 13px; }
.stars-cta-sub, .sbp-cta-sub { font-size: 12px; color: rgba(255, 255, 255, 0.72); line-height: 1.3; }
.sbp-cta-sub { font-size: 10.5px; }
.stars-arrow { font-size: 28px; font-weight: 300; color: rgba(255, 255, 255, 0.5); line-height: 1; flex-shrink: 0; }
.sbp-arrow { display: none; }

.stars-hero {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.12), rgba(124, 92, 255, 0.1)) !important;
    border-color: rgba(251, 191, 36, 0.3) !important;
}
.stars-hero-emoji { font-size: 64px; display: inline-block; filter: drop-shadow(0 8px 20px rgba(251, 191, 36, 0.5)); }
.stars-amount-btn { border-radius: var(--r-md); }

/* ────────────────────────────────────────────────────────────
   15. РЕКВИЗИТЫ СБП + КОПИРОВАНИЕ
   ──────────────────────────────────────────────────────────── */
.sbp-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 4px;
    border-bottom: 1px solid var(--border);
    gap: 10px;
}
.sbp-row:last-child { border-bottom: none; }
.sbp-label { font-size: 14px; color: var(--text-muted); white-space: nowrap; }
.sbp-value {
    flex: 1;
    text-align: right;
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    font-family: ui-monospace, "SF Mono", Menlo, monospace;
}
.sbp-copy-mini {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    border: none;
    color: #fff;
    font-size: 14px;
    padding: 7px 11px;
    border-radius: var(--r-sm);
    cursor: pointer;
    box-shadow: var(--shadow-accent);
    transition: transform 0.2s, box-shadow 0.2s;
}
.sbp-copy-mini:active { transform: scale(0.92); box-shadow: none; }
.warning-panel {
    background: var(--danger-soft) !important;
    border-color: rgba(248, 113, 113, 0.4) !important;
}

.ref-link-box {
    display: flex;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    overflow: hidden;
}
.ref-link-box code {
    flex: 1;
    padding: 12px;
    font-size: 13px;
    color: var(--accent-2);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: ui-monospace, "SF Mono", Menlo, monospace;
}
.copy-btn {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    border: none;
    padding: 0 16px;
    font-size: 18px;
    color: #fff;
    cursor: pointer;
    box-shadow: var(--shadow-accent);
    transition: transform 0.2s, box-shadow 0.2s;
}
.copy-btn:active { transform: scale(0.92); box-shadow: none; }

.ref-copy-box {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    padding: 6px;
    margin-top: 10px;
}
.ref-copy-box input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--accent-2);
    font-size: 16px;
    font-family: ui-monospace, "SF Mono", Menlo, monospace;
    padding: 5px 10px;
    outline: none;
    width: 100%;
}
.ref-copy-btn {
    border: none;
    border-radius: var(--r-sm);
    padding: 12px 16px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    color: #fff;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    box-shadow: var(--shadow-accent);
    transition: transform 0.2s, box-shadow 0.2s;
}
.ref-copy-btn:active { transform: scale(0.96); box-shadow: none; }
/* Цветные заливки .ref-copy-btn.primary-bg / .accent-bg / .buy-btn и т.д.
   задаются единым правилом в секции 6 — здесь дубль убран. */

.success-balance-box {
    background: rgba(var(--ios26-glass-background-rgb), 0.4);
    backdrop-filter: blur(12px) saturate(140%);
    -webkit-backdrop-filter: blur(12px) saturate(140%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--r-sm);
    padding: 16px;
    text-align: center;
}

/* ────────────────────────────────────────────────────────────
   16. ПРОМОКОДЫ
   ──────────────────────────────────────────────────────────── */
.promo-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.promo-btn {
    padding: 15px 5px;
    min-height: auto;
    gap: 4px;
}
.promo-btn:nth-child(odd):last-child { grid-column: span 2; }

.promo-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: 0 auto;
    padding: 0 20px;
    min-height: 55vh;
    width: 100%;
    box-sizing: border-box;
}
.emoji-empty {
    font-size: 88px;
    display: inline-block;
    margin: 0 auto 28px;
    filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.45));
    /* спокойная плавная анимация вместо пружинной */
    animation: float-soft 3.5s ease-in-out infinite;
}
.text-empty {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-muted);
    line-height: 1.6;
    width: 320px;
    max-width: 85vw;
    margin: 0 auto;
    display: block;
}
@keyframes float-soft {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ────────────────────────────────────────────────────────────
   17. БЕСПЛАТНЫЕ РУБЛИ — карточки, лестница, награды
   ──────────────────────────────────────────────────────────── */
.free-card { padding: 18px !important; }
.free-card-header { display: flex; align-items: center; gap: 14px; }
.free-card-emoji {
    font-size: 36px;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 122, 255, 0.10);
    border: 1px solid rgba(0, 122, 255, 0.25);
    border-radius: var(--r-md);
    flex-shrink: 0;
    filter: drop-shadow(0 4px 12px var(--accent-glow));
}
.free-card-title { font-size: 17px; font-weight: 700; margin-bottom: 2px; }
.warning-text {
    font-size: 11.5px;
    color: rgba(248, 113, 113, 0.9);
    line-height: 1.5;
    padding: 9px 11px;
    background: var(--danger-soft);
    border-radius: var(--r-sm);
    border-left: 3px solid rgba(248, 113, 113, 0.6);
}

.referral-progress-box {
    background: var(--accent-soft);
    border: 1px solid var(--border-accent);
    border-radius: var(--r-md);
    padding: 14px;
    margin: 14px 0;
}
.referral-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.referral-count-badge {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #fff;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    box-shadow: var(--shadow-accent);
}
.referral-progress-bar {
    height: 10px;
    background: rgba(0, 0, 0, 0.35);
    border-radius: 999px;
    overflow: hidden;
}
.referral-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--accent-2), #38BDF8);
    border-radius: 999px;
    transition: width 0.7s var(--ease);
    box-shadow: 0 0 14px var(--accent-glow);
    position: relative;
    overflow: hidden;
}
.referral-progress-fill::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    animation: progress-shine 2.4s var(--ease-in-out) infinite;
}
@keyframes progress-shine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.referral-tiers { display: flex; flex-direction: column; gap: 8px; }
.tier-card { padding: 20px; margin-bottom: 16px; }
.tier-card.achieved {
    background: linear-gradient(135deg, rgba(52, 211, 153, 0.16), rgba(52, 211, 153, 0.04));
    border-color: rgba(52, 211, 153, 0.45);
    box-shadow: 0 4px 14px rgba(52, 211, 153, 0.14);
}
.tier-card.current {
    background: linear-gradient(135deg, rgba(124, 92, 255, 0.2), rgba(124, 92, 255, 0.05));
    border-color: var(--accent);
    box-shadow: 0 6px 20px var(--accent-glow);
}
.tier-emoji {
    font-size: 22px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-hover);
    border-radius: var(--r-sm);
    flex-shrink: 0;
}
.tier-card.achieved .tier-emoji { background: rgba(52, 211, 153, 0.22); }
.tier-card.current .tier-emoji { background: var(--accent-soft); }
.tier-info { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.tier-name { font-size: 14px; font-weight: 700; }
.tier-refs { font-size: 12px; color: var(--text-muted); }
.tier-reward {
    font-size: 14px;
    font-weight: 800;
    color: var(--accent-2);
    background: var(--accent-soft);
    padding: 6px 12px;
    border-radius: var(--r-sm);
    white-space: nowrap;
}
.tier-card.achieved .tier-reward { color: var(--success); background: var(--success-soft); }
.tier-card.achieved .tier-reward::before { content: '✓ '; font-weight: 900; }

.tiktok-rewards-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.tiktok-reward-pill {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 8px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    font-size: 13px;
    font-weight: 600;
}
.tiktok-reward-pill.highlight {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.16), rgba(124, 92, 255, 0.12));
    border-color: rgba(251, 191, 36, 0.4);
    box-shadow: 0 4px 14px rgba(251, 191, 36, 0.18);
}
.reward-views { color: var(--text); font-weight: 700; }
.reward-divider { color: var(--text-faint); font-size: 12px; }
.reward-money { color: var(--accent-2); font-weight: 800; }
.tiktok-reward-pill.highlight .reward-money { color: var(--warning); }

.group-rewards-list { display: flex; flex-direction: column; gap: 6px; }
.group-reward-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 11px 14px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
}
.group-reward-row.highlight {
    background: linear-gradient(90deg, rgba(251, 191, 36, 0.14), rgba(124, 92, 255, 0.12));
    border-color: rgba(251, 191, 36, 0.4);
}
.group-reward-label { font-size: 13.5px; font-weight: 600; }
.group-reward-money {
    font-size: 14px;
    font-weight: 800;
    color: var(--accent-2);
    background: var(--accent-soft);
    padding: 4px 12px;
    border-radius: var(--r-sm);
}
.group-reward-row.highlight .group-reward-money { color: var(--warning); background: rgba(251, 191, 36, 0.18); }

/* ────────────────────────────────────────────────────────────
   18. LIVE-индикатор (уместная пульсация — сигнал «активно»)
   ──────────────────────────────────────────────────────────── */
.live-dot {
    color: #F87171;
    font-size: 11px;
    margin-left: 6px;
    display: inline-block;
    text-shadow: 0 0 8px rgba(248, 113, 113, 0.8);
    animation: live-pulse 1.6s var(--ease-in-out) infinite;
}
@keyframes live-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.78); }
}

/* Спокойные одноразовые/легаси анимации (без пружин) */
@keyframes float-emoji {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-9px); }
}
.anim-floating {
    display: inline-block;
    animation: float-emoji 2.4s ease-in-out infinite;
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.4));
}
@keyframes success-pop {
    0% { transform: scale(0.6); opacity: 0; }
    60% { transform: scale(1.08); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}
.anim-success {
    display: inline-block;
    animation: success-pop 0.55s var(--ease);
    filter: drop-shadow(0 14px 28px var(--accent-glow));
}

/* Нейтрализуем все легаси «качающиеся emoji»-классы — делаем статичными.
   (классы остаются в HTML/JS, но больше не дёргаются) */
.anim-gamepad, .anim-rocket, .anim-cart, .anim-key, .anim-headphones,
.anim-card-swipe, .anim-handshake, .anim-people, .anim-shop-bag,
.anim-tiktok, .anim-money-flip, .anim-star-rotate, .anim-live-pulse,
.anim-star-bounce, .anim-pulse, .tier-card.current .tier-emoji,
.floating-empty {
    animation: none !important;
}

/* ────────────────────────────────────────────────────────────
   19. БИРЖА (MARKETPLACE)
   ──────────────────────────────────────────────────────────── */
.mp-search-wrap { width: 100%; }
.mp-search-input {
    width: 100%;
    padding: 13px 16px;
    border-radius: var(--r-sm);
    background: rgba(16, 16, 20, 0.4);
    backdrop-filter: blur(12px) saturate(140%);
    -webkit-backdrop-filter: blur(12px) saturate(140%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text);
    font-size: 15px;
    outline: none;
    box-sizing: border-box;
    transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.mp-search-input::placeholder { color: var(--text-faint); }
.mp-search-input:focus {
    border-color: var(--border-accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.mp-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    background: rgba(var(--ios26-glass-background-rgb), 0.4);
    backdrop-filter: blur(12px) saturate(140%);
    -webkit-backdrop-filter: blur(12px) saturate(140%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--r-md);
    padding: 6px;
}
.mp-tab {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 11px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, transform 0.2s;
}
.mp-tab:active { transform: scale(0.96); }
.mp-tab.active {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #fff;
    box-shadow: var(--shadow-accent);
}


.mp-categories {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 4px 2px;
    scrollbar-width: none;
}
.mp-categories::-webkit-scrollbar { display: none; }
.mp-cat-btn {
    background: rgba(var(--ios26-glass-background-rgb), 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.7);
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s, color 0.2s, transform 0.2s;
}
.mp-cat-btn:active { transform: scale(0.96); }
.mp-cat-btn.active {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #fff;
    border-color: transparent;
    box-shadow: var(--shadow-accent);
}

.mp-cat-picker { display: flex; flex-wrap: wrap; gap: 8px; }
.mp-cat-picker .mp-cat-btn {
    flex: 1 1 calc(50% - 4px);
    min-width: 0;
    text-align: center;
    border-radius: var(--r-sm);
}

.mp-form-label { font-size: 15px; font-weight: 700; margin-bottom: 6px; }

/* Карточка хелпера */
.mp-helper-card {
    padding: 14px;
    margin-bottom: 10px;
    cursor: pointer;
}
.mp-helper-card-top { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.mp-helper-avatar {
    width: 42px; height: 42px;
    border-radius: var(--r-sm);
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    display: flex; align-items: center; justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    box-shadow: var(--shadow-accent);
}
/* === Реальные аватарки Telegram === */
.tg-avatar {
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.4), rgba(64, 156, 255, 0.4));
    box-shadow: 0 4px 14px rgba(0, 122, 255, 0.25);
    line-height: 1;
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.tg-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
/* Когда фото нет — показываем эмодзи на градиенте (класс ставит onerror) */
.tg-avatar-empty { /* фон-градиент уже задан выше */ }

.mp-helper-name { font-weight: 700; font-size: 15px; }
.mp-helper-spec { font-size: 12.5px; color: var(--text-muted); margin-top: 2px; }
.mp-helper-desc { font-size: 13px; color: var(--text-muted); line-height: 1.5; margin-top: 6px; font-style: italic; }
.mp-helper-badge {
    background: linear-gradient(135deg, #34D399, #10B981);
    color: #fff;
    padding: 3px 8px;
    border-radius: var(--r-sm);
    font-size: 11px;
    font-weight: 800;
    margin-left: 6px;
    box-shadow: 0 2px 8px rgba(52, 211, 153, 0.4);
}

/* Empty states */
.mp-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 44px 20px;
    min-height: 40vh;
}
.mp-empty-emoji {
    font-size: 72px;
    margin-bottom: 20px;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.4));
    animation: float-soft 3.2s ease-in-out infinite;
}
.mp-empty-text { color: var(--text-muted); font-size: 14.5px; line-height: 1.6; }

/* Статус заявки */
.mp-status-card {
    padding: 26px 18px;
    text-align: center;
    border-radius: var(--r-lg);
}
.mp-status-card.pending {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.16), rgba(251, 191, 36, 0.05));
    border: 1px solid rgba(251, 191, 36, 0.4);
}
.mp-status-card.approved {
    background: linear-gradient(135deg, rgba(52, 211, 153, 0.16), rgba(52, 211, 153, 0.05));
    border: 1px solid rgba(52, 211, 153, 0.4);
}
.mp-status-card.rejected {
    background: linear-gradient(135deg, rgba(248, 113, 113, 0.16), rgba(248, 113, 113, 0.05));
    border: 1px solid rgba(248, 113, 113, 0.4);
}
.mp-status-emoji {
    font-size: 64px;
    margin-bottom: 14px;
    display: block;
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.4));
}
.mp-status-title { font-size: 22px; font-weight: 800; margin-bottom: 8px; }
.mp-status-desc { color: var(--text-muted); font-size: 14px; line-height: 1.6; }

/* Карточка лота (каталог) */
.mp-lot-card { display: flex; flex-direction: column; margin-bottom: 8px; padding: 6px 12px; }
.mp-lot-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 4px;
}
.mp-lot-title { font-weight: 700; font-size: 15px; line-height: 1.3; flex: 1; min-width: 0; }
.mp-lot-card-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
    flex-shrink: 0;
}
.mp-lot-prices { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.mp-lot-price {
    flex-shrink: 0;
    font-weight: 800;
    font-size: 12px;
    padding: 3px 8px;
    border-radius: 999px;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}
.mp-lot-price.paid {
    background: rgba(0, 122, 255, 0.15);
    color: #409CFF;
    border: 1px solid rgba(0, 122, 255, 0.3);
}
.mp-lot-price.free {
    background: rgba(52, 211, 153, 0.15);
    color: #34D399;
    border: 1px solid rgba(52, 211, 153, 0.3);
}
.mp-lot-meta {
    display: flex; align-items: center; gap: 8px;
    font-size: 12px; color: var(--text-muted);
    margin-bottom: 0; flex-wrap: nowrap; overflow: hidden;
}
.mp-lot-meta-cat {
    background: var(--accent-soft);
    color: var(--accent-2);
    padding: 2px 8px;
    border-radius: 999px;
    font-weight: 600;
    flex-shrink: 0;
}
.mp-lot-meta-helper { color: var(--text-muted); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.mp-lot-meta-helper b { color: rgba(255, 255, 255, 0.85); }
.mp-lot-desc-preview {
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Полная карточка лота */
.mp-lot-full {
    background: rgba(var(--ios26-glass-background-rgb), 0.72);
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--r-lg);
    padding: 18px;
    margin-bottom: 14px;
}
.mp-lot-full-title { font-size: 19px; font-weight: 800; line-height: 1.35; margin-bottom: 10px; letter-spacing: -0.01em; }
.mp-lot-full-price-row { display: flex; align-items: center; gap: 10px; margin: 12px 0; }
.mp-lot-full-price-big {
    font-size: 26px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.mp-lot-full-price-big.free {
    background: linear-gradient(135deg, #34D399, #10B981);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.mp-lot-full-desc {
    color: var(--text);
    font-size: 14.5px;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-word;
}

/* Бейджи статуса лота */
.mp-lot-status-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 10.5px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    z-index: 5;
}
.mp-lot-status-badge.pending {
    background: rgba(251, 191, 36, 0.15);
    color: #FCD34D;
    border: 1px solid rgba(251, 191, 36, 0.3);
}
.mp-lot-status-badge.approved {
    background: rgba(52, 211, 153, 0.15);
    color: #6EE7B7;
    border: 1px solid rgba(52, 211, 153, 0.3);
}
.mp-lot-status-badge.rejected {
    background: rgba(248, 113, 113, 0.15);
    color: #FCA5A5;
    border: 1px solid rgba(248, 113, 113, 0.3);
}
.mp-lot-reject-reason {
    background: var(--danger-soft);
    border: 1px solid rgba(248, 113, 113, 0.3);
    border-radius: var(--r-sm);
    padding: 8px 10px;
    margin-top: 8px;
    font-size: 12.5px;
    color: #FCA5A5;
    line-height: 1.4;
}
#mp-lot-price-hint { color: var(--success); font-weight: 700; }
#mp-lot-price-hint.paid { color: var(--accent-2); }
.mp-lot-card .mp-lot-status-badge { z-index: 5; }
#mp-my-lots-list .mp-lot-card .mp-lot-card-header { margin-top: 22px; padding-right: 0 !important; }
#mp-my-lots-list .mp-lot-card .mp-lot-price { margin-left: 8px; }

/* Кнопка покупки */
.mp-buy-btn {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #fff;
    border: none;
    width: 100%;
    padding: 17px;
    font-size: 16px;
    font-weight: 800;
    border-radius: var(--r-md);
    box-shadow: var(--shadow-accent);
    cursor: pointer;
}
.mp-buy-btn.disabled {
    background: rgba(120, 120, 120, 0.4);
    box-shadow: none;
    cursor: not-allowed;
}

/* Сделки */
.mp-order-card {
    background: rgba(16, 16, 20, 0.4);
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--r-md);
    padding: 14px;
    margin-bottom: 10px;
    cursor: pointer;
    position: relative;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.12), inset 0 0 8px 0 rgba(255, 255, 255, 0.05), 0 4px 12px rgba(0, 0, 0, 0.3);
}
.mp-order-status {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 10.5px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    z-index: 5;
}
.mp-order-status.paid      { background: rgba(251, 191, 36, 0.15); color: #FCD34D; border: 1px solid rgba(251, 191, 36, 0.3); }
.mp-order-status.disputed  { background: rgba(248, 113, 113, 0.15); color: #FCA5A5; border: 1px solid rgba(248, 113, 113, 0.4); }
.mp-order-status.completed { background: rgba(52, 211, 153, 0.15);  color: #6EE7B7; border: 1px solid rgba(52, 211, 153, 0.3); }
.mp-order-status.refunded  { background: rgba(120, 120, 120, 0.15); color: #ccc;    border: 1px solid rgba(180, 180, 180, 0.3); }
.mp-order-title { font-weight: 700; font-size: 15px; margin-bottom: 6px; padding-right: 100px; line-height: 1.3; }
.mp-order-meta { font-size: 12.5px; color: var(--text-muted); margin-bottom: 4px; }
.mp-order-price { font-size: 14px; font-weight: 800; color: var(--text); }
.mp-order-price.free { color: var(--success); }

.mp-order-full-header { text-align: center; padding: 22px 18px; }
.mp-order-full-status-emoji { font-size: 60px; margin-bottom: 8px; display: block; }
.mp-order-full-title { font-size: 18px; font-weight: 800; margin: 8px 0; }
.mp-order-full-status-text { font-size: 14px; color: var(--text-muted); }

.mp-contact-block {
    background: var(--accent-soft);
    border: 1px solid var(--border-accent);
    border-radius: var(--r-md);
    padding: 14px;
    margin: 14px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}
.mp-contact-info { flex: 1; min-width: 0; }
.mp-contact-info-label { font-size: 12px; color: var(--text-muted); }
.mp-contact-info-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.mp-contact-write-btn {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #fff;
    border: none;
    padding: 10px 14px;
    border-radius: var(--r-sm);
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: var(--shadow-accent);
    transition: transform 0.2s, box-shadow 0.2s;
}
.mp-contact-write-btn:active { transform: scale(0.96); box-shadow: none; }

.mp-pay-method-btn {
    width: 100%;
    padding: 14px;
    margin-bottom: 8px;
    background: rgba(var(--ios26-glass-background-rgb), 0.72);
    backdrop-filter: blur(12px) saturate(140%);
    -webkit-backdrop-filter: blur(12px) saturate(140%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--r-sm);
    color: var(--text);
    font-size: 15px;
    font-weight: 600;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}
.mp-pay-method-btn .emoji { font-size: 24px; flex-shrink: 0; }
.mp-pay-method-btn .label { flex: 1; }
.mp-pay-method-btn .sublabel { font-size: 12px; color: var(--text-muted); font-weight: 400; }

.mp-order-action-btn {
    width: 100%;
    padding: 16px;
    margin-bottom: 8px;
    border: none;
    border-radius: var(--r-sm);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}
.mp-order-action-btn:active { transform: scale(0.96); box-shadow: none; }
.mp-order-action-btn.complete {
    background: linear-gradient(135deg, rgba(52, 211, 153, 0.9), rgba(16, 185, 129, 0.9));
    box-shadow: 0 6px 18px rgba(52, 211, 153, 0.34);
}
.mp-order-action-btn.dispute {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.9), rgba(220, 38, 38, 0.9));
    box-shadow: 0 6px 18px rgba(239, 68, 68, 0.34);
}
.mp-order-action-btn.support {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Нечётная последняя кнопка в сетке сумм — на всю ширину */
#page-topup-amounts .grid-2-cols > .square-btn:nth-child(odd):last-child,
#page-stars-topup .grid-2-cols > .square-btn:nth-child(odd):last-child {
    grid-column: span 2;
}

/* ────────────────────────────────────────────────────────────
   20. АДАПТИВ — узкие экраны
   ──────────────────────────────────────────────────────────── */
@media (max-width: 360px) {
    .balance-card-top { align-items: center !important; }
    .sbp-cta-btn { width: 100% !important; }
}

/* ────────────────────────────────────────────────────────────
   21. Листочки сакуры (функция отключена — стили на всякий)
   ──────────────────────────────────────────────────────────── */
.leaf { display: none; }
@keyframes fall {
    0%   { top: -50px; transform: rotate(0deg); opacity: 0; }
    100% { top: 100vh; transform: rotate(360deg); opacity: 0; }
}

/* ────────────────────────────────────────────────────────────
   22. Биржа — отзывы (звёзды) и вывод средств
   ──────────────────────────────────────────────────────────── */
.mp-stars-picker {
    display: flex;
    justify-content: center;
    gap: 8px;
    font-size: 36px;
    line-height: 1;
    margin: 6px 0;
}
.mp-stars-picker .mp-star {
    cursor: pointer;
    color: #6b6b78;
    transition: transform .12s ease, color .12s ease;
    user-select: none;
}
.mp-stars-picker .mp-star.active {
    color: #ffcf33;
}
.mp-stars-picker .mp-star:active {
    transform: scale(1.25);
}
.mp-review-done {
    border-color: rgba(255, 207, 51, 0.35);
}

/* Баланс-бар на главной бирже */
.mp-balance-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    gap: 12px;
}
.mp-balance-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.mp-balance-value {
    font-size: 20px;
    font-weight: 800;
    color: #4ade80;
}
.mp-balance-topup-btn {
    flex-shrink: 0;
    border: none;
    border-radius: var(--r-sm);
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    cursor: pointer;
}
.mp-balance-topup-btn:active {
    transform: scale(0.96);
}

/* Рейтинг в карточке хелпера */
.mp-helper-rating {
    margin-top: 6px;
    font-size: 15px;
    font-weight: 700;
    color: #ffcf33;
}

/* Карточка отзыва */
.mp-review-card {
    padding: 14px 16px;
    margin-bottom: 10px;
}
.mp-review-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px;
}
.mp-review-card-author {
    font-weight: 700;
    color: #fff;
}
.mp-review-card-stars {
    flex-shrink: 0;
    font-size: 14px;
}
.mp-review-card-text {
    margin-top: 8px;
    line-height: 1.5;
    color: var(--text-muted, #aaa);
}




/* =====================================================
   ROBUX: бежевые стили (Gamepass оплата)
   ===================================================== */

/* Бейдж цены Robux в карточке лота */
.mp-lot-price.robux {
    background: linear-gradient(135deg, #E6D5B8, #C9B07A);
    color: #3a2f1a;
    box-shadow: 0 3px 10px rgba(201, 176, 122, 0.34);
}

/* Цена Robux на странице лота (крупный текст) */
.mp-lot-full-price-big.robux {
    background: linear-gradient(135deg, #E6D5B8, #C9B07A);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Кнопка «Купить за X Robux» */
.mp-buy-btn.robux {
    background: linear-gradient(135deg, rgba(230, 213, 184, 0.9), rgba(201, 176, 122, 0.9));
    color: #3a2f1a;
    box-shadow: 0 10px 24px rgba(201, 176, 122, 0.34);
    transition: transform 0.2s, opacity 0.2s;
}

.mp-buy-btn.robux:active {
    opacity: 0.82;
    transform: scale(0.96);
}

/* Бейдж цены в карточке сделки (Robux) */
.mp-order-price.robux {
    color: #C9A84C;
    font-weight: 800;
}

/* Скрытый элемент (для ошибок валидации формы) */
.mp-field-error {
    color: #ff6b6b;
    font-size: 12px;
    margin-top: 4px;
    display: none;
}

/* ────────────────────────────────────────────────────────────
   CASCADE ACCORDION — Inline стратегии (замена page-games/party/action)
   
   Трёхуровневый каскад:
   L1: Развернуть TDS/TDX → показать список режимов
   L2: Нажать режим (Fallen) → показать Solo/Duo/Trio
   L3: Нажать формат → показать «Стратегия» / «Искать тиму»
   ──────────────────────────────────────────────────────────── */

/* === Секция верхнего уровня === */
.cascade-section {
    border-radius: var(--r-md);
    overflow: visible;
}

.cascade-trigger {
    position: relative;
    z-index: 1;
}

.cascade-trigger .cascade-arrow {
    flex-shrink: 0;
    font-size: 18px;
    color: var(--text-faint);
    transition: transform var(--dur-slow) var(--ease), color var(--dur) var(--ease);
    line-height: 1;
}

.cascade-section.expanded .cascade-trigger {
    border-color: var(--border-accent);
    background: var(--surface-hover);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.cascade-section.expanded .cascade-arrow {
    transform: rotate(180deg);
    color: var(--accent-2);
}

/* === Тело аккордеона (L1) === */
.cascade-body {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.8s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.5s ease-in-out, padding 0.5s ease-in-out;
    background: var(--surface);
    border: 1px solid var(--border);
    border-top: none;
    border-radius: 0 0 var(--r-md) var(--r-md);
    padding: 0 12px;
}

.cascade-body.open {
    max-height: 2000px;
    opacity: 1;
    padding: 12px;
}

.cascade-hint {
    font-size: 11.5px;
    color: var(--text-faint);
    text-align: center;
    margin-bottom: 10px;
    line-height: 1.4;
    padding: 0 4px;
}

/* Контейнер режимов — flex wrap, 2 кнопки в ряд */
.cascade-modes {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 6px;
}

/* === Заголовок папки (Badlands NST, etc.) === */
.cascade-folder-header {
    width: 100%;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    padding: 12px 6px 6px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 2px;
}

/* === Элемент режима (L2) ===
   flex-grow:1 + basis 50% = 2 в ряд.
   Одиночная кнопка в строке автоматически растягивается на 100%. */
.cascade-mode-item {
    flex: 1 1 calc(50% - 3px);
    min-width: calc(50% - 3px);
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

/* Когда раскрыт — обязательно на всю ширину */
.cascade-mode-item.expanded {
    flex-basis: 100%;
    width: 100%;
    min-width: 100%;
}

.cascade-mode-item.cascade-indent {
    padding-left: 0;
}

.cascade-mode-btn {
    width: 100%;
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 10px;
    min-height: 52px;
    border-radius: var(--r-md);
    font-size: 13px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    background: rgba(16, 16, 20, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.cascade-mode-emoji {
    font-size: 20px;
    flex-shrink: 0;
    width: 28px;
    text-align: center;
}

.cascade-mode-name {
    flex: 1;
    min-width: 0;
    /* Ограничиваем до 2 строк — не даём тексту растягивать кнопку */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 12.5px;
    line-height: 1.35;
}

.cascade-mode-arrow {
    flex-shrink: 0;
    font-size: 18px;
    font-weight: 300;
    color: var(--text-faint);
    transition: transform 0.3s var(--ease), color var(--dur) var(--ease);
}

.cascade-mode-item.expanded .cascade-mode-btn {
    border-color: rgba(0, 122, 255, 0.4);
    background: rgba(0, 122, 255, 0.1);
}

.cascade-mode-item.expanded .cascade-mode-arrow {
    transform: rotate(90deg);
    color: var(--accent-2);
}



.cascade-mode-btn:active {
    transform: scale(0.985);
}

/* === Контейнер выбора формата (L2 body) === */
.cascade-party {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.6s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease-in-out, margin 0.4s ease-in-out;
    margin: 0;
}

.cascade-party.open {
    max-height: 800px;
    opacity: 1;
    margin: 6px 0 6px 16px;
}

.cascade-party-grid {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* === Кнопка формата (Solo / Duo / Trio) === */
.cascade-party-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: var(--r-sm);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.cascade-party-name {
    flex: 1;
    text-align: left;
}

.cascade-party-arrow {
    flex-shrink: 0;
    font-size: 16px;
    color: var(--text-faint);
    transition: transform 0.3s var(--ease), color var(--dur) var(--ease);
}

.cascade-party-item.expanded .cascade-party-btn {
    border-color: rgba(0, 122, 255, 0.5);
    background: rgba(0, 122, 255, 0.15);
}

.cascade-party-item.expanded .cascade-party-arrow {
    transform: rotate(90deg);
    color: var(--accent-2);
}



.cascade-party-btn:active {
    transform: scale(0.985);
}

/* === Кнопки действий (L3 body) === */
.cascade-actions {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.5s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease-in-out, margin 0.3s ease-in-out;
    margin: 0;
}

.cascade-actions.open {
    max-height: 200px;
    opacity: 1;
    margin: 6px 0 4px 12px;
}

.cascade-action-btns {
    display: flex;
    gap: 8px;
}

.cascade-action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 11px 8px;
    border-radius: var(--r-sm);
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.cascade-action-btn.disabled {
    background: rgba(var(--ios26-glass-background-rgb), 0.3);
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.05);
    cursor: not-allowed;
    opacity: 0.5;
}

.cascade-action-btn:not(.disabled):active {
    transform: scale(0.96);
}



/* ════════════════════════════════════════════════════════════════════
   СИСТЕМА КОМНАТ (Rooms)
   ════════════════════════════════════════════════════════════════════ */

/* Кнопка создания */
.room-create-btn {
    width: 100%;
    padding: 16px;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    border: 1px dashed var(--border-accent);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text);
}
.room-create-btn:active { transform: scale(0.96); }

/* Список комнат — отступы между плашками, чтобы не слипались */
.room-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Карточка комнаты */

.room-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}
.room-card-mode {
    font-weight: 700;
    font-size: 14.5px;
}
.room-card-count {
    font-size: 13px;
    color: var(--text-muted);
}
.room-card-info {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 12.5px;
    color: var(--text-muted);
    margin-bottom: 4px;
}
.room-card-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 8px;
}
.room-has-strat, .room-vip-badge {
    background: var(--accent-soft);
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 10.5px;
    font-weight: 600;
    color: var(--accent-2);
    display: inline-block;
    transition: transform 0.2s, opacity 0.2s, background 0.2s;
}
.room-has-strat.clickable, .room-vip-badge.clickable {
    cursor: pointer;
}
.room-has-strat.clickable:hover, .room-vip-badge.clickable:hover {
    transform: translateY(-2px);
    background: var(--accent);
    color: white;
}
.room-has-strat.clickable:active, .room-vip-badge.clickable:active {
    transform: translateY(0);
    opacity: 0.8;
}
.room-card-actions {
    display: flex;
    gap: 8px;
}
.room-card-btn {
    padding: 7px 12px;
    border-radius: var(--r-sm);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(16, 16, 20, 0.4);
    color: var(--text);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    flex: 1;
    text-align: center;
}
.room-card-btn.primary { background: var(--primary); color: #fff; border-color: transparent; }
.room-card-btn.accent { background: var(--accent); color: #fff; border-color: transparent; }
.room-card-btn:active { transform: scale(0.96); }

/* Форма создания */
.room-form-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
    display: block;
}
.room-input {
    width: 100%;
    padding: 12px 14px;
    border-radius: var(--r-sm);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(16, 16, 20, 0.4);
    backdrop-filter: blur(12px) saturate(140%);
    -webkit-backdrop-filter: blur(12px) saturate(140%);
    color: var(--text);
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
    margin-top: 4px;
}
.room-input:focus { border-color: var(--accent); }
.room-input::placeholder { color: var(--text-faint); }
.room-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text);
    cursor: pointer;
    user-select: none;
}
.room-checkbox-label input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px; 
    height: 20px;
    border-radius: 6px;
    border: 2px solid var(--border-accent);
    background: var(--bg-1);
    outline: none;
    cursor: pointer;
    position: relative;
    transition: background 0.2s, border-color 0.2s;
}
.room-checkbox-label input[type="checkbox"]:checked {
    background: var(--accent);
    border-color: var(--accent);
}
.room-checkbox-label input[type="checkbox"]:checked::after {
    content: "✓";
    position: absolute;
    color: white;
    font-size: 14px;
    font-weight: bold;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Выбор режима */
.room-mode-selector {
    width: 100%;
    padding: 12px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text);
    margin-top: 4px;
}
.room-mode-list {
    max-height: 200px;
    overflow-y: auto;
    margin-top: 6px;
    border-radius: var(--r-sm);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(16, 16, 20, 0.4);
    backdrop-filter: blur(12px) saturate(140%);
    -webkit-backdrop-filter: blur(12px) saturate(140%);
}
.room-mode-item {
    display: block;
    width: 100%;
    padding: 12px 14px;
    text-align: left;
    border: none;
    background: transparent;
    color: var(--text);
    font-size: 14px;
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.15s;
}
.room-mode-item:last-child { border-bottom: none; }
.room-mode-item:active, .room-mode-item.active {
    background: var(--accent-soft);
    color: var(--accent-2);
}

/* ── КОМНАТА: ЧАТ (Telegram-стиль) ── */
#page-room-view {
    display: flex;
    flex-direction: column;
}
#page-room-view.active { display: flex; opacity: 1; visibility: visible; transform: none; pointer-events: auto; transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility 0s; z-index: 2; }
.room-view-header {
    flex-shrink: 0;
}
.room-header-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.room-header-info h2 {
    font-size: 16px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
    line-height: 1.2;
}
.room-member-count {
    font-size: 12px;
    color: var(--primary);
    margin-top: 2px;
    line-height: 1;
}

/* Закреплённое */
.room-pinned {
    background: var(--surface);
    border-left: 3px solid var(--accent);
    padding: 8px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
    flex-shrink: 0;
}
.room-pinned-icon { font-size: 14px; }
.room-pinned-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

/* Область чата */
.room-chat-area {
    flex: 1;
    overflow-y: auto;
    padding: 12px 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: var(--bg-0);
    -webkit-overflow-scrolling: touch;
}

/* Сообщения */
.room-msg {
    max-width: 80%;
    animation: msgAppear 0.2s ease;
}
@keyframes msgAppear {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}
.room-msg-mine {
    align-self: flex-end;
}
.room-msg-other {
    align-self: flex-start;
}
.room-msg-system {
    align-self: center;
    max-width: 90%;
    text-align: center;
    padding: 8px 14px;
    background: var(--surface);
    border-radius: var(--r-sm);
    font-size: 12px;
    color: var(--text-muted);
    margin: 6px 0;
}
.room-msg-name {
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 2px;
    padding-left: 4px;
}
.room-msg-bubble {
    padding: 8px 12px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.4;
    position: relative;
    word-break: break-word;
}
.room-msg-mine .room-msg-bubble {
    background: var(--accent);
    color: #fff;
    border-bottom-right-radius: 4px;
}
.room-msg-other .room-msg-bubble {
    background: var(--surface);
    color: var(--text);
    border-bottom-left-radius: 4px;
}
.room-msg-time {
    font-size: 10px;
    text-align: right;
    margin-top: 2px;
    opacity: 0.6;
}

/* Ввод сообщения */
.room-chat-input-bar {
    display: flex;
    gap: 10px;
    padding: 10px 14px;
    background: rgba(16, 16, 20, 0.70);
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}
.room-chat-input {
    flex: 1;
    padding: 12px 18px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
}
.room-chat-input:focus { 
    border-color: var(--accent); 
    background: rgba(255, 255, 255, 0.1);
}
.room-chat-input::placeholder { color: rgba(255, 255, 255, 0.4); }
.room-send-btn {
    width: 46px; height: 46px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, box-shadow 0.2s;
    flex-shrink: 0;
    box-shadow: var(--shadow-accent);
}
.room-send-btn:active { transform: scale(0.92); box-shadow: none; }

/* Контекстное меню */
.room-msg-overlay {
    position: fixed;
    inset: 0;
    z-index: 998;
    background: rgba(0,0,0,0.4);
}
.room-msg-context {
    position: fixed;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999;
    background: rgba(24, 24, 28, 0.85);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    min-width: 220px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    animation: ctxUp 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes ctxUp {
    from { opacity: 0; transform: translateX(-50%) translateY(20px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.room-msg-context button {
    display: block;
    width: 100%;
    padding: 16px 20px;
    text-align: left;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: background 0.15s;
}
.room-msg-context button:last-child { border-bottom: none; }
.room-msg-context button:active { background: rgba(255, 255, 255, 0.08); }
.room-msg-context button.danger { color: #EF4444; }

/* Панель действий */
.room-actions-bar {
    display: flex;
    gap: 8px;
    padding: 10px 14px;
    background: rgba(16, 16, 20, 0.70);
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}
.room-action-btn {
    flex: 1;
    padding: 12px 8px;
    border-radius: var(--r-sm);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
}
.room-action-btn.danger {
    background: rgba(239, 68, 68, 0.1);
    color: #EF4444;
    border-color: rgba(239, 68, 68, 0.2);
}
.room-action-btn:active { transform: scale(0.96); }

/* ── ЛОДАУТЫ (Loadouts) ── */
.loadout-player {
    display: flex;
    align-items: stretch;
    background: rgba(16, 16, 20, 0.4);
    backdrop-filter: blur(12px) saturate(140%);
    -webkit-backdrop-filter: blur(12px) saturate(140%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--r-md);
    margin-bottom: 8px;
    overflow: hidden;
}
.loadout-title {
    width: 75px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 13px;
    font-weight: bold;
    color: var(--text-muted);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(var(--ios26-glass-background-rgb), 0.72);
    flex-shrink: 0;
}
.loadout-slots {
    display: flex;
    flex: 1;
}
.loadout-slot {
    flex: 1;
    border-right: 1px solid var(--border);
    padding: 8px 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    word-break: break-word;
    color: var(--text-faint);
    transition: background 0.15s;
    min-height: 58px;
}
.loadout-slot:hover { background: var(--surface); }
.loadout-slot:active { background: rgba(var(--ios26-glass-background-rgb), 0.4); }
.loadout-slot:last-child { border-right: none; }
.loadout-add-btn {
    width: 100%;
    padding: 14px;
    background: var(--bg-1);
    border: 1px dashed var(--border-accent);
    color: var(--text-muted);
    border-radius: var(--r-md);
    text-align: center;
    font-size: 15px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: background 0.15s, transform 0.15s;
}
.loadout-add-btn:active { transform: scale(0.96); background: var(--surface); }

.t-basic { color: #a3a3a3; }
.t-adv { color: #4ade80; }
.t-hard { color: #c084fc; }
.t-evo { color: #7dd3fc; }
.t-gold { color: #facc15; }
.t-excl { color: #f87171; }
.t-none { color: var(--text-faint); }

.loadout-player.active { border-color: var(--border-accent); }
.loadout-player.taken { opacity: 0.5; filter: grayscale(1); pointer-events: none; border-color: rgba(255, 255, 255, 0.05) !important; }

.tower-img-slot {
    max-width: 100%;
    max-height: 54px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

/* ════════════════════════════════════════════════════════════════════
   GLOBAL MICRO-ANIMATIONS (Liquid Glass Interactive Polish)
   ════════════════════════════════════════════════════════════════════ */

/* Smooth universal active state for all clickable elements.
   Единый масштаб нажатия см. в секции 7 (здесь только поведение заливки). */
.glass-btn:active, .mp-buy-btn:active, .sbp-cta-btn:active, .stars-cta-btn:active, .promo-btn:active, .room-card-btn:active {
    filter: brightness(0.92);
    transition: transform 0.1s cubic-bezier(0.4, 0, 0.2, 1), filter 0.1s ease;
}

/* Add a subtle glow on hover (mainly for desktop WebApp users) */

/* Premium Entrance Animations for Pages and Lists */
@keyframes liquidEntrance {
    0% { opacity: 0; transform: translateY(15px) scale(0.98); filter: blur(5px); }
    100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

.page.active {
    animation: liquidEntrance 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Staggered load for cards in a list */
.mp-lot-card:nth-child(1) { animation: cardEntrance 0.4s var(--ease) 0.05s both; }
.mp-lot-card:nth-child(2) { animation: cardEntrance 0.4s var(--ease) 0.10s both; }
.mp-lot-card:nth-child(3) { animation: cardEntrance 0.4s var(--ease) 0.15s both; }
.mp-lot-card:nth-child(4) { animation: cardEntrance 0.4s var(--ease) 0.20s both; }
.mp-lot-card:nth-child(5) { animation: cardEntrance 0.4s var(--ease) 0.25s both; }

.room-card:nth-child(1) { animation: cardEntrance 0.4s var(--ease) 0.05s both; }
.room-card:nth-child(2) { animation: cardEntrance 0.4s var(--ease) 0.10s both; }
.room-card:nth-child(3) { animation: cardEntrance 0.4s var(--ease) 0.15s both; }
.room-card:nth-child(4) { animation: cardEntrance 0.4s var(--ease) 0.20s both; }

@keyframes cardEntrance {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Subtle pulse for interactive icons */
@keyframes iconPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.menu-item.active .menu-icon-chip {
    animation: iconPulse 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Ripple Effect Overlay (Liquid touch response) */
.ripple-surface {
    position: relative;
    overflow: hidden;
}
.ripple-surface::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 60%);
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}
.ripple-surface:active::after {
    opacity: 1;
    transform: scale(2);
    transition: 0s;
}

/* Apply ripple to main buttons */
.glass-btn, .mp-buy-btn, .room-create-btn {
    position: relative;
    overflow: hidden;
}
.glass-btn::after, .mp-buy-btn::after, .room-create-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 10%, transparent 10.01%);
    background-repeat: no-repeat;
    background-position: 50%;
    transform: translate(-50%, -50%) scale(10);
    opacity: 0;
    transition: transform 0.4s, opacity 0.8s;
    pointer-events: none;
}
.glass-btn:active::after, .mp-buy-btn:active::after, .room-create-btn:active::after {
    transform: translate(-50%, -50%) scale(0);
    opacity: 1;
    transition: 0s;
}

.premium-emoji {
    width: 1.35em;
    height: 1.35em;
    vertical-align: -0.25em;
    display: inline-block;
    object-fit: contain;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.3));
}





/* Ultra-smooth interactive states */
@media (hover: hover) and (pointer: fine) {
    .glass-btn:hover, .room-card:hover, .mp-lot-card:hover, .mp-helper-card:hover {
        background: linear-gradient(145deg, rgba(80, 80, 95, 0.6) 0%, rgba(50, 50, 60, 0.5) 100%);
        transform: translateY(-2px);
    }
    .primary-bg:hover, .accent-bg:hover {
        filter: brightness(1.15);
    }
}
.glass-btn:active, .primary-bg:active, .accent-bg:active, .room-card.clickable:active {
    filter: brightness(0.92) !important;
}


.premium-emoji {
    filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.5)) drop-shadow(0 2px 4px rgba(255, 255, 255, 0.1)) !important;
    transform: scale(1.15);
}

/* =====================================================
   ЧАТЫ БИРЖИ — список диалогов + бейдж непрочитанных
   ===================================================== */
.chat-list-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    cursor: pointer;
}
.chat-list-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.chat-list-top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
}
.chat-list-name {
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.chat-list-time {
    font-size: 11px;
    color: var(--text-muted);
    flex-shrink: 0;
}
.chat-list-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.chat-list-preview {
    font-size: 13px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}
.chat-list-preview.is-sys {
    font-style: italic;
    opacity: 0.85;
}
.chat-list-unread {
    flex-shrink: 0;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 10px;
    background: #ff453a;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
/* Бейдж на кнопке «Чаты» главной */
.chats-badge {
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    border-radius: 11px;
    background: #ff453a;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    margin-right: 6px;
}
.chats-badge.hidden { display: none; }

/* Кнопка «Написать» — вариант mp-buy-btn и на карточке лота в каталоге */
.mp-buy-btn.write {
    background: linear-gradient(135deg, rgba(90, 130, 220, 0.92), rgba(60, 100, 200, 0.92));
    color: #fff;
    box-shadow: 0 10px 24px rgba(60, 100, 200, 0.30);
    backdrop-filter: blur(8px);
    transition: transform 0.2s, opacity 0.2s;
}
.mp-buy-btn.write:active { opacity: 0.85; transform: scale(0.96); }

/* Компактная кнопка «Написать» в строке метаданных лота (не увеличивает высоту карточки) */
.mp-lot-write-btn {
    margin-left: auto;
    flex-shrink: 0;
    border: none;
    cursor: pointer;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
    background: linear-gradient(135deg, rgba(90, 130, 220, 0.92), rgba(60, 100, 200, 0.92));
    box-shadow: 0 4px 10px rgba(60, 100, 200, 0.28);
    transition: transform 0.15s, opacity 0.15s;
}
.mp-lot-write-btn:active { opacity: 0.85; transform: scale(0.95); }

/* ============================================================
   МАГАЗИН ГЕЙМПАССОВ (ГП) — витрина, карточки, чекаут, статус
   ============================================================ */

/* Хиро-шапка магазина */
.gp-hero {
    text-align: center;
    padding: 22px 18px;
    background:
        radial-gradient(120% 120% at 50% 0%, rgba(10, 132, 255, 0.18), transparent 70%),
        var(--surface);
    border: 1px solid var(--border-light);
}
.gp-hero-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
    padding: 4px 12px;
    border-radius: 999px;
    color: var(--accent-2);
    background: var(--accent-soft);
    border: 1px solid var(--border-accent);
    margin-bottom: 10px;
}
.gp-hero-title { font-size: 22px; font-weight: 800; margin: 0 0 4px; }
.gp-hero-sub { font-size: 13px; color: var(--text-muted); margin: 0; line-height: 1.5; }

/* Сетка карточек: 2 колонки */
.gp-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

/* Карточка геймпасса */
.gp-card {
    display: flex;
    flex-direction: column;
    padding: 10px;
    background: #202020;
    border-radius: 24px;
    border: none;
    transition: transform 0.18s ease;
    min-width: 0; /* Prevents grid blowout from long nowrap text */
}
.gp-card:active { transform: scale(0.97); }

/* Контейнер картинки */
.gp-card-img-box {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Фоновые паттерны в стиле скриншота */
.gp-card-img-box::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(0,0,0,0.05) 2px, transparent 2px);
    background-size: 16px 16px;
    opacity: 0.5;
    pointer-events: none;
}

.gp-card-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    z-index: 1;
}

/* Иконки в левом верхнем углу */
.gp-card-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    gap: 4px;
    z-index: 2;
}
.gp-badge {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.gp-badge-white {
    background: rgba(255, 255, 255, 0.25);
    z-index: 2;
}
.gp-badge-green {
    background: rgba(92, 184, 92, 0.45);
    z-index: 1;
}
.gp-badge svg {
    width: 14px;
    height: 14px;
    fill: #ffffff;
}

/* Тело карточки */
.gp-card-body {
    display: flex;
    flex-direction: column;
    padding: 10px 6px 4px 6px;
    flex: 1;
}
.gp-card-name {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    color: #ffffff;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.gp-card-sub {
    font-size: 13px;
    color: #8a8a8a;
    margin: 4px 0 0 0;
}
.gp-card-foot {
    margin-top: auto;
    padding-top: 10px;
    display: flex;
}
.gp-buy-btn {
    flex: 1;
    border: none;
    padding: 10px 0;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 800;
    color: #ffffff;
    background: #1a80ff; /* Ярко-синий цвет из скриншота */
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: transform 0.1s, opacity 0.1s;
}
.gp-buy-btn:active { transform: scale(0.95); opacity: 0.9; }
.gp-buy-btn svg {
    width: 14px;
    height: 14px;
    fill: #ffffff;
}

/* Экран чекаута — карточка выбранного товара */
.gp-checkout-head { padding: 24px 20px; }
.gp-co-item {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 16px;
    padding: 12px;
    border-radius: var(--r-sm);
    background: var(--surface-2);
    border: 1px solid var(--border);
    text-align: left;
}
.gp-co-img {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid var(--border-light);
}
.gp-co-meta { display: flex; flex-direction: column; gap: 4px; }
.gp-co-name { font-size: 16px; font-weight: 700; }
.gp-co-price { font-size: 15px; font-weight: 800; color: var(--accent-2); }

/* Поле ввода ника */
.gp-field-label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 10px;
}
.gp-input {
    width: 100%;
    box-sizing: border-box;
    padding: 14px 16px;
    font-size: 16px;
    color: #fff;
    background: var(--surface-2);
    border: 1px solid var(--border-light);
    border-radius: var(--r-sm);
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.gp-input::placeholder { color: var(--text-faint); }
.gp-input:focus {
    border-color: var(--border-accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

/* ============================================================
   МАГАЗИН ГП — тонкая плашка баланса + выезжающее меню пополнения
   ============================================================ */
.gp-balance-bar {
    padding: 12px 14px;
    border: 1px solid var(--border-light);
    overflow: hidden;
}
.gp-balance-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.gp-balance-info { display: flex; align-items: center; gap: 12px; }
.gp-balance-icon { font-size: 22px; line-height: 1; }
.gp-balance-text { display: flex; flex-direction: column; line-height: 1.2; }
.gp-balance-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
    color: var(--text-muted);
    text-transform: uppercase;
}
.gp-balance-value { font-size: 18px; font-weight: 800; color: #fff; }

.gp-topup-btn {
    border: none;
    padding: 9px 18px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    white-space: nowrap;
    background: linear-gradient(135deg, var(--accent), #0066d6);
    box-shadow: 0 6px 16px var(--accent-glow);
    transition: transform 0.15s, opacity 0.15s;
}
.gp-topup-btn:active { transform: scale(0.94); opacity: 0.9; }
.gp-topup-caret {
    display: inline-block;
    transition: transform 0.3s ease;
    font-size: 10px;
}

/* Меню способов оплаты — медленно выезжает вниз при наведении/тапе */
.gp-topup-menu {
    display: flex;
    gap: 8px;
    max-height: 0;
    opacity: 0;
    margin-top: 0;
    overflow: hidden;
    transition: max-height 0.45s ease, opacity 0.35s ease, margin-top 0.45s ease;
}
.gp-balance-bar:hover .gp-topup-menu,
.gp-balance-bar.open .gp-topup-menu {
    max-height: 120px;
    opacity: 1;
    margin-top: 12px;
}
.gp-balance-bar:hover .gp-topup-caret,
.gp-balance-bar.open .gp-topup-caret { transform: rotate(180deg); }

.gp-pay-opt {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 11px 6px;
    border-radius: var(--r-sm);
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    background: var(--surface-2);
    border: 1px solid var(--border-light);
    transition: transform 0.15s, background 0.15s, border-color 0.15s;
}
.gp-pay-opt:active { transform: scale(0.95); background: var(--accent-soft); border-color: var(--border-accent); }
.gp-pay-ic { font-size: 15px; }

/* Нечётный товар: нижняя карточка растягивается на всю ширину (горизонтальный вид) */
.gp-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: stretch;
}
.gp-card:last-child:nth-child(odd) .gp-card-img {
    width: 42%;
    max-width: 200px;
    aspect-ratio: 1 / 1;
    flex-shrink: 0;
}
.gp-card:last-child:nth-child(odd) .gp-card-body {
    justify-content: center;
    padding: 16px 16px 16px 18px;
}
.gp-card:last-child:nth-child(odd) .gp-card-name {
    font-size: 17px;
    min-height: 0;
}

/* ════════════════════════════════════════════════════════════════════
   TDS ИИ АГЕНТ — Liquid Glass chat UI
   ════════════════════════════════════════════════════════════════════ */

/* ── Кнопка «Новый диалог» на странице списка ─── */
.ai-new-chat-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 14px 20px;
    border-radius: var(--r-md);
    border: none;
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    margin-bottom: 10px;
    gap: 8px;
    transition: transform 0.15s, opacity 0.15s;
}
.ai-new-chat-btn:active { transform: scale(0.97); opacity: 0.85; }

/* ── Счётчик дня ─── */
.ai-daily-note {
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
    margin: 0 0 12px;
}

/* ── Элемент списка чатов ─── */
.ai-chat-item {
    display: flex;
    align-items: center;
    padding: 12px 14px;
    border-radius: var(--r-md);
    margin-bottom: 8px;
    cursor: pointer;
    gap: 10px;
    transition: background 0.15s;
}
.ai-chat-item:active { background: var(--surface-hover); }
.ai-chat-item-info { flex: 1; min-width: 0; }
.ai-chat-item-title {
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ai-chat-item-preview {
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
}
.ai-chat-item-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    flex-shrink: 0;
}
.ai-chat-item-count {
    font-size: 11px;
    color: var(--text-faint);
}
.ai-chat-del {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 14px;
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 6px;
    transition: color 0.15s, background 0.15s;
}
.ai-chat-del:active { color: var(--danger); background: var(--danger-soft); }

/* ── Пустое состояние ─── */
.ai-empty-hint {
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
    padding: 20px 0;
}

/* ══════════════════════════════════════════════════
   PAGE: AI-CHAT — полноэкранный чат
   ══════════════════════════════════════════════════ */
#page-ai-chat {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

/* ── Шапка чата ─── */
.ai-chat-header {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.ai-chat-head-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}
.ai-chat-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--accent-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}
.ai-chat-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
}
.ai-chat-status {
    font-size: 11px;
    color: var(--success);
}

/* ── Область сообщений ─── */
.ai-msg-area {
    flex: 1;
    overflow-y: auto;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    -webkit-overflow-scrolling: touch;
}

/* ── Строки сообщений ─── */
.ai-msg {
    display: flex;
    align-items: flex-end;
    gap: 6px;
}
.ai-msg-user {
    justify-content: flex-end;
}
.ai-msg-ai {
    justify-content: flex-start;
}

/* ── Аватар ИИ ─── */
.ai-msg-avatar {
    font-size: 20px;
    flex-shrink: 0;
    margin-bottom: 2px;
}

/* ── Пузыри ─── */
.ai-bubble {
    max-width: 78%;
    padding: 10px 14px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.5;
    word-break: break-word;
    overflow-wrap: anywhere;
}
.ai-msg-user .ai-bubble {
    background: var(--accent);
    color: #fff;
    border-bottom-right-radius: 4px;
}
.ai-msg-ai .ai-bubble {
    background: var(--surface);
    backdrop-filter: var(--blur-light);
    -webkit-backdrop-filter: var(--blur-light);
    border: 1px solid var(--border);
    color: var(--text);
    border-bottom-left-radius: 4px;
}
.ai-bubble a {
    color: var(--accent-2);
    text-decoration: underline;
    word-break: break-all;
}

/* ── Индикатор «печатает…» ─── */
.ai-typing {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 12px 16px;
    min-width: 48px;
}
.ai-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--text-muted);
    display: inline-block;
    animation: ai-blink 1.2s infinite ease-in-out;
}
.ai-dot:nth-child(1) { animation-delay: 0s; }
.ai-dot:nth-child(2) { animation-delay: 0.2s; }
.ai-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes ai-blink {
    0%, 80%, 100% { transform: scale(0.75); opacity: 0.4; }
    40%           { transform: scale(1.1);  opacity: 1; }
}

/* ── Баннеры (лимиты) ─── */
.ai-banner {
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
    background: var(--surface-dark);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    padding: 10px 16px;
    margin: 0 14px 6px;
}
.ai-newchat-inline {
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 8px;
    display: inline-block;
}

/* ── Чипсы-подсказки ─── */
.ai-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 6px 14px 4px;
    flex-shrink: 0;
}
.ai-chip {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    color: var(--text);
    font-size: 12px;
    padding: 6px 12px;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
    white-space: nowrap;
}
.ai-chip:active { background: var(--accent-soft); border-color: var(--border-accent); }

/* ── Строка ввода ─── */
.ai-input-bar {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    padding: 10px 14px 14px;
    background: var(--surface-dark);
    backdrop-filter: var(--blur-heavy);
    -webkit-backdrop-filter: var(--blur-heavy);
    border-top: 1px solid var(--border);
    flex-shrink: 0;
}
.ai-input {
    flex: 1;
    resize: none;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 9px 14px;
    font-size: 14px;
    color: var(--text);
    outline: none;
    line-height: 1.45;
    min-height: 38px;
    max-height: 120px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    font-family: inherit;
    transition: border-color 0.2s;
}
.ai-input:focus { border-color: var(--border-accent); }
.ai-input::placeholder { color: var(--text-faint); }
.ai-send-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--accent);
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.15s, opacity 0.15s;
}
.ai-send-btn:active { transform: scale(0.92); opacity: 0.85; }

/* ── Тост «скопировано» ─── */
.ai-toast {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: rgba(30, 30, 36, 0.92);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 8px 18px;
    font-size: 13px;
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.25s, transform 0.25s;
}
.ai-toast.ai-toast-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ════════════════════════════════════════════════════════════════════
   BOTTOM TAB BAR — floating island (Liquid Glass)
   ════════════════════════════════════════════════════════════════════ */

/* Обёртка-островок */
#bottom-tab-bar {
    position: fixed;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;

    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 2px;
    padding: 5px 6px;
    border-radius: 40px;
    min-width: 260px;
    max-width: 348px;
    width: auto;

    background: rgba(36, 36, 42, 0.82);
    backdrop-filter: blur(14px) saturate(160%) brightness(1.04);
    -webkit-backdrop-filter: blur(14px) saturate(160%) brightness(1.04);
    border: 0.5px solid rgba(255, 255, 255, 0.18);
    border-top: 0.5px solid rgba(255, 255, 255, 0.28);
    box-shadow:
        0 2px 0 rgba(255,255,255,0.06) inset,
        0 16px 48px rgba(0,0,0,0.55),
        0 4px 16px rgba(0,0,0,0.4);

    transition:
        opacity 0.25s var(--ease),
        transform 0.3s var(--ease);
    will-change: opacity, transform;
}

#bottom-tab-bar.tab-bar-hidden {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
    pointer-events: none;
}

/* Одна кнопка таба */
.tab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 5px 10px;
    border-radius: 30px;
    border: none;
    background: transparent;
    cursor: pointer;
    color: rgba(255,255,255,0.4);
    transition:
        background 0.25s var(--ease),
        color 0.25s var(--ease),
        transform 0.2s var(--ease);
    -webkit-user-select: none;
    user-select: none;
    min-width: 50px;
    will-change: transform, background;
}
.tab-item:active {
    transform: scale(0.9);
}

/* Иконка таба — SVG stroke-style */
.tab-icon {
    line-height: 1;
    transition: transform 0.25s var(--ease);
    display: flex;
    align-items: center;
    justify-content: center;
}
.tab-icon svg {
    width: 20px;
    height: 20px;
    display: block;
    stroke: currentColor;
    fill: none;
    transition: filter 0.25s var(--ease);
}

/* Подпись таба — всегда видна */
.tab-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.01em;
    opacity: 1;
    white-space: nowrap;
    color: rgba(255,255,255,0.4);
    transition: color 0.25s var(--ease);
}

/* ── АКТИВНОЕ СОСТОЯНИЕ ── */
.tab-item.active {
    color: #fff;
    background: rgba(10, 132, 255, 0.20);
    box-shadow:
        0 0 0 1px rgba(10, 132, 255, 0.35),
        0 4px 16px rgba(10, 132, 255, 0.18),
        inset 0 1px 0 rgba(255,255,255,0.12);
}
.tab-item.active .tab-icon {
    transform: scale(1.1);
}
.tab-item.active .tab-icon svg {
    filter: drop-shadow(0 0 5px rgba(10,132,255,0.55));
}
.tab-item.active .tab-label {
    color: var(--accent-2);
}

/* Аватарка-кнопка профиля в шапке таба */
.tab-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 12px;
    padding: 16px 20px !important;
    width: calc(100% - 32px);
    margin: 16px auto 0 !important;
    box-sizing: border-box;
    border-radius: var(--r-lg);
    background: rgba(var(--ios26-glass-background-rgb), 0.72);
    backdrop-filter: var(--blur-heavy);
    -webkit-backdrop-filter: var(--blur-heavy);
    box-shadow: inset 0 1px 1px rgba(255,255,255,0.12), 0 4px 12px rgba(0,0,0,0.4);
    border-top: 0.5px solid rgba(255,255,255,0.15);
    border-right: 0.5px solid rgba(255,255,255,0.05);
    border-bottom: 0.5px solid rgba(255,255,255,0.02);
    border-left: 0.5px solid rgba(255,255,255,0.05);
    flex-shrink: 0;
}
.tab-header-title {
    flex: 1;
    min-width: 0;
}
.tab-header-title h1 {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 3px;
}
.tab-header-title .subtitle {
    font-size: 13px;
    color: var(--text-muted);
}
.tab-avatar-btn {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,0.15);
    background: rgba(60,60,70,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
    overflow: hidden;
}
.tab-avatar-btn:active {
    transform: scale(0.92);
}
.tab-avatar-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* ════════════════════════════════════════════════════════════════════
   ТАБ «МАРКЕТ» — hero-баннер магазина, плитки быстрых действий
   ════════════════════════════════════════════════════════════════════ */

/* Hero-плитка магазина геймпассов: тёплый золотой градиент поверх стекла */
.market-hero {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 16px 14px 16px 18px;
    box-sizing: border-box;
    text-align: left;
    cursor: pointer;
    overflow: hidden;
    border-radius: var(--r-md);
    background:
        radial-gradient(130% 180% at 100% 0%, rgba(255, 178, 46, 0.28), rgba(255, 122, 40, 0.10) 45%, transparent 70%),
        rgba(var(--ios26-glass-background-rgb), 0.72) !important;
    border: 0.5px solid rgba(255, 190, 90, 0.28) !important;
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.14),
        0 8px 24px rgba(255, 150, 40, 0.10),
        0 4px 12px rgba(0, 0, 0, 0.35) !important;
    transition: transform 0.2s var(--ease);
}
.market-hero:active { transform: scale(0.97); }

.market-hero-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.market-hero-badge {
    align-self: flex-start;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 3px 9px;
    border-radius: 999px;
    color: #ffd88a;
    background: rgba(255, 178, 46, 0.16);
    border: 1px solid rgba(255, 190, 90, 0.35);
    margin-bottom: 3px;
}
.market-hero-title {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--text);
}
.market-hero-sub {
    font-size: 12.5px;
    line-height: 1.35;
    color: var(--text-muted);
}
.market-hero-img {
    flex-shrink: 0;
    width: 62px;
    height: 62px;
    object-fit: contain;
    filter: drop-shadow(0 6px 14px rgba(255, 150, 40, 0.35));
}
.market-hero-chevron { align-self: center; }

/* Плитка с бейджем непрочитанных (Чаты) */
.tile-rel { position: relative; }
.chats-badge.tile-badge {
    position: absolute;
    top: 8px;
    right: 10px;
    margin: 0;
    min-width: 20px;
    height: 20px;
    font-size: 11px;
    box-shadow: 0 2px 8px rgba(255, 69, 58, 0.45);
}

/* ════════════════════════════════════════════════════════════════════
   ТАБ «ЛОББИ» — круглая иконка-кнопка в шапке (поддержка)
   ════════════════════════════════════════════════════════════════════ */
.tab-header-icon-btn {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    background: rgba(60, 60, 70, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    color: var(--text);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s var(--ease);
    padding: 0;
}
.tab-header-icon-btn:active { transform: scale(0.92); }

/* Цветовая идентичность шапок табов (деликатная тонировка поверх стекла) */
.tab-header.tab-header--market {
    background:
        radial-gradient(140% 180% at 100% 0%, rgba(255, 178, 46, 0.13), transparent 55%),
        rgba(var(--ios26-glass-background-rgb), 0.72);
}
.tab-header.tab-header--lobby {
    background:
        radial-gradient(140% 180% at 100% 0%, rgba(175, 122, 255, 0.13), transparent 55%),
        rgba(var(--ios26-glass-background-rgb), 0.72);
}
.tab-header.tab-header--gw {
    background:
        radial-gradient(140% 180% at 100% 0%, rgba(255, 214, 10, 0.13), transparent 55%),
        rgba(var(--ios26-glass-background-rgb), 0.72);
}

/* ════════════════════════════════════════════════════════════════════
   BENTO 2026 — страница «База»: 3D tilt, cursor chase, spotlight,
   парящие полупрозрачные башни, stagger-вход. Всё на transform/rAF.
   ════════════════════════════════════════════════════════════════════ */

/* ── Сетка ── */
.bento-scroll {
    display: flex;
    flex-direction: column;
    gap: 10px;
    perspective: 900px;
}

.bento-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

/* ── Базовая bento-карточка ── */
.bento-hero, .bento-tile {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transform-style: preserve-3d;
    will-change: transform;
    transition: box-shadow var(--dur) var(--ease);
    /* stagger-вход */
    opacity: 0;
    animation: bentoIn 0.7s var(--ease) forwards;
}
.bento-hero  { animation-delay: 0.05s; }
.bento-row:nth-of-type(1) .bento-tile:nth-child(1) { animation-delay: 0.15s; }
.bento-row:nth-of-type(1) .bento-tile:nth-child(2) { animation-delay: 0.22s; }
.bento-row:nth-of-type(2) .bento-tile:nth-child(1) { animation-delay: 0.29s; }
.bento-row:nth-of-type(2) .bento-tile:nth-child(2) { animation-delay: 0.36s; }
.bento-stats { animation-delay: 0.43s; }

@keyframes bentoIn {
    from { opacity: 0; transform: translateY(26px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0)    scale(1); }
}

.bento-hero:active, .bento-tile:active { box-shadow: var(--shadow-accent); }

/* ── HERO ── */
.bento-hero {
    min-height: 148px;
    display: flex;
    align-items: flex-end;
    padding: 18px;
    cursor: pointer;
    background:
        radial-gradient(120% 140% at 85% 15%, rgba(10, 132, 255, 0.22), transparent 55%),
        rgba(var(--ios26-glass-background-rgb), 0.72);
}
.bento-hero-content { position: relative; z-index: 3; pointer-events: none; }
.bento-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 20px;
    background: rgba(255, 69, 58, 0.18);
    border: 1px solid rgba(255, 69, 58, 0.35);
    margin-bottom: 6px;
}
.bento-hero-title { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.bento-hero-sub   { font-size: 13px; color: var(--text-muted); margin-top: 2px; }
.bento-cta {
    display: inline-flex; align-items: center; gap: 4px;
    margin-top: 8px; font-size: 13px; font-weight: 700; color: var(--accent-2);
}
.bento-cta i { font-style: normal; transition: transform var(--dur) var(--ease); }
.bento-hero:hover .bento-cta i { transform: translateX(4px); }

/* ── TILE ── */
.bento-tile {
    min-height: 128px;
    display: flex;
    align-items: flex-end;
    padding: 14px;
}
.bento-tile-content { position: relative; z-index: 3; pointer-events: none; }
.bento-tile-emoji { font-size: 22px; display: block; margin-bottom: 4px; }
.bento-tile h4 { font-size: 15px; font-weight: 700; letter-spacing: -0.01em; }
.bento-tile p  { font-size: 12px; color: var(--text-muted); margin-top: 1px; }

.bento-tile--accent {
    background:
        radial-gradient(120% 140% at 80% 10%, rgba(64, 156, 255, 0.25), transparent 55%),
        rgba(var(--ios26-glass-background-rgb), 0.72);
}
.bento-tile--gold {
    background:
        radial-gradient(120% 140% at 80% 10%, rgba(255, 214, 10, 0.18), transparent 55%),
        rgba(var(--ios26-glass-background-rgb), 0.72);
}

/* ── Парящие башни (полупрозрачные, слои глубины) ── */
.float-tower {
    position: absolute;
    top: 8px; right: 10px;
    width: 74px; height: 74px;
    object-fit: contain;
    opacity: 0.9;
    z-index: 2;
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.45));
    animation: towerFloat 5s ease-in-out infinite;
    will-change: transform;
    pointer-events: none;
    transition: opacity var(--dur) var(--ease), filter var(--dur) var(--ease);
}
.float-tower--mid {
    top: 26px; right: 70px;
    width: 52px; height: 52px;
    opacity: 0.55;
    filter: blur(0.6px) drop-shadow(0 6px 14px rgba(0, 0, 0, 0.35));
    animation-duration: 6.5s;
    animation-delay: -1.6s;
}
.float-tower--back {
    top: 4px; right: 96px;
    width: 40px; height: 40px;
    opacity: 0.35;
    filter: blur(1.4px) drop-shadow(0 4px 10px rgba(0, 0, 0, 0.3));
    animation-duration: 8s;
    animation-delay: -3.2s;
}
.float-tower--icon { border-radius: 14px; }

.bento-tile .float-tower { width: 56px; height: 56px; top: 10px; right: 10px; }
.bento-tile .float-tower--back { width: 34px; height: 34px; top: 40px; right: 52px; }

@keyframes towerFloat {
    0%, 100% { transform: translateY(0)    rotate(-2deg); }
    50%      { transform: translateY(-9px) rotate(2.5deg); }
}

/* При chase — JS отключает анимацию и берёт управление */
.float-tower.chasing { animation: none; opacity: 1; z-index: 5; }

/* ── 3D tilt glare (блик) ── */
.tilt-glare {
    position: absolute; inset: 0;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.10) 48%, transparent 62%);
    opacity: 0;
    transition: opacity var(--dur) var(--ease);
    border-radius: inherit;
}
.tilt-card.tilting .tilt-glare { opacity: 1; }

/* ── Spotlight (свечение за курсором) ── */
.spotlight {
    position: absolute; inset: 0;
    z-index: 1;
    pointer-events: none;
    border-radius: inherit;
    opacity: 0;
    transition: opacity var(--dur) var(--ease);
    background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%),
                rgba(64, 156, 255, 0.20), transparent 65%);
}
.tilt-card:hover .spotlight, .tilt-card.tilting .spotlight { opacity: 1; }
.bento-tile--gold .spotlight {
    background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%),
                rgba(255, 214, 10, 0.16), transparent 65%);
}

/* ── AI orb (пульсирующая сфера вместо башни) ── */
.ai-orb {
    position: absolute;
    top: 12px; right: 14px;
    width: 52px; height: 52px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 32% 30%, rgba(255, 255, 255, 0.55), transparent 42%),
        radial-gradient(circle at 50% 50%, #409CFF 0%, #0A84FF 55%, #5E5CE6 100%);
    box-shadow: 0 0 24px rgba(10, 132, 255, 0.55), inset 0 -6px 14px rgba(0, 0, 0, 0.35);
    animation: orbPulse 3.2s ease-in-out infinite;
    z-index: 2;
}
@keyframes orbPulse {
    0%, 100% { transform: scale(1);    box-shadow: 0 0 18px rgba(10, 132, 255, 0.45), inset 0 -6px 14px rgba(0,0,0,0.35); }
    50%      { transform: scale(1.08); box-shadow: 0 0 34px rgba(10, 132, 255, 0.75), inset 0 -6px 14px rgba(0,0,0,0.35); }
}

/* ── Stats bar ── */
.bento-stats {
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 12px 10px;
    opacity: 0;
    animation: bentoIn 0.7s var(--ease) forwards;
}
.bento-stat { display: flex; flex-direction: column; align-items: center; gap: 1px; }
.bento-stat b { font-size: 17px; font-weight: 800; letter-spacing: -0.02em; color: var(--accent-2); }
.bento-stat span { font-size: 11px; color: var(--text-muted); }
.bento-stat-sep { width: 1px; height: 26px; background: var(--border); }

/* ── Ripple от касания ── */
.bento-ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.28);
    transform: scale(0);
    animation: rippleGo 0.55s var(--ease) forwards;
    pointer-events: none;
    z-index: 6;
}
@keyframes rippleGo {
    to { transform: scale(3.2); opacity: 0; }
}

/* ── Раскрытый каскад под hero (бесшовно) ── */
.bento-cascade .cascade-body {
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    margin-top: 0;
    background: rgba(var(--ios26-glass-background-rgb), 0.72);
    backdrop-filter: var(--blur-heavy);
    -webkit-backdrop-filter: var(--blur-heavy);
}
.cascade-section.bento-cascade { display: none; }
.cascade-section.bento-cascade.expanded { display: block; animation: bentoIn 0.5s var(--ease); }

/* Reduced motion — уважаем настройки системы */
@media (prefers-reduced-motion: reduce) {
    .float-tower, .ai-orb { animation: none !important; }
    .bento-hero, .bento-tile, .bento-stats { animation-duration: 0.01s !important; }
}

/* ── Конвейер башен в hero (2 вертикальных ряда, за заголовком) ── */
.tower-conveyor {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 78px;              /* центр конвейера ~ между «Стратегии» и «TDS» */
    width: 108px;            /* 2 колонки по ~50px + зазор */
    z-index: 1;
    display: flex;
    flex-direction: row;
    gap: 8px;
    overflow: hidden;
    border-radius: inherit;
    pointer-events: none;
    opacity: 0;
    animation: conveyorFadeIn 1.2s var(--ease) 0.6s forwards;
    /* растворение сверху и снизу */
    -webkit-mask-image: linear-gradient(180deg, transparent, #000 16%, #000 84%, transparent);
            mask-image: linear-gradient(180deg, transparent, #000 16%, #000 84%, transparent);
}
@keyframes conveyorFadeIn { to { opacity: 1; } }

.conveyor-lane {
    position: relative;
    width: 50px;
    height: 100%;
    display: flex;
    flex-direction: column;
    pointer-events: none;
}

.conveyor-track {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
    height: max-content;
    will-change: transform;
    transform: translateZ(0);
    contain: layout paint;
}
.conveyor-lane[data-dir="up"]   .conveyor-track { animation: laneUp   var(--lane-dur, 44s) linear infinite; }
.conveyor-lane[data-dir="down"] .conveyor-track { animation: laneDown var(--lane-dur, 44s) linear infinite; }
.tower-conveyor.conveyor-paused .conveyor-track { animation-play-state: paused !important; }

@keyframes laneUp {
    from { transform: translateY(0); }
    to   { transform: translateY(-50%); }
}
@keyframes laneDown {
    from { transform: translateY(-50%); }
    to   { transform: translateY(0); }
}

/* Башня: бокс 44px (точный хитбокс), визуал ×1.4 (~62px) через scale —
   transform НЕ расширяет зону нажатия, поэтому попадать легко,
   а свободное место остаётся «открывающим» */
.conveyor-tower {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    object-fit: contain;
    opacity: 0.42;
    transform: scale(1.4);
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.35));
    transition: opacity 0.25s var(--ease), filter 0.25s var(--ease);
    pointer-events: auto;
    cursor: pointer;
}
.conveyor-tower:hover {
    opacity: 0.9;
    filter: saturate(1.15) drop-shadow(0 6px 16px rgba(10, 132, 255, 0.4));
}

/* Башня, сорвавшаяся за курсором — поверх всего */
.conveyor-tower.chasing {
    position: fixed;
    z-index: 9999;
    width: 40px;
    height: 40px;
    opacity: 1;
    transform: none;
    filter: saturate(1.2) drop-shadow(0 10px 24px rgba(10, 132, 255, 0.55));
    pointer-events: none;
    margin: 0;
}

/* Контент hero: поверх конвейера, без ограничений ширины */
.bento-hero .bento-hero-content {
    pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
    .conveyor-track { animation: none !important; }
    .tower-conveyor { animation-duration: 0.01s !important; }
}

/* ════════════════════════════════════════════════════════════════════
   GIVEAWAYS 2026 — «Розыгрыши»: живой hero с градиентной рамкой,
   каунтдаун-чипы, призы с stagger-входом, CTA с бликом,
   колесо башен с трещоткой и попап победы. Всё transform/opacity.
   ════════════════════════════════════════════════════════════════════ */

/* ── Бейдж-точка на кнопке таба ── */
.tab-icon--gift { position: relative; }
.tab-gw-badge {
    position: absolute;
    top: -2px; right: -4px;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #FFD60A;
    box-shadow: 0 0 8px rgba(255, 214, 10, 0.9);
    animation: gwBadgePulse 1.6s ease-in-out infinite;
}
.tab-gw-badge.hidden { display: none; }
@keyframes gwBadgePulse {
    0%, 100% { transform: scale(1);   opacity: 1; }
    50%      { transform: scale(1.35); opacity: 0.7; }
}

/* ── Сетка вкладки ── */
.gw-scroll {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ── HERO активного розыгрыша: живая градиентная рамка ── */
.gw-hero {
    position: relative;
    border-radius: var(--r-md);
    padding: 2px;                    /* место под рамку */
    cursor: pointer;
    opacity: 0;
    animation: bentoIn 0.7s var(--ease) 0.05s forwards;
}
.gw-hero:active { transform: scale(0.985); }
.gw-hero-border {
    position: absolute; inset: 0;
    border-radius: inherit;
    background: conic-gradient(from var(--gw-angle, 0deg),
        rgba(var(--gw-accent), 0.0) 0deg,
        rgba(var(--gw-accent), 0.9) 80deg,
        rgba(255, 255, 255, 0.9) 120deg,
        rgba(var(--gw-accent), 0.9) 160deg,
        rgba(var(--gw-accent), 0.0) 300deg);
    animation: gwBorderSpin 3.6s linear infinite;
    filter: blur(1px);
}
@property --gw-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}
@keyframes gwBorderSpin { to { --gw-angle: 360deg; } }

.gw-hero-inner {
    position: relative;
    border-radius: calc(var(--r-md) - 2px);
    padding: 18px;
    overflow: hidden;
    background:
        radial-gradient(130% 120% at 85% 0%, rgba(var(--gw-accent), 0.16), transparent 55%),
        rgba(var(--ios26-glass-background-rgb), 0.85);
}

.gw-live-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}
.gw-live-row--center { justify-content: center; margin-top: 10px; margin-bottom: 0; }
.gw-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #FF6961;
    background: rgba(255, 69, 58, 0.14);
    border: 1px solid rgba(255, 69, 58, 0.4);
    padding: 3px 8px;
    border-radius: 20px;
}
.gw-live-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #FF453A;
    animation: gwLiveDot 1.4s ease-in-out infinite;
}
@keyframes gwLiveDot {
    0%, 100% { opacity: 1;   box-shadow: 0 0 0 0 rgba(255,69,58,0.5); }
    50%      { opacity: 0.5; box-shadow: 0 0 0 4px rgba(255,69,58,0); }
}
.gw-part-badge {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
    padding: 3px 9px;
    border-radius: 20px;
}
.gw-part-badge b { color: #fff; font-weight: 800; }
.gw-num-pop { display: inline-block; animation: gwNumPop 0.45s var(--ease); }
@keyframes gwNumPop {
    30% { transform: scale(1.25); color: #FFD60A; }
}

/* Парящие эмодзи-призы в hero */
.gw-hero-float {
    position: absolute;
    z-index: 1;
    pointer-events: none;
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.45));
    animation: towerFloat 5s ease-in-out infinite;
}
.gw-hero-float--1 { top: 34px; right: 14px; }
.gw-hero-float--2 { top: 14px; right: 84px; opacity: 0.6; animation-duration: 6.5s; animation-delay: -2s; }
.gw-hero-float--3 { top: 84px; right: 74px; opacity: 0.45; animation-duration: 8s; animation-delay: -4s; filter: blur(0.8px); }
.gw-hero-float img { display: block; }

.gw-hero-title {
    position: relative; z-index: 2;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.02em;
    max-width: 70%;
    background: linear-gradient(100deg, #fff 30%, rgba(var(--gw-accent), 1) 55%, #fff 80%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
            background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gwTitleShimmer 3.5s ease-in-out infinite;
}
@keyframes gwTitleShimmer {
    0%, 100% { background-position: 0% 0; }
    50%      { background-position: 100% 0; }
}
.gw-hero-tag {
    position: relative; z-index: 2;
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 3px;
}

/* ── Каунтдаун-чипы ── */
.gw-cd {
    position: relative; z-index: 2;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 14px;
}
.gw-cd--big { justify-content: center; margin: 16px 0 4px; }
.gw-cd-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 46px;
    padding: 7px 6px 5px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--border);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}
.gw-cd--big .gw-cd-chip { min-width: 58px; padding: 10px 8px 7px; }
.gw-cd-chip b {
    font-size: 17px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
    line-height: 1;
}
.gw-cd--big .gw-cd-chip b { font-size: 22px; }
.gw-cd-chip i {
    font-style: normal;
    font-size: 9px;
    color: var(--text-faint);
    margin-top: 3px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.gw-cd-sec b { color: #FFD60A; }
.gw-cd-sep { color: var(--text-faint); font-weight: 700; margin: 0 1px; }
.gw-cd-done {
    font-size: 15px;
    font-weight: 800;
    color: #FFD60A;
}

.gw-hero-cta {
    position: relative; z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 14px;
    font-size: 13px;
    font-weight: 700;
    color: rgba(var(--gw-accent), 1);
}
.gw-hero-cta i { font-style: normal; transition: transform var(--dur) var(--ease); }
.gw-hero:hover .gw-hero-cta i { transform: translateX(4px); }

/* ── Карточка «Колесо башен» ── */
.gw-wheel-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    cursor: pointer;
    overflow: hidden;
    opacity: 0;
    animation: bentoIn 0.7s var(--ease) 0.18s forwards;
}
.gw-wheel-card:active { transform: scale(0.98); }
.gw-wheel-card-glow {
    position: absolute;
    top: -30px; left: -20px;
    width: 120px; height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(10, 132, 255, 0.25), transparent 70%);
    pointer-events: none;
}
.gw-wheel-card-body { flex: 1; }
.gw-wheel-card-body h4 { font-size: 15px; font-weight: 700; }
.gw-wheel-card-body p { font-size: 12px; color: var(--text-muted); margin-top: 1px; }
.gw-wheel-card-cta {
    font-size: 13px;
    font-weight: 700;
    color: var(--accent-2);
    white-space: nowrap;
}
.gw-wheel-mini {
    width: 64px; height: 64px;
    border-radius: 50%;
    flex-shrink: 0;
    border: 2px solid rgba(255, 214, 10, 0.5);
    box-shadow: 0 0 16px rgba(255, 214, 10, 0.18), inset 0 0 10px rgba(0, 0, 0, 0.4);
    background:
        conic-gradient(rgba(255,214,10,0.14) 0deg 90deg, rgba(10,132,255,0.14) 90deg 180deg,
                       rgba(255,214,10,0.14) 180deg 270deg, rgba(10,132,255,0.14) 270deg 360deg);
    position: relative;
    overflow: hidden;
}
.gw-wheel-mini-disc {
    position: absolute; inset: 0;
    animation: gwMiniSpin 14s linear infinite;
}
.gw-wheel-mini-disc img {
    position: absolute;
    top: 50%; left: 50%;
    width: 22px; height: 22px;
    margin: -11px 0 0 -11px;
    object-fit: contain;
}
@keyframes gwMiniSpin { to { transform: rotate(360deg); } }

/* ── Тизер следующего ── */
.gw-soon {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    opacity: 0;
    animation: bentoIn 0.7s var(--ease) 0.28s forwards;
}
.gw-soon-icon {
    width: 46px; height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    filter: grayscale(0.4);
}
.gw-soon h4 { font-size: 14px; font-weight: 700; }

.gw-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 36px 20px;
    text-align: center;
}

/* ── Страница розыгрыша ── */
.gw-view { padding-bottom: 20px; }
.gw-view-head {
    text-align: center;
    padding: 6px 0 2px;
    opacity: 0;
    animation: bentoIn 0.6s var(--ease) forwards;
}
.gw-view-gift {
    display: inline-block;
    filter: drop-shadow(0 14px 30px rgba(var(--gw-accent), 0.35));
    animation: gwGiftBounce 2.8s ease-in-out infinite;
}
@keyframes gwGiftBounce {
    0%, 100% { transform: translateY(0)    rotate(-3deg); }
    50%      { transform: translateY(-10px) rotate(3deg); }
}
.gw-view-head h1 {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-top: 6px;
}
.gw-section-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: var(--text-faint);
    margin: 20px 4px 10px;
}

/* Призы */
.gw-prize {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 14px;
    margin-bottom: 10px;
    position: relative;
    overflow: hidden;
    opacity: 0;
    animation: gwPrizeIn 0.55s var(--ease) forwards;
}
@keyframes gwPrizeIn {
    from { opacity: 0; transform: translateX(-22px); }
    to   { opacity: 1; transform: translateX(0); }
}
.gw-prize-emoji {
    flex-shrink: 0;
    width: 56px; height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
}
.gw-prize-info { flex: 1; min-width: 0; }
.gw-prize-info h4 { font-size: 15px; font-weight: 700; }
.gw-prize-info p { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.gw-prize-tag {
    display: inline-block;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #FFD60A;
    background: rgba(255, 214, 10, 0.12);
    border: 1px solid rgba(255, 214, 10, 0.4);
    padding: 2px 7px;
    border-radius: 14px;
    margin-bottom: 4px;
}
.gw-prize-num {
    font-size: 13px;
    font-weight: 800;
    color: var(--text-faint);
}
.gw-prize--big {
    background:
        radial-gradient(120% 150% at 90% 0%, rgba(255, 214, 10, 0.14), transparent 55%),
        rgba(var(--ios26-glass-background-rgb), 0.8) !important;
    border-color: rgba(255, 214, 10, 0.35) !important;
    box-shadow: 0 8px 28px rgba(255, 214, 10, 0.1);
}
.gw-prize--big .gw-prize-emoji {
    width: 64px; height: 64px;
    background: rgba(255, 214, 10, 0.1);
    border-color: rgba(255, 214, 10, 0.3);
}

/* Шаги участия */
.gw-steps { padding: 6px 16px; }
.gw-step {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 0;
}
.gw-step + .gw-step { border-top: 1px solid var(--border-dim); }
.gw-step-num {
    flex-shrink: 0;
    width: 26px; height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    box-shadow: 0 3px 10px var(--accent-glow);
}
.gw-step p { font-size: 13px; line-height: 1.45; }

/* ── Кнопка «Участвовать» ── */
.gw-join-wrap { margin-top: 22px; }
.gw-join-btn {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    width: 100%;
    padding: 16px 20px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    overflow: hidden;
    color: #1a1200;
    background: linear-gradient(135deg, #FFE566 0%, #FFD60A 45%, #FFB800 100%);
    box-shadow:
        0 10px 32px rgba(255, 214, 10, 0.35),
        0 2px 8px rgba(255, 214, 10, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.55);
    transition: transform 0.15s var(--ease), box-shadow 0.2s var(--ease);
    animation: gwJoinBreath 2.6s ease-in-out infinite;
    -webkit-user-select: none; user-select: none;
}
@keyframes gwJoinBreath {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.015); }
}
.gw-join-btn:active {
    animation: none;
    transform: scale(0.965);
    box-shadow: 0 4px 14px rgba(255, 214, 10, 0.3);
}
.gw-join-txt {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -0.01em;
    position: relative; z-index: 2;
}
.gw-join-sub {
    font-size: 11px;
    font-weight: 600;
    opacity: 0.65;
    position: relative; z-index: 2;
}
/* пробегающий блик */
.gw-join-shine {
    position: absolute;
    top: 0; bottom: 0;
    width: 46%;
    left: -60%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.55), transparent);
    transform: skewX(-18deg);
    animation: gwShine 3.2s var(--ease-in-out) infinite;
    z-index: 1;
}
@keyframes gwShine {
    0%, 55% { left: -60%; }
    85%, 100% { left: 130%; }
}
.gw-join-hint {
    text-align: center;
    font-size: 11px;
    color: var(--text-faint);
    margin-top: 10px;
}

/* Искры при тапе (когда ссылки ещё нет) */
.gw-spark {
    position: fixed;
    z-index: 3001;
    font-size: 14px;
    color: #FFD60A;
    pointer-events: none;
    animation: gwSparkFly 0.85s var(--ease) forwards;
    text-shadow: 0 0 8px rgba(255, 214, 10, 0.8);
}
@keyframes gwSparkFly {
    from { transform: translate(0, 0) scale(1); opacity: 1; }
    to   { transform: translate(var(--sx, 0), var(--sy, -80px)) scale(0.4) rotate(140deg); opacity: 0; }
}

/* ── ОВЕРЛЕЙ КОЛЕСА ── */
#gw-wheel-overlay {
    position: fixed; inset: 0;
    z-index: 2500;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s var(--ease);
}
#gw-wheel-overlay.shown { opacity: 1; }
.gw-wheel-backdrop {
    position: absolute; inset: 0;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}
.gw-wheel-stage {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    transform: scale(0.92) translateY(14px);
    transition: transform 0.35s var(--ease);
}
#gw-wheel-overlay.shown .gw-wheel-stage { transform: scale(1) translateY(0); }
.gw-wheel-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.02em;
}
.gw-wheel-sub { font-size: 13px; color: var(--text-muted); margin: 4px 0 20px; }

.gw-wheel-scene {
    position: relative;
    width: 290px; height: 290px;
}
.gw-wheel {
    position: absolute; inset: 0;
    border-radius: 50%;
    will-change: transform;
    box-shadow:
        0 0 0 6px rgba(255, 255, 255, 0.06),
        0 0 60px rgba(255, 214, 10, 0.18),
        0 30px 60px rgba(0, 0, 0, 0.6),
        inset 0 0 40px rgba(0, 0, 0, 0.5);
}
.gw-wheel-rim {
    position: absolute; inset: -7px;
    border-radius: 50%;
    border: 3px solid rgba(255, 214, 10, 0.55);
    box-shadow: 0 0 22px rgba(255, 214, 10, 0.3), inset 0 0 12px rgba(255, 214, 10, 0.2);
    pointer-events: none;
}
/* лампочки по ободу */
.gw-wheel-rim::before {
    content: '';
    position: absolute; inset: 4px;
    border-radius: 50%;
    background:
        repeating-conic-gradient(rgba(255, 255, 255, 0.65) 0deg 2deg, transparent 2deg 45deg);
    -webkit-mask-image: radial-gradient(circle, transparent 62%, #000 66%, #000 72%, transparent 76%);
            mask-image: radial-gradient(circle, transparent 62%, #000 66%, #000 72%, transparent 76%);
    animation: gwRimBlink 1.1s steps(2) infinite;
    pointer-events: none;
}
@keyframes gwRimBlink { 50% { opacity: 0.35; } }

.gw-wheel-tower {
    position: absolute;
    top: 50%; left: 50%;
    width: 52px; height: 52px;
    margin: -26px 0 0 -26px;
    object-fit: contain;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5));
    pointer-events: none;
}
.gw-wheel-pointer {
    position: absolute;
    top: -16px; left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    width: 0; height: 0;
    border-left: 13px solid transparent;
    border-right: 13px solid transparent;
    border-top: 24px solid #FFD60A;
    filter: drop-shadow(0 4px 8px rgba(255, 214, 10, 0.5));
}
.gw-wheel-hub {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    z-index: 6;
    width: 84px; height: 84px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: #1a1200;
    background: radial-gradient(circle at 34% 30%, #FFF3B0, #FFD60A 60%, #E6A800);
    box-shadow:
        0 6px 22px rgba(255, 214, 10, 0.45),
        0 0 0 5px rgba(0, 0, 0, 0.45),
        inset 0 -4px 10px rgba(0, 0, 0, 0.25),
        inset 0 2px 3px rgba(255, 255, 255, 0.7);
    transition: transform 0.15s var(--ease);
    animation: gwHubPulse 2s ease-in-out infinite;
}
@keyframes gwHubPulse {
    0%, 100% { box-shadow: 0 6px 22px rgba(255,214,10,0.45), 0 0 0 5px rgba(0,0,0,0.45), inset 0 -4px 10px rgba(0,0,0,0.25), inset 0 2px 3px rgba(255,255,255,0.7); }
    50%      { box-shadow: 0 6px 34px rgba(255,214,10,0.75), 0 0 0 5px rgba(0,0,0,0.45), inset 0 -4px 10px rgba(0,0,0,0.25), inset 0 2px 3px rgba(255,255,255,0.7); }
}
.gw-wheel-hub:active { transform: translate(-50%, -50%) scale(0.9); animation: none; }

.gw-wheel-close {
    margin-top: 26px;
    padding: 10px 26px;
    border-radius: 30px;
    border: 1px solid var(--border-light);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}
.gw-wheel-close:active { transform: scale(0.94); }

/* ── Попап победы ── */
.gw-win-pop {
    position: fixed;
    top: 50%; left: 50%;
    z-index: 2600;
    transform: translate(-50%, -50%) scale(0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 28px 40px 22px;
    border-radius: 28px;
    background: rgba(20, 20, 26, 0.88);
    backdrop-filter: blur(22px) saturate(300%);
    -webkit-backdrop-filter: blur(22px) saturate(300%);
    border: 1px solid rgba(255, 214, 10, 0.4);
    box-shadow: 0 0 70px rgba(255, 214, 10, 0.25), 0 30px 70px rgba(0, 0, 0, 0.6);
    opacity: 0;
    transition: opacity 0.3s var(--ease), transform 0.42s cubic-bezier(0.2, 1.4, 0.4, 1);
    cursor: pointer;
    overflow: hidden;
}
.gw-win-pop.shown { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.gw-win-pop img {
    width: 110px; height: 110px;
    object-fit: contain;
    position: relative; z-index: 2;
    filter: drop-shadow(0 10px 26px rgba(255, 214, 10, 0.35));
    animation: gwWinTower 2.4s ease-in-out infinite;
}
@keyframes gwWinTower {
    0%, 100% { transform: translateY(0)    scale(1); }
    50%      { transform: translateY(-7px) scale(1.04); }
}
.gw-win-pop h3 { font-size: 20px; font-weight: 800; position: relative; z-index: 2; }
.gw-win-pop p { font-size: 12px; color: var(--text-muted); position: relative; z-index: 2; }
.gw-win-rays {
    position: absolute;
    top: 50%; left: 50%;
    width: 340px; height: 340px;
    margin: -170px 0 0 -170px;
    background: repeating-conic-gradient(rgba(255, 214, 10, 0.12) 0deg 14deg, transparent 14deg 28deg);
    border-radius: 50%;
    animation: gwRays 14s linear infinite;
    pointer-events: none;
}
@keyframes gwRays { to { transform: rotate(360deg); } }

/* ═══════════ РОЗЫГРЫШИ 2.0: призы на hero, условия, билеты ═══════════ */

/* Призы-пилюли на hero-карточке (видно ДО клика) */
.gw-hero-prizes {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin: 10px 0 12px;
    position: relative;
    z-index: 2;
}
.gw-hp {
    font-size: 11.5px;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-primary, #fff);
    white-space: nowrap;
}
.gw-hp--main {
    background: rgba(var(--gw-accent, 255, 214, 10), 0.16);
    border-color: rgba(var(--gw-accent, 255, 214, 10), 0.55);
    box-shadow: 0 0 14px rgba(var(--gw-accent, 255, 214, 10), 0.25);
}

/* Кнопка «Участвовать» под таймером */
.gw-join-wrap--top { margin: 14px 0 6px; }
.gw-join-btn--done {
    background: rgba(48, 209, 88, 0.16) !important;
    border: 1px solid rgba(48, 209, 88, 0.5) !important;
    box-shadow: 0 0 18px rgba(48, 209, 88, 0.18) !important;
    animation: none !important;
    cursor: default;
}
.gw-join-btn--done .gw-join-txt { color: #30d158; }

/* Плашка билетов */
.gw-tickets-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    margin: 10px 0 4px;
}
.gw-tickets-ico { font-size: 28px; }
.gw-tickets-info { flex: 1; min-width: 0; }
.gw-tickets-info b { font-size: 15px; font-weight: 800; }
.gw-tickets-info p { font-size: 11.5px; color: var(--text-muted); margin-top: 2px; }
.gw-tickets-boost {
    font-size: 12.5px;
    font-weight: 800;
    color: rgb(var(--gw-accent, 255, 214, 10));
    white-space: nowrap;
    padding: 8px 6px;
    cursor: pointer;
}

/* Карточка «Условия» */
.gw-cond-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border: 1px solid rgba(var(--gw-accent, 255, 214, 10), 0.35);
    box-shadow: 0 0 18px rgba(var(--gw-accent, 255, 214, 10), 0.1);
    animation: gwCardIn 0.5s var(--ease) both;
}
.gw-cond-ico {
    font-size: 30px;
    width: 48px; height: 48px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(var(--gw-accent, 255, 214, 10), 0.12);
    border-radius: 14px;
    flex-shrink: 0;
}
.gw-cond-info { flex: 1; min-width: 0; }
.gw-cond-info h4 { font-size: 14.5px; font-weight: 800; }
.gw-cond-info p { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.gw-cond-btn {
    border: none;
    border-radius: 14px;
    padding: 10px 16px;
    font-size: 13.5px;
    font-weight: 800;
    color: #000;
    background: linear-gradient(135deg, rgb(var(--gw-accent, 255, 214, 10)), #ffb340);
    box-shadow: 0 4px 14px rgba(var(--gw-accent, 255, 214, 10), 0.35);
    cursor: pointer;
    flex-shrink: 0;
}
.gw-cond-btn:active { transform: scale(0.95); }
.gw-cond-shake { animation: gwCondShake 0.55s var(--ease); }

/* Аватарка ресурса условий */
.gw-cond-card {
    cursor: pointer;
    transition: transform 0.18s var(--ease), border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.gw-cond-card:hover {
    border-color: rgba(var(--gw-accent, 255, 170, 0), 0.55) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), 0 0 16px rgba(var(--gw-accent, 255, 170, 0), 0.12) !important;
}
.gw-cond-card:active {
    transform: scale(0.985);
}
.gw-cond-avatar-box {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
}
.gw-cond-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 5 отдельных призов на превью hero карточки */
.gw-hero-prizes-five {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 12px 0 14px;
    width: 100%;
}
.gw-hero-prize-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    backdrop-filter: blur(8px);
}
.gw-hero-prize-badge {
    font-size: 11px;
    font-weight: 800;
    color: rgb(var(--gw-accent, 255, 170, 0));
    background: rgba(var(--gw-accent, 255, 170, 0), 0.12);
    padding: 2px 6px;
    border-radius: 6px;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}
.gw-hero-prize-icon {
    font-size: 14px;
    line-height: 1;
    flex-shrink: 0;
}
.gw-hero-prize-title {
    font-size: 13px;
    font-weight: 650;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
@keyframes gwCondShake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-8px); }
    40% { transform: translateX(8px); }
    60% { transform: translateX(-5px); }
    80% { transform: translateX(5px); }
}
@keyframes gwCardIn {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Карточки «Умножить шансы» и «Кейсы» на вкладке */
.gw-boost-card, .gw-case-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    margin-top: 12px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}
.gw-boost-card { border: 1px solid rgba(255, 214, 10, 0.3); }
.gw-boost-card-glow {
    position: absolute;
    top: -40%; right: -20%;
    width: 160px; height: 160px;
    background: radial-gradient(circle, rgba(255, 214, 10, 0.18), transparent 70%);
    pointer-events: none;
}
.gw-boost-card-icon, .gw-case-card-icon {
    width: 52px; height: 52px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
    font-size: 32px;
}
.gw-boost-card-body, .gw-case-card-body { flex: 1; min-width: 0; }
.gw-boost-card-body h4, .gw-case-card-body h4 { font-size: 15px; font-weight: 800; }
.gw-boost-card-body p, .gw-case-card-body p { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.gw-boost-card-cta {
    font-size: 13px;
    font-weight: 800;
    color: #ffd60a;
    white-space: nowrap;
}
.gw-case-keys-badge {
    font-size: 13px;
    font-weight: 800;
    padding: 7px 12px;
    border-radius: 18px;
    background: rgba(255, 214, 10, 0.12);
    border: 1px solid rgba(255, 214, 10, 0.35);
    white-space: nowrap;
}

/* ═══════════ СТРАНИЦА «УМНОЖИТЬ ШАНСЫ» ═══════════ */
.boost-view { padding: 4px 0 24px; }
.boost-hero { text-align: center; padding: 18px 12px 8px; }
.boost-hero-key { display: inline-block; animation: gwFloat1 5s ease-in-out infinite; }
.boost-hero h1 { font-size: 24px; font-weight: 900; margin-top: 8px; }
.boost-hero p { font-size: 13.5px; margin-top: 8px; line-height: 1.5; }
.boost-steps { padding: 6px 16px; margin-top: 14px; }
.boost-step {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.boost-step:last-child { border-bottom: none; }
.boost-step-num {
    width: 30px; height: 30px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: rgba(255, 214, 10, 0.14);
    color: #ffd60a;
    font-weight: 900;
    font-size: 14px;
    flex-shrink: 0;
}
.boost-step p { font-size: 13.5px; }
.boost-link-box {
    margin-top: 14px;
    padding: 14px;
    text-align: center;
    border: 1px dashed rgba(255, 214, 10, 0.45);
}
.boost-link-label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; }
.boost-link-url {
    font-size: 12.5px;
    font-family: monospace;
    color: #ffd60a;
    margin: 8px 0 12px;
    word-break: break-all;
    cursor: pointer;
}
.boost-copy-btn {
    width: 100%;
    border: none;
    border-radius: 15px;
    padding: 14px;
    font-size: 15px;
    font-weight: 800;
    color: #000;
    background: linear-gradient(135deg, #ffd60a, #ffb340);
    box-shadow: 0 6px 20px rgba(255, 214, 10, 0.3);
    cursor: pointer;
}
.boost-copy-btn:active { transform: scale(0.97); }
.boost-keys-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 16px;
    margin-top: 12px;
    font-size: 14px;
}
.boost-keys-row b { font-size: 16px; font-weight: 900; }
.boost-case-btn {
    width: 100%;
    margin-top: 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 15px;
    padding: 14px;
    font-size: 15px;
    font-weight: 800;
    color: var(--text-primary, #fff);
    background: rgba(255, 255, 255, 0.06);
    cursor: pointer;
}
.boost-case-btn:active { transform: scale(0.97); }
.boost-footnote {
    text-align: center;
    font-size: 11.5px;
    color: var(--text-muted);
    margin-top: 14px;
    padding: 0 16px;
}

/* ═══════════ СТРАНИЦА КЕЙСОВ (3D + лента) ═══════════ */
.case-view { padding: 4px 0 24px; }
.case-head { text-align: center; padding: 10px 12px 0; }
.case-head h1 { font-size: 23px; font-weight: 900; }
.case-head p { font-size: 13px; margin-top: 4px; }
.case-keys-row { text-align: center; margin-top: 10px; }
.case-keys-chip {
    display: inline-block;
    font-size: 13px;
    font-weight: 800;
    padding: 8px 16px;
    border-radius: 20px;
    background: rgba(255, 214, 10, 0.12);
    border: 1px solid rgba(255, 214, 10, 0.35);
}
.case-3d-host {
    height: 270px;
    margin-top: 6px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.case-3d-host canvas { display: block; }
.case-3d-fallback {
    font-size: 110px;
    filter: drop-shadow(0 12px 26px rgba(255, 214, 10, 0.25));
    animation: gwFloat1 5s ease-in-out infinite;
}

/* Лента наград (CS:GO-стиль) */
.case-reel-wrap {
    position: relative;
    overflow: hidden;
    margin: 8px 0;
    padding: 14px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.case-reel-wrap.hidden { display: none; }
.case-pointer {
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 0; height: 0;
    border-left: 9px solid transparent;
    border-right: 9px solid transparent;
    border-top: 12px solid #ffd60a;
    filter: drop-shadow(0 2px 6px rgba(255, 214, 10, 0.6));
    z-index: 3;
}
.case-pointer::after {
    content: '';
    position: absolute;
    top: -12px; left: -1px;
    width: 2px; height: 96px;
    background: linear-gradient(180deg, rgba(255, 214, 10, 0.55), transparent);
}
.case-reel {
    display: flex;
    gap: 8px;
    will-change: transform;
}
.case-item {
    width: 84px;
    height: 96px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.case-item-emoji { font-size: 26px; }
.case-item b { font-size: 18px; font-weight: 900; }
.case-item i { font-size: 10px; font-style: normal; color: var(--text-muted); }
.case-item--uncommon { border-color: rgba(10, 132, 255, 0.45); background: rgba(10, 132, 255, 0.08); }
.case-item--rare     { border-color: rgba(191, 90, 242, 0.5);  background: rgba(191, 90, 242, 0.09); }
.case-item--epic     { border-color: rgba(255, 55, 95, 0.5);   background: rgba(255, 55, 95, 0.09); }
.case-item--legend   { border-color: rgba(255, 214, 10, 0.65); background: rgba(255, 214, 10, 0.1); box-shadow: 0 0 14px rgba(255, 214, 10, 0.25); }

/* Кнопка открытия */
.case-open-btn {
    display: block;
    width: calc(100% - 8px);
    margin: 10px auto 0;
    position: relative;
    overflow: hidden;
    border: none;
    border-radius: 17px;
    padding: 17px;
    font-size: 16.5px;
    font-weight: 900;
    color: #000;
    background: linear-gradient(135deg, #ffd60a, #ffb340);
    box-shadow: 0 8px 26px rgba(255, 214, 10, 0.35);
    cursor: pointer;
}
.case-open-btn:active { transform: scale(0.97); }
.case-open-btn:disabled { opacity: 0.55; }
.case-hint {
    text-align: center;
    font-size: 11.5px;
    color: var(--text-muted);
    margin-top: 10px;
}

/* Попап результата */
.case-result-pop {
    position: fixed;
    inset: 0;
    z-index: 2600;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.3s var(--ease);
}
.case-result-pop.shown { opacity: 1; }
.case-result-inner {
    text-align: center;
    padding: 28px 34px;
    border: 1px solid rgba(255, 214, 10, 0.4);
    box-shadow: 0 0 44px rgba(255, 214, 10, 0.25);
    transform: scale(0.85);
    transition: transform 0.3s var(--ease);
    max-width: 300px;
}
.case-result-pop.shown .case-result-inner { transform: scale(1); }
.case-result-emoji { font-size: 52px; display: block; }
.case-result-inner h2 { font-size: 42px; font-weight: 900; color: #ffd60a; margin-top: 4px; }
.case-result-inner p { font-size: 14px; color: var(--text-muted); }
.case-result-total {
    display: inline-block;
    margin-top: 12px;
    font-size: 13px;
    font-weight: 700;
    padding: 7px 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.07);
}
.case-result-close {
    display: block;
    width: 100%;
    margin-top: 16px;
    border: none;
    border-radius: 14px;
    padding: 13px;
    font-size: 15px;
    font-weight: 800;
    color: #000;
    background: linear-gradient(135deg, #ffd60a, #ffb340);
    cursor: pointer;
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
    .gw-hero-border, .gw-hero-title, .gw-join-shine, .gw-join-btn,
    .gw-wheel-mini-disc, .gw-wheel-rim::before, .gw-wheel-hub,
    .gw-win-rays, .gw-win-pop img, .gw-view-gift, .gw-hero-float,
    .boost-hero-key, .case-3d-fallback,
    .tab-gw-badge { animation: none !important; }
}
/* ============================================================================
 * styles.css вЂ” СЃС‚Р°С‚РёС‡РµСЃРєРёРµ СЃС‚РёР»Рё РєРѕРјРїРѕРЅРµРЅС‚Р° Рё РґРµРјРѕ-СЃС‚СЂР°РЅРёС†С‹.
 * РЎР°РјРѕ 3D СЂРµРЅРґРµСЂРёС‚СЃСЏ РІ WebGL-РєР°РЅРІР°СЃРµ; CSS РѕС‚РІРµС‡Р°РµС‚ С‚РѕР»СЊРєРѕ Р·Р° РѕР±СЂР°РјР»РµРЅРёРµ:
 * С„РѕРЅ, РІРёРЅСЊРµС‚РєСѓ, С‚РёРїРѕРіСЂР°С„РёРєСѓ Рё РєРЅРѕРїРєСѓ Replay.
 * ==========================================================================*/

/* --------------------------- Р”РµРјРѕ-СЃС‚СЂР°РЅРёС†Р° ------------------------------ */
html,
body {
	height: 100%;
	margin: 0;
}

body.cu3d-demo {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 28px;
	background:
		radial-gradient(120% 90% at 50% 30%, #171a21 0%, #0c0e13 55%, #07080c 100%);
	font-family: "SF Pro Display", "Segoe UI", system-ui, sans-serif;
	overflow: hidden;
}

.cu3d-eyebrow {
	color: #6d7480;
	font-size: 12px;
	letter-spacing: 0.34em;
	text-transform: uppercase;
	user-select: none;
}

/* ----------------------- РљРѕРЅС‚РµР№РЅРµСЂ РєРѕРјРїРѕРЅРµРЅС‚Р° -------------------------- *
 * Р Р°Р·РјРµСЂ Р·Р°РґР°С‘С‚ Р’РќР•РЁРќРР™ РєРѕРґ (Р»СЋР±РѕР№): РєРѕРјРїРѕРЅРµРЅС‚ РїРѕРґСЃС‚СЂР°РёРІР°РµС‚СЃСЏ РїРѕРґ РєРѕРЅС‚РµР№РЅРµСЂ
 * С‡РµСЂРµР· ResizeObserver Рё devicePixelRatio (Retina/high-DPI Р±РµР· РјС‹Р»Р°).       */
.cu3d-host {
	position: relative;
	width: min(82vw, 82vh, 640px);
	aspect-ratio: 1 / 1;
}

/* РљР°РЅРІР°СЃ СЃРѕР·РґР°С‘С‚СЃСЏ РєРѕРјРїРѕРЅРµРЅС‚РѕРј Рё СЂР°СЃС‚СЏРіРёРІР°РµС‚СЃСЏ РЅР° РІРµСЃСЊ РєРѕРЅС‚РµР№РЅРµСЂ. */
.cu3d-canvas {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	display: block;
	border-radius: 18px;
}

/* РњСЏРіРєР°СЏ РІРёРЅСЊРµС‚РєР° РїРѕРІРµСЂС… РєР°РЅРІР°СЃР° вЂ” РєРёРЅРµРјР°С‚РѕРіСЂР°С„РёС‡РЅРѕСЃС‚СЊ РєР°РґСЂР°.
 * pointer-events: none вЂ” РЅРµ РјРµС€Р°РµС‚ РІР·Р°РёРјРѕРґРµР№СЃС‚РІРёСЋ СЃРѕ СЃС‚СЂР°РЅРёС†РµР№.        */
.cu3d-vignette {
	position: absolute;
	inset: 0;
	border-radius: 18px;
	pointer-events: none;
	background:
		radial-gradient(115% 115% at 50% 42%, transparent 58%, rgba(4, 5, 8, 0.55) 100%);
}

/* ------------------------------ Replay ---------------------------------- */
.cu3d-replay {
	opacity: 0;
	transform: translateY(6px);
	transition: opacity 0.5s ease, transform 0.5s ease;
	pointer-events: none;
	background: rgba(247, 201, 109, 0.08);
	color: #e9c987;
	border: 1px solid rgba(247, 201, 109, 0.35);
	border-radius: 999px;
	padding: 10px 26px;
	font-size: 13px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	cursor: pointer;
}

.cu3d-replay.is-visible {
	opacity: 1;
	transform: translateY(0);
	pointer-events: auto;
}

.cu3d-replay:hover {
	background: rgba(247, 201, 109, 0.16);
}
/* ============================================================================
 * animation.css вЂ” CSS-Р°РЅРёРјР°С†РёРё РѕР±СЂР°РјР»РµРЅРёСЏ (РЅРµ 3D-СЃС†РµРЅС‹).
 * Р’СЃСЏ 3D-Р°РЅРёРјР°С†РёСЏ СЃС‡РёС‚Р°РµС‚СЃСЏ РІ script.js Рё СЂРµРЅРґРµСЂРёС‚СЃСЏ РІ WebGL;
 * Р·РґРµСЃСЊ вЂ” С‚РѕР»СЊРєРѕ РґРµРєРѕСЂР°С‚РёРІРЅС‹Рµ РјРµР»РѕС‡Рё Рё prefers-reduced-motion.
 * ==========================================================================*/

/* РњСЏРіРєРѕРµ РјРµСЂС†Р°РЅРёРµ Р·Р°РіРѕР»РѕРІРєР° вЂ” РµРґРІР° Р·Р°РјРµС‚РЅР°СЏ В«Р¶РёР·РЅСЊВ» СЃС‚СЂР°РЅРёС†С‹. */
@keyframes cu3d-eyebrow-breathe {
	0%,
	100% {
		opacity: 0.75;
	}
	50% {
		opacity: 1;
	}
}

.cu3d-eyebrow {
	animation: cu3d-eyebrow-breathe 4.8s ease-in-out infinite;
}

/* РџРѕСЏРІР»РµРЅРёРµ С…РѕСЃС‚Р° РїСЂРё Р·Р°РіСЂСѓР·РєРµ. */
@keyframes cu3d-host-in {
	from {
		opacity: 0;
		transform: scale(0.985);
	}
	to {
		opacity: 1;
		transform: scale(1);
	}
}

.cu3d-host {
	animation: cu3d-host-in 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* ------------------------ prefers-reduced-motion ------------------------- *
 * Р”РµРєРѕСЂР°С‚РёРІРЅС‹Рµ CSS-С†РёРєР»С‹ РіР°СЃРЅСѓС‚; СѓРїСЂРѕС‰С‘РЅРЅС‹Р№ 3D-СЂРµР¶РёРј РІРєР»СЋС‡Р°РµС‚
 * СЃР°Рј РєРѕРјРїРѕРЅРµРЅС‚ (СЃРј. script.js: _reducedTimeline).                          */
@media (prefers-reduced-motion: reduce) {
	.cu3d-eyebrow,
	.cu3d-host {
		animation: none;
	}

	.cu3d-replay {
		transition: none;
	}
}


/* ========================================================================== 
   PRIZES — PREMIUM VISUAL SYSTEM 2026
   Clear hierarchy: main prize → every supporting prize → CTA → conditions.
   ========================================================================== */

#page-tab-giveaways,
#page-giveaway-view,
#page-gw-boost,
#page-case-open {
    --gw-space-1: 4px;
    --gw-space-2: 8px;
    --gw-space-3: 12px;
    --gw-space-4: 16px;
    --gw-space-5: 24px;
    --gw-radius-control: 12px;
    --gw-radius-card: 16px;
    --gw-radius-hero: 20px;
    --gw-surface: rgba(27, 28, 33, 0.86);
    --gw-surface-raised: rgba(35, 36, 42, 0.94);
    --gw-border: rgba(255, 255, 255, 0.10);
    --gw-border-strong: rgba(255, 255, 255, 0.16);
    --gw-muted: rgba(255, 255, 255, 0.66);
    --gw-faint: rgba(255, 255, 255, 0.50);
    --gw-shadow: 0 1px 2px rgba(0, 0, 0, 0.24), 0 8px 24px rgba(0, 0, 0, 0.20);
}

#page-tab-giveaways .glass-card,
#page-giveaway-view .glass-card,
#page-gw-boost .glass-card,
#page-case-open .glass-card {
    border: 1px solid var(--gw-border);
    background: var(--gw-surface);
    box-shadow: var(--gw-shadow);
    backdrop-filter: blur(16px) saturate(130%);
    -webkit-backdrop-filter: blur(16px) saturate(130%);
}

/* Header: quieter than the content. */
.tab-header.tab-header--gw {
    width: calc(100% - 32px);
    margin-top: 12px !important;
    padding: 14px 16px !important;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(255, 214, 10, 0.07), rgba(30, 31, 35, 0.86));
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
}

.tab-header.tab-header--gw .tab-avatar-btn {
    width: 40px;
    height: 40px;
    padding: 0;
    border-width: 1px;
    box-shadow: none;
    color: #fff;
    font-size: 22px;
}

.gw-scroll {
    gap: var(--gw-space-3);
}

/* Reliable emoji/image fallback. */
.gw-emoji-wrap {
    position: relative;
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    vertical-align: middle;
}

.gw-emoji-wrap > * {
    grid-area: 1 / 1;
}

.gw-emoji-wrap img {
    position: relative;
    z-index: 1;
    display: block;
    object-fit: contain;
}

.gw-emoji-fallback {
    display: inline-grid;
    place-items: center;
    line-height: 1;
}

/* Hero: static premium border instead of casino-like spinning conic gradient. */
.gw-hero {
    border-radius: var(--gw-radius-hero);
    padding: 1px;
    outline: none;
    transition: transform 180ms var(--ease), filter 180ms var(--ease), box-shadow 180ms var(--ease);
}

.gw-hero-border {
    background: linear-gradient(135deg, rgba(var(--gw-accent), 0.78), rgba(255, 255, 255, 0.22) 42%, rgba(var(--gw-accent), 0.30));
    filter: none;
    animation: none;
}

.gw-hero-inner {
    padding: 18px;
    border-radius: calc(var(--gw-radius-hero) - 1px);
    background: radial-gradient(100% 80% at 100% 0%, rgba(var(--gw-accent), 0.12), transparent 62%), var(--gw-surface-raised) !important;
}

.gw-live-row {
    margin-bottom: 14px;
}

.gw-live-badge {
    min-height: 22px;
    padding: 4px 8px;
    font-size: 10px;
    line-height: 1;
}

.gw-part-badge {
    min-height: 22px;
    padding: 4px 9px;
    font-size: 11px;
    line-height: 1.15;
}

.gw-hero-float {
    animation: none;
    opacity: 0.72;
}

.gw-hero-float--1 {
    top: 42px;
    right: 16px;
}

.gw-hero-float--2,
.gw-hero-float--3 {
    display: none;
}

.gw-hero-title {
    max-width: calc(100% - 76px);
    min-height: 54px;
    padding-right: 4px;
    background: none;
    color: #fff;
    -webkit-text-fill-color: currentColor;
    font-size: clamp(22px, 6.4vw, 26px);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.025em;
    overflow-wrap: anywhere;
    animation: none;
}

.gw-hero-tag {
    margin-top: 5px;
    color: var(--gw-muted);
    font-size: 13px;
    line-height: 1.35;
}

/* Main prize gets a distinct level; all other prizes remain visible. */
.gw-hero-prizes {
    display: block;
    margin: 16px 0 14px;
}

.gw-main-prize {
    padding: 14px;
    border: 1px solid rgba(var(--gw-accent), 0.42);
    border-radius: var(--gw-radius-card);
    background: linear-gradient(135deg, rgba(var(--gw-accent), 0.16), rgba(var(--gw-accent), 0.05));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10);
}

.gw-main-prize-kicker {
    display: block;
    margin-bottom: 8px;
    color: rgb(var(--gw-accent));
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.10em;
    text-transform: uppercase;
}

.gw-main-prize-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.gw-main-prize-icon {
    font-size: 30px;
    line-height: 1;
}

.gw-main-prize-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 3px;
}

.gw-main-prize-copy strong {
    overflow-wrap: anywhere;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.015em;
}

.gw-main-prize-copy small {
    color: var(--gw-muted);
    font-size: 13px;
    line-height: 1.35;
}

.gw-other-prizes {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    margin-top: 8px;
}

.gw-hp {
    display: grid;
    place-items: center;
    min-width: 0;
    min-height: 38px;
    padding: 6px 5px;
    border-radius: 10px;
    border-color: rgba(255, 255, 255, 0.09);
    background: rgba(255, 255, 255, 0.055);
    color: rgba(255, 255, 255, 0.88);
    font-size: 10.5px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;
}

.gw-other-prizes .gw-hp:nth-child(1) { border-color: rgba(94, 159, 232, 0.28); background: rgba(94, 159, 232, 0.08); }
.gw-other-prizes .gw-hp:nth-child(2) { border-color: rgba(191, 142, 218, 0.28); background: rgba(191, 142, 218, 0.08); }
.gw-other-prizes .gw-hp:nth-child(3) { border-color: rgba(79, 185, 201, 0.28); background: rgba(79, 185, 201, 0.08); }

/* Countdown is one calm row, not a fragmented slot-machine. */
.gw-cd,
.gw-cd--big {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    width: 100%;
    margin: 14px 0 4px;
}

.gw-cd-sep {
    display: none;
}

.gw-cd-chip,
.gw-cd--big .gw-cd-chip {
    min-width: 0;
    padding: 8px 4px 7px;
    border-radius: var(--gw-radius-control);
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.20);
    box-shadow: none;
}

.gw-cd-chip b,
.gw-cd--big .gw-cd-chip b,
.gw-cd-sec b {
    color: rgba(255, 255, 255, 0.94);
    font-size: 17px;
    line-height: 1;
}

.gw-cd-chip i {
    margin-top: 4px;
    color: var(--gw-faint);
    font-size: 10px;
    line-height: 1.1;
}

/* Root CTA: unmistakable and full-width. */
.gw-hero-cta {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 48px;
    margin-top: 14px;
    padding: 0 16px;
    border-radius: 14px;
    color: #171300;
    background: rgb(var(--gw-accent));
    box-shadow: 0 6px 18px rgba(var(--gw-accent), 0.20), inset 0 1px 0 rgba(255, 255, 255, 0.42);
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    transition: transform 180ms var(--ease), box-shadow 180ms var(--ease), filter 180ms var(--ease);
}

.gw-hero-cta i {
    font-size: 22px;
    font-style: normal;
    line-height: 1;
    transition: transform 180ms var(--ease);
}

/* Secondary root cards: aligned, readable and individually inviting. */
.gw-boost-card,
.gw-case-card,
.gw-wheel-card,
.gw-soon {
    min-height: 82px;
    gap: 12px;
    padding: 14px;
    border-radius: var(--gw-radius-card);
    outline: none;
}

.gw-boost-card,
.gw-case-card,
.gw-wheel-card {
    transition: transform 180ms var(--ease), border-color 180ms var(--ease), background-color 180ms var(--ease), box-shadow 180ms var(--ease);
}

.gw-boost-card-icon,
.gw-case-card-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--gw-radius-control);
}

.gw-boost-card-body h4,
.gw-case-card-body h4,
.gw-wheel-card-body h4,
.gw-soon h4 {
    overflow-wrap: anywhere;
    font-size: 15px;
    font-weight: 750;
    line-height: 1.25;
}

.gw-boost-card-body p,
.gw-case-card-body p,
.gw-wheel-card-body p,
.gw-soon p {
    margin-top: 3px;
    color: var(--gw-muted);
    font-size: 12px;
    line-height: 1.4;
}

.gw-boost-card-cta,
.gw-wheel-card-cta {
    font-size: 12.5px;
}

/* Detail screen: compact value-first header. */
#page-giveaway-view .nav-header {
    min-height: 50px;
    padding: 10px 16px;
    border-radius: 0 0 18px 18px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.16);
}

.gw-view {
    padding-bottom: 24px;
}

.gw-view-head {
    padding: 2px 0 0;
}

.gw-view-gift {
    transform: scale(0.62);
    height: 56px;
    margin-top: -10px;
    animation: none;
}

.gw-view-head h1 {
    margin-top: 2px;
    font-size: 24px;
    line-height: 1.15;
}

.gw-view-head > .text-muted {
    margin-top: 4px;
    color: var(--gw-muted);
    font-size: 13px;
}

.gw-live-row--center {
    margin-top: 8px;
}

.gw-section-label {
    margin: 20px 2px 10px;
    color: var(--gw-faint);
    font-size: 11px;
    line-height: 1.2;
}

.gw-section-label--prizes {
    margin-top: 16px;
}

/* Every prize is visible: one hero prize plus three compact supporting prizes. */
.gw-prizes-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.gw-prize {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 124px;
    margin: 0;
    padding: 10px;
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
    border-radius: var(--gw-radius-card);
    opacity: 1;
    animation: none;
}

.gw-prize--big {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr) 28px;
    align-items: center;
    min-height: 92px;
    padding: 13px 14px;
    gap: 14px;
    border-color: rgba(var(--gw-accent), 0.42) !important;
    background: radial-gradient(100% 130% at 100% 0%, rgba(var(--gw-accent), 0.14), transparent 58%), var(--gw-surface-raised) !important;
    box-shadow: 0 8px 24px rgba(var(--gw-accent), 0.10) !important;
}

.gw-prize-emoji,
.gw-prize--big .gw-prize-emoji {
    width: 44px;
    height: 44px;
    border-radius: var(--gw-radius-control);
}

.gw-prize--big .gw-prize-emoji {
    width: 58px;
    height: 58px;
}

.gw-prize:not(.gw-prize--big) .gw-prize-info {
    width: 100%;
}

.gw-prize-info h4 {
    overflow-wrap: anywhere;
    font-size: 13px;
    font-weight: 750;
    line-height: 1.22;
    letter-spacing: -0.01em;
}

.gw-prize--big .gw-prize-info h4 {
    font-size: 17px;
}

.gw-prize-info p {
    display: -webkit-box;
    overflow: hidden;
    margin-top: 4px;
    color: var(--gw-muted);
    font-size: 11px;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.gw-prize--big .gw-prize-info p {
    font-size: 13px;
    -webkit-line-clamp: 2;
}

.gw-prize-tag {
    margin-bottom: 5px;
    padding: 3px 7px;
    border-radius: 999px;
    font-size: 9px;
    line-height: 1;
}

.gw-prize-num {
    position: absolute;
    top: 10px;
    right: 10px;
    color: rgba(255, 255, 255, 0.44);
    font-size: 11px;
    font-variant-numeric: tabular-nums;
}

.gw-prize--big .gw-prize-num {
    position: static;
    justify-self: end;
    align-self: center;
    font-size: 12px;
}

.gw-prizes-grid .gw-prize:nth-child(2) { border-color: rgba(94, 159, 232, 0.30); background: rgba(94, 159, 232, 0.07); }
.gw-prizes-grid .gw-prize:nth-child(3) { border-color: rgba(191, 142, 218, 0.30); background: rgba(191, 142, 218, 0.07); }
.gw-prizes-grid .gw-prize:nth-child(4) { border-color: rgba(79, 185, 201, 0.30); background: rgba(79, 185, 201, 0.07); }

/* Main join action: strong but controlled. */
.gw-join-wrap,
.gw-join-wrap--top {
    margin: 16px 0 6px;
}

.gw-join-btn {
    min-height: 60px;
    padding: 12px 20px;
    border-radius: 16px;
    animation: none;
    box-shadow: 0 8px 24px rgba(255, 214, 10, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.52);
}

.gw-join-shine {
    display: none;
}

.gw-join-txt {
    font-size: 16px;
}

.gw-join-sub,
.gw-join-hint {
    color: rgba(25, 18, 0, 0.68);
    font-size: 12px;
    line-height: 1.35;
}

.gw-join-hint {
    color: var(--gw-muted);
}

.gw-join-btn:disabled {
    cursor: wait;
    filter: saturate(0.65);
    opacity: 0.72;
    animation: none;
    box-shadow: 0 4px 14px rgba(255, 214, 10, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.28);
    transform: none;
}

/* Tickets and conditions: secondary, not competing with the join CTA. */
.gw-tickets-badge {
    min-height: 68px;
    padding: 12px 14px;
    margin: 10px 0 4px;
    border-radius: var(--gw-radius-card);
    font-variant-numeric: tabular-nums;
}

.gw-tickets-info b {
    font-size: 14px;
}

.gw-tickets-info p {
    color: var(--gw-muted);
    font-size: 12px;
    line-height: 1.35;
}

.gw-tickets-boost {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding: 0 4px 0 10px;
}

.gw-cond-card {
    min-height: 76px;
    padding: 12px;
    border-radius: var(--gw-radius-card);
    border-color: var(--gw-border) !important;
    box-shadow: var(--gw-shadow) !important;
    animation: none;
}

.gw-cond-ico {
    width: 44px;
    height: 44px;
    border-radius: var(--gw-radius-control);
    font-size: 25px;
}

.gw-cond-info h4 {
    overflow-wrap: anywhere;
    font-size: 14px;
    font-weight: 750;
    line-height: 1.25;
}

.gw-cond-info p {
    overflow-wrap: anywhere;
    color: var(--gw-muted);
    font-size: 12px;
    line-height: 1.35;
}

.gw-cond-btn {
    flex: 0 0 auto;
    min-height: 42px;
    max-width: 112px;
    padding: 0 13px;
    border: 1px solid rgba(var(--gw-accent), 0.42);
    border-radius: var(--gw-radius-control);
    color: rgb(var(--gw-accent));
    background: rgba(var(--gw-accent), 0.08);
    box-shadow: none;
    font-size: 12.5px;
    font-weight: 750;
    line-height: 1.15;
    white-space: normal;
    cursor: pointer;
    transition: background-color 180ms var(--ease), border-color 180ms var(--ease), transform 120ms var(--ease);
}

.gw-cond-btn:active {
    transform: scale(0.98);
}

/* Empty and extreme states. */
.gw-prize-info,
.gw-cond-info,
.gw-boost-card-body,
.gw-case-card-body,
.gw-wheel-card-body {
    min-width: 0;
}

.gw-empty {
    min-height: 220px;
    justify-content: center;
    padding: 32px 24px;
}

.gw-empty h3 {
    font-size: 18px;
    line-height: 1.25;
}

.gw-prize-emoji:empty::before,
.gw-soon-icon:empty::before {
    content: "🎁";
    font-size: 28px;
    opacity: 0.72;
}

.gw-case-keys-badge,
.gw-tickets-badge {
    font-variant-numeric: tabular-nums;
}

/* Hover/focus feedback only where it is meaningful. */
.gw-hero:focus-visible,
.gw-boost-card:focus-visible,
.gw-case-card:focus-visible,
.gw-wheel-card:focus-visible,
.gw-cond-btn:focus-visible,
.gw-join-btn:focus-visible {
    outline: 2px solid var(--accent-2);
    outline-offset: 3px;
}

@media (hover: hover) and (pointer: fine) {
    .gw-hero:hover {
        filter: brightness(1.035);
    }

    .gw-hero:hover .gw-hero-cta {
        filter: brightness(1.04);
        box-shadow: 0 8px 24px rgba(var(--gw-accent), 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.48);
    }

    .gw-hero:hover .gw-hero-cta i {
        transform: translateX(3px);
    }

    .gw-boost-card:hover,
    .gw-case-card:hover,
    .gw-wheel-card:hover {
        border-color: var(--gw-border-strong);
        background-color: rgba(44, 45, 51, 0.94);
        transform: translateY(-1px);
    }

    .gw-cond-btn:hover {
        border-color: rgba(var(--gw-accent), 0.62);
        background: rgba(var(--gw-accent), 0.14);
    }
}

/* Small phones: preserve every prize and avoid horizontal overflow. */
@media (max-width: 360px) {
    .gw-hero-inner {
        padding: 16px;
    }

    .gw-other-prizes,
    .gw-prizes-grid {
        gap: 6px;
    }

    .gw-hp {
        font-size: 9.5px;
    }

    .gw-prize {
        min-height: 120px;
        padding: 9px;
    }

    .gw-cond-card {
        gap: 9px;
    }

    .gw-cond-ico {
        width: 40px;
        height: 40px;
    }

    .gw-cond-btn {
        max-width: 98px;
        padding: 0 10px;
        font-size: 11.5px;
    }
}

/* Full giveaway reduced-motion coverage. */
@media (prefers-reduced-motion: reduce) {
    .gw-hero,
    .gw-hero-border,
    .gw-live-dot,
    .gw-hero-float,
    .gw-hero-title,
    .gw-wheel-mini-disc,
    .gw-view-head,
    .gw-view-gift,
    .gw-prize,
    .gw-cond-card,
    .gw-join-btn,
    .gw-join-shine,
    .tab-gw-badge {
        animation: none !important;
        transition: none !important;
    }
}

/* ────────────────────────────────────────────────────────────
   МОДИФИКАТОРЫ — плитка на главной + страница расписания
   ──────────────────────────────────────────────────────────── */

/* --- Плитка «Модификаторы» (bento) --- */
.bento-tile--mods {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(130% 150% at 75% 0%, rgba(10, 132, 255, 0.22), transparent 55%),
        rgba(var(--ios26-glass-background-rgb), 0.72);
}
/* затемняющий градиент снизу — чтобы текст был читаем поверх иконок */
.bento-tile--mods::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    border-radius: inherit;
    background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, 0.45) 100%);
}

.mods-scatter {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
    border-radius: inherit;
}
.mods-scatter-item {
    position: absolute;
    opacity: 0.16;
    filter: saturate(0.85);
    animation: modsDrift ease-in-out infinite;
}
/* медленное «броуновское» блуждание: у каждой иконки свои --dx/--dy/--srot */
@keyframes modsDrift {
    0%, 100% { transform: translate(0, 0) rotate(var(--srot, 0deg)); }
    33%      { transform: translate(var(--dx, 6px), var(--dy, -7px)) rotate(calc(var(--srot, 0deg) + 9deg)); }
    66%      { transform: translate(calc(var(--dx, 6px) * -0.8), calc(var(--dy, -7px) * -0.7)) rotate(calc(var(--srot, 0deg) - 7deg)); }
}

.mods-current-line { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.mods-current-line b { color: var(--text); font-weight: 700; }
.mods-mini-img {
    width: 17px;
    height: 17px;
    object-fit: contain;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.5));
}

/* --- Страница модификаторов --- */
#page-modifiers { overflow: hidden; }

/* до загрузки данных не показываем «битые» заглушки картинок */
.mods-now-img[src=""],
.mods-next-img[src=""] { visibility: hidden; }

/* Карточка «Сейчас идёт» */
.mods-now-card {
    margin: 14px 14px 12px;
    padding: 16px;
    position: relative;
    z-index: 5;
}
@keyframes modsNowPulse {
    0%, 100% { box-shadow: 0 0 0 1px rgba(10, 132, 255, 0.30), 0 8px 30px rgba(10, 132, 255, 0.10); }
    50%      { box-shadow: 0 0 0 1px rgba(10, 132, 255, 0.55), 0 8px 38px rgba(10, 132, 255, 0.26); }
}
/* появление карточек при открытии страницы (каскад) + пульс текущей */
@keyframes modsCardIn {
    from { opacity: 0; transform: translateY(16px) scale(0.98); }
    to   { opacity: 1; transform: none; }
}
#page-modifiers.active .mods-now-card {
    animation: modsCardIn 0.5s var(--ease) both, modsNowPulse 3.2s ease-in-out 0.5s infinite;
}
#page-modifiers.active .mods-next-card { animation: modsCardIn 0.5s var(--ease) 0.08s both; }
#page-modifiers.active .mods-schedule-card { animation: modsCardIn 0.5s var(--ease) 0.16s both; }
.mods-now-head { display: flex; align-items: center; gap: 14px; }
.mods-now-img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    flex-shrink: 0;
    filter: drop-shadow(0 4px 14px rgba(10, 132, 255, 0.35));
    animation: modsBob 4.5s ease-in-out infinite;
}
@keyframes modsBob {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-5px); }
}
.mods-now-titles { flex: 1; min-width: 0; }
.mods-now-name { font-size: 21px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
.mods-now-label {
    font-size: 11.5px;
    color: var(--accent-2);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin-top: 3px;
}
.mods-now-desc { font-size: 13px; color: var(--text-muted); margin-top: 10px; line-height: 1.45; }
.mods-now-window {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
    margin-top: 3px;
    letter-spacing: 0.02em;
}

.mods-progress-wrap { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.mods-progress-bar {
    flex: 1;
    height: 7px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.09);
    overflow: hidden;
    transition: height var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
/* при наведении/нажатии прогресс-бар «надувается» */
.mods-progress-wrap:hover .mods-progress-bar,
.mods-progress-wrap:active .mods-progress-bar {
    height: 11px;
    box-shadow: 0 0 14px var(--accent-glow);
}
.mods-progress-fill {
    height: 100%;
    width: 0%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    box-shadow: 0 0 10px var(--accent-glow);
    transition: width 1s linear;
}
.mods-countdown {
    font-family: ui-monospace, 'SF Mono', 'Cascadia Mono', monospace;
    font-size: 13px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    min-width: 64px;
    text-align: right;
}

/* Карточка «Следующий» */
.mods-next-card { margin: 0 14px 12px; padding: 14px 16px; position: relative; z-index: 5; }
.mods-next-head { display: flex; align-items: center; gap: 12px; }
.mods-next-img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    flex-shrink: 0;
    filter: drop-shadow(0 3px 10px rgba(0, 0, 0, 0.4));
}
.mods-next-titles { flex: 1; min-width: 0; }
.mods-next-name { font-size: 17px; font-weight: 800; letter-spacing: -0.01em; }
.mods-next-label {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin-top: 2px;
}
.mods-next-window {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
    margin-top: 2px;
}
.mods-notify-btn {
    width: 100%;
    margin-top: 12px;
    padding: 12px;
    border: none;
    border-radius: var(--r-sm);
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: var(--shadow-accent);
    transition: transform var(--dur-fast) var(--ease), opacity var(--dur-fast) var(--ease);
}
.mods-notify-btn:active { transform: scale(0.97); }
.mods-notify-btn:disabled { opacity: 0.6; }
.mods-notify-btn--done {
    background: var(--success-soft);
    color: var(--success);
    box-shadow: none;
    border: 1px solid rgba(50, 215, 75, 0.35);
}

/* Расписание */
.mods-schedule-card { margin: 0 14px 24px; padding: 6px 0; position: relative; z-index: 5; }
.mods-schedule-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
    padding: 8px 16px 10px;
    font-size: 14.5px;
    font-weight: 800;
}
.mods-schedule-tz {
    font-size: 10.5px;
    font-weight: 700;
    color: var(--text-faint);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: right;
}
.mods-schedule-list { display: flex; flex-direction: column; }
.mods-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 16px;
    cursor: pointer;
    transform-origin: center;
    transition: background var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
    -webkit-tap-highlight-color: transparent;
}
.mods-row:active { background: rgba(255, 255, 255, 0.05); transform: scale(0.99); }
/* микроанимация «живости»: строка чуть увеличивается при наведении */
@media (hover: hover) {
    .mods-row:hover { background: rgba(255, 255, 255, 0.04); transform: scale(1.015); }
}
.mods-row + .mods-row { border-top: 1px solid var(--border-dim); }
.mods-row--now {
    background: linear-gradient(90deg, rgba(10, 132, 255, 0.16), rgba(10, 132, 255, 0.04));
    box-shadow: inset 3px 0 0 var(--accent);
}
.mods-row--sel { background: rgba(255, 255, 255, 0.07); }
.mods-row-img {
    width: 26px;
    height: 26px;
    object-fit: contain;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.4));
}
.mods-row-name { font-size: 14.5px; font-weight: 600; white-space: nowrap; }
.mods-row-dots {
    flex: 1;
    min-width: 12px;
    height: 1px;
    margin: 0 2px;
    border-bottom: 1px dotted rgba(255, 255, 255, 0.18);
}
.mods-row-time {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
}
.mods-row--now .mods-row-time { color: var(--accent-2); }
.mods-row-badge {
    font-size: 10px;
    font-weight: 800;
    color: var(--accent-2);
    background: var(--accent-soft);
    border: 1px solid rgba(10, 132, 255, 0.35);
    padding: 2.5px 7px;
    border-radius: 99px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

/* Кнопки «Стратегия» + «Уведомить о начале» — медленно выезжают прямо под строкой */
.mods-row-strat {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 0 16px;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition:
        max-height 0.55s cubic-bezier(0.2, 0.9, 0.25, 1),
        opacity 0.4s var(--ease) 0.08s;
}
.mods-row-strat--pair { grid-template-columns: 1fr 1fr; }
.mods-row-strat--open { max-height: 72px; opacity: 1; }
.mods-row-strat-link,
.mods-row-strat-notify {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    padding: 11px 8px;
    border-radius: var(--r-sm);
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    transition: transform var(--dur-fast) var(--ease);
}
.mods-row-strat-link {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #fff;
    text-decoration: none;
    box-shadow: var(--shadow-accent);
}
.mods-row-strat-notify {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid var(--border-hover);
    color: var(--text);
}
.mods-row-strat-notify:disabled { opacity: 0.6; }
.mods-row-strat-notify--done {
    background: var(--success-soft);
    color: var(--success);
    border-color: rgba(50, 215, 75, 0.35);
}
.mods-row-strat-link:active,
.mods-row-strat-notify:active { transform: scale(0.97); }

/* Тост сверху («Уведомим вас…») — смахивается вверх */
.mods-toast {
    position: fixed;
    top: calc(10px + env(safe-area-inset-top));
    left: 50%;
    z-index: 200;
    transform: translate(-50%, -180%);
    max-width: calc(100vw - 32px);
    padding: 12px 18px;
    border-radius: 16px;
    background: rgba(28, 28, 34, 0.92);
    backdrop-filter: blur(16px) saturate(160%);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-float);
    color: var(--text);
    font-size: 13.5px;
    font-weight: 600;
    text-align: center;
    touch-action: none;
    transition: transform 0.4s cubic-bezier(0.2, 0.9, 0.25, 1);
}
.mods-toast--show { transform: translate(-50%, 0); }

/* ПЕРФ: глобальный reduced-motion — гасим все бесконечные декоративные циклы
   для пользователей с экономией анимаций (и слабых устройств с этой настройкой) */
@media (prefers-reduced-motion: reduce) {
    .emoji-empty,
    .mp-empty-emoji,
    .anim-floating,
    .live-dot,
    .ai-orb,
    .float-tower,
    .conveyor-track,
    .progress-bar-fill::after,
    .mods-scatter-item,
    .mods-now-card,
    .mods-now-img,
    [class*="anim-"] {
        animation: none !important;
    }
}

/* ════════════════════════════════════════════════════════════════════
   PAGE-STRATEGIES: DEDICATED TDS STRATEGY CATALOG (PRO 2026)
   ════════════════════════════════════════════════════════════════════ */

.strat-catalog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    gap: 8px;
}

.strat-header-center {
    display: flex;
    align-items: center;
    gap: 8px;
}

.strat-header-center h2 {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.3px;
}

.strat-header-count-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 12px;
    background: var(--accent-soft);
    color: var(--accent-2);
    border: 1px solid rgba(10, 132, 255, 0.3);
}

.strat-header-refresh-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-size: 15px;
    flex-shrink: 0;
}

.strat-header-refresh-btn:active .strat-refresh-icon {
    transform: rotate(180deg);
    transition: transform 0.3s var(--ease);
}

.strat-refresh-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
}

.strat-refresh-icon svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
}

.strat-scroll-area {
    padding: 12px 14px 100px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Search Panel */
.strat-search-panel {
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-radius: var(--r-md);
    background: rgba(22, 22, 28, 0.75);
    border: 1px solid var(--border-light);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.strat-search-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.strat-search-icon {
    position: absolute;
    left: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    color: var(--text-muted);
    pointer-events: none;
}

.strat-search-icon svg {
    width: 15px;
    height: 15px;
    stroke: currentColor;
}

.strat-search-input {
    width: 100%;
    padding: 11px 36px 11px 36px;
    border-radius: 14px;
    background: rgba(10, 10, 14, 0.6);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 14px;
    font-weight: 500;
    outline: none;
    transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}

.strat-search-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.strat-search-clear-btn {
    position: absolute;
    right: 8px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    color: var(--text-muted);
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background var(--dur-fast);
}

.strat-search-clear-btn:active {
    background: rgba(255, 255, 255, 0.3);
    color: var(--text);
}

/* Category Chips Bar */
.strat-chips-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    padding: 2px 2px 6px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.strat-chips-bar::-webkit-scrollbar {
    display: none;
}

.strat-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 20px;
    font-size: 12.5px;
    font-weight: 600;
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s var(--ease);
    flex-shrink: 0;
    user-select: none;
}

.strat-chip:active {
    transform: scale(0.96);
}

.strat-chip.active {
    background: linear-gradient(135deg, rgba(10, 132, 255, 0.25), rgba(64, 156, 255, 0.35));
    border-color: var(--accent);
    color: #FFFFFF;
    box-shadow: 0 2px 10px var(--accent-glow);
}

.strat-chip-count {
    font-size: 10px;
    opacity: 0.75;
    padding: 1px 5px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.12);
}

.strat-chip.active .strat-chip-count {
    background: rgba(10, 132, 255, 0.4);
    opacity: 1;
}

.strat-chip-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.strat-chip-icon svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

/* Filter Row: Team Size & Modifiers */
.strat-filter-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.strat-filter-row-secondary {
    justify-content: space-between;
    padding-top: 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.strat-filter-label {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--text-faint);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.strat-team-pills,
.strat-mod-pills {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.strat-pill {
    padding: 5px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-dim);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.18s var(--ease);
}

.strat-pill:active {
    transform: scale(0.95);
}

.strat-pill.active {
    background: var(--accent-soft);
    border-color: var(--accent);
    color: var(--accent-2);
}

.strat-reset-btn {
    padding: 5px 9px;
    border-radius: 12px;
    font-size: 11.5px;
    font-weight: 600;
    background: var(--danger-soft);
    border: 1px solid rgba(255, 69, 58, 0.4);
    color: var(--danger);
    cursor: pointer;
    transition: all 0.18s;
}

.strat-reset-btn:active {
    transform: scale(0.95);
    background: rgba(255, 69, 58, 0.3);
}

/* Results Status Bar */
.strat-results-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 4px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════════════════
   STRATEGY CARDS — LIQUID DARK MERCURY (ULTRA-SLIM 78PX)
   ═══════════════════════════════════════════════════════════════ */
.strat-cards-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Single Strategy Card — Liquid Metal Metallic Specular Surface */
.strat-card {
    padding: 0;
    border-radius: 14px;
    background: 
        radial-gradient(ellipse 120% 80% at 20% -10%, rgba(255, 255, 255, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse 90% 70% at 80% 120%, rgba(255, 255, 255, 0.04) 0%, transparent 50%),
        linear-gradient(135deg, #090B10 0%, #151824 25%, #0B0E15 50%, #202636 75%, #0A0C12 100%);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 
        inset 0 1px 1px 0 rgba(255, 255, 255, 0.35),
        inset 0 -1px 2px 0 rgba(0, 0, 0, 0.8),
        0 4px 16px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: transform 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
    position: relative;
    overflow: hidden;
}

.strat-card:hover {
    border-color: var(--cat-color, rgba(255, 255, 255, 0.3));
    box-shadow: 
        inset 0 1px 2px 0 rgba(255, 255, 255, 0.5),
        0 8px 24px var(--cat-glow, rgba(0, 0, 0, 0.6));
    transform: translateY(-2px);
}

.strat-card:active {
    transform: scale(0.985);
}

/* Top Weather Ribbon Header */
.strat-card-header {
    position: relative;
    height: 34px;
    background: rgba(10, 13, 20, 0.94);
    border-bottom: 1.5px solid var(--cat-color, #38BDF8);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    overflow: hidden;
}

.strat-card-header-glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--cat-glow, rgba(56, 189, 248, 0.35)), transparent 75%);
    opacity: 0.35;
    z-index: 2;
    pointer-events: none;
}

.strat-card-header-title {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display, inherit);
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.strat-mode-label {
    color: #FFFFFF;
    text-shadow: 0 0 10px var(--cat-color, #38BDF8);
    display: flex;
    align-items: center;
    gap: 5px;
}

.strat-mode-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.strat-mode-icon svg {
    width: 13px;
    height: 13px;
    fill: var(--cat-color, #38BDF8);
    filter: drop-shadow(0 0 6px var(--cat-color, #38BDF8));
}

.strat-header-divider {
    color: rgba(255, 255, 255, 0.35);
    font-weight: 400;
}

.strat-team-label {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--cat-color, #38BDF8);
    font-weight: 800;
}

.strat-stick-figure {
    display: inline-flex;
    align-items: center;
    color: currentColor;
}

.strat-stick-figure svg {
    height: 14px;
    width: auto;
    fill: currentColor;
}

/* Badges (Star TOP / Verified) */
.strat-badge-top {
    position: relative;
    z-index: 3;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.65);
    border: 1px solid rgba(255, 214, 10, 0.5);
    color: #FFD60A;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 0 10px rgba(255, 214, 10, 0.2);
}

.strat-badge-top svg {
    width: 10px;
    height: 10px;
    fill: #FFD60A;
}

.strat-badge-verified {
    position: relative;
    z-index: 3;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.65);
    border: 1px solid rgba(56, 189, 248, 0.5);
    color: #38BDF8;
    display: flex;
    align-items: center;
    gap: 3px;
}

/* Liquid Metal Category Colors & Glows */
.strat-cat-frost { --cat-color: #38BDF8; --cat-glow: rgba(56, 189, 248, 0.45); }
.strat-cat-fallen { --cat-color: #2DD4BF; --cat-glow: rgba(45, 212, 191, 0.5); }       /* Стиль смерти: призрачный циан */
.strat-cat-hardcore { --cat-color: #A855F7; --cat-glow: rgba(168, 85, 247, 0.55); }   /* Фиолетовая бездна */
.strat-cat-pizza-party { --cat-color: #EAB308; --cat-glow: rgba(234, 179, 8, 0.5); }   /* Five Nights at Freddy's */
.strat-cat-molten { --cat-color: #F97316; --cat-glow: rgba(249, 115, 22, 0.5); }
.strat-cat-polluted-wastelands-2 { --cat-color: #22C55E; --cat-glow: rgba(34, 197, 94, 0.5); }
.strat-cat-badlands-2 { --cat-color: #F59E0B; --cat-glow: rgba(245, 158, 11, 0.5); }
.strat-cat-coin-grind { --cat-color: #EAB308; --cat-glow: rgba(234, 179, 8, 0.5); }
.strat-cat-intermediate { --cat-color: #3B82F6; --cat-glow: rgba(59, 130, 246, 0.45); }
.strat-cat-event { --cat-color: #EC4899; --cat-glow: rgba(236, 72, 153, 0.5); }
.strat-cat-other { --cat-color: #94A3B8; --cat-glow: rgba(148, 163, 184, 0.35); }

/* Card Body (Razor Thin 44px) */
.strat-card-body {
    padding: 8px 12px 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: relative;
    z-index: 2;
}

.strat-card-title {
    font-size: 14.5px;
    font-weight: 700;
    color: #FFFFFF;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: -0.2px;
}

.strat-card-meta-line {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.strat-tag-pill {
    font-size: 10px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #FFFFFF;
    flex-shrink: 0;
    letter-spacing: 0.3px;
}

.strat-tag-pill.accent {
    background: linear-gradient(135deg, rgba(10, 132, 255, 0.4), rgba(0, 122, 255, 0.15));
    border-color: rgba(10, 132, 255, 0.5);
}

.strat-card-towers {
    color: #CBD5E1;
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.strat-card-towers strong {
    color: #94A3B8;
    font-weight: 600;
}

/* Pixel Weather Canvas (3px blur) */
.strat-pixel-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    pointer-events: none;
    z-index: 1;
    filter: blur(3px) contrast(1.2);
    opacity: 0.9;
}

/* Ultra-Slim Skeleton Loaders */
.strat-card-skeleton {
    height: 78px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-dim);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.strat-card-skeleton .strat-skel-header {
    height: 34px;
    background: rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.strat-card-skeleton .strat-skel-body {
    padding: 8px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.strat-card-skeleton::after {
    content: '';
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.04), transparent);
    animation: stratShimmer 1.5s infinite;
}

@keyframes stratShimmer {
    100% { transform: translateX(100%); }
}

.strat-skel-line {
    height: 12px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
}

.strat-skel-title { height: 18px; width: 65%; }
.strat-skel-sub { width: 90%; }
.strat-skel-short { width: 40%; }

/* Empty State */
.strat-empty-state {
    padding: 40px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    border-radius: var(--r-md);
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed var(--border);
}

.strat-empty-emoji {
    font-size: 40px;
    line-height: 1;
}

.strat-empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    color: var(--text-muted);
}

.strat-empty-icon svg {
    width: 44px;
    height: 44px;
    stroke: currentColor;
}

.strat-empty-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
}

.strat-empty-desc {
    font-size: 13px;
    color: var(--text-muted);
    max-width: 260px;
    line-height: 1.4;
}

/* Load More */
.strat-load-more-wrap {
    display: flex;
    justify-content: center;
    padding: 10px 0 20px;
}

.strat-load-more-btn {
    padding: 12px 24px;
    border-radius: 18px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--accent-2);
    border: 1px solid rgba(10, 132, 255, 0.35);
    background: rgba(10, 132, 255, 0.1);
    cursor: pointer;
    transition: all 0.2s var(--ease);
}

.strat-load-more-btn:active {
    transform: scale(0.96);
    background: rgba(10, 132, 255, 0.25);
}

/* Strategy Details Sheet Modal */
body.strat-sheet-open {
    overflow: hidden !important;
}

body.strat-sheet-open #bottom-tab-bar {
    opacity: 0 !important;
    pointer-events: none !important;
    transform: translateX(-50%) translateY(28px) !important;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease) !important;
}

.strat-sheet-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    z-index: 1050;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.3s var(--ease);
}

.strat-sheet-backdrop.hidden {
    opacity: 0;
    pointer-events: none;
    display: none;
}

.strat-sheet-panel {
    width: 100%;
    max-width: 440px;
    max-height: 88dvh;
    background: rgba(20, 20, 26, 0.95);
    border-top: 1px solid var(--border-light);
    border-radius: 26px 26px 0 0;
    box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: stratSheetUp 0.32s cubic-bezier(0.2, 0.8, 0.2, 1);
    padding: 0 0 calc(16px + env(safe-area-inset-bottom));
}

@keyframes stratSheetUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.strat-sheet-handle {
    width: 38px;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.22);
    margin: 10px auto 6px;
    flex-shrink: 0;
}

.strat-sheet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 18px 0;
}

.strat-sheet-badges {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.strat-sheet-close-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s;
}

.strat-sheet-close-btn:active {
    background: rgba(255, 255, 255, 0.25);
    color: #FFFFFF;
}

.strat-sheet-title {
    font-size: 19px;
    font-weight: 700;
    color: #FFFFFF;
    padding: 10px 18px 4px;
    line-height: 1.3;
    letter-spacing: -0.3px;
}

.strat-sheet-meta {
    font-size: 12.5px;
    color: var(--text-faint);
    padding: 0 18px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.strat-sheet-content-scroll {
    overflow-y: auto;
    padding: 14px 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    scrollbar-width: none;
}

.strat-sheet-content-scroll::-webkit-scrollbar {
    display: none;
}

/* Sheet Doc Card */
.strat-sheet-doc-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-light);
}

.strat-sheet-doc-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.strat-sheet-doc-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.strat-sheet-doc-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-faint);
    letter-spacing: 0.4px;
}

.strat-sheet-doc-url {
    font-size: 13px;
    color: var(--accent-2);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.strat-sheet-doc-copy-btn {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-size: 16px;
    flex-shrink: 0;
}

/* Description Block */
.strat-sheet-desc-block {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.strat-sheet-desc-heading {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-faint);
    letter-spacing: 0.5px;
}

.strat-sheet-desc-body {
    font-size: 13.5px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.88);
    background: rgba(10, 10, 14, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 12px 14px;
    white-space: pre-wrap;
    word-break: break-word;
    user-select: text;
    -webkit-user-select: text;
    max-height: 220px;
    overflow-y: auto;
}

/* Sheet Action Buttons */
.strat-sheet-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 6px;
}

.strat-action-extract {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 18px;
    background: linear-gradient(135deg, #0A84FF, #0056D2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 20px var(--accent-glow);
    color: #FFFFFF;
    cursor: pointer;
    transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.strat-action-extract:active {
    transform: scale(0.97);
}

.strat-action-extract .strat-action-icon {
    font-size: 24px;
}

.strat-action-text-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.strat-action-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
}

.strat-action-sub {
    font-size: 11.5px;
    opacity: 0.85;
    font-weight: 500;
}

.strat-sheet-actions-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.strat-sheet-sub-btn {
    padding: 12px 14px;
    border-radius: 14px;
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    transition: transform 0.18s var(--ease);
}

.strat-sheet-sub-btn:active {
    transform: scale(0.96);
}

/* Toast */
.strat-toast {
    position: fixed;
    top: calc(14px + env(safe-area-inset-top));
    left: 50%;
    transform: translate(-50%, -150%);
    background: rgba(24, 24, 30, 0.95);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-float);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 10px 18px;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 600;
    color: #FFFFFF;
    z-index: 1200;
    pointer-events: none;
    transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.35s;
    opacity: 0;
    text-align: center;
    max-width: 90%;
}

.strat-toast.show {
    transform: translate(-50%, 0);
    opacity: 1;
}

.strat-toast.toast-success {
    border-color: rgba(50, 215, 75, 0.5);
    box-shadow: 0 8px 24px rgba(50, 215, 75, 0.25);
}

.strat-toast.toast-error {
    border-color: rgba(255, 69, 58, 0.5);
    box-shadow: 0 8px 24px rgba(255, 69, 58, 0.25);
}

