.minesweeper-card{max-width:1010px}.difficulty-selector{display:flex;flex-wrap:wrap;justify-content:center;gap:.75rem;margin-bottom:1.5rem}.btn-difficulty{padding:.75rem 1.25rem;border:2px solid #3498db;background:var(--bi-surface);color:#3498db;border-radius:10px;font-weight:500;transition:all .3s ease;display:flex;flex-direction:column;align-items:center;min-width:120px}.btn-difficulty:hover,.btn-difficulty.active{background:#3498db;color:#fff}.difficulty-info{font-size:.75rem;opacity:.8;margin-top:.25rem}.game-status{display:flex;justify-content:center;align-items:center;gap:2rem;margin-bottom:1rem;padding:1rem;background:linear-gradient(135deg,var(--brand) 0%,var(--brand-strong) 100%);border-radius:12px}.status-item{display:flex;align-items:center;gap:.5rem;background:#fff3;padding:.5rem 1rem;border-radius:8px}.status-icon{font-size:1.25rem}.status-value{font-size:1.5rem;font-weight:700;color:#fff;font-family:Courier New,monospace;min-width:40px;text-align:center}.status-label{font-size:.75rem;color:#fffc;margin-right:.25rem}.btn-face{width:60px;height:60px;border-radius:50%;background:linear-gradient(135deg,#e1fb93,#f55757);display:flex;align-items:center;justify-content:center;font-size:1.75rem;cursor:pointer;transition:all .2s ease;box-shadow:0 4px 15px #0003}.btn-face:hover{transform:scale(1.1)}.btn-face:active{transform:scale(.95)}.face-icon{line-height:1}.game-board-container{display:flex;justify-content:center;margin-bottom:1.5rem;overflow-x:auto;overflow-y:hidden;padding:.5rem;max-width:100%}.game-board-container::-webkit-scrollbar{height:8px}.game-board-container::-webkit-scrollbar-track{background:#f1f1f1;border-radius:4px}.game-board-container::-webkit-scrollbar-thumb{background:#888;border-radius:4px}.game-board-container::-webkit-scrollbar-thumb:hover{background:#555}.game-board{display:grid;gap:1px;background:#7f8c8d;padding:4px;border-radius:4px;box-shadow:0 4px 20px #00000026}.cell{width:30px;height:30px;background:linear-gradient(145deg,#e8e8e8,silver);border:2px outset #ddd;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:1rem;cursor:pointer;user-select:none;transition:all .1s ease}.cell:hover:not(.revealed):not(.flagged){background:linear-gradient(145deg,#f0f0f0,#d0d0d0)}.cell:active:not(.revealed):not(.flagged){border-style:inset;background:#bbb}.cell.revealed{background:#ddd;border:1px solid #bbb;cursor:default}.cell.number-1{color:#00f}.cell.number-2{color:green}.cell.number-3{color:red}.cell.number-4{color:navy}.cell.number-5{color:maroon}.cell.number-6{color:teal}.cell.number-7{color:#000}.cell.number-8{color:gray}.cell.flagged{background:linear-gradient(145deg,#2c3e50,#34495e);border:2px outset #4a6278}.cell.flagged:after{content:"🚩";font-size:.875rem;filter:drop-shadow(0 1px 2px rgba(0,0,0,.3))}.cell.question{background:linear-gradient(145deg,#ffd93d,#f4c430);border:2px outset #ffe066}.cell.question:after{content:"?";font-size:1rem;color:var(--bi-text)}.cell.mine{background:#f44;border:1px solid #cc0000}.cell.mine:after{content:"💣";font-size:.875rem}.cell.mine-hit{background:#31bfdb;border:2px solid #11bfdb;animation:explode .3s ease}.cell.mine-hit:after{content:"💥";font-size:1rem}@keyframes explode{0%{transform:scale(1)}50%{transform:scale(1.3)}to{transform:scale(1)}}.cell.wrong-flag{background:#dbb475;border:2px outset #ffc107}.cell.wrong-flag:after{content:"❌";font-size:.875rem}.game-controls{display:flex;justify-content:center;gap:1rem;margin-bottom:1.5rem}.game-instructions{background:var(--bi-surface-2);padding:1.5rem;border-radius:12px}.game-instructions h5{color:var(--bi-text);margin-bottom:1rem;text-align:center}.game-instructions ul{color:#7f8c8d;padding-left:1.5rem;margin:0}.game-instructions li{margin-bottom:.5rem}.game-instructions strong{color:#3498db}.result-emoji{font-size:4rem;margin-bottom:1rem}.result-message{font-size:1.25rem;color:var(--bi-text);margin-bottom:.5rem}.result-time{font-size:1rem;color:#7f8c8d}.pause-overlay{position:absolute;inset:0;background:#000000b3;display:flex;align-items:center;justify-content:center;border-radius:4px;z-index:10}.pause-overlay:after{content:"⏸️ 暂停中";color:#fff;font-size:1.5rem;font-weight:700}@media (max-width: 576px){.minesweeper-card{padding:1rem}.game-title{font-size:1.75rem}.cell{width:24px;height:24px;font-size:.875rem}.difficulty-selector{flex-direction:column;align-items:center}.btn-difficulty{width:100%;max-width:200px}.game-status{gap:1rem;padding:.75rem}.btn-face{width:50px;height:50px;font-size:1.5rem}.status-value{font-size:1.25rem}}html[data-theme=dark] .game-board-container::-webkit-scrollbar-track{background:var(--bi-surface-2)}
