.mines-shell{max-width:1040px}.mine-toolbar{display:flex;gap:8px;flex-wrap:wrap;margin:16px 0 8px}.mine-toolbar button{font-size:13px;padding:10px 13px}.mine-toolbar [aria-pressed=true]{background:#3478e5;color:#fff}.mine-guide{font-size:12px;color:#65758b;margin:10px 0}.mine-scroll{overflow:auto;max-width:100%;border:2px solid #8c9eb5;border-radius:5px;overscroll-behavior-x:contain;touch-action:pan-x pan-y;scrollbar-width:thin}.mine-board{display:grid;grid-template-columns:repeat(30,32px);width:960px;background:#94a3b8;gap:0}.mine-cell{width:32px;height:32px;padding:0;border-radius:0;background:#dce5ef;border:2px solid;border-color:#fff #91a2b8 #91a2b8 #fff;font-size:19px;font-weight:750;line-height:28px;user-select:none;touch-action:pan-x pan-y}.mine-cell.open{border:1px solid #b5c2d2;background:#f1f5f9;line-height:30px}.mine-cell.flag{color:#d23b52}.mine-cell.hit{background:#ffb1b1}.mine-cell.wrong{background:#ffe1d8;color:#b82e30}.mine-cell[data-count="1"]{color:#245bd7}.mine-cell[data-count="2"]{color:#198144}.mine-cell[data-count="3"]{color:#d03535}.mine-cell[data-count="4"]{color:#563eaf}.mine-cell[data-count="5"]{color:#954516}.mine-cell[data-count="6"]{color:#007f84}.mine-cell[data-count="7"]{color:#292e35}.mine-cell[data-count="8"]{color:#6a7079}.mine-cell:focus-visible{outline:3px solid #2878ff;outline-offset:-3px;position:relative}.mine-status{padding:18px;background:#edf5ff;border-radius:12px;margin:12px 0}.mine-status h2{font-size:22px;margin-bottom:6px}.mine-status p{font-size:14px;color:#5f718a;margin-bottom:8px}@media(max-width:480px){.mines-shell{padding-left:16px;padding-right:16px}.mine-toolbar button{flex:1;white-space:nowrap;font-size:12px;padding:10px 7px}.mines-shell .game-meta{font-size:12px}}

.mine-board.zoomed{grid-template-columns:repeat(30,40px);width:1200px}.mine-board.zoomed .mine-cell{width:40px;height:40px;line-height:36px;font-size:23px}@media(max-width:600px){.mine-board{--cell:calc((100vw - 36px)/16);grid-template-columns:repeat(16,var(--cell));width:100%}.mine-cell{width:var(--cell);height:var(--cell);font-size:14px;line-height:1}.mine-cell.open{line-height:1}.mine-board.zoomed{grid-template-columns:repeat(16,36px);width:576px}.mine-board.zoomed .mine-cell{width:36px;height:36px;line-height:32px;font-size:21px}}
.mines-shell{width:min(100%,1040px)}@media(max-width:600px){.mine-board:not(.zoomed){grid-template-columns:repeat(16,minmax(0,1fr));width:100%}.mine-board:not(.zoomed) .mine-cell{width:100%;height:auto;aspect-ratio:1}.mine-toolbar{position:sticky;top:0;background:white;z-index:2;padding:8px 0}}
