.mine-panel {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.mine-board {
    display: grid;
    grid-template-columns: repeat(9, 46px);
    grid-template-rows: repeat(9, 46px);
    gap: 2px;
    padding: 10px;
    border: 1px solid var(--game-border);
    background: rgba(0, 0, 0, 0.45);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

.mine-cell {
    width: 46px;
    height: 46px;
    border: 1px solid rgba(0, 255, 255, 0.13);
    background: rgba(0, 255, 255, 0.04);
    color: var(--game-text);
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    user-select: none;
    transition: 100ms ease;
    font-family: Consolas, monospace;
}

.mine-cell:hover:not(.open):not(.flag) {
    background: rgba(0, 255, 255, 0.11);
    box-shadow: inset 0 0 10px rgba(0, 255, 255, 0.15);
}

.mine-cell.open {
    background: rgba(0, 0, 0, 0.55);
    border-color: rgba(255, 255, 255, 0.04);
    cursor: default;
}

.mine-cell.flag {
    color: var(--game-warning);
    background: rgba(255, 209, 102, 0.06);
}

.mine-cell.mine-revealed {
    background: rgba(255, 80, 80, 0.18);
    border-color: rgba(255, 80, 80, 0.4);
}

.mine-cell.mine-hit {
    background: rgba(255, 30, 30, 0.5);
    border-color: var(--game-danger);
    box-shadow: 0 0 14px rgba(255, 50, 50, 0.5);
}

/* Number colors */
.mine-cell.n1 { color: #00ffff; }
.mine-cell.n2 { color: var(--game-success); }
.mine-cell.n3 { color: var(--game-warning); }
.mine-cell.n4 { color: #ff9f6b; }
.mine-cell.n5 { color: var(--game-danger); }
.mine-cell.n6 { color: #ff6b8b; }
.mine-cell.n7 { color: #da6bff; }
.mine-cell.n8 { color: #a0a0a0; }

/* Sidebar extras */
.mine-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-top: 1.2rem;
}

.mine-stat-item {
    border: 1px solid var(--game-border);
    padding: 0.55rem 0.4rem;
    text-align: center;
    background: rgba(0, 255, 255, 0.04);
}

.mine-stat-label {
    display: block;
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--game-muted);
    margin-bottom: 0.2rem;
}

.mine-stat-value {
    font-family: "Barlow Condensed", sans-serif;
    font-size: 1.7rem;
    color: var(--game-accent);
    line-height: 1;
}

.mine-undo-btn {
    margin-top: 0.85rem;
    width: 100%;
}

@media (max-width: 640px) {
    .mine-board {
        grid-template-columns: repeat(9, 36px);
        grid-template-rows: repeat(9, 36px);
    }

    .mine-cell {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
}
