
.minesweeper-container {
    max-width: 600px;
    margin: 20px auto;
    font-family: Arial, sans-serif;
    background: #c0c0c0;
    padding: 20px;
    border: 3px outset #fff;
    box-shadow: 3px 3px 10px rgba(0,0,0,0.3);
}

.minesweeper-header {
    margin-bottom: 20px;
}

.difficulty-selector {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    justify-content: center;
}

.diff-btn {
    padding: 8px 16px;
    background: #d3d3d3;
    border: 2px outset #fff;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s;
}

.diff-btn:hover {
    background: #e0e0e0;
}

.diff-btn.active {
    background: #808080;
    color: white;
    border-style: inset;
}

.game-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #808080;
    padding: 10px;
    border: 3px inset #fff;
}

.info-panel {
    background: #000;
    color: #ff0000;
    padding: 5px 15px;
    font-family: "Courier New", monospace;
    font-size: 24px;
    font-weight: bold;
    border: 2px inset #404040;
    display: flex;
    gap: 10px;
    align-items: center;
}

.info-panel .label {
    font-size: 14px;
    color: #ff6666;
}

.reset-btn {
    background: #d3d3d3;
    border: 3px outset #fff;
    font-size: 28px;
    width: 50px;
    height: 50px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.reset-btn:active {
    border-style: inset;
}

.minesweeper-board {
    display: grid;
    gap: 0;
    background: #808080;
    border: 3px inset #fff;
    padding: 10px;
    justify-content: center;
}

.cell {
    width: 30px;
    height: 30px;
    background: #c0c0c0;
    border: 2px outset #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
    user-select: none;
}

.cell:active {
    border-style: inset;
}

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

.cell.mine {
    background: #ff0000;
}

.cell.flagged::before {
    content: "🚩";
    font-size: 18px;
}

.cell.mine-revealed::before {
    content: "💣";
    font-size: 18px;
}

.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; }

.game-message {
    margin-top: 15px;
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    min-height: 30px;
    color: #000080;
}

.game-message.win {
    color: #008000;
}

.game-message.lose {
    color: #ff0000;
}

@media (max-width: 600px) {
    .cell {
        width: 25px;
        height: 25px;
        font-size: 14px;
    }
}
