/* Кнопка рулетки */
#roulette-button {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: linear-gradient(135deg, #b8860b 0%, #8b6914 100%);
    color: #faf5eb;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(184, 134, 11, 0.4);
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
    border: 3px solid rgba(184, 134, 11, 0.3);
    animation: pulse 2s ease infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 8px 25px rgba(184, 134, 11, 0.4);
    }
    50% {
        box-shadow: 0 8px 35px rgba(184, 134, 11, 0.6);
    }
}

#roulette-button:active {
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 10px 35px rgba(184, 134, 11, 0.5);
    animation: none;
}

#roulette-button:active {
    transform: scale(0.95);
    box-shadow: 0 5px 20px rgba(184, 134, 11, 0.4);
}

#roulette-button i {
    font-size: 24px;
}

/* Модальное окно рулетки */
#roulette-modal {
    z-index: 3000;
}

#roulette-modal .modal-content {
    background: rgba(250, 245, 235, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.roulette-header {
    padding: 25px;
    text-align: center;
    border-bottom: 2px solid rgba(193, 154, 107, 0.3);
    background: linear-gradient(135deg, rgba(193, 154, 107, 0.1) 0%, rgba(139, 105, 61, 0.08) 100%);
}

.roulette-header h2 {
    font-family: 'Inter', sans-serif;
    font-size: 26px;
    font-weight: 700;
    margin: 0 0 10px 0;
    background: linear-gradient(135deg, #8b6f47 0%, #654321 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.roulette-description {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #666;
    margin: 0;
    line-height: 1.5;
    text-align: center;
}

.roulette-container {
    position: relative;
    width: 100%;
    height: 220px;
    margin: 30px 0;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(193, 154, 107, 0.15) 0%, rgba(139, 105, 61, 0.1) 100%);
    border-radius: 20px;
    box-shadow: inset 0 0 20px rgba(139, 105, 61, 0.15);
    border: 2px solid rgba(193, 154, 107, 0.3);
}

.roulette-container.spinning {
    box-shadow: inset 0 0 25px rgba(139, 105, 61, 0.2), 0 0 30px rgba(184, 134, 11, 0.3);
    animation: containerGlow 0.5s ease-in-out infinite;
}

@keyframes containerGlow {
    0%, 100% {
        border-color: rgba(193, 154, 107, 0.4);
    }
    50% {
        border-color: rgba(184, 134, 11, 0.6);
    }
}

.roulette-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    padding: 10px 0;
    box-sizing: border-box;
}

.roulette-items {
    display: flex;
    position: absolute;
    left: 0;
    top: 4%;
    transform: translateY(-50%);
    height: 200px;
}

.roulette-item {
    flex: 0 0 150px;
    height: 200px;
    padding: 15px;
    box-sizing: border-box;
    background: rgba(250, 245, 235, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    margin-right: 10px;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(101, 67, 33, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    border: 2px solid rgba(193, 154, 107, 0.3);
    transition: all 0.3s ease;
}

.roulette-item:active {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(139, 105, 61, 0.25);
}

.roulette-item-image {
    position: relative;
    width: 100%;
    height: 110px;
    margin-bottom: 10px;
    border-radius: 8px;
    overflow: hidden;
}

.roulette-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.roulette-item-sale {
    position: absolute;
    top: 5px;
    right: 5px;
    background: linear-gradient(135deg, #b8860b 0%, #8b6914 100%);
    color: #faf5eb;
    font-size: 10px;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(184, 134, 11, 0.4);
}

.roulette-item-title {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
    margin-bottom: 8px;
    height: 32px;
}

.roulette-item-price {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 700;
    background: linear-gradient(135deg, #8b6f47 0%, #654321 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.roulette-center-marker {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, transparent 0%, #8b6914 50%, transparent 100%);
    transform: translateX(-50%);
    z-index: 10;
    pointer-events: none;
    box-shadow: 0 0 10px rgba(184, 134, 11, 0.5);
}

.roulette-pointer {
    position: absolute;
    top: -10px;
    left: 50%;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid #8b6914;
    transform: translateX(-50%);
    z-index: 10;
    filter: drop-shadow(0 2px 5px rgba(184, 134, 11, 0.5));
}

.roulette-result {
    padding: 25px 20px;
    text-align: center;
    display: none;
    animation: fadeIn 0.5s ease;
}

.roulette-result h3 {
    font-family: 'Inter', sans-serif;
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 20px 0;
    background: linear-gradient(135deg, #8b6f47 0%, #654321 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.roulette-prize {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 25px;
    background: rgba(250, 245, 235, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(139, 105, 61, 0.2);
    margin: 0 auto;
    max-width: 240px;
    border: 2px solid rgba(193, 154, 107, 0.3);
}

.roulette-prize-clickable {
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 10px;
    border-radius: 12px;
    margin: -10px -10px 10px -10px;
}

.roulette-prize-clickable:active {
    background: rgba(193, 154, 107, 0.1);
    transform: scale(1.02);
}

.roulette-prize-clickable:active {
    transform: scale(0.98);
}

.roulette-prize img {
    width: 130px;
    height: 130px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
    border: 1px solid #f0f0f0;
}

.roulette-prize-title {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 500;
    text-align: center;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.4;
}

.roulette-prize-price {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #8b6f47 0%, #654321 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.roulette-add-to-cart {
    width: 100%;
    padding: 12px 18px;
    background: linear-gradient(135deg, #b8860b 0%, #8b6914 100%);
    color: #faf5eb;
    border: none;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(184, 134, 11, 0.3);
}

.roulette-add-to-cart:active {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(184, 134, 11, 0.4);
}

.roulette-add-to-cart:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(184, 134, 11, 0.3);
}

.roulette-add-to-cart.in-cart {
    background: rgba(193, 154, 107, 0.2);
    color: #8b6f47;
}

.roulette-add-to-cart .cart-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    justify-content: center;
}

.roulette-add-to-cart .cart-controls button {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #b8860b 0%, #8b6914 100%);
    color: #faf5eb;
    border: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.roulette-add-to-cart .cart-controls button:active {
    transform: scale(1.1);
}

.roulette-add-to-cart .cart-controls button:active {
    transform: scale(0.95);
}

.roulette-add-to-cart .cart-controls span {
    font-size: 16px;
    font-weight: 700;
    color: #8b6f47;
    min-width: 24px;
    text-align: center;
}

.roulette-spin-button {
    width: 85%;
    margin: 0 auto 25px;
    padding: 18px;
    background: linear-gradient(135deg, #b8860b 0%, #8b6914 100%);
    color: #faf5eb;
    border: none;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', sans-serif;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(184, 134, 11, 0.3);
    position: relative;
    overflow: hidden;
}

.roulette-spin-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(184, 134, 11, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.roulette-spin-button:active::before {
    width: 400px;
    height: 400px;
}

.roulette-spin-button:active {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(184, 134, 11, 0.4);
}

.roulette-spin-button:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(184, 134, 11, 0.3);
}

.roulette-spin-button:disabled {
    background: linear-gradient(135deg, #cccccc 0%, #999999 100%);
    color: #666666;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.modal-close.roulette-close {
    top: 15px;
    right: 15px;
}

.roulette-close i {
    color: #faf5eb;
}


