:root {
    --bg-dark: #0a0e17;
    --card-bg: rgba(22, 28, 44, 0.65);
    --card-border: rgba(255, 255, 255, 0.08);
    --accent-blue: #3b82f6;
    --accent-green: #10b981;
    --text-white: #ffffff;
    --text-gray: #94a3b8;
}

* {
    margin: 0; padding: 0; box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

body {
    background: var(--bg-dark);
    color: var(--text-white);
    font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, sans-serif;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
}

/* ФОН АВРОРА */
.aurora-ambient-canvas {
    position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
}
.aurora-sphere {
    position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.32;
}
.sphere-emerald { width: 340px; height: 340px; background: #059669; top: -60px; left: -60px; }
.sphere-cyan { width: 320px; height: 320px; background: #0284c7; bottom: 100px; right: -50px; }
.sphere-indigo { width: 280px; height: 280px; background: #4f46e5; top: 35%; left: 20%; }

/* TIKTOK СВАЙП ПЛЕЕР */
.reel-player-container {
    position: absolute; inset: 0; z-index: 10;
    overflow: hidden; background: #000;
}
#player {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.3, 1), opacity 0.25s ease;
}
#player.swipe-up { transform: translateY(-100%); opacity: 0; }
#player.swipe-down { transform: translateY(100%); opacity: 0; }
#player.swipe-in-bottom { transform: translateY(100%); opacity: 0; }
#player.swipe-in-top { transform: translateY(-100%); opacity: 0; }
#player.swipe-active { transform: translateY(0); opacity: 1; }

.touch-action-plane { position: absolute; inset: 0; z-index: 12; }

/* 5. РЕДИЗАЙН ПЛАШКИ ТАЙМЕРА (DYNAMIC ISLAND СТИЛЬ) */
.hud-header {
    position: absolute; top: 16px; left: 16px; right: 16px; z-index: 20;
    display: flex; justify-content: space-between; align-items: center;
}
.liquid-progress-capsule {
    background: rgba(30, 35, 48, 0.75);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border: 1.5px solid rgba(255, 255, 255, 0.16);
    border-radius: 9999px;
    height: 42px;
    min-width: 156px;
    width: auto;
    max-width: 220px;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 0 16px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.45);
    transition: width 0.3s ease, min-width 0.3s ease;
}
.liquid-fill-track {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0%;
    background: linear-gradient(90deg, #059669 0%, #10b981 100%);
    pointer-events: none;
    will-change: width;
}
.liquid-badge-fixed {
    display: flex;
    align-items: center;
    gap: 7px;
    font-weight: 800;
    font-size: 15px;
    color: #ffffff;
    z-index: 2;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
}
.token-coin-icon {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.5));
}
.liquid-pct-label {
    font-size: 15px;
    font-weight: 800;
    color: #ffffff;
    z-index: 2;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
    font-variant-numeric: tabular-nums;
}


.hud-stats-group { display: flex; gap: 8px; z-index: 20; }
.chip-glass {
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 24px; height: 42px; padding: 0 14px;
    display: flex; align-items: center; gap: 6px; font-weight: 800; font-size: 14px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

/* 2. БОКОВЫЕ КНОПКИ: БЕЗ НАЕЗЖАЮЩИХ ЦИФР, ЧИСТЫЙ СТЕКЛЯННЫЙ СТИЛЬ */
.hud-side-column {
    position: absolute; right: 14px; bottom: 110px; z-index: 20;
    display: flex; flex-direction: column; gap: 16px; align-items: center;
}
.action-node {
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    font-size: 11px; font-weight: 700; color: #e2e8f0; cursor: pointer;
}
.action-circle-glass {
    width: 50px; height: 50px; border-radius: 50%;
    background: rgba(15, 23, 42, 0.52);
    backdrop-filter: blur(28px); -webkit-backdrop-filter: blur(28px);
    border: 1px solid rgba(255, 255, 255, 0.16);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.45);
    transition: transform 0.15s ease, background 0.2s;
}
.action-circle-glass:active { transform: scale(0.9); }
.action-circle-glass svg { width: 24px; height: 24px; stroke: #fff; fill: none; stroke-width: 2.2; }
.active-liked { background: rgba(244, 63, 94, 0.25) !important; border-color: rgba(244, 63, 94, 0.6) !important; }
.active-liked svg { fill: #f43f5e !important; stroke: #f43f5e !important; }
.active-rated { background: rgba(245, 158, 11, 0.25) !important; border-color: rgba(245, 158, 11, 0.6) !important; }
.active-rated svg { fill: #fbbf24 !important; stroke: #fbbf24 !important; }

/* 6. КНОПКА ЗВУКА: ЖИВОЕ СОСТОЯНИЕ */
.sound-active {
    border-color: rgba(52, 211, 153, 0.55) !important;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.4) !important;
}

.hud-bottom-overlay {
    position: absolute; bottom: 102px; left: 16px; z-index: 20;
    display: flex; align-items: center; gap: 8px;
}
.author-badge-card {
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(25px); -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 6px 14px; border-radius: 16px; font-size: 13px; font-weight: 800;
}

/* 5. ЭКРАН СУТОЧНОГО ЛИМИТА: МАТОВОЕ СТЕКЛО ПОВЕРХ ВИДЕО С ЗАМОЧКОМ */
.limit-screen-overlay {
    position: absolute; inset: 0; z-index: 45;
    background: rgba(10, 14, 23, 0.62);
    backdrop-filter: blur(32px) saturate(190%); -webkit-backdrop-filter: blur(32px) saturate(190%);
    display: none; flex-direction: column; align-items: center; justify-content: center;
    padding: 24px 20px 140px; text-align: center;
}
.limit-lock-shield {
    width: 80px; height: 80px; border-radius: 50%;
    background: rgba(245, 158, 11, 0.18); border: 2px solid rgba(245, 158, 11, 0.65);
    display: flex; align-items: center; justify-content: center; margin-bottom: 12px;
    box-shadow: 0 0 40px rgba(245, 158, 11, 0.45);
}
.limit-countdown-clock {
    font-size: 42px; font-weight: 900; letter-spacing: 2px; color: #fbbf24;
    margin: 12px 0 18px; font-variant-numeric: tabular-nums;
}

.primary-btn {
    width: 100%; border: none; border-radius: 18px;
    background: #2563eb; color: #fff; font-size: 14px; font-weight: 800;
    padding: 14px; cursor: pointer; transition: transform 0.15s ease, opacity 0.2s;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.4);
}
.primary-btn:active { transform: scale(0.97); }

.subview-pane {
    position: absolute; inset: 0; z-index: 15; background: var(--bg-dark);
    display: none; overflow-y: auto; padding: 20px 16px 140px;
    -webkit-overflow-scrolling: touch;
}
.subview-pane.active { display: block; }

.section-title {
    font-size: 12px; font-weight: 800; color: #64748b; text-transform: uppercase;
    letter-spacing: 1px; margin: 16px 0 10px 4px;
}
.ios-card {
    background: var(--card-bg); border: 1px solid var(--card-border);
    border-radius: 24px; padding: 18px; margin-bottom: 12px;
    backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

/* 6. ЗАДАНИЯ С ЧИСТЫМИ TG-ИКОНКАМИ */
.task-row-item {
    background: var(--card-bg); border: 1px solid var(--card-border);
    border-radius: 22px; padding: 14px 16px; margin-bottom: 10px;
    display: flex; align-items: center; justify-content: space-between;
    cursor: pointer; transition: background 0.2s;
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
}
.task-row-item:active { background: rgba(30, 41, 59, 0.85); }
.task-item-left { display: flex; align-items: center; gap: 14px; }
.task-clean-icon {
    width: 48px; height: 48px; border-radius: 16px;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.task-item-title { font-size: 14px; font-weight: 800; color: #fff; }
.task-item-sub { font-size: 12px; color: #94a3b8; margin-top: 3px; }
.task-item-reward {
    font-size: 14px; font-weight: 800; color: #38bdf8; display: flex; align-items: center; gap: 4px;
}
.task-done-badge {
    width: 28px; height: 28px; border-radius: 50%; background: rgba(16, 185, 129, 0.2);
    border: 1.5px solid #10b981; display: flex; align-items: center; justify-content: center;
}

/* 6. РЕЙТИНГ: БЕЗ ФОТО-АВАТАРОК */
.rating-filter-scroll {
    display: flex; gap: 8px; overflow-x: auto; padding-bottom: 14px;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.rating-filter-scroll::-webkit-scrollbar { display: none; }
.rating-tab-pill {
    padding: 8px 18px; border-radius: 20px; font-size: 13px; font-weight: 700;
    color: #94a3b8; background: rgba(255, 255, 255, 0.06); cursor: pointer;
    white-space: nowrap; transition: all 0.2s ease;
}
.rating-tab-pill.active {
    background: #3b82f6; color: #fff; box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}
.your-pos-card {
    background: var(--card-bg); border: 1.5px solid #2563eb;
    border-radius: 24px; padding: 14px 18px; margin-bottom: 18px;
    display: flex; justify-content: space-between; align-items: center;
    backdrop-filter: blur(20px);
}
.podium-container {
    display: flex; align-items: flex-end; justify-content: center;
    gap: 12px; margin: 18px 0 24px; padding: 0 10px;
}
.podium-seat {
    flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center;
}
.podium-avatar-wrap { position: relative; margin-bottom: 8px; }
.podium-monogram {
    width: 66px; height: 66px; border-radius: 50%;
    background: linear-gradient(135deg, #1e293b, #334155);
    border: 2px solid #3b82f6; font-size: 24px; font-weight: 900; color: #fff;
    display: flex; align-items: center; justify-content: center;
}
.podium-seat-1 .podium-monogram {
    width: 82px; height: 82px; border-color: #fbbf24; font-size: 30px;
    box-shadow: 0 0 25px rgba(251, 191, 36, 0.4);
}
.podium-crown {
    position: absolute; top: -14px; left: 50%; transform: translateX(-50%); font-size: 20px;
}
.podium-rank-badge {
    position: absolute; bottom: -2px; right: 0;
    width: 22px; height: 22px; border-radius: 50%;
    background: #3b82f6; color: #fff; font-size: 11px; font-weight: 900;
    display: flex; align-items: center; justify-content: center; border: 2px solid #0a0e17;
}
.podium-seat-1 .podium-rank-badge { background: #fbbf24; color: #000; }
.podium-name { font-size: 13px; font-weight: 800; color: #fff; margin-bottom: 2px; }
.podium-val { font-size: 12px; font-weight: 800; color: #94a3b8; }

.leader-list-row {
    background: var(--card-bg); border: 1px solid var(--card-border);
    border-radius: 18px; padding: 12px 16px; margin-bottom: 8px;
    display: flex; align-items: center; justify-content: space-between;
}
.leader-user-info { display: flex; align-items: center; gap: 12px; }
.leader-rank-num { font-size: 14px; font-weight: 900; color: #94a3b8; width: 18px; }
.leader-clean-badge {
    width: 40px; height: 40px; border-radius: 50%;
    background: rgba(255, 255, 255, 0.08); font-size: 14px; font-weight: 800;
    display: flex; align-items: center; justify-content: center; color: #38bdf8;
}
.leader-user-name { font-size: 14px; font-weight: 800; color: #fff; }
.leader-user-score { font-size: 14px; font-weight: 900; color: #fff; }

/* 3. ПРОЗРАЧНОЕ СТЕКЛЯННОЕ ОКНО ОЦЕНКИ ЗВЕЗДАМИ */
.star-rating-modal {
    position: fixed; inset: 0; z-index: 1200; background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(35px) saturate(200%); -webkit-backdrop-filter: blur(35px) saturate(200%);
    display: none; align-items: center; justify-content: center; padding: 20px;
}
.star-rating-card {
    width: 100%; max-width: 320px;
    background: rgba(22, 28, 44, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 28px;
    padding: 26px 20px; text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), inset 0 1px 1px rgba(255, 255, 255, 0.2);
}
.stars-row-select {
    display: flex; justify-content: center; gap: 10px; margin: 18px 0;
}
.star-node {
    font-size: 34px; color: rgba(255, 255, 255, 0.22); cursor: pointer;
    transition: transform 0.15s ease, color 0.15s ease, filter 0.15s ease;
}
.star-node.selected {
    color: #fbbf24; transform: scale(1.15);
    filter: drop-shadow(0 0 10px rgba(251, 191, 36, 0.65));
}

/* 7. СТИЛИ РАЗДЕЛА PROMO */
.promo-guide-card {
    background: #151a26; border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px; padding: 20px; margin-bottom: 14px;
}
.promo-step-num { color: #3b82f6; font-weight: 900; margin-right: 6px; }
.promo-select-box {
    width: 100%; background: #1c2233; border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px; padding: 14px 16px; color: #fff; font-size: 15px; font-weight: 700;
    margin-bottom: 14px; outline: none; appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.5'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat; background-position: right 14px center; background-size: 16px;
}
.promo-input-url {
    width: 100%; background: #1c2233; border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px; padding: 14px 16px; color: #fff; font-size: 14px; margin-bottom: 16px; outline: none;
}

/* ТАЧБАР С ПРОЗРАЧНЫМ СТЕКЛОМ */
.dock-wrapper {
    position: fixed; bottom: 18px; left: 16px; right: 16px; z-index: 1000;
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    pointer-events: none;
}






/* 7. 3D-КНОПКА В ФОРМАТЕ КИНОПЛЕНКИ (CINEMA FILM REEL) */







/* 3D КИНОПЕРФОРАЦИИ ПО КРАЯМ */



.dock-film-icon {
    width: 28px; height: 28px; fill: none; stroke: #38bdf8; stroke-width: 2.2;
    filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.7));
}

.task-modal-overlay {
    position: fixed; inset: 0; z-index: 1200; background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    display: none; align-items: center; justify-content: center; padding: 20px;
}
.task-modal-card {
    width: 100%; max-width: 320px; background: #161c2b; border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 28px; padding: 28px 22px 22px; text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}


/* ВЕРХНИЙ ГЛЯНЦЕВЫЙ БЛИК НА СТЕКЛЕ */














.dock-nav-pill {
    flex: 1; height: 64px;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(32px) saturate(210%);
    -webkit-backdrop-filter: blur(32px) saturate(210%);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 36px;
    display: flex; align-items: center; justify-content: space-around;
    padding: 0 6px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55), inset 0 1px 1px rgba(255, 255, 255, 0.2);
    pointer-events: auto;
    position: relative;
    overflow: hidden;
}

.dock-action-circle {
    width: 62px; height: 62px; border-radius: 50%;
    background: #2563eb;
    border: 2px solid rgba(255, 255, 255, 0.4);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.5);
    cursor: pointer; pointer-events: auto; flex-shrink: 0;
    transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}
.dock-action-circle:active { transform: scale(0.92); }
.dock-action-circle.active-feed {
    background: #1d4ed8;
    border-color: #ffffff;
    box-shadow: 0 0 25px rgba(59, 130, 246, 0.85);
}
.dock-clapper-icon {
    width: 28px; height: 28px; display: block;
}
@keyframes shakeTimerLock {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
}
.shake-lock {
    animation: shakeTimerLock 0.4s ease-in-out;
    border-color: rgba(239, 68, 68, 0.75) !important;
    box-shadow: 0 0 22px rgba(239, 68, 68, 0.5) !important;
}
.dock-tab-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 6px 8px;
    border-radius: 18px;
    color: #64748b;
    cursor: pointer;
    transition: color 0.2s ease, text-shadow 0.2s ease, background 0.2s ease;
    min-width: 48px;
    background: transparent;
    border: none;
}
.dock-tab-btn svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.2;
    transition: stroke 0.2s ease, filter 0.2s ease;
}
.dock-tab-btn span {
    font-size: 10px;
    font-weight: 700;
    transition: color 0.2s ease, text-shadow 0.2s ease;
}

/* МЯГКОЕ ДЕЛИКАТНОЕ ПОДСВЕЧИВАНИЕ ВМЕСТО ГРУБОЙ ОБВОДКИ */
.dock-tab-btn.active {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    box-shadow: none;
}
.dock-tab-btn.active svg {
    stroke: #ffffff;
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.55));
}
.dock-tab-btn.active span {
    color: #ffffff;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.45);
}
.prof-avatar-ring {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    margin: 0 auto 12px;
    position: relative;
    padding: 3px;
    background: linear-gradient(135deg, #3b82f6 0%, #10b981 100%);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.45);
}
.prof-avatar-photo {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: none;
    background: #1e293b;
    border: 2px solid #0a0e17;
}
.prof-avatar-fallback {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    color: #ffffff;
    border: 2px solid #0a0e17;
}
/* ЭКРАН ОГРАНИЧЕНИЯ ДЛЯ ДЕСКТОПА */
.mobile-only-overlay {
    position: fixed; inset: 0; z-index: 99999;
    background: #090d16;
    display: none; flex-direction: column; align-items: center; justify-content: center;
    padding: 30px 24px; text-align: center;
}
.mobile-device-card {
    background: rgba(22, 28, 44, 0.75);
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    border-radius: 32px; padding: 36px 24px; max-width: 360px; width: 100%;
    backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
    display: flex; flex-direction: column; align-items: center;
}
.mobile-icon-pulse {
    width: 80px; height: 80px; border-radius: 50%;
    background: rgba(37, 99, 235, 0.18); border: 2px solid rgba(59, 130, 246, 0.6);
    display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
    box-shadow: 0 0 35px rgba(37, 99, 235, 0.45);
}
.mobile-icon-pulse svg {
    width: 40px; height: 40px; stroke: #38bdf8;
}
/* МЯГКОЕ СВЕЧЕНИЕ АКТИВНОЙ ВКЛАДКИ */
.dock-tab-btn {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 3px; padding: 6px 8px; border-radius: 18px; color: #64748b;
    cursor: pointer; transition: color 0.2s ease, text-shadow 0.2s ease;
    min-width: 48px; background: transparent; border: none;
}
.dock-tab-btn svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2.2; }
.dock-tab-btn span { font-size: 10px; font-weight: 700; }
.dock-tab-btn.active {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}
.dock-tab-btn.active svg {
    stroke: #ffffff;
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.6));
}
.dock-tab-btn.active span {
    color: #ffffff;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

/* МИНИМАЛИСТИЧНАЯ КНОПКА ХЛОПУШКИ */
.dock-action-circle {
    width: 62px; height: 62px; border-radius: 50%;
    background: #2563eb; border: 1.5px solid rgba(255, 255, 255, 0.3);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.45);
    cursor: pointer; flex-shrink: 0;
    transition: transform 0.15s ease, background 0.2s ease;
}
.dock-action-circle:active { transform: scale(0.92); }
.dock-action-circle.active-feed {
    background: #1d4ed8; border-color: #ffffff;
    box-shadow: 0 0 25px rgba(59, 130, 246, 0.8);
}
.dock-clapper-icon { width: 26px; height: 26px; display: block; }

/* АНИМАЦИЯ БЛОКИРОВКИ СВАЙПА */
@keyframes shakeTimerLock {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
}
.shake-lock {
    animation: shakeTimerLock 0.4s ease-in-out;
    border-color: rgba(239, 68, 68, 0.75) !important;
    box-shadow: 0 0 22px rgba(239, 68, 68, 0.5) !important;
}

/* ЭКРАНЫ БЛОКИРОВКИ: ТОЛЬКО МОБИЛЬНЫЕ И ТЕХ. РАБОТЫ */
.app-modal-fullscreen {
    position: fixed; inset: 0; z-index: 99999;
    background: #090d16;
    display: none; flex-direction: column; align-items: center; justify-content: center;
    padding: 30px 24px; text-align: center;
}
.app-modal-card {
    background: rgba(22, 28, 44, 0.8);
    border: 1.5px solid rgba(255, 255, 255, 0.14);
    border-radius: 32px; padding: 36px 24px; max-width: 360px; width: 100%;
    backdrop-filter: blur(32px); -webkit-backdrop-filter: blur(32px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.75);
    display: flex; flex-direction: column; align-items: center;
}
.app-icon-ring {
    width: 80px; height: 80px; border-radius: 50%;
    background: rgba(37, 99, 235, 0.16); border: 2px solid rgba(59, 130, 246, 0.5);
    display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
    box-shadow: 0 0 35px rgba(37, 99, 235, 0.4);
}

/* === ФИКС ВКЛАДОК: ПРОФИЛЬ, РЕЙТИНГ, НАВБАР === */
#profile-screen, #tasks-screen, #rating-screen, #payouts-screen, #promo-screen {
    padding-bottom: 110px !important;
}

/* Навбар: убираем белые ореолы вокруг неактивных кнопок */
.nav-item:not(.active), .nav-btn:not(.active), .dock-item:not(.active), .tab-btn:not(.active) {
    background: transparent !important;
    box-shadow: none !important;
    filter: none !important;
}

/* Лидерборд: запрет переноса строк для очков и токенов */
.leaderboard-item, .rating-item, .rank-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
}

.leaderboard-item > div:last-child, .rating-item > div:last-child, .rating-score, .rank-points {
    white-space: nowrap !important;
    margin-left: auto !important;
    text-align: right !important;
}

/* Аватарка в профиле: корректное скругление и вписывание */
#profile-avatar img, .profile-avatar img, .user-avatar img {
    width: 100% !important;
    height: 100% !important;
    border-radius: 50% !important;
    object-fit: cover !important;
}





/* === ГЛОБАЛЬНЫЙ ФИКС ЭКРАНОВ И ТАЧБАРА === */
/* 1. Все вкладки: плавный вертикальный скролл и безопасный отступ снизу */
.subview-pane, #view-profile, #view-rating, #view-tasks, #view-exchange, #view-promo {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    padding: 16px 16px 140px 16px !important;
    box-sizing: border-box !important;
    z-index: 50 !important;
}

/* 2. Рейтинг: имя слева, очки справа на одной линии */
.leader-row {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 10px 0 !important;
    gap: 10px !important;
}

.leader-row > div:first-child {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
}

.leader-row b {
    white-space: nowrap !important;
    color: #fbbf24 !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    margin-left: auto !important;
    flex-shrink: 0 !important;
}

/* 3. Тачбар: корректное отображение всех 5 кнопок без искажения */
.bottom-dock, .hud-bottom-dock, .dock-bar, [class*="dock"] {
    display: flex !important;
    align-items: center !important;
    justify-content: space-around !important;
    box-sizing: border-box !important;
}

.dock-item, .nav-btn, .tab-btn {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 6px 8px !important;
    margin: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}
/* === КОНЕЦ === */


/* === ИСПРАВЛЕНИЕ ТАЧБАРА И СКРОЛЛА === */
/* Неактивные кнопки тачбара: строго прозрачные, без светящихся овалов */
.dock-bar button, .bottom-dock button, .hud-bottom-dock div, .hud-bottom-dock button,
.dock-item, .nav-btn, .tab-btn, [class*="dock-tab"] {
    background: transparent !important;
    box-shadow: none !important;
    filter: none !important;
    opacity: 0.55 !important;
}

/* Только активная кнопка получает подсветку и 100% яркость */
.dock-bar button.active, .bottom-dock button.active, .hud-bottom-dock div.active,
.dock-item.active, .nav-btn.active, .tab-btn.active, [class*="dock-tab"].active,
.dock-item.selected, .nav-btn.selected, [class*="dock-tab"].selected {
    background: rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3) !important;
    opacity: 1.0 !important;
}

/* Синяя кнопка плеера всегда яркая */
.dock-feed-btn, [id*="feed"], .dock-btn-feed {
    opacity: 1.0 !important;
}

/* Безопасная высота скролла для экранов профиля и выплат */
.subview-pane, #view-profile, #view-rating, #view-exchange, #view-tasks {
    padding-bottom: 170px !important;
    box-sizing: border-box !important;
}

/* === КОНЕЦ === */


/* ==========================================================
   AXIS PREMIUM DARK GLASS DESIGN SYSTEM
   ========================================================== */

/* Экраны со свободным вертикальным скроллом */
.subview-pane {
    padding-bottom: 160px !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    box-sizing: border-box !important;
}

/* Премиум стеклянные карточки */
.ios-card {
    background: rgba(15, 23, 42, 0.78) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 20px !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4) !important;
}

/* Тачбар: неактивные прозрачные, активный подсвечивается */
.dock-tab-btn {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    opacity: 0.55 !important;
    border-radius: 18px !important;
    transition: all 0.2s ease !important;
}

.dock-tab-btn.active {
    background: rgba(255, 255, 255, 0.14) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.25) !important;
    opacity: 1.0 !important;
}

