/* ==========================================================================
   NFL Pickems — "Sunday Night" theme. Everything is scoped under .nfl so the
   rest of the app (Ride The Bus, Dots, TraceAce) is untouched.
   ========================================================================== */

.nfl {
    --bg: #0a0f1c;
    --bg-2: #0f172a;
    --card: #141c2f;
    --card-2: #1a2440;
    --line: rgba(255, 255, 255, 0.08);
    --line-strong: rgba(255, 255, 255, 0.16);
    --text: #e8edf7;
    --muted: #8d99b3;
    --turf: #22c55e;
    --turf-dim: rgba(34, 197, 94, 0.14);
    --red: #f43f5e;
    --red-dim: rgba(244, 63, 94, 0.14);
    --gold: #fbbf24;
    --silver: #cbd5e1;
    --bronze: #d97706;
    --accent: #38bdf8;
    --radius: 18px;
    --display: 'Bebas Neue', 'Oswald', Impact, sans-serif;
    --body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

    position: relative;
    min-height: 100vh;
    margin: -1.1rem -1.5rem 0;
    padding: 1.5rem 1rem 7rem;
    color: var(--text);
    font-family: var(--body);
    background:
        radial-gradient(1200px 500px at 50% -200px, rgba(56, 189, 248, 0.18), transparent 70%),
        radial-gradient(800px 400px at 100% 0, rgba(34, 197, 94, 0.10), transparent 60%),
        repeating-linear-gradient(180deg, transparent 0 79px, rgba(255, 255, 255, 0.025) 79px 80px),
        var(--bg);
}

@media (min-width: 768px) {
    .nfl {
        margin-left: -2rem;
        padding: 2rem 2.5rem 7rem;
    }
}

.nfl-wrap {
    max-width: 760px;
    margin: 0 auto;
}

.nfl *, .nfl *::before, .nfl *::after {
    box-sizing: border-box;
}

/* ---------- Header ---------- */

.nfl-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.75rem;
}

.nfl-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    color: var(--turf);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
}

    .nfl-eyebrow::before {
        content: "";
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: var(--turf);
        box-shadow: 0 0 12px var(--turf);
    }

.nfl-title {
    margin: .25rem 0 0;
    font-family: var(--display);
    font-size: clamp(2.6rem, 8vw, 4rem);
    font-weight: 400;
    line-height: .95;
    letter-spacing: .02em;
    color: #fff;
}

.nfl-sub {
    margin: .35rem 0 0;
    color: var(--muted);
    font-size: .95rem;
}

.nfl-back {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    margin-bottom: 1rem;
    color: var(--muted);
    font-size: .85rem;
    font-weight: 600;
    text-decoration: none !important;
    cursor: pointer;
    transition: color .15s;
}

    .nfl-back:hover {
        color: #fff;
    }

/* ---------- Buttons ---------- */

.nfl-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    padding: .6rem 1rem;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    background: var(--card-2);
    color: var(--text);
    font-family: var(--body);
    font-size: .875rem;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    transition: transform .12s, background .15s, border-color .15s, box-shadow .15s;
}

    .nfl-btn:hover {
        background: #22305a;
        border-color: rgba(255, 255, 255, .28);
    }

    .nfl-btn:active {
        transform: scale(.97);
    }

    .nfl-btn:focus-visible {
        outline: 2px solid var(--accent);
        outline-offset: 2px;
    }

.nfl-btn-primary {
    border-color: transparent;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #04210f;
    box-shadow: 0 8px 24px -8px rgba(34, 197, 94, .6);
}

    .nfl-btn-primary:hover {
        background: linear-gradient(135deg, #34d36c, #1cb653);
    }

.nfl-btn-ghost {
    background: transparent;
}

.nfl-btn-gold {
    border-color: rgba(251, 191, 36, .4);
    background: rgba(251, 191, 36, .1);
    color: var(--gold);
}

    .nfl-btn-gold:hover {
        background: rgba(251, 191, 36, .18);
        border-color: rgba(251, 191, 36, .6);
    }

.nfl-btn-lg {
    padding: 1rem 1.6rem;
    border-radius: 14px;
    font-size: 1rem;
}

.nfl-count {
    display: inline-grid;
    place-items: center;
    min-width: 1.5rem;
    height: 1.5rem;
    padding: 0 .4rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .1);
    font-size: .75rem;
}

