/* ===== Шрифты ===== */
@font-face {
    font-family: "Play";
    src: url("../assets/fonts/Play-Bold.woff2") format("woff2"), url("../assets/fonts/Play-Bold.woff") format("woff");
    font-weight: 700;
    font-style: normal;
    font-display: swap
}

@font-face {
    font-family: "Play";
    src: url("../assets/fonts/Play-Regular.woff2") format("woff2"), url("../assets/fonts/Play-Regular.woff") format("woff");
    font-weight: 400;
    font-style: normal;
    font-display: swap
}

/* ===== База ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

img {
    width: 100%;
    height: auto;
    display: block
}

button {
    font-family: inherit;
    border: none;
    outline: none;
    cursor: pointer;
    background: none;
    color: inherit
}

html, body {
    min-height: 100%
}

html {
    background: #1e0139;
    color: #fff;
    line-height: 1.15;
    font-family: "Play", "Roboto", Arial, sans-serif;
    -webkit-font-smoothing: antialiased
}

body {
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none
}

/* ===== Прелоадер ===== */
.preloader {
    width: 60px;
    height: 60px;
    position: fixed;
    inset: 0;
    margin: auto;
    z-index: 50;
    transition: opacity .3s ease;
    pointer-events: none
}

.preloader.hide {
    opacity: 0
}

/* ===== Фон и каркас ===== */
/* Картинка шире экрана, поэтому cover только слегка режет бока,
   но гарантирует полную высоту без плоской заливки внизу. */
.wrapper {
    height: 100vh;
    height: 100dvh;
    max-width: 480px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    position: relative;
    background: #1e0139 url("../assets/img/main-bg-mobile.jpg") no-repeat top center;
    background-size: cover;
    overflow: hidden
}

@media (min-width: 600px) {
    html {
        background: #25003b url("../assets/img/main-bg.jpg") no-repeat top center fixed;
        background-size: cover
    }
}

/* ===== Золотой градиентный текст (техника с лендинга) ===== */
.gradient-txt {
    background: linear-gradient(180deg, #C3A85D 20.09%, #E8DBA1 39.39%, #FCF8CE 59.88%, #C3A34B 79.49%, #DCAB2E 79.49%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: rgba(0, 0, 0, 0);
    -webkit-box-decoration-break: clone;
    font-weight: 700;
    position: relative;
    text-transform: uppercase;
    padding: 0 .4rem;
    text-align: center
}

.gradient-txt::after {
    content: attr(data-text);
    display: block;
    width: 100%;
    text-transform: uppercase;
    position: absolute;
    top: 0;
    left: 0;
    background: linear-gradient(180deg, #C3A85D 20.09%, #E8DBA1 39.39%, #FCF8CE 59.88%, #C3A34B 79.49%, #DCAB2E 79.49%);
    pointer-events: none;
    background-size: 100%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: rgba(0, 0, 0, 0)
}

/* ===== Шапка ===== */
/* ===== Шапка: кнопки звука и шеринга по бокам логотипа ===== */
.header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: calc(10px + env(safe-area-inset-top)) 12px 6px;
    position: relative;
    z-index: 5
}

.head-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(195, 168, 93, .45);
    background: rgba(30, 1, 57, .7);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    transition: transform .1s ease
}

.head-btn:active {
    transform: scale(.9)
}

.header .logo {
    width: 110px
}

/* ===== Ранняя CTA-кнопка на лендинг ===== */
.top-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 16px 4px;
    padding: 7px 10px 6px;
    border-radius: 999px;
    border: 1px solid #c3a85d;
    background: linear-gradient(180deg, rgba(48, 0, 0, .88), rgba(165, 9, 9, .62));
    text-decoration: none;
    position: relative;
    z-index: 5;
    animation: goal-pulse 1.6s ease-in-out infinite;
    transition: transform .1s ease
}

.top-cta:active {
    transform: scale(.96)
}

.top-cta .top-cta__txt {
    font-size: 15px;
    line-height: 1.1;
    white-space: nowrap
}

