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;
    background-color: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

h1 {
    color: #333;
    margin-bottom: 20px;
}

.game-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: bold;
    color: #555;
}

.game-board {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 20px auto;
}

.button-row {
    display: flex;
    gap: 10px;
}

.game-button {
    width: 120px;
    height: 120px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.game-button:active {
    transform: scale(0.95);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* 按钮颜色 */
#button-0 { background-color: #ff5252; } /* 红色 */
#button-1 { background-color: #4caf50; } /* 绿色 */
#button-2 { background-color: #2196f3; } /* 蓝色 */
#button-3 { background-color: #ffeb3b; } /* 黄色 */

/* 激活状态 */
#button-0.active { background-color: #ff8a80; box-shadow: 0 0 20px #ff5252; }
#button-1.active { background-color: #80e27e; box-shadow: 0 0 20px #4caf50; }
#button-2.active { background-color: #82b1ff; box-shadow: 0 0 20px #2196f3; }
#button-3.active { background-color: #ffff72; box-shadow: 0 0 20px #ffeb3b; }

.controls {
    margin: 20px 0;
}

button {
    padding: 12px 24px;
    margin: 0 10px;
    font-size: 16px;
    cursor: pointer;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 6px;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #45a049;
}

button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

.status {
    font-size: 18px;
    font-weight: bold;
    margin-top: 20px;
    padding: 10px;
    border-radius: 5px;
    background-color: #e0e0e0;
    color: #333;
}

.status.success {
    background-color: #c8e6c9;
    color: #2e7d32;
}

.status.error {
    background-color: #ffcdd2;
    color: #c62828;
}

@media (max-width: 600px) {
    .game-button {
        width: 100px;
        height: 100px;
    }
    
    .game-container {
        padding: 20px;
    }
}