.dock-tab-btn.active svg {
    stroke: #38bdf8 !important;
}

/* Аватарка в профиле */
#prof-avatar-img, .prof-avatar-photo {
    width: 100% !important;
    height: 100% !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    display: block !important;
}

.prof-avatar-ring {
    border: 3px solid #38bdf8 !important;
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.4) !important;
}

/* Выравнивание строк рейтинга */
.leader-row {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
    padding: 10px 0 !important;
}

.leader-row b {
    white-space: nowrap !important;
    color: #fbbf24 !important;
    margin-left: auto !important;
    flex-shrink: 0 !important;
}

/* Тосты-уведомления */
#axis-toast-box {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 90%;
    max-width: 340px;
    pointer-events: none;
}

.axis-toast-item {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(56, 189, 248, 0.4);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 12px 16px;
    border-radius: 14px;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
}

/* Поля ввода без стрелок */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}
input[type="number"] { -moz-appearance: textfield !important; }

/* === КОНЕЦ === */


/* ==========================================================
   AXIS PREMIUM GLASS DESIGN SYSTEM (DARK GLASSMORPHISM)
   ========================================================== */

/* Всплывающие уведомления (Toasts) */
#axis-toast-box {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999999;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 90%;
    max-width: 360px;
    pointer-events: none;
}