/* Приветствие пользователя из Telegram */
.hello {
    text-align: center;
    font-size: 12px;
    color: rgba(255, 255, 255, .75);
    padding: 0 16px 3px;
    position: relative;
    z-index: 5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

/* ===== HUD ===== */
.hud {
    padding: 4px 16px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
    z-index: 5
}

.league {
    display: flex;
    align-items: center;
    gap: 8px
}

.league__label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: rgba(255, 255, 255, .65);
    white-space: nowrap
}

.league__name {
    font-size: 18px;
    line-height: 1;
    white-space: nowrap
}

.bar {
    flex: 1;
    height: 8px;
    border-radius: 999px;
    background: rgba(226, 175, 0, .18);
    border: 1px solid rgba(226, 175, 0, .35);
    overflow: hidden
}

.bar__fill {
    height: 100%;
    width: 0%;
    border-radius: 999px;
    background: linear-gradient(90deg, #c9a227, #e2af00);
    transition: width .3s ease-out
}

.coins {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 2px
}

.coins__val {
    font-size: 38px;
    line-height: 1.05
}

/* Чип горячего часа (×2 монет) */
.hot-chip {
    display: none;
    background: linear-gradient(180deg, #550004, #C40000);
    border: 1px solid #FFD700;
    border-radius: 999px;
    padding: 3px 9px;
    font-size: 12px;
    font-weight: 700;
    color: #FCF8CE;
    white-space: nowrap;
    animation: goal-pulse 1.4s ease-in-out infinite
}

.hot-chip.show {
    display: inline-block
}

.coin-ico {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    flex-shrink: 0;
    background: radial-gradient(circle at 32% 30%, #FCF8CE 0%, #E8DBA1 28%, #DCAB2E 58%, #C3A85D 100%);
    border: 2px solid #8a6d2f;
    box-shadow: 0 0 10px rgba(255, 215, 0, .45), inset 0 0 4px rgba(138, 109, 47, .8);
    display: inline-block
}

.coin-ico_sm {
    width: 18px;
    height: 18px;
    border-width: 1.5px
}

.energy {
    display: flex;
    align-items: center;
    gap: 8px
}

.energy__ico {
    font-size: 15px;
    line-height: 1
}

.energy__num {
    font-size: 12px;
    color: rgba(255, 255, 255, .8);
    white-space: nowrap;
    min-width: 58px;
    text-align: right
}

/* ===== Цели дня ===== */
.daily-goals {
    background: rgba(0, 0, 0, .28);
    border: 1px solid rgba(195, 168, 93, .3);
    border-radius: 12px;
    padding: 8px 10px
}

.daily-goals__title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: rgba(255, 255, 255, .65);
    margin-bottom: 6px;
    text-align: center
}

.daily-goals__row {
    display: flex;
    gap: 8px
}

.goal-chip {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 6px 4px;
    border-radius: 10px;
    border: 1px solid rgba(195, 168, 93, .25);
    background: rgba(37, 3, 82, .45);
    position: relative
}

.goal-chip__ico {
    font-size: 18px;
    line-height: 1;
    filter: grayscale(.4) opacity(.75)
}

.goal-chip__num {
    font-size: 11px;
    color: rgba(255, 255, 255, .8)
}

.goal-chip.ready {
    border-color: #e2af00;
    box-shadow: 0 0 12px rgba(226, 175, 0, .55);
    animation: goal-pulse 1.4s ease-in-out infinite;
    cursor: pointer
}

.goal-chip.ready .goal-chip__ico {
    filter: none
}

.goal-chip.claimed {
    border-color: rgba(195, 168, 93, .6);
    background: linear-gradient(180deg, rgba(195, 168, 93, .18), rgba(195, 168, 93, .05))
}

.goal-chip.claimed .goal-chip__ico {
    filter: none;
    opacity: .9
}

.goal-chip__check {
    position: absolute;
    top: -6px;
    right: -4px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(180deg, #E8DBA1, #C3A85D);
    color: #370000;
    font-size: 11px;
    font-weight: 700;
    display: none;
    align-items: center;
    justify-content: center
}

.goal-chip.claimed .goal-chip__check {
    display: flex
}

@keyframes goal-pulse {
    0%, 100% { box-shadow: 0 0 8px rgba(226, 175, 0, .35) }
    50% { box-shadow: 0 0 18px rgba(226, 175, 0, .8) }
}

/* ===== Подсказка первого запуска ===== */
.tutorial {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 8;
    display: none;
    flex-direction: column;
    align-items: center;
    pointer-events: none
}

.tutorial.show {
    display: flex
}

.tutorial__hand {
    font-size: 34px;
    animation: tut-hand 1s ease-in-out infinite
}

.tutorial__txt {
    font-size: 19px;
    filter: drop-shadow(0 0 12px rgba(255, 215, 0, .6))
}

@keyframes tut-hand {
    0%, 100% { transform: translateY(0) }
    50% { transform: translateY(10px) }
}

/* ===== Блок закончившейся энергии: таймер + выход на лендинг ===== */
.energy-block {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 8;
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 100%
}

.energy-block.show {
    display: flex
}

.energy-block__timer {
    font-size: 13px;
    font-weight: 700;
    color: rgba(255, 255, 255, .85);
    background: rgba(30, 1, 57, .75);
    border-radius: 999px;
    padding: 4px 12px;
    white-space: nowrap
}

.energy-block__cta {
    background: linear-gradient(180deg, rgba(226, 175, 0, .3), rgba(226, 175, 0, .1));
    border: 1px solid #e2af00;
    border-radius: 999px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    color: #FCF8CE;
    animation: goal-pulse 1.4s ease-in-out infinite
}

.energy-block__cta:active {
    transform: scale(.95)
}

/* ===== Летающая золотая конфета ===== */
.fly-candy {
    position: absolute;
    top: 34%;
    left: -60px;
    z-index: 22;
    font-size: 34px;
    line-height: 1;
    cursor: pointer;
    filter: drop-shadow(0 0 12px rgba(255, 215, 0, .9));
    animation: fly-across 4.5s linear forwards
}

.fly-candy__x {
    position: absolute;
    top: -18px;
    right: -14px;
    font-size: 13px;
    font-weight: 700;
    color: #FCF8CE;
    background: linear-gradient(180deg, #550004, #C40000);
    border: 1px solid #FFD700;
    border-radius: 999px;
    padding: 1px 6px
}

@keyframes fly-across {
    0% { transform: translateX(0) translateY(0) rotate(-8deg) }
    25% { transform: translateX(32vw) translateY(-7vh) rotate(6deg) }
    50% { transform: translateX(64vw) translateY(5vh) rotate(-6deg) }
    75% { transform: translateX(96vw) translateY(-5vh) rotate(8deg) }
    100% { transform: translateX(128vw) translateY(0) rotate(-8deg) }
}

/* ===== Колесо фортуны ===== */
.wheel {
    width: 220px;
    height: 220px;
    margin: 12px auto 4px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center
}

.wheel__disc {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .55))
}

.wheel.spinning .wheel__disc {
    transition: transform 3.5s cubic-bezier(.15, .9, .25, 1)
}

.wheel__arrow {
    width: 26px;
    height: 38px;
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    background-image: url("../assets/img/wheel-arrow.png");
    background-size: 100% 100%;
    background-repeat: no-repeat;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .6))
}