/* ---------- Team badge ---------- */

.nfl-badge {
    display: inline-grid;
    flex: none;
    place-items: center;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 50%;
    border: 2px solid var(--team-alt);
    background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, .25), transparent 55%), var(--team);
    color: #fff;
    font-family: var(--display);
    font-size: 1.05rem;
    letter-spacing: .04em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .5);
    box-shadow: 0 4px 12px -2px rgba(0, 0, 0, .5);
}

.nfl-badge-lg {
    width: 3.25rem;
    height: 3.25rem;
    font-size: 1.3rem;
}

/* ---------- Week selection ---------- */

.nfl-hero {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    margin-bottom: 1.75rem;
    padding: 1.4rem 1.5rem;
    border: 1px solid rgba(251, 191, 36, .35);
    border-radius: var(--radius);
    background:
        radial-gradient(400px 200px at 0 0, rgba(251, 191, 36, .25), transparent 70%),
        linear-gradient(135deg, #1d1a10, #141c2f 60%);
    color: var(--text);
    text-align: left;
    cursor: pointer;
    transition: transform .15s, box-shadow .2s, border-color .2s;
}

    .nfl-hero:hover {
        transform: translateY(-2px);
        border-color: rgba(251, 191, 36, .7);
        box-shadow: 0 18px 40px -18px rgba(251, 191, 36, .5);
    }

.nfl-hero-icon {
    display: grid;
    place-items: center;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 14px;
    background: rgba(251, 191, 36, .15);
    font-size: 1.6rem;
}

.nfl-hero-title {
    font-family: var(--display);
    font-size: 2rem;
    line-height: 1;
    color: var(--gold);
}

.nfl-hero-sub {
    color: var(--muted);
    font-size: .875rem;
}

.nfl-hero-arrow {
    margin-left: auto;
    color: var(--gold);
    font-size: 1.5rem;
}

.nfl-section-label {
    margin: 0 0 .75rem;
    color: var(--muted);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.nfl-week-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
    gap: .75rem;
}

.nfl-week {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    aspect-ratio: 1 / 1;
    padding: .9rem;
    border: 1px solid var(--line-strong);
    border-radius: 16px;
    background: linear-gradient(160deg, var(--card-2), var(--card));
    color: var(--text);
    text-align: left;
    cursor: pointer;
    overflow: hidden;
    transition: transform .15s, border-color .2s, box-shadow .2s;
}

    .nfl-week:hover {
        transform: translateY(-3px);
        border-color: var(--turf);
        box-shadow: 0 14px 30px -14px rgba(34, 197, 94, .55);
    }

.nfl-week-label {
    color: var(--muted);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.nfl-week-num {
    margin-top: auto;
    font-family: var(--display);
    font-size: 2.75rem;
    line-height: .85;
}

.nfl-week .nfl-week-tag {
    margin-top: .45rem;
}

.nfl-week-tag {
    padding: .15rem .45rem;
    border-radius: 999px;
    font-size: .6rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.nfl-week.is-upcoming .nfl-week-tag {
    background: rgba(255, 255, 255, .07);
    color: var(--muted);
}

.nfl-week.is-current {
    border-color: var(--turf);
    background:
        radial-gradient(160px 120px at 100% 0, rgba(34, 197, 94, .3), transparent 70%),
        linear-gradient(160deg, #143024, var(--card));
    box-shadow: 0 0 0 1px var(--turf), 0 14px 34px -12px rgba(34, 197, 94, .6);
}

    .nfl-week.is-current .nfl-week-label {
        color: var(--turf);
    }

    .nfl-week.is-current .nfl-week-tag {
        background: var(--turf);
        color: #04210f;
    }

.nfl-week.is-done {
    border-color: var(--line);
    background: var(--bg-2);
}

    .nfl-week.is-done .nfl-week-num {
        color: #5b6782;
    }

    .nfl-week.is-done .nfl-week-tag {
        background: rgba(255, 255, 255, .05);
        color: #66728c;
    }

    .nfl-week.is-done:hover {
        border-color: var(--line-strong);
        box-shadow: none;
    }

/* ---------- Leaderboard ---------- */

.nfl-board {
    display: flex;
    flex-direction: column;
    gap: .65rem;
}

.nfl-player {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--card);
    overflow: hidden;
    transition: border-color .2s;
}

    .nfl-player.is-open {
        border-color: var(--line-strong);
    }

.nfl-player-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .9rem;
    padding: .9rem 1rem;
}

.nfl-rank {
    display: grid;
    flex: none;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, .05);
    color: var(--muted);
    font-family: var(--display);
    font-size: 1.25rem;
}

.nfl-rank-1 { background: linear-gradient(135deg, #fde68a, #f59e0b); color: #3a2500; box-shadow: 0 6px 18px -6px rgba(251, 191, 36, .7); }
.nfl-rank-2 { background: linear-gradient(135deg, #f1f5f9, #94a3b8); color: #1e293b; }
.nfl-rank-3 { background: linear-gradient(135deg, #fdba74, #b45309); color: #2d1300; }

.nfl-player-name {
    flex: 1;
    min-width: 6rem;
    font-size: 1.05rem;
    font-weight: 700;
}

.nfl-player-meta {
    display: block;
    color: var(--muted);
    font-size: .75rem;
    font-weight: 500;
}

.nfl-wins {
    text-align: right;
    line-height: 1;
}

.nfl-wins-num {
    font-family: var(--display);
    font-size: 2rem;
    color: #fff;
}

.nfl-wins-label {
    display: block;
    color: var(--muted);
    font-size: .6rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.nfl-player-actions {
    display: flex;
    gap: .5rem;
}

@media (max-width: 560px) {
    .nfl-player-actions {
        width: 100%;
    }

        .nfl-player-actions .nfl-btn {
            flex: 1;
        }
}

.nfl-picks {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    padding: .25rem 1rem 1rem;
    border-top: 1px solid var(--line);
    background: rgba(0, 0, 0, .18);
    animation: nfl-drop .2s ease-out;
}

@keyframes nfl-drop {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: none; }
}

/* A read-only matchup line inside the leaderboard */
.nfl-line {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: .5rem;
    margin-top: .5rem;
    padding: .55rem .65rem;
    border: 1px solid var(--line);
    border-left: 4px solid var(--line-strong);
    border-radius: 12px;
    background: var(--card);
}

    .nfl-line.is-win { border-left-color: var(--turf); background: linear-gradient(90deg, var(--turf-dim), var(--card) 60%); }
    .nfl-line.is-loss { border-left-color: var(--red); background: linear-gradient(90deg, var(--red-dim), var(--card) 60%); }

.nfl-line-team {
    display: flex;
    align-items: center;
    gap: .55rem;
    min-width: 0;
    opacity: .45;
}

    .nfl-line-team.is-home {
        flex-direction: row-reverse;
        text-align: right;
    }

    .nfl-line-team.is-picked {
        opacity: 1;
    }

    .nfl-line-team .nfl-badge {
        width: 2.1rem;
        height: 2.1rem;
        font-size: .9rem;
    }

.nfl-line-name {
    overflow: hidden;
    font-size: .85rem;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nfl-line-team.is-picked .nfl-line-name::after {
    content: "";
    color: var(--turf);
}

.nfl-line-score {
    font-family: var(--display);
    font-size: 1.4rem;
    color: #fff;
}

.nfl-line-mid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .15rem;
    min-width: 3rem;
}

.nfl-result {
    padding: .1rem .45rem;
    border-radius: 6px;
    font-size: .65rem;
    font-weight: 800;
    letter-spacing: .1em;
}

.nfl-result-w { background: var(--turf); color: #04210f; }
.nfl-result-l { background: var(--red); color: #fff; }
.nfl-result-tbd { background: rgba(255, 255, 255, .08); color: var(--muted); }

.nfl-tiebreak {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: .5rem;
    padding: .75rem 1rem;
    border: 1px dashed rgba(251, 191, 36, .4);
    border-radius: 12px;
    background: rgba(251, 191, 36, .06);
    color: var(--gold);
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.nfl-tiebreak-num {
    font-family: var(--display);
    font-size: 1.6rem;
    letter-spacing: .02em;
}

/* ---------- Pick sheet ---------- */

.nfl-progress {
    position: relative;
    height: 6px;
    margin: -.75rem 0 1.5rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .07);
    overflow: hidden;
}

.nfl-progress-bar {
    position: absolute;
    inset: 0 auto 0 0;
    border-radius: inherit;
    background: linear-gradient(90deg, #16a34a, #4ade80);
    box-shadow: 0 0 14px rgba(74, 222, 128, .6);
    transition: width .3s ease;
}

.nfl-game {
    margin-bottom: .9rem;
    padding: .75rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--card);
}

.nfl-game-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 .25rem .6rem;
    color: var(--muted);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.nfl-lock {
    color: var(--red);
}

.nfl-matchup {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: stretch;
    gap: .5rem;
}

.nfl-at {
    align-self: center;
    color: #4b5671;
    font-family: var(--display);
    font-size: 1.1rem;
}

.nfl-team {
    position: relative;
    display: flex;
    align-items: center;
    gap: .7rem;
    width: 100%;
    min-width: 0;
    padding: .8rem;
    border: 2px solid var(--line);
    border-radius: 14px;
    background: var(--card-2);
    color: var(--text);
    font-family: var(--body);
    text-align: left;
    cursor: pointer;
    overflow: hidden;
    transition: transform .12s, border-color .15s, background .2s, opacity .2s, box-shadow .2s;
}

    .nfl-team.is-home {
        flex-direction: row-reverse;
        text-align: right;
    }

    .nfl-team:hover:not(:disabled) {
        border-color: var(--team-alt);
    }

    .nfl-team:active:not(:disabled) {
        transform: scale(.98);
    }

    .nfl-team:focus-visible {
        outline: 2px solid var(--accent);
        outline-offset: 2px;
    }

    .nfl-team:disabled {
        cursor: not-allowed;
    }

    .nfl-team.is-picked {
        border-color: var(--team-alt);
        background:
            radial-gradient(240px 120px at 0 0, rgba(255, 255, 255, .18), transparent 70%),
            var(--team);
        box-shadow: 0 10px 26px -10px var(--team), inset 0 0 0 1px rgba(255, 255, 255, .1);
        color: #fff;
    }

        .nfl-team.is-picked .nfl-badge {
            border-color: #fff;
        }

        .nfl-team.is-picked::after {
            content: "✓";
            position: absolute;
            top: .35rem;
            right: .5rem;
            display: grid;
            place-items: center;
            width: 1.25rem;
            height: 1.25rem;
            border-radius: 50%;
            background: #fff;
            color: #0a0f1c;
            font-size: .7rem;
            font-weight: 900;
        }

        .nfl-team.is-home.is-picked::after {
            right: auto;
            left: .5rem;
        }

    .nfl-team.is-faded {
        opacity: .38;
    }

.nfl-team-text {
    min-width: 0;
}

.nfl-team-name {
    display: block;
    overflow: hidden;
    font-size: .95rem;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nfl-team-side {
    display: block;
    color: var(--muted);
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.nfl-team.is-picked .nfl-team-side {
    color: rgba(255, 255, 255, .75);
}

@media (max-width: 480px) {
    .nfl-team,
    .nfl-team.is-home {
        flex-direction: column;
        text-align: center;
        gap: .4rem;
    }

    .nfl-team-name {
        white-space: normal;
        font-size: .85rem;
    }
}

.nfl-tb-card {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.25rem;
    padding: 1.1rem 1.25rem;
    border: 1px solid rgba(251, 191, 36, .35);
    border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(251, 191, 36, .1), var(--card) 70%);
}

.nfl-tb-title {
    font-family: var(--display);
    font-size: 1.6rem;
    line-height: 1;
    color: var(--gold);
}

.nfl-tb-help {
    margin: .2rem 0 0;
    color: var(--muted);
    font-size: .8rem;
}

.nfl-input {
    width: 7rem;
    padding: .65rem .75rem;
    border: 2px solid var(--line-strong);
    border-radius: 12px;
    background: var(--bg);
    color: #fff;
    font-family: var(--display);
    font-size: 1.75rem;
    letter-spacing: .04em;
    text-align: center;
    transition: border-color .15s, box-shadow .15s;
}

    .nfl-input:focus {
        outline: none;
        border-color: var(--turf);
        box-shadow: 0 0 0 4px var(--turf-dim);
    }

    .nfl-input:disabled {
        opacity: .5;
    }

.nfl-input-wide {
    width: 100%;
    font-family: var(--body);
    /* 16px minimum: iOS Safari zooms into any smaller field on focus and stays zoomed afterwards. */
    font-size: 1rem;
    letter-spacing: 0;
}

/* Sticky save bar */
.nfl-savebar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 20;
    padding: .9rem 1rem calc(.9rem + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line-strong);
    background: rgba(10, 15, 28, .85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

@media (min-width: 768px) {
    .nfl-savebar {
        left: 250px;
    }
}

.nfl-savebar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    max-width: 760px;
    margin: 0 auto;
}

.nfl-savebar-status {
    color: var(--muted);
    font-size: .85rem;
}

    .nfl-savebar-status b {
        color: #fff;
        font-family: var(--display);
        font-size: 1.35rem;
        font-weight: 400;
    }

.nfl-chip {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .3rem .65rem;
    border-radius: 999px;
    background: rgba(251, 191, 36, .12);
    color: var(--gold);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

/* ---------- Admin score entry ---------- */

.nfl-score-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
    padding: .9rem .5rem;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--card-2);
    text-align: center;
}

    .nfl-score-team .nfl-team-name {
        white-space: normal;
    }

.nfl-kickoff-edit {
    margin-top: .6rem;
}

/* ---------- Loading ---------- */

.nfl-skeleton {
    height: 4.25rem;
    margin-bottom: .65rem;
    border-radius: var(--radius);
    background: linear-gradient(90deg, var(--card) 0%, var(--card-2) 50%, var(--card) 100%);
    background-size: 200% 100%;
    animation: nfl-shimmer 1.2s linear infinite;
}

@keyframes nfl-shimmer {
    from { background-position: 200% 0; }
    to { background-position: -200% 0; }
}

.nfl-spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid rgba(255, 255, 255, .25);
    border-top-color: #fff;
    border-radius: 50%;
    animation: nfl-spin .7s linear infinite;
}

@keyframes nfl-spin {
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .nfl *, .nfl *::before, .nfl *::after {
        animation: none !important;
        transition: none !important;
    }
}

.nfl-override {
    color: var(--gold);
}

.nfl-header .nfl-chip {
    margin-top: .75rem;
}

/* ---------- Sign in ---------- */

.nfl-signin-skeleton {
    height: 3rem;
    margin-bottom: 1.25rem;
}

.nfl-signin {
    margin-bottom: 1.5rem;
    padding: 1.1rem 1.25rem;
    border: 1px solid rgba(251, 191, 36, .35);
    border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(251, 191, 36, .1), var(--card) 70%);
}

.nfl-signin-fields {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    margin-top: .9rem;
}

    .nfl-signin-fields .nfl-input {
        flex: 1 1 12rem;
        width: auto;
    }

    .nfl-signin-fields select.nfl-input option {
        background: var(--bg);
        color: var(--text);
    }

.nfl-signin-error {
    margin: .6rem 0 0;
    color: var(--red);
    font-size: .85rem;
    font-weight: 600;
}

.nfl-me {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
    margin-bottom: 1.25rem;
    padding: .6rem .9rem;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--card);
    font-size: .9rem;
}

.nfl-me-label {
    color: var(--muted);
}

.nfl-me-name {
    font-weight: 700;
    color: #fff;
}

.nfl-me-switch {
    margin-left: auto;
    padding: 0;
    border: 0;
    background: none;
    color: var(--accent);
    font-size: .85rem;
    font-weight: 600;
    cursor: pointer;
}

    .nfl-me-switch:hover {
        text-decoration: underline;
    }

.nfl-player.is-me {
    border-color: rgba(34, 197, 94, .45);
    box-shadow: 0 0 0 1px rgba(34, 197, 94, .2);
}


/* ---------- My Picks (week page) ---------- */

.nfl-mine {
    margin-bottom: 2rem;
}

.nfl-mine-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
}

    .nfl-mine-head .nfl-section-label b {
        color: #fff;
    }

.nfl-mine-sub {
    margin: -.4rem 0 1rem;
    font-size: .85rem;
}

.nfl-mine-chip {
    margin: -.4rem 0 1rem;
}

.nfl-save-status {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: 0;
    border: 0;
    background: none;
    color: var(--muted);
    font-size: .8rem;
    font-weight: 600;
    white-space: nowrap;
}

    .nfl-save-status.is-saved {
        color: var(--turf);
    }

    .nfl-save-status.is-error {
        color: var(--red);
        cursor: pointer;
    }

.nfl-game.is-win {
    border-color: rgba(34, 197, 94, .45);
}

.nfl-game.is-loss {
    border-color: rgba(244, 63, 94, .35);
}

.nfl-game-final {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    color: var(--text);
    font-weight: 600;
}

.nfl-standings-label {
    margin-top: .5rem;
}


.nfl-tiebreak-hidden {
    color: var(--muted);
    font-size: .8rem;
    font-weight: 600;
}

/* ---------- Weeks grid: the signed-in player's status ---------- */

.nfl-week-me {
    position: absolute;
    top: .8rem;
    right: .75rem;
    color: var(--muted);
    font-size: .7rem;
    font-weight: 700;
    white-space: nowrap;
}

    .nfl-week-me.is-owed {
        color: var(--gold);
    }

    .nfl-week-me.is-set {
        color: var(--turf);
    }

.nfl-hero-week {
    border-color: rgba(34, 197, 94, .45);
    background:
        radial-gradient(400px 200px at 0 0, rgba(34, 197, 94, .25), transparent 70%),
        linear-gradient(135deg, #10241a, #141c2f 60%);
}

    .nfl-hero-week:hover {
        border-color: rgba(34, 197, 94, .8);
        box-shadow: 0 18px 40px -18px rgba(34, 197, 94, .5);
    }

    .nfl-hero-week .nfl-hero-icon {
        background: rgba(34, 197, 94, .15);
    }

    .nfl-hero-week .nfl-hero-title,
    .nfl-hero-week .nfl-hero-arrow {
        color: var(--turf);
    }


/* ---------- Weeks page placeholders ---------- */

.nfl-hero-skeleton {
    height: 5.6rem;
    margin-bottom: 1.75rem;
}

.nfl-week-skeleton {
    height: auto;
    aspect-ratio: 1 / 1;
    margin-bottom: 0;
    border-radius: 16px;
}


/* ---------- My Picks: collapsible summary bar ---------- */

.nfl-mine-head {
    align-items: center;
    margin-bottom: .9rem;
    padding: .35rem .9rem .35rem .35rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--card);
}

.nfl-mine.is-open .nfl-mine-head {
    border-color: var(--line-strong);
}

.nfl-mine:not(.is-open) {
    margin-bottom: 1.25rem;
}

.nfl-mine-toggle {
    display: flex;
    flex: 1;
    align-items: center;
    gap: .75rem;
    padding: .55rem .6rem;
    border: 0;
    border-radius: 12px;
    background: none;
    color: var(--text);
    text-align: left;
    cursor: pointer;
}

    .nfl-mine-toggle:hover .nfl-mine-chevron {
        color: #fff;
    }

.nfl-mine-title {
    font-family: var(--display);
    font-size: 1.5rem;
    line-height: 1;
    color: #fff;
}

.nfl-mine-count {
    color: var(--muted);
    font-size: .85rem;
}

    .nfl-mine-count b {
        color: #fff;
    }

.nfl-mine-chevron {
    margin-left: auto;
    color: var(--accent);
    font-size: .8rem;
    font-weight: 600;
    white-space: nowrap;
}


.nfl-header-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: .5rem;
}

/* While My Picks is open, its bar (count + save status + Hide) sticks to the top of the screen as you scroll the
   game cards. Sticky stays inside its section, so it scrolls away once you're past your picks. */
.nfl-mine.is-open .nfl-mine-head {
    position: sticky;
    top: calc(.5rem + env(safe-area-inset-top, 0px));
    z-index: 5;
    box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .75);
}
