@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

body {
    height: 100vh;
    display: grid;
    place-items: center;
    background-color: #323232;
    background-image: url("/public/img/bg.svg");
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
    /* место под фиксированное нижнее меню + зазор bottom у .foot-nav */
    padding-bottom: calc(96px + 14px + env(safe-area-inset-bottom, 0px));
}

.header-img {
    width: 100%;
}

#headerText {
    width: 90vw;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    margin-top: 10px;
    /* background-attachment: fixed; */
    background-position: top;
    background-repeat: no-repeat;
    background-size: contain;
    z-index: 9;
}

/* #floatingPrizes {
    background-image: url("/public/img/prizes.png");

    position: fixed;
    
} */

#floatingPrizes::after {
    content: "";
    position: fixed;
    background-image: url("/public/img/prizes.png");
    top: 0;
    left: 0;
    right: 0;
    z-index: 5;
    opacity: 0.5;
    width: 100vw;
    height: 100vh;
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
    animation: float 5s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }

    100% {
        transform: translateY(0);
    }
}

#wheelOfFortune {
    z-index: 10;
    display: flex;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background-image: url("/public/img/spin-circle.png");
    background-position: center;
    background-repeat: no-repeat;
    align-items: center;
    height: 330px;
    width: 330px;
}

#wheel {
    width: 300px;
    height: 300px;
    display: block;
    position: relative;
}

#spin {
    font: 1.5em/0 sans-serif;
    user-select: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 43%;
    left: 43%;
    width: 15%;
    height: 15%;
    text-shadow: 1px 1px #000;
    font-weight: 600;
    background: #161616;
    color: #fff;
    font-size: 10px;
    box-shadow: 0 0 0 8px currentColor, 0 0px 15px 5px rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    transition: 0.8s;
}

#spin::after {
    content: '';
    position: absolute;
    top: -17px;
    border: 10px solid transparent;
    border-bottom-color: currentColor;
    border-top: none;
}

.footContainer {
    position: relative;
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
    z-index: 100;
}

.spinBtnContainer {
    display: flex;
    align-items: center;
    flex-direction: column;
    width: 90vw;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    gap: 10px;
}

.spinBtn {
    width: 100%;
    border-radius: 10px;
    border: none;
    padding: 0;
    height: 64px;
    /* border: 3px solid #fde396; */
    background-color: transparent;
    background-image: none;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    position: relative;
    overflow: hidden;
    transition: opacity 0.3s ease;
}

/* два слоя иконок поверх кнопки — мягко перекрёстно перетекают друг в друга */
.spinBtn::before,
.spinBtn::after {
    content: '';
    position: absolute;
    inset: 0;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    transition: opacity 0.35s ease, transform 0.35s ease;
    pointer-events: none;
    will-change: opacity, transform;
}

/* «по умолчанию» — иконка «прокрутить» */
.spinBtn::before {
    background-image: url('/public/img/кнп-прокрут.svg');
    opacity: 1;
    transform: scale(1);
}

/* «во время прокрутки» — иконка «кручу-верчу» */
.spinBtn::after {
    background-image: url('/public/img/кнп-кручу.svg');
    opacity: 0;
    transform: scale(1.04);
}

/* сброс системного «серого» у нативной disabled-кнопки под картинкой */
.spinBtn:disabled {
    opacity: 0.5;
}

.spin-counter-container {
    display: none;
    width: 100%;
    color: white;
}

.spin-counter-container.active {
    display: block;
}

.inviteBtn {
    width: 100%;
    border-radius: 25px;
    border: none;
    padding: 0;
    height: 64px;
    background-color: transparent;
    background-image: url('/public/img/пригласитьдруга.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    cursor: pointer;
    display: none;
}

.followBtn {
    width: 90vw;
    max-width: 400px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    display: none;
    margin-left: auto;
    margin-right: auto;
}

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

.followBtn2 {
    width: 100%;
    border-radius: 13px;
    border: 1px solid #DFBB71;
    padding: 10px 15px;
    font-size: 23px;
    font-weight: 600;
    color: #FFEDBF;
    background: transparent;
    text-transform: uppercase;
    position: relative;
    font-family: 'Inter', sans-serif;
    display: none;
}

.followBtn2::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #534537, #312920);
    border-radius: 13px;
    z-index: -1;
    box-shadow: inset 0 4px 10px rgba(255, 255, 255, 0.2);
}

.inviteBtn-active {
    display: block;
}