.axis-toast-item {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(56, 189, 248, 0.4);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 16px rgba(56, 189, 248, 0.25);
    color: #fff;
    padding: 12px 18px;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    animation: toastAnim 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes toastAnim {
    from { opacity: 0; transform: translateY(-16px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Экраны с вертикальным скроллом и отступом */
.subview-pane {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    padding: 16px 16px 160px 16px !important;
    box-sizing: border-box !important;
    background: #080c14 !important;
    z-index: 50 !important;
}

/* Премиум стеклянные карточки */
.ios-card {
    background: rgba(15, 23, 42, 0.78) !important;
    backdrop-filter: blur(24px) !important;
    -webkit-backdrop-filter: blur(24px) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 20px !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4) !important;
    padding: 16px !important;
    margin-bottom: 12px !important;
}

/* Тачбар: неактивные кнопки строго прозрачные */
.dock-tab-btn {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    opacity: 0.55 !important;
    border-radius: 18px !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
}

/* Активная кнопка подсвечивается мягким матовым овалом */
.dock-tab-btn.active {
    background: rgba(255, 255, 255, 0.14) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.25) !important;
    opacity: 1.0 !important;
}

.dock-tab-btn.active svg {
    stroke: #38bdf8 !important;
}

/* Бейджи и статусы */
.tier-badge {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.15), rgba(37, 99, 235, 0.25));
    border: 1px solid rgba(56, 189, 248, 0.4);
    color: #38bdf8;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.verified-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: #2563eb;
    color: #fff;
    border-radius: 50%;
    font-size: 11px;
    margin-left: 6px;
}

