html, body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background: radial-gradient(ellipse at center, #202233 60%, #191a28 100%);
    color: #eee;
    
    overflow-x: auto;   /* 🔥 */
    overflow-y: auto;

}

.main {
    max-width: 420px;
    margin: 0 auto;
    padding: 16px;
}

.timer-box {
    background: #22253d;
    border-radius: 24px;
    margin: 6px 0;
    padding: 18px;
    text-align: center;
    box-shadow: 0 0 0 transparent !important;
    overflow: hidden;   /* <----- ВОТ ОНА */
}



/* Цифры таймера  */
.timer-wait {
    color: #a3ffe6;
    font-size: 22px;
    font-weight: bold;
    text-align: center;
    line-height: 1.22;
    letter-spacing: 1px;
    margin: 20px 0 16px 0;
    /* Можно glow, но деликатный */
    text-shadow:
      0 0 2px #009d91,
      0 0 6px #15ffbc33;
    /* Без анимаций! */
    transition: color 0.14s, text-shadow 0.14s;
}

.timer-value {
    color: #d6fff0;
    font-size: 46px;
    font-weight: bold;
    letter-spacing: 2px;
    text-align: center;
    text-shadow:
      0 0 3px #0a2832,
      0 0 8px #15ffbc99;
    animation: timer-glow-fade 1.1s infinite alternate;
}
@keyframes timer-glow-fade {
    0% { text-shadow: 0 0 3px #0a2832, 0 0 4px #15ffbc66; }
    100% { text-shadow: 0 0 3px #0a2832, 0 0 12px #15ffbc99; }
}



/* Кнопки запуска — общий блок и уникальные стили */
#startBtn, #stopBtn {
    font-size: 28px;
    width: 100%;
    min-width: 180px;
    min-height: 62px;
    border: none;
    border-radius: 18px;
    margin: 18px 0 18px 0;
    padding: 16px 0;
    font-weight: bold;
    letter-spacing: 2px;
    cursor: pointer;
    position: relative;
    outline: none;
    box-sizing: border-box;
    z-index: 2;
    transition: background 0.20s, box-shadow 0.15s, color 0.14s;
    overflow: hidden;
}
#startBtn {
    background: #09e97c;
    color: #101e13;
    text-shadow: 0 0 3px #00ffc1, 0 0 7px #00ffc155;
    box-shadow: 0 0 16px 3px #00ffb344, 0 0 5px 2px #00ffd733;
    border: 2px solid #15ffbc;
}
#startBtn:hover {
    background: #32ffbe;
    color: #0b5632;
    text-shadow: 0 0 7px #fff, 0 0 12px #15ffbc99;
    box-shadow: 0 0 19px 6px #2affd666, 0 0 8px 2px #16ffb880;
}
#startBtn:active {
    background: #0ab761;
    color: #001f11;
    box-shadow: 0 0 9px 3.5px #00ffc166;
}
#stopBtn {
    background: #ff2e63;
    color: #fff;
    text-shadow: 0 0 7px #fff, 0 0 13px #ff005a99;
    box-shadow: 0 0 14px 4px #ff2e6388, 0 0 7px 2px #ff2e6360;
    border: 2px solid #ff2e63;
}
#stopBtn:hover {
    background: #ff4d7e;
    box-shadow: 0 0 21px 6.5px #ff2e63cc, 0 0 9px 3px #ff5e99aa;
}
#stopBtn:active {
    background: #c41545;
    box-shadow: 0 0 8px 3px #ff2e6366;
}
#startBtn[disabled], #stopBtn[disabled] {
    opacity: 0.5;
}

#startBtn::before, #startBtn::after {
    content: '';
    position: absolute;
    left: -120%;
    width: 240%;
    height: 10px;
    background: linear-gradient(90deg, transparent 0%, #26ffe7 30%, #bbff44 55%, #26ffe7 80%, transparent 100%);
    opacity: 0.98;
    border-radius: 10px;
    pointer-events: none;
    animation: line-glow-green 2.1s linear infinite;
    z-index: 3;
    box-shadow: 0 0 16px 6px #19ff85cc, 0 0 14px 1px #88ff37aa;
}
#startBtn::before { top: 0; }
#startBtn::after  { bottom: 0; }
@keyframes line-glow-green {
    0% { left: -120%; }
    100% { left: 100%; }
}


    
#stopBtn::before, #stopBtn::after {
    content: '';
    position: absolute;
    left: -120%;
    width: 240%;
    height: 10px; /* Толще! */
    background: linear-gradient(90deg, transparent 0%, #ff5ba5 25%, #fff7a3 50%, #ff5ba5 75%, transparent 100%);
    opacity: 0.98;
    border-radius: 10px;
    pointer-events: none;
    animation: line-glow-pink 2.1s linear infinite;
    z-index: 3;
    box-shadow: 0 0 16px 6px #ff5ba5cc;
}
#stopBtn::before { top: 0; }
#stopBtn::after  { bottom: 0; }
@keyframes line-glow-pink {
    0% { left: -120%; }
    100% { left: 100%; }
}


/* Лидерборд */
.leaderboard {
    margin: 24px 0 12px 0;
    background: rgba(25, 26, 40, 0.0); /* полностью прозрачный */
    border-radius: 18px;
    padding: 14px;
    text-align: center;
}
.lb-title {
    font-size: 20px;
    margin-bottom: 8px;
}
.lb-table {
    width: 100%;
    font-size: 16px;
    margin: 0 auto;
}
.lb-table td {
    padding: 4px 7px;
}
.medal {
    font-size: 22px;
}
.prize {
    color: gold;
    font-weight: bold;
}
.win-range {
    color: #b8eb38;
    font-weight: bold;
}
.note {
    color: #ccc;
    font-size: 13px;
}
.top-legend {
    color: #ffe07a;
    font-size: 15px;
    margin-top: 8px;
}

/* Всегда flex! */
#winModal {
    position: fixed;                /* Окно поверх всех элементов */
    left: 0; top: 0;                /* Левый верхний угол */
    width: 100vw; height: 100vh;    /* На всю ширину/высоту экрана */
    background: rgba(12, 14, 22, 0.88); /* Полупрозрачный чёрный фон */
    z-index: 10;                    /* Поверх всех окон */
    display: flex;                  /* Центрируем содержимое */
    align-items: center;            /* Центр по вертикали */
    justify-content: center;        /* Центр по горизонтали */
    opacity: 0;                     /* Скрыто по умолчанию */
    pointer-events: none;           /* Не кликается, когда скрыто */
    transition: opacity 0.33s cubic-bezier(1,0,.16,1.01); /* Плавное появление/затухание */
    backdrop-filter: blur(7px);     /* Красивое размытие фона */
    overflow-y: auto;               /* Позволяет скроллить модалку, если много контента */
    -webkit-overflow-scrolling: touch; /* Лёгкий скролл на iOS */
}
/* Когда .active — плавное появление */
#winModal.active {
    opacity: 1;                   /* Полностью видно */
    pointer-events: auto;         /* Можно кликать */
}

/* --- Добавь адаптивности карточке! --- */
#winCard {
    background: #191a22;                /* Цвет самой карточки */
    border-radius: 28px;                /* Скругление */
    max-width: 340px;                   /* Максимальная ширина (на десктопах) */
    width: 96vw;                        /* Почти на всю ширину экрана, но с отступами */
    max-height: calc(100vh - 40px);     /* Не выходит за край экрана, всегда с запасом */
    overflow-y: auto;                   /* Если много текста — скролл внутри карточки */
    margin: 20px 0;                     /* Отступ сверху/снизу (для мобильных) */
    box-shadow: 0 10px 40px 0 #0007, 0 1.5px 6px 0 #09e80d55;  /* Тень (глубина) */
    padding: 30px 18px 24px 18px;       /* Внутренние отступы */
    box-sizing: border-box;             /* Не вылезает за пределы */
    /* Анимация появления */
    transform: translateY(60px) scale(0.57); /* Сдвинута вниз и чуть уменьшена в начале */
    opacity: 0;                              /* Скрыта */
    transition:
        opacity 0.52s 0.08s cubic-bezier(1,0,.16,1.01),   /* Плавное появление */
        transform 0.54s 0.11s cubic-bezier(1,0,.16,1.01); /* Плавный подъем и увеличение */
    will-change: transform, opacity;   /* Подсказка браузеру — будет анимация этих свойств */
}
/* Когда .active — делаем анимацию */
#winModal.active #winCard {
    opacity: 1;                       /* Показать */
    transform: translateY(0) scale(1.0); /* На место, полный размер */
    transition-delay: 0.56s, 1.13s;      /* Анимация чуть позже фона для красивого эффекта */
}


/* Победный блок */
#winshot {
    background: #232445;
    border-radius: 22px;
    padding: 24px 18px 14px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 4px 20px #000a;
    margin: 0 auto 16px auto;
    box-sizing: border-box;
}

.win-header {
    font-size: 24px;
    font-weight: bold;
    color: #ffe07a;
    margin-bottom: 8px;
}

.win-sub {
    font-size: 14px;
    color: #ccc;
    margin-bottom: 10px;
}

.place-row {
    font-size: 16px;
    font-weight: bold;
    color: #ffdd55;
    margin: 8px 0 2px;
}
.result-row {
    font-size: 14px;
    margin: 2px 0;
}

.reward-row {
    font-size: 16px;
    color: #00ff00;
    margin-top: 8px;
}
.reward-val {
    font-weight: bold;
}

/* QR */
#qrCanvas {
    margin-top: 10px;
    border-radius: 6px;
}

/* Proof */
.win-proof {
    background: #15191e;
    color: #b3e3b7;
    font-size: 11px;
    border-radius: 7px;
    padding: 7px 5px;
    margin: 10px 0 2px;
    text-align: left;
    word-break: break-all;
    width: 100%;
    box-sizing: border-box;
}

/* Ref */
.win-ref {
    color: #36fa6e;
    text-align: center;
    font-size: 11px;
    margin: 10px 0 0;
    word-break: break-all;
}

/* Назад */
.win-back-btn {
    background: linear-gradient(90deg, #26ffe7, #bbff44);
    color: #111;
    font-size: 20px;
    font-weight: bold;
    border: 2px solid #00ffcc;
    border-radius: 12px;
    padding: 10px 0;
    margin: 14px 0 0;
    width: 100%;
    cursor: pointer;
    box-shadow: 0 0 12px 2px #26ffe777;
    transition: background 0.3s, transform 0.2s;
}
.win-back-btn:hover {
    transform: scale(1.03);
    box-shadow: 0 0 16px 4px #00ffc977;
}

/* В главное меню — второстепенное действие, тот же размер что "Назад" */
.win-menu-btn {
    display: block;
    background: linear-gradient(90deg, #2d3446, #3a4257);
    color: #ffd500;
    font-size: 20px;
    font-weight: bold;
    border: 2px solid #3b4253;
    border-radius: 12px;
    padding: 10px 0;
    margin: 10px 0 0;
    width: 100%;
    text-align: center;
    text-decoration: none;
    box-sizing: border-box;
    cursor: pointer;
    box-shadow: 0 0 6px 1px #00000055;
    transition: background 0.3s, transform 0.2s;
}
.win-menu-btn:hover {
    transform: scale(1.03);
    background: linear-gradient(90deg, #3a4257, #454e66);
}


/* Адаптив */
@media (max-width: 500px) {
    .main {
        padding: 1px;
    }
    #winCard {
        padding: 0;
        max-width: 99vw;
    }
    #winshot {
        max-width: 95vw;
        padding: 16px 4vw 12px 4vw;
        border-radius: 14px;
    }
    .win-header {
        font-size: 20px;
    }
    .win-sub {
        font-size: 13px;
    }
    .place-row,
    .result-row,
    .reward-row {
        font-size: 14px;
    }
    .win-proof, .win-ref {
        font-size: 10px;
    }
    .win-back-btn {
        font-size: 12px;
        padding: 6px 0;
    }
    .win-menu-btn {
        font-size: 12px;
        padding: 6px 0;
    }
}
#qrCanvas {
    margin-top: 10px;
    border-radius: 12px;
    background: #fff;
}
.win-socials {
    display: flex;
    justify-content: center;
    margin: 12px 0 0 0;
}

.win-socials-block {
    margin-top: 12px;
    text-align: center;
}
.share-text {
    font-size: 13px;
    color: #aaa;
    margin-bottom: 6px;
}
.win-soc-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}
.soc-btn, .copy-btn {
    background: #333;
    color: #fff;
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 13px;
    text-decoration: none;
    font-weight: bold;
    border: none;
    cursor: pointer;
}
.soc-btn.vb {
    background: linear-gradient(145deg, #6f4dbf, #8e6be7);
    color: white;
}
.soc-btn.tg { background: #229ed9; }
.soc-btn.wa { background: #25d366; }
.soc-btn.fb { background: #4267B2; }
.copy-btn:hover, .soc-btn:hover {
    opacity: 0.8;
}

#eventsBox {
    opacity: 0;
    pointer-events: none;
    transition: opacity 1.35s;
}
#eventsBox.active {
    opacity: 1;
    pointer-events: auto;
}
.user-highlight {
    background: linear-gradient(90deg, #1bd87e33, #093);
    color: #fff;
    font-weight: bold;
    border-radius: 8px;
    box-shadow: 0 0 8px #09e80d33;
}
.avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  vertical-align: middle;
  margin-right: 6px;
}
#withdrawBox {
    opacity: 0;
    pointer-events: none;
    transition: opacity 1.15s cubic-bezier(.9,0,.16,1.01);
    display: none; /* Важно! */
}
#withdrawBox.active {
    opacity: 1;
    pointer-events: auto;
    display: block;
}
.podium-flex {
        display: flex;
        justify-content: center;
        align-items: flex-end;
        gap: 22px;
        margin-bottom: 10px;
}
.podium-card {
        display: flex;
        flex-direction: column;
        align-items: center;
        position: relative;
        background: none;
        box-shadow: none;
        min-height: 170px;
        padding: 6px 0 0 0;
}