/* не трогаем .spinBtn — у неё свой фон (svg/png), иначе проступает #68624f */
.disabled:not(.spinBtn) {
    background-color: #68624f !important;
    border: 3px solid #68624f;
}

.spinBtn.disabled {
    background-color: transparent !important;
    border: none !important;
    cursor: not-allowed;
}

.spinBtn.spinning {
    background-color: transparent !important;
    border: none !important;
    cursor: not-allowed;
}

/* плавная смена иконок при переходе в «прокрутку» и обратно */
.spinBtn.spinning::before {
    opacity: 0;
    transform: scale(0.96);
}

.spinBtn.spinning::after {
    opacity: 1;
    transform: scale(1);
}

.footContainer.foot-nav .spinBtnContainer {
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.footContainer.foot-nav {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 14px;
    z-index: 10002;
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

/* нижние вкладки: фон как у .float-text (::before) */
.bottom-tab-nav {
    position: relative;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    gap: 4px;
    width: 100%;
    padding: 8px 8px;
    border-radius: 25px;
    font-family: 'Inter', sans-serif;
    box-sizing: border-box;
}

.bottom-tab-nav::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 25px;
    z-index: 0;
    background-color: rgba(46, 46, 46, 0.3);
    box-shadow: 0px 11px 13px 3px rgba(0, 0, 0, 0.3);
}

.bottom-tab {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 0;
    padding: 8px 4px 10px;
    border: none;
    border-radius: 18px;
    cursor: pointer;
    background: transparent;
    color: rgba(255, 255, 255, 0.55);
    font-family: inherit;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.15;
    -webkit-tap-highlight-color: transparent;
}

.bottom-tab__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    color: inherit;
}

.bottom-tab__icon svg,
.bottom-tab__icon img,
.bottom-tab__icon .bottom-tab__icon-mask {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 0.18s ease, transform 0.18s ease, color 0.18s ease, background-color 0.18s ease;
}

.bottom-tab__icon img {
    opacity: 0.55;
}

/* силуэт SVG как маска — цвет берётся из currentColor у .bottom-tab */
.bottom-tab__icon .bottom-tab__icon-mask {
    background-color: currentColor;
    -webkit-mask: var(--icon-url) center / contain no-repeat;
    mask: var(--icon-url) center / contain no-repeat;
}

.bottom-tab--active .bottom-tab__icon img {
    opacity: 1;
    transform: scale(1.05);
}

.bottom-tab--active .bottom-tab__icon svg,
.bottom-tab--active .bottom-tab__icon .bottom-tab__icon-mask {
    transform: scale(1.05);
}

.bottom-tab__label {
    white-space: nowrap;
}

.bottom-tab--active {
    color: #e3ab5c;
    background-color: rgba(255, 255, 255, 0.08);
}

.bottom-tab:focus-visible {
    outline: 2px solid #e3ab5c;
    outline-offset: 2px;
}

.shopBtn {
    width: 49px;
    height: 49px;
    border-radius: 10px;
    border: 3px solid #fde396;
    background-color: #fde396;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 10px 5px;
    gap: 5px;
}

.shopBtn:hover {
    background-color: #f7d676;
}

.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    background-color: #272727;
    width: 100vw;
    height: 100%;
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: scroll;
}

.modal.win {
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    height: 100%;
    min-height: 100%;
    background-color: #272727 !important;
    background-image: url("/public/img/bg.svg");
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    overflow-x: hidden;
    overflow-y: auto;
    flex-direction: column;
}

