/* Minenfeld (E113) */
.hero-minen { display: flex; gap: 8px; justify-content: center; font-size: 34px; font-weight: 800; }
.hero-minen span { width: 60px; height: 60px; display: grid; place-items: center; border-radius: 10px;
    background: #cbd5e1; color: #1d4ed8; box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .15); }
.hero-minen span:nth-child(3) { color: #15803d; }

.mf-kopf { display: flex; justify-content: center; align-items: center; gap: 14px; flex-wrap: wrap; margin: 2px 0 10px; font-size: 14px; color: var(--muted); }
.mf-uhr { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--text); }
.mf-modus { min-height: 40px; padding: 0 16px; }
.mf-modus[hidden] { display: none; }

/* Brett: Zellgröße aus Breite UND Höhe (S15), so groß wie möglich */
.mf-brett {
    /* Eine Variable darf nicht auf sich selbst verweisen — sonst ist sie
       ungültig und das ganze Grid fällt auf EINE Spalte zurück (erster Entwurf). */
    --zelle-roh: min(calc((100vw - 32px) / var(--b)), calc((100dvh - 300px) / var(--h)), 44px);
    --zelle: max(var(--zelle-roh), 22px);
    display: grid; grid-template-columns: repeat(var(--b), var(--zelle)); grid-auto-rows: var(--zelle);
    gap: 2px; justify-content: center; margin: 0 auto; user-select: none; -webkit-user-select: none;
    touch-action: manipulation;
}
.mf-feld {
    all: unset; box-sizing: border-box; display: grid; place-items: center; cursor: pointer;
    border-radius: 4px; background: #94a3b8; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .2);
    font-weight: 800; font-size: calc(var(--zelle) * .55); line-height: 1;
}
.mf-feld:hover { background: #a7b4c6; }
.mf-feld:focus-visible { outline: 2px solid var(--accent); }
.mf-feld.offen { background: rgba(255, 255, 255, .08); box-shadow: none; cursor: default; }
.mf-feld.flagge { background: #94a3b8; }
.mf-feld.mine { background: rgba(229, 72, 77, .25); box-shadow: none; }
.mf-feld.knall { background: #e5484d; }
.mf-feld.richtig { background: rgba(63, 191, 111, .35); }
/* Klassische, gut unterscheidbare Ziffernfarben (auch für Farbsehschwäche
   zusätzlich über Helligkeit getrennt) */
.mf-feld.n1 { color: #60a5fa; } .mf-feld.n2 { color: #4ade80; } .mf-feld.n3 { color: #f87171; }
.mf-feld.n4 { color: #c084fc; } .mf-feld.n5 { color: #fb923c; } .mf-feld.n6 { color: #2dd4bf; }
.mf-feld.n7 { color: #f472b6; } .mf-feld.n8 { color: #e5e7eb; }

.mf-tabelle { display: grid; gap: 6px; margin: 12px 0; text-align: left; }
.mf-zeile { display: grid; grid-template-columns: 2.2em 1fr auto auto; gap: 10px; align-items: center; padding: 6px 10px; border-radius: 10px; background: var(--panel); }
.mf-zeile span:last-child { color: var(--muted); font-size: 12.5px; }