.podium-avatar {
        width: 56px;
        height: 56px;
        border-radius: 50%;
        border: 3px solid #fff;
        background: #222;
        box-shadow: 0 4px 16px #0003;
        z-index: 2;
        margin-bottom: 1px;
        transition: box-shadow 0.25s;
}
.podium-winner-glow {
        box-shadow:
                0 0 0 5px #fff3,
                0 0 20px 5px #ffe271cc,
                0 0 34px 14px #fff99e33 !important;
}

.podium-medal {
        font-size: 30px;
        margin-bottom: 0;
        margin-top: 2px;
        text-shadow:
                0 1px 3px #0009,
                0 0 9px #fff6,
                0 0 22px #ffd700aa;
        filter: drop-shadow(0 0 8px #fff6);
        transition: filter 0.18s;
        z-index:3;
}
.podium-medal-0 { filter: drop-shadow(0 0 9px #b8b8ffcc); }
.podium-medal-1 { filter: drop-shadow(0 0 11px #ffe271cc); }
.podium-medal-2 { filter: drop-shadow(0 0 9px #ff9900bb); }

.podium-time {
        font-size: 15px;
        font-weight: bold;
        margin-top: 2px;
        text-shadow: 0 1px 7px #2228, 0 0 10px #fff4;
        letter-spacing: 0.5px;
        border-radius: 7px;
        padding: 1.5px 13px;
        background: rgba(32,32,50,0.10);
        /* background слабо-цветной, чтобы визуально лежало на пьедестале */
}

.pedestal-base {
        border-radius: 0 !important;
        /* Убрали скругления */
}
@keyframes pulse-glow {
        0% { opacity: 0.87; transform: translateX(-50%) scale(0.92);}
        100% { opacity: 1; transform: translateX(-50%) scale(1.05);}
}
@keyframes podium-glow-gold {
    0% { box-shadow: 0 0 22px 7px #ffe97c55, 0 0 46px 12px #ffd70022; }
    40% { box-shadow: 0 0 37px 15px #ffe97cbb, 0 0 60px 19px #ffd70055; }
    100% { box-shadow: 0 0 22px 7px #ffe97c55, 0 0 46px 12px #ffd70022; }
}
@keyframes podium-glow-silver {
    0% { box-shadow: 0 0 16px 7px #b8b8ff33, 0 0 38px 9px #a7f7ff22; }
    40% { box-shadow: 0 0 30px 14px #b8b8ffbb, 0 0 55px 19px #a7f7ff55; }
    100% { box-shadow: 0 0 16px 7px #b8b8ff33, 0 0 38px 9px #a7f7ff22; }
}
@keyframes podium-glow-bronze {
    0% { box-shadow: 0 0 13px 6px #ffb36233, 0 0 26px 7px #ff990022; }
    40% { box-shadow: 0 0 28px 13px #ffb362bb, 0 0 44px 17px #ff990055; }
    100% { box-shadow: 0 0 13px 6px #ffb36233, 0 0 26px 7px #ff990022; }
}
.podium-glow-gold {
    animation: podium-glow-gold 2.3s ease-in-out infinite;
}
.podium-glow-silver {
    animation: podium-glow-silver 2.8s ease-in-out infinite;
}
.podium-glow-bronze {
    animation: podium-glow-bronze 3.0s ease-in-out infinite;
}
.top-legend {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 48px;
    margin-top: -12px;
    margin-bottom: 8px;
}

.legend-item {
    font-weight: bold;
    font-size: 18px;
    min-width: 60px;
    text-align: center;
    filter: drop-shadow(0 0 8px #0008);
    position: relative;
    overflow: visible;
    background: linear-gradient(90deg,#fffbe4 10%,#ffe66c 35%,#ffc10e 70%,#fffbe4 100%);
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
}
.legend-center {
    font-size: 20px;
    color: #fff083;
}

.sparkle-star {
    position: absolute;
    width: 22px;
    height: 22px;
    pointer-events: none;
    opacity: 0;
    transform: scale(0.4) rotate(0deg);
    z-index: 2;
    animation: sparkle-star-glint 8.8s infinite;
    will-change: opacity, transform;
}
@keyframes sparkle-star-glint {
    0%, 90%   { opacity: 0; transform: scale(0.3) rotate(0deg);}
    92%       { opacity: 1; transform: scale(1.2) rotate(18deg);}
    94%       { opacity: 0.8; }
    96%       { opacity: 0; transform: scale(0.3) rotate(0deg);}
    100%      { opacity: 0; }
}



/* стрелки  */

.socials-arrows-svg {
    /* Контейнер для стрелок, занимает всю область блока соц. кнопок */
    position: absolute;
    left: 0;             /* прижимаем к левому краю */
    right: 0;            /* прижимаем к правому краю */
    top: 0;              /* прижимаем к верху */
    bottom: 0;           /* прижимаем к низу */
    width: 100%;         /* ширина 100% от родителя */
    height: 100%;        /* высота 100% от родителя */
    pointer-events: none;/* стрелки не блокируют клики по кнопкам */
    z-index: 10;         /* стрелки поверх всего контента внутри блока */
}

.socials-arrows-svg svg {
    /* Общий стиль для обеих стрелок */
    position: absolute;                    /* свободное позиционирование */
    width: 44px;                           /* ширина SVG-стрелки */
    height: 44px;                          /* высота SVG-стрелки */
    opacity: 0.99;                         /* почти полностью видимые */
    filter: drop-shadow(0 0 1px #00ffe0b0) /* бирюзовое свечение вокруг */
           drop-shadow(0 0 1px #fffbe6b0); /* мягкое белое свечение */
}

/* СТРЕЛКА TG (слева от TG, смотрит влево) */
.socials-arrows-svg .arrow-tg {
    left: 18px;                /* отступ от левого края (стрелка слева) */
    top: 70px;               /* вертикальная позиция — строго напротив кнопки TG */
    transform: scaleX(-1) rotate(0deg); /* зеркалим по горизонтали: стрелка "смотрит" влево */
    animation: arrow-move-tg 1.5s infinite alternate; /* анимация движения */
}

/* Анимация "дыхания" стрелки TG (движение влево и назад) */
@keyframes arrow-move-tg {
    0%   { transform: scaleX(-1) rotate(0deg) translateX(0); }
    50%  { transform: scaleX(-1) rotate(0deg) translateX(-15px); } /* стрелка уходит ещё левее */
    100% { transform: scaleX(-1) rotate(0deg) translateX(0); }
}

/* СТРЕЛКА FB (справа от FB, смотрит вправо) */
.socials-arrows-svg .arrow-fb {
    right: 28px;               /* отступ от правого края (стрелка справа) */
    top: 70px;               /* вертикальная позиция — строго напротив кнопки FB */
    transform: rotate(0deg);  /* без поворота: стрелка смотрит вправо */
    animation: arrow-move-fb 1.5s infinite alternate .4s; /* анимация движения, с задержкой */
}

/* Анимация "дыхания" стрелки FB (движение вправо и назад) */
@keyframes arrow-move-fb {
    0%   { transform: rotate(0deg) translateX(0); }
    50%  { transform: rotate(0deg) translateX(15px); } /* стрелка уходит ещё правее */
    100% { transform: rotate(0deg) translateX(0); }
}

/* Кнопки вкл выкл вибро звук */
.header-icons button {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    margin-left: 4px;
    padding: 0 2px;
    color: #00eaaa;
    opacity: 0.9;
    transition: opacity .2s;
}
.header-icons button:hover {
    opacity: 1;
}

/* Пульс и зум для текста */
/* Контрастный радужный текст с плавным зумом */
.share-text {
    font-size: 22px !important;
    font-weight: 900;
    letter-spacing: 0.3px;
    margin-bottom: 13px !important;
    padding: 0 10px;
    border-radius: 6px;
    /* Радужный градиент для текста */
    background: linear-gradient(90deg,
        #ff0000,  /* Красный */
        #ff9900,  /* Оранжевый */
        #ffee00,  /* Жёлтый */
        #33ff00,  /* Зелёный */
        #00fff7,  /* Голубой */
        #0066ff,  /* Синий */
        #a800ff,  /* Фиолетовый */
        #ff008c,  /* Розовый */
        #ff0000   /* Красный (замыкаем круг) */
    );
    background-size: 400% 100%;
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    /* Только плавный зум, без моргания */
    animation: text-zoom 1.2s infinite cubic-bezier(.7,0,.2,1), rainbow-move 5s infinite linear;
    /* Нет text-shadow! */
}

/* Зум — только один спокойный удар (нет двойного "сердцебиения") */
@keyframes text-zoom {
    0%   { transform: scale(1);}
    10%  { transform: scale(1.10);}
    25%  { transform: scale(1.16);}
    40%  { transform: scale(1.10);}
    60%  { transform: scale(1);}
    100% { transform: scale(1);}
}

/* Плавное движение радуги по тексту */
@keyframes rainbow-move {
    0%   { background-position:   0% 50%; }
    100% { background-position: 100% 50%; }
}

/* ---- Модальное затемнение ---- */
.special-win-modal {
    position: fixed; z-index: 99999; left:0; right:0; top:0; bottom:0;
    display: flex; align-items: center; justify-content: center;
    background: rgba(12,16,22,0.88); animation: fadeInBg .4s;
}
@keyframes fadeInBg { from { background: rgba(12,16,22,0); } to { background: rgba(12,16,22,0.88); } }

.special-win-card {
    min-width: 340px; max-width: 95vw; background: #232d39; border-radius: 24px;
    box-shadow: 0 10px 40px 0 #000b, 0 0 0 4px rgba(60,255,180,0.08);
    text-align: center; padding: 38px 28px 32px 28px; position: relative;
    animation: winScalePop .33s cubic-bezier(.4,2,.2,1); overflow: hidden;
}
@keyframes winScalePop {
    0% { transform: scale(0.76) rotate(-3deg); opacity: 0.1;}
    60% { transform: scale(1.12) rotate(1deg); opacity: 1;}
    100% { transform: scale(1) rotate(0);}
}
.special-win-title {
    font-size: 1.45em; font-weight: 900; margin-bottom: 10px;
    letter-spacing: 0.01em; color: var(--sw-color, #ffe22e);
    text-shadow: 0 0 24px var(--sw-color-glow, #ffe22e44),
                 0 4px 18px var(--sw-color-glow, #ffe22e33),
                 0 1px 0 #111;
}
.special-win-desc {
    font-size: 1.12em; color: #eee; margin-bottom: 22px;
    animation: fadeInText .4s .11s backwards;
}
@keyframes fadeInText { from { opacity:0; } to { opacity:1; } }
.special-win-amount {
    font-size: 2em; font-weight: bold; margin-bottom: 22px;
    color: var(--sw-color, #38ff36);
    text-shadow: 0 2px 18px var(--sw-color-glow, #38ff3670), 0 1px 0 #111;
    animation: popInAmount .5s .13s cubic-bezier(.4,2,.2,1) backwards;
}
@keyframes popInAmount {
    0% { transform: scale(.6) translateY(16px); opacity:.1;}
    70% { transform: scale(1.08) translateY(-2px);}
    100% { transform: scale(1) translateY(0);}
}
.special-win-img {
    display: block; margin: 28px auto 22px auto; width: 300px; height: 300px;
    max-width: 98vw; max-height: 98vh; object-fit: contain; border-radius: 22px;
    box-shadow: 0 0 0 2px var(--sw-color, #fff8), 0 0 30px 8px var(--sw-color-glow, #fff5);
    background: #fff1; animation: popInImg 0.4s cubic-bezier(.4,2,.2,1) backwards;
}
@keyframes popInImg {
    0% { transform: scale(0.7) rotate(-10deg); opacity:.1;}
    70% { transform: scale(1.1) rotate(3deg);}
    100% { transform: scale(1) rotate(0);}
}
.special-win-proof {
    margin-top: 14px; font-size: 0.66em; color: #b8bac0; background: none;
    border-radius: 0; padding: 7px 0 0 0; border-top: 1px solid #313945;
    width: 100%; text-align: left; word-break: break-all;
}
.special-win-proof div {
    line-height: 1.18; margin: 0 0 1px 0; font-size: 1em; color: #b8bac0; text-align: left;
}
.special-win-proof b { color: #ececec; font-weight: 500; font-size: 1em; }
.special-win-ok-btn {
    margin-top: 10px; min-width: 120px; font-size: 1.13em; font-weight: bold; padding: 10px 28px;
    background: linear-gradient(90deg, #22fd6d 0%, #16cdd9 100%); border-radius: 15px; border: none;
    color: #1d2a21; box-shadow: 0 2px 18px #22fd6e66; cursor: pointer; transition: background .18s, box-shadow .22s;
}
.special-win-ok-btn:hover {
    box-shadow: 0 2px 24px #22fd6e99;
    background: linear-gradient(90deg, #16cdd9 0%, #22fd6d 100%);
}



#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle at center, #0e0f1a, #000);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  overflow: hidden;
}

#preloader.fade-out {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

#countdown .circle {
  width: 240px;
  height: 240px;
  border: 6px solid #00ffc8;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 40px #00ffc8, inset 0 0 30px #00ffc8;
  animation: softGlow 2s ease-in-out infinite;
}

@keyframes softGlow {
  0%, 100% { box-shadow: 0 0 18px #00ffc8, inset 0 0 12px #00ffc8; }
  50%      { box-shadow: 0 0 34px #00ffc8, inset 0 0 22px #00ffc8; }
}

#countdown .count {
  font-size: 34px;
  font-weight: bold;
  font-family: 'Segoe UI', sans-serif;
  color: #00ffc8;
  text-shadow: 0 0 12px #00ffc8;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

#countdown .circle.zoomout {
  animation: zoomout 1.2s ease forwards;
}

@keyframes zoomout {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(30);
    opacity: 0;
  }
}

#galleryPreloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle at center, #0e0f1a, #000);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

#galleryPreloader.fade-out {
  opacity: 0;
  visibility: hidden;
}

.gallery-loader {
  width: 64px;
  height: 64px;
  border: 6px solid #00ffc855;
  border-top: 6px solid #00ffc8;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}



#specialWinnersWrapper {
    position: relative;       /* Родительский контейнер для абсолютных элементов */
    height: 64px;             /* Высота блока */
    overflow: hidden;         /* Скрываем всё, что выходит за пределы */
    margin: 6px 0 10px 0;     /* Внешние отступы: сверху 6px, снизу 10px */
    padding: 2px 6px;         /* Внутренние отступы: сверху/снизу 2px, слева/справа 6px */
    background: rgba(0,0,0,0.3); /* Полупрозрачный тёмный фон */
    border-radius: 8px;       /* Скруглённые углы */
    box-shadow: 0 0 6px #00f2ff55; /* Голубая неоновая подсветка */
}

/* Внутренние обёртки */
.special-prize-wrap {
    position: relative;   /* Чтобы потомки могли позиционироваться внутри */
    width: 100%;          /* Занимает всю ширину родителя */
    height: 100%;         /* И всю высоту */
}
#specialWinnersContainer {
    display: flex;            /* Гибкий контейнер */
    justify-content: center;  /* Горизонтальное центрирование */
    align-items: center;      /* Вертикальное центрирование */
    height: 100%;             /* На всю высоту родителя */
}

/* Элемент карусели */
.prize-item {
    position: absolute;       /* Все призы накладываются друг на друга */
    top: 10px;                /* Сдвигаем вниз (регулирует вертикаль) */
    left: 0;                  /* Выравнивание по левому краю */
    width: 100%;              /* Растягиваем по ширине */
    display: flex;            /* Делаем строку из аватара + текста + сундука */
    justify-content: center;  /* Центрируем содержимое по горизонтали */
    align-items: center;      /* Центрируем содержимое по вертикали */
    gap: 8px;                 /* Отступы между элементами */
    text-align: center;       /* Центровка текста внутри */
    pointer-events: none;     /* Отключаем клики (только показ) */
    opacity: 0;               /* Сначала невидим */
    transform: translateY(20px); /* И сдвинут вниз */
    transition: none;         /* Без плавных переходов (всё анимацией) */
}

/* Аватар/картинки */
.prize-item img {
    width: 48px;                  /* Ширина */
    height: 48px;                 /* Высота */
    aspect-ratio: 1 / 1;          /* Всегда квадрат */
    object-fit: cover;            /* Обрезаем, если картинка не квадрат */
    border-radius: 50%;           /* Делаем круглую (аватар) */
    box-shadow: 0 0 6px #00f2ff, 0 0 12px #00f2ff; /* Неоновое свечение */
    flex-shrink: 0;               /* Не уменьшается при нехватке места */
    display: block;               /* Убираем артефакты inline-элементов */
}

/* Анимация появления/ухода всего блока */
@keyframes floatInOut {
    0%   { opacity: 0; transform: translateY(20px); }   /* снизу и невидим */
    15%  { opacity: 1; transform: translateY(0); }      /* появляется */
    85%  { opacity: 1; transform: translateY(0); }      /* держится на месте */
    100% { opacity: 0; transform: translateY(-20px); }  /* уходит вверх */
}
.prize-item.animate {
    animation: floatInOut 4s ease-in-out forwards; /* Запускаем анимацию */
}

/* Текст "Поймал" */
.prize-catch-label {
    /* Важно: без animation, запуск идёт из JS */
    font-size: 18px;          /* Размер */
    color: #ff9bff;           /* Розово-фиолетовый */
    font-weight: 700;         /* Жирный */
    text-shadow: 0 0 2px #ff00ff88, 0 0 4px #ff99ff55; /* Подсветка */
}

/* Текст приза */
.prize-title-text {
    font-size: 18px;          /* Размер */
    font-weight: 600;         /* Ещё жирнее */
    color: #fff;              /* Белый */
    text-shadow: 0 0 3px #00f2ff, 0 0 6px #00f2ffbb; /* Голубое свечение */
    margin-top: 2px;          /* Отступ сверху */
}

/* Анимация появления "из точки" */
@keyframes fadeInGlow {
    0%   { opacity: 0; transform: scale(0) translateY(20px); } /* точка внизу */
    50%  { opacity: 0.8; transform: scale(1.1) translateY(0); } /* вырастает */
    70%  { transform: scale(1.05); }                           /* лёгкая отдача */
    100% { opacity: 1; transform: scale(1); }                  /* финал */
}

/* Если решишь запускать анимацию через класс, а не через JS */
.animate-catch {
    animation: fadeInGlow 2s ease-in-out;
}


/* ===== DROPDOWN MENU ===== */
/* ===== DROPDOWN MENU — FINAL TELEGRAM FIX ===== */
/* ===== OVERLAY ===== */
#menuOverlay{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.55);
  backdrop-filter:blur(4px);
  z-index:9998;
  opacity:0;
  pointer-events:none;
  transition:opacity .25s ease;
}

#menuOverlay.open{
  opacity:1;
  pointer-events:auto;
}


/* ===== TOP MENU ===== */
#topMenu{
  position:fixed;
  top:90px;
  right:16px;
  width:260px;

  background:linear-gradient(180deg,#1d2133,#151826);
  border-radius:20px;
  padding:14px;

  box-shadow:
    0 20px 40px rgba(0,0,0,.55),
    inset 0 1px 0 rgba(255,255,255,.04);

  z-index:9999;

  opacity:0;
  transform:translateY(-12px) scale(.98);
  pointer-events:none;

  transition:
    opacity .25s ease,
    transform .25s cubic-bezier(.2,.9,.3,1);
}

#topMenu.open{
  opacity:1;
  transform:translateY(0) scale(1);
  pointer-events:auto;
}


/* ===== MENU BUTTON ===== */
.menuBtn{
  width:100%;
  display:flex;
  align-items:center;
  gap:12px;

  background:#262b37;
  color:#ffd500;
  border:none;

  padding:12px 16px;
  border-radius:14px;

  font-size:16px;
  font-weight:700;
  text-align:left;

  margin-bottom:8px;
  cursor:pointer;

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.06),
    0 2px 6px rgba(0,0,0,.35);

  transition:
    background .18s ease,
    transform .15s ease,
    box-shadow .15s ease;
}

.menuBtn:last-child{
  margin-bottom:0;
}


/* ===== HOVER / ACTIVE ===== */
.menuBtn:hover{
  background:#30374a;
  transform:translateX(3px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.08),
    0 4px 10px rgba(0,0,0,.45);
}

.menuBtn:active{
  transform:translateX(1px) scale(.98);
}


/* ===== ICONS INSIDE MENU ===== */
.menuBtn img,
.menuIcon{
  width:20px;
  height:20px;
  object-fit:contain;
  flex-shrink:0;
  filter:drop-shadow(0 1px 2px rgba(0,0,0,.6));
  transition:transform .15s ease;
}

.menuBtn:hover img{
  transform:scale(1.12);
}


/* ===== OPTIONAL: DIVIDER (если понадобится) ===== */
.menuDivider{
  height:1px;
  margin:10px 0;
  background:linear-gradient(
    to right,
    transparent,
    rgba(255,255,255,.15),
    transparent
  );
}

/* ===== BALANCE BUTTON ===== */
/* ===== BALANCE BUTTON — CLEAN PREMIUM ===== */
.balance-btn{
  display:flex;
  align-items:center;
  gap:10px;

  background:linear-gradient(135deg,#2a2f3f,#1e2233);
  border:none;                 /* ❌ убрали рамку */
  border-radius:16px;
  margin-top: 10px;           /* ⬅ КЛЮЧЕВОЕ */
  padding:10px 16px;

  cursor:pointer;
  box-shadow:0 4px 12px rgba(0,0,0,.35);
  transition:
    box-shadow .25s ease,
    transform .18s ease,
    filter .25s ease;
}

/* ✨ hover / tap */
.balance-btn:hover{
  box-shadow:
    0 0 0 1px rgba(255,215,0,.15),
    0 10px 28px rgba(255,215,0,.35),
    0 0 22px rgba(255,66,102,.25);
  transform:translateY(-1px);
}

/* 👆 tap */
.balance-btn:active{
  transform:scale(.97);
  box-shadow:
    0 6px 18px rgba(0,0,0,.45);
}

.balance-label{
  font-size:14px;
  font-weight:700;
  color:#ffd500;
  opacity:.9;
}

.balance-value{
  font-size:18px;
  font-weight:900;
  color:#ff4266;
  white-space:nowrap;
}

/* ===============================
   SCORE CARD (MAIN SCREEN)
   =============================== */

.score-card {
    background: linear-gradient(180deg,#1c2330,#121722);
    border-radius: 16px;
    padding: 14px;
    margin: 12px 16px;
    cursor: pointer;
    box-shadow: 0 0 18px rgba(0,255,180,0.18);
}

.score-title {
    font-size: 13px;
    opacity: 0.8;
    margin-bottom: 6px;
}

.score-bar {
    height: 8px;
    background: rgba(255,255,255,0.08);
    border-radius: 8px;
    overflow: hidden;
}

.score-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg,#00ffcc,#00ff88);
    transition: width .6s ease;
}

.score-footer {
    margin-top: 6px;
    display: flex;
    justify-content: space-between;
    font-size: 15px;
    font-weight: 600;
}

#scorePlace {
    opacity: 0.7;
    font-size: 13px;
}
.score-value {
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.score-unit {
    font-size: 11px;
    opacity: 0.6;
}

.score-meta {
    margin-top: 6px;
    font-size: 12px;
    opacity: 0.7;
}



/* ===============================
   RATING BUTTON — SAME AS BALANCE
   =============================== */

.rating-btn{
  display:flex;
  flex-direction:column;
  gap:8px;

  margin:12px 0 10px;

  padding:12px 16px;

  background:linear-gradient(135deg,#2a2f3f,#1e2233);
  border-radius:16px;
  border:none;

  cursor:pointer;

  box-shadow:0 4px 12px rgba(0,0,0,.35);

  transition:
    box-shadow .25s ease,
    transform .18s ease,
    filter .25s ease;
}

/* hover / tap — 1:1 как balance */
.rating-btn:hover{
  box-shadow:
    0 0 0 1px rgba(255,215,0,.15),
    0 10px 28px rgba(255,215,0,.35),
    0 0 22px rgba(255,66,102,.25);
  transform:translateY(-1px);
}

.rating-btn:active{
  transform:scale(.97);
  box-shadow:0 6px 18px rgba(0,0,0,.45);
}

/* ===== HEADER ===== */

.rating-btn-header{
  display:flex;
  justify-content:space-between;
  align-items:baseline;
}

.rating-title{
  font-size:14px;
  font-weight:700;
  color:#ffd500;
  opacity:.9;
}

.rating-value{
  font-size:14px;
  font-weight:900;
  color:#e9fff6;
  white-space:nowrap;
}

.rating-level{
  margin-left:6px;
  font-size:11px;
  opacity:.65;
}

/* ===== PROGRESS TRACK ===== */

.rating-progress{
  height:10px;
  width:100%;
  border-radius:10px;
  overflow:hidden;
  background:rgba(255,255,255,.08);
  box-shadow:inset 0 1px 2px rgba(0,0,0,.45);
}

/* ===== PROGRESS FILL ===== */

.rating-progress-fill{
  height:100%;
  width:0%;
  background:linear-gradient(90deg,#00ffd0,#00ff88);
  box-shadow:0 0 10px rgba(0,255,180,.45);
  transition:width .6s ease, box-shadow .25s ease, filter .25s ease;
}

/* подсветка прогресса вместе с кнопкой */
.rating-btn:hover .rating-progress-fill{
  box-shadow:
    0 0 0 1px rgba(255,215,0,.15),
    0 0 14px rgba(255,215,0,.55),
    0 0 22px rgba(0,255,180,.55);
  filter:brightness(1.15);
}

/* ===============================
   RATING PAYWALL MODAL
   =============================== */

#ratingPaywallModal{
  position:fixed;
  inset:0;
  z-index:10001;
  display:none;
}

#ratingPaywallModal.show{
  display:flex;
  align-items:center;
  justify-content:center;
}

#ratingPaywallModal .rating-modal-backdrop{
  position:absolute;
  inset:0;
  background:rgba(12,16,22,.82);
  backdrop-filter:blur(6px);
  animation:fadeInBg .35s;
}

#ratingPaywallModal .rating-modal{
  position:relative;
  z-index:1;

  width:calc(100vw - 32px);
  max-width:360px;

  background:linear-gradient(180deg,#1c2330,#121722);
  border-radius:22px;
  padding:22px 18px 20px;
  text-align:center;

  box-shadow:
    0 10px 40px rgba(0,0,0,.55),
    0 0 0 2px rgba(0,255,180,.10),
    0 0 24px rgba(0,255,180,.25);

  animation:modalPop .45s cubic-bezier(.2,.9,.25,1);
}

#ratingPaywallModal h3{
  margin:0 0 10px;
  font-size:18px;
  font-weight:800;
  color:#ffd500;
  text-shadow:0 0 12px #ffd50055;
}

#ratingPaywallModal p{
  font-size:14px;
  line-height:1.45;
  color:#e9fff6;
  opacity:.9;
  margin:0 0 14px;
}

#ratingPaywallModal ul{
  list-style:none;
  padding:0;
  margin:0 0 16px;
}

#ratingPaywallModal li{
  font-size:14px;
  padding:6px 0;
  color:#fff;
}

#ratingPaywallModal li b{
  color:#00ffd0;
  font-weight:800;
}


/* ===============================
   BASE RATING MODAL — AURA STABLE
   =============================== */

#baseRatingModal{
  position:fixed;
  inset:0;
  z-index:10002;
  display:none;
}

#baseRatingModal.show{
  display:block;
}



#baseRatingModal .rating-modal-backdrop{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.55);
}

#baseRatingModal .rating-modal{
  position: relative;
  z-index: 1;

  /* width: calc(100vw - 32px);*/
  /* max-width: 420px;*/
  
  width: auto;          /* 🔥 автоширина */
  max-width: none;      /* 🔥 убрать лимит */
  
  /* 🔥 ВАЖНО */
  margin: 24px auto;
  padding: 18px 60px 16px 18px; /* ← добавили воздух справа */
  
  background: linear-gradient(180deg,#1c2330,#121722);
  border-radius: 22px;
  
  text-align: center;

  overflow: visible;
}

/* ===== TITLE ===== */
#baseRatingModal h3{
  margin:0 0 12px;
  font-size:20px;
  font-weight:900;
  color:#ffd500;
}




/* ===============================
   AURA CORE — ЕДИНСТВЕННЫЙ БОКС
   отвечает ТОЛЬКО за ауру внутри модалки
   =============================== */

#baseAuraBox{
  position: relative;      
  /* ⬆ родитель для SVG и текста загрузки */

  width: 400px;            
  /* ⬆ ФИКСИРОВАННАЯ ширина ауры (ключ к стабильности) */

  height: 400px;           
  /* ⬆ ФИКСИРОВАННАЯ высота (чтобы SVG не схлопывался) */

  margin: 0 auto 14px;     
  /* ⬆ ЦЕНТРОВКА ПО ГОРИЗОНТАЛИ (auto)
       + отступ снизу до кнопок */

  display: flex;           
  /* ⬆ включаем flex только ВНУТРИ ауры */

  align-items: center;     
  /* ⬆ вертикально центрирует SVG */

  justify-content: center; 
  /* ⬆ горизонтально центрирует SVG */
}


/* ===============================
   SVG АУРЫ
   ВАЖНО: НЕЛЬЗЯ absolute
   =============================== */

#baseAuraBox svg{
  width: 400px;            
  /* ⬆ совпадает с размером контейнера */

  height: 400px;           
  /* ⬆ гарантирует круг, а не овал */

  display: block;          
  /* ⬆ убирает inline-артефакты (svg по умолчанию inline) */
}


/* ===============================
   ТЕКСТ "Загрузка ауры…"
   =============================== */

#baseAuraBox .muted{
  position: absolute;      
  /* ⬆ накладывается поверх SVG */

  inset: 0;               
  /* ⬆ растягиваем на всю ауру */

  display: flex;           
  /* ⬆ включаем центрирование */

  align-items: center;     
  /* ⬆ центр по вертикали */

  justify-content: center; 
  /* ⬆ центр по горизонтали */

  font-size: 14px;         
  /* ⬆ читаемый, но не доминирующий */

  opacity: .7;             
  /* ⬆ визуально вторичный */
}


/* ===============================
   ACTION BUTTONS
   кнопки под аурой
   =============================== */

#baseRatingModal .rating-actions{
  display: flex;           
  /* ⬆ вертикальный стек кнопок */

  flex-direction: column;  
  /* ⬆ кнопки одна под другой */

  gap: 10px;               
  /* ⬆ расстояние между кнопками */

  margin-top: 6px;         
  /* ⬆ отступ от ауры */
}


/* ===============================
   ОСНОВНЫЕ КНОПКИ (PRO / VIP)
   =============================== */

#baseRatingModal .btn-main{
  width: 100%;             
  /* ⬆ кнопка на всю ширину карточки */

  padding: 12px;           
  /* ⬆ комфортный тап */

  border-radius: 14px;     
  /* ⬆ единый стиль */

  background: #262b37;     
  /* ⬆ базовый фон */

  color: #ffd500;          
  /* ⬆ фирменный жёлтый */

  border: none;            
  /* ⬆ без рамок */

  font-weight: 800;        
  /* ⬆ визуальный акцент */

  cursor: pointer;         
  /* ⬆ UX */
}


/* ===============================
   ВТОРИЧНАЯ КНОПКА (Закрыть)
   =============================== */

#baseRatingModal .btn-secondary{
  width: 100%;             

  padding: 11px;           

  border-radius: 14px;     

  background: #252b37;     

  color: #ffd500;          

  border: 1px solid #3b4253; 
  /* ⬆ визуально слабее main */

  font-weight: 700;        

  cursor: pointer;         
}
/* ===== AVATAR RING (CABINET LEVEL) ===== */

.avatar-wrap{
  width:32px;
  height:32px;
  position:relative;
  display:inline-block;
  border-radius:50%;
}

.avatar-wrap img{
  width:28px;
  height:28px;
  border-radius:50%;
  margin:2px;
  display:block;
}

/* само кольцо */
.avatar-wrap::before{
  content:"";
  position:absolute;
  inset:0;
  border-radius:50%;
  border:2px solid rgba(255,255,255,.15);
  box-shadow:0 0 10px rgba(255,255,255,.15);
}

/* уровни */
.avatar-wrap.level-0::before{ border-color:rgba(255,255,255,.1); box-shadow:none; }
.avatar-wrap.level-1::before{ border-color:#22fda4; box-shadow:0 0 12px #22fda455; }
.avatar-wrap.level-2::before{ border-color:#00aaff; box-shadow:0 0 12px #00aaff55; }
.avatar-wrap.level-3::before{ border-color:#ffd700; box-shadow:0 0 14px #ffd70066; }
.avatar-wrap.level-4::before{ border-color:#ff3df5; box-shadow:0 0 14px #ff3df566; }
.avatar-wrap.level-5::before{ border-color:#ff7a00; box-shadow:0 0 14px #ff7a0066; }



/* ===============================
   HELLO BLOCK (AVATAR + TEXT)
   =============================== */

.hello-box{
  display:flex;
  align-items:center;
  justify-content:space-between; /* 🔥 КЛЮЧ */
  gap:10px;
  margin-bottom:8px;
}
.hello-actions{
  display:flex;
  gap:6px;
  flex-shrink:0;
  z-index:2;
}


.hello-text{
  font-size:15px;
  color:#eafff7;
}


#myAvatarEntry {
  position: relative;
  z-index: 1; /* 👉 было 200 */
  pointer-events: auto;
  cursor: pointer;
  margin-left: 18px;   /* 👉 МЕНЯЙ ЭТО */
  
}




/* ============================================================
   AVATAR MENU — STABLE FINAL (WITH SCROLL)
   ============================================================ */

/* ROOT */
#myServicesModal{
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
}
#myServicesModal.show{
  pointer-events: auto;
}

/* BACKDROP */
.ms-backdrop{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: .25s;
}
#myServicesModal.show .ms-backdrop{
  opacity: 1;
  pointer-events: auto;
}

/* CARD */
.ms-card{
  position: fixed;
  top: 70px;
  left: 16px;
  width: 320px;
  max-width: calc(100vw - 32px);

  background: linear-gradient(180deg,#1d2133,#151826);
  border-radius: 20px;
  padding: 16px;

  box-shadow:
    0 20px 40px rgba(0,0,0,.55),
    inset 0 1px 0 rgba(255,255,255,.04);

  /* === SCROLL === */
  max-height: calc(100vh - 90px);   /* 🔥 влезает в экран */
  overflow-y: auto;                 /* 🔥 скролл всей модалки */
  -webkit-overflow-scrolling: touch;

  display: flex;
  flex-direction: column;

  opacity: 0;
  transform: translateY(-12px) scale(.98);
  transition: .25s ease;

  pointer-events: none;
}
#myServicesModal.show .ms-card{
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

/* TITLES */
.ms-title{
  text-align: center;

  font-size: 22px;
  font-weight: 900;
  letter-spacing: .4px;

  /* ЗОЛОТОЙ ГРАДИЕНТ */
  background: linear-gradient(
    180deg,
    #fff2a8 0%,
    #ffd34d 30%,
    #e6b800 55%,
    #b88900 100%
  );

  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

  /* ТЁМНАЯ 3D ТЕНЬ */
  text-shadow:
    0 1px 0 rgba(255,255,255,.15), /* лёгкая грань */
    0 2px 0 rgba(0,0,0,.35),
    0 4px 6px rgba(0,0,0,.6);

  margin-bottom: 10px;
}



/* BUTTONS */
.ms-btn,
.ms-close{
  width: 100%;
  background: #262b37;
  color: #ffd500;
  border: none;
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 20px;
  font-weight: 900;
  margin-bottom: 10px;
  cursor: pointer;
  transition: background .15s;
}
.ms-btn:hover,
.ms-close:hover{
  background: #30374a;
}

/* POINTS */
.points-balance{
  margin: 6px 0 14px;
  
  color: #ffd24d;
  text-align: center;
  
  
  font-size: 20px;
  font-weight: 900;
  color: #ffd84a;

  text-shadow:
    0 1px 0 #6a4a00,
    0 2px 6px rgba(0,0,0,.7),
    0 0 10px rgba(255,215,120,.7);
}

/* SCREENS */
#servicesMain,
#shieldMenu,
#vipMenu{
  display: none;
  flex-direction: column;
}
#servicesMain.active,
#shieldMenu.active,
#vipMenu.active{
  display: flex;
}

/* =========================
   SHIELD SCREEN
   ========================= */


#shieldMenu{
  gap: 12px;
}

/* =========================
   ICON ZONE — AUTO SIZE
   ========================= */

#shieldIcons,
#vipIcons{
  position: relative;

  /* 🔥 УБРАЛИ ФИКС 280px */
  width: fit-content;
  height: fit-content;

  /* чтобы центрировался внутри модалки */
  margin: 0 auto 10px;
  
 
  /* ничего не обрезаем */
  
  overflow: visible;

  /* чтобы абсолютные дети не ломали поток */
  display: block;
}

/* если браузер старый — fallback */
@supports not (width: fit-content) {
  #shieldIcons,
  #vipIcons{
    display: inline-block;
  }
}



/* ============================================================
   RADIAL ICON (VIP / SHIELD)
   БЕЗ КОЛЬЦА — ТОЛЬКО СВЕЧЕНИЕ
   ============================================================ */

/* === БАЗОВЫЙ КОНТЕЙНЕР ВЕНКА === */
.shield-icon.radial{
  position: absolute;

  width: 46px;
  height: 46px;

  margin-left: -23px;
  margin-top:  -23px;

  border-radius: 50%;
  background: #1b2132;

  display: flex;
  align-items: center;
  justify-content: center;

  /* ❌ КОЛЬЦА БОЛЬШЕ НЕТ */
  border: none;

  cursor: pointer;

  transform-origin: center center;
  transition: transform .15s ease;
}

/* === САМА КАРТИНКА ВЕНКА === */
.shield-icon.radial img{
  width: 46px;
  height: 46px;
}

/* === СОСТОЯНИЕ ВЫБОРА === */
.shield-icon.radial.active{
  z-index: 10;

  /* 🔥 ТОЛЬКО СВЕЧЕНИЕ */
  box-shadow:
    0 0 12px rgba(255,215,0,.8),
    0 0 26px rgba(255,215,0,.5);

  /* 🔥 АНИМАЦИЯ ВЫЕЗДА + ЗУМА */
  animation: vip-move-center 5s ease-out forwards;
}

/* ============================================================
   АНИМАЦИЯ: ВЫЕЗД К ЦЕНТРУ + ЗУМ + ВОЗВРАТ
   ============================================================ */

@keyframes vip-move-center {

  /* === СТАРТ === */
  0% {
    transform: scale(1);
  }

  /* === ВЫЕЗД В ЦЕНТР + ЗУМ === */
  10% {
    left: 50%;
    top: 80%; /* ⬅️ регулирует высоту центра */
    transform:
      translate(-50%, -50%)
      scale(4.75);
  }

  /* === ПИК ЗУМА === */
  90% {
    left: 50%;
    top: 80%;
    transform:
      translate(-50%, -50%)
      scale(6.45);
  }

  /* === ВОЗВРАТ (ВЫБРАН, НО СПОКОЕН) === */
  100% {
    transform: scale(1.38);
  }
}


/* =============старый код выбора зум венка ===============================================
.shield-icon.radial.active{
  transform: scale(1.78);
  border-color: #ffd700;
  box-shadow: 0 0 14px rgba(255,215,0,.7);
  z-index: 3;
}
============================================================ */
/* BUTTON ZONE */
#shieldMenu .ms-btn,
#shieldMenu .ms-close{
  margin-bottom: 0;
}
/* ============================================================
   MENU BUTTON HOVER — BURGER STYLE (FIXED)
   ============================================================ */

.ms-btn,
.ms-close{
  transition:
    background .18s ease,
    transform .15s ease,
    box-shadow .18s ease;
}

/* hover как в бургер-меню */
.ms-btn:hover,
.ms-close:hover{
  background: #30374a;                 /* чуть светлее */
  transform: translateX(3px);          /* 🔑 мягкий сдвиг вправо */

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.08), /* внутренний свет */
    0 6px 14px rgba(0,0,0,.45);          /* объём */
}

/* active (клик) — лёгкое «нажатие» */
.ms-btn:active,
.ms-close:active{
  transform: translateX(3px) scale(.98);
  box-shadow:
    inset 0 2px 4px rgba(0,0,0,.35);
}
/* ===== CUSTOM CONFIRM MODAL ===== */

.confirm-overlay{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.65);
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:9999;
  animation:fadeIn .2s ease;
}

