body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #c0c0c0;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    user-select: none;
}

.game-container {
    background-color: #c0c0c0;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    padding: 20px;
    max-width: 800px;
    width: 100%;
}

.header {
    background-color: #c0c0c0;
    padding: 10px;
    border-radius: 8px 8px 0 0;
    display: flex;
    justify-content: center;
}

.game-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 500px;
    background-color: #c0c0c0;
    padding: 10px;
    border-radius: 8px;
}

.mine-counter, .timer {
    background-color: #000;
    color: red;
    padding: 5px 10px;
    border-radius: 4px;
    font-family: 'Digital-7', monospace;
    font-size: 24px;
    display: flex;
}

.digit {
    width: 20px;
    text-align: center;
}

.face-button {
    background-color: #c0c0c0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 20px;
    transition: transform 0.1s;
}

.face-button:active {
    transform: scale(0.95);
}

.game-board {
    background-color: #c0c0c0;
    padding: 10px;
    border-radius: 0 0 8px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.board-grid {
    display: grid;
    gap: 2px;
    background-color: #808080;
    padding: 4px;
    border-radius: 4px;
}

.cell {
    width: 30px;
    height: 30px;
    background-color: #c0c0c0;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    position: relative;
    user-select: none;
    touch-action: manipulation;
}

.cell:hover {
    background-color: #d0d0d0;
}

.cell.revealed {
    background-color: #e0e0e0;
    cursor: default;
}

.cell.mine {
    background-color: red;
}

.cell.flagged {
    background-color: #c0c0c0;
}

.cell.flagged::after {
    content: "🚩";
    color: red;
}

.cell.question::after {
    content: "?";
    color: blue;
}

.controls {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.btn {
    padding: 8px 16px;
    background-color: #c0c0c0;
    border: 2px solid #808080;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.btn:hover {
    background-color: #d0d0d0;
}

.difficulty {
    display: flex;
    gap: 5px;
}

.difficulty-btn.active {
    background-color: #808080;
    color: white;
}

@media (max-width: 600px) {
    .cell {
        width: 24px;
        height: 24px;
        font-size: 14px;
    }
    
    .digit {
        font-size: 18px;
    }
}

.number-1 { color: blue; }
.number-2 { color: green; }
.number-3 { color: red; }
.number-4 { color: navy; }
.number-5 { color: maroon; }
.number-6 { color: teal; }
.number-7 { color: black; }
.number-8 { color: gray; }