@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

html, body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Smooth theme transitions */
.mud-appbar, .mud-drawer, .mud-main-content, .mud-card, .mud-paper, .mud-table, .mud-table-container, body {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* ── Hero banner ───────────────────────────────────── */
.fl-hero {
    background: linear-gradient(135deg, #1B4332 0%, #2D6A4F 50%, #40916C 100%);
    color: #fff;
    border-radius: 16px;
    padding: 40px 36px;
    position: relative;
    overflow: hidden;
}

.fl-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
    border-radius: 50%;
}

.mud-theme-dark .fl-hero {
    background: linear-gradient(135deg, #0D1B2A 0%, #1B2D3E 50%, #1B4332 100%);
    border: 1px solid rgba(64, 145, 108, 0.2);
}

/* ── Card system ───────────────────────────────────── */
.fl-card {
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fl-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

.mud-theme-dark .fl-card {
    border-color: rgba(255,255,255,0.06);
}

.mud-theme-dark .fl-card:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

/* Card header — thin accent strip */
.fl-card-header {
    padding: 16px 24px;
    border-radius: 0;
    background: transparent !important;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    overflow: hidden;
}

.fl-card-header .mud-stack-row {
    min-width: 0;
}

.fl-card-header h6, .fl-card-header .mud-typography-h6 {
    font-weight: 700;
    letter-spacing: -0.3px;
    color: inherit !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.fl-card-header .mud-icon-root {
    color: var(--mud-palette-primary) !important;
}

.mud-theme-dark .fl-card-header {
    border-bottom-color: rgba(255,255,255,0.06);
}

/* Accent-top card variant */
.fl-card-accent {
    border-top: 3px solid var(--mud-palette-primary);
}

.fl-card-accent-secondary {
    border-top: 3px solid var(--mud-palette-secondary);
}

.fl-card-accent-gold {
    border-top: 3px solid #B08968;
}

/* ── Table improvements ────────────────────────────── */
.mud-table .mud-table-head .mud-table-cell {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.8px;
    color: var(--mud-palette-text-secondary);
    border-bottom: 2px solid rgba(0,0,0,0.08);
}

.mud-theme-dark .mud-table .mud-table-head .mud-table-cell {
    border-bottom-color: rgba(255,255,255,0.08);
}

/* ── Position badge ────────────────────────────────── */
.fl-pos-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.75rem;
}

.fl-pos-badge.gold { background: linear-gradient(135deg, #B08968, #D4A373); color: #fff; }
.fl-pos-badge.silver { background: linear-gradient(135deg, #8D99AE, #ADB5BD); color: #fff; }
.fl-pos-badge.bronze { background: linear-gradient(135deg, #A0755A, #BC8A5F); color: #fff; }
.fl-pos-badge.default { background: rgba(0,0,0,0.05); color: inherit; }
.mud-theme-dark .fl-pos-badge.default { background: rgba(255,255,255,0.08); }

/* ── Fantasy card (Picker tournament) ──────────────── */
.fl-fantasy-card {
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fl-fantasy-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

.fl-fantasy-card-header {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    background: rgba(45, 106, 79, 0.04);
}

.mud-theme-dark .fl-fantasy-card {
    border-color: rgba(255,255,255,0.06);
}

.mud-theme-dark .fl-fantasy-card:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

.mud-theme-dark .fl-fantasy-card-header {
    background: rgba(64, 145, 108, 0.06);
    border-bottom-color: rgba(255,255,255,0.06);
}

.fl-fantasy-card-owner {
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: -0.2px;
}

.fl-fantasy-card-score {
    font-weight: 800;
    font-size: 1.1rem;
    font-variant-numeric: tabular-nums;
    color: var(--mud-palette-primary);
}

.fl-fantasy-card-footer {
    padding: 12px 20px;
    background: rgba(0,0,0,0.02);
    border-top: 1px solid rgba(0,0,0,0.06);
    display: flex;
    gap: 24px;
    font-size: 0.8rem;
}

.mud-theme-dark .fl-fantasy-card-footer {
    background: rgba(255,255,255,0.02);
    border-top-color: rgba(255,255,255,0.06);
}

.fl-fantasy-row {
    padding: 8px 20px;
    display: grid;
    grid-template-columns: 1fr 50px repeat(4, 44px);
    align-items: center;
    font-size: 0.82rem;
    border-bottom: 1px solid rgba(0,0,0,0.04);
}

.fl-fantasy-row:last-child { border-bottom: none; }

.fl-fantasy-row.excluded {
    opacity: 0.4;
    text-decoration: line-through;
}

.fl-fantasy-row-header {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.68rem;
    letter-spacing: 0.6px;
    color: var(--mud-palette-text-secondary);
    padding: 10px 20px;
    background: rgba(0,0,0,0.02);
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.mud-theme-dark .fl-fantasy-row { border-bottom-color: rgba(255,255,255,0.04); }
.mud-theme-dark .fl-fantasy-row-header { background: rgba(255,255,255,0.02); border-bottom-color: rgba(255,255,255,0.06); }

/* ── Stat pill ─────────────────────────────────────── */
.fl-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.fl-stat-label {
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.5;
}

.fl-stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1;
}

/* ── Leaderboard ticker ───────────────────────────── */
.fl-ticker {
    position: sticky;
    top: 0;
    z-index: 1101;
    background: #0D1B14;
    color: rgba(255,255,255,0.85);
    overflow: hidden;
    height: 28px;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.2px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.mud-theme-dark .fl-ticker {
    background: #080B0E;
}

.fl-ticker-track {
    display: flex;
    width: max-content;
    animation: tickerScroll 150s linear infinite;
}

.fl-ticker-track:hover {
    animation-play-state: paused;
}

.fl-ticker-content {
    display: flex;
    align-items: center;
    height: 28px;
    flex-shrink: 0;
}

.fl-ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    padding: 0 4px;
}

.fl-ticker-pos {
    color: rgba(255,255,255,0.4);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    min-width: 20px;
    text-align: right;
}

.fl-ticker-name {
    font-weight: 600;
    color: #fff;
}

.fl-ticker-score {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    padding: 1px 5px;
    border-radius: 3px;
}

.fl-ticker-score.under { color: #52B788; }
.fl-ticker-score.even { color: rgba(255,255,255,0.7); }
.fl-ticker-score.over { color: #E76F6F; }

.fl-ticker-detail {
    color: rgba(255,255,255,0.35);
    font-size: 0.68rem;
}

.fl-ticker-tournament {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    margin: 0 12px;
    border-radius: 4px;
    background: rgba(82,183,136,0.15);
    color: #52B788;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    white-space: nowrap;
}

.fl-ticker-sep {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    margin: 0 8px;
    flex-shrink: 0;
}

@keyframes tickerScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ── Top navigation shell ─────────────────────────── */
.fl-shell {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.fl-topbar {
    position: sticky;
    top: 0;
    z-index: 1100;
    background: #1B4332;
    color: #fff;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.fl-topbar.has-ticker {
    top: 28px;
}

.mud-theme-dark .fl-topbar {
    background: #111518;
    border-bottom-color: rgba(255,255,255,0.06);
}

.fl-topbar-inner {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 24px;
    height: 52px;
    max-width: 1600px;
    margin: 0 auto;
    width: 100%;
}

.fl-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #fff;
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    white-space: nowrap;
    margin-right: 16px;
}

.fl-brand:hover { opacity: 0.85; }

.fl-primary-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
    min-width: 0;
}

.fl-nav-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s;
}

.fl-nav-item:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

.fl-nav-item.active {
    background: rgba(255,255,255,0.15);
    color: #fff;
}

/* Game nav items — distinct from PGA info links */
.fl-nav-games {
    display: flex;
    align-items: center;
    gap: 4px;
}

.fl-nav-game {
    border: 1px solid rgba(82, 183, 136, 0.25);
    background: rgba(82, 183, 136, 0.06);
}

.fl-nav-game:hover {
    background: rgba(82, 183, 136, 0.18);
    border-color: rgba(82, 183, 136, 0.4);
}

.fl-nav-game.active {
    background: rgba(82, 183, 136, 0.22);
    border-color: rgba(82, 183, 136, 0.5);
    color: #fff;
}

.fl-nav-tournament {
    background: rgba(82, 183, 136, 0.28);
    border-color: rgba(82, 183, 136, 0.5);
    font-weight: 600;
}

.fl-nav-tournament:hover {
    background: rgba(82, 183, 136, 0.38);
}

.fl-nav-tournament.active {
    background: rgba(82, 183, 136, 0.45);
    border-color: rgba(82, 183, 136, 0.7);
}

.fl-nav-divider {
    width: 1px;
    height: 20px;
    background: rgba(255,255,255,0.15);
    margin: 0 8px;
    flex-shrink: 0;
}

.fl-topbar-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
    color: rgba(255,255,255,0.8);
}

/* Hamburger button — hidden on desktop */
.fl-mobile-hamburger {
    display: none !important;
}

/* Disable MudBlazor drawer swipe-to-open on mobile (prevents accidental opens while scrolling) */
.mud-drawer-swipe-area {
    display: none !important;
}

/* Compact mobile drawer header (MudBlazor default min-height is 160px) */
.fl-mobile-drawer .mud-drawer-header {
    min-height: unset !important;
    height: auto !important;
}

/* Ensure mobile drawer overlay is fixed to viewport, not scroll position */
.fl-mobile-drawer {
    position: fixed !important;
}

.fl-mobile-drawer .mud-drawer-content {
    display: flex;
    flex-direction: column;
}

/* Remove extra bottom margin from MudSelect inside the mobile drawer */
.fl-mobile-drawer .mud-input-control {
    margin-bottom: 0 !important;
}
.fl-mobile-drawer .mud-input-helper-text {
    display: none;
}

/* ── Mobile responsive ───────────────────────────── */
@media (max-width: 1024px) {
    /* Nav */
    .fl-primary-nav {
        display: none !important;
    }

    .fl-mobile-hamburger {
        display: inline-flex !important;
    }

    .fl-topbar-inner {
        padding: 0 12px;
    }

    .fl-brand {
        margin-right: 0;
    }

    /* Reduce page padding */
    .mud-container.px-8 {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    /* Hide desktop subnav on mobile — replaced by bottom nav */
    .fl-subnav {
        display: none !important;
    }

    /* Remove subnav top offset from main content */
    .fl-main.has-subnav {
        padding-top: 0 !important;
        margin-top: 0 !important;
    }

    /* Add bottom padding so content isn't hidden behind bottom nav */
    .fl-main {
        padding-bottom: 100px !important;
    }

    /* Show mobile bottom nav */
    .fl-bottomnav {
        display: flex !important;
    }

    /* Hero & action banners */
    .fl-hero {
        padding: 24px 18px;
        border-radius: 12px;
    }

    .fl-action-banner {
        padding: 16px 14px;
        border-radius: 12px;
        flex-direction: column;
        align-items: flex-start;
    }

    /* Stat cards: 2-column on mobile */
    .fl-stat-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .fl-stat-card {
        padding: 12px 14px;
        border-radius: 10px;
    }

    .fl-stat-value {
        font-size: 1.2rem;
    }

    .fl-stat-label {
        font-size: 0.62rem;
    }

    /* Cards */
    .fl-card {
        border-radius: 12px;
    }

    .fl-card-header {
        padding: 12px 14px;
    }

    .fl-game-card {
        padding: 18px 14px;
        border-radius: 12px;
    }

    /* Fantasy cards */
    .fl-fantasy-card {
        border-radius: 12px;
    }

    .fl-fantasy-card-header {
        padding: 12px 14px;
    }

    .fl-fantasy-card-footer {
        padding: 10px 14px;
        gap: 12px;
        flex-wrap: wrap;
    }

    .fl-fantasy-row {
        padding: 6px 10px;
        grid-template-columns: 1fr 40px repeat(4, 36px);
        font-size: 0.75rem;
    }

    .fl-fantasy-row-header {
        padding: 8px 10px;
        font-size: 0.62rem;
    }

    /* ── Tables → card list on mobile ──────────────── */
    .mud-table .mud-table-container {
        overflow-x: visible !important;
    }

    .mud-table .mud-table-container > table,
    .mud-table .mud-table-container > table > tbody {
        display: block !important;
    }

    .mud-table .mud-table-container > table > thead {
        display: none !important;
    }

    /* Each row = card */
    .mud-table .mud-table-container > table > tbody > tr {
        display: flex !important;
        flex-wrap: wrap;
        align-items: center;
        gap: 4px 0;
        padding: 10px 12px;
        border: 1px solid var(--mud-palette-divider);
        border-radius: 10px;
        margin-bottom: 6px;
        background: var(--mud-palette-surface) !important;
    }

    /* Reset td defaults */
    .mud-table .mud-table-container > table > tbody > tr > td {
        border-bottom: none !important;
        padding: 2px 6px !important;
        text-align: left !important;
        background: transparent !important;
    }

    /* ── Card header row: Rank + Name + Action ─────── */
    .mud-table tbody tr td[data-label="Rank"],
    .mud-table tbody tr td[data-label="Pos"] {
        flex: 0 0 auto;
        font-weight: 800;
        font-size: 0.85rem;
        order: -2;
    }

    .mud-table tbody tr td[data-label="Player"],
    .mud-table tbody tr td[data-label="Name"],
    .mud-table tbody tr td[data-label="Team"],
    .mud-table tbody tr td[data-label="Owner"] {
        flex: 1 0 calc(100% - 80px);
        min-width: 0;
        font-weight: 700;
        font-size: 0.88rem;
        order: -1;
    }

    /* Action cells (empty label) stay on header row */
    .mud-table tbody tr td[data-label=""] {
        flex: 0 0 auto;
        order: -1;
        margin-left: auto;
    }

    /* Line break between header and stat rows */
    .mud-table tbody tr::after {
        content: '';
        flex: 0 0 100%;
        height: 1px;
        background: var(--mud-palette-divider);
        order: -1;
        margin: 4px 0 2px;
    }

    /* ── Stat cells: grid below header ─────────────── */
    .mud-table tbody tr td[data-label]:not([data-label="Rank"]):not([data-label="Pos"]):not([data-label="Player"]):not([data-label="Name"]):not([data-label="Team"]):not([data-label="Owner"]):not([data-label=""]) {
        flex: 1 0 calc(25% - 12px);
        min-width: 64px;
        text-align: center !important;
        font-size: 0.78rem;
        padding-top: 4px !important;
    }

    /* Show label above value for stat cells */
    .mud-table tbody tr td[data-label]:not([data-label="Rank"]):not([data-label="Pos"]):not([data-label="Player"]):not([data-label="Name"]):not([data-label="Team"]):not([data-label="Owner"]):not([data-label=""])::before {
        content: attr(data-label);
        display: block;
        font-size: 0.55rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.4px;
        color: var(--mud-palette-text-secondary);
        margin-bottom: 1px;
    }

    /* Hide separator on tables with only primary cells (no stats) */
    .mud-table tbody tr:not(:has(td[data-label]:not([data-label="Rank"]):not([data-label="Pos"]):not([data-label="Player"]):not([data-label="Name"]):not([data-label="Team"]):not([data-label="Owner"]):not([data-label=""])))::after {
        display: none;
    }

    /* Pager stays normal */
    .mud-table .mud-table-pagination-toolbar {
        flex-wrap: wrap;
        justify-content: center;
        gap: 4px;
        min-height: auto;
        padding: 8px 4px;
    }

    /* Global promo */
    .fl-global-promo {
        padding: 14px 14px;
        border-radius: 10px;
        gap: 12px;
    }

    .fl-global-promo-icon {
        width: 40px;
        height: 40px;
        border-radius: 10px;
    }

    /* Onboarding card */
    .fl-onboard-card {
        padding: 16px 14px;
        border-radius: 10px;
    }

    /* Ticker */
    .fl-ticker {
        font-size: 0.65rem;
    }
}

/* ── Secondary sub-nav ────────────────────────────── */
.fl-subnav {
    position: sticky;
    top: 52px;
    z-index: 1099;
    background: var(--mud-palette-surface);
    border-bottom: 1px solid var(--mud-palette-divider);
}

.has-ticker ~ .fl-subnav,
.fl-shell:has(.fl-ticker) .fl-subnav {
    top: 80px;
}

.fl-subnav-inner {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0 24px;
    height: 40px;
    max-width: 1600px;
    margin: 0 auto;
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
}

.fl-subnav-inner::-webkit-scrollbar {
    display: none;
}

.fl-subnav-item {
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--mud-palette-text-secondary);
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.15s, color 0.15s;
}

.fl-subnav-item:hover {
    background: rgba(0,0,0,0.04);
    color: var(--mud-palette-text-primary);
}

.mud-theme-dark .fl-subnav-item:hover {
    background: rgba(255,255,255,0.06);
}

.fl-subnav-item.active {
    background: var(--mud-palette-primary);
    color: #fff;
}

/* ── Fantasy Weekend live indicator ───────────────── */
.fl-subnav-item.fl-subnav-live {
    position: relative;
}

.fl-subnav-item.fl-subnav-live::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4ADE80;
    margin-right: 6px;
    box-shadow: 0 0 4px #4ADE80;
    animation: fl-dot-blink 1.5s ease-in-out infinite;
}

.fl-subnav-item.fl-subnav-live.active {
    background: var(--mud-palette-primary);
    color: #fff;
}

.fl-subnav-item.fl-subnav-live.active::before {
    background: #fff;
    box-shadow: 0 0 4px rgba(255,255,255,0.6);
}

@keyframes fl-dot-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* ── No-league prompt in subnav ────────────────────── */
.fl-subnav-noleague {
    margin-left: auto;
    font-size: 0.72rem;
    color: var(--mud-palette-text-secondary);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
}

.fl-subnav-noleague-link {
    color: #B08968;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.15s;
}

.fl-subnav-noleague-link:hover {
    color: #D4A373;
    text-decoration: underline;
}

/* ── League indicator in subnav ────────────────────── */
.fl-subnav-league {
    margin-left: auto;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.fl-league-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    background: linear-gradient(135deg, var(--mud-palette-primary), var(--mud-palette-tertiary));
    color: #fff;
    white-space: nowrap;
}

.fl-league-badge .mud-icon-root {
    font-size: 15px;
    opacity: 0.85;
}

.fl-league-actions .mud-button-root {
    font-size: 0.72rem;
    padding: 2px 10px;
    min-height: 28px;
    text-transform: none;
    font-weight: 600;
    border-radius: 6px;
}

/* ── Global league badge (gold treatment in subnav) ── */
.fl-league-badge.global {
    background: linear-gradient(135deg, #B08968, #D4A373);
    border: 1px solid rgba(176,137,104,0.3);
}

/* ── Mobile bottom nav ───────────────────────────── */
.fl-bottomnav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1100;
    background: var(--mud-palette-surface);
    border-top: 1px solid var(--mud-palette-divider);
    justify-content: space-around;
    align-items: stretch;
    padding: 0;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    height: 60px;
}

.fl-bottomnav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    flex: 1;
    text-decoration: none;
    color: var(--mud-palette-text-secondary);
    font-size: 0.62rem;
    font-weight: 600;
    padding: 6px 0;
    transition: color 0.15s;
    min-width: 0;
}

.fl-bottomnav-item .mud-icon-root {
    font-size: 1.25rem !important;
}

.fl-bottomnav-item span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
    text-align: center;
    padding: 0 2px;
}

.fl-bottomnav-item.active {
    color: var(--mud-palette-primary);
}

.fl-bottomnav-item.fl-subnav-live .mud-icon-root {
    color: var(--mud-palette-success);
}

.fl-bottomnav-item.fl-subnav-live.active .mud-icon-root {
    color: var(--mud-palette-primary);
}

/* ── Action banner (Zone 1) ───────────────────────── */
.fl-action-banner {
    border-radius: 16px;
    padding: 24px 28px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.fl-action-banner-live {
    background: linear-gradient(135deg, #1B4332 0%, #2D6A4F 50%, #40916C 100%);
    color: #fff;
}

.fl-action-banner-cta {
    background: linear-gradient(135deg, #1B4332 0%, #2D6A4F 50%, #52796F 100%);
    color: #fff;
}

.fl-action-banner-idle {
    background: var(--mud-palette-surface);
    border: 1px solid var(--mud-palette-divider);
    color: var(--mud-palette-text-primary);
}

.mud-theme-dark .fl-action-banner-live {
    background: linear-gradient(135deg, #0D1B2A 0%, #1B2D3E 50%, #1B4332 100%);
    border: 1px solid rgba(64, 145, 108, 0.2);
}

.mud-theme-dark .fl-action-banner-cta {
    background: linear-gradient(135deg, #0D1B2A 0%, #162230 50%, #1B4332 100%);
    border: 1px solid rgba(64, 145, 108, 0.2);
}

.fl-action-banner-content {
    flex: 1;
    min-width: 0;
}

/* ── Stat cards (Zone 2) ──────────────────────────── */
.fl-stat-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
}

.fl-stat-card {
    border: 1px solid var(--mud-palette-divider);
    border-radius: 14px;
    padding: 16px 18px;
    background: var(--mud-palette-surface);
    transition: transform 0.15s;
}

.fl-stat-card:hover {
    transform: translateY(-1px);
}

.fl-stat-label {
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--mud-palette-text-secondary);
    margin-bottom: 4px;
}

.fl-stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: var(--mud-palette-text-primary);
}

.fl-stat-detail {
    font-size: 0.72rem;
    color: var(--mud-palette-text-secondary);
    margin-top: 2px;
}

/* ── Global league promo card ─────────────────────── */
.fl-global-promo {
    border-radius: 14px;
    padding: 20px 24px;
    background: linear-gradient(135deg, rgba(176,137,104,0.08) 0%, rgba(212,163,115,0.12) 100%);
    border: 1px solid rgba(176,137,104,0.2);
    display: flex;
    align-items: center;
    gap: 16px;
}

.fl-global-promo-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #B08968, #D4A373);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #fff;
}

.fl-global-promo-text {
    flex: 1;
    min-width: 0;
}

.mud-theme-dark .fl-global-promo {
    background: linear-gradient(135deg, rgba(176,137,104,0.06) 0%, rgba(212,163,115,0.1) 100%);
    border-color: rgba(212,163,115,0.15);
}

/* ── Highlighted leaderboard row ──────────────────── */
.fl-leaderboard-me {
    background: rgba(45, 106, 79, 0.08) !important;
    font-weight: 700;
}

.mud-theme-dark .fl-leaderboard-me {
    background: rgba(82, 183, 136, 0.1) !important;
}

/* ── Onboarding / no-league card ──────────────────── */
.fl-onboard-card {
    border-radius: 14px;
    padding: 20px 24px;
    background: rgba(45, 106, 79, 0.05);
    border: 1px dashed var(--mud-palette-primary);
    text-align: center;
}

.mud-theme-dark .fl-onboard-card {
    background: rgba(82, 183, 136, 0.05);
}

/* ── Main content area ────────────────────────────── */
.fl-content-row {
    display: flex;
    flex: 1;
    min-height: 0;
}

.fl-main {
    flex: 1;
    min-width: 0;
    padding-top: 16px;
    padding-bottom: 48px;
}

.fl-main.has-subnav {
    padding-top: 8px;
}

/* Override pages that used mt-16 for the drawer layout */
.fl-main .mud-container { margin-top: 0 !important; }

/* ── Ad rails (side banners) ─────────────────────── */
.fl-ad-rail {
    display: none;
    width: 170px;
    flex-shrink: 0;
    padding-top: 24px;
}

.fl-ad-rail-left  { padding-left: 10px; }
.fl-ad-rail-right { padding-right: 10px; }

.fl-ad-sticky {
    position: sticky;
    top: 100px; /* below topbar + subnav */
}

.fl-ad-unit {
    text-align: center;
}

/* Only show side ads on wide screens where there's room */
@media (min-width: 1440px) {
    .fl-ad-rail {
        display: block;
    }
}

/* ── In-content ad banner (horizontal) ───────────── */
.fl-ad-banner {
    padding: 16px 0;
    text-align: center;
}

.fl-ad-banner .fl-ad-unit {
    max-width: 728px;
    margin: 0 auto;
}

/* ── Game mode pill (home page) ────────────────────── */
.fl-game-card {
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 16px;
    padding: 28px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    overflow: hidden;
}

.fl-game-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

.fl-game-card-picker { border-left: 4px solid var(--mud-palette-primary); }
.fl-game-card-keeper { border-left: 4px solid #B08968; }

.mud-theme-dark .fl-game-card { border-color: rgba(255,255,255,0.06); }
.mud-theme-dark .fl-game-card-picker { border-left-color: var(--mud-palette-primary); }
.mud-theme-dark .fl-game-card-keeper { border-left-color: #D4A373; }

/* ── Chat mention dropdown ────────────────────────── */
.fl-mention-dropdown {
    position: absolute;
    bottom: 100%;
    left: 24px;
    right: 24px;
    background: var(--mud-palette-surface);
    border: 1px solid var(--mud-palette-divider);
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    max-height: 240px;
    overflow-y: auto;
    z-index: 10;
    padding: 6px;
    margin-bottom: 4px;
}

.fl-mention-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.1s;
}

.fl-mention-option:hover {
    background: rgba(0,0,0,0.04);
}

.mud-theme-dark .fl-mention-option:hover {
    background: rgba(255,255,255,0.06);
}

/* ── Landing page ─────────────────────────────────── */
.fl-landing {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    color: #1D1D1F;
    overflow-x: hidden;
}

.fl-land-hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    padding: 80px 40px;
    overflow: hidden;
}

.fl-land-hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #0D1B14 0%, #1B4332 30%, #2D6A4F 60%, #1B4332 100%);
    z-index: 0;
}

.fl-land-hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(82,183,136,0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(176,137,104,0.1) 0%, transparent 50%);
}

.fl-land-hero-bg::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(255,255,255,0.03) 0%, transparent 70%);
    border-radius: 50%;
}

.fl-land-hero-content {
    position: relative;
    z-index: 1;
    max-width: 720px;
    margin: 0 auto;
}

.fl-land-headline {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -2px;
    color: #fff;
    margin: 0 0 20px;
    outline: none;
}

.fl-land-sub {
    font-size: 1.15rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.55);
    max-width: 520px;
    margin: 0;
}

.fl-land-btn-primary {
    display: inline-block;
    padding: 14px 32px;
    background: #2D6A4F;
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 12px;
    text-decoration: none;
    transition: background 0.2s, transform 0.1s;
    letter-spacing: 0.3px;
}

.fl-land-btn-primary:hover {
    background: #40916C;
    transform: translateY(-1px);
}

.fl-land-btn-secondary {
    display: inline-block;
    padding: 14px 32px;
    background: transparent;
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 12px;
    text-decoration: none;
    transition: border-color 0.2s, background 0.2s;
}

.fl-land-btn-secondary:hover {
    border-color: rgba(255,255,255,0.4);
    background: rgba(255,255,255,0.05);
}

.fl-land-section {
    padding: 80px 40px;
}

.fl-land-section-alt {
    background: #F3F1EE;
}

.fl-land-container {
    max-width: 1100px;
    margin: 0 auto;
}

.fl-land-section-title {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -1px;
    text-align: center;
    margin: 0 0 8px;
}

.fl-land-section-sub {
    font-size: 1.05rem;
    line-height: 1.6;
    color: #6B7280;
    text-align: center;
    margin: 0 0 48px;
}

.fl-land-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

/* Steps */
.fl-land-step {
    text-align: center;
    padding: 32px 24px;
}

.fl-land-step-num {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, #2D6A4F, #40916C);
    color: #fff;
    font-weight: 800;
    font-size: 1.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.fl-land-step h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 8px;
}

.fl-land-step p {
    font-size: 0.9rem;
    color: #6B7280;
    line-height: 1.6;
    margin: 0;
}

/* Game cards */
.fl-land-game-card {
    background: #fff;
    border-radius: 20px;
    padding: 32px 28px;
    border: 1px solid rgba(0,0,0,0.06);
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
}

.fl-land-game-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.1);
}