.modal.win.show {
    display: flex !important;
    z-index: 10000;
    animation: winModalSlideUp 0.42s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes winModalSlideUp {
    from {
        opacity: 0;
        transform: translateY(100%);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* пока открыто «Вы забрали» — полностью прячем нижележащую модалку «Мои призы» */
body:has(.modal.win.show) .modal.info,
body:has(.modal.win.show) .modal.all-prizes {
    visibility: hidden;
}

/* пока открыто «Вы забрали» — прячем нижнее меню и подложку «Мои призы», чтобы фон был как у обычных модалок */
body:has(.modal.win.show) .footContainer.foot-nav {
    display: none !important;
}

.modal.win .info-modal-root {
    flex: 1;
    min-height: 100%;
    width: 100%;
    max-width: 100%;
}

.modal.win .info-modal-scroll {
    flex: 1;
    min-height: 0;
    width: 100%;
    max-width: 100%;
    align-self: stretch;
    border-radius: 0;
    padding-bottom: max(24px, env(safe-area-inset-bottom, 0px));
}

/* «Мои призы» / «Все призы»: модалка фиксированной высоты до таб-бара, скролл — на внутреннем списке */
.modal.info,
.modal.all-prizes {
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    /* высота до нижнего таб-бара — как padding-bottom у body (96 + 14 + safe) */
    height: calc(100vh - 96px - 14px - env(safe-area-inset-bottom, 0px) + 18px);
    height: calc(100dvh - 96px - 14px - env(safe-area-inset-bottom, 0px) + 18px);
    min-height: 0;
    max-height: calc(100vh - 96px - 14px - env(safe-area-inset-bottom, 0px) + 18px);
    max-height: calc(100dvh - 96px - 14px - env(safe-area-inset-bottom, 0px) + 18px);
    background-color: transparent !important;
    background-image: url("/public/img/bg.svg");
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
    overflow: hidden;
    flex-direction: column;
    border-radius: 0px 0px 30px 30px;
}

.modal.info.show,
.modal.all-prizes.show {
    display: flex !important;
    animation: prizesModalSwitch 0.28s ease-out;
}

@keyframes prizesModalSwitch {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.985);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

body.prizes-modal-open {
    overflow: hidden;
}

/* главный экран скрыт; лого на главной — в #headerText, в модалке — .my-prizes-logo */
body.prizes-modal-open #headerText,
body.prizes-modal-open #floatingPrizes,
body.prizes-modal-open .caseOpeningArea,
body.prizes-modal-open .spin-btn-container,
body.prizes-modal-open .float-container.float-container-active:has(.followBtn),
body.prizes-modal-open .spin-counter-container,
body.prizes-modal-open .float-container.error,
body.prizes-modal-open .footContainer:not(.foot-nav) {
    display: none !important;
}

/* лого в потоке скролла — вместе со списком; ширина как у .spinBtnContainer / таб-бара */
.modal.info .my-prizes-logo,
.modal.all-prizes .my-prizes-logo,
.modal.win .my-prizes-logo {
    position: relative;
    width: min(90vw, 400px);
    max-width: 100%;
    flex-shrink: 0;
    margin: 0;
    padding-top: calc(env(safe-area-inset-top, 0px) + 10px);
    padding-bottom: 12px;
    z-index: 1;
    pointer-events: none;
}

.modal.info .my-prizes-logo .header-img,
.modal.all-prizes .my-prizes-logo .header-img,
.modal.win .my-prizes-logo .header-img {
    width: 100%;
    display: block;
}

.info-modal-root {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    height: 100%;
    max-height: 100%;
    position: relative;
    z-index: 2;
}

.modal.info .info-modal-panel .info-modal-close.header-close {
    position: absolute;
    top: 12px;
    right: 10px;
    z-index: 2;
    height: 44px;
    width: 44px;
}

/* «стекло» у .info-modal-panel; скролл внутренний, ширина симметрично центрируется */
.info-modal-scroll {
    flex: 1;
    min-height: 0;
    min-width: 0;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    border-radius: 25px;
    margin: 0;
    padding-left: 0;
    padding-right: 0;
    padding-top: 0;
    padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
}

/* скрываем нативный скроллбар, чтобы не было асимметричного «жёлоба» — лого/панель остаются по центру */
.info-modal-scroll::-webkit-scrollbar {
    width: 0;
    height: 0;
    background: transparent;
}

body.prizes-modal-open .info-modal-root {
    max-height: 100%;
}

.info-modal-panel {
    position: relative;
    border-radius: 25px;
    padding: 20px 14px 16px;
    width: min(90vw, 400px);
    max-width: 100%;
    flex-shrink: 0;
    margin: 0;
    overflow: hidden;
}

.info-modal-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 25px;
    z-index: 0;
    background-color: rgba(46, 46, 46, 0.45);
    box-shadow: 0px 11px 13px 3px rgba(0, 0, 0, 0.25);
}

.info-modal-title,
.info-modal-divider,
.my-prizes-list {
    position: relative;
    z-index: 1;
}

.info-modal-title {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 24px;
    letter-spacing: 0.42em;
    text-transform: uppercase;
    text-align: center;
    color: #ffffff;
    margin: 0 0 12px;
    padding: 8px 8px 0 0.42em;
    font-weight: bold;
}

.modal.all-prizes .info-modal-title {
    white-space: nowrap;
}

.info-modal-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(227, 171, 92, 0.45), transparent);
    margin-bottom: 14px;
}

