body {
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
    background-color: #222;
    color: #fff;
    background-image: url('/1_nbjNPvUi0OAw-6e2VXPwqw.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.game-container {
    background-color: rgba(139, 69, 19, 0.85);
    padding: 30px;
    border-radius: 15px;
    border: 5px solid #DAA520;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.7);
    text-align: center;
    max-width: 800px;
    width: 90%;
    margin: 20px;
}

h1 {
    color: #FFD700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
    margin-top: 0;
    margin-bottom: 20px;
}

#score-display {
    background-color: rgba(0, 0, 0, 0.5);
    color: #FFD700;
    font-size: 1.2em;
    font-weight: bold;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 2px solid #DAA520;
}

.slot-machine {
    background-color: #8B4513;
    border: 4px solid #DAA520;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 25px;
    position: relative;
}

.reel-container {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    border: 2px solid #DAA520;
}

.reel {
    width: 100px;
    height: 100px;
    background-color: white;
    border-radius: 5px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5) inset;
}

.symbol {
    width: 100%;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 3em;
    position: absolute;
    top: 0;
    left: 0;
    transition: transform 0.1s linear;
    will-change: transform;
    line-height: 100px;
    text-align: center;
}

.controls {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.spin-area {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    position: relative;
    margin-bottom: 10px;
}

.cat-bee-area {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#cat-bee-mascot {
    width: 80px;
    height: auto;
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.4));
}

.cat-speech-bubble {
    position: absolute;
    bottom: 105%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #fff;
    border-radius: 10px;
    padding: 8px 12px;
    min-width: 100px;
    max-width: 150px;
    text-align: center;
    font-size: 0.9em;
    color: #333;
    filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.2));
    transition: opacity 0.3s ease, transform 0.3s ease;
    opacity: 0;
    pointer-events: none;
    white-space: normal;
    z-index: 10;
}

.cat-speech-bubble::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    margin-left: -10px;
    border-width: 10px 10px 0;
    border-style: solid;
    border-color: #fff transparent transparent transparent;
}

.cat-speech-bubble.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(-5px);
}

.bet-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

#decrease-bet, #increase-bet {
    width: 40px;
    height: 40px;
    font-size: 1.5em;
    background-color: #B8860B;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.2s;
}

#decrease-bet:hover, #increase-bet:hover {
    background-color: #DAA520;
}

#current-bet {
    font-size: 1.2em;
    font-weight: bold;
    color: #FFD700;
    min-width: 100px;
}

.spin-button {
    background-color: #B22222;
    color: white;
    font-size: 1.3em;
    font-weight: bold;
    padding: 12px 50px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    box-shadow: 0 4px 0 #8B0000;
    transition: all 0.1s;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.spin-button:hover {
    background-color: #DC143C;
}

.spin-button:active {
    transform: translateY(4px);
    box-shadow: 0 0 0 #8B0000;
}

.spin-button:disabled {
    background-color: #A9A9A9;
    box-shadow: 0 4px 0 #696969;
    cursor: not-allowed;
}

#message-display {
    min-height: 30px;
    font-size: 1.2em;
    font-weight: bold;
    margin: 15px 0;
    color: #FFD700;
}

.payout-table {
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 10px;
    margin-top: 15px;
    border: 2px solid #DAA520;
}

.payout-table h3 {
    color: #FFD700;
    margin-top: 0;
    margin-bottom: 10px;
}

.payout-table ul {
    list-style-type: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 5px;
    text-align: left;
}

.payout-table li {
    padding: 5px;
    font-size: 0.95em;
}

.jackpot-container {
    background-color: #B22222;
    color: #FFD700;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 20px;
    animation: pulse 1.5s infinite alternate;
    border: 3px solid #FFD700;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 5px #FFD700;
    }
    100% {
        box-shadow: 0 0 20px #FFD700, 0 0 30px #FFD700;
    }
}

.jackpot-container h2 {
    margin: 0;
}

#jackpot-amount {
    font-size: 1.2em;
}

.small-text {
    font-size: 0.8em;
    margin: 5px 0 0 0;
    opacity: 0.8;
}

.home-button {
    display: inline-block;
    background-color: #B8860B;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    border: 2px solid #F0E68C;
    transition: background-color 0.3s;
}

.home-button:hover {
    background-color: #DAA520;
}

@keyframes text-pop {
    0% { transform: scale(1); opacity: 1; color: #FFD700; }
    50% { transform: scale(1.2); color: #FFF; }
    100% { transform: scale(1); opacity: 1; color: #FFD700; }
}

@keyframes jackpot-text-glow {
    0%, 100% { color: #FFD700; text-shadow: 0 0 5px #FFD700; }
    50% { color: #FFF; text-shadow: 0 0 20px #FFF, 0 0 30px gold; }
}

.win-animation-text {
    animation: text-pop 0.5s ease-out;
}

.jackpot-win-animation-text {
    animation: jackpot-text-glow 1s infinite alternate;
}

@keyframes machine-win-flash {
    0%, 100% { border-color: #DAA520; box-shadow: 0 0 10px rgba(0,0,0,0.3); }
    50% { border-color: gold; box-shadow: 0 0 25px gold; }
}

@keyframes machine-jackpot-flash {
    0% { border-color: #DAA520; box-shadow: 0 0 15px gold; transform: scale(1); }
    50% { border-color: white; box-shadow: 0 0 40px white, 0 0 60px gold; transform: scale(1.02); }
    100% { border-color: #DAA520; box-shadow: 0 0 15px gold; transform: scale(1); }
}

.win-animation {
    animation: machine-win-flash 0.3s 5;
}

.jackpot-win-animation {
    animation: machine-jackpot-flash 0.5s 6;
}

@media (max-width: 768px) {
    .reel {
        width: 80px;
        height: 80px;
    }
    
    .payout-table ul {
        grid-template-columns: 1fr;
    }
    
    .spin-button {
        padding: 10px 30px;
    }
    
    .spin-area {
        flex-direction: column;
        gap: 10px;
    }

    .cat-bee-area {
        margin-top: 10px;
    }

    #cat-bee-mascot {
        width: 60px;
    }

    .cat-speech-bubble {
    }
}

@media (max-width: 480px) {
    .reel {
        width: 60px;
        height: 60px;
    }

    .symbol {
        font-size: 2em;
        height: 60px;
        line-height: 60px;
    }
}