.confirm-overlay.hidden{
  display:none;
}

.confirm-box{
  background:#121826;
  border-radius:16px;
  width:90%;
  max-width:320px;
  padding:18px;
  box-shadow:0 0 30px rgba(0,0,0,.6);
  animation:scaleIn .2s ease;
}

.confirm-title{
  font-size:16px;
  font-weight:600;
  margin-bottom:10px;
  text-align:center;
}

.confirm-message{
  font-size:14px;
  opacity:.9;
  text-align:center;
  margin-bottom:18px;
}

.confirm-actions{
  display:flex;
  gap:10px;
}

.confirm-actions .btn{
  flex:1;
  padding:10px 0;
  border-radius:10px;
  border:none;
  font-weight:600;
  cursor:pointer;
}

.confirm-actions .btn.cancel{
  background:#2a3142;
  color:#aaa;
}

.confirm-actions .btn.ok{
  background:#f5c542;
  color:#000;
}

@keyframes fadeIn{
  from{opacity:0}
  to{opacity:1}
}
@keyframes scaleIn{
  from{transform:scale(.9)}
  to{transform:scale(1)}
}

/* =========================================================
   SUCCESS MODAL — NDT HOLD X (FINAL)
   Компактный, аккуратный, без наездов
   ========================================================= */

