/* ============================================================
   BetusX — popup "Слоты отключены"
   Использует токены проекта:
   блок #191E2D / #20273A, radius 20px, текст #fff / #7987AE,
   акцент #0066FF, синий градиент кнопок #4762F2 -> #3DC5F0
   ============================================================ */

/* 100vw в main.css учитывает ширину скроллбара и даёт горизонтальную
   прокрутку в момент открытия попапа — фиксим на 100% контейнера */
.overlayed {
    width: 100%;
    overflow-x: hidden;
}

.popup.popup--slots-notice {
    width: 500px;
    max-width: 100%;
    /* мягкий вход вместо slideIn на 100% — иначе оверлей на миг
       становится прокручиваемым и мигает скроллбар */
    -webkit-animation: snPopupIn .32s cubic-bezier(.2, .8, .25, 1) forwards;
    animation: snPopupIn .32s cubic-bezier(.2, .8, .25, 1) forwards;
    -webkit-transform: translateY(24px);
    transform: translateY(24px);
    opacity: 0;
}

@-webkit-keyframes snPopupIn {
    100% { -webkit-transform: translateY(0); transform: translateY(0); opacity: 1; }
}

@keyframes snPopupIn {
    100% { -webkit-transform: translateY(0); transform: translateY(0); opacity: 1; }
}

.overlayed.animation-closed .popup.popup--slots-notice {
    -webkit-animation: snPopupOut .26s ease forwards;
    animation: snPopupOut .26s ease forwards;
    opacity: 1;
}

@-webkit-keyframes snPopupOut {
    100% { -webkit-transform: translateY(24px); transform: translateY(24px); opacity: 0; }
}

@keyframes snPopupOut {
    100% { -webkit-transform: translateY(24px); transform: translateY(24px); opacity: 0; }
}

.popup--slots-notice .popup__content {
    padding: 30px 22px;
}

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

/* ---------- переход "старый формат -> новый" ---------- */
.slots-notice__switch {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 22px;
}

.slots-notice__tile {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    background: #191E2D;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
}

/* --- старый: барабаны --- */
.slots-notice__tile--old {
    opacity: 0;
    -webkit-transform: scale(.8);
    transform: scale(.8);
    transition: opacity .45s ease, transform .55s cubic-bezier(.2, .8, .25, 1), filter .5s ease;
}

.slots-notice.is-open .slots-notice__tile--old {
    opacity: 1;
    -webkit-transform: scale(1);
    transform: scale(1);
}

.slots-notice.is-open .slots-notice__tile--old {
    -webkit-animation: snOldFade .6s ease 1.45s forwards;
    animation: snOldFade .6s ease 1.45s forwards;
}

@keyframes snOldFade {
    100% { opacity: .35; -webkit-filter: grayscale(1); filter: grayscale(1); }
}

@-webkit-keyframes snOldFade {
    100% { opacity: .35; -webkit-filter: grayscale(1); filter: grayscale(1); }
}

.slots-notice__reels {
    display: flex;
    gap: 4px;
}

.slots-notice__reel {
    position: relative;
    width: 13px;
    height: 34px;
    border-radius: 5px;
    background: #20273A;
    overflow: hidden;
}

.slots-notice__reel:before,
.slots-notice__reel:after {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 9px;
    z-index: 2;
    pointer-events: none;
}