/* Пресеты сумм и чипы методов */
.preset-chip {
    flex: 1;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    padding: 8px 0;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
}

.preset-chip.active {
    background: rgba(56, 189, 248, 0.15) !important;
    border-color: #38bdf8 !important;
    color: #38bdf8 !important;
}

/* Поля ввода без стрелок */
input[type="number"], input[type="text"] {
    background: rgba(15, 23, 42, 0.9) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 14px !important;
    color: #ffffff !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    padding: 12px 14px !important;
    outline: none !important;
    box-sizing: border-box !important;
}

input::-webkit-outer-spin-button, input::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}

/* Строки лидеров в рейтинге */
.leader-row {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
    padding: 10px 0 !important;
}

.leader-row b {
    white-space: nowrap !important;
    color: #fbbf24 !important;
    margin-left: auto !important;
}

/* Кнопки действий */
.primary-btn {
    background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 4px 18px rgba(37, 99, 235, 0.4) !important;
    border-radius: 16px !important;
    font-weight: 800 !important;
    color: #fff !important;
    cursor: pointer !important;
}

/* === КОНЕЦ === */


/* ==========================================================
   AXIS DOCK PROTECTION & SCROLL BOUNDARY FIX
   ========================================================== */

/* Точный упор скролла: контент останавливается ровно над меню */
.subview-pane {
    padding-bottom: 96px !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior-y: contain !important;
    box-sizing: border-box !important;
}