.fl-land-game-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.fl-land-game-card h3 {
    font-size: 1.3rem;
    font-weight: 800;
    margin: 0 0 6px;
    letter-spacing: -0.3px;
}

.fl-land-game-tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    background: rgba(45,106,79,0.08);
    color: #2D6A4F;
    margin-bottom: 14px;
}

.fl-land-game-card p {
    font-size: 0.9rem;
    color: #6B7280;
    line-height: 1.65;
    margin: 0 0 16px;
}

.fl-land-game-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.fl-land-game-features li {
    padding: 6px 0;
    font-size: 0.82rem;
    font-weight: 600;
    color: #3D405B;
    display: flex;
    align-items: center;
    gap: 8px;
}

.fl-land-game-features li::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #52B788;
    flex-shrink: 0;
}

/* Prize section */
.fl-land-prize-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(176,137,104,0.1), rgba(176,137,104,0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.fl-land-prize-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.fl-land-prize-item {
    padding: 24px;
    background: #FAFAF8;
    border-radius: 16px;
    border: 1px solid rgba(0,0,0,0.04);
    text-align: center;
}

.fl-land-prize-label {
    display: block;
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 6px;
    color: #1D1D1F;
}

.fl-land-prize-desc {
    font-size: 0.85rem;
    color: #6B7280;
    line-height: 1.5;
}

/* Compete callout */
.fl-land-compete {
    padding: 64px 40px;
    background: linear-gradient(135deg, #0D1B14 0%, #1B3A2A 50%, #1B4332 100%);
}

.fl-land-compete-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px 16px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px;
    min-width: 110px;
}

.fl-land-compete-stat-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: rgba(255,255,255,0.45);
    text-align: center;
}

