/* ============================================================
   Kids Kingdom - Hindi Barakhadi
   Each consonant's full barakhadi (12 forms) sits in ONE row,
   each row cycling through a light-colour palette. Tap any
   cell to hear it spoken.
   ============================================================ */

.barakhadi-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 10px 16px 50px;
}

.barakhadi-row {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 8px;
    margin-bottom: 10px;
}

.barakhadi-cell {
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.3rem;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.barakhadi-cell:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 14px rgba(0,0,0,0.15);
}

.barakhadi-cell:active {
    transform: translateY(0) scale(0.97);
}

.barakhadi-cell.playing {
    outline: 3px solid var(--color-dark);
    outline-offset: 2px;
}

/* First cell in each row (the bare consonant) shown slightly larger */
.barakhadi-cell:first-child {
    font-size: 1.5rem;
    font-weight: 800;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 900px) {
    .barakhadi-row {
        grid-template-columns: repeat(6, 1fr);
        gap: 6px;
    }

    .barakhadi-cell {
        font-size: 1.05rem;
        border-radius: 8px;
    }

    .barakhadi-cell:first-child {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .barakhadi-row {
        grid-template-columns: repeat(4, 1fr);
    }

    .barakhadi-cell {
        font-size: 0.9rem;
    }

    .barakhadi-cell:first-child {
        font-size: 1rem;
    }
}
