.game-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.board {
    margin: 0 auto;
    width: 300px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(4, 1fr);
    gap: 1px;
    background-color: #8B4513;
    border: 3px solid #5D2906;
    border-radius: 5px;
    padding: 5px;
}

.cell {
    aspect-ratio: 1/1;
    background-color: #F5DEB3;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    cursor: pointer;
    position: relative;
}

.cell.highlight {
    background-color: rgba(0, 255, 0, 0.3);
}

.cell.capture {
    background-color: rgba(255, 0, 0, 0.3);
}

.piece {
    width: 80%;
    height: 80%;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    font-weight: bold;
}

.player1 {
    background-color: #FF9999;
    color: #8B0000;
}

.player2 {
    background-color: #9999FF;
    color: #00008B;
}

.captured-pieces {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 10px;
    min-height: 30px;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 5px;
}

.captured-piece {
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    font-weight: bold;
    cursor: pointer;
}

.game-info {
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 5px;
}

.promotion-zone {
    background-color: rgba(255, 215, 0, 0.2);
}

/* css/style.css */
.board.player2-view {
    transform: rotate(180deg);
}

.piece.player2 {
    transform: rotate(180deg); /* 保持棋子文字正立 */
}

.captured-pieces.player2-view {
    transform: rotate(180deg);
}

/* 晉升區域標記調整 */
.promotion-zone.player1-zone {
    background-color: rgba(255, 215, 0, 0.2);
}

.promotion-zone.player2-zone {
    background-color: rgba(0, 191, 255, 0.2);
}
