/* Original Deck & Board minefield: raised covered tiles and quiet open squares. */
.table[data-game=minesweeper]{min-height:0;padding:18px 14px 22px}
.ms-stage{--ms-cell:34px;max-width:calc(var(--ms-cols)*38px + 24px);margin:auto;color:#243149;font-family:Arial,Helvetica,sans-serif}
.ms-stage *{box-sizing:border-box}
.ms-settings{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 2px 12px;font-size:12px}
.ms-level-label{display:flex;align-items:center;gap:9px;font-weight:600}
.ms-level-label>span{color:#657083;font-weight:400}
.ms-level-label select{appearance:auto;max-width:155px;min-height:38px;padding:7px 26px 7px 10px;border:1px solid #d1d0cb;border-radius:8px;background:#fffdf8;color:#243149;font:600 13px Arial,sans-serif}
.ms-dimensions{white-space:nowrap;color:#657083;font-size:12px}
.ms-level-name{font-size:15px}
.ms-console{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:16px;padding:13px 18px;border:1px solid #cdd2da;border-radius:13px;background:#e5e9ef;box-shadow:inset 0 1px 0 #fff}
.ms-stat{display:flex;align-items:center;gap:10px}
.ms-stat>svg{width:22px;height:22px;color:#7b4a2c;flex:none}
.ms-stat>div{display:flex;flex-direction:column;gap:2px}
.ms-stat span{font-size:10px;letter-spacing:.07em;text-transform:uppercase;color:#566176}
.ms-stat strong{font:700 24px/1.1 ui-monospace,SFMono-Regular,Consolas,monospace;letter-spacing:.03em;color:#243149}
.ms-time{justify-content:flex-end}.ms-time>svg{color:#66758d}
.ms-stage .ms-reset{display:grid;place-items:center;width:44px;height:44px;padding:6px;border:1px solid #cbd0d9;border-radius:10px;background:#fffaf0;box-shadow:0 2px 2px #24314912;color:#96613a;cursor:pointer}
.ms-reset>svg{width:28px;height:28px;pointer-events:none}.ms-stage .ms-emblem{cursor:default}
.ms-toolbar{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:12px 0}
.ms-mode{display:flex;padding:3px;border:1px solid #d3d4d6;border-radius:10px;background:#e8e8e5}
.ms-stage .ms-mode button{display:flex;align-items:center;justify-content:center;gap:6px;min-height:38px;min-width:94px;padding:6px 12px;border:0;border-radius:7px;background:transparent;color:#566176;font:600 13px Arial,sans-serif;cursor:pointer}
.ms-mode button>svg{width:18px;height:18px;pointer-events:none}
.ms-stage .ms-mode button[aria-pressed=true]{background:#243149;color:#fffdf8;box-shadow:0 1px 3px #24314920}
.ms-stage .ms-mode button:disabled{opacity:.65;cursor:default}
.ms-stage .ms-compact{min-height:40px;padding:8px 10px;border:1px solid #ccd0d6;border-radius:8px;background:transparent;color:#536077;font:600 12px Arial,sans-serif;cursor:pointer}
.ms-stage .ms-compact[aria-pressed=true]{background:#e9d3be;color:#613c22;border-color:#c99c7a}
.ms-scroll{width:100%;max-height:70dvh;overflow:auto;border:1px solid #aeb7c5;border-radius:10px;background:#c5cdd9;padding:7px;box-shadow:inset 0 1px 3px #24314922;overscroll-behavior:contain;touch-action:pan-x pan-y;scrollbar-color:#8996aa #dfe3e9;scrollbar-width:thin}
.ms-board{display:grid;grid-template-columns:repeat(var(--ms-cols),minmax(0,1fr));min-width:calc(var(--ms-cols)*var(--ms-cell));gap:1px;background:#abb7c7;border:1px solid #abb7c7}
.ms-stage[data-level=beginner] .ms-board{min-width:0}
.ms-stage .ms-cell{display:grid;place-items:center;position:relative;min-width:0;min-height:0;width:100%;height:auto;aspect-ratio:1;margin:0;padding:0;border:2px solid;border-color:#f2f5fa #9aa7b9 #98a5b7 #edf1f8;border-radius:2px;background:linear-gradient(135deg,#dee5ef,#c5d0df);color:#243149;box-shadow:none;font:800 20px/1 Arial,Helvetica,sans-serif;cursor:pointer;touch-action:manipulation;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
.ms-cell>svg{display:block;width:64%;height:64%;pointer-events:none}
.ms-stage .ms-cell.is-open{background:#f3f2ec;border:1px solid #e5e5e1;border-radius:0;box-shadow:none}
.ms-stage .ms-cell[data-number="1"]{color:#2262ae}.ms-stage .ms-cell[data-number="2"]{color:#28763c}.ms-stage .ms-cell[data-number="3"]{color:#bf3434}.ms-stage .ms-cell[data-number="4"]{color:#6943a0}.ms-stage .ms-cell[data-number="5"]{color:#92481e}.ms-stage .ms-cell[data-number="6"]{color:#147b86}.ms-stage .ms-cell[data-number="7"]{color:#303642}.ms-stage .ms-cell[data-number="8"]{color:#657080}
.ms-stage .ms-cell.is-flagged{color:#ad492a;background:#f1ddbe;border-color:#fff8e9 #c1a587 #c1a587 #fff8e9}
.ms-stage .ms-cell.is-mine{background:#d6dce5;border:1px solid #b8c1cf}
.ms-stage .ms-cell.is-exploded{background:#bf3434;color:#fff;border-color:#a82828}
.ms-cross{position:absolute;inset:0;display:grid;place-items:center;color:#a52323;font-size:34px;text-shadow:0 0 2px #fff}
.ms-stage button:focus-visible,.ms-level-label select:focus-visible,.ms-scroll:focus-visible{outline:3px solid #a14620;outline-offset:2px;z-index:1}
.ms-stage .ms-cell:focus-visible{outline:3px solid #d67c36;outline-offset:-3px;z-index:2}
.ms-caption{text-align:center;margin:13px 0 0}.ms-stage .ms-status{margin:0;min-height:18px;font-size:13px;line-height:1.5;color:#34435c}
.ms-stage .ms-progress{margin:5px 0 0;font-size:11px;color:#6a7380}
.ms-caption .btn{margin:12px auto 0}
.ms-stage.is-finished .ms-status{font-weight:700;font-size:17px}
.ms-stage .ms-help{margin:16px auto 0;max-width:440px;text-align:center;font-size:11px;line-height:1.6;color:#747d89}
.ms-stage.is-compact{--ms-cell:21px}.ms-stage.is-compact .ms-cell{font-size:16px;border-width:1px}
@media(hover:hover){.ms-stage .ms-cell:not(.is-open):not([aria-disabled=true]):hover{background:#e8edf5;border-color:#fff #8b99ae #8b99ae #fff}.ms-stage .ms-reset:hover{background:#f4dfc2}.ms-stage .ms-cell.is-open:not([aria-disabled=true]):hover{background:#e8e6dc}}
@media(max-width:480px){.table[data-game=minesweeper]{padding:12px 8px 18px}.ms-level-label>span{display:none}.ms-settings{gap:8px;margin-bottom:9px}.ms-console{padding:10px 12px;gap:8px}.ms-stat{gap:6px}.ms-stat>svg{width:18px;height:18px}.ms-stat strong{font-size:22px}.ms-stat span{font-size:9px}.ms-scroll{padding:5px}.ms-stage .ms-cell{font-size:19px}.ms-stage.is-compact .ms-cell{font-size:15px}.ms-stage .ms-help{margin-top:12px}}
.game-fullscreen .table[data-game=minesweeper]{padding-top:10px}.game-fullscreen .ms-scroll{max-height:calc(100dvh - 258px)}
@media(max-height:500px){.game-fullscreen .ms-stage{max-width:900px}.game-fullscreen .ms-settings{margin-bottom:5px}.game-fullscreen .ms-console{padding:5px 10px}.game-fullscreen .ms-toolbar{margin:6px 0}.game-fullscreen .ms-scroll{max-height:calc(100dvh - 210px)}.game-fullscreen .ms-caption,.game-fullscreen .ms-help{margin-top:6px}}
