/* Модальное окно с крутилкой */
.spinner-modal .prizes-modal-content {
    padding: 0;
    max-width: 400px;
    max-height: 90vh;
    overflow-y: auto;
    background: #000000;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
}

.spinner-title {
    font-size: 28px;
    margin: 20px 0 10px;
    font-family: 'Karateki', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #ffffff;
    text-align: center;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.spinner-description {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.4;
    margin: 0 auto 20px;
    max-width: 80%;
    text-align: center;
}

.prize-section {
    position: relative;
    padding: 20px 0;
    margin-top: 10px;
    overflow: hidden;
}

.prize-label {
    text-align: center;
    font-size: 22px;
    font-weight: bold;
    color: #00E853;
    margin-bottom: 10px;
    text-shadow: 0 0 10px rgba(0, 232, 83, 0.5);
}

.prize-indicator-top,
.prize-indicator-bottom {
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.prize-indicator-top {
    border-top: 15px solid #00E853;
    top: 50px;
}

.prize-indicator-bottom {
    border-bottom: 15px solid #00E853;
    bottom: 50px;
}

.prizes-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    margin: 30px 0;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.prizes-container::before,
.prizes-container::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 60px;
    z-index: 5;
    pointer-events: none;
}

.prizes-container::before {
    left: 0;
    background: linear-gradient(90deg, #000000 0%, transparent 100%);
}

.prizes-container::after {
    right: 0;
    background: linear-gradient(270deg, #000000 0%, transparent 100%);
}

.prizes-wrapper {
    display: flex;
    position: relative;
    transition: transform 5s cubic-bezier(0.1, 0.7, 0.1, 1);
    will-change: transform;
}

.prize-item {
    width: 120px;
    height: 160px;
    background-color: #1A1B23;
    border-radius: 10px;
    margin: 0 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
    transition: transform 0.3s ease, border 0.3s ease, box-shadow 0.3s ease;
}

.prize-item img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 15px;
}

.prize-item-name {
    font-size: 14px;
    color: #ffffff;
    text-align: center;
    font-weight: 500;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.prize-item.active {
    border: 2px solid #00E853;
    box-shadow: 0 0 20px rgba(0, 232, 83, 0.6);
    transform: scale(1.1);
    z-index: 10;
    background-color: rgba(0, 232, 83, 0.1);
}

.spinner-modal .spin-button {
    background: linear-gradient(to bottom, #00E853, #00B240);
    border: none;
    color: #ffffff;
    font-size: 18px;
    font-weight: bold;
    padding: 15px 40px;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 232, 83, 0.3);
    min-width: 200px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    margin: 20px auto 30px;
    display: block;
}

.spinner-modal .spin-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 232, 83, 0.4);
}

.spinner-modal .spin-button:active {
    transform: translateY(1px);
    box-shadow: 0 2px 10px rgba(0, 232, 83, 0.3);
}

.spinner-modal .spin-button:disabled {
    background: linear-gradient(to bottom, #666666, #444444);
    cursor: not-allowed;
    box-shadow: none;
    opacity: 0.7;
}

/* Анимация выигрыша */
@keyframes prizeWin {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.prize-win {
    animation: prizeWin 0.5s ease 3;
}

/* Модальное окно с выигрышем */
.win-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.win-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.win-modal .prizes-modal-content {
    background-color: #1A1B23;
    border-radius: 15px;
    padding: 30px;
    max-width: 300px;
    text-align: center;
    box-shadow: 0 0 30px rgba(0, 232, 83, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.win-modal.active .prizes-modal-content {
    transform: scale(1);
}

.win-modal h2 {
    font-size: 24px;
    color: #00E853;
    margin-bottom: 20px;
}

.win-prize {
    margin: 20px 0;
}

.win-prize img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 10px;
}

.win-prize h3 {
    font-size: 18px;
    color: #ffffff;
    margin-bottom: 5px;
}

.win-prize p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.claim-button {
    background: linear-gradient(to bottom, #00E853, #00B240);
    border: none;
    color: #ffffff;
    font-size: 16px;
    font-weight: bold;
    padding: 12px 30px;
    border-radius: 25px;
    cursor: pointer;
    margin-top: 20px;
    width: 100%;
    transition: all 0.3s ease;
}

.claim-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 232, 83, 0.3);
}

/* Стили для раздела новостей и акций */
:root {
    --color-green: #00E853;
    --color-dark: #1A1B23;
    --color-black: #000000;
    --color-white: #FFFFFF;
    --color-light-gray: rgba(255, 255, 255, 0.7);
}

.news-section {
    visibility: visible !important;
    opacity: 1 !important;
}

.news-item-wrapper {
    visibility: visible !important;
    opacity: 1 !important;
}

.news-item {
    visibility: visible !important;
    opacity: 1 !important;
}

.news-item-border {
    visibility: visible !important;
    opacity: 1 !important;
}

/* Исправление для модального окна новостей */
.announcement-modal {
    z-index: 9999;
}

.announcement-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
} 