/* Minesweeper Game Styles */

body {
    font-family: var(--font-family);
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, var(--bg-tertiary) 100%);
    min-height: 100vh;
    color: var(--text-primary);
    overflow-x: hidden;
}

.game-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.game-header .score {
    display: none;
}

.game-header .timer {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent-color);
    margin-left: 15px;
}

.minesweeper-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 20px;
}

.minesweeper-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: fit-content;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent-gold);
}

.minesweeper-grid {
    display: grid;
    gap: 1px;
    background: #444;
    border: 3px solid #666;
    padding: 2px;
    background: linear-gradient(135deg, #444 0%, #333 100%);
}

.mine-cell {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    background: linear-gradient(135deg, #c0c0c0 0%, #a0a0a0 100%);
    border: none;
    user-select: none;
    transition: background 0.1s;
    font-family: sans-serif;
}

.mine-cell:hover:not(.revealed) {
    background: linear-gradient(135deg, #d0d0d0 0%, #b0b0b0 100%);
}

.mine-cell.revealed {
    background: #888;
    cursor: default;
    border: 1px solid #666;
}

.mine-cell.flagged {
    cursor: pointer;
}

.mine-cell.flagged::after {
    content: none;
}

.mine-cell.flagged {
    color: #f44336;
    font-size: 16px;
}

.mine-cell.mine {
    background: #e53935;
}

.mine-cell.mine::after {
    content: none;
}

.mine-cell.wrong-flag {
    background: #ff9800;
}

.mine-cell[data-count="1"] { color: #2196f3; }
.mine-cell[data-count="2"] { color: #4caf50; }
.mine-cell[data-count="3"] { color: #f44336; }
.mine-cell[data-count="4"] { color: #9c27b0; }
.mine-cell[data-count="5"] { color: #ff9800; }
.mine-cell[data-count="6"] { color: #00bcd4; }
.mine-cell[data-count="7"] { color: #333; }
.mine-cell[data-count="8"] { color: #888; }

.win-overlay .final-time {
    font-size: 1.2rem;
    color: var(--accent-gold);
    margin-bottom: 15px;
}

.win-message h2 {
    color: var(--accent-gold);
}

/* Responsive */
@media (max-width: 600px) {
    .mine-cell {
        width: 22px;
        height: 22px;
        font-size: 11px;
    }
    
    .minesweeper-grid {
        gap: 0;
    }
}

@media (max-width: 400px) {
    .mine-cell {
        width: 18px;
        height: 18px;
        font-size: 9px;
    }
}
