.name-slot-wrapper {
    text-align: center;
    margin: 20px auto;
    max-width: 400px;
}

.slot-machine {
    background: #2c3e50;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.3);
    margin: 0 auto;
    position: relative;
}

.slot-outer-window {
    position: relative;
    top: 50%;
    margin: 0 auto;
    width: 80%;
    height: 70px;
    overflow: hidden;
    background: #fff;
    border: 3px solid #ddd;
    border-radius: 5px;
}

.slot-window {
    height: 60px;
    overflow: hidden;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: transparent;
}

.slot-highlight {
    position: absolute;
    top: 20%;
    left: 0;
    right: 0;
    height: 40px;
    background: rgba(255, 215, 0, 0.2);
    border-top: 2px solid gold;
    border-bottom: 2px solid gold;
    z-index: 10;
    pointer-events: none;
}

.slot-container {
    position: relative;
    transition: transform 4s cubic-bezier(0.1, 0.5, 0.3, 1);
    z-index: 5;
}

.slot-names {
    text-align: center;
    position: relative;
    z-index: 5;
}

.slot-item {
    height: 60px;
    line-height: 60px;
    font-size: 24px;
    color: #333;
    font-weight: bold;
    text-align: center;
    background: #fff;
    margin: 0;
    padding: 0;
    position: relative;
    z-index: 5;
}

.slot-item.winner {
    opacity: 0.5;
    text-decoration: line-through;
    color: #999;
}

#slot-spin-button {
    margin: 20px auto;
    padding: 12px 30px;
    font-size: 18px;
    background-color: #e74c3c;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

#slot-spin-button:hover {
    background-color: #c0392b;
}

#slot-spin-button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

#slot-winner-display {
    margin-top: 20px;
    padding: 15px;
    font-size: 24px;
    color: #333;
    background: #f8f8f8;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.slot-machine.spinning .slot-container {
    animation: slotSpin 3s ease-out;
}

@keyframes slotSpin {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-33.33%);
    }
}

/* Celebration Effects */
@keyframes particleFadeOut {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(0);
    }
}

@keyframes particleTrail {
    0% {
        opacity: 0.7;
        transform: scale(0.8);
    }
    100% {
        opacity: 0;
        transform: scale(0.2);
    }
}

.celebration-particle {
    position: absolute;
    pointer-events: none;
    will-change: transform, opacity;
}

#slot-winner-display.celebrating {
    animation: winnerPulse 0.5s ease-in-out infinite alternate;
}

@keyframes winnerPulse {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.1);
        text-shadow: 0 0 20px rgba(255, 215, 0, 0.7);
    }
}

.no-names-message {
    display: none;
    text-align: center;
    padding: 20px;
    background: #fff3cd;
    border: 1px solid #ffeeba;
    border-radius: 5px;
    margin: 10px 0;
}

.no-names-message p {
    margin: 5px 0;
    color: #856404;
}

.no-names-message p:first-child {
    font-weight: bold;
}