.wheel__result .gradient-txt {
    font-size: 44px
}

/* Точки серии дней в попапе бонуса */
.streak-dots {
    display: flex;
    gap: 6px;
    margin-top: 12px
}

.streak-dots i {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid rgba(195, 168, 93, .6);
    background: rgba(0, 0, 0, .25)
}

.streak-dots i.on {
    background: linear-gradient(180deg, #E8DBA1, #DCAB2E);
    border-color: #DCAB2E;
    box-shadow: 0 0 8px rgba(255, 215, 0, .6)
}

/* ===== Зона тапа ===== */
.tap-zone {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 4;
    min-height: 0
}

.candy {
    width: min(62vw, 280px);
    aspect-ratio: 1;
    position: relative;
    z-index: 2;
    transition: transform .08s ease;
    animation: candy-float 3s ease-in-out infinite;
    filter: drop-shadow(0 14px 26px rgba(0, 0, 0, .55));
    touch-action: manipulation
}

.candy img {
    pointer-events: none
}

.candy:active {
    transform: scale(.92);
    animation: none
}

@keyframes candy-float {
    0%, 100% { translate: 0 0 }
    50% { translate: 0 -10px }
}

/* Свечение под конфетой: сплошной круг с blur вместо radial-gradient —
   градиент давал видимые кольца-полосы на некоторых экранах */
.candy-glow {
    position: absolute;
    width: min(72vw, 330px);
    aspect-ratio: 1;
    border-radius: 50%;
    background: rgba(255, 226, 125, .22);
    filter: blur(38px);
    pointer-events: none
}

/* ===== Комбо ===== */
.combo-badge {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 7;
    display: none;
    pointer-events: none
}

.combo-badge.show {
    display: block
}

.combo-badge .gradient-txt {
    font-size: 20px;
    line-height: 1.1;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, .5))
}

