﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #fff;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.slot-game {
    background: linear-gradient(145deg, #0f3460, #16213e);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    max-width: 600px;
    width: 100%;
    border: 2px solid #e94560;
}

.game-header {
    text-align: center;
    margin-bottom: 30px;
}

    .game-header h1 {
        font-size: 2.5rem;
        margin-bottom: 15px;
        text-shadow: 0 0 20px rgba(233, 69, 96, 0.5);
    }

.balance {
    font-size: 1.3rem;
    color: #ffd700;
}

    .balance strong {
        font-size: 1.5rem;
    }

/* Reels */
.game-display {
    margin-bottom: 30px;
}

.reels-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.reel {
    background: linear-gradient(180deg, #1a1a2e, #0f3460);
    border: 3px solid #e94560;
    border-radius: 15px;
    padding: 30px 0;
    text-align: center;
    box-shadow: inset 0 4px 10px rgba(0, 0, 0, 0.5);
    transition: transform 0.1s;
}

    .reel.spinning {
        animation: spin 0.1s linear infinite;
    }

@keyframes spin {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

.symbol {
    font-size: 4rem;
    line-height: 1;
}

/* Result Message */
.result-message {
    text-align: center;
    font-size: 1.8rem;
    font-weight: bold;
    padding: 15px;
    border-radius: 10px;
    animation: fadeIn 0.5s;
}

    .result-message.win {
        background: linear-gradient(135deg, #00d4ff, #0099ff);
        color: #fff;
        box-shadow: 0 0 30px rgba(0, 212, 255, 0.6);
    }

    .result-message.lose {
        background: rgba(255, 255, 255, 0.1);
        color: #ccc;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Controls */
.game-controls {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.bet-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 10px;
}

    .bet-controls label {
        font-size: 1.3rem;
        font-weight: bold;
    }

.bet-buttons {
    display: flex;
    gap: 10px;
}

.action-buttons {
    display: flex;
    gap: 15px;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

    .btn:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

.btn-sm {
    padding: 8px 16px;
    font-size: 1.2rem;
    background: #e94560;
    color: #fff;
}

    .btn-sm:hover:not(:disabled) {
        background: #ff5577;
        transform: scale(1.05);
    }

.btn-primary {
    flex: 1;
    background: linear-gradient(135deg, #00d4ff, #0099ff);
    color: #fff;
    box-shadow: 0 5px 15px rgba(0, 212, 255, 0.4);
}

    .btn-primary:hover:not(:disabled) {
        box-shadow: 0 8px 25px rgba(0, 212, 255, 0.6);
        transform: translateY(-2px);
    }

    .btn-primary.btn-large {
        font-size: 1.5rem;
        padding: 20px 40px;
    }

.btn-secondary {
    flex: 1;
    background: #e94560;
    color: #fff;
    box-shadow: 0 5px 15px rgba(233, 69, 96, 0.4);
}

    .btn-secondary:hover:not(:disabled) {
        background: #ff5577;
        box-shadow: 0 8px 25px rgba(233, 69, 96, 0.6);
        transform: translateY(-2px);
    }

/* Error Message */
.error-message {
    margin-top: 20px;
    padding: 15px;
    background: rgba(255, 0, 0, 0.2);
    border: 1px solid #ff0000;
    border-radius: 10px;
    text-align: center;
    color: #ff6b6b;
}

/* Responsive */
@media (max-width: 600px) {
    .slot-game {
        padding: 20px;
    }

    .game-header h1 {
        font-size: 2rem;
    }

    .symbol {
        font-size: 3rem;
    }

    .action-buttons {
        flex-direction: column;
    }
}


/* ── ATTRACT MODE ─────────────────────────────────────────── */
.attract-message {
    margin-top: 12px;
    font-size: 1rem;
    color: var(--gold, #c9a227);
    letter-spacing: 0.08em;
    text-align: center;
    animation: attractPulse 2s ease-in-out infinite;
}

@keyframes attractPulse {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}

/* ── GAME OVER (restored panel last result) ───────────────── */
.result-message.game-over {
    color: #e74c3c;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    animation: none;
}