.modal.all-prizes .all-prizes-list {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.modal.all-prizes .all-prize-row+.all-prize-row {
    border-top: 1px solid rgba(197, 155, 109, 0.22);
}

.modal.all-prizes .all-prize-row {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    column-gap: 14px;
    row-gap: 6px;
    padding: 18px 2px;
    align-items: start;
}

.modal.all-prizes .all-prize-image {
    grid-column: 1;
    grid-row: 1 / -1;
    align-self: center;
    width: 72px;
    height: 72px;
    margin: 0;
}

.modal.all-prizes .all-prize-image .prize-image-container {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    overflow: hidden;
    padding: 0;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.1),
        0 4px 12px rgba(0, 0, 0, 0.2);
}

.modal.all-prizes .all-prize-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 18px;
}

.modal.all-prizes .all-prize-body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.modal.all-prizes .all-prize-title {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
    margin: 0;
    text-align: left;
}

.modal.all-prizes .all-prize-description {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.4;
    color: #ffbf91;
    margin: 0;
}

/* «Все призы»: внутренний скролл занимает всё, что осталось от высоты модалки минус док спинов */
.modal.all-prizes .all-prizes-layout {
    min-height: 0;
}

.modal.all-prizes .all-prizes-scroll {
    flex: 1;
    min-height: 0;
    padding-bottom: 8px;
}

/* «Мои призы» / «Все призы»: скролл шириной как панель, нижние углы закруглены — список органично «упирается» в низ */
.modal.info .info-modal-scroll,
.modal.all-prizes .info-modal-scroll {
    align-self: center;
    width: min(90vw, 400px);
    max-width: 100%;
    border-radius: 0 0 25px 25px;
}

.modal.all-prizes .all-prizes-spins-dock {
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    margin-top: 4px;
    padding: 10px 0 12px;
    padding-bottom: max(12px, env(safe-area-inset-bottom, 0px));
    z-index: 4;
}

.modal.all-prizes .all-prizes-spins-pill {
    width: min(90vw, 400px);
    max-width: 100%;
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border-radius: 25px;
    position: relative;
    border: none;
    outline: none;
    background-color: rgba(46, 46, 46, 0.42);
    box-shadow: 0px 11px 13px 3px rgba(0, 0, 0, 0.25);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
}

.modal.all-prizes .all-prizes-spins-line {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 20px;
    line-height: 1.25;
    text-align: center;
    white-space: nowrap;
}

.modal.all-prizes .all-prizes-spins-label {
    color: #ffffff;
}

.modal.all-prizes .all-prizes-spins-rolled {
    color: #e3ab5c;
}

.modal.info .my-prizes-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.modal.info .my-prizes-list .my-prize-row.my-prize-row--hidden {
    display: none !important;
}

/* Пустое состояние списка «Мои призы» */
.modal.info .my-prizes-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 48px 24px;
    text-align: center;
    color: rgba(255, 255, 255, 0.42);
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 18px;
    line-height: 1.35;
}

.modal.info .my-prizes-empty[hidden] {
    display: none;
}

.modal.info .my-prizes-empty__title,
.modal.info .my-prizes-empty__text {
    margin: 0;
}

.modal.info .my-prizes-list .my-prize-row:not(.my-prize-row--hidden)~.my-prize-row:not(.my-prize-row--hidden) {
    border-top: 1px solid rgba(197, 155, 109, 0.22);
}

.modal.info .my-prize-row {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) max-content;
    grid-template-rows: auto auto;
    column-gap: 14px;
    row-gap: 8px;
    padding: 18px 2px;
    border-bottom: none;
    align-items: start;
}

.modal.info .my-prize-row .prize-image {
    grid-column: 1;
    grid-row: 1 / -1;
    align-self: center;
    width: 72px;
    height: 72px;
    margin: 0;
    border: none;
    background: transparent;
}

.modal.info .my-prize-row .prize-image.catched {
    background: transparent !important;
}

.modal.info .my-prize-row .prize-image.n-catched {
    border-color: rgba(255, 255, 255, 0.12);
}

.modal.info .my-prize-row .prize-image-container {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    overflow: hidden;
    background-color: transparent !important;
    padding: 0;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.1),
        0 4px 12px rgba(0, 0, 0, 0.2);
}

.modal.info .my-prize-row .prize-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 18px;
}

