body {
    font-family: 'Inter', sans-serif;
    background-color: #111827; /* Tailwind gray-900 */
    color: #F3F4F6; /* Tailwind gray-100 */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
}

.mancala-board {
    display: grid;
    grid-template-columns: auto 1fr auto; /* Store | Pits Area | Store */
    /* Columns: Computer Store, Pits Area (takes up remaining space), Player Store */
    /* Let stores take width based on their content/padding, pits area flexible */
    grid-template-rows: 1fr; /* Single row for the main components to align vertically */
    gap: 15px;
    background-color: #1F2937; /* Tailwind gray-800 */
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3), inset 0 0 10px rgba(0,0,0,0.2);
    width: 100%;
    max-width: 800px;
    align-items: stretch; /* Ensures children (stores, pits-area) stretch to fill height */
}

.pits-area {
    grid-column: 2 / 3; /* Explicitly place in the middle column of mancala-board */
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: 1fr 1fr; /* Two rows for pits */
    gap: 10px;
}

.pit { /* Styling for individual small pits */
    background-color: #374151; /* Tailwind gray-700 */
    border: 2px solid #4B5563; /* Tailwind gray-600 */
    border-radius: 50%; /* Circular pits */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6em;
    font-weight: 700;
    color: #D1D5DB; /* Tailwind gray-300 */
    aspect-ratio: 1 / 1; /* Keep pits circular */
    cursor: pointer;
    transition: background-color 0.2s, transform 0.2s, box-shadow 0.2s;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.2), 0 1px 2px rgba(0,0,0,0.1);
}

.store { /* Styling for the large Mancala stores */
    background-color: #374151; /* Tailwind gray-700 */
    border: 2px solid #4B5563; /* Tailwind gray-600 */
    border-radius: 24px; /* Elongated store shape */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    font-weight: 700;
    color: #D1D5DB; /* Tailwind gray-300 */
    padding: 15px 20px; /* Provide some padding, width will be auto based on content + padding */
    cursor: default;
    box-shadow: inset 0 3px 6px rgba(0,0,0,0.25), 0 2px 4px rgba(0,0,0,0.15);
    min-height: 150px; /* Ensure stores have a decent minimum height */
}

.pit:hover:not(.disabled-pit) {
    background-color: #4B5563; /* Tailwind gray-600 */
    transform: scale(1.03);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.3), 0 2px 4px rgba(0,0,0,0.2), 0 0 15px #60A5FA;
}

.store.player-store {
    grid-column: 3 / 4; /* Place in the third column of mancala-board */
    background-color: #3B82F6; /* Tailwind blue-500 */
    color: white;
}

.store.computer-store {
    grid-column: 1 / 2; /* Place in the first column of mancala-board */
    background-color: #8B5CF6; /* Tailwind violet-500 */
    color: white;
}

.player-pit {
    /* Player pits are on the bottom row of pits-area, handled by JS order */
}

.computer-pit {
    /* Computer pits are on the top row of pits-area, handled by JS order */
    cursor: default;
}

.disabled-pit {
    cursor: not-allowed !important;
    opacity: 0.6;
    background-color: #4B5563;
}

.highlight-pit {
    border-color: #60A5FA !important; /* Ensure highlight is visible */
    box-shadow: 0 0 15px #60A5FA, inset 0 0 5px #60A5FA !important;
}

.status-message, .turn-indicator {
    margin-top: 25px;
    font-size: 1.25em;
    color: #93C5FD; /* Tailwind blue-300 */
    text-align: center;
    font-weight: 400;
}

button {
    background-image: linear-gradient(135deg, #8B5CF6, #3B82F6);
    color: white;
    padding: 14px 28px;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 25px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

button:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 16px rgba(0,0,0,0.3);
}

.game-info {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 800px;
    margin-bottom: 20px;
}

.player-label, .computer-label {
    font-size: 1.1em;
    padding: 10px 15px;
    border-radius: 8px;
    font-weight: 700;
    color: white;
}

.player-label {
    background-color: #3B82F6;
}

.computer-label {
    background-color: #8B5CF6;
}

@media (max-width: 700px) {
    .mancala-board {
        padding: 15px;
        gap: 10px;
        grid-template-columns: auto 1fr auto; /* Maintain structure on mobile */
    }
    .pits-area {
        gap: 8px;
    }
    .pit, .store { /* General pit/store styling */
        font-size: 1.3em;
        border-width: 1.5px; /* Thinner border for smaller elements */
    }
    .store { /* Specific store styling for mobile */
        font-size: 1.6em;
        padding: 10px 15px; /* Adjust padding */
        min-height: 120px; /* Adjust min-height */
    }
    button {
        padding: 12px 24px;
        font-size: 1em;
    }
    .status-message, .turn-indicator {
        font-size: 1.1em;
        margin-top: 20px;
    }
    .player-label, .computer-label {
        font-size: 1em;
        padding: 8px 12px;
    }
}

@media (max-width: 480px) {
    .mancala-board {
        padding: 10px;
        gap: 5px;
        grid-template-columns: auto 1fr auto; /* Maintain structure */
    }
    .pits-area {
        gap: 5px;
    }
    .pit {
        font-size: 1em; /* Pits can be smaller */
    }
    .store { /* Stores might need more specific sizing */
        font-size: 1.2em;
        padding: 8px 10px;
        min-height: 100px;
    }
     .status-message, .turn-indicator {
        font-size: 0.9em;
    }
     .player-label, .computer-label {
        font-size: 0.9em;
    }
}