/* ===== OVERLAY ===== */
.success-overlay{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.65);
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:10000;
  animation:fadeIn .15s ease;
}

.success-overlay.hidden{
  display:none;
}

/* ===== BOX ===== */
.success-box{
  background:#0f1422;
  border-radius:16px;
  width:92%;
  max-width:300px;
  padding:16px 14px 14px;
  text-align:center;
  box-shadow:0 0 30px rgba(0,0,0,.65);
  animation:scaleIn .15s ease;
}

/* ===== ICON ===== */
.success-icon img{
  width:54px;
  height:54px;
  margin-bottom:6px;
  filter:drop-shadow(0 0 10px rgba(255,215,0,.55));
}

/* ===== TITLE ===== */
.success-title{
  font-size:15px;
  font-weight:700;
  margin-bottom:4px;
  color:#ffd54f;
}

/* ===== MESSAGE BLOCK ===== */
.success-message{
  font-size:13px;
  line-height:1.35;
  color:#cfd6ff;
  margin-bottom:8px;
}

/* +1 день */
.success-plus{
  margin:6px 0;
  font-weight:700;
  color:#ffd54f;
}

/* Было / Стало */
.success-row{
  margin-top:3px;
  font-size:12.5px;
  color:#9aa4bf;
}

.success-row span{
  color:#ffffff;
  font-weight:500;
}

