body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.game-container {
    text-align: center;
    max-width: 700px;
}

.game-area {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

h1 {
    color: var(--primary-color);
    margin: 0;
}

.status {
    font-size: 1.2rem;
    margin-bottom: 15px;
    font-weight: bold;
    color: #2c3e50;
    min-height: 1.5em;
}

/* Mancala Board */
.mancala-board {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #6d4c2a;
    padding: 16px;
    border-radius: 40px;
    box-shadow: 0 4px 12px rgba(60, 40, 20, 0.4), inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Stores (mancalas) */
.mancala-store {
    width: 70px;
    min-height: 140px;
    background: #4a3218;
    border-radius: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    box-shadow: inset 0 3px 8px rgba(0, 0, 0, 0.4);
    position: relative;
}

.mancala-store .store-label {
    font-size: 0.7rem;
    color: #c9a96e;
    margin-bottom: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mancala-store .stone-count {
    font-size: 1.6rem;
    font-weight: bold;
    color: #e8d5b0;
}

/* Center pit rows */
.mancala-pits {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pit-row {
    display: flex;
    gap: 8px;
}

/* Individual pits */
.mancala-pit {
    width: 60px;
    height: 60px;
    background: #4a3218;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.4);
    cursor: default;
    transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
    position: relative;
}

.mancala-pit .stone-count {
    font-size: 1.3rem;
    font-weight: bold;
    color: #e8d5b0;
}

.mancala-pit.active {
    cursor: pointer;
    border: 2px solid #c9a96e;
    box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.4), 0 0 6px rgba(201, 169, 110, 0.5);
}

.mancala-pit.active:hover {
    transform: scale(1.08);
    background: #5a3f20;
    box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.4), 0 0 10px rgba(201, 169, 110, 0.7);
}

.mancala-pit.empty .stone-count {
    color: #7a6040;
}

/* Row labels */
.pit-row-label {
    display: flex;
    justify-content: center;
    margin-top: 6px;
    font-size: 0.75rem;
    color: #c9a96e;
    font-weight: 600;
}

/* Game buttons */
.game-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

#exit-game-btn {
    padding: 10px 20px;
    font-size: 1rem;
}

/* Online info */
.online-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
}

.opponent-name {
    font-weight: 600;
    color: var(--text-muted, #666);
}

/* Responsive */
@media (max-width: 500px) {
    .mancala-pit {
        width: 45px;
        height: 45px;
    }

    .mancala-pit .stone-count {
        font-size: 1rem;
    }

    .mancala-store {
        width: 55px;
        min-height: 110px;
    }

    .mancala-store .stone-count {
        font-size: 1.3rem;
    }

    .mancala-board {
        padding: 10px;
        gap: 6px;
        border-radius: 30px;
    }

    .pit-row {
        gap: 6px;
    }
}
