/* Slot Machine Modal Styles */
.slot-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    justify-content: center;
    align-items: center;
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.slot-modal-content {
    background: linear-gradient(135deg, #2d0052 0%, #4d0099 100%);
    border: 5px solid #ffd700;
    border-radius: 30px;
    padding: 40px;
    box-shadow: 0 0 80px rgba(255, 215, 0, 0.8), 0 0 120px rgba(255, 0, 255, 0.6);
    animation: modalScaleIn 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    max-width: 90%;
}

@keyframes modalScaleIn {
    from {
        transform: scale(0.5) rotateY(90deg);
        opacity: 0;
    }
    to {
        transform: scale(1) rotateY(0deg);
        opacity: 1;
    }
}

.slot-modal-header {
    text-align: center;
    margin-bottom: 40px;
}

.slot-modal-title {
    font-size: 2.5em;
    background: linear-gradient(45deg, #ffd700, #ffed4e, #ff00ff, #00ffff, #ffd700);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 2s infinite;
    font-weight: bold;
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
}

.slot-machines-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.slot-machine-container {
    position: relative;
}

.slot-machine {
    /* width: 150px; */
    height: 200px;
    background: linear-gradient(135deg, #1a0033 0%, #330066 100%);
    border: 4px solid #ffd700;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 
        inset 0 0 30px rgba(255, 215, 0, 0.3),
        0 0 40px rgba(255, 215, 0, 0.6);
}
.slot-type-single{
    width: 100px;
}
.slot-type-triple{
    width: 150px;
}

.slot-machine::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 100px;
    transform: translateY(-50%);
    background: rgba(255, 215, 0, 0.1);
    border-top: 3px solid #ffd700;
    border-bottom: 3px solid #ffd700;
    z-index: 2;
    pointer-events: none;
}

.slot-machine::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(26, 0, 51, 0.9) 0%,
        transparent 25%,
        transparent 75%,
        rgba(26, 0, 51, 0.9) 100%
    );
    z-index: 1;
    pointer-events: none;
}

.slot-reel {
    position: absolute;
    top: 50px;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: translateY(0);
}

.slot-number-item {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5em;
    font-weight: bold;
    color: #ffd700;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
    width: 100%;
    flex-shrink: 0;
}

.slot-number-item.slot-final {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 50%, #ffd700 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: finalNumberGlow 1s infinite;
}

@keyframes finalNumberGlow {
    0%, 100% {
        text-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
    }
    50% {
        text-shadow: 0 0 40px rgba(255, 215, 0, 1);
    }
}

.slot-dash {
    font-size: 4em;
    color: #ffd700;
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.8);
    font-weight: bold;
    animation: dashPulse 1s infinite;
}

@keyframes dashPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

.slot-jackpot-text {
    text-align: center;
    margin-top: 30px;
    font-size: 2em;
    font-weight: bold;
    background: linear-gradient(135deg, #ff0000 0%, #ffd700 50%, #ff0000 100%);
    color: white;
    padding: 15px 40px;
    border-radius: 30px;
    animation: jackpotPulse 1s infinite;
    box-shadow: 0 0 40px rgba(255, 215, 0, 0.9);
    border: 3px solid white;
    display: inline-block;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .slot-modal-content {
        padding: 30px 20px;
    }

    .slot-modal-title {
        font-size: 1.8em;
    }

    .slot-machine {
        /* width: 100px; */
        height: 150px;
    }
    .slot-type-single{
        width: 60px;
    }
    .slot-type-triple{
        width: 100px;
    }

    .slot-machine::before {
        height: 75px;
    }

    .slot-reel {
        top: 37.5px;
    }

    .slot-number-item {
        height: 75px;
        font-size: 1.8em;
    }

    .slot-machines-wrapper {
        gap: 15px;
    }

    .slot-dash {
        font-size: 2.5em;
    }

    .slot-jackpot-text {
        font-size: 1.3em;
        padding: 10px 25px;
    }
}

@media (max-width: 420px) {
    .slot-modal-title {
        font-size: 1.3em;
    }

    .slot-machine {
        height: 110px;
    }
    .slot-type-single{
        width: 40px;
    }
    .slot-type-triple{
        width: 70px;
    }

    .slot-machine::before {
        height: 55px;
        border-top: 2px solid #ffd700;
        border-bottom: 2px solid #ffd700;
    }

    .slot-reel {
        top: 27.5px;
    }

    .slot-number-item {
        height: 55px;
        font-size: 1.3em;
    }

    .slot-machines-wrapper {
        gap: 8px;
    }

    .slot-dash {
        font-size: 1.8em;
    }

    .slot-jackpot-text {
        font-size: 1em;
        padding: 8px 20px;
    }
}