.combo-badge.pop {
    animation: combo-pop .18s ease-out
}

@keyframes combo-pop {
    0% { transform: translateX(-50%) scale(1.3) }
    100% { transform: translateX(-50%) scale(1) }
}

/* Свечение под конфетой растёт с множителем комбо */
.candy-glow {
    transition: transform .35s ease
}

.candy-glow.l1 { transform: scale(1.18) }
.candy-glow.l2 { transform: scale(1.35) }
.candy-glow.l3 {
    transform: scale(1.5);
    animation: glow-pulse 1s ease-in-out infinite
}

@keyframes glow-pulse {
    0%, 100% { opacity: .85 }
    50% { opacity: 1 }
}

/* Всплывающий баннер комбо по центру экрана */
.combo-burst {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 25;
    pointer-events: none;
    animation: combo-burst .9s ease-out forwards
}

.combo-burst .gradient-txt {
    font-size: 40px;
    filter: drop-shadow(0 0 22px rgba(255, 215, 0, .75))
}

.combo-burst.big .gradient-txt {
    font-size: 52px
}

@keyframes combo-burst {
    0% { opacity: 0; transform: scale(.4) }
    25% { opacity: 1; transform: scale(1.18) }
    60% { opacity: 1; transform: scale(1) }
    100% { opacity: 0; transform: scale(1.06) translateY(-24px) }
}

/* Золотая вспышка при супер-комбо */
.flash-overlay {
    position: absolute;
    inset: 0;
    z-index: 24;
    pointer-events: none;
    background: radial-gradient(circle at 50% 45%, rgba(255, 226, 125, .5) 0%, rgba(255, 226, 125, 0) 62%);
    animation: flash-fade .65s ease-out forwards
}

@keyframes flash-fade {
    0% { opacity: 1 }
    100% { opacity: 0 }
}

/* Тряска экрана при супер-комбо */
.wrapper.shake {
    animation: screen-shake .45s ease-in-out
}

@keyframes screen-shake {
    0%, 100% { transform: translate(0, 0) }
    20% { transform: translate(-6px, 3px) }
    40% { transform: translate(5px, -4px) }
    60% { transform: translate(-4px, -2px) }
    80% { transform: translate(3px, 3px) }
}

/* Всплывающие +N за тап */
.float-num {
    position: absolute;
    font-size: 26px;
    pointer-events: none;
    z-index: 6;
    animation: float-up .9s ease-out forwards
}

@keyframes float-up {
    0% { opacity: 0; transform: translateY(0) scale(.7) }
    15% { opacity: 1; transform: translateY(-12px) scale(1.1) }
    100% { opacity: 0; transform: translateY(-90px) scale(1) }
}

/* ===== Кнопка приза ===== */
.gift-btn {
    position: fixed;
    right: max(14px, env(safe-area-inset-right));
    bottom: calc(102px + env(safe-area-inset-bottom));
    z-index: 20;
    display: none;
    flex-direction: column;
    align-items: center;
    animation: gift-bounce 1.6s ease-in-out infinite;
    filter: drop-shadow(0 6px 16px rgba(0, 0, 0, .5))
}

.gift-btn.show {
    display: flex
}

.gift-btn__box {
    font-size: 46px;
    line-height: 1
}

