.game-info {
    display: flex;
    justify-content: space-between;
    padding: 12px 20px;
    background: #f8fafc;
    border-radius: 10px;
    margin: 0 auto 20px;
    max-width: 420px;
}
.game-info span {
    color: #0078ff;
    font-weight: 500;
}

/* 难度按钮 */
.difficulty {
    text-align: center;
    margin-bottom: 20px;
}
.diff-btn {
    padding: 7px 18px;
    margin: 0 5px;
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
}
.diff-btn.active {
    background: #0078ff;
    color: #fff;
    border-color: #0078ff;
}

/* 重新开始 */
.reset-btn {
    display: block;
    margin: 0 auto 20px;
    padding: 9px 25px;
    background: linear-gradient(120deg, #0078ff, #40a9ff);
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

/* 提示文字 */
.game-message {
    text-align: center;
    margin-bottom: 15px;
    font-size: 17px;
    font-weight: 500;
}
.success { color: #22c55e; }
.failed { color: #ef4444; }

/* 雷区棋盘 */
.mine-map {
    display: block;
    width: fit-content;
    margin: 0 auto 20px;
    background: #f1f5f9;
    padding: 10px;
    border-radius: 10px;
}
.row { display: flex; }
.cell {
    width: 30px;
    height: 30px;
    background: #e2e8f0;
    border: 2px solid #fff;
    border-right-color: #94a3b8;
    border-bottom-color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    cursor: pointer;
    border-radius: 3px;
}
.cell.reveal { background: #f8fafc; border: 1px solid #e2e8f0; }
.cell.mine { background: #ef4444 !important; color: #fff; }
.cell.flag { background: #fbbf24 !important; color: #fff; }

/* 数字颜色 */
.num1 { color: #0078ff; }
.num2 { color: #22c55e; }
.num3 { color: #ef4444; }
.num4 { color: #8b5cf6; }
.num5 { color: #f97316; }
.num6 { color: #06b6d4; }
.num7 { color: #1f2937; }
.num8 { color: #6b7280; }

/* 规则说明 */

/* 规则卡片 */
.rule-card {
    max-width: 600px;
    margin: 30px auto 0;
    padding: 20px;
    background: #f8fafc;
    border-radius: 12px;
    text-align: left;
    border: 1px solid rgba(0, 120, 255, 0.1);
}

.rule-card h3 {
    font-size: 18px;
    color: #2c3e50;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #0078ff;
    display: inline-block;
}

.rule-card ul {
    list-style: none;
    font-size: 14px;
    color: #34495e;
    line-height: 1.8;
}

.rule-card li {
    margin-bottom: 6px;
    padding-left: 18px;
    position: relative;
}

.rule-card li::before {
    content: "•";
    color: #0078ff;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.rule-card .key {
    color: #0078ff;
    font-weight: 500;
}