.slots-notice__reel:before { top: 0;    background: linear-gradient(180deg, #20273A, transparent); }
.slots-notice__reel:after  { bottom: 0; background: linear-gradient(0deg,   #20273A, transparent); }

.slots-notice__strip {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
}

.slots-notice__strip i {
    display: block;
    height: 17px;
    line-height: 17px;
    font-style: normal;
    font-weight: 700;
    font-size: 10px;
    text-align: center;
    color: #7987AE;
}

.slots-notice.is-open .slots-notice__strip {
    -webkit-animation: snReelSpin .34s linear 3 forwards;
    animation: snReelSpin .34s linear 3 forwards;
}

.slots-notice.is-open .slots-notice__reel:nth-child(2) .slots-notice__strip {
    -webkit-animation: snReelSpin .30s linear 4 forwards;
    animation: snReelSpin .30s linear 4 forwards;
}

.slots-notice.is-open .slots-notice__reel:nth-child(3) .slots-notice__strip {
    -webkit-animation: snReelSpin .28s linear 5 forwards;
    animation: snReelSpin .28s linear 5 forwards;
}

@-webkit-keyframes snReelSpin {
    from { -webkit-transform: translateY(0); transform: translateY(0); }
    to   { -webkit-transform: translateY(-68px); transform: translateY(-68px); }
}

@keyframes snReelSpin {
    from { -webkit-transform: translateY(0); transform: translateY(0); }
    to   { -webkit-transform: translateY(-68px); transform: translateY(-68px); }
}

/* --- стрелка --- */
.slots-notice__arrow {
    color: #46537B;
    display: flex;
    align-items: center;
    opacity: 0;
    transition: opacity .4s ease .35s, color .4s ease 1.5s;
}

.slots-notice__arrow .icon {
    width: 18px;
    height: 18px;
}

.slots-notice.is-open .slots-notice__arrow {
    opacity: 1;
    color: #0066FF;
}

.slots-notice.is-open .slots-notice__arrow .icon {
    -webkit-animation: snArrow 1.4s ease-in-out .9s infinite;
    animation: snArrow 1.4s ease-in-out .9s infinite;
}

@-webkit-keyframes snArrow {
    0%, 100% { -webkit-transform: translateX(-3px); transform: translateX(-3px); opacity: .55; }
    50%      { -webkit-transform: translateX(3px);  transform: translateX(3px);  opacity: 1; }
}

@keyframes snArrow {
    0%, 100% { -webkit-transform: translateX(-3px); transform: translateX(-3px); opacity: .55; }
    50%      { -webkit-transform: translateX(3px);  transform: translateX(3px);  opacity: 1; }
}

/* --- новый: внутренние игры --- */
.slots-notice__tile--new {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    padding: 12px;
    opacity: 0;
    -webkit-transform: scale(.8);
    transform: scale(.8);
    transition: opacity .45s ease .12s, transform .55s cubic-bezier(.2, .8, .25, 1) .12s, background .5s ease 1.5s, box-shadow .5s ease 1.5s;
}

.slots-notice.is-open .slots-notice__tile--new {
    opacity: 1;
    -webkit-transform: scale(1);
    transform: scale(1);
    background: linear-gradient(94.98deg, #4762F2 10.08%, #3DC5F0 94.83%);
    box-shadow: inset 0 -3px 0 #2A63CC, 0 8px 24px rgba(71, 98, 242, .35);
}

.slots-notice__tile--new .icon {
    width: 16px;
    height: 16px;
    color: #46537B;
    transition: color .45s ease 1.55s;
}

.slots-notice.is-open .slots-notice__tile--new .icon {
    color: #fff;
}

.slots-notice__game {
    display: flex;
    align-items: center;
    justify-content: center;
}

.slots-notice.is-open .slots-notice__game {
    -webkit-animation: snGamePop .5s cubic-bezier(.2, .8, .25, 1.4) forwards;
    animation: snGamePop .5s cubic-bezier(.2, .8, .25, 1.4) forwards;
}

.slots-notice.is-open .slots-notice__game:nth-child(1) { -webkit-animation-delay: 1.55s; animation-delay: 1.55s; }
.slots-notice.is-open .slots-notice__game:nth-child(2) { -webkit-animation-delay: 1.63s; animation-delay: 1.63s; }
.slots-notice.is-open .slots-notice__game:nth-child(3) { -webkit-animation-delay: 1.71s; animation-delay: 1.71s; }
.slots-notice.is-open .slots-notice__game:nth-child(4) { -webkit-animation-delay: 1.79s; animation-delay: 1.79s; }

@-webkit-keyframes snGamePop {
    0%   { -webkit-transform: scale(.55); transform: scale(.55); }
    60%  { -webkit-transform: scale(1.18); transform: scale(1.18); }
    100% { -webkit-transform: scale(1); transform: scale(1); }
}

@keyframes snGamePop {
    0%   { -webkit-transform: scale(.55); transform: scale(.55); }
    60%  { -webkit-transform: scale(1.18); transform: scale(1.18); }
    100% { -webkit-transform: scale(1); transform: scale(1); }
}

.slots-notice__pulse {
    position: absolute;
    left: 0; top: 0; right: 0; bottom: 0;
    border-radius: 20px;
    border: 2px solid #4762F2;
    opacity: 0;
    pointer-events: none;
}

.slots-notice.is-open .slots-notice__pulse {
    -webkit-animation: snPulse .9s ease 1.5s;
    animation: snPulse .9s ease 1.5s;
}

@-webkit-keyframes snPulse {
    0%   { opacity: .8; -webkit-transform: scale(1); transform: scale(1); }
    100% { opacity: 0;  -webkit-transform: scale(1.45); transform: scale(1.45); }
}

@keyframes snPulse {
    0%   { opacity: .8; -webkit-transform: scale(1); transform: scale(1); }
    100% { opacity: 0;  -webkit-transform: scale(1.45); transform: scale(1.45); }
}

/* ---------- тексты ---------- */
.slots-notice__title,
.slots-notice__text,
.slots-notice__list,
.slots-notice__buttons {
    opacity: 0;
    -webkit-transform: translateY(14px);
    transform: translateY(14px);
    transition: opacity .5s ease, transform .5s cubic-bezier(.2, .8, .25, 1);
}

.slots-notice.is-open .slots-notice__title   { opacity: 1; -webkit-transform: none; transform: none; transition-delay: .10s; }
.slots-notice.is-open .slots-notice__text    { opacity: 1; -webkit-transform: none; transform: none; transition-delay: .22s; }
.slots-notice.is-open .slots-notice__list    { opacity: 1; -webkit-transform: none; transform: none; transition-delay: .34s; }
.slots-notice.is-open .slots-notice__buttons { opacity: 1; -webkit-transform: none; transform: none; transition-delay: .46s; }

.slots-notice__title {
    font-weight: 700;
    font-size: 18px;
    line-height: 24px;
    color: #fff;
}

.slots-notice__text {
    margin-top: 14px;
    font-weight: 500;
    font-size: 15px;
    line-height: 22px;
    color: #7987AE;
}

.slots-notice__text b {
    font-weight: 500;
    color: #fff;
}

.slots-notice__text .sn-accent {
    font-weight: 500;
    color: #0066FF;
}

/* ---------- список преимуществ ---------- */
.slots-notice__list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 22px;
}

.slots-notice__item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border-radius: 1000px;
    background: #191E2D;
    font-weight: 500;
    font-size: 13px;
    line-height: 16px;
    color: #fff;
}

.slots-notice__item .icon {
    width: 14px;
    height: 14px;
    color: #0066FF;
    flex: none;
}

/* ---------- кнопки ---------- */
.slots-notice__buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 26px;
    text-transform: uppercase;
}

.slots-notice__buttons .btn {
    min-width: 145px;
}

.slots-notice__buttons .btn--blue {
    min-width: 220px;
}

/* ---------- мобильные ---------- */
@media only screen and (max-width: 550px) {
    .popup--slots-notice .popup__content { padding: 24px 16px; }
    .slots-notice__switch { margin-bottom: 18px; }
    .slots-notice__tile { width: 64px; height: 64px; border-radius: 18px; }
    .slots-notice__title { font-size: 16px; line-height: 21px; }
    .slots-notice__text { font-size: 14px; line-height: 20px; margin-top: 12px; }
    .slots-notice__item { font-size: 12px; padding: 8px 12px; }
    .slots-notice__buttons { flex-direction: column; align-items: stretch; margin-top: 22px; }
    .slots-notice__buttons .btn,
    .slots-notice__buttons .btn--blue { min-width: 0; width: 100%; }
}

/* ---------- отключённая анимация ---------- */
@media (prefers-reduced-motion: reduce) {
    .slots-notice *,
    .slots-notice.is-open * {
        -webkit-animation: none !important;
        animation: none !important;
        transition-duration: .01s !important;
    }
}
