/* 지뢰찾기 전용. 평평한 둥근 칸, 닫힌 칸은 꿀빛 노랑, 열린 칸은 흰색. 숫자 색은 흰 바탕 대비 4.5:1 이상 */
.ms { display: grid; gap: 12px; padding: 12px; border-radius: var(--radius-card); background: var(--canvas-blue); }
@media (min-width: 600px) { .ms { padding: 20px 24px; } }
.ms .seg { flex-wrap: wrap; gap: 6px; border: 0; }
.ms .seg span { min-height: 40px; padding: 0 14px; border-radius: var(--radius-pill); background: var(--surface); }
.ms .seg input:checked + span { background: var(--action-blue); color: var(--ink-rd); font-weight: 800; box-shadow: none; }
.ms-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.ms-stat { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: var(--radius-pill); background: var(--surface); font-size: 14px; font-weight: 700; color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.ms-stat b { font-size: 17px; color: var(--ink-rd); }
.ms-stat svg { width: 16px; height: 16px; }
.ms-bar .actions { margin: 0 0 0 auto; }
.ms-bar .btn { min-height: 40px; }
.ms-flag[aria-pressed="true"] { background: var(--tile-yellow); border-color: var(--progress-fill); font-weight: 800; }
.ms-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; padding: 6px; border-radius: var(--radius-card); background: var(--surface); }
.ms-board { display: grid; grid-template-columns: repeat(var(--ms-cols), var(--ms-cell)); gap: var(--ms-gap, 3px); width: max-content; margin: 0 auto;
  touch-action: manipulation; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.ms-cell { display: grid; place-items: center; width: var(--ms-cell); height: var(--ms-cell); padding: 0; border: 0; border-radius: calc(var(--ms-cell) * .2);
  background: var(--tile-yellow); color: var(--ink-rd); font: 800 calc(var(--ms-cell) * .52) / 1 var(--sans); font-variant-numeric: tabular-nums; cursor: pointer;
  transition: background-color .1s var(--ease); }
.ms-cell:hover { background: #FFE46B; }
.ms-cell:focus-visible { outline: 3px solid var(--accent-text); outline-offset: 1px; z-index: 1; }
.ms-cell svg { width: 70%; height: 70%; }
.ms-cell.is-open { background: var(--surface-muted); cursor: default; }
.ms-cell.is-flag { background: var(--tile-yellow-light); }
.ms-cell.is-boom { background: #FFD3CC; }
.ms-cell.is-mine { background: var(--tile-blue-light); }
.ms-cell.is-wrong { background: #FFD3CC; }
.ms-cell.n1 { color: #0272C1; } .ms-cell.n2 { color: #1E7A34; } .ms-cell.n3 { color: #C62828; } .ms-cell.n4 { color: #0B3550; }
.ms-cell.n5 { color: #8A3B00; } .ms-cell.n6 { color: #00796B; } .ms-cell.n7 { color: #6A1B9A; } .ms-cell.n8 { color: #535353; }
.ms-board.is-over .ms-cell { cursor: default; }
.ms-msg { min-height: 24px; font-weight: 700; color: var(--ink-rd); }
.ms .hint { margin: 0; }
