/* ============================================================
   minigame-minesweeper.css  —  Win95-Style (v0.9.11.48)
   ============================================================ */

.mw-root {
    padding: 8px;
    background: #c0c0c0;
    font-family: 'MS Sans Serif', Tahoma, sans-serif;
    user-select: none;
    -webkit-user-select: none;
    color: #000;
}

.mw-toolbar {
    display: flex;
    gap: 4px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}
.mw-diff-btn {
    padding: 3px 10px;
    background: #c0c0c0;
    border: 2px solid;
    border-color: #ffffff #808080 #808080 #ffffff;
    font-family: 'MS Sans Serif', Tahoma, sans-serif;
    font-size: 11px;
    color: #000;
    cursor: pointer;
    min-width: 0;
}
.mw-diff-btn:active,
.mw-diff-btn.mw-diff-active {
    border-color: #808080 #ffffff #ffffff #808080;
    background: #b8b8b8;
}

/* === Klassischer Win95-3D-Frame === */
.mw-frame {
    display: inline-block;
    background: #c0c0c0;
    border: 3px solid;
    border-color: #ffffff #808080 #808080 #ffffff;
    padding: 6px;
}

/* === Header (Counter / Smiley / Counter) === */
.mw-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #c0c0c0;
    border: 2px inset;
    border-color: #808080 #ffffff #ffffff #808080;
    padding: 4px 6px;
    margin-bottom: 6px;
}

.mw-counter {
    background: #000;
    color: #ff0000;
    font-family: 'Courier New', 'Lucida Console', monospace;
    font-weight: bold;
    font-size: 22px;
    padding: 1px 4px;
    border: 1px solid #808080;
    min-width: 40px;
    text-align: center;
    letter-spacing: 1px;
    line-height: 1;
}

.mw-smiley {
    width: 28px;
    height: 28px;
    font-size: 18px;
    background: #c0c0c0;
    border: 2px solid;
    border-color: #ffffff #808080 #808080 #ffffff;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.mw-smiley:active {
    border-color: #808080 #ffffff #ffffff #808080;
}

/* === Brett === */
.mw-grid-wrap {
    border: 3px solid;
    border-color: #808080 #ffffff #ffffff #808080;
    padding: 0;
    background: #c0c0c0;
    overflow: auto;
    max-width: calc(100vw - 80px);
    max-height: calc(100vh - 200px);
}
.mw-grid {
    display: grid;
    gap: 0;
    background: #808080;
}
.mw-cell {
    width: 16px;
    height: 16px;
    background: #c0c0c0;
    border: 2px solid;
    border-color: #ffffff #808080 #808080 #ffffff;
    box-sizing: border-box;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    font-size: 11px;
    line-height: 12px;
    text-align: center;
    cursor: pointer;
    padding: 0;
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}
.mw-cell-revealed {
    border: 1px solid #808080;
    background: #c0c0c0;
}
.mw-cell-mine {
    background: #c0c0c0;
}
.mw-cell-mine-hit {
    background: #ff0000 !important;
}
.mw-cell-flag {
    /* selber Look wie unaufgedeckt, nur mit Flag */
}

.mw-hint {
    margin-top: 8px;
    font-size: 10px;
    color: #404040;
}

/* === Era-Override: Minesweeper bleibt IMMER Win95 ===
   Die anderen Eras überschreiben generell window-bodies, hier nicht!
   minesweeper ist Era-1-only-Look auch in späteren Eras. */
.window[data-era="2"] #body-minesweeper,
.window[data-era="3"] #body-minesweeper,
.window[data-era="4"] #body-minesweeper {
    background: #c0c0c0 !important;
    color: #000 !important;
    font-family: 'MS Sans Serif', Tahoma, sans-serif !important;
}
