/* Herald · Minesweeper — app tweaks. Base in glass-core.css.
   High-contrast for the see-through display. */

.m-bar {
  flex-shrink: 0;
  display: flex;
  gap: 8px;
  margin: 2px 0 6px;
}
.m-ctl {
  flex: 1;
  text-align: center;
  padding: 11px 8px;
  border-radius: 980px;
  font-size: 14px;
  font-weight: 800;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
}
.m-ctl-on { color: #ffd166; border-color: rgba(255, 209, 102, 0.6); }
.m-ctl.m-cur {
  color: var(--text-primary);
  border-color: var(--focus-ring);
  box-shadow: 0 0 0 2px var(--focus-ring), 0 0 18px rgba(82, 217, 255, 0.4);
}

.m-wrap {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.m-board {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  grid-template-rows: repeat(9, 1fr);
  gap: 3px;
  width: min(80vh, 100%);
  aspect-ratio: 1 / 1;
  padding: 8px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
}
.m-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-size: 28px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 8px currentColor;
}
.m-hidden {
  background: linear-gradient(180deg, rgba(255,255,255,0.16), rgba(255,255,255,0.08));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.22), inset 0 -2px 0 rgba(0,0,0,0.2);
}
.m-open { background: rgba(255, 255, 255, 0.025); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.05); }
.m-flag {
  background: rgba(255, 209, 102, 0.22);
  color: #ffd166;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.25), 0 0 14px rgba(255,209,102,0.4);
}
.m-mine {
  background: #ff6b81;
  color: #2a0a10;
  text-shadow: 0 1px 0 rgba(0,0,0,0.4);
  box-shadow: 0 0 22px rgba(255,107,129,0.6);
}
.m-n { background: rgba(255, 255, 255, 0.04); }
.m-n1 { color: #7fbcff; }
.m-n2 { color: #6affb4; }
.m-n3 { color: #ff8f6a; }
.m-n4 { color: #c8a2ff; }
.m-n5 { color: #ffd166; }
.m-n6 { color: #52d9ff; }
.m-n7 { color: #ff9bd0; }
.m-n8 { color: #ffffff; }
.m-cur {
  outline: 3px solid #ffd166;
  outline-offset: -3px;
  box-shadow: 0 0 18px rgba(255,209,102,0.65), inset 0 0 12px rgba(255,209,102,0.25);
  z-index: 2;
}

.m-over {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border-radius: 16px;
  background: var(--iri), var(--frost-1);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--frost-border);
  box-shadow: var(--frost-inset), var(--frost-shadow);
}
.m-over.hidden { display: none; }
.m-over-t {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-primary);
}
.m-btn {
  min-height: 54px;
  padding: 0 28px;
  font-size: 16px;
  font-weight: 800;
  color: #06281c;
  background: linear-gradient(180deg, #6affb4, #22c98a);
  border: 0;
  border-radius: 980px;
  box-shadow: 0 10px 26px rgba(34, 201, 138, 0.32);
}
.m-btn:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--focus-ring), 0 12px 28px rgba(34, 201, 138, 0.42);
  transform: translateY(-1px);
}
.m-foot {
  flex-shrink: 0;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  padding: 6px 0 2px;
}