/* ЗАЩИТА ТАЧБАРА ОТ ПРОСВЕЧИВАНИЯ ТЕКСТА ЗАДНЕГО ПЛАНА */
.bottom-dock,
.dock-bar,
.hud-bottom-dock,
[class*="hud-bottom"],
.hud-bottom-overlay > div:first-child {
    background: rgba(8, 12, 22, 0.94) !important;
    backdrop-filter: blur(32px) saturate(190%) !important;
    -webkit-backdrop-filter: blur(32px) saturate(190%) !important;
    border: 1px solid rgba(56, 189, 248, 0.28) !important;
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.8), 0 0 18px rgba(56, 189, 248, 0.15) !important;
    border-radius: 28px !important;
}

/* ЧЕТКОСТЬ И ПОДСВЕТКА НЕАКТИВНЫХ КНОПОК ТАЧБАРА */
.dock-tab-btn {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    opacity: 0.78 !important;
    border-radius: 18px !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
}

.dock-tab-btn svg {
    stroke: #94a3b8 !important;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5)) !important;
    transition: all 0.2s ease !important;
}

.dock-tab-btn span,
.dock-tab-btn div,
.dock-tab-btn {
    color: #cbd5e1 !important;
    font-weight: 700 !important;
    font-size: 11px !important;
    letter-spacing: 0.2px !important;
}