.gift-btn__badge {
    margin-top: 2px;
    background: linear-gradient(180deg, #550004, #C40000);
    border: 1px solid #E8DBA1;
    border-radius: 999px;
    padding: 2px 10px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    box-shadow: 0 0 10px rgba(196, 0, 0, .7)
}

@keyframes gift-bounce {
    0%, 100% { transform: scale(.95) }
    50% { transform: scale(1.08) }
}

/* ===== Нижняя навигация ===== */
.bottom-nav {
    display: flex;
    gap: 8px;
    padding: 10px 14px calc(12px + env(safe-area-inset-bottom));
    position: relative;
    z-index: 10
}

.nav-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 9px 4px 7px;
    border-radius: 14px;
    background: rgba(30, 1, 57, .82);
    border: 1px solid rgba(195, 168, 93, .4);
    text-transform: uppercase;
    transition: transform .1s ease, border-color .2s ease
}

.nav-btn:active {
    transform: scale(.95)
}

.nav-btn__ico {
    font-size: 19px;
    line-height: 1
}

.nav-btn__txt {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    color: rgba(255, 255, 255, .9)
}

.nav-btn__sub {
    font-size: 9.5px;
    line-height: 1;
    color: #e2af00;
    text-transform: none;
    letter-spacing: 0;
    margin-top: 1px
}

.nav-btn_exchange.ready {
    border-color: #e2af00;
    background: linear-gradient(180deg, rgba(226, 175, 0, .28), rgba(226, 175, 0, .1));
    animation: goal-pulse 1.4s ease-in-out infinite
}

/* ===== Попапы (каркас с лендинга) ===== */
.popup {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .8);
    z-index: 30;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
    transition: opacity .3s ease-in-out
}

.popup.show {
    display: flex
}

.popup__window {
    width: 100%;
    max-width: 340px;
    animation: pop-in .25s ease-out
}

@keyframes pop-in {
    from { opacity: 0; transform: scale(.85) }
    to { opacity: 1; transform: scale(1) }
}

.popup__inner {
    background: linear-gradient(15deg, #300000 4.54%, #A50909 95.79%);
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: 14px;
    padding: 22px 16px 18px;
    box-shadow: 0 0 40px 3px rgba(255, 226, 125, .55), 0 0 40px 1px rgba(36, 0, 0, .86) inset
}

.popup__inner::before {
    content: "";
    display: block;
    pointer-events: none;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 102%;
    height: 102%;
    z-index: 1;
    background-image: url("../assets/img/popup-border.png");
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: top center
}

.popup__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-grow: 1;
    position: relative;
    z-index: 2;
    padding: 4px 6px
}

.popup__title .gradient-txt {
    font-size: 25px;
    line-height: 1.2
}

.popup__text {
    color: #fff;
    text-align: center;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    text-transform: uppercase
}

.popup__sum {
    margin: 4px 0
}

.popup__sum .gradient-txt {
    font-size: 54px;
    line-height: 1.05
}

.popup__btn {
    width: min(84%, 260px);
    height: 52px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 5;
    overflow: hidden;
    border-radius: 10px;
    background-image: url("../assets/img/popup-btn.png");
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: top center;
    font-size: 16px;
    line-height: 1.4;
    color: #370000;
    font-weight: 700;
    text-transform: uppercase;
    margin-top: 14px;
    animation: btn-bounce 1.2s ease-in-out infinite
}

@keyframes btn-bounce {
    0% { transform: scale(1) }
    50% { transform: scale(1.04) }
    100% { transform: scale(1) }
}

.popup__close {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 100;
    opacity: .7;
    width: 20px
}

.popup__balance {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 17px;
    font-weight: 700;
    color: #E8DBA1;
    margin: 10px 0 2px
}

/* ===== Магазин улучшений ===== */
.shop-list {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 12px 0 2px
}

.shop-row {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, .3);
    border: 1px solid rgba(195, 168, 93, .35);
    border-radius: 10px;
    padding: 9px 10px
}

.shop-row__info {
    flex: 1;
    min-width: 0
}

.shop-row__name {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: #FCF8CE
}

.shop-row__desc {
    font-size: 11px;
    color: rgba(255, 255, 255, .75);
    line-height: 1.3;
    margin-top: 1px
}

.shop-row__buy {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 5px;
    background: linear-gradient(180deg, rgba(226, 175, 0, .25), rgba(226, 175, 0, .08));
    border: 1px solid #c3a85d;
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 12px;
    font-weight: 700;
    color: #E8DBA1;
    text-transform: uppercase;
    transition: transform .1s ease
}

.shop-row__buy:active {
    transform: scale(.94)
}

