* {
    margin: 0;
        padding: 0;
    box-sizing: border-box;
    }

body {
    font-family: 'Arial', sans-serif;
        background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
        min-height: 100vh;
    color: white;
        overflow-x: hidden;
    }

.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
        pointer-events: none;
        z-index: 1;
    }
    
    .star {
        position: absolute;
        width: 2px;
        height: 2px;
        background: white;
        border-radius: 50%;
        animation: twinkle 3s infinite;
    }
    
    @keyframes twinkle {
    
        0%,
        100% {
            opacity: 0.3;
        }
    
        50% {
            opacity: 1;
        }
    }

.game-container {
    max-width: 1200px;
        margin: 0 auto;
        padding: 20px;
        position: relative;
        z-index: 2;
    }

.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(10px);
        border-radius: 20px;
        padding: 20px 30px;
        border: 1px solid rgba(255, 255, 255, 0.2);
    }

.logo h1 {
    font-size: 2.5rem;
    background: linear-gradient(45deg, #ff6b35, #f7931e, #ffd700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
    animation: logoGlow 2s ease-in-out infinite alternate;
}

@keyframes logoGlow {
    from {
        filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.5));
    }

    to {
        filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.8));
    }
}

.user-controls {
    display: flex;
    gap: 15px;
    }

.user-btn {
    padding: 12px 24px;
        background: linear-gradient(45deg, #4CAF50, #45a049);
        border: none;
        border-radius: 25px;
        color: white;
        font-weight: bold;
        font-size: 14px;
    cursor: pointer;
        transition: all 0.3s ease;
        box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.user-btn:hover {
    transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
    }

.user-btn.pulse {
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

                                50% {
                                    transform: scale(1.05);
                                }

                                100% {
                                    transform: scale(1);
                                }
}

.score-display {
    display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
        margin-bottom: 40px;
    }

.score-item {
    background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(10px);
        border-radius: 15px;
        padding: 25px;
        text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
        transition: transform 0.3s ease;
    }
    
    .score-item:hover {
        transform: translateY(-5px);
}

.score-item p {
    font-size: 14px;
    color: #bbb;
        margin-bottom: 10px;
        letter-spacing: 2px;
    }

.score-item h2 {
    font-size: 2.5rem;
        color: #ffd700;
        text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    }

.slot-machine {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 40px 0;
    padding: 40px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 25px;
    border: 2px solid rgba(255, 215, 0, 0.3);
    backdrop-filter: blur(10px);
    position: relative;
}

.slot-machine::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #ffd700, #ff6b35, #ffd700);
    border-radius: 25px;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
}

.slot-machine.spinning::before {
    opacity: 0.7;
    animation: borderGlow 0.5s ease-in-out infinite alternate;
}

@keyframes borderGlow {
    from {
        opacity: 0.5;
    }

                                to {
                                    opacity: 1;
                                }
}

.slot-machine.jackpot-win {
    animation: jackpotShake 0.5s ease-in-out 3;
}

@keyframes jackpotShake {

    0%,
    100% {
            transform: translateX(0);
        }

                                25% {
                                    transform: translateX(-10px);
                                }
                
                                75% {
                                    transform: translateX(10px);
                                }
                                }

.slot {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #2c3e50, #34495e);
    border: 3px solid #ffd700;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
        transition: all 0.3s ease;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
        position: relative;
        overflow: hidden;
    }

.slot::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
        transition: left 0.5s ease;
    }
    
    .slot:hover::before {
        left: 100%;
    }
    
    .slot.slot-stop-effect {
        animation: slotBounce 0.3s ease;
        border-color: #ff6b35;
    }
    
    @keyframes slotBounce {
        0% {
            transform: scale(1);
        }
    
        50% {
            transform: scale(1.1);
        }
    
        100% {
            transform: scale(1);
        }
    }

.result-message {
    text-align: center;
    font-size: 1.5rem;
        font-weight: bold;
    margin: 20px 0;
        height: 60px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

.result-message.win-animation {
    animation: winPulse 0.8s ease-in-out;
    color: #ffd700;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.8);
}

@keyframes winPulse {
    0% {
        transform: scale(0.8);
            opacity: 0;
        }

                                50% {
        transform: scale(1.2);
        }

                                100% {
                                    transform: scale(1);
        opacity: 1;
        }
        }

.controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    margin: 40px 0;
}

