body {
    margin: 0;
    background: url('bg.jpg') no-repeat center center fixed;
    background-size: cover;
    font-family: sans-serif;
}

.slot-container {
    width: 720px;
    height: 600px;
    margin: 40px auto;
    background: rgba(0, 0, 0, 0.5);
    border: 5px solid gold;
    border-radius: 12px;
    padding: 10px;
    position: relative;
    overflow: hidden;
}

.reels {
    display: flex;
    justify-content: space-between;
    height: 500px;
}

.reel {
    width: 16%;
    height: 100%;
    background: #111;
    overflow: hidden;
    position: relative;
}

.symbol {
    width: 100%;
    height: 20%;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

.controls {
    text-align: center;
    margin-top: 10px;
}

.btn-spin {
    padding: 25px 100px;
    font-size: 20px;
    font-weight: bold;
    background: gold;
    border: none;
    border-radius: 10px;
    cursor: pointer;
}

.explode {
    animation: explode 0.6s ease-out forwards;
}

@keyframes explode {
    0% {
        transform: scale(1);
        opacity: 1;
        filter: brightness(1);
    }

    50% {
        transform: scale(1.6);
        opacity: 1;
        filter: brightness(2);
    }

    100% {
        transform: scale(0);
        opacity: 0;
        filter: brightness(0.5);
    }
}

.shake {
    animation: shake 0.4s ease;
}

@keyframes shake {
    0% {
        transform: translate(0px, 0px);
    }

    25% {
        transform: translate(4px, -4px);
    }

    50% {
        transform: translate(-4px, 4px);
    }

    75% {
        transform: translate(4px, 4px);
    }

    100% {
        transform: translate(0px, 0px);
    }
}

.symbol.mahkota {
    border: 3px solid gold !important;
    box-shadow: 0 0 10px gold;
    border-radius: 8px;
}

.petir-flash {
    animation: lightning-flash 0.5s ease-in-out;
}

@keyframes lightning-flash {
    0% {
        filter: brightness(1);
        transform: scale(1);
    }

    50% {
        filter: brightness(3);
        transform: scale(1.1);
    }

    100% {
        filter: brightness(1);
        transform: scale(1);
    }
}

.petir-asli {
    position: absolute;
    width: 300px;
    /* Diperbesar dari 200px */
    height: 900px;
    /* Diperbesar dari 600px */
    background: url('petir.png') no-repeat center top;
    background-size: contain;
    animation: sambaran 0.5s ease-out;
    z-index: 999;
    pointer-events: none;
    transform-origin: center top;
    filter: brightness(3) contrast(2) drop-shadow(0 0 15px white);
    mix-blend-mode: screen;
}

@keyframes sambaran {
    0% {
        transform: translateY(-150%) scale(0.8);
        opacity: 0;
    }

    30% {
        transform: translateY(0%) scale(1.2);
        opacity: 1;
    }

    100% {
        transform: translateY(100%) scale(0.8);
        opacity: 0;
    }
}

#effects-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
}

.petir-asli {
    mix-blend-mode: screen;
    filter: drop-shadow(0 0 10px white) brightness(2);
}

.spin-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(45deg, #1a0933, #2d0b5a);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 0 30px gold;
    z-index: 9999;
    width: 400px;
    border: 3px solid gold;
    color: white;
    text-align: center;
}

.spin-modal-header {
    font-size: 28px;
    margin-bottom: 15px;
    text-shadow: 0 0 10px gold;
    color: #ffd700;
}

.red-block {
    background: #ff0000;
    padding: 8px 15px;
    border-radius: 5px;
    margin: 5px;
    display: inline-block;
    font-weight: bold;
}

.finalButton {
    display: block;
    margin: 20px auto;
    padding: 15px 30px;
    background: linear-gradient(45deg, #ffd700, #ff6b00);
    color: #2a0a4a;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    transition: transform 0.3s;
}

.finalButton:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px gold;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    display: none;
}

.text-center {
    text-align: center;
}

.grandprize-value {
    font-size: 28px;
    color: #ffffff;
    font-family: "Gotham Light";
    max-width: 328px;
    margin: auto;
    border: 1px solid #ccc;
    margin-top: 18px;
    padding: 7px 10px;
}

.grandprize-value {
    font-size: 24px;
}

.head-top {
    font-size: 24px;
    color: #ffffff;
    margin-bottom: 10px;
}