/* CTA */
.fl-land-cta {
    text-align: center;
    padding: 80px 40px;
    background: linear-gradient(135deg, #1B4332 0%, #2D6A4F 50%, #1B4332 100%);
    color: #fff;
}

.fl-land-cta h2 {
    font-size: 2rem;
    font-weight: 800;
    margin: 0 0 8px;
    letter-spacing: -0.5px;
}

.fl-land-cta p {
    color: rgba(255,255,255,0.55);
    font-size: 1.05rem;
    margin: 0;
}

/* Footer */
.fl-land-footer {
    text-align: center;
    padding: 24px;
    font-size: 0.75rem;
    color: #9e9e9e;
    background: #0D1B14;
}

/* ── Legacy compat ─────────────────────────────────── */
a, .btn-link { color: #2D6A4F; }
.valid.modified:not([type=checkbox]) { outline: 1px solid #40916C; }
.invalid { outline: 1px solid #e50000; }
.validation-message { color: #e50000; }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}
.blazor-error-boundary::after { content: "An error has occurred." }
.darker-border-checkbox.form-check-input { border-color: #929292; }

/* ── Draft system ──────────────────────────────────── */
.fl-draft-bar {
    background: linear-gradient(135deg, #1B4332 0%, #2D6A4F 50%, #40916C 100%);
    color: #fff;
    padding: 20px 28px;
    display: flex;
    align-items: center;
    gap: 16px;
    border-radius: 16px;
    margin-bottom: 16px;
    position: sticky;
    top: 80px;
    z-index: 100;
    overflow: hidden;
}

.fl-draft-bar::before {
    content: '';
    position: absolute;
    top: -50%; right: -20%;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
    border-radius: 50%;
}

.mud-theme-dark .fl-draft-bar {
    background: linear-gradient(135deg, #0D1B2A 0%, #1B2D3E 50%, #1B4332 100%);
    border: 1px solid rgba(64, 145, 108, 0.2);
}

.fl-draft-bar-active {}

.fl-draft-your-turn {
    animation: fl-pulse-glow 1.5s ease-in-out infinite;
    background: linear-gradient(135deg, #1B4332 0%, #2D6A4F 40%, #52B788 100%);
}

.mud-theme-dark .fl-draft-your-turn {
    background: linear-gradient(135deg, #0D1B2A 0%, #1B4332 50%, #2D6A4F 100%);
}

@keyframes fl-pulse-glow {
    0%, 100% { box-shadow: 0 0 12px rgba(82, 183, 136, 0.3); }
    50% { box-shadow: 0 0 30px rgba(82, 183, 136, 0.6), 0 0 60px rgba(82, 183, 136, 0.3); }
}

.fl-draft-player-active {
    border-left: 3px solid var(--mud-palette-primary);
    background: rgba(82, 183, 136, 0.08);
    border-radius: 8px;
}

.fl-draft-golfer-drafted {
    opacity: 0.4;
}

.fl-draft-golfer-drafted td {
    text-decoration: line-through;
}

.fl-draft-chat-box {
    display: flex;
    flex-direction: column;
    height: 400px;
}

.fl-draft-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
}

.fl-draft-chat-msg {
    padding: 4px 8px;
    margin-bottom: 4px;
    border-radius: 8px;
    font-size: 0.85rem;
}

.fl-draft-chat-system {
    color: var(--mud-palette-text-secondary);
    font-style: italic;
    font-size: 0.8rem;
}

.fl-draft-pick-list {
    max-height: 120px;
    overflow-y: auto;
}

.fl-draft-countdown {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    color: var(--mud-palette-primary);
}

.fl-draft-lobby-card {
    text-align: center;
    padding: 40px 20px;
}

.fl-draft-timer-urgent .mud-progress-linear-bar {
    background-color: var(--mud-palette-error) !important;
}

/* ── Your-turn screen border flash ────────────────── */
.fl-draft-screen-border {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    box-shadow: inset 0 0 30px rgba(82, 183, 136, 0.35), inset 0 0 80px rgba(82, 183, 136, 0.1);
    animation: fl-border-flash 0.4s ease-in-out 4;
}

@keyframes fl-border-flash {
    0%, 100% { box-shadow: inset 0 0 30px rgba(82, 183, 136, 0.35), inset 0 0 80px rgba(82, 183, 136, 0.1); }
    50% { box-shadow: inset 0 0 60px rgba(82, 183, 136, 0.8), inset 0 0 120px rgba(82, 183, 136, 0.35); }
}

.fl-draft-screen-border.fl-draft-screen-critical {
    box-shadow: inset 0 0 40px rgba(239, 68, 68, 0.5), inset 0 0 100px rgba(239, 68, 68, 0.15);
    animation: fl-border-critical 0.6s ease-in-out infinite;
}

@keyframes fl-border-critical {
    0%, 100% { box-shadow: inset 0 0 40px rgba(239, 68, 68, 0.5), inset 0 0 100px rgba(239, 68, 68, 0.15); }
    50% { box-shadow: inset 0 0 80px rgba(239, 68, 68, 0.8), inset 0 0 140px rgba(239, 68, 68, 0.3); }
}

/* ── Critical timer pulse (≤10s, your turn) ───────── */
.fl-draft-timer-critical-text {
    animation: fl-timer-pulse 0.6s ease-in-out infinite;
    color: #FCA5A5 !important;
}

@keyframes fl-timer-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.15); opacity: 0.85; }
}

/* ── Keeper Draft — mobile layout ────────────────── */

/* Desktop: sidebar left, table right (default MudGrid handles this) */
/* Mobile: hide the sidebar, show the bottom bar instead */
.fl-draft-bottombar { display: none; }

/* Subtitle extra text hidden on mobile */
.fl-draft-subtitle-extra { display: inline; }

@media (max-width: 1024px) {
    /* Hide the desktop picks sidebar on mobile */
    .fl-draft-sidebar { display: none !important; }

    /* Table takes full width */
    .fl-draft-table { flex-basis: 100% !important; max-width: 100% !important; }

    /* Compact header */
    .fl-draft-title { font-size: 1.3rem !important; margin-bottom: 4px !important; }
    .fl-draft-subtitle-extra { display: none; }

    /* Extra bottom padding so table isn't hidden behind bottom bar + bottom nav */
    .fl-draft-grid { padding-bottom: 80px; }

    /* Show sticky bottom picks bar */
    .fl-draft-bottombar {
        display: block;
        position: fixed;
        bottom: 60px; /* above mobile bottom nav */
        left: 0;
        right: 0;
        z-index: 1050;
        background: var(--mud-palette-surface);
        border-top: 1px solid var(--mud-palette-divider);
        box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
    }

    .mud-theme-dark .fl-draft-bottombar {
        box-shadow: 0 -4px 20px rgba(0,0,0,0.4);
    }
}

.fl-draft-bottombar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px 6px;
    gap: 12px;
}

.fl-draft-bottombar-info {
    flex: 1;
    cursor: pointer;
    min-width: 0;
}

.fl-draft-bottombar-count {
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.2;
}

.fl-draft-bottombar-num {
    color: var(--mud-palette-primary);
    font-size: 1.2rem;
}

.fl-draft-bottombar-label {
    font-size: 0.75rem;
    color: var(--mud-palette-text-secondary);
}

/* Progress bar at the very bottom of the bar */
.fl-draft-bottombar-progress {
    height: 3px;
    background: var(--mud-palette-divider);
}

.fl-draft-bottombar-progress-fill {
    height: 100%;
    background: var(--mud-palette-primary);
    transition: width 0.3s ease;
    border-radius: 0 2px 2px 0;
}

/* Mobile picks drawer */
.fl-draft-drawer {
    max-height: 75vh !important;
    border-radius: 16px 16px 0 0 !important;
}

.fl-draft-drawer .mud-drawer-content {
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.fl-draft-drawer-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.fl-draft-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 16px 8px;
}

.fl-draft-drawer-picks {
    flex: 1;
    overflow-y: auto;
    padding: 0 8px;
}

.fl-draft-drawer-pick {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border-bottom: 1px solid var(--mud-palette-divider);
    font-size: 0.875rem;
}

.fl-draft-drawer-footer {
    padding: 12px 16px;
    padding-bottom: max(12px, env(safe-area-inset-bottom));
    border-top: 1px solid var(--mud-palette-divider);
}

/* Compact draft table rows on mobile */
@media (max-width: 1024px) {
    .fl-draft-player-table .mud-table-toolbar {
        padding: 8px 12px !important;
        min-height: unset !important;
    }

    .fl-draft-player-table .mud-table-container > table > tbody > tr {
        padding: 8px 12px !important;
        gap: 4px;
    }

    .fl-draft-player-table .mud-table-container > table > tbody > tr > td {
        padding: 2px 4px !important;
    }

    /* Make the action button cell full-width on its own row */
    .fl-draft-player-table .mud-table-container > table > tbody > tr > td:last-child {
        flex-basis: 100%;
        display: flex;
        justify-content: flex-end;
        padding-top: 4px !important;
    }

    /* Hide "DataLabel" prefix for action column */
    .fl-draft-player-table .mud-table-container > table > tbody > tr > td:last-child::before {
        display: none !important;
    }
}

/* ── Footer ─────────────────────────────────────── */
.fl-footer {
    flex-shrink: 0;
    background: #1B4332;
    color: rgba(255, 255, 255, 0.7);
    margin-top: auto;
}

.fl-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 32px 24px;
}

.fl-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 32px;
}

.fl-footer-col {
    display: flex;
    flex-direction: column;
}

.fl-footer-link {
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    font-size: 0.82rem;
    padding: 3px 0;
    transition: color 0.15s;
}

.fl-footer-link:hover {
    color: #fff;
}

.fl-footer-bottom {
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
}

@media (max-width: 1024px) {
    .fl-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }

    .fl-footer-inner {
        padding: 32px 20px 20px;
    }

    .fl-footer {
        padding-bottom: 70px; /* Clear mobile bottom nav */
    }
}
