* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    padding: 30px;
    max-width: 1200px;
}

.header {
    text-align: center;
    margin-bottom: 20px;
}

.header h1 {
    color: #333;
    font-size: 2.5em;
    margin-bottom: 10px;
}

.status {
    font-size: 1.5em;
    font-weight: bold;
    padding: 10px 20px;
    border-radius: 10px;
    display: inline-block;
    background: #f0f0f0;
}

.status.red-turn {
    background: #ffebee;
    color: #c62828;
}

.status.black-turn {
    background: #e0e0e0;
    color: #424242;
}

.game-area {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 20px;
}

.board-container {
    flex-shrink: 0;
    background: #dcb35c;
    border-radius: 10px;
    padding: 20px;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.2);
}

#board {
    display: block;
    cursor: pointer;
}

.captured-pieces {
    width: 100px;
    padding: 15px;
    background: #f5f5f5;
    border-radius: 10px;
    min-height: 200px;
}

.captured-pieces h3 {
    font-size: 1em;
    margin-bottom: 10px;
    text-align: center;
    color: #333;
}

#redCaptured, #blackCaptured {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    min-height: 150px;
}

.controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.btn {
    padding: 12px 30px;
    font-size: 1.1em;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: bold;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.btn:active {
    transform: translateY(0);
}

select {
    padding: 12px 20px;
    font-size: 1.1em;
    border: 2px solid #667eea;
    border-radius: 10px;
    cursor: pointer;
    background: white;
    color: #333;
}

label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1em;
    cursor: pointer;
}

input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.message {
    text-align: center;
    font-size: 1.3em;
    font-weight: bold;
    color: #333;
    min-height: 30px;
    padding: 10px;
    border-radius: 10px;
    background: #f5f5f5;
}

.message.victory {
    background: #c8e6c9;
    color: #2e7d32;
    animation: pulse 1s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}