.modal.info .my-prize-row .prize-image-overlay {
    display: none;
}

.modal.info .my-prize-row .prize-image.n-catched,
.modal.info .my-prize-row .prize-image.catched {
    height: 72px;
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal.info .my-prize-row .prize-row-body {
    display: contents;
}

.modal.info .my-prize-row .prize-description {
    display: none;
}

.modal.info .my-prize-row .prize-header.my-prize-title {
    all: unset;
    display: block;
    grid-column: 2 / -1;
    grid-row: 1;
    min-width: 0;
    position: relative;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
    text-align: left;
}

/* иначе тянется золотой ::before от глобального .prize-header */
.modal.info .my-prize-row .prize-header.my-prize-title::before {
    display: none;
}

.modal.info .my-prize-row .prize-row-status {
    grid-column: 2;
    grid-row: 2;
    align-self: center;
    min-width: 0;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    color: #c59b6d;
}

.modal.info .my-prize-row .prize-status-text {
    display: none;
    font-size: 15px;
    font-weight: 400;
}

.modal.info .my-prize-row.catched:has(.prize-claim-btn.active) .prize-status-text--claim {
    display: block;
    color: #E3AB5C;
}

.modal.info .my-prize-row.catched:not(:has(.prize-claim-btn.active)) .prize-status-text--done {
    display: block;
    color: #E3AB5C;
}

.modal.info .my-prize-row .prize-row-actions {
    grid-column: 3;
    grid-row: 2;
    align-self: center;
    justify-self: end;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-width: 0;
}

.modal.info .my-prize-row .prize-row-actions:not(:has(.prize-claim-btn.active)) {
    width: 0;
    max-width: 0;
    min-width: 0;
    padding: 0;
    margin: 0;
    overflow: hidden;
    pointer-events: none;
}

.modal.info .my-prize-row .prize-btn.prize-claim-btn {
    display: none;
    margin: 0;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 700;
    border-radius: 14px;
    border: none;
    cursor: pointer;
    color: #ffffff;
    text-shadow: 0 1px 1px rgba(42, 28, 12, 0.35);
    background: linear-gradient(90deg, #ffc66b 0%, rgba(255, 178, 102, 0.3) 100%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    font-family: 'Inter', sans-serif;
    text-align: center;
    white-space: nowrap;
    width: auto;
    min-width: 0;
    letter-spacing: 0.02em;
}

.modal.info .my-prize-row .prize-btn.prize-claim-btn.active {
    display: inline-block;
}


.show {
    display: block !important;
}

.prize {
    display: flex;
    gap: 15px;
}

.prize-image img {
    width: 110px;
    height: 110px;
    border-radius: 10px;
    vertical-align: middle;
}

.prize-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 0px 10px;
}

.container {
    padding: 20px;
    display: flex;
    gap: 20px;
    flex-direction: column;
    height: fit-content;
}

.container::before {
    background-image: url("/public/img/bg3.png");
    filter: blur(1px);
    /* content: ""; */
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: -1;
    width: 100%;
    height: 100%;
    background-size: cover;
}

.modal.info .container::before,
.modal.win .container::before {
    display: none;
}

.prize-header {
    padding: 10px 20px;
    border-radius: 10px;
    background: linear-gradient(90deg, #4D4D4D, #818181, #4D4D4D);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    border: 1px solid #DFBB71;
    border-radius: 14px;
    background-clip: text;
    position: relative;
    display: inline-block;
    text-transform: uppercase;
    font-size: 20px;
    word-break: normal;
    font-weight: 600;
    width: fit-content;
    text-align: center;
}

.prize-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #DFBB71, #FFDB92, #ECC679);
    border-radius: 13px;
    z-index: -1;
    box-shadow: inset 0 4px 10px rgba(0, 0, 0, 0.3);
}

.prize-description {
    color: #FFEDBF;
    font-size: 18px;
    font-weight: 600;
    text-align: start;
    font-family: 'Inter', sans-serif;
}

.container-header {
    color: #ffffff;
    text-align: center;
    padding-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.container-header h1 {
    padding: 10px 20px;
    border-radius: 10px;
    background: linear-gradient(90deg, #4D4D4D, #818181, #4D4D4D);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
    text-transform: uppercase;
    font-size: 25px;
}

.container-header h1::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #DFBB71, #FFDB92, #ECC679);
    border-radius: 10px;
    z-index: -1;
    box-shadow: inset 0 4px 10px rgba(0, 0, 0, 0.3);
}

.close-img {
    vertical-align: middle;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.container-header .header-close {
    border-radius: 5px;
    height: 49px;
    width: 49px;
    cursor: pointer;
}

.modalBtnClose {
    width: 100%;
    border-radius: 10px;
    border: none;
    padding: 7px 0px;
    font-size: 25px;
    font-weight: 600;
    color: #323232;
    background-color: #fde396;
}

.modalBtnClose.closeInfo {
    padding: 10px 15px;
    border-radius: 13px;
    border: 1px solid #DFBB71;
    background: transparent;
    color: #FFEDBF;
    font-size: 25px;
    text-transform: uppercase;
    position: relative;
    font-family: 'Inter', sans-serif;
}

.modalBtnClose.closeInfo::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #534537, #312920);
    border-radius: 13px;
    z-index: -1;
    box-shadow: inset 0 4px 10px rgba(255, 255, 255, 0.2);
}

/* Кнопка «Закрыть» в «Вы забрали» — стиль повторяет /public/img/кнп-кручу.svg */
.modalBtnClose.closeWin {
    width: 100%;
    height: 64px;
    padding: 0 15px;
    border: none;
    border-radius: 25px;
    background: linear-gradient(180deg,
            rgba(255, 178, 102, 0.114) 0%,
            rgba(255, 198, 107, 0.38) 100%);
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    transition: filter 0.15s ease, transform 0.05s ease;
}

.modalBtnClose.closeWin:hover {
    filter: brightness(1.08);
}

.modalBtnClose.closeWin:active {
    transform: translateY(1px);
}

.info-icon {
    pointer-events: none;
}

.win-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 18px;
}

.win-text {
    color: #FFEDBF;
    text-align: center;
    text-shadow: 1px 1px #000;
}

/* «Вы забрали»: панель растягивается на всю страницу */
.modal.win .win-modal-panel {
    width: 100%;
    max-width: 100%;
    flex: 1;
    min-height: 0;
    border-radius: 0;
    padding: 28px clamp(20px, 6vw, 40px) max(28px, env(safe-area-inset-bottom, 0px));
    display: flex;
    flex-direction: column;
}

.modal.win .win-modal-panel::before {
    border-radius: 0;
    background-color: transparent;
    box-shadow: none;
}

.modal.win .win-modal-title {
    letter-spacing: 0.32em;
    padding-left: 0.32em;
    white-space: nowrap;
}

.modal.win .win-modal-body {
    position: relative;
    z-index: 1;
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding-top: 12px;
}

.modal.win .win-img-frame {
    width: min(20vw, 360px);
    aspect-ratio: 1 / 1;
    border-radius: 0px;
    overflow: hidden;
    padding: 0;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.1),
        0 12px 32px rgba(0, 0, 0, 0.4);
    background: rgba(0, 0, 0, 0.2);
}

