#ia-processing-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    pointer-events: none;
    display: none;
}

body.waiting-cat {
    cursor: url('../assets/cursors/cat.png') 16 16, auto !important;
}

body.waiting-dog {
    cursor: url('../assets/cursors/dog.png') 16 16, auto !important;
}

body.waiting-cat #ia-processing-overlay,
body.waiting-dog #ia-processing-overlay {
    display: block !important;
}

/* Fallback para navegadores sem suporte */
@supports not (cursor: url()) {
    #ia-processing-overlay {
        cursor: wait !important;
    }
}

.game-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 50px;
    margin-bottom: 10px;
}

.cell {
    width: 50px;
    height: 50px;
    background: white;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cell:hover {
    background: #f8f8f8;
    transform: scale(1.05);
}

.central-cell {
    background-color: #f8ecd9 !important; /* Cor destacada */
    transition: background-color 0.3s ease-in-out; /* Efeito suave */
}

.player-panel {
    padding: 1rem;
    border-radius: 15px;
    min-width: 150px;
}

.player-panel, .main-area {
    flex: 0 1 auto; /* Mantém proporções naturais */
}

.player-panel h2 {
    margin: 0 0 1rem 0;
    color: #666;
    font-size: 1.2rem;
}

#possible-moves {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

/* Stocks */

.cell.highlight-possible {
  background-color: #f5f2ec; /* azul claro suave */
  box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.3);
  transition: background-color 0.2s;
}

#catStock.hidden,
#dogStock.hidden {
  display: none;
}

#cat-moves.hidden,
#dog-moves.hidden {
  display: none;
}


.stock {
    display: grid;
    grid-template-columns: repeat(4, 20px);
    gap: 5px;
    margin-top: 10px;
}

.piece {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: center;
    font-weight: bold;
}

/* Indicadores de status */
.turn-indicator {
    text-align: center;
    margin-bottom: 1rem;
}

#current-turn {
    font-size: 2rem; 
    vertical-align: middle;
}

#remaining-moves {
    font-size: 1.5rem;
    color: #666;
}


/* Modo responsivo */
@media (max-width: 768px) {
    .game-container {
        flex-direction: column;
        align-items: center;
    }
    
    .quadratic-board {
        grid-template-columns: repeat(var(--board-size), 40px); /* Células menores */
    }

    .cell {
        width: 35px;
        height: 35px;
    }
}