.shop-row__buy .coin-ico {
    width: 13px;
    height: 13px;
    border-width: 1px
}

.shop-row__buy.disabled {
    opacity: .45;
    pointer-events: none
}

/* ===== Промокод (с лендинга) ===== */
.popup__promocode-title {
    margin-top: auto
}

.popup__promocode-wrap {
    position: relative;
    width: 92%;
    border-radius: 8px;
    border: 2px solid #c3a85d;
    cursor: pointer;
    text-align: center;
    margin-top: 12px;
    padding-bottom: 4px
}

.popup__promocode-wrap .gradient-txt {
    font-size: 30px;
    font-weight: 400
}

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

.copy-icon {
    width: 18px;
    color: #c3a85d;
    flex-shrink: 0
}

.copiedtext {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    z-index: 5;
    text-align: center;
    opacity: 0;
    transform: translateY(-50%);
    color: #fff;
    font-size: 13px;
    text-transform: uppercase;
    font-weight: 700;
    transition: all .5s;
    pointer-events: none
}

.popup__promocode-wrap.copied .copiedtext {
    opacity: 1;
    transform: translate(0, 220%)
}

/* ===== Lottie-подарок ===== */
.gift-lottie {
    width: 150px;
    height: 150px;
    margin: 6px auto 0;
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .45))
}

.gift-lottie.claimed {
    animation: gift-burst .6s ease-out
}

@keyframes gift-burst {
    0% { transform: scale(1) }
    40% { transform: scale(1.25) rotate(4deg) }
    100% { transform: scale(1) }
}

/* ===== Конфетти (стиль лендинга) ===== */
.popup__confetti {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 90px;
    pointer-events: none;
    z-index: 3;
    overflow: hidden
}

.popup__confetti i {
    position: absolute;
    width: 7px;
    height: 7px;
    border-radius: 2px;
    opacity: .65;
    animation: confetti-fall 2.6s ease-in-out infinite
}

.popup__confetti i:nth-child(1) { left: 8%; top: -5%; background: #FFD700 }
.popup__confetti i:nth-child(2) { left: 20%; top: -8%; background: #fff; width: 5px; height: 5px; animation-delay: .3s }
.popup__confetti i:nth-child(3) { left: 34%; top: -4%; background: #2AABEE; animation-delay: .6s }
.popup__confetti i:nth-child(4) { left: 50%; top: -6%; background: #FFD700; animation-delay: .9s; width: 6px; height: 6px }
.popup__confetti i:nth-child(5) { left: 64%; top: -3%; background: #fff; animation-delay: .2s }
.popup__confetti i:nth-child(6) { left: 78%; top: -7%; background: #229ED9; animation-delay: .5s }
.popup__confetti i:nth-child(7) { left: 14%; top: -10%; background: #FFD700; animation-delay: 1.1s; width: 5px; height: 5px }
.popup__confetti i:nth-child(8) { left: 44%; top: -5%; background: #fff; animation-delay: .8s }
.popup__confetti i:nth-child(9) { left: 58%; top: -9%; background: #FFD700; animation-delay: .4s }
.popup__confetti i:nth-child(10) { left: 90%; top: -4%; background: #2AABEE; animation-delay: 1s; width: 6px; height: 6px }

@keyframes confetti-fall {
    0% { transform: translateY(0) rotate(0deg); opacity: 0 }
    8% { opacity: .65 }
    85% { opacity: .5 }
    100% { transform: translateY(85px) rotate(360deg); opacity: 0 }
}

/* ===== Тост ===== */
.toast {
    position: fixed;
    left: 50%;
    bottom: calc(120px + env(safe-area-inset-bottom));
    transform: translateX(-50%);
    background: rgba(30, 1, 57, .95);
    border: 1px solid rgba(195, 168, 93, .6);
    border-radius: 12px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 700;
    color: #FCF8CE;
    z-index: 40;
    animation: toast-in 2.4s ease forwards;
    pointer-events: none;
    white-space: nowrap
}

@keyframes toast-in {
    0% { opacity: 0; transform: translateX(-50%) translateY(14px) }
    10%, 80% { opacity: 1; transform: translateX(-50%) translateY(0) }
    100% { opacity: 0; transform: translateX(-50%) translateY(-8px) }
}
