body {
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    background-color: #f0f0f0;
}

.game-container {
    text-align: center;
}

h1 {
    color: #333;
}

.game-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: bold;
}

#game-board {
    display: grid;
    gap: 2px;
    margin: 0 auto;
    background-color: #ddd;
    border: 2px solid #999;
    padding: 10px;
}

.cell {
    width: 40px;
    height: 40px;
    background-color: #fff;
    border: 1px solid #eee;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    position: relative;
}

.cell.dot::before {
    content: "";
    width: 20px;
    height: 20px;
    border-radius: 50%;
    z-index: 1;
}

.cell.path::after {
    content: "";
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    z-index: 0;
}

.cell.selected {
    border: 2px solid #333;
}

.controls {
    margin-top: 20px;
}

button {
    padding: 10px 20px;
    margin: 0 10px;
    font-size: 16px;
    cursor: pointer;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
}

button:hover {
    background-color: #45a049;
}

button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

/* 颜色定义 */
.red { background-color: #ff4136; }
.blue { background-color: #0074D9; }
.green { background-color: #2ECC40; }
.yellow { background-color: #FFDC00; }
.purple { background-color: #B10DC9; }
.orange { background-color: #FF851B; }
.pink { background-color: #F012BE; }
.brown { background-color: #A0522D; }
.black { background-color: #111111; }
.cyan { background-color: #00CED1; }