/* mayin-tarlasi sayfasına özel stiller */
.mines-scroll {
  position: relative;
  max-width: 100%;
  overflow-x: auto;
  border-radius: 14px;
}
.mines-hud {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  max-width: 520px;
  margin: 0 auto 12px;
}
.mines-hud .counter {
  min-width: 86px;
  padding: 6px 12px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-weight: 750;
  font-size: 1.15rem;
  font-variant-numeric: tabular-nums;
  text-align: center;
}
.face-btn {
  width: 52px;
  height: 52px;
  font-size: 1.8rem;
  line-height: 1;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}
.face-btn:active { transform: translateY(1px); }
.mines {
  --cell: clamp(17px, calc((min(100vw, 1100px) - 44px - (var(--cols) - 1) * 2px) / var(--cols)), 34px);
  --closed: #c7cde0;
  --closed-hi: #dde2f0;
  --closed-lo: #aab2c8;
  --open: #f3f4f9;
  position: relative;
  display: grid;
  grid-template-columns: repeat(var(--cols), var(--cell));
  grid-auto-rows: var(--cell);
  gap: 2px;
  width: max-content;
  margin: 0 auto;
  padding: 6px;
  background: var(--surface-3);
  border-radius: 14px;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}
:root[data-theme="dark"] .mines { --closed: #3d4460; --closed-hi: #4c5476; --closed-lo: #2d3348; --open: #1d2130; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .mines { --closed: #3d4460; --closed-hi: #4c5476; --closed-lo: #2d3348; --open: #1d2130; }
}
.mcell {
  display: grid;
  place-items: center;
  width: var(--cell);
  height: var(--cell);
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: var(--closed);
  box-shadow: inset 2px 2px 0 var(--closed-hi), inset -2px -2px 0 var(--closed-lo);
  font-size: calc(var(--cell) * 0.58);
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.mcell:hover:not(.open) { filter: brightness(1.05); }
.mcell.open { background: var(--open); box-shadow: none; cursor: default; }
.mcell.boom { background: var(--bad); }
.mcell.wrong { background: color-mix(in srgb, var(--bad) 25%, var(--open)); }
.n1 { color: #2563eb; } .n2 { color: #16a34a; } .n3 { color: #dc2626; } .n4 { color: #1e3a8a; }
.n5 { color: #9a3412; } .n6 { color: #0f766e; } .n7 { color: #111827; } .n8 { color: #6b7280; }
:root[data-theme="dark"] .n1 { color: #7aa7ff; } :root[data-theme="dark"] .n2 { color: #5fd38a; }
:root[data-theme="dark"] .n3 { color: #ff7b7b; } :root[data-theme="dark"] .n4 { color: #b4a6ff; }
:root[data-theme="dark"] .n5 { color: #ffb36b; } :root[data-theme="dark"] .n6 { color: #4fd1c5; }
:root[data-theme="dark"] .n7 { color: #e5e7eb; } :root[data-theme="dark"] .n8 { color: #9ca3af; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .n1 { color: #7aa7ff; } :root:not([data-theme="light"]) .n2 { color: #5fd38a; }
  :root:not([data-theme="light"]) .n3 { color: #ff7b7b; } :root:not([data-theme="light"]) .n4 { color: #b4a6ff; }
  :root:not([data-theme="light"]) .n5 { color: #ffb36b; } :root:not([data-theme="light"]) .n6 { color: #4fd1c5; }
  :root:not([data-theme="light"]) .n7 { color: #e5e7eb; } :root:not([data-theme="light"]) .n8 { color: #9ca3af; }
}
.mines .overlay { border-radius: 14px; }