/* ===== BALANCE ===== */
.success-balance{
  margin-top:6px;
  font-weight:600;
  font-size:13px;
  color:#ffd54f;
}

/* =========================================================
   BUTTONS
   ========================================================= */



/* ===== OK BUTTON (ВТОРИЧНАЯ) ===== */
.success-btn{
  width:100%;
  padding:10px 0;
  border-radius:12px;
  border:none;
  font-weight:600;
  background:#2a3148;
  color:#fff;
  cursor:pointer;
  opacity:.9;
}

/* =========================================================
   ANIMATIONS
   ========================================================= */
@keyframes fadeIn{
  from{opacity:0}
  to{opacity:1}
}

@keyframes scaleIn{
  from{transform:scale(.94)}
  to{transform:scale(1)}
}







/* =========================================================
   VIP МЕНЮ
 ========================================================= */  
#vipMenu{
  display:none;
  opacity:0;
  transform:translateX(16px);
  pointer-events:none;
}

#vipMenu.active{
  display:flex;
  flex-direction:column;
  opacity:1;
  transform:translateX(0);
  pointer-events:auto;
}

















/* =========================================================
   VIP WREATH — УВЕЛИЧЕНИЕ + СДВИГ ВЛЕВО
   ========================================================= */

.avatar-wrap {
  position: relative;
  isolation: isolate;
}

/* === ВЕНОК === */
.avatar-wrap .vip-wreath {
  position: absolute;
  top: 50%;
  left: 50%;

  /* ⬅️ сдвиг ВЛЕВО */
  transform: translate(-54%, -46%);

  /* ⭕ увеличение */
  width: 205%;
  height: 205%;

  object-fit: contain;
  pointer-events: none;
  z-index: 11;

  filter: none;
}

/* === ПОДИУМ — ещё больше === */
.avatar-wrap.podium .vip-wreath {
  width: 205%;
  height: 205%;

  /* подиум чуть сильнее влево */
  transform: translate(-51.5%, -46%);
}

/* === АВАТАР — всегда поверх и чистый === */
.avatar-wrap img:not(.vip-wreath):not(.vip-badge) {
  position: relative;
  z-index: 2;
  filter: none !important;
}

/* === VIP бейдж (если есть) === */
.avatar-wrap .vip-badge {
  position: absolute;
  right: -6px;
  top: -6px;
  width: 18px;
  height: 18px;
  z-index: 33;
}
/* === показ список купленных VIP  === */
.vip-active-box {
  margin-top: 16px;
  padding: 10px;
  background: rgba(255,255,255,0.04);
  border-radius: 12px;
  font-size: 13px;
}

.vip-active-title {
  font-weight: 700;
  margin-bottom: 6px;
  color: #ffd54f;
}

.vip-active-row {
  display: flex;
  justify-content: space-between;
  opacity: .9;
  padding: 3px 0;
}

.vip-empty {
  opacity: .5;
  text-align: center;
}

/* =========================
   ACTIVE VIP LIST (WITH ICONS)
   ========================= */

.vip-active-box{
  margin-top: 12px;
}

.vip-active-title{
  font-weight: 800;
  color: #ffd24d;
  margin-bottom: 8px;
}

.vip-active-row{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
}

.vip-active-icon{
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.vip-key{
  flex: 1;
  font-weight: 700;
  color: #fff;
}

.vip-date{
  font-size: 12px;
  color: #aaa;
}


/* =========================
   ACTIVE SHIELD LIST (VIP STYLE)
   ========================= */

.shield-active-box{
  margin-top: 12px;
}

.shield-active-title{
  font-weight: 800;
  color: #ffd24d;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.shield-active-row{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
}

.shield-active-icon{
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex-shrink: 0;
}

.shield-key{
  flex: 1;
  font-weight: 700;
  color: #ffffff;
}

.shield-date{
  font-size: 12px;
  color: #aaaaaa;
  white-space: nowrap;
}





/* ============================================================
   DONATE MODAL — FINAL COMPACT / CLEAN / PROJECT STYLE
   Используется для поддержки проекта (поинты)
   ============================================================ */

/* ============================================================
   DONATE MODAL — MATCH MY SERVICES STYLE
   Цвет, объем, тени, движение как в меню
   ============================================================ */

/* ===============================
   OVERLAY
   =============================== */
.ui-modal{
  position:fixed;
  inset:0;
  display:none;
  align-items:center;
  justify-content:center;
  background:rgba(6,10,18,.82);
  backdrop-filter:blur(8px);
  z-index:100000;
}
.ui-modal.show{
  display:flex;
}

/* ===============================
   MODAL CARD (как ms-card)
   =============================== */
.ui-modal-box{
  width:90%;
  max-width:330px;

  background:linear-gradient(
    180deg,
    #232a38 0%,
    #1a2030 100%
  );

  border-radius:20px;
  padding:18px 16px;

  color:#eafff7;
  text-align:center;

  box-shadow:
    0 20px 40px rgba(0,0,0,.55),
    inset 0 1px 0 rgba(255,255,255,.06);

  animation: modal-pop .25s ease-out;
}

/* ===============================
   POP ANIMATION
   =============================== */
@keyframes modal-pop{
  from{
    transform:scale(.94) translateY(12px);
    opacity:0;
  }
  to{
    transform:scale(1) translateY(0);
    opacity:1;
  }
}

/* ===============================
   TITLES (как "Мои возможности")
   =============================== */
.ui-modal-title{
  font-size:20px;
  font-weight:800;
  color:#ffd84d;
  margin-bottom:6px;
  text-shadow:0 2px 8px rgba(255,216,77,.35);
}
.ui-modal-sub{
  font-size:14px;
  opacity:.85;
  margin-bottom:14px;
}

/* ===============================
   AMOUNT BUTTONS (как ms-btn)
   =============================== */
.donate-grid{
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:8px;
  margin-bottom:12px;
}

.donate-btn{
  padding:8px 0;
  border-radius:12px;
  border:none;

  background:linear-gradient(
    180deg,
    #2b3344,
    #222836
  );

  color:#ffd84d;
  font-weight:800;
  font-size:14px;

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.06),
    0 6px 12px rgba(0,0,0,.45);

  transition:all .15s ease;
}

.donate-btn:hover{
  transform:translateY(-1px);
}

.donate-btn.active{
  background:linear-gradient(
    180deg,
    #ffd84d,
    #ffbf2f
  );
  color:#2a2300;

  box-shadow:
    0 0 16px rgba(255,216,77,.55),
    0 10px 20px rgba(0,0,0,.55);
}

/* ===============================
   INPUT (утопленный)
   =============================== */
.donate-input{
  width:100%;
  padding:12px;
  margin-bottom:14px;

  border-radius:14px;
  border:none;

  background:#111620;
  color:#fff;
  font-size:16px;
  font-weight:700;
  text-align:center;

  box-shadow:
    inset 0 2px 6px rgba(0,0,0,.7),
    inset 0 1px 0 rgba(255,255,255,.04);
}

/* ===============================
   ACTION BUTTONS
   =============================== */
.donate-actions{
  display:flex;
  flex-direction:column;
  gap:10px;
}

/* ПОДДЕРЖАТЬ — как главная кнопка */
.donate-actions .ui-btn.primary{
  padding:16px;
  font-size:18px;
  font-weight:900;
  border-radius:18px;
  border:none;

  background:linear-gradient(
    180deg,
    #ffd84d,
    #ffbf2f
  );
  color:#2a2300;

  box-shadow:
    0 0 18px rgba(255,216,77,.6),
    0 12px 26px rgba(0,0,0,.6);

  transition:all .15s ease;
}

.donate-actions .ui-btn.primary:hover{
  transform:translateY(-1px);
}

/* ОТМЕНА — вторичная */
.donate-actions .ui-btn.ghost{
  padding:9px;
  font-size:14px;
  border-radius:14px;

  background:#1b2232;
  color:#9aa3b2;

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.05),
    0 6px 14px rgba(0,0,0,.45);
}

/* ===============================
   BASE
   =============================== */
.ui-btn{
  cursor:pointer;
  user-select:none;
}

/* ======================================================
   JOSS ORBIT (VIP-LIKE) — BASE
   ====================================================== */

/* avatar-wrap НЕ объявляем — он уже есть в ring.css */