.modal.win .win-text {
    font-family: 'Inter', sans-serif;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.2;
    color: #ffffff;
    text-shadow: none;
    margin: 4px 0 0;
    text-align: center;
    word-break: break-word;
}

.modal.win .win-additional {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.4;
    color: #ffbf91;
    margin: 0;
    text-align: center;
}

.modal.win .modal-btn-container {
    width: 100%;
    max-width: 400px;
    margin-top: auto;
    align-self: center;
}

.full-window {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 10100;
    display: none;
    overflow: hidden;
    flex-direction: column;
    outline: 0;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 24px 16px;
    font-family: 'Inter', sans-serif;
    background-color: #323232;
    background-image: url("/public/img/bg.svg");
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
    color: rgba(255, 255, 255, 0.72);
    font-size: 17px;
    font-weight: 600;
    line-height: 1.35;
}

.sad {
    width: 100px;
    margin-bottom: 30px;
}

/* экран загрузки: Material — scrim, surface card, круговой индикатор */
.loader-material-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    padding: 28px 32px 24px;
    border-radius: 16px;
    background: rgba(46, 46, 46, 0.92);
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.28),
        0 2px 8px rgba(0, 0, 0, 0.22),
        0 6px 20px rgba(0, 0, 0, 0.32);
    position: relative;
    z-index: 1;
    max-width: min(280px, 88vw);
}

.loader-material {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
}

.loader-material__svg {
    display: block;
    width: 44px;
    height: 44px;
    animation: loaderMaterialRotate 1.1s linear infinite;
}

