/* Стилі для гри з ботом */
.bot-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.bot-modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 90%;
    max-width: 800px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Контейнер із прокруткою */
.bot-modal-scroll {
  max-height: 90vh;       /* обмежуємо висоту вікна */
  overflow-y: auto;       /* вертикальна прокрутка */
  width: 95%;             /* щоб добре виглядало на мобільних */
  display: flex;
  justify-content: center;
}

.bot-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #ddd;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.bot-close-btn {
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #aaa;
}

.bot-close-btn:hover {
    color: #000;
}

.bot-game-controls {
    margin-bottom: 20px;
    text-align: center;
}

.bot-select {
    padding: 8px 12px;
    margin: 0 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.bot-btn {
    padding: 10px 20px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    margin: 5px;
}

.bot-btn:hover {
    background-color: #45a049;
}

.bot-btn:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

.bot-game-area {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto;
    gap: 20px;
    margin-top: 20px;
}

.bot-player-area, .bot-bot-area {
    border: 2px solid #ddd;
    padding: 15px;
    border-radius: 8px;
    background-color: #f9f9f9;
}

.bot-game-log {
    grid-column: 1 / -1;
    border: 2px solid #ddd;
    padding: 15px;
    border-radius: 8px;
    background-color: #f9f9f9;
    max-height: 200px;
    overflow-y: auto;
}

.bot-action-area {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    border: 2px solid #ddd;
    padding: 15px;
    border-radius: 8px;
    background-color: #f9f9f9;
}

.bot-query-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 10px;
}

.cards-container {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    min-height: 60px;
}

.card {
    width: 40px;
    height: 60px;
    border: 1px solid #000;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    font-size: 12px;
}

.chests-container {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 10px;
}

.chest {
    width: 40px;
    height: 60px;
    border: 2px solid gold;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fffacd;
    font-weight: bold;
}

.log-container {
    font-family: monospace;
    font-size: 14px;
    line-height: 1.4;
}

.log-entry {
    margin: 5px 0;
    padding: 5px;
    border-radius: 3px;
}

.log-player {
    background-color: #e3f2fd;
}

.log-bot {
    background-color: #f3e5f5;
}

.log-system {
    background-color: #fff3e0;
    font-weight: bold;
}