/* АКТИВНАЯ ВКЛАДКА: МЯГКИЙ НЕОНОВЫЙ ОВАЛ И ЯРКИЙ ТЕКСТ */
.dock-tab-btn.active {
    background: rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.25) !important;
    opacity: 1.0 !important;
}

.dock-tab-btn.active svg {
    stroke: #38bdf8 !important;
    filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.6)) !important;
}

.dock-tab-btn.active span,
.dock-tab-btn.active div,
.dock-tab-btn.active {
    color: #ffffff !important;
    font-weight: 800 !important;
}

/* === КОНЕЦ === */


/* ==========================================================
   AXIS PLAYER BUTTONS, HUD & ORGANIC STAR GLOW FIX
   ========================================================== */

/* 1. ПЛАШКА АВТОРА И СЧЕТЧИКА В ПЛЕЕРЕ */
.author-badge-card, #vid-author, #vid-counter {
    background: rgba(8, 12, 22, 0.75) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #ffffff !important;
    font-weight: 800 !important;
    font-size: 13px !important;
    border-radius: 18px !important;
    padding: 6px 14px !important;
}

/* 2. ЧИСТЫЕ DARK-GLASS КНОПКИ ПЛЕЕРА (ЛАЙК, ОЦЕНКА, ШЕРИНГ, ЗВУК) */
.action-btn, .btn-reaction, [class*="action-btn"] {
    background: rgba(15, 23, 42, 0.55) !important;
    backdrop-filter: blur(18px) !important;
    -webkit-backdrop-filter: blur(18px) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 50% !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4) !important;
    transition: transform 0.15s ease, background 0.2s ease !important;
}

.action-btn svg, .btn-reaction svg {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4)) !important;
}

/* 3. ЗВЕЗДЫ В ОЦЕНКЕ: УБИРАЕМ КВАДРАТНЫЙ BOX-SHADOW */
.star, .star-btn, .rating-star, [data-star], .stars-row > * {
    box-shadow: none !important;
    border: none !important;
    background: transparent !important;
    transition: transform 0.15s ease, filter 0.2s ease !important;
}

