/* Loaded after MudBlazor.min.css so these win over Mud's palette rules. */

/*
 * Games page: fill .content. Tab bar stays at the bottom on mobile;
 * desktop (≥641px) puts tabs on top.
 */
.content:has(.games-page-shell) {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.games-page-shell {
    position: relative;
    flex: 1 1 auto;
    width: 100%;
    height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.games-page-shell .mud-tabs,
.games-page-shell .mud-tabs.mud-tabs-reverse {
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
    display: flex;
    flex-direction: column-reverse;
}

@media (min-width: 641px) {
    .games-page-shell .mud-tabs,
    .games-page-shell .mud-tabs.mud-tabs-reverse {
        flex-direction: column;
    }
}

.games-page-shell .mud-tabs-tabbar {
    flex-shrink: 0;
    position: relative;
    z-index: 0;
}

/*
 * Loaded after MudBlazor. Reinforce cookie-over-tabs stacking without JS:
 * the banner covers the bottom tab bar (no Games padding that lifts tabs up).
 */
#mainLayout.page {
    z-index: 0;
}

.cookie-consent {
    position: fixed !important;
    bottom: 0 !important;
    z-index: 10 !important;
    background: var(--content-background-color) !important;
}

.games-page-shell .mud-tabs-panels {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.games-page-shell .mud-tab-panel:not(.mud-tab-panel-hidden) {
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* GameCreatePage: light surface on the felt so Mud radios keep default theme colors */
.game-create-table-controls {
    background: var(--mud-palette-surface);
    border: 1px solid color-mix(in srgb, var(--mud-palette-text-primary) 12%, transparent);
    border-radius: 1rem;
    padding: 0.65rem 0.9rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

/* Same corner radius for Create game at every breakpoint */
.game-create-button {
    border-radius: var(--mud-default-borderradius) !important;
}

/* Keep create-page felt opaque in light theme (playground softens other tables) */
.page:not(.radzen-dark-theme) .game-create-table-card .game-table-circle {
    background: radial-gradient(ellipse at center, #295842 0%, #183627 55%, #0c1e14 100%);
}