.betting-controls {
    display: flex;
    gap: 20px;
    align-items: center;
}

.betting-btn {
    padding: 15px 30px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    border: none;
    border-radius: 25px;
    color: white;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.betting-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.betting-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#spin-button {
    padding: 20px 50px;
    background: linear-gradient(45deg, #ff6b35, #f7931e);
    border: none;
    border-radius: 50px;
    color: white;
    font-weight: bold;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 25px rgba(255, 107, 53, 0.4);
    position: relative;
    overflow: hidden;
}

#spin-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

#spin-button:hover:not(:disabled)::before {
    left: 100%;
}

#spin-button:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255, 107, 53, 0.6);
}

#spin-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.symbols-info {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    margin: 40px 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.symbols-info h3 {
    text-align: center;
    margin-bottom: 25px;
        font-size: 1.5rem;
        color: #ffd700;
        text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.symbols-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.symbols-grid ul {
    list-style: none;
}

.symbols-grid li {
    display: flex;
    justify-content: space-between;
    align-items: center;
        padding: 15px 20px;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 12px;
        margin-bottom: 10px;
        transition: all 0.3s ease;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

.symbols-grid li:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.symbol {
    font-size: 1.5rem;
    margin-right: 10px;
}

.multiplier {
    color: #ffd700;
    font-weight: bold;
    font-size: 1.1rem;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
        backdrop-filter: blur(5px);
        display: flex;
        align-items: center;
        justify-content: center;
    opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    z-index: 1000;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: linear-gradient(135deg, #2c3e50, #34495e);
        border-radius: 25px;
        padding: 30px;
        max-width: 500px;
    width: 90%;
        border: 2px solid rgba(255, 215, 0, 0.3);
        transform: scale(0.8);
        transition: transform 0.3s ease;
}

.modal-overlay.active .modal {
    transform: scale(1);
    }

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    }

.modal-title {
    font-size: 1.5rem;
        color: #ffd700;
    }

.close-btn {
    background: none;
    border: none;
    color: #fff;
        font-size: 2rem;
        cursor: pointer;
        padding: 0;
    width: 40px;
        height: 40px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
    }

.close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
        transform: rotate(90deg);
    }

.credit-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 15px;
    margin-bottom: 25px;
    }

.credit-option {
    background: rgba(255, 255, 255, 0.1);
        border: 2px solid rgba(255, 255, 255, 0.2);
        border-radius: 15px;
        padding: 20px 15px;
        text-align: center;
        cursor: pointer;
    transition: all 0.3s ease;
    }

.credit-option:hover {
    border-color: #ffd700;
        transform: translateY(-3px);
}

.credit-option.selected {
    border-color: #ffd700;
        background: rgba(255, 215, 0, 0.1);
    }

.credit-amount {
    font-size: 1.5rem;
        font-weight: bold;
    color: #ffd700;
    margin-bottom: 5px;
    }

.credit-bonus {
    font-size: 0.9rem;
        color: #4CAF50;
    }

.credit-bonus input {
    width: 100%;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    text-align: center;
}

.add-credit-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(45deg, #4CAF50, #45a049);
        border: none;
        border-radius: 25px;
        color: white;
        font-weight: bold;
        font-size: 16px;
        cursor: pointer;
        transition: all 0.3s ease;
    }

.add-credit-btn:hover {
    transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
    }

/* Responsive Design */
@media (max-width: 768px) {
    .game-header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

                                .logo h1 {
                                    font-size: 2rem;
                                }

                                .slot {
                                    width: 80px;
                                    height: 80px;
                                    font-size: 2.5rem;
                                }

                                .betting-controls {
                                    flex-direction: column;
                    gap: 15px;
                    }

                                #spin-button {
                                    padding: 15px 40px;
                                    font-size: 18px;
                                }

                                .symbols-grid {
                                    grid-template-columns: 1fr;
                                }
                                }
/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}