/* base button style */
.slot-btn {
    position: relative;
    overflow: hidden;
    padding: 0.8em 2em;
    border: none;
    outline: none;
    color: #fff;
    background: #222;
    border-radius: 12px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1rem;
    user-select: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 6px 12px rgba(0,0,0,0.4);

    display: inline-flex;
    justify-content: center;
    min-width: 160px;
}

/* prevent hover/jump while spinning */
.slot-btn.loading {
    transform: none !important;
    transition: none !important;
}

/* gentle hover pulse to entice click */
.slot-btn:not(.loading):hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 20px rgba(0,0,0,0.5), 0 0 15px rgba(255,255,255,0.1);
}

/* inner container */
.slot-inner {
    display: inline-flex;
    justify-content: center;
    width: 100%;
    height: 100%;
    border-radius: inherit;
}

/* idle floating animation */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}
.slot-btn:not(.loading) {
    animation: float 2s ease-in-out infinite;
}

/* slot window */
.slot-window {
    display: block;
    height: 1.5em;
    overflow: hidden;
    position: relative;
}

/* reel */
.slot-reel {
    display: block;
    will-change: transform;
}

/* each slot line */
.slot-reel span {
    display: block;
    height: 1.5em;
    line-height: 1.5em;
    text-align: center;
}

/* spinning state */
.slot-btn.loading .slot-reel {
    animation: slotSpin 0.15s linear infinite;
}

@keyframes slotSpin {
    from { transform: translateY(0); }
    to { transform: translateY(-1.5em); }
}