.loader-material__track {
    stroke: rgba(255, 255, 255, 0.14);
    stroke-width: 3.5;
}

.loader-material__active {
    stroke: #e3ab5c;
    stroke-width: 3.5;
    stroke-linecap: round;
    /* ~270° дуга, остальное зазор — как упрощённый CircularProgress */
    stroke-dasharray: 84.75 28.25;
    stroke-dashoffset: 0;
}

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

@media (prefers-reduced-motion: reduce) {
    .loader-material__svg {
        animation-duration: 2.4s;
    }
}

.loader-material__label {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: 0.01em;
    color: rgba(255, 255, 255, 0.78);
}

.full-window-loader {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    /* выше нижнего меню (10002), чтобы загрузка перекрывала вкладки */
    z-index: 10100;
    display: none;
    overflow: hidden;
    flex-direction: column;
    outline: 0;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 24px 16px;
    font-family: 'Inter', sans-serif;
    background-color: rgba(32, 32, 32, 0.9);
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
}

@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
    .full-window-loader {
        background-color: rgba(18, 18, 18, 0.52);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }
}

.full-window-active {
    display: flex;
}

.float-container {
    display: none;
    color: white;
    z-index: 9;
    position: relative;
    text-align: center;
}

.float-container-active {
    display: block;
}

.float-container.spin-btn-container {
    justify-content: center;
    align-items: center;
}

/* тот же шаг по высоте: «пригласить» → счётчик спинов; не нижний foot с menu */
.footContainer:has(> .spinBtnContainer .inviteBtn) {
    margin-bottom: 12px;
}

/* если между прокруткой и пригласить видна кнопка «подписаться» */
.float-container.float-container-active:has(.followBtn.followBtn-active) {
    margin-bottom: 12px;
}

.float-container .spinBtn {
    width: 90vw;
    max-width: 400px;
    height: 64px;
    border-radius: 25px;
}

.float-text {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 20px;
    text-align: center;
    padding: 10px 20px;
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 90vw;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    height: 64px;
    color: #ffffff;
}

.float-text::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 25px;
    z-index: -1;
    background-color: rgba(46, 46, 46, 0.3);
    box-shadow: 0px 11px 13px 3px rgba(0, 0, 0, 0.3);
}

.spin-counter {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 20px;
    color: #E3AB5C;
    font-style: bold;
    padding: 0 10px;
}

.error {
    position: absolute;
}

.text-center {
    text-align: center;
}

.itemBoxAn,
.itemBoxAnW {
    border-radius: 0px !important;
    border: none !important;
    width: 110px;
    overflow: hidden;
    object-fit: cover;
    height: 110px;
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.08) 0%,
            rgba(255, 255, 255, 0.18) 50%,
            rgba(255, 255, 255, 0.08) 100%);
    background-size: 200% 200%;
    animation: itemBoxShimmer 1.8s ease-in-out infinite;
    position: relative;
    min-width: 110px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.itemBoxAn:has(img:not([src=""])),
.itemBoxAnW:has(img:not([src=""])) {
    background: none;
    animation: none;
}

@keyframes itemBoxShimmer {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.itemBoxAn>img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    vertical-align: middle;
}

/* .itemBoxAnW {
    background: #7c837c !important;
} */
.shop-notify {
    color: white;
}

.scroll-container {
    overflow: hidden;
    position: relative;
}

.container-fluid {
    width: 95vw;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
    max-width: 450px;
    z-index: 999;
}

.row {
    display: -ms-flexbox;
    display: flex;
    gap: 10px;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
}

.flex-nowrap {
    -ms-flex-wrap: nowrap !important;
    flex-wrap: nowrap !important;
}

.d-flex {
    display: -ms-flexbox !important;
    display: flex !important;
}

.visible-part {
    overflow: hidden;
}

.caseOpeningArea:before {
    content: "";
    position: relative;
    z-index: 999;
    top: 30px;
    bottom: 0;
    left: 47%;
    border-style: solid;
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.5));
    border-color: rgb(255, 255, 255) transparent transparent transparent;
    /* border-color: rgb(255 255 255) transparent transparent transparent; */
    border-width: 30px 20px 0 20px;
}

.caseOpeningArea:after {
    content: "";
    position: relative;
    z-index: 1;
    top: 999;
    bottom: 30px;
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.5));
    left: 47%;
    border-style: solid;
    border-width: 0 20px 30px 20px;
    border-color: transparent transparent rgb(255, 255, 255) transparent;
    /* border-color: transparent transparent rgb(255 255 255) transparent; */
}

