body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #222;
    background: url('../hero.png') center center/cover no-repeat fixed;
}

.slot-container {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    padding: 40px 32px 32px 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 340px;
    backdrop-filter: blur(1px);
}

.title {
    font-size: 2.2rem;
    font-weight: bold;
    margin-bottom: 18px;
    color: #fff;
    letter-spacing: 2px;
}

.slots {
    display: flex;
    gap: 18px;
    margin-bottom: 28px;
    justify-content: center;
    position: relative;
}

.reel {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
    padding: 8px 4px;
    align-items: center;
    min-width: 70px;
}

.slot {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    background: rgba(238, 238, 238, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.10);
    transition: box-shadow 0.2s;
    border: 3px solid #ddd;
    user-select: none;
}

.slot.spinning {
    animation: spin-vert 0.15s linear infinite;
}

@keyframes spin-vert {
    0% {
        filter: brightness(1.1) blur(0.5px);
        transform: translateY(-6px);
    }

    50% {
        filter: brightness(1.3) blur(1.5px);
        transform: translateY(6px);
    }

    100% {
        filter: brightness(1.1) blur(0.5px);
        transform: translateY(-6px);
    }
}

.spin-btn {
    background: linear-gradient(90deg, #4e54c8, #8f94fb);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 14px 38px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(78, 84, 200, 0.15);
    transition: background 0.2s, transform 0.1s;
    margin-bottom: 18px;
}

.spin-btn:active {
    transform: scale(0.97);
}

.points {
    font-size: 1.3rem;
    color: #fff;
    font-weight: bold;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.win-anim {
    animation: winFlash 0.7s 2;
}

@keyframes winFlash {
    0% {
        background: #fff;
    }

    50% {
        background: #e0ffb3;
    }

    100% {
        background: #fff;
    }
}

.desc {
    color: #888;
    font-size: 1rem;
    margin-top: 10px;
    text-align: center;
}

#win-line {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
    display: none;
    opacity: 0;
    transition: opacity 0.3s;
}

#win-line.visible {
    display: block;
    opacity: 1;
}

.slot.win-blink {
    box-shadow: 0 0 0 4px #ff2a00, 0 0 16px 8px #ffb84b;
    border-color: #ff2a00;
    animation: blink-border 0.5s steps(1) infinite alternate;
    z-index: 20;
}

@keyframes blink-border {
    0% {
        box-shadow: 0 0 0 4px #ff2a00, 0 0 16px 8px #ffb84b;
        border-color: #ff2a00;
    }

    100% {
        box-shadow: 0 0 0 4px #ffe347, 0 0 24px 12px #ff4b5c;
        border-color: #ffe347;
    }
}


#win-line {
    position: absolute;
    left: 0;
    top: 0;
    pointer-events: none;
    z-index: 10;
    display: none;
}