*{margin:0;padding:0;box-sizing:border-box}body{font-family:Segoe UI,PingFang SC,Microsoft YaHei,sans-serif;background:linear-gradient(135deg,#1a1a2e,#16213e);min-height:100vh;display:flex;justify-content:center;align-items:center}.game-container{text-align:center;padding:20px;background:#fffffff2;border-radius:16px;box-shadow:0 10px 40px #0000004d}h1{color:#333;margin-bottom:20px;font-size:28px;font-weight:600}.game-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px;gap:16px;flex-wrap:wrap}.game-info{display:flex;gap:20px;font-size:18px;font-weight:700}.mine-counter,.timer{padding:8px 16px;background:#e8e8e8;border-radius:8px;min-width:100px}.difficulty-select{padding:10px 16px;font-size:14px;border:2px solid #4a90d9;border-radius:8px;background:#fff;cursor:pointer;transition:all .2s}.difficulty-select:hover{border-color:#2e7dd1}.new-game-btn{padding:10px 20px;font-size:14px;font-weight:700;color:#fff;background:linear-gradient(135deg,#4caf50,#45a049);border:none;border-radius:8px;cursor:pointer;transition:all .2s}.new-game-btn:hover{transform:translateY(-2px);box-shadow:0 4px 12px #4caf5066}.status-message{font-size:20px;font-weight:700;margin-bottom:16px;padding:10px;border-radius:8px;transition:all .3s}.status-message.idle{color:#666;background:#f0f0f0}.status-message.playing{color:#2196f3;background:#e3f2fd}.status-message.won{color:#4caf50;background:#e8f5e9;animation:pulse .5s ease-in-out}.status-message.lost{color:#f44336;background:#ffebee}@keyframes pulse{0%,to{transform:scale(1)}50%{transform:scale(1.05)}}.grid{display:grid;gap:1px;background:gray;padding:1px;border:3px solid #808080;border-radius:4px;margin:0 auto;width:fit-content}.cell{width:28px;height:28px;display:flex;justify-content:center;align-items:center;cursor:pointer;-webkit-user-select:none;user-select:none;font-size:14px;font-weight:700;transition:all .1s}.cell:hover{filter:brightness(.9)}.cell:active{transform:scale(.95)}.cell-content{line-height:1}.instructions{margin-top:16px;color:#666;font-size:14px}.grid.game-over .cell:has(.mine){background:#fcc!important}
