/* --- ELECTRIC COBALT GAME MODAL --- */

/* 1. Backdrop */
.game-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(3, 5, 8, 0.95);
    /* Deep Navy Black Backdrop */
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
}

.game-modal[style*="display: block"] {
    display: flex !important;
}

/* 2. Modal Content (Compact) */
.modal-content {
    position: relative;
    background: transparent;
    padding: 0;
    width: 95%;
    max-width: 380px;
    /* Mobile Size */
    animation: hologramPop 0.3s ease-out;
}

@keyframes hologramPop {
    from {
        transform: scale(0.9) translateY(20px);
        opacity: 0;
    }

    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

/* 3. The Neon Machine Cabinet (Industrial Tech Look) */
.neon-machine {
    background-color: #05070a;
    border: 1px solid #7000ff;
    /* Electric Cyan Border */
    border-radius: 4px;
    /* Sharp corners */
    padding: 20px;
    width: 100%;
    box-shadow:
        0 0 40px rgba(0, 212, 255, 0.15),
        inset 0 0 50px rgba(0, 0, 0, 0.9);
    position: relative;
    font-family: 'Orbitron', sans-serif;
}

/* Header */
.nm-header {
    text-align: center;
    margin-bottom: 20px;
    position: relative;
}

.nm-header h2 {
    color: #00ffcc;
    /* Solar Orange */
    margin: 0;
    font-size: 1.6rem;
    letter-spacing: 2px;
    text-shadow: 0 0 15px rgba(255, 109, 0, 0.6);
    text-transform: uppercase;
}

/* Close Button */
.close-game-btn {
    position: absolute;
    right: -10px;
    top: -10px;
    background: #030508;
    border: 1px solid #7000ff;
    color: #7000ff;
    font-size: 1.2rem;
    width: 32px;
    height: 32px;
    border-radius: 2px;
    /* Sharp */
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
    transition: 0.2s;
}

.close-game-btn:hover {
    background: #7000ff;
    color: #000;
}

/* Balance Display (Tech Panel) */
.nm-balance-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 212, 255, 0.05);
    border: 1px solid rgba(0, 212, 255, 0.3);
    padding: 8px 15px;
    border-radius: 2px;
    margin-bottom: 20px;
}

.nm-balance-display .label {
    color: #7000ff;
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.nm-balance-display .value {
    color: #fff;
    font-size: 1.2rem;
    font-weight: bold;
    text-shadow: 0 0 5px #7000ff;
}

/* Game Board */
.nm-game-board {
    position: relative;
    background: #030508;
    border: 1px solid #333;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 20px;
    box-shadow: inset 0 0 30px #000;
}

/* Reels Grid */
.nm-reels-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

/* Slots */
.nm-slot {
    background: #131b29;
    /* Dark Tech Background */
    height: 75px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    border: 1px solid #1e293b;
    box-shadow: inset 0 0 10px #000;
    transition: transform 0.1s, border-color 0.1s;
}

/* Winner Animation (Orange Glow) */
.nm-slot.winner {
    background: #1a0b00;
    border: 2px solid #00ffcc;
    box-shadow: 0 0 20px rgba(255, 109, 0, 0.5);
    animation: neonPulse 0.5s infinite alternate;
}

@keyframes neonPulse {
    from {
        box-shadow: 0 0 5px #00ffcc;
    }

    to {
        box-shadow: 0 0 25px #00ffcc;
    }
}

/* Controls Area */
.nm-controls-area {
    background: rgba(255, 255, 255, 0.02);
    padding: 15px;
    border-radius: 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.nm-bet-adjust {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.nm-circle-btn {
    width: 40px;
    height: 40px;
    border-radius: 2px;
    /* Sharp */
    background: transparent;
    border: 1px solid #7000ff;
    color: #7000ff;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

.nm-circle-btn:active {
    background: #7000ff;
    color: #000;
}

.nm-bet-display {
    text-align: center;
    width: 100px;
}

.nm-bet-display .label {
    display: block;
    font-size: 0.6rem;
    color: #94a3b8;
    letter-spacing: 1px;
}

.nm-bet-display .value {
    display: block;
    font-size: 1.1rem;
    color: #fff;
    font-weight: bold;
}

/* Spin Button (Matching the Main Orange Buttons) */
.nm-spin-btn {
    width: 100%;
    padding: 16px;
background: linear-gradient(90deg, var(--neon-purple), #9900cc);
   /* Solar Orange Gradient */
    border: none;
    border-radius: 2px;
    color: #000;
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    letter-spacing: 3px;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(255, 109, 0, 0.4);
    transition: 0.2s;
    text-transform: uppercase;
}

.nm-spin-btn:active {
    transform: scale(0.98);
    box-shadow: 0 0 10px rgba(255, 109, 0, 0.4);
}

.nm-spin-btn.disabled {
    filter: grayscale(1);
    opacity: 0.5;
    cursor: not-allowed;
}

/* Message Area */
.nm-message-area {
    text-align: center;
    margin-top: 15px;
    font-size: 0.9rem;
    letter-spacing: 1px;
    min-height: 20px;
    color: #fff;
}

.nm-message-area.win {
    color: #00ffcc;
    text-shadow: 0 0 10px #00ffcc;
}

/* Neon Green */
.nm-message-area.error {
    color: #ff3333;
}

.nm-message-area.normal {
    color: #94a3b8;
}



.age-badge {
    display: inline-block;
    margin: 10px 0;
    padding: 6px 14px;
    border: 1px solid #00ffff;
    border-radius: 20px;
    color: #00ffff;
    font-weight: bold;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
}