/* Органическое лучевое золотое свечение по контуру звезды */
.star.active, .star-btn.active, .rating-star.active, [data-star].active,
.star.selected, .star-btn.selected {
    color: #f59e0b !important;
    filter: drop-shadow(0 0 10px rgba(245, 158, 11, 0.85)) !important;
    transform: scale(1.08) !important;
}

/* Модальное окно оценки */
.modal-rate-reel, #rate-modal, .rate-modal-box {
    background: rgba(15, 23, 42, 0.94) !important;
    backdrop-filter: blur(28px) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 24px !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8) !important;
}

/* === КОНЕЦ === */


/* === ФИКС ПЛАШКИ АВТОРА: ПОЛНАЯ ПРОЗРАЧНОСТЬ КОНТЕЙНЕРА === */
.hud-bottom-overlay {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* === ОРГАНИЧЕСКОЕ СВЕЧЕНИЕ ЗВЕЗД (БЕЗ КВАДРАТОВ) === */
.star, .star-btn, .rating-star, [data-star], .stars-row button, .stars-row span {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    padding: 0 4px !important;
    font-size: 32px !important;
    line-height: 1 !important;
    transition: transform 0.15s ease !important;
}

/* Золотое свечение строго по контуру глифа звезды через text-shadow */
.star.active, .star-btn.active, .rating-star.active, [data-star].active,
.star.selected, .star-btn.selected {
    color: #f59e0b !important;
    text-shadow: 0 0 12px #f59e0b, 0 0 22px rgba(245, 158, 11, 0.75) !important;
    filter: none !important;
    box-shadow: none !important;
    transform: scale(1.1) !important;
}

/* === КОНЕЦ ФИКСА === */


/* === ПРЕМИУМ ЦВЕТОВАЯ ПАЛИТРА ДЛЯ ХУДА И АВТОРА === */
.hud-bottom-overlay {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    display: flex !important;
    gap: 8px !important;
    align-items: center !important;
}

/* 1. Плашка автора: сапфировое матовое стекло */
#vid-author, .author-badge-card:first-child {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.75), rgba(30, 41, 59, 0.65)) !important;
    backdrop-filter: blur(24px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
    border: 1px solid rgba(56, 189, 248, 0.25) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
    font-weight: 800 !important;
    font-size: 13px !important;
    border-radius: 20px !important;
    padding: 7px 16px !important;
    letter-spacing: 0.3px !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6) !important;
}

/* 2. Бейдж счётчика видео: электро-голубой неоновый акцент */
#vid-counter, .author-badge-card#vid-counter {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.22), rgba(37, 99, 235, 0.28)) !important;
    backdrop-filter: blur(24px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
    border: 1px solid rgba(56, 189, 248, 0.45) !important;
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.25), inset 0 1px 1px rgba(255, 255, 255, 0.25) !important;
    color: #38bdf8 !important;
    font-weight: 800 !important;
    font-size: 13px !important;
    border-radius: 20px !important;
    padding: 7px 14px !important;
    text-shadow: 0 0 10px rgba(56, 189, 248, 0.6) !important;
}

/* === КОНЕЦ ПАЛИТРЫ === */


/* === АНИМАЦИЯ ЛЕТЯЩИХ ТОКЕНОВ И ПУЛЬСАЦИИ БАЛАНСА === */
.flying-token-particle {
    position: fixed;
    z-index: 9999999;
    pointer-events: none;
    font-size: 22px;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    filter: drop-shadow(0 0 10px rgba(245, 158, 11, 0.95)) drop-shadow(0 0 18px rgba(251, 191, 36, 0.7));
    transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.65s ease-in;
    will-change: transform, opacity;
}

/* Пульсация баланса при поглощении монет */
.balance-absorb-pulse {
    animation: balancePop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

@keyframes balancePop {
    0% { transform: scale(1); filter: drop-shadow(0 0 0 rgba(56, 189, 248, 0)); }
    50% { transform: scale(1.18); filter: drop-shadow(0 0 16px rgba(56, 189, 248, 0.9)); color: #38bdf8 !important; }
    100% { transform: scale(1); filter: drop-shadow(0 0 0 rgba(56, 189, 248, 0)); }
}

/* Активное красное сердечко при лайке */
.action-btn.liked, .btn-reaction.liked {
    background: rgba(239, 68, 68, 0.25) !important;
    border-color: rgba(239, 68, 68, 0.6) !important;
}
.action-btn.liked svg, .btn-reaction.liked svg {
    fill: #ef4444 !important;
    stroke: #ef4444 !important;
    filter: drop-shadow(0 0 10px rgba(239, 68, 68, 0.8)) !important;
}

/* === КОНЕЦ АНИМАЦИИ === */


/* ==========================================================
   AXIS LEADERBOARD PODIUM & TOURNAMENT CUP STYLES
   ========================================================== */

/* Карточка подиума Топ-3 */
.podium-box {
    display: flex !important;
    justify-content: center !important;
    align-items: flex-end !important;
    gap: 12px !important;
    margin: 18px 0 20px 0 !important;
    padding: 18px 10px 14px 10px !important;
    background: rgba(15, 23, 42, 0.72) !important;
    backdrop-filter: blur(24px) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 24px !important;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45) !important;
}

.podium-col {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    flex: 1 !important;
    text-align: center !important;
    position: relative !important;
}

/* 1-е место (Золото) */
.podium-col.rank-1 {
    transform: translateY(-8px) !important;
}

.podium-avatar-wrap {
    position: relative !important;
    margin-bottom: 8px !important;
}

.podium-crown {
    position: absolute !important;
    top: -18px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    font-size: 20px !important;
    filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.8)) !important;
    animation: crownFloat 2s ease-in-out infinite alternate !important;
}

