@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

body {
    font-family: 'Press Start 2P', cursive;
    background-color: #222;
    color: #fff;
    text-align: center;
    padding: 20px;
}

.container {
    max-width: 500px;
    margin: auto;
    background: #111;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 0 15px #ffd700;
    position: relative;
}

h1 {
    color: #ffd700;
    text-shadow: 2px 2px 10px #ff0;
}

.slot-machine {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
}

.reel-container {
    width: 80px;
    height: 80px;
    background: #000;
    border: 3px solid #ffd700;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 40px;
}

button {
    background: linear-gradient(45deg, #ff0, #f00);
    color: #fff;
    border: none;
    padding: 15px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 10px;
    transition: transform 0.2s, box-shadow 0.2s;
    margin: 5px;
}

button:hover {
    transform: scale(1.1);
    box-shadow: 0 0 10px #ff0;
}

#result {
    font-size: 18px;
    font-weight: bold;
    margin: 20px 0;
}

#hadiahText {
    font-size: 18px;
    background: #444;
    padding: 10px;
    border-radius: 5px;
    margin-top: 15px;
}

#kodeInput {
    width: 80%;
    padding: 10px;
    margin: 10px 0;
    border: 2px solid #ffd700;
    border-radius: 5px;
    background: #222;
    color: #fff;
    font-size: 16px;
}

/* 🎉 Efek menang */
@keyframes blink {
    0%, 100% { background-color: #ffd700; }
    50% { background-color: #ff0000; }
}

.win {
    animation: blink 0.5s infinite;
}

/* ❌ Efek kalah */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    50% { transform: translateX(5px); }
    75% { transform: translateX(-5px); }
}

.lose {
    animation: shake 0.3s;
}

/* 🧑‍🦱 Mas-Mas */
.mas-mas {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 120px;
    background: url('mas-mas.png') no-repeat center;
    background-size: cover;
    animation: masDance 2s infinite alternate;
}

@keyframes masDance {
    0% { transform: translateX(-50%) rotate(0); }
    100% { transform: translateX(-50%) rotate(5deg); }
}