.visible-part {
    border-radius: 20px;
    border: 5px solid #ffffff;
    padding: 10px;
}

/* .shop .prize {
    -webkit-filter: blur(5px);
    -moz-filter: blur(5px);
    -o-filter: blur(5px);
    -ms-filter: blur(5px);
    filter: url(#blur);
    filter: blur(5px);
    filter: progid:DXImageTransform.Microsoft.Blur(PixelRadius='3') grayscale(100%);
} */

.shop-item-btn {
    width: 200px;
    height: 49px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    border: 3px solid #fde396;
    background-color: #fde396;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 10px 5px;
    gap: 5px;
}

.info-text-shop {
    position: relative;
    /* top: 50vh; */
    z-index: 999;
    /* left: 50vw; */
    /* right: 50vw; */
    /* bottom: 50vh; */
    text-align: center;
    color: white;
    font-size: 18px;
    /* background-color: #32323238; */
    padding: 10px 15px;
}

.info-points {
    font-size: 25px;
    margin-left: auto;
    margin-right: auto;
}

.pize-price {
    color: white;
    font-weight: 600;
}

.info-text {
    color: #fff;
    font-size: 18px;
    padding: 10px 0px;
    text-align: start;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.prize-already {
    font-size: 15px;
    text-align: center;
    padding: 5px 10px;
    color: #4D4D4D;
    font-weight: 600;
    margin-top: auto;
    display: none;
}

.prize-already.active {
    display: block;
}

.prize-n-already {
    font-size: 15px;
    text-align: center;
    padding: 5px 9px;
    color: #FFEDBF;
    font-weight: 600;
    margin-top: auto;
    display: none;
}

.prize-n-already.active {
    display: block;
}

.prize-image {
    border-radius: 13px;
    border: 1px solid #FFEDBF;
}

.prize-image.n-catched {
    text-align: center;
    background: linear-gradient(59deg, #534537, #312920);
    border-radius: 13px;
    height: max-content;
}

.prize-image.catched {
    text-align: center;
    background: linear-gradient(90deg, #DFBB71, #FFDB92, #ECC679);
    border-radius: 13px;
    height: max-content;
}

.prize-image-container {
    background-color: #FFDFA2;
    border-radius: 10px;
    padding: 1px;
}

.prize.catched {
    border-radius: 13px;
}

.prize-image-overlay {
    border-radius: 13px;
}

.prize-btn {
    background: linear-gradient(90deg, #DFBB71, #FFDB92, #ECC679);
    padding: 5px 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 225px;
    /* height: 30px; */
    text-align: center;
    vertical-align: middle;
    font-weight: 600;
    border-radius: 10px;
    color: #4D4D4D;
    display: none;
}

.prize-header.n-catched {
    color: #FFEDBF;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
    background-clip: unset;
    background: transparent;
}

.prize-header.n-catched::before {
    background: linear-gradient(90deg, #534537, #312920);
    border: 1px solid #534537;
    box-shadow: inset 0 4px 10px rgba(255, 255, 255, 0.2);
}

.prize-btn.active {
    display: block;
}

.win-additional {
    text-align: center;
    font-weight: 400;
    color: white;
    font-size: 15px;
    display: none;
}

.win-additional.active {
    display: block;
}

/* Стили для крупных призов в рулетке */
/* .premium-prize {
    position: relative;
    animation: premium-glow 2s ease-in-out infinite;
    filter: drop-shadow(0 0 8px #ffd700) drop-shadow(0 0 15px #ff8c00);
}

@keyframes premium-glow {
    0%, 100% {
        filter: drop-shadow(0 0 8px #ffd700) drop-shadow(0 0 15px #ff8c00);
    }
    50% {
        filter: drop-shadow(0 0 15px #ffd700) drop-shadow(0 0 25px #ff8c00) drop-shadow(0 0 35px #ffff00);
    }
}

*/

/* Дополнительная рамка для крупных призов */
/* .itemBoxAn:has(.premium-prize) {
    position: relative;
}

.itemBoxAn:has(.premium-prize)::before {
    content: "";
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(45deg, #ffd700, #ff8c00, #ffff00, #ffd700);
    background-size: 400% 400%;
    border-radius: 5px;
    z-index: -1;
    animation: premium-border 3s ease infinite;
}

@keyframes premium-border {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
} */