/* ===============================
   АНИМАЦИЯ ВРАЩЕНИЯ
   =============================== */
@keyframes joss-orbit {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ======================================================
   === БАЗА (если не попали ни в один контекст) ===
   ====================================================== */

.joss-orbit {
  /* --- РАДИУС орбиты (насколько далеко от аватара) --- */
  --joss-radius: 32px;

  /* --- РАЗМЕР иконки JOSS (масштаб) --- */
  --joss-size: 1;

  /* --- СКОРОСТЬ вращения --- */
  --joss-speed: 6s;

  position: absolute;

  /* ⭕ радиус: отрицательный inset */
  inset: calc(var(--joss-radius) * -1);

  pointer-events: none;

  /* ⏱ скорость вращения */
  animation: joss-orbit var(--joss-speed) linear infinite;
}

/* сама картинка JOSS */
.joss-orbit img {
  width: 100%;
  height: 100%;
  object-fit: contain;

  /* 📏 масштаб (размер JOSS) */
  transform: scale(var(--joss-size));

  /* ✨ базовое свечение */
  filter:
    drop-shadow(0 0 6px rgba(255,215,0,.9))
    drop-shadow(0 0 18px rgba(255,215,0,.6));
}

/* ======================================================
   🏆 ПЬЕДЕСТАЛ (avatar-wrap.podium)
   ====================================================== */

.avatar-wrap.podium .joss-orbit {
  /* ⭕ РАДИУС — дальше от аватара */
  --joss-radius: 36px;

  /* 📏 РАЗМЕР — чуть крупнее */
  --joss-size: 0.55;

  /* ⏱ СКОРОСТЬ — медленнее, торжественно */
  --joss-speed: 9s;

  z-index: 9; /* JOSS поверх VIP */
}

.avatar-wrap.podium .joss-orbit img {
  filter:
    drop-shadow(0 0 10px rgba(255,215,0,1))
    drop-shadow(0 0 28px rgba(255,215,0,.8));
}

/* VIP венок ниже JOSS */
.avatar-wrap.podium .vip-wreath {
  z-index: 6;
}

/* ======================================================
   📋 ЛИДЕРБОРД (обычные строки)
   ====================================================== */

.avatar-wrap:not(.podium):not(#myAvatarEntry) .joss-orbit {
  /* ⭕ РАДИУС — компактнее */
  --joss-radius: 22px;

  /* 📏 РАЗМЕР — меньше, аккуратно */
  --joss-size: 0.55;

  /* ⏱ СКОРОСТЬ — стандарт */
  --joss-speed: 8s;

  z-index: 7;
}

.avatar-wrap:not(.podium):not(#myAvatarEntry) .joss-orbit img {
  filter:
    drop-shadow(0 0 5px rgba(255,215,0,.7))
    drop-shadow(0 0 14px rgba(255,215,0,.5));
}

/* VIP венок ниже */
.avatar-wrap:not(.podium):not(#myAvatarEntry) .vip-wreath {
  z-index: 5;
}

/* ======================================================
   👤 ШАПКА / МОЙ АВАТАР
   ====================================================== */

#myAvatarEntry .joss-orbit {
  /* ⭕ РАДИУС — ближе всего */
  --joss-radius: 22px;

  /* 📏 РАЗМЕР — компактный */
  --joss-size: 0.55;

  /* ⏱ СКОРОСТЬ — максимально спокойно */
  --joss-speed: 12s;

  opacity: .9;
  z-index: 6;
}

#myAvatarEntry .joss-orbit img {
  filter:
    drop-shadow(0 0 4px rgba(255,215,0,.6));
}

/* VIP венок ниже */
#myAvatarEntry .vip-wreath {
  z-index: 4;
}

/* ======================================================
   🔥 OPTIONAL — ИНДИВИДУАЛЬНЫЕ JOSS ПО КЛЮЧУ
   (можно продавать / усиливать / апгрейдить)
   ====================================================== */

/*
.joss-orbit[data-joss="clover"] {
  --joss-size: 1.15;
}

.joss-orbit[data-joss="sun"] {
  --joss-speed: 4s;
}

.joss-orbit[data-joss="angel"] img {
  filter:
    drop-shadow(0 0 12px #ffffff)
    drop-shadow(0 0 24px #ffd700);
}
*/


/* =========================================================
   CABINET SYSTEM — ОБЩАЯ СТРУКТУРА
   ========================================================= */

.cabinet-system {
  display: flex;
  flex-direction: column;
  gap: 20px;                  /* ⬅ ОСНОВНОЙ ВЕРТИКАЛЬНЫЙ ОТСТУП (чтоб не слипалось) */
  color: #e9f0ee;
  font-size: 14px;
  
  margin-top: 20px; /* ⬅ РАЗДЕЛЯЕТ ПРАВИЛА И СИСТЕМУ */


}

/* =========================================================
   ОБЩАЯ СЕКЦИЯ (КАРТОЧКА)
   ========================================================= */

.cabinet-section {
  background: rgba(255,255,255,0.04);
  border-radius: 14px;
  padding: 16px;
  position: relative;
}

/* =========================================================
   ВИЗУАЛЬНЫЙ РАЗДЕЛИТЕЛЬ МЕЖДУ СЕКЦИЯМИ
   (тонкий, ненавязчивый)
   ========================================================= */

.cabinet-section + .cabinet-section::before {
  content: "";
  position: absolute;
  top: -10px;              /* линия между секциями */
  left: 12px;
  right: 12px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255,255,255,0.12),
    transparent
  );
}


/* =========================================================
   ПОДСВЕЧЕННАЯ СЕКЦИЯ (БОНУСЫ / ВАЖНОЕ)
   ========================================================= */

.cabinet-section.highlight {
  background: linear-gradient(
    180deg,
    rgba(255,215,0,0.08),
    rgba(255,255,255,0.02)
  );
}

/* =========================================================
   ЗАГОЛОВКИ
   ========================================================= */

.cabinet-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 10px;
}

/* =========================================================
   ТЕКСТЫ
   ========================================================= */

.cabinet-text {
  line-height: 1.45;
  margin-bottom: 6px;
}

.cabinet-text.muted {
  opacity: 0.75;
}

/* =========================================================
   ЧАКРА-ГРАДИЕНТ
   ========================================================= */

.chakra-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-size: 12px;
  opacity: 0.9;
}

.chakra-gradient {
  flex: 1;
  height: 8px;
  border-radius: 6px;
  background: linear-gradient(
    90deg,
    #ff3b3b,
    #ff8c00,
    #ffd700,
    #00ff99,
    #00c3ff,
    #7a5cff,
    #b04cff
  );
}

/* =========================================================
   БОНУСЫ / СТАТУСЫ (КАРТОЧКИ)
   ========================================================= */

.bonus-card {
  display: flex;
  gap: 12px;
  background: rgba(0,0,0,0.25);
  border-radius: 12px;
  padding: 12px;
  margin-top: 10px;
}

.bonus-icon {
  font-size: 20px;
  line-height: 1;
}

.bonus-name {
  font-weight: 700;
  margin-bottom: 4px;
}

.bonus-desc {
  font-size: 13px;
  line-height: 1.4;
  opacity: 0.95;
}

/* =========================================================
   ФУТЕР СЕКЦИИ
   ========================================================= */

.cabinet-footer {
  margin-top: 14px;
  font-size: 13px;
  opacity: 0.85;
}

/* =========================================================
   ПРАВИЛА (СПЕЦ-СЕКЦИЯ)
   ========================================================= */

.rules-section {
  background: rgba(255,255,255,0.035);
}

/* карточка правила */
.rule-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(0,0,0,0.28);
  border-radius: 12px;
  padding: 10px 12px;
  margin-top: 8px;
}

.rule-icon {
  font-size: 18px;
  line-height: 1;
  margin-top: 2px;
}

.rule-text {
  font-size: 13px;
  line-height: 1.45;
  color: #e9f0ee;
}

.rule-text b {
  color: #ffd86a;
}
/* =========================
   EMPTY JOSS STATE
   ========================= */

.shield-empty{
  margin-top: 14px;
  padding: 14px 12px;

  text-align: center;
  font-size: 14px;
  font-weight: 600;

  color: #ffd54f;

  background: linear-gradient(
    180deg,
    rgba(255,213,79,0.08),
    rgba(255,213,79,0.02)
  );

  border-radius: 14px;

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.06),
    0 0 12px rgba(255,213,79,.18);

  letter-spacing: .3px;
  opacity: .9;
}
/* =========================
   EMPTY VIP STATE
   ========================= */

.vip-empty{
  margin-top: 14px;
  padding: 14px 12px;

  text-align: center;
  font-size: 14px;
  font-weight: 600;

  color: #ffd54f;

  background: linear-gradient(
    180deg,
    rgba(255,213,79,0.08),
    rgba(255,213,79,0.02)
  );

  border-radius: 14px;

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.06),
    0 0 12px rgba(255,213,79,.18);

  letter-spacing: .3px;
  opacity: .9;
}




/* === CLICK PASS THROUGH: VIP/JOSS/STAR MUST NOT EAT CLICKS === */
.avatar-wrap .vip-wreath,
.avatar-wrap .joss-orbit,
.avatar-wrap .joss-orbit *,
.avatar-wrap .orbit-star,
.avatar-wrap .orbit-star * {
  pointer-events: none !important;
}

/* если венок/орбита сделаны через псевдоэлементы */
.avatar-wrap::before,
.avatar-wrap::after {
  pointer-events: none !important;
}
.aura-level-title {
    text-align: center;
    font-weight: 700;
    font-size: 24px;     /* ← увеличил */
    margin-bottom: 14px;
    letter-spacing: 0.5px;
}


/* контейнер кнопок ПОДАРКОВ АНОНИМ */
.gift-item{
    display:flex;
    justify-content:space-between;
    margin:10px 0;
}

.gift-title{
    font-size:20px;
    font-weight:700;
    margin-bottom:14px;
    text-align:center;
    color:#ffd54f;
}

.gift-section-title{
    margin-top:18px;
    margin-bottom:8px;
    font-weight:700;
    color:#aaa;
    font-size:15px;
}

.gift-row{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:10px 12px;
    margin-bottom:8px;
    background:rgba(255,255,255,.05);
    border-radius:12px;
}

.gift-left{
    display:flex;
    align-items:center;
    gap:10px;
}

.gift-icon{
    width:54px;
    height:54px;
    object-fit:contain;
    filter:drop-shadow(0 0 8px rgba(255,215,0,.4));
}

.gift-info{
    display:flex;
    flex-direction:column;
}

.gift-name{
    font-size:15px;
    font-weight:600;
}

.gift-date{
    font-size:14px;
    opacity:.6;
}

/* ===============================
   ТОЛЬКО КНОПКИ СЖАЛИ
================================ */

.gift-actions{
    display:flex;
    flex-direction:column;
    gap:6px;                 /* меньше расстояние */
    align-items:flex-end;
}

.gift-actions .gift-btn{ 
    padding:6px 10px; /* меньше отступ */ 
    height:30px; /* ниже */ 
    min-height:30px; font-size:13px; /* меньше текст */ 
    border-radius:9px; width:115px; /* фикс ширина */ 
}

/* ===============================
   ОСНОВНАЯ ЗЕЛЁНАЯ КНОПКА
================================ */

.gift-btn,
.sell-btn,
.btn-green {

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 8px 14px;     /* меньше */
    height: 34px;          /* фикс */
    min-height: 34px;      /* убрали 34px */

    border-radius: 9px;

    font-size: 13px;
    font-weight: 600;

    border: none;
    cursor: pointer;

    background: linear-gradient(180deg, #2fe68a 0%, #18c46c 100%);
    color: #0b1a12;

    box-shadow:
        0 3px 8px rgba(0,0,0,.25);

    transition: all .2s ease;
}


/* ===============================
   HOVER
================================ */

.gift-btn:hover,
.sell-btn:hover,
.btn-green:hover {

    transform: translateY(-1px);

    box-shadow:
        0 5px 14px rgba(46, 230, 138, 0.35),
        0 0 10px rgba(46, 230, 138, 0.5);

    filter: brightness(1.05);
}


/* ===============================
   ACTIVE
================================ */

.gift-btn:active,
.sell-btn:active,
.btn-green:active {

    transform: translateY(0);
    box-shadow:
        0 2px 6px rgba(0,0,0,.3) inset;
}

.gift-list {
    max-height: 55vh;
    overflow-y: auto;
    padding-right: 6px;
}

/* красивый скролл */
.gift-list::-webkit-scrollbar {
    width: 4px;
}

.gift-list::-webkit-scrollbar-thumb {
    background: #2fe68a;
    border-radius: 4px;
}

/* ===============================
   БОЛЬШАЯ КНОПКА "СДЕЛАТЬ ПОДАРОК"
================================ */

.gift-main-btn {
    padding: 12px 24px;
    height: 44px;
    min-height: 44px;

    font-size: 16px;
    font-weight: 700;

    border-radius: 14px;

    box-shadow:
        0 6px 18px rgba(46,230,138,.35),
        0 0 12px rgba(46,230,138,.5);
}

/* ================= CUSTOM POPUP ================= */

.custom-popup{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.65);
    backdrop-filter:blur(6px);
    display:none;
    align-items:center;
    justify-content:center;
    z-index:99999;
}

