#land-plot-container {
    display: inline-block;
    background-color: #FFFFFF;
}

#land-plot-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    width: 100%;
    height: 100%;
}

.grid-cell {
    border: 1px solid #6a4113;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.25rem;
    text-align: center;
    box-sizing: border-box;
    position: relative;
    font-size: 0.8rem;
    gap: 0.125rem;
}

.grid-cell.trung-cung {
    background-color: #f3f4f6;
    font-weight: bold;
}

.grid-cell.cung-tot {
    background-color: rgba(16, 185, 129, 0.1);
    color: #047857;
}

.grid-cell.cung-xau {
    background-color: rgba(220, 38, 38, 0.1);
    color: #b91c1c;
}

.cell-direction {
    font-size: 0.75rem;
    color: #4b5563;
}

.cell-image {
    width: 35%;
    height: auto;
    max-width: 2.5rem;
    object-fit: contain;
}

.cell-que {
    font-weight: 600;
    font-size: 0.9rem;
}

.cell-star {
    font-weight: 700;
    font-size: 0.9rem;
}

.cung-tot .cell-star {
    color: #059669;
}

.cung-xau .cell-star {
    color: #dc2626;
}

@media (min-width: 640px) {
    .grid-cell {
        font-size: 1rem;
        padding: 0.5rem;
    }
    .cell-direction {
        font-size: 0.8rem;
    }
    .cell-image {
        max-width: 3rem;
    }
    .cell-que {
         font-size: 1.1rem;
    }
    .cell-star {
        font-size: 1rem;
    }
}
