/* Отключаем скроллинг на всей странице */
html, body {
    overflow: hidden;
    height: 100%;
    margin: 0;
    padding: 0;
}

/* Основные стили страницы */
body {
    font-family: Arial, sans-serif;
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f5f5f5;
    display: center;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    box-sizing: border-box;
}

.container {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#board {
    width: 380px;
    margin: 20px auto;
    max-width: 100%;
}

/* Стили статуса */
#status {
    padding: 10px;
    margin: 10px 0;
    border-radius: 5px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 2px;
    display: inline-block;
}

.status-default {
    color: #2c3e50;
}

.status-default .status-indicator {
    background-color: #2c3e50;
}

.status-success {
    color: #2c3e50;
}

.status-success .status-indicator {
    background-color: #2ecc71;
}

.status-error {
    color: #2c3e50;
}

.status-error .status-indicator {
    background-color: #e74c3c;
}

.status-thinking {
    color: #2c3e50;
}

.status-thinking .status-indicator {
    background-color: #3498db;
}

/* Подсказки */
.hint {
    color: #7f8c8d;
    font-style: italic;
    margin: 10px 0;
    min-height: 20px;
    text-align: center;
}

/* Кнопки */
.controls {
    text-align: center;
    margin: 20px 0;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.game-button {
    background: #bbbdbe;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.game-button:hover {
    background: #2980b9;
}

.game-button:active {
    transform: translateY(1px);
}

/* Заголовки */
h1 {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #2c3e50;
    text-align: center;
}

/* Стили для диалога превращения пешки */
.promotion-dialog {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.promotion-options {
    background: white;
    padding: 20px;
    border-radius: 10px;
    display: flex;
    gap: 10px;
    justify-content: center;
}

.promotion-piece {
    width: 60px;
    height: 60px;
    cursor: pointer;
    transition: transform 0.2s;
}

.promotion-piece:hover {
    transform: scale(1.1);
}

/* Подсветка доски при победе/поражении */
.board-success {
    box-shadow: 0 0 5px 5px rgba(46, 204, 113, 0.7);
    transition: box-shadow 0.5s ease;
}

.board-error {
    box-shadow: 0 0 5px 5px rgba(231, 76, 60, 0.7);
    transition: box-shadow 0.5s ease;
}

/* Адаптивный дизайн */
@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    
    .container {
        padding: 15px;
    }
    
    #board {
        width: 280px;
    }
    
    h1 {
        font-size: 1.3em;
    }
    
    .game-button {
        padding: 8px 16px;
        font-size: 14px;
    }
    
    .promotion-piece {
        width: 50px;
        height: 50px;
    }
    
    .controls {
        flex-direction: column;
        align-items: center;
    }
}

/* Дополнительные классы для состояний */
.game-over {
    opacity: 0.7;
    pointer-events: none;
}

.highlight {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
}