.popup-box{
    width:90%;
    max-width:360px;
    background:linear-gradient(180deg,#111827,#0b1220);
    border-radius:18px;
    padding:25px 20px;
    text-align:center;
    box-shadow:0 0 40px rgba(0,255,140,.15);
    animation:popupFade .25s ease;
}

.popup-icon{
    font-size:34px;
    margin-bottom:12px;
}

.popup-text{
    font-size:16px;
    color:#fff;
    margin-bottom:20px;
}

.popup-btn{
    width:100%;
    padding:12px;
    border:none;
    border-radius:12px;
    background:#00e676;
    color:#000;
    font-weight:600;
    cursor:pointer;
    transition:.2s;
}

.popup-btn:hover{
    transform:scale(1.03);
}

@keyframes popupFade{
    from{opacity:0;transform:scale(.9);}
    to{opacity:1;transform:scale(1);}
}

/* ================= BOT CHOICE MODAL (визуал как у аура-буста, ================= */
/* переиспользует .boost-overlay/.boost-box/.boost-title/.boost-actions/     */
/* .boost-cancel из aura.css — здесь только кнопки выбора)                   */

.botchoice-levels{
    display:flex;
    flex-direction:column;
    gap:10px;
    margin:16px 0 14px;
}

.botchoice-btn{
    padding:15px 16px;
    border:none;
    border-radius:14px;
    font-weight:800;
    font-size:15px;
    cursor:pointer;
    color:#fff;
    transition:transform .12s ease, filter .12s ease;
}
.botchoice-btn:hover{
    filter:brightness(1.08);
}
.botchoice-btn:active{
    transform:scale(.96);
}

.botchoice-tg{
    background:linear-gradient(180deg,#2aabee,#0088cc);
    box-shadow:0 6px 18px rgba(0,136,204,.4), 0 0 18px rgba(42,171,238,.35);
}

.botchoice-web{
    background:linear-gradient(180deg,#00e5ff,#00b8cc);
    color:#06222a;
    box-shadow:0 6px 18px rgba(0,229,255,.4), 0 0 18px rgba(0,229,255,.35);
}

/* ================= бейдж сундука ================= */

.prize-image-wrapper{
    position:relative;
    width:300px;
    margin:0 auto 12px auto;
}

.rarity-ribbon{
    position:absolute;

    bottom:18px;
    right:-40px;

    transform:rotate(-35deg);  /* ← меняем знак */

    padding:6px 40px;
    border-radius:20px;

    font-size:13px;
    font-weight:700;
    letter-spacing:1px;
    text-transform:uppercase;
    color:#fff;

    z-index:10;
    box-shadow:0 8px 18px rgba(0,0,0,0.45);
}



.rarity-ribbon::before,
.rarity-ribbon::after{
    content:'';
    position:absolute;
    top:50%;
    width:12px;
    height:12px;
    background:inherit;
    transform:translateY(-50%) rotate(45deg);
}

.rarity-ribbon::before{
    left:-6px;
}

.rarity-ribbon::after{
    right:-6px;
}

.prize-image-wrapper img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 0 22px #0005;
    display: block;
}

.rarity-badge {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    display: none;
}

#rarityBadgeInner {
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 700;
    border-radius: 18px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #fff;
    backdrop-filter: blur(4px);
}







.card-rarity-badge {
    display:inline-block;
    padding:4px 10px;
    border-radius:14px;
    font-size:12px;
    font-weight:700;
    letter-spacing:0.5px;
}

.token-full{
  font-size:12px;
  word-break:break-all;
}


.token-pattern {
    font-weight:700;
    padding:2px 4px;
    border-radius:4px;
}

.token-epic {
    color:#fff;
    background:linear-gradient(45deg,#8e2de2,#4a00e0);
    box-shadow:0 0 6px #a855f7;
}

.token-legendary {
    color:#000;
    background:linear-gradient(45deg,#f7971e,#ffd200);
    box-shadow:0 0 6px #ffb300;
}

.token-mythic {
    color:#fff;
    background:linear-gradient(45deg,#ff416c,#ff4b2b);
    box-shadow:0 0 6px #ff416c;
}

.token-ultra {
    color:#fff;
    background:linear-gradient(45deg,#ff003c,#ff5f00);
    box-shadow:0 0 8px #ff003c;
}

/* ================= SMART KEY FORGE ================= */

.forge-modal{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.75);
  backdrop-filter:blur(8px);
  display:flex;
  justify-content:center;
  align-items:center;
  z-index:99999;
}

.forge-modal.hidden{
  display:none;
}

.forge-box{
  width:95%;
  max-width:420px;
  height:85vh;                /* ВАЖНО */
  background:#15171a;
  border-radius:18px;
  padding:16px;
  box-shadow:0 0 40px rgba(0,255,200,.2);
  display:flex;
  flex-direction:column;
  overflow:hidden;
}

/* HEADER */
.forge-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:6px;
}

.forge-title{
  font-weight:700;
  font-size:18px;
  color:#00ffcc;
}

#forgeClose{
  cursor:pointer;
  font-size:20px;
}

.forge-sub{
  font-size:13px;
  color:#aaa;
  margin-bottom:10px;
}

/* GRID CONTAINER */
#forgeGrid{
  flex:1;                     /* ВАЖНО */
  overflow-y:auto;            /* ВАЖНО */
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:12px;
  padding-right:4px;
}

/* ITEM */
.forge-item{
  cursor:pointer;
}

/* CARD */
.forge-card{
  background:#121722;
  border-radius:16px;
  padding:12px;
  border:2px solid rgba(255,255,255,0.05);
  transition:.2s ease;
  display:flex;
  flex-direction:column;
  align-items:center;
}

/* MINI CHEST */
.forge-thumb{
  width:100%;
  height:80px;
  display:flex;
  align-items:center;
  justify-content:center;
}

.forge-thumb img{
  max-width:70px;
  max-height:70px;
  object-fit:contain;
}

/* INFO */
.forge-info{
  margin-top:6px;
  font-size:12px;
  text-align:center;
}

.forge-rarity{
  font-weight:700;
  font-size:11px;
  opacity:.8;
}

.forge-id{
  font-size:10px;
  opacity:.6;
}

.forge-power{
  font-size:12px;
  font-weight:600;
  margin-top:4px;
}

/* SELECTED (NO SCALE = NO CLIP) */
.forge-item.selected .forge-card{
  transform:none;                 /* убрали зум -> не режется */
  transform:translateY(-1px);
  border-color:#00ffd0;
  outline:2px solid rgba(0,255,208,.75);
  outline-offset:0;
  box-shadow:
    0 0 0 2px rgba(0,255,208,.35),
    0 0 18px rgba(0,255,208,.55),
    0 10px 26px rgba(0,0,0,.55);
}

/* RARITY COLORS */
.rarity-common{
  border-color:#444;
}

.rarity-epic{
  border-color:#a855f7;
  box-shadow:0 0 12px rgba(168,85,247,.4);
}

.rarity-legendary{
  border-color:#f59e0b;
  box-shadow:0 0 12px rgba(245,158,11,.4);
}

.rarity-mythic{
  border-color:#ef4444;
  box-shadow:0 0 14px rgba(239,68,68,.4);
}

.rarity-ultra{
  border-color:#00ffd0;
  box-shadow:0 0 16px rgba(0,255,208,.5);
}

/* FOOTER */
.forge-footer{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-top:8px;
}

.forge-power{
  font-size:14px;
}

.forge-confirm{
  background:#00ffcc;
  color:#002018;
  border:none;
  padding:8px 14px;
  border-radius:10px;
  font-weight:700;
  cursor:pointer;
}


.dna-highlight{
    background:#00ff99;
    color:#000;
    padding:2px 4px;
    border-radius:4px;
    font-weight:bold;
}

.forge-topline{
    margin:12px 0 15px;
    padding:12px;
    background:#0f1a24;
    border-radius:12px;
    border:1px solid rgba(0,255,150,0.15);
}

.forge-counter{
    font-size:14px;
    margin-bottom:6px;
    color:#00ffaa;
}

.forge-genome-preview{
    font-size:13px;
    word-break:break-all;
    color:#ccc;
}

#genomePreview{
    color:#00ff99;
    font-weight:600;
}
.forge-token{
    font-family: monospace;
    font-size: 12px;
    word-break: break-all;
    line-height: 1.3;
    max-height: 38px;
    overflow: hidden;
}

.forge-video-modal{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,0.85);
    display:none;
    align-items:center;
    justify-content:center;
    z-index:999999;
}

.forge-video-box{
    width:320px;              /* фикс ширина */
    aspect-ratio: 9 / 16;     /* вертикальное видео */
    border-radius:20px;
    overflow:hidden;
    box-shadow:0 0 40px #00ffd555;
    background:#000;
}

.forge-video-box video{
    width:100%;
    height:100%;
    object-fit:cover;         /* НЕ растягивает */
    display:block;
}














.popup{
    max-width:300px;
    padding:0;
    border-radius:22px;
    overflow:hidden;
    background:transparent;
}

.forge-premium{
    padding:24px 20px 22px;
    border-radius:22px;
    background:
        radial-gradient(circle at top, rgba(0,255,255,0.15), transparent 60%),
        linear-gradient(180deg,#0a1e33,#071423);
    backdrop-filter:blur(12px);
    box-shadow:
        0 0 30px rgba(0,255,255,0.15),
        inset 0 0 30px rgba(0,255,255,0.05);
    text-align:center;
    position:relative;
}

.forge-premium::before{
    content:"";
    position:absolute;
    inset:0;
    border-radius:22px;
    padding:1px;
    background:linear-gradient(45deg,#00f0ff,#7a00ff,#00f0ff);
    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite:xor;
    mask-composite:exclude;
}

.forge-icon{
    font-size:28px;
    margin-bottom:8px;
}

.forge-title{
    font-size:18px;
    font-weight:600;
    letter-spacing:0.5px;
    margin-bottom:12px;
    background:linear-gradient(90deg,#00ffd5,#00b3ff);
    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;
}

.forge-class{
    font-size:22px;
    font-weight:800;
    margin-bottom:14px;
    letter-spacing:1px;
}

.forge-power-badge{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:70px;
    height:38px;
    padding:0 16px;
    border-radius:40px;
    font-weight:700;
    font-size:16px;
    background:linear-gradient(90deg,#00ff9d,#00d2ff);
    color:#001b20;
    box-shadow:
        0 0 20px rgba(0,255,180,0.6),
        inset 0 0 8px rgba(255,255,255,0.4);
    margin-bottom:14px;
}

.forge-break{
    display:flex;
    justify-content:center;
    gap:6px;
    margin-bottom:14px;
    flex-wrap:wrap;
}

.forge-break span{
    font-size:11px;
    padding:4px 8px;
    border-radius:8px;
    background:#0f2a40;
    opacity:0.85;
}

.forge-genome{
    background:#0b1c2e;
    padding:10px;
    border-radius:14px;
    font-size:11px;
    word-break:break-all;
    line-height:1.5;
    color:#c8f6ff;
    box-shadow:inset 0 0 15px rgba(0,255,255,0.08);
}




/* прячем нативный select, но он остается в DOM */
#forgeCollectionSelect{
  position:absolute;
  left:-99999px;
  width:1px;
  height:1px;
  opacity:0;
  pointer-events:none;
}

/* контейнер */
.forge-collection{
  margin:10px 0 12px;
  position:relative;
}

/* кнопка выбора */
.forge-collection-btn{
  width:100%;
  height:44px;
  border-radius:14px;
  border:1px solid rgba(255,215,90,0.35);
  background:linear-gradient(180deg, rgba(25,25,25,0.95), rgba(10,10,10,0.95));
  box-shadow:0 10px 24px rgba(0,0,0,0.45), inset 0 0 18px rgba(255,215,90,0.08);
  color:#ffd24a;
  font-weight:800;
  letter-spacing:0.5px;
  padding:0 14px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  cursor:pointer;
}

.forge-collection-label{
  font-size:14px;
  text-align:left;
}

.forge-collection-caret{
  font-size:12px;
  opacity:0.9;
}

/* меню */
.forge-collection-menu{
  position:absolute;
  z-index:999999;
  left:0;
  right:0;
  top:52px;
  border-radius:16px;
  overflow:hidden;
  background:linear-gradient(180deg, rgba(12,12,12,0.98), rgba(0,0,0,0.98));
  border:1px solid rgba(255,215,90,0.28);
  box-shadow:0 22px 44px rgba(0,0,0,0.6);
}

/* скролл внутри */
.forge-collection-menu-inner{
  max-height:320px;
  overflow:auto;
}

/* пункт */
.forge-collection-item{
  padding:14px 16px;
  font-weight:900;
  font-size:18px;
  color:#ffd24a;
  display:flex;
  align-items:center;
  justify-content:space-between;
  cursor:pointer;
  background:transparent;
}

.forge-collection-item:hover{
  background:rgba(255,215,90,0.10);
}

/* активный пункт как в галерее */
.forge-collection-item.active{
  background:linear-gradient(90deg, rgba(255,215,90,0.30), rgba(255,215,90,0.08));
  color:#fff3b0;
}

/* бейдж справа */
.forge-collection-tag{
  font-size:11px;
  font-weight:800;
  padding:4px 8px;
  border-radius:10px;
  background:rgba(0,255,180,0.10);
  border:1px solid rgba(0,255,180,0.20);
  color:#00ffcc;
}

.hidden{ display:none !important; }



/* == карточка ключа === */

.smart-key-card{
  background:#0e1a24;
  border:1px solid rgba(0,255,200,.15);
  padding:14px;
  border-radius:14px;
  margin-bottom:12px;
}

.smart-key-class{
  font-size:16px;
  font-weight:700;
  color:#00ffc8;
}

.smart-key-power{
  margin-top:6px;
  font-size:14px;
}

.smart-key-breakdown{
  margin-top:8px;
  font-size:12px;
  color:#9be7ff;
}

.smart-key-genome{
  margin-top:8px;
  font-size:11px;
  color:#7fd3ff;
  word-break:break-all;
}

.smart-key-date{
  margin-top:6px;
  font-size:10px;
  color:#666;
}

.smartkey-actions{
  margin-top:14px;
  display:flex;
  gap:10px;
}

.smartkey-actions button{
  flex:1;
  padding:10px;
  border-radius:12px;
  border:none;
  font-weight:bold;
  cursor:pointer;
}

.smartkey-melt{
  background:#ff2d55;
  color:#fff;
}

.smartkey-mint{
  background:#00e676;
  color:#000;
}





#customPopup {
  position: fixed !important;
  inset: 0 !important;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.65);
  z-index: 999999 !important;
}

#customPopup .popup-inner {
  background: linear-gradient(180deg,#0f1b24,#162b38);
  padding: 22px;
  border-radius: 16px;
  max-width: 320px;
  width: 90%;
  text-align: center;
  box-shadow: 0 0 40px rgba(0,255,255,0.2);
}

.smart-key-info-center{
    text-align:center;
    padding:14px 10px 10px 10px;
}

.sk-class{
    font-size:18px;
    font-weight:700;
    letter-spacing:1px;
    color:#00f5d4;
    margin-bottom:6px;
}

.sk-collection-badge{
    display:inline-block;
    padding:4px 12px;
    border-radius:20px;
    background:linear-gradient(45deg,#1f3c88,#39d2ff);
    font-size:12px;
    font-weight:600;
    margin-bottom:10px;
    box-shadow:0 0 10px rgba(0,255,255,0.4);
}

.sk-power{
    font-size:22px;
    font-weight:800;
    color:#ffcc00;
    margin-bottom:10px;
}

.sk-breakdown{
    font-size:12px;
    letter-spacing:1px;
    opacity:.8;
    margin-bottom:8px;
}

.sk-genome{
    font-size:11px;
    opacity:.7;
    word-break:break-all;
    margin-bottom:6px;
}

.sk-date{
    font-size:10px;
    opacity:.5;
}

.my-nft-modal{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,0.85);
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:99999;
}

.my-nft-card{
  background:#0f172a;
  width:90vw;
  max-width:520px;
  max-height:85vh;
  border-radius:18px;
  padding:18px;
  display:flex;
  flex-direction:column;
}

.my-nft-header{
  display:flex;
  justify-content:space-between;
  font-weight:600;
  margin-bottom:14px;
}

.my-nft-close{
  cursor:pointer;
}

.my-nft-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:14px;
  flex:1;
  overflow-y:auto;
  padding-right:4px;
}


