/* TableauView — responsive card grid for a player's public tableau. */

.tableau-view {
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 8px;
    min-height: 0;
}

.tableau-view-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--game-text-muted, #aaa);
    padding: 4px 8px 8px;
    text-align: center;
}

.tableau-view-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    padding: 4px;
}

.tableau-view-group {
    width: 100%;
    margin-bottom: 8px;
}

.tableau-view-group-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--game-text-muted, #aaa);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 8px;
    margin-bottom: 4px;
}

.tableau-view-group-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.tableau-view-card {
    transition: transform 0.15s, opacity 0.2s, box-shadow 0.2s;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.tableau-view-card:hover {
    transform: translateY(-4px);
}

.tableau-view-card:active {
    transform: translateY(-2px);
}

.tableau-view-card.targetable {
    border-color: var(--target-color, #f84);
    box-shadow: var(--target-glow, 0 0 12px rgba(255, 136, 68, 0.27));
}

.tableau-view-card.dimmed {
    opacity: 0.3;
    cursor: default;
}

.tableau-view-card.dimmed:hover {
    transform: none;
}

.tableau-view-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    color: var(--game-text-muted, #aaa);
    font-size: 0.95rem;
    font-style: italic;
}
