/* ================================
   Minesweeper Game Styles
   ================================ */

.minesweeper-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-lg);
}

#minesweeper-board {
    display: grid;
    gap: 2px;
    background: #999;
    padding: 12px;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    user-select: none;
}

.cell {
    width: 32px;
    height: 32px;
    background: #c0c0c0;
    border: 2px outset #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 100ms ease;
}

.cell:hover:not(.revealed) {
    background: #d0d0d0;
}

.cell.revealed {
    border: 1px solid #999;
    background: #e8e8e8;
    cursor: default;
}

.cell.flagged {
    background: linear-gradient(135deg, #ff6b6b, #ee5a5a);
    color: white;
    font-size: 1.2rem;
}

.cell.mine {
    background: linear-gradient(135deg, #ff4444, #cc0000);
    color: white;
    font-size: 1.2rem;
}

.cell.number-1 { color: #0000ff; }
.cell.number-2 { color: #008000; }
.cell.number-3 { color: #ff0000; }
.cell.number-4 { color: #000080; }
.cell.number-5 { color: #800000; }
.cell.number-6 { color: #008080; }
.cell.number-7 { color: #000000; }
.cell.number-8 { color: #808080; }

#timer, #flag-count {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-purple);
}

/* Mobile adjustments for Minesweeper */
@media (max-width: 768px) {
    #minesweeper-board {
        max-width: 95vw;
        overflow-x: auto;
        padding: 8px;
    }

    .cell {
        min-width: 28px;
        min-height: 28px;
        width: 28px;
        height: 28px;
        font-size: 1rem;
    }

    #timer, #flag-count {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .cell {
        min-width: 24px;
        min-height: 24px;
        width: 24px;
        height: 24px;
        font-size: 0.9rem;
    }
}
