
body {
    background-image: url('/static/images/bg-main.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* Полупрозрачное затемнение фона */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: -1;
}

/* Навигация */
.navbar {
    background-color: rgba(0, 0, 0, 0.8) !important;
    border-bottom: 1px solid #2a2a2a;
}

.navbar-brand {
    font-size: 1.5rem;
    letter-spacing: 0.5px;
}

.navbar-brand small {
    font-size: 0.8rem;
    font-weight: 300;
}

.navbar-nav .nav-link img {
    vertical-align: middle;
    margin-right: 5px;
 
}

/* Футер */
footer {
    background-color: rgba(0, 0, 0, 0.8) !important;
}

footer a {
    transition: color 0.2s;
}

footer a:hover {
    color: #f0b90b !important;
    text-decoration: underline !important;
}

/* Карточки кейсов */
.case-card {
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
    border-radius: 24px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.case-title {
    font-size: 2rem;
    font-weight: bold;
    color: #f0b90b;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 20px;
}


.text-discount {
    color: #2f71c7; /* ваш цвет */
}





/* Игровой автомат */
.slot-machine {
    position: relative;
    width: 1012px;      /* подставьте своё значение */
    margin: 0 auto;
    overflow: hidden;
    padding: 0;
}

.items-wrapper {
    display: flex;
    gap: 12px;
    padding: 5px 0;
}

.item {
    width: 80px;
    height: 80px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: #fff;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    flex-shrink: 0;
    position: relative;
    flex-shrink: 0;
}

.item img {
    width: 100%;
    height: 100%;
    object-fit: contain;  /* сохраняет пропорции, вписывая изображение в блок */
}








/* Неподвижная рамка в центре */
.winning-frame {
    position: absolute;
    top: 0;
    left: 49.5%;
    transform: translateX(-50%);
    width: 86px;
    height: 86px;
    border: 4px solid #f0b90b;
    border-radius: 5px;
    box-shadow: 0 0 20px #f0b90b, inset 0 0 10px #f0b90b;
    pointer-events: none;
    z-index: 2;
}

/* Кнопка "Крутить" */
.btn-case {
    background-color: #f0b90b;
    border-color: #f0b90b;
    color: #0a0a0a;
    font-weight: bold;
    padding: 15px 25px;
    font-size: 1.2rem;
    border-radius: 12px;
    display: inline-block;
    text-decoration: none;
    transition: all 0.3s;
    min-width: 250px;
}

.btn-case:hover {
    background-color: #d9a407;
    transform: scale(1.02);
    box-shadow: 0 10px 20px rgba(240, 185, 11, 0.3);
    color: #0a0a0a;
}

.btn-case img {
   
    width: 24px;
    height: 24px;
    margin-right: 8px;
    vertical-align: middle;
    transform: translateY(-3px);
}

/* Адаптивность */
@media (max-width: 992px) {
    .item {
        width: 70px;
        height: 70px;
        font-size: 35px;
    }
    .winning-frame {
        width: 70px;
        height: 70px;
    }
}

@media (max-width: 768px) {
    .item {
        width: 60px;
        height: 60px;
        font-size: 30px;
    }
    .winning-frame {
        width: 60px;
        height: 60px;
    }
    .btn-case {
        font-size: 1rem;
        padding: 12px 20px;
        min-width: 200px;
    }
}

@media (max-width: 576px) {
    .item {
        width: 55px;
        height: 55px;
        font-size: 28px;
    }
    .winning-frame {
        width: 55px;
        height: 55px;
    }
}

/* Липкий футер */
html, body {
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
}

body {
    display: flex;
    flex-direction: column;
}

main {
    flex: 1 0 auto; /* основной контент растягивается */
}

footer {
    flex-shrink: 0; /* футер не сжимается */
    width: 100%;
    background-color: rgba(0, 0, 0, 0.8) !important;
    position: relative;
    left: 0;
    right: 0;
}



/* Для Chrome, Safari, Edge (WebKit) */
html::-webkit-scrollbar {
    display: none; /* или width: 0; */
}

/* Для Firefox */
html {
    scrollbar-width: none; /* скрывает полосу, но прокрутка остаётся */
}

/* Для Internet Explorer и старых Edge */
html {
    -ms-overflow-style: none; /* убирает полосу */
}







/* ===== СТРАНИЦА ИСТОРИЯ ПРИЗОВ ===== */
.prize-card {
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 20px;
    display: flex;
    gap: 20px;
    transition: transform 0.3s ease;
}

.prize-card:hover {
    transform: translateY(-3px);
}

.prize-icon {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.prize-details {
    flex: 1;
}

.prize-date {
    font-size: 0.85rem;
    color: #aaa;
    margin-bottom: 5px;
}

.prize-case {
    font-size: 1.2rem;
    font-weight: bold;
    color: #f0b90b;
    margin-bottom: 5px;
}

.prize-name {
    font-size: 1rem;
    color: #fff;
    margin-bottom: 10px;
}

.prize-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
    text-align: center;
}

.prize-status.obtained {
    background-color: #28a745;
    color: #fff;
}

.prize-status.not-obtained {
    background-color: #6c757d;
    color: #fff;
}

/* Адаптация для мобильных устройств */
@media (max-width: 768px) {
    .prize-card {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    .prize-icon {
        width: 100px;
        height: 100px;
    }
    .prize-status {
        display: inline-block;
        margin-top: 10px;
    }
}

.navbar-nav .nav-link img {
    transform: translateY(-2px);
}





.payment-method {
    cursor: pointer;
    transition: all 0.2s ease;
}
.payment-method:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: #f0b90b !important;
}
.payment-method.selected {
    border-color: #f0b90b;
    background-color: rgba(240, 185, 11, 0.2);
}
.sum-btn.active {
    background-color: #f0b90b !important;
    color: #0a0a0a !important;
}

.item {
    position: relative;
}
.item-quantity {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: rgba(0, 0, 0, 0.7);
    color: #f0b90b;
    font-size: 12px;
    font-weight: bold;
    padding: 2px 5px;
    border-radius: 10px;
    z-index: 1;
    pointer-events: none;
}


/* Стили для магазина (CSS Grid) */
.shop-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

@media (max-width: 992px) {
    .shop-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .shop-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .shop-grid {
        grid-template-columns: 1fr;
    }
}





/* Планшеты (≤ 992px) */
@media (max-width: 992px) {
    .slot-machine {
        width: calc(7 * (70px + 12px)); /* 574px */
        overflow: hidden;
        margin: 0 auto;
    }
    .item {
        width: 71px;
        height: 71px;
        top: -4px;
       
    }
    
    .items-wrapper {
        gap: 12px;
    }
}









/* Мобильные (≤ 768px) */
@media (max-width: 768px) {
    .slot-machine {
        width: calc(7 * (60px + 10px)); /* 490px */
    }
    .item {
        width: 61px;
        height: 61px;
       
    }
   
    .items-wrapper {
        gap: 10px;
    }
}



/* Очень маленькие экраны (≤ 576px) */
@media (max-width: 576px) {
    .slot-machine {
        width: calc(7 * (60px + 10px)); /* 357px */
        
    }
    .item {
        width: 61px;
        height: 61px;
      
    }
   

    .winning-frame {
        width: 63px;
        height: 63px;
      
    }


    .items-wrapper {
        gap: 10px;
       
    }



    
}

/* Для экранов ≤ 480px (дополнительное уменьшение) */
@media (max-width: 480px) 


{

    .slot-machine {
        width: calc(5 * (60px + 10px)); /* 490px */
    }


    .items-wrapper {
        gap: 6px;
    }
    .item {
        width: 44px;
        height: 44px;
    }
 

    .winning-frame {
        width: 48px;
        height: 48px;
      
    }

     .item-quantity {
        font-size: 8px;
        padding: 0px 3px;
        bottom: 2px;
        right: 2px;
    }

}











@media (max-width: 768px) {
    .navbar-nav {
        width: 100%;
        text-align: center;
    }
    .navbar-nav .nav-item {
        display: block;
        width: 100%;
        text-align: center;
    }
    .navbar-collapse {
        width: 100%;
    }
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    /* Фикс для горизонтальной прокрутки, чтобы футер не уезжал */
    body {
        overflow-x: hidden;
    }
    footer .container {
        overflow-x: hidden;
    }
}