@keyframes crownFloat {
    from { transform: translateX(-50%) translateY(0); }
    to { transform: translateX(-50%) translateY(-3px); }
}

.podium-avatar {
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4) !important;
}

.rank-1 .podium-avatar {
    width: 60px !important;
    height: 60px !important;
    font-size: 22px !important;
    background: linear-gradient(135deg, #f59e0b, #d97706) !important;
    border: 3px solid #fbbf24 !important;
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.5) !important;
}

.rank-2 .podium-avatar {
    width: 50px !important;
    height: 50px !important;
    font-size: 18px !important;
    background: linear-gradient(135deg, #64748b, #475569) !important;
    border: 2px solid #cbd5e1 !important;
    box-shadow: 0 0 15px rgba(203, 213, 225, 0.35) !important;
}

.rank-3 .podium-avatar {
    width: 50px !important;
    height: 50px !important;
    font-size: 18px !important;
    background: linear-gradient(135deg, #b45309, #78350f) !important;
    border: 2px solid #f97316 !important;
    box-shadow: 0 0 15px rgba(249, 115, 22, 0.35) !important;
}

.podium-badge {
    position: absolute !important;
    bottom: -4px !important;
    right: -4px !important;
    width: 20px !important;
    height: 20px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    color: #fff !important;
    border: 2px solid #0f172a !important;
}

.rank-1 .podium-badge { background: #fbbf24 !important; color: #000 !important; }
.rank-2 .podium-badge { background: #94a3b8 !important; }
.rank-3 .podium-badge { background: #f97316 !important; }

.podium-name {
    font-size: 12px !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    white-space: nowrap !important;
    max-width: 85px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.podium-score {
    font-size: 12px !important;
    font-weight: 800 !important;
    margin-top: 2px !important;
    white-space: nowrap !important;
}

.rank-1 .podium-score { color: #fbbf24 !important; text-shadow: 0 0 10px rgba(251, 191, 36, 0.5) !important; }
.rank-2 .podium-score { color: #e2e8f0 !important; }
.rank-3 .podium-score { color: #fdba74 !important; }

/* Пьедесталы под аватарами */
.podium-pedestal {
    width: 100% !important;
    margin-top: 8px !important;
    border-radius: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 14px !important;
    font-weight: 800 !important;
}

.rank-1 .podium-pedestal {
    height: 54px !important;
    background: linear-gradient(180deg, rgba(245, 158, 11, 0.25), rgba(245, 158, 11, 0.05)) !important;
    border: 1px solid rgba(251, 191, 36, 0.4) !important;
}

.rank-2 .podium-pedestal {
    height: 38px !important;
    background: linear-gradient(180deg, rgba(148, 163, 184, 0.2), rgba(148, 163, 184, 0.05)) !important;
    border: 1px solid rgba(148, 163, 184, 0.3) !important;
}

.rank-3 .podium-pedestal {
    height: 28px !important;
    background: linear-gradient(180deg, rgba(217, 119, 6, 0.2), rgba(217, 119, 6, 0.05)) !important;
    border: 1px solid rgba(249, 115, 22, 0.3) !important;
}

/* === КОНЕЦ ПОДИУМА === */


/* ==========================================================
   AXIS 3D LEADERBOARD & 100-PLAYER TOURNAMENT LIST
   ========================================================== */

/* 3D Иконки наград и пьедесталов */
.svg-3d-icon {
    display: inline-block;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.45));
    transition: transform 0.25s ease;
}

.podium-col.rank-1 .svg-3d-icon.crown {
    position: absolute;
    top: -24px;
    left: 50%;
    transform: translateX(-50%);
    filter: drop-shadow(0 2px 10px rgba(245, 158, 11, 0.85));
    animation: crownHover 2.2s ease-in-out infinite alternate;
}

@keyframes crownHover {
    from { transform: translateX(-50%) translateY(0); }
    to { transform: translateX(-50%) translateY(-4px) scale(1.04); }
}

/* Оптимизация 100 строк для 60fps на смартфонах */
.leader-row {
    content-visibility: auto !important;
    contain-intrinsic-size: 58px !important;
    transition: transform 0.15s ease, background 0.15s ease !important;
}

.leader-row:active {
    transform: scale(0.98) !important;
    background: rgba(30, 41, 59, 0.75) !important;
}

/* Выделение топ-10 золотистым оттенком номера */
.rank-top10 {
    color: #38bdf8 !important;
    font-weight: 800 !important;
}

.rank-top3 {
    color: #fbbf24 !important;
    font-weight: 900 !important;
}

/* === КОНЕЦ 3D ПОДИУМА === */


/* === ФИКС СЛОЕВ БОКОВЫХ КНОПОК AXIS === */
.hud-side-column {
  position: absolute !important;
  right: 12px !important;
  bottom: 110px !important;
  z-index: 99999 !important;
  pointer-events: auto !important;
}
.hud-side-column .action-node {
  pointer-events: auto !important;
  cursor: pointer !important;
  -webkit-tap-highlight-color: transparent !important;
  user-select: none !important;
}
.hud-side-column .action-circle-glass {
  pointer-events: auto !important;
  cursor: pointer !important;
}
.hud-side-column svg {
  pointer-events: none !important;
}
.touch-action-plane {
  z-index: 10 !important;
}
#sound-btn-icon svg {
  width: 24px !important;
  height: 24px !important;
}