.nft-item{
  background:#111827;
  padding:10px;
  border-radius:12px;
  text-align:center;
}

.nft-img{
  width:100%;
  border-radius:10px;
  margin-bottom:6px;
}

.nft-meta{
  font-size:12px;
  color:#ccc;
}



#mintVoid{
  position:fixed;
  inset:0;
  background:radial-gradient(circle at center, rgba(0,0,0,0.9) 0%, #000 70%);
  opacity:0;
  transition:opacity .3s ease;
  z-index:999999;
  pointer-events:none;
}

.void-active{
  opacity:1;
}

.card-energy{
  animation:energyShake .3s ease-in-out infinite alternate;
}

@keyframes energyShake{
  0%{ transform:translate(-50%,-50%) scale(1) rotate(0deg); }
  100%{ transform:translate(-50%,-50%) scale(1.02) rotate(.5deg); }
}

.card-snap{
  animation:snapCollapse .5s cubic-bezier(.6,-0.4,.7,.1) forwards;
}

@keyframes snapCollapse{
  0%{
    transform:translate(-50%,-50%) scale(1) rotate(0deg);
    opacity:1;
  }
  100%{
    transform:translate(-50%,-50%) scale(0) rotate(360deg);
    opacity:0;
  }
}

.snap-flash{
  position:fixed;
  inset:0;
  background:white;
  opacity:0;
  animation:flash .2s ease forwards;
  z-index:1000000;
}

@keyframes flash{
  0%{opacity:0;}
  50%{opacity:.9;}
  100%{opacity:0;}
}

.forge-confirm.disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.forge-spinner {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 4px solid rgba(0,255,200,0.15);
  border-top: 4px solid #00ffc1;
  animation: forgeSpin 0.9s linear infinite;
  box-shadow: 0 0 18px #00ffc155;
}

@keyframes forgeSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}


/* стили модалки лото */
.loto-button-wrap {
    margin: 10px 0 10px;
    text-align: center;
}

.loto-btn {
    width: 90%;
    padding: 12px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(90deg,#ffb347,#ffcc33);
    font-weight: bold;
}
.loto-close {
    position: absolute;
    top: 10px;
    right: 12px;
    font-size: 18px;
    cursor: pointer;
    color: #fff;
    opacity: 0.7;
    transition: 0.2s;
}

.loto-close:hover {
    opacity: 1;
    transform: scale(1.2);
}

.modal {
    position: fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    display:none;
    justify-content:center;
    align-items:center;
    background: rgba(0,0,0,0.7);
    z-index:9999;
}
.loto-ui {
    width: 90%;
    max-width: 420px;
    background: #1e293b;
    border-radius: 16px;
    padding: 0;
    overflow-y: auto;
    max-height: 90vh;
}

.loto-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
    margin-bottom: 0;
    position: sticky;
    top: 0;
    z-index: 10;
    background: #1e293b;
    padding: 14px 16px;
    border-radius: 16px 16px 0 0;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}

.loto-timer {
    text-align: center;
    font-size: 20px;
    margin: 12px 16px 10px;
    color: #a3ffe6;
}

.loto-animation {
    height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 40px;
    background: #0f172a;
    border-radius: 12px;
    margin: 0 16px 10px;
}

.loto-join-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(45deg,#22c55e,#4ade80);
    border: none;
    border-radius: 10px;
    margin-bottom: 10px;
    font-size: 16px;
}

.loto-boosts, .loto-users {
    margin-top: 10px;
}

.boost-buttons button {
    margin: 5px;
    padding: 8px 12px;
    border-radius: 8px;
}

.boost-buttons {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.boost-buttons button {
    flex: 1;
    padding: 10px 0;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    transition: all .2s ease;
    letter-spacing: 0.5px;
}

.boost-buttons button:nth-child(1) {
    background: linear-gradient(180deg, #3b82f6, #1d4ed8);
    color: #fff;
    box-shadow: 0 4px 14px rgba(59,130,246,0.45);
}

.boost-buttons button:nth-child(2) {
    background: linear-gradient(180deg, #a855f7, #7c3aed);
    color: #fff;
    box-shadow: 0 4px 14px rgba(168,85,247,0.45);
}

.boost-buttons button:nth-child(3) {
    background: linear-gradient(180deg, #f59e0b, #d97706);
    color: #1a0a00;
    box-shadow: 0 4px 14px rgba(245,158,11,0.45);
}

.boost-buttons button:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.boost-buttons button:active {
    transform: translateY(0);
}
/* LOTO CARDS */
.loto-card{
  width:18px;height:28px;border-radius:4px;
  background:#0d1520;border:1.5px solid #1a2a3a;
  display:flex;align-items:center;justify-content:center;
  font-size:14px;font-weight:800;color:#1a3a2a;
  flex-shrink:0;position:relative;overflow:hidden;
  transition:border-color .2s,background .2s,color .2s;
  font-family:monospace;
}
.loto-card.spinning{
  border-color:#1a3530;background:#0d1a15;color:#1a6a4a;
  animation:lcardflick .08s steps(1) infinite;
}


@keyframes lcardflick{0%{opacity:.7}100%{opacity:1}}

.loto-pbar{height:2px;background:#0a0c14;border-radius:2px;margin:6px 0;overflow:hidden;}
.loto-pfill{height:100%;border-radius:2px;width:0%;}
.loto-pfill.srch{background:linear-gradient(90deg,#0d3a2a,#00ffa640,#00ffa6,#00ffa640,#0d3a2a);background-size:200% 100%;animation:lshim 1.5s linear infinite}
.loto-pfill.fnd{background:#00ffa6;width:100%!important}
@keyframes lshim{0%{background-position:200% 0}100%{background-position:-200% 0}}
.loto-gring{position:absolute;inset:-2px;border-radius:14px;pointer-events:none;z-index:0;border:2px solid transparent;transition:border-color .5s,box-shadow .5s}
.loto-gring.act{border-color:#1a4a3a;box-shadow:0 0 40px #00ffa620,inset 0 0 30px #00ffa608}

.loto-flash{position:absolute;inset:0;border-radius:12px;pointer-events:none;z-index:10;opacity:0;background:#00ffa6;mix-blend-mode:screen;transition:opacity .08s}

/* === LOTO ANIMATION ENGINE v2 === */
.loto-gring.won {
  border-color: #00ffa660;
  box-shadow: 0 0 60px #00ffa650, 0 0 120px #00ffa620, inset 0 0 40px #00ffa610;
}

.loto-card.locked {
  border-color: #00ffa640;
  background: #081a10;
  color: #00ffa6;
  text-shadow: 0 0 10px #00ffa690, 0 0 20px #00ffa640;
  animation: none;
}

.loto-card.pat {
  border-color: #00ffa6;
  background: #051a10;
  color: #00ffa6;
  text-shadow: 0 0 14px #00ffa6, 0 0 28px #00ffa660;
  box-shadow: 0 0 12px #00ffa640, inset 0 0 8px #00ffa610;
  animation: lpatpulse 1s ease-in-out infinite alternate;
}

@keyframes lpatpulse {
  from { box-shadow: 0 0 8px #00ffa640, inset 0 0 6px #00ffa610; }
  to   { box-shadow: 0 0 20px #00ffa6, inset 0 0 12px #00ffa630; }
}

/* === LOTO HASHBOX BRIGHT === */
#lw_hashbox {
    text-align: center;
    font-size: 11px;
    color: #3a5a4a;
    letter-spacing: .5px;
    word-break: break-all;
    padding: 8px 12px;
    background: #06080f;
    border-radius: 8px;
    border: 1px solid #0f1525;
    margin-bottom: 10px;
    min-height: 34px;
    line-height: 1.8;
    font-family: monospace;
    transition: border-color .4s, background .4s;
}

#lw_hashbox span[style*="color:#00ffa6"] {
    text-shadow: 0 0 16px #00ffa6, 0 0 32px #00ffa6 !important;
    animation: loto_hl_pulse .9s ease-in-out infinite alternate;
}

@keyframes loto_hl_pulse {
    from { text-shadow: 0 0 10px #00ffa6, 0 0 20px #00ffa6; }
    to   { text-shadow: 0 0 20px #00ffa6, 0 0 40px #00ffa6, 0 0 60px #00ffa640; }
}
#lw_token::-webkit-scrollbar { display: none; }


img {
    -webkit-touch-callout: none !important;
    -webkit-user-select: none !important;
    user-select: none !important;
}

/* ЛОТО — увеличиваем шрифты x2 */
.loto-ui .loto-timer         { font-size: 28px !important; }
.loto-ui .loto-join-btn      { font-size: 22px !important; }
 
.loto-ui .loto-boosts button { font-size: 28px !important; }
.loto-ui .loto-users .title  { font-size: 16px !important; }
.loto-ui #userList div       { font-size: 14px !important; }
.loto-ui #lotoJoinStatus     { font-size: 22px !important; }
.loto-ui #lotoTimerBig       { font-size: 28px !important; }
.loto-ui #lotoUsersCount     { font-size: 18px !important; }
.loto-ui #lotoHowTo          { font-size: 26px !important; }
.loto-ui #lotoPrizePreview   { font-size: 26px !important; }
.loto-ui #lw_mtitle          { font-size: 11px !important; }
.loto-ui #lw_sline           { font-size: 13px !important; }
.loto-ui #lw_hashbox         { font-size: 11px !important; }
.loto-ui #lw_user            { font-size: 18px !important; }
.loto-ui #lw_pattern         { font-size: 18px !important; }
.loto-ui #lw_prize           { font-size: 30px !important; }
.loto-ui #lw_chest_title     { font-size: 30px !important; }
.loto-ui #lw_token_result    { font-size: 24px !important; }
.loto-ui .loto-header span   { font-size: 32px !important; }
