/* 지뢰찾기 전용 스타일 */
.ms-shell { max-width: 980px; }
.ms-level span { padding: 6px 12px; font-size: 13px; }
#ms-flag.on { background: var(--soft-accent); border-color: var(--accent); }
.ms-scroll { overflow: auto; padding: 4px; border-radius: var(--r-lg); background: color-mix(in srgb, var(--primary) 6%, var(--surface)); }
.ms-board {
  --size: 38px;
  display: grid; grid-template-columns: repeat(var(--cols), var(--size)); gap: 3px; width: max-content; margin: 0 auto; padding: 8px;
  user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; touch-action: manipulation;
}
.ms-board.lv-normal, .ms-board.lv-hard { --size: 30px; }
.ms-cell {
  width: var(--size); height: var(--size); padding: 0; border: 0; border-radius: 7px; cursor: pointer;
  background: linear-gradient(160deg, color-mix(in srgb, var(--primary) 30%, var(--surface)), color-mix(in srgb, var(--primary) 46%, var(--surface)));
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .1), inset 0 1px 0 rgba(255, 255, 255, .35);
  font: 800 calc(var(--size) * .5) / 1 system-ui, sans-serif; color: var(--text); transition: transform .08s, background .12s;
}
.ms-cell:hover:not(.open) { filter: brightness(1.06); }
.ms-cell:active:not(.open) { transform: scale(.94); }
.ms-cell.open { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); cursor: default; }
.ms-cell.flag { background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 26%, var(--surface)), color-mix(in srgb, var(--accent) 40%, var(--surface))); }
.ms-cell.boom { background: #ff6b6b; }
.ms-cell.wrong { background: repeating-linear-gradient(45deg, var(--soft-accent), var(--soft-accent) 4px, var(--surface) 4px, var(--surface) 8px); }
.ms-cell[data-n="1"] { color: #2b7de9; }
.ms-cell[data-n="2"] { color: #12a37f; }
.ms-cell[data-n="3"] { color: #e5484d; }
.ms-cell[data-n="4"] { color: #6e56cf; }
.ms-cell[data-n="5"] { color: #c2410c; }
.ms-cell[data-n="6"] { color: #0891b2; }
.ms-cell[data-n="7"] { color: #1f2a37; }
.ms-cell[data-n="8"] { color: #64748b; }
:root[data-theme="dark"] .ms-cell[data-n="7"] { color: #e5f1ef; }
.ms-board.won .ms-cell.open { background: color-mix(in srgb, var(--primary) 10%, var(--surface)); }
.ms-msg { margin: 12px 0 0; text-align: center; font-weight: 650; }
@media (max-width: 520px) {
  .ms-board { --size: 32px; }
  .ms-board.lv-normal, .ms-board.lv-hard { --size: 28px; gap: 2px; }
  .game-bar .ms-level { order: 10; width: 100%; justify-content: center; }
}
