*{box-sizing:border-box}html,body{margin:0;min-height:100%;font-family:-apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif;color:#344052;background:#f3f5f7;background-image:linear-gradient(#e5e9ed 1px,transparent 1px),linear-gradient(90deg,#e5e9ed 1px,transparent 1px);background-size:22px 22px}button{font:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent}button:disabled{cursor:default;opacity:.45}button:focus-visible{outline:3px solid #435ed6;outline-offset:3px}[hidden]{display:none!important}.game-shell{max-width:520px;margin:auto;padding:calc(16px + env(safe-area-inset-top)) 14px calc(24px + env(safe-area-inset-bottom))}.game-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:18px}.brand{display:flex;align-items:center;gap:10px}.brand-mark{display:grid;place-items:center;width:42px;height:42px;border-radius:14px;background:#ff8a3d;color:white;font-size:25px;font-weight:900}h1{font-size:21px;margin:0}.brand p{font-size:12px;color:#7b8797;margin:4px 0 0}.head-stats{display:flex;align-items:center;gap:12px}.stat{display:flex;flex-direction:column;gap:3px}.stat span{font-size:10px;color:#7b8797}.stat strong{font-size:19px;font-variant-numeric:tabular-nums}.timer-wrap strong{font-size:17px}.icon-button{border:1px solid #e0e5eb;background:white;border-radius:12px;min-width:42px;min-height:44px;font-size:22px;color:#ff8a3d}.mode-tabs{display:flex;gap:5px;padding:5px;background:#e6eaf0;border-radius:15px}.mode-tab{flex:1;padding:11px 0;border:0;background:transparent;border-radius:11px;font-size:13px;color:#727e8e;font-weight:600}.mode-tab.active{background:#fff;color:#e8752a;box-shadow:0 2px 5px #23334b0c}.mode-note{font-size:12px;line-height:1.7;color:#7b8797;padding:12px 2px;min-height:44px}.section-label{font-weight:700;font-size:13px}.section-heading{display:flex;justify-content:space-between;align-items:center;margin:2px 0 9px}.section-hint{font-size:10px;color:#929cac}.difficulty-list{display:grid;gap:8px}.difficulty-button{display:flex;align-items:center;justify-content:space-between;width:100%;padding:12px 15px;border:2px solid transparent;border-radius:14px;color:white;min-height:51px;box-shadow:0 3px 0 #34405215}.difficulty-button.easy{background:linear-gradient(110deg,#729cf5,#8e76de)}.difficulty-button.medium{background:linear-gradient(110deg,#f7d679,#f2be4b);color:#705222}.difficulty-button.hard{background:linear-gradient(110deg,#ffa361,#f37a64)}.difficulty-button.selected{border-color:#fff;outline:2px solid #34405233}.difficulty-name{font-size:15px;font-weight:800}.difficulty-spec{font-size:12px;opacity:.9;margin-left:8px}.best{font-size:11px;white-space:nowrap}.board-panel{margin-top:17px;padding:12px 10px;background:#fff;border:1px solid #e0e5eb;border-radius:18px;box-shadow:0 4px 0 #dce2e966}.board-top{display:flex;align-items:center;justify-content:space-between;margin:0 2px 12px}.board-subtitle{display:block;font-size:10px;color:#929cac;margin-top:5px}.board-status{font-size:11px;background:#fff0e5;padding:6px 9px;border-radius:8px;color:#dc792e}.board{display:grid;gap:3px;user-select:none;-webkit-user-select:none}.cell{aspect-ratio:1;min-width:0;padding:0;border:1px solid #ccd6e2;border-bottom:3px solid #becbd9;border-radius:5px;background:#e0e7f0;color:#344052;font-size:clamp(10px,3.3vw,18px);font-weight:800;touch-action:pan-y;display:grid;place-items:center}.cell.revealed{background:#f5f7fa;border:1px solid #e4e9ee}.cell.flagged{color:#ed675c}.cell.mine{background:#ffd7cc;color:#bd4c41}.cell.hit{background:#f06d60;color:white}.cell[data-number="1"]{color:#5285d8}.cell[data-number="2"]{color:#46a079}.cell[data-number="3"]{color:#df7665}.cell[data-number="4"]{color:#8c67c6}.cell[data-number="5"],.cell[data-number="6"],.cell[data-number="7"],.cell[data-number="8"]{color:#a45646}.board.dense{gap:2px}.board.dense .cell{border-radius:3px;font-size:12px;border-bottom-width:2px}.help-strip{margin-top:16px;padding:14px;background:#ffffffbf;border:1px solid #e0e5eb;border-radius:16px;display:grid;gap:12px}.help-item{display:flex;align-items:center;gap:10px;font-size:12px;color:#7b8797}.help-icon{display:grid;place-items:center;font-size:19px;width:26px;color:#ff8a3d}.flag-icon{color:#eb6d60}.level-picker{padding:12px;margin-bottom:13px;border:1px solid #e0e5eb;border-radius:14px;background:#ffffffb3}.level-list{display:flex;gap:7px;margin-top:10px;flex-wrap:wrap}.level-button,.secondary-button{min-height:42px;padding:8px 12px;background:#f0f3f7;color:#5c6c80;border:1px solid #dce2e9;border-radius:10px}.level-button.active{background:#fff0e5;border-color:#ff8a3d;color:#d56f2c}.puzzle-controls{display:flex;align-items:center;justify-content:space-between;margin-top:9px}.puzzle-controls strong{font-size:14px}.result-backdrop{position:fixed;inset:0;background:#26334b66;display:flex;align-items:center;justify-content:center;padding:24px;z-index:20}.result-dialog{width:100%;max-width:340px;padding:25px 22px;background:#fff;border-radius:23px;text-align:center;box-shadow:0 12px 50px #26334b26}.result-symbol{font-size:35px;color:#ff8a3d}h2{font-size:23px;margin:12px 0}.result-dialog p{font-size:14px;color:#7b8797;line-height:1.8;white-space:pre-line}.result-actions{display:flex;gap:9px;margin-top:22px}.result-actions button{flex:1}.primary-button{min-height:45px;border:0;border-radius:11px;background:#ff8a3d;color:#fff;font-weight:700}@media(max-width:360px){.game-shell{padding-left:9px;padding-right:9px}.head-stats{gap:7px}.difficulty-spec{margin-left:4px;font-size:11px}.board.dense .cell{font-size:10px}.brand-mark{display:none}}
