/* ==========================================================================
   Football Junkie
   The football-junkie.com look: dark navy night sky, glass panels, Barlow Condensed
   headings, Inter text and red pill buttons. League colours by default (navy #013369,
   red #D50A0A, silver), or the player's favourite team: the layout sets --brand /
   --accent / --third on <html>. --brand-text and --accent-text are those colours
   lightened enough to read on the dark background.
   ========================================================================== */

:root {
    --brand: #013369;
    --brand-ink: #fff;
    --accent: #D50A0A;
    --accent-ink: #fff;
    --third: #A5ACAF;
    --brand-text: color-mix(in srgb, var(--brand) 35%, #DCE7FF);
    --accent-text: color-mix(in srgb, var(--accent) 72%, #fff);
    --page: #05070D;
    --surface: #0F1730;
    --paper: #121A30;
    --paper-2: #0B1124;
    --glass: rgba(14, 20, 38, .72);
    --ink: #EEF3FF;
    --muted: #A9B4D0;
    --line: rgba(255, 255, 255, .12);
    --win: #16A34A;
    --lose: #DC2626;
    --even: rgba(255, 255, 255, .1);
    --gold: #FFB347;
    --sky: #9EC5FF;
    --radius: 20px;
    --shadow: 0 20px 60px rgba(0, 0, 0, .45);
    --display: "Barlow Condensed", Impact, "Arial Narrow", sans-serif;
    --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

html, body {
    min-height: 100%;
}

body {
    font-family: var(--body);
    color: var(--ink);
    background: radial-gradient(circle at top, #0B1636 0%, var(--page) 45%, #03050A 100%) fixed;
}

a {
    color: var(--sky);
}

a:hover {
    color: #fff;
}

h1, h2, h3, .display {
    font-family: var(--display);
    font-weight: 800;
    letter-spacing: .02em;
}

.text-muted {
    color: var(--muted) !important;
}

/* ---------- top bar ------------------------------------------------------- */

.fj-nav {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: rgba(5, 7, 13, .55);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, .06);
    color: var(--ink);
}

.fj-nav .navbar-brand {
    display: flex;
    align-items: center;
    padding: 0;
}

.fj-nav .brand-logo {
    height: 44px;
    width: auto;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .5));
}

.fj-nav .nav-link {
    color: var(--muted);
    font-weight: 500;
    border-radius: 999px;
    padding: .45rem .9rem !important;
}

.fj-nav .nav-link:hover,
.fj-nav .nav-link.active {
    color: #fff;
}

.fj-nav .nav-link.active {
    background: rgba(255, 255, 255, .08);
}

.fj-nav .navbar-toggler {
    border-color: var(--line);
    color: var(--ink);
}

.avatar-dot {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: inline-grid;
    place-items: center;
    background: var(--accent);
    color: var(--accent-ink);
    font-weight: 800;
    font-size: .8rem;
}

.page {
    position: relative;
    z-index: 1;
    padding: 1.4rem 0 3rem;
}

.flash {
    border: 1px solid var(--line);
    border-left: 5px solid var(--accent);
    border-radius: 14px;
    background: var(--glass);
    backdrop-filter: blur(10px);
    color: var(--ink);
    box-shadow: var(--shadow);
    font-weight: 600;
}

/* ---------- cards & buttons ----------------------------------------------- */

.fj-card {
    background: var(--glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* Buttons: pills, like football-junkie.com. The accent button is the red one with a glow. */
.btn {
    border-radius: 999px;
    font-weight: 600;
}

.btn-brand {
    --bs-btn-bg: color-mix(in srgb, var(--brand) 70%, #1B4FFF);
    --bs-btn-border-color: rgba(255, 255, 255, .15);
    --bs-btn-color: #fff;
    --bs-btn-hover-bg: color-mix(in srgb, var(--brand) 55%, #1B4FFF);
    --bs-btn-hover-border-color: rgba(255, 255, 255, .25);
    --bs-btn-hover-color: #fff;
    --bs-btn-active-bg: color-mix(in srgb, var(--brand) 85%, #1B4FFF);
    --bs-btn-active-color: #fff;
    font-weight: 700;
}

.btn-accent {
    --bs-btn-color: var(--accent-ink);
    --bs-btn-border-color: rgba(255, 255, 255, .15);
    --bs-btn-hover-color: var(--accent-ink);
    --bs-btn-hover-border-color: rgba(255, 255, 255, .25);
    --bs-btn-active-color: var(--accent-ink);
    background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 55%, #FF5A3D));
    box-shadow: 0 10px 30px color-mix(in srgb, var(--accent) 35%, transparent);
    font-weight: 700;
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.btn-accent:hover,
.btn-accent:focus-visible {
    background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 55%, #FF5A3D));
    transform: translateY(-2px);
    box-shadow: 0 16px 36px color-mix(in srgb, var(--accent) 45%, transparent);
    filter: brightness(1.05);
}

.btn-outline-secondary,
.btn-outline-primary,
.btn-light {
    --bs-btn-color: var(--ink);
    --bs-btn-bg: rgba(255, 255, 255, .06);
    --bs-btn-border-color: var(--line);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: rgba(255, 255, 255, .12);
    --bs-btn-hover-border-color: rgba(255, 255, 255, .25);
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: rgba(255, 255, 255, .16);
    --bs-btn-active-border-color: rgba(255, 255, 255, .3);
}

.section-title {
    font-family: var(--display);
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted);
}

.kicker {
    font-family: var(--display);
    text-transform: uppercase;
    letter-spacing: .14em;
    font-size: .78rem;
    font-weight: 700;
    color: var(--sky);
}

/* ---------- team visuals -------------------------------------------------- */

.helmet {
    flex: 0 0 auto;
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .25));
}

.team-chip {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    padding: .12rem .5rem;
    border-radius: 6px;
    background: var(--t1);
    color: var(--t1-ink);
    border-bottom: 3px solid var(--t2);
    font-family: var(--display);
    font-weight: 800;
    font-size: .82rem;
    letter-spacing: .04em;
    line-height: 1.2;
    white-space: nowrap;
}

.team-chip small {
    font-weight: 600;
    opacity: .85;
}

/* ---------- landing --------------------------------------------------------- */

.hero {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    color: #fff;
    padding: 3.2rem 2.6rem;
    border: 1px solid var(--line);
    background:
        radial-gradient(circle at 20% 30%, rgba(1, 51, 105, .55), transparent 30%),
        radial-gradient(circle at 80% 20%, rgba(213, 10, 10, .35), transparent 28%),
        radial-gradient(circle at 50% 80%, rgba(0, 180, 255, .18), transparent 30%),
        repeating-linear-gradient(120deg, rgba(255, 255, 255, .03) 0 2px, transparent 2px 120px),
        linear-gradient(120deg, #081024, #05070D 45%, #12060A);
    box-shadow: var(--shadow);
}

.hero h1 {
    font-size: clamp(2.8rem, 6vw, 5rem);
    line-height: .95;
    text-transform: uppercase;
    text-shadow: 0 3px 0 rgba(0, 0, 0, .25);
}

.hero .yard {
    position: absolute;
    right: 3%;
    bottom: -18px;
    font-family: var(--display);
    font-size: 11rem;
    font-weight: 800;
    color: rgba(255, 255, 255, .1);
    line-height: 1;
    pointer-events: none;
}

.feature {
    padding: 1.4rem;
    height: 100%;
}

.feature .icon {
    font-size: 2rem;
}

/* ---------- dashboard ------------------------------------------------------- */

.pool-card {
    position: relative;
    overflow: hidden;
    display: block;
    color: inherit;
    text-decoration: none;
    transition: transform .15s, box-shadow .15s;
}

.pool-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .55);
    color: inherit;
}

.pool-card .stripe {
    height: 8px;
    background: linear-gradient(90deg, var(--brand), var(--accent));
}

.pool-card .rank {
    font-family: var(--display);
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1;
    color: var(--brand-text);
}

.type-badge {
    display: inline-flex;
    gap: .3rem;
    align-items: center;
    padding: .15rem .55rem;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    background: color-mix(in srgb, var(--brand-text) 16%, transparent);
    color: var(--brand-text);
}

.type-badge.survivor {
    background: color-mix(in srgb, var(--accent) 22%, transparent);
    color: var(--accent-text);
}

.progress-picks {
    height: 8px;
    border-radius: 99px;
    background: var(--even);
    overflow: hidden;
}

.progress-picks span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--brand));
}

.countdown {
    font-variant-numeric: tabular-nums;
    font-weight: 700;
}

.mini-game {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .55rem .2rem;
    border-bottom: 1px dashed var(--line);
    font-size: .9rem;
}

.mini-game:last-child {
    border-bottom: 0;
}

/* ---------- pool banner & tabs ------------------------------------------------ */

.pool-banner {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    padding: 1.4rem 1.6rem 0;
    color: #fff;
    border: 1px solid rgba(158, 197, 255, .25);
    background:
        repeating-linear-gradient(90deg, transparent 0 58px, rgba(255, 255, 255, .04) 58px 60px),
        linear-gradient(135deg, color-mix(in srgb, var(--brand) 70%, transparent), color-mix(in srgb, var(--accent) 30%, transparent)),
        var(--paper-2);
    box-shadow: var(--shadow);
    margin-bottom: 1.2rem;
}

.pool-banner h1 {
    font-size: clamp(1.7rem, 3.4vw, 2.6rem);
    text-transform: uppercase;
    margin: 0;
}

.pool-banner .meta {
    opacity: .85;
    font-size: .9rem;
}

.pool-banner .code {
    font-family: ui-monospace, monospace;
    font-weight: 800;
    letter-spacing: .15em;
    padding: .2rem .55rem;
    border-radius: 6px;
    background: color-mix(in srgb, var(--brand-ink) 14%, transparent);
}

.pool-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: .2rem;
    margin-top: 1.1rem;
}

.pool-tabs a {
    padding: .6rem 1rem;
    border-radius: 10px 10px 0 0;
    color: color-mix(in srgb, var(--brand-ink) 80%, transparent);
    text-decoration: none;
    font-weight: 700;
    font-family: var(--display);
    letter-spacing: .04em;
    text-transform: uppercase;
    font-size: .92rem;
}

.pool-tabs a:hover {
    color: var(--brand-ink);
    background: color-mix(in srgb, var(--brand-ink) 10%, transparent);
}

.pool-tabs a.active {
    background: var(--paper-2);
    color: var(--ink);
}

.week-chips {
    display: flex;
    gap: .3rem;
    overflow-x: auto;
    padding-bottom: .4rem;
    margin-bottom: 1rem;
    scrollbar-width: thin;
}

.week-chips a {
    flex: 0 0 auto;
    min-width: 42px;
    text-align: center;
    padding: .35rem .6rem;
    border-radius: 9px;
    background: var(--surface);
    border: 1px solid var(--line);
    color: var(--ink);
    text-decoration: none;
    font-family: var(--display);
    font-weight: 700;
}

.week-chips a.current {
    border-color: var(--accent);
    box-shadow: inset 0 -3px 0 var(--accent);
}

.week-chips a.active {
    background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 70%, #FF5A3D));
    color: var(--accent-ink);
    border-color: transparent;
}

/* ---------- picks: matchup cards on turf --------------------------------------- */

.turf {
    border-radius: 18px;
    padding: 1rem;
    background:
        repeating-linear-gradient(0deg, transparent 0 46px, rgba(255, 255, 255, .06) 46px 48px),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, .03) 0 30px, transparent 30px 60px),
        linear-gradient(180deg, #14592C, #1C7339);
    box-shadow: inset 0 0 0 4px rgba(255, 255, 255, .12), var(--shadow);
}

.day-heading {
    color: #fff;
    font-family: var(--display);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: .85rem;
    margin: .6rem .3rem .5rem;
    opacity: .9;
}

.matchup {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: stretch;
    margin-bottom: .75rem;
    border-radius: 14px;
    overflow: hidden;
    background: var(--surface);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
}

.side {
    position: relative;
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: .8rem 1rem;
    border: 0;
    background: linear-gradient(90deg, color-mix(in srgb, var(--t1) 24%, var(--paper)), var(--paper));
    color: var(--ink);
    text-align: left;
    cursor: pointer;
    transition: background .2s, box-shadow .2s;
    min-height: 84px;
}

.side.home {
    flex-direction: row-reverse;
    text-align: right;
    background: linear-gradient(270deg, color-mix(in srgb, var(--t1) 24%, var(--paper)), var(--paper));
}

.side:hover:not(:disabled) {
    background: color-mix(in srgb, var(--t1) 38%, var(--paper));
}

.side.picked,
.side.picked:hover:not(:disabled) {
    background: linear-gradient(90deg, var(--t1), color-mix(in srgb, var(--t1) 75%, #000));
    color: var(--t1-ink);
    box-shadow: inset 0 -5px 0 var(--t2);
}

.side.home.picked,
.side.home.picked:hover:not(:disabled) {
    background: linear-gradient(270deg, var(--t1), color-mix(in srgb, var(--t1) 75%, #000));
}

.side:disabled {
    cursor: default;
}

.side.used {
    filter: grayscale(1);
    opacity: .5;
}

.side .name {
    font-family: var(--display);
    font-weight: 800;
    font-size: 1.25rem;
    line-height: 1;
    text-transform: uppercase;
}

.side .city {
    font-size: .78rem;
    opacity: .8;
}

.side .line {
    font-family: var(--display);
    font-weight: 800;
    font-size: 1.05rem;
    margin-left: auto;
    padding: .15rem .5rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, .08);
}

.side.home .line {
    margin-left: 0;
    margin-right: auto;
}

.side.picked .line {
    background: rgba(255, 255, 255, .2);
}

.side .check {
    position: absolute;
    top: 6px;
    right: 8px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: none;
    place-items: center;
    background: #fff;
    color: var(--win);
    font-weight: 900;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .3);
}

.side.home .check {
    right: auto;
    left: 8px;
}

.side.picked .check {
    display: grid;
    animation: pop .3s cubic-bezier(.34, 1.56, .64, 1);
}

.side .score {
    font-family: var(--display);
    font-size: 1.9rem;
    font-weight: 800;
}

@keyframes pop {
    from { transform: scale(.3); }
    to { transform: scale(1); }
}

.middle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: .5rem .9rem;
    min-width: 140px;
    background: var(--paper-2);
    border-left: 1px solid var(--line);
    border-right: 1px solid var(--line);
    text-align: center;
    font-size: .8rem;
    color: var(--muted);
}

.middle .at {
    font-family: var(--display);
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--ink);
}

.middle .when {
    font-weight: 700;
    color: var(--ink);
}

.lock-badge {
    display: inline-block;
    margin-top: .2rem;
    padding: .05rem .45rem;
    border-radius: 99px;
    background: #2A3352;
    color: #fff;
    font-size: .7rem;
    font-weight: 700;
}

.result-badge {
    display: inline-block;
    margin-top: .25rem;
    padding: .05rem .5rem;
    border-radius: 99px;
    font-size: .72rem;
    font-weight: 800;
    color: #fff;
}

.result-badge.Win { background: var(--win); }
.result-badge.Loss { background: var(--lose); }
.result-badge.Push { background: #6B7280; }

.save-bar {
    position: sticky;
    bottom: 0;
    z-index: 20;
    margin-top: 1rem;
    padding: .8rem 1rem;
    border-radius: 14px;
    background: color-mix(in srgb, var(--surface) 92%, transparent);
    backdrop-filter: blur(8px);
    box-shadow: 0 -6px 24px rgba(0, 0, 0, .15);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .8rem;
}

.pick-count {
    font-family: var(--display);
    font-weight: 800;
    font-size: 1.3rem;
}

@media (max-width: 640px) {
    .matchup { grid-template-columns: 1fr 1fr; }
    .middle { grid-column: 1 / -1; grid-row: 1; flex-direction: row; flex-wrap: wrap; justify-content: center; gap: .4rem .6rem; min-width: 0; border: 0; border-bottom: 1px solid var(--line); }
    .side { min-height: 72px; padding: .6rem .7rem; }
    .side .name { font-size: 1rem; }
    .side .city { display: none; }
}

/* ---------- standings & tables ---------------------------------------------------- */

.fj-table {
    --bs-table-bg: transparent;
    margin: 0;
}

.fj-table thead th {
    font-family: var(--display);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
    border-bottom-width: 2px;
    white-space: nowrap;
}

.fj-table td {
    vertical-align: middle;
    border-color: var(--line);
}

.fj-table tr.me td {
    background: color-mix(in srgb, var(--accent) 7%, transparent);
}

.rank-cell {
    font-family: var(--display);
    font-size: 1.3rem;
    font-weight: 800;
    width: 56px;
}

.rank-1 .rank-cell { color: var(--gold); }
.rank-2 .rank-cell { color: #C7D0DE; }
.rank-3 .rank-cell { color: #D08B5B; }

.points-cell {
    font-family: var(--display);
    font-size: 1.35rem;
    font-weight: 800;
}

.heat {
    display: flex;
    gap: 2px;
}

.heat span {
    width: 10px;
    height: 22px;
    border-radius: 2px;
    background: color-mix(in srgb, var(--brand-text) calc(var(--v) * 100%), rgba(255, 255, 255, .08));
}

.paid {
    font-size: .7rem;
    font-weight: 800;
    padding: .05rem .4rem;
    border-radius: 99px;
    background: rgba(22, 163, 74, .2);
    color: #86EFAC;
}

.unpaid {
    font-size: .7rem;
    font-weight: 800;
    padding: .05rem .4rem;
    border-radius: 99px;
    background: rgba(245, 158, 11, .2);
    color: #FCD34D;
}

/* all picks grid */

/* The grid is part of the page: it scrolls with the page, not in a box of its own. The game headings stick just
   under the top bar as you scroll down, and the player column sticks to the left on narrow screens. */
.grid-wrap {
    width: max-content;
    min-width: 100%;
    border-radius: var(--radius);
}

.pick-grid {
    border-collapse: separate;
    border-spacing: 0;
    font-size: .82rem;
    background: var(--surface);
}

.pick-grid th,
.pick-grid td {
    padding: .35rem .4rem;
    border-bottom: 1px solid var(--line);
    text-align: center;
    white-space: nowrap;
}

.pick-grid thead th {
    position: sticky;
    top: var(--nav-h, 62px);
    z-index: 2;
    background: var(--paper-2);
    vertical-align: bottom;
}

.pick-grid .who {
    position: sticky;
    left: 0;
    z-index: 1;
    background: var(--surface);
    text-align: left;
    font-weight: 700;
    min-width: 170px;
    box-shadow: 2px 0 0 var(--line);
}

.pick-grid thead .who {
    z-index: 3;
    background: var(--paper-2);
}

.pick-grid tr.me td {
    background: color-mix(in srgb, var(--accent) 14%, var(--surface));
}

.pick-grid .gh {
    min-width: 64px;
    line-height: 1.15;
}

.pick-grid .gh .score {
    font-weight: 800;
    color: var(--ink);
}

.cell-pick {
    display: inline-block;
    min-width: 46px;
    padding: .18rem .3rem;
    border-radius: 6px;
    font-family: var(--display);
    font-weight: 800;
    background: var(--t1);
    color: var(--t1-ink);
    border-bottom: 3px solid var(--t2);
}

.cell-pick.Win { outline: 3px solid var(--win); outline-offset: 1px; }
.cell-pick.Loss { opacity: .35; text-decoration: line-through; }
.cell-pick.Push { outline: 3px dashed #6B7280; outline-offset: 1px; }

.cell-hidden {
    color: var(--muted);
}

.split {
    height: 5px;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--a) 0 var(--p), var(--h) var(--p) 100%);
    margin-top: 3px;
}

/* survivor */

.survivor-cell {
    display: inline-grid;
    place-items: center;
    width: 52px;
    height: 34px;
    border-radius: 7px;
    font-family: var(--display);
    font-weight: 800;
    font-size: .8rem;
    background: var(--t1);
    color: var(--t1-ink);
    border-bottom: 3px solid var(--t2);
}

.survivor-cell.Loss,
.survivor-cell.Push {
    box-shadow: 0 0 0 3px var(--lose);
}

.survivor-cell.Win {
    box-shadow: 0 0 0 3px var(--win);
}

.survivor-cell.none {
    background: repeating-linear-gradient(45deg, rgba(255, 255, 255, .05) 0 6px, rgba(255, 255, 255, .1) 6px 12px);
    color: var(--muted);
    border: 0;
}

tr.out td {
    opacity: .55;
}

.alive-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--win);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(22, 163, 74, .55); }
    70% { box-shadow: 0 0 0 9px rgba(22, 163, 74, 0); }
    100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); }
}

/* ---------- Score Watch: the jumbotron ---------------------------------------------- */

.jumbotron-fj {
    border-radius: 22px;
    padding: 1.2rem;
    background:
        radial-gradient(ellipse 60% 40% at 50% 0%, rgba(255, 255, 255, .12), transparent 70%),
        linear-gradient(180deg, #0A0F1C, #111A2E);
    color: #E5E7EB;
    box-shadow: var(--shadow), inset 0 0 0 3px #1F2A44;
}

.jumbotron-fj .section-title {
    color: #94A3B8;
}

.watch-grid {
    display: grid;
    align-items: start;
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: .9rem;
}

.tile {
    position: relative;
    border-radius: 14px;
    padding: .22rem;
    background: rgba(255, 255, 255, .08);
    transition: background .4s, box-shadow .4s;
}

.tile.winning { background: var(--win); box-shadow: 0 0 22px rgba(22, 163, 74, .45); }
.tile.losing { background: var(--lose); box-shadow: 0 0 22px rgba(220, 38, 38, .4); }

.tile-inner {
    border-radius: 11px;
    overflow: hidden;
    background: #0B1220;
}

.tile-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: .6rem;
    padding: .5rem .8rem;
    background: linear-gradient(90deg, var(--t1), color-mix(in srgb, var(--t1) 55%, #0B1220));
    color: var(--t1-ink);
    border-left: 6px solid var(--t2);
}

.tile-row + .tile-row {
    border-top: 1px solid rgba(255, 255, 255, .08);
}

.tile-row .nick {
    font-family: var(--display);
    font-weight: 800;
    font-size: 1.15rem;
    text-transform: uppercase;
    line-height: 1;
}

.tile-row .sub {
    font-size: .72rem;
    opacity: .8;
}

.tile-row .pts {
    font-family: var(--display);
    font-variant-numeric: tabular-nums;
    font-size: 2.1rem;
    font-weight: 800;
    min-width: 2.4ch;
    text-align: right;
    text-shadow: 0 2px 0 rgba(0, 0, 0, .35);
}

/* My pick: a yellow tag on the team. Both teams stay at full brightness. */
.tile-row.mine .nick::after {
    content: "MY PICK";
    display: inline-block;
    margin-left: .45rem;
    padding: .12rem .4rem;
    border-radius: 999px;
    background: #FACC15;
    color: #111;
    font-size: .6rem;
    letter-spacing: .08em;
    vertical-align: middle;
    text-shadow: none;
}

.tile-row.mine {
    box-shadow: inset 0 0 0 3px #FACC15;
}


.tile-foot .verdict {
    color: #FACC15;
}

.tile-row .ball {
    display: none;
    margin-left: .3rem;
    font-size: .9rem;
}

.tile-row.has-ball .ball {
    display: inline;
}

.tile-foot {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .45rem .8rem;
    font-size: .78rem;
    color: #CBD5E1;
    background: #0B1220;
}

.tile-foot .situation {
    display: flex;
    flex-direction: column;
}

.tile-foot .status {
    font-family: var(--display);
    font-weight: 800;
    letter-spacing: .06em;
    color: #FDE68A;
    text-transform: uppercase;
}

.tile.final .tile-foot .status { color: #E5E7EB; }

.tile-foot .verdict {
    margin-left: auto;
    font-weight: 800;
}

.tile.winning .verdict { color: #4ADE80; }
.tile.losing .verdict { color: #F87171; }

.tile.redzone .tile-inner {
    box-shadow: inset 0 0 0 2px #EF4444;
}

.tile.flash {
    animation: flashScore 1.4s ease-out;
}

@keyframes flashScore {
    0% { transform: scale(1.04); filter: brightness(1.6); }
    100% { transform: none; filter: none; }
}

.play-feed {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 640px;
    overflow-y: auto;
}

.play-feed li {
    display: flex;
    gap: .6rem;
    padding: .65rem .2rem;
    border-bottom: 1px solid #1F2A44;
    animation: slidein .45s ease-out;
}

.play-feed .tag {
    flex: 0 0 auto;
    padding: .1rem .45rem;
    border-radius: 6px;
    font-family: var(--display);
    font-weight: 800;
    font-size: .72rem;
    background: var(--t1);
    color: var(--t1-ink);
    border-bottom: 2px solid var(--t2);
    height: fit-content;
}

.play-feed .txt {
    font-size: .86rem;
    color: #E2E8F0;
}

.play-feed .when {
    font-size: .72rem;
    color: #94A3B8;
}

.play-feed button {
    border: 0;
    background: transparent;
    color: #94A3B8;
}

@keyframes slidein {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: none; }
}

.leader-row {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .35rem 0;
    border-bottom: 1px dashed #1F2A44;
    font-size: .88rem;
}

.leader-row .bar {
    flex: 1;
    height: 8px;
    border-radius: 4px;
    background: #1F2A44;
    overflow: hidden;
}

.leader-row .bar span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--accent), #FACC15);
    transition: width .6s;
}

.leader-row.me {
    color: #FDE68A;
    font-weight: 700;
}

.speaker {
    border: 0;
    border-radius: 999px;
    padding: .35rem .9rem;
    font-weight: 700;
    background: #1F2A44;
    color: #E5E7EB;
}

.speaker.on {
    background: #FACC15;
    color: #111;
}

.speaker:disabled {
    opacity: .45;
    cursor: not-allowed;
}

.live-dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #EF4444;
    margin-right: .25rem;
    animation: blink 1s infinite;
}

@keyframes blink {
    50% { opacity: .2; }
}

/* ---------- forms ------------------------------------------------------------------ */

.type-option {
    display: block;
    height: 100%;
    padding: 1rem;
    border: 2px solid var(--line);
    border-radius: 14px;
    cursor: pointer;
    background: var(--surface);
    transition: border-color .15s, box-shadow .15s;
}

.type-option .icon {
    font-size: 1.8rem;
}

input:checked + .type-option {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent);
}

.team-picker {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: .45rem;
    padding: .2rem;
}

.team-picker label {
    display: flex;
    align-items: center;
    gap: .45rem;
    padding: .35rem .5rem;
    border-radius: 10px;
    border: 2px solid var(--line);
    cursor: pointer;
    font-size: .85rem;
    font-weight: 600;
    background: var(--surface);
}

.team-picker input:checked + label {
    border-color: var(--t1);
    background: color-mix(in srgb, var(--t1) 30%, var(--paper));
}

.swatch {
    display: inline-block;
    width: 18px;
    height: 18px;
    border-radius: 4px;
    background: var(--c);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15);
    vertical-align: middle;
}

.empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--muted);
}

.empty .big {
    font-size: 3rem;
}

footer.fj-foot {
    position: relative;
    z-index: 1;
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, .06);
    color: var(--muted);
    font-size: .82rem;
}

.tile-row .helmet {
    background: rgba(255, 255, 255, .88);
    border-radius: 10px;
    padding: 3px 4px;
}

/* ---- Confidence pool ------------------------------------------------------------------------- */

.confidence-list {
    list-style: none;
    margin: 0;
    padding: .8rem;
    border-radius: 18px;
    background:
        repeating-linear-gradient(0deg, transparent 0 46px, rgba(255, 255, 255, .06) 46px 48px),
        linear-gradient(180deg, #14592C, #1C7339);
    box-shadow: inset 0 0 0 4px rgba(255, 255, 255, .12), var(--shadow);
}

.conf-row {
    display: grid;
    grid-template-columns: 40px 52px 1fr auto 1fr 44px;
    align-items: stretch;
    gap: 0;
    margin-bottom: .5rem;
    border-radius: 12px;
    overflow: hidden;
    background: var(--surface);
    box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
    touch-action: pan-y;
}

.conf-row:last-child {
    margin-bottom: 0;
}

.conf-row.dragging {
    position: fixed;
    z-index: 1000;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .45);
    transform: rotate(-1deg) scale(1.02);
    pointer-events: none;
}

.conf-placeholder {
    margin-bottom: .5rem;
    border-radius: 12px;
    border: 3px dashed rgba(255, 255, 255, .6);
    background: rgba(255, 255, 255, .08);
}

.conf-handle {
    display: grid;
    place-items: center;
    border: 0;
    background: rgba(255, 255, 255, .06);
    color: var(--muted);
    font-size: 1.4rem;
    cursor: grab;
    touch-action: none;
}

button.conf-handle:hover,
button.conf-handle:focus-visible {
    background: color-mix(in srgb, var(--accent) 25%, var(--paper));
    color: var(--accent-text);
    outline: none;
}

span.conf-handle {
    font-size: .95rem;
    cursor: default;
}

.conf-points {
    display: grid;
    place-items: center;
    font-family: var(--display);
    font-weight: 800;
    font-size: 1.6rem;
    color: #fff;
    background: linear-gradient(180deg, var(--brand), color-mix(in srgb, var(--brand) 70%, #000));
    box-shadow: inset -3px 0 0 var(--accent);
}

.conf-team {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .45rem .7rem;
    border: 0;
    background: linear-gradient(90deg, color-mix(in srgb, var(--t1) 22%, var(--paper)), var(--paper));
    color: var(--ink);
    cursor: pointer;
    min-height: 58px;
    transition: background .2s;
}

.conf-team.home {
    flex-direction: row-reverse;
    background: linear-gradient(270deg, color-mix(in srgb, var(--t1) 22%, var(--paper)), var(--paper));
}

.conf-team:hover:not(:disabled) {
    background: color-mix(in srgb, var(--t1) 38%, var(--paper));
}

.conf-team.picked,
.conf-team.picked:hover:not(:disabled) {
    background: linear-gradient(90deg, var(--t1), color-mix(in srgb, var(--t1) 75%, #000));
    color: var(--t1-ink);
    box-shadow: inset 0 -4px 0 var(--t2);
}

.conf-team.home.picked,
.conf-team.home.picked:hover:not(:disabled) {
    background: linear-gradient(270deg, var(--t1), color-mix(in srgb, var(--t1) 75%, #000));
}

.conf-team:disabled {
    cursor: default;
}

.conf-team .nick {
    font-family: var(--display);
    font-weight: 800;
    font-size: 1.05rem;
    text-transform: uppercase;
}

.conf-score {
    font-family: var(--display);
    font-weight: 800;
    font-size: 1.3rem;
    margin-left: auto;
}

.conf-team.home .conf-score {
    margin-left: 0;
    margin-right: auto;
}

.conf-at {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 .5rem;
    color: var(--muted);
    font-weight: 700;
    background: var(--paper-2);
    min-width: 92px;
    text-align: center;
    line-height: 1.1;
}

.conf-at small {
    font-weight: 600;
    font-size: .7rem;
}

.conf-move {
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, .05);
}

.conf-move button {
    flex: 1;
    border: 0;
    background: transparent;
    color: var(--muted);
    font-size: .7rem;
}

.conf-move button:hover {
    color: var(--accent-text);
    background: rgba(255, 255, 255, .12);
}

.conf-row .result-badge {
    align-self: center;
    justify-self: center;
}

.conf-row.locked {
    opacity: .92;
}

.conf-row.Win {
    box-shadow: 0 0 0 3px var(--win), 0 4px 14px rgba(0, 0, 0, .25);
}

.conf-row.Loss .conf-points {
    background: #6B7280;
    box-shadow: none;
}

.conf-cell b {
    margin-left: .3rem;
    padding: 0 .3rem;
    border-radius: 4px;
    background: rgba(0, 0, 0, .25);
    font-size: .8em;
}

@media (max-width: 640px) {
    .conf-row {
        grid-template-columns: 34px 40px minmax(0, 1fr) minmax(0, 1fr) 34px;
    }

    .conf-team {
        min-width: 0;
        padding: .45rem .5rem;
    }

    .conf-team .nick {
        font-size: .9rem;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .conf-at {
        display: none;
    }

    .conf-team .helmet {
        display: none;
    }

    .conf-points {
        font-size: 1.25rem;
    }
}

@media (max-width: 640px) {
    #confidence-form .save-bar {
        position: static;
        margin-top: .8rem;
    }
}

/* ---- Auto-picks ------------------------------------------------------------------------------ */

.autopick {
    padding: .5rem .8rem;
    border-radius: 12px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.auto-badge {
    display: inline-block;
    padding: .1rem .45rem;
    border-radius: 999px;
    background: rgba(139, 92, 246, .22);
    color: #C4B5FD;
    font-size: .7rem;
    font-weight: 700;
}

.cell-pick.auto {
    position: relative;
}

.cell-pick.auto::after {
    content: "A";
    position: absolute;
    top: -6px;
    right: -6px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #7C3AED;
    color: #fff;
    font-size: 9px;
    line-height: 14px;
    text-align: center;
}

.side .record {
    display: inline-block;
    margin: 0 .2rem;
    padding: 0 .4rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, .08);
    font-family: var(--display);
    font-weight: 700;
    font-size: .8rem;
    letter-spacing: .02em;
}

.side.picked .record {
    background: rgba(255, 255, 255, .22);
}

/* ---- Score Watch: rows view (one line per game, every game on one screen) --------------------- */

.view-switch {
    display: inline-flex;
    gap: 0;
}

.view-switch .speaker:first-child {
    border-radius: 999px 0 0 999px;
}

.view-switch .speaker:last-child {
    border-radius: 0 999px 999px 0;
}

.rows .watch-grid {
    grid-template-columns: 1fr;
    gap: .35rem;
}

.rows .tile {
    border-radius: 10px;
    padding: 3px;
}

.rows .tile-inner {
    display: grid;
    grid-template-columns: 10.5rem minmax(0, 1fr) minmax(0, 1fr) 9rem 6.5rem;
    grid-template-areas: "status away home situation verdict";
    align-items: stretch;
    min-height: 46px;
    border-radius: 8px;
}

.rows .tile-row > div:not(.pts) {
    min-width: 0;
}

.rows .tile-foot {
    display: contents;
}

.rows .tile-foot > span {
    display: flex;
    align-items: center;
    padding: 0 .6rem;
    background: #0B1220;
    font-size: .78rem;
}

.rows .tile-foot .status {
    grid-area: status;
    line-height: 1.1;
    white-space: nowrap;
}

.rows .tile-foot .situation {
    grid-area: situation;
    align-items: flex-start;
    justify-content: center;
    color: #CBD5E1;
}

.rows .tile-foot .verdict {
    grid-area: verdict;
    justify-content: flex-end;
    min-width: 0;
    margin-left: 0;
    text-align: right;
    white-space: normal;
    overflow-wrap: anywhere;
}

.rows .tile-row {
    padding: .25rem .6rem;
    gap: .45rem;
    border-top: 0;
}

.rows .tile-row:first-child {
    grid-area: away;
}

.rows .tile-row:nth-child(2) {
    grid-area: home;
    grid-template-columns: auto 1fr auto;
    border-left: 0;
    border-right: 6px solid var(--t2);
    background: linear-gradient(270deg, var(--t1), color-mix(in srgb, var(--t1) 55%, #0B1220));
}

/* Home side mirrored, so the two scores sit side by side in the middle. */
.rows .tile-row:nth-child(2) .pts { order: -1; text-align: left; }
.rows .tile-row:nth-child(2) > div:not(.pts) { order: 0; text-align: right; }
.rows .tile-row:nth-child(2) .helmet { order: 1; }

.rows .tile-row + .tile-row {
    border-top: 0;
}

.rows .tile-row .helmet {
    width: 30px;
    height: auto;
}

.rows .tile-row .nick {
    font-size: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tile-row .abbr {
    display: none;
    white-space: nowrap;
    font-family: var(--display);
    font-weight: 800;
    font-size: .95rem;
}

.tile-row.mine .abbr::after {
    content: " ★";
    color: #FACC15;
}

.rows .tile-row .sub .city {
    display: none;
}

.rows .tile-row .sub:not(:has(.line)) {
    display: none;
}

.rows .tile-row .pts {
    font-size: 1.55rem;
    min-width: 2ch;
}

.rows .tile.flash {
    animation-name: flashRow;
}

@keyframes flashRow {
    0% { filter: brightness(1.7); }
    100% { filter: none; }
}

/* Full screen: the scoreboard fills the display (a TV in the basement, say). */
#watch:fullscreen {
    overflow: auto;
    border-radius: 0;
    padding: 1.5rem 2rem;
}

#watch:fullscreen .col-xl-8 {
    flex: 0 0 72%;
    max-width: 72%;
}

#watch:fullscreen .col-xl-4 {
    flex: 0 0 28%;
    max-width: 28%;
}

@media (max-width: 760px) {
    .rows .tile-inner {
        grid-template-columns: 4.6rem minmax(0, 1fr) minmax(0, 1fr) 3.6rem;
        grid-template-areas: "status away home verdict" "situation situation situation situation";
    }

    .rows .tile-foot .situation {
        flex-direction: row;
        gap: .5rem;
    }

    .rows .tile-row .helmet {
        display: none;
    }

    .rows .tile-row .nick {
        display: none;
    }

    .rows .tile-row .abbr {
        display: block;
    }

    .rows .tile-row .pts {
        font-size: 1.2rem;
    }

    .rows .tile-foot > span {
        font-size: .62rem;
        padding: 0 .35rem;
    }

    .rows .tile-foot .status,
    .rows .tile-foot .verdict {
        white-space: normal;
        text-align: right;
    }

    .rows .tile-row {
        padding: .2rem .4rem;
        gap: .3rem;
    }

    .rows .tile-row .ball {
        display: none !important;
    }
}

.tile:not([data-pick]) .verdict,
.tile[data-pick=""] .verdict {
    color: #94A3B8;
}

/* Rows are tight: a star on the team, and the "MY PICK: KC -3.5" verdict says the rest. */
.rows .tile-row.mine .nick::after {
    content: " ★";
    margin-left: .2rem;
    padding: 0;
    background: none;
    color: #FACC15;
    font-size: .95rem;
}

/* Players in several pools switch between them from the banner. Its column may shrink below the pool name's width,
   so a long name is cut short on a phone instead of running past the banner. */
.pool-banner > .d-flex > .flex-grow-1 {
    min-width: 0;
    max-width: 100%;
}

.pool-switch select {
    width: auto;
    max-width: 100%;
    text-overflow: ellipsis;
    padding: .2rem 2.6rem .2rem .7rem;
    border: 2px solid color-mix(in srgb, var(--brand-ink) 35%, transparent);
    border-radius: 12px;
    background-color: color-mix(in srgb, var(--brand-ink) 10%, transparent);
    background-position: right .8rem center;
    color: var(--brand-ink);
    font-family: var(--display);
    font-weight: 800;
    font-size: clamp(1.5rem, 3.4vw, 2.6rem);
    text-transform: uppercase;
    letter-spacing: .01em;
    cursor: pointer;
}

.pool-switch select option {
    background: var(--surface);
    color: var(--ink);
    font-size: 1rem;
    text-transform: none;
}

/* ---- Players in scoring and big plays: links to their profile pictures ---------------------------- */

.play-players {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    margin-top: .3rem;
}

.player-link {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .12rem .55rem .12rem .15rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    color: #E5E7EB;
    font-size: .75rem;
    font-weight: 600;
    text-decoration: none;
}

a.player-link:hover {
    background: rgba(255, 255, 255, .18);
    color: #fff;
}

.player-link img {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
    object-position: top;
    background: #1F2A44;
}

span.player-link {
    padding-left: .55rem;
}

.play-feed li.big-play {
    border-left: 3px solid #FACC15;
}

.big-tag {
    display: inline-block;
    margin-right: .35rem;
    padding: 0 .35rem;
    border-radius: 4px;
    background: #FACC15;
    color: #111;
    font-size: .62rem;
    font-weight: 800;
    letter-spacing: .06em;
    vertical-align: 1px;
}

.lines-note {
    margin-bottom: .8rem;
    padding: .5rem .8rem;
    border-radius: 12px;
    background: rgba(245, 158, 11, .16);
    color: #FDE68A;
    font-size: .85rem;
}

.lines-note.set {
    background: rgba(22, 163, 74, .16);
    color: #BBF7D0;
}

/* ---- A pool's rules ---------------------------------------------------------------------------- */

.rulebook {
    display: grid;
    grid-template-columns: 1fr;
    gap: .9rem;
    align-items: stretch;
}

.rulebook ul {
    padding-left: 1.1rem;
}

.rulebook li {
    margin-bottom: .3rem;
    line-height: 1.4;
}

/* ---- Score Watch: follow a game to hear its plays ------------------------------------------------- */

.tile-foot .follow {
    margin-right: .45rem;
    padding: 0 .3rem;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    font-size: .8rem;
    line-height: 1.5;
    cursor: pointer;
}

.tile-foot .follow[aria-pressed="true"] {
    border-color: #FACC15;
    background: rgba(250, 204, 21, .18);
}

.tile-foot .follow:hover {
    background: rgba(255, 255, 255, .2);
}

.rows .tile-foot .status {
    gap: 0;
}

.tile-foot .follow {
    padding: .05rem .5rem;
    font-size: .72rem;
    font-weight: 700;
    color: #E5E7EB;
    white-space: nowrap;
}

.tile-foot .follow[aria-pressed="true"] {
    color: #FDE68A;
}

.rows .tile-foot .follow-label {
    display: none;
}

.follow-hint {
    color: #CBD5E1;
    font-size: .85rem;
}

.follow-chip {
    display: inline-block;
    padding: 0 .45rem;
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    font-size: .75rem;
    font-weight: 700;
    white-space: nowrap;
}

.follow-chip.on {
    border-color: #FACC15;
    color: #FDE68A;
}

/* ---- Claude's suggestions ---------------------------------------------------------------------- */

.claude-box {
    padding: .8rem 1rem;
    border-radius: 14px;
    background: var(--surface);
    box-shadow: var(--shadow);
    border-left: 4px solid #D97757;
}

.claude-summary {
    font-size: .92rem;
}

.claude-tip {
    margin: -.5rem .4rem .8rem;
    padding: .35rem .7rem;
    border-radius: 0 0 10px 10px;
    background: rgba(217, 119, 87, .14);
    color: var(--ink);
    font-size: .8rem;
    border-left: 3px solid #D97757;
}

.side.claude {
    box-shadow: inset 0 0 0 3px #D97757;
}

.claude-tip.top {
    background: rgba(217, 119, 87, .22);
    font-weight: 500;
}


/* ---- motion ----------------------------------------------------------------------------------- */

/* Saved / error messages drop in. */
.flash {
    animation: dropIn .45s cubic-bezier(.34, 1.56, .64, 1);
}

@keyframes dropIn {
    from { transform: translateY(-14px); opacity: 0; }
    to { transform: none; opacity: 1; }
}

/* Confetti-style bursts (fj.burst). */
.burst-layer {
    position: fixed;
    width: 0;
    height: 0;
    pointer-events: none;
    z-index: 2000;
}

.burst-layer span {
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1.35rem;
    animation: burst 1.3s cubic-bezier(.15, .7, .3, 1) forwards;
}

@keyframes burst {
    0% { transform: translate(-50%, -50%) scale(.3); opacity: 1; }
    70% { opacity: 1; }
    100% { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy) + 60px)) rotate(var(--spin)) scale(1); opacity: 0; }
}

/* A score that just changed pops. */
.pts.bump {
    animation: scoreBump .9s cubic-bezier(.34, 1.56, .64, 1);
}

@keyframes scoreBump {
    0% { transform: scale(1); }
    25% { transform: scale(1.45); text-shadow: 0 0 18px rgba(250, 204, 21, .95); }
    100% { transform: scale(1); text-shadow: none; }
}

/* The verdict swaps (WINNING ↔ LOSING) with a flip. */
.verdict.flip {
    animation: flipIn .5s ease-out;
}

@keyframes flipIn {
    from { transform: rotateX(90deg); opacity: 0; }
    to { transform: none; opacity: 1; }
}

/* Touchdown for your team: the tile jumps. */
.tile.td {
    animation: tdJump .8s cubic-bezier(.34, 1.56, .64, 1);
}

@keyframes tdJump {
    0% { transform: none; }
    30% { transform: translateY(-10px) scale(1.03); }
    60% { transform: translateY(2px); }
    100% { transform: none; }
}

/* Leaderboard rows slide to their new place; a player moving up glows briefly. */
.leader-row {
    transition: background-color .6s;
}

.leader-row.up {
    background-color: rgba(34, 197, 94, .18);
}

.leader-row.down {
    background-color: rgba(239, 68, 68, .14);
}

/* Picks counter. */
.count-bump {
    display: inline-block;
    animation: scoreBump .5s cubic-bezier(.34, 1.56, .64, 1);
}

/* AI suggestions slide in one after another. */
.claude-tip {
    animation: tipIn .4s ease-out backwards;
    animation-delay: calc(var(--i, 0) * 60ms);
}

@keyframes tipIn {
    from { transform: translateY(-8px); opacity: 0; }
    to { transform: none; opacity: 1; }
}

#ask-claude:disabled {
    background: linear-gradient(90deg, #212529 0%, #3b4250 50%, #212529 100%);
    background-size: 200% 100%;
    animation: shimmer 1.2s linear infinite;
    opacity: 1;
}

@keyframes shimmer {
    from { background-position: 100% 0; }
    to { background-position: -100% 0; }
}

/* Standings rows rise into place. */
.fj-table tbody tr {
    animation: rowIn .45s ease-out backwards;
}

.fj-table tbody tr:nth-child(2) { animation-delay: 40ms; }
.fj-table tbody tr:nth-child(3) { animation-delay: 80ms; }
.fj-table tbody tr:nth-child(4) { animation-delay: 120ms; }
.fj-table tbody tr:nth-child(5) { animation-delay: 160ms; }
.fj-table tbody tr:nth-child(n+6) { animation-delay: 200ms; }

@keyframes rowIn {
    from { transform: translateY(10px); opacity: 0; }
    to { transform: none; opacity: 1; }
}

/* Respect "reduce motion": no animations, no slides. */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        animation-delay: 0ms !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ---- landing page: a player running across the field and a football flying by ------------------- */

.hero {
    padding-bottom: 7.5rem;
}

.hero > .row {
    position: relative;
    z-index: 1;
}

.field-fun {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

/* The runner's lane: a chalk sideline along the bottom. */
.runner-lane {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 1.1rem;
    height: 3px;
    background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .45) 0 26px, transparent 26px 40px);
}

.runner {
    position: absolute;
    bottom: 1.15rem;
    left: -90px;
    width: 70px;
    animation: runAcross 12s linear infinite;
    animation-delay: 1.2s;
}

@keyframes runAcross {
    0% { left: -90px; }
    42% { left: calc(100% + 20px); }
    100% { left: calc(100% + 20px); }
}

.runner-body {
    display: block;
    overflow: visible;
    transform: rotate(9deg);
    transform-origin: 35px 80px;
    animation: bob .26s ease-in-out infinite alternate;
}

@keyframes bob {
    from { translate: 0 0; }
    to { translate: 0 -4px; }
}

.runner-shadow {
    position: absolute;
    left: 14px;
    right: 10px;
    bottom: -4px;
    height: 7px;
    border-radius: 50%;
    background: rgba(0, 0, 0, .3);
    filter: blur(2px);
}

.runner .limb {
    transform-box: view-box;
    animation: .26s ease-in-out infinite alternate;
}

.runner .leg-front { transform-origin: 34px 54px; animation-name: legSwing; }
.runner .leg-back { transform-origin: 33px 54px; animation-name: legSwing; animation-direction: alternate-reverse; }
.runner .arm-back { transform-origin: 37px 32px; animation-name: armSwing; }
.runner .arm-front { transform-origin: 34px 32px; animation-name: armTuck; }

@keyframes legSwing {
    from { transform: rotate(-38deg); }
    to { transform: rotate(34deg); }
}

@keyframes armSwing {
    from { transform: rotate(40deg); }
    to { transform: rotate(-35deg); }
}

@keyframes armTuck {
    from { transform: rotate(-6deg); }
    to { transform: rotate(4deg); }
}

.runner .jersey { fill: var(--brand); }
.runner .shoulder { fill: rgba(255, 255, 255, .25); }
.runner .number { fill: #fff; font: 800 12px var(--display, sans-serif); }
.runner .pants { fill: #F3F4F6; }
.runner .pants-dark { fill: #C9CDD3; }
.runner .shoe { fill: #111827; }
.runner .skin { fill: #8D5A3B; }
.runner .skin-dark { fill: #6E4329; }
.runner .helmet { fill: var(--accent); }
.runner .helmet-stripe { stroke: #fff; stroke-width: 3; fill: none; }
.runner .facemask { stroke: #D1D5DB; stroke-width: 2.2; fill: none; stroke-linecap: round; }
.runner .ball { fill: #7A3E1D; }
.runner .ball-lace { stroke: #fff; stroke-width: 1.4; stroke-linecap: round; }

/* The pass: across the top from right to left in an arc, spinning, between the runner's trips. */
.fly-ball {
    position: absolute;
    top: 42%;
    left: 105%;
    opacity: 0;
    animation: passAcross 12s linear infinite;
    animation-delay: 1.2s;
}

@keyframes passAcross {
    0%, 50% { left: 105%; opacity: 0; }
    50.1% { opacity: 1; }
    76% { left: -12%; opacity: 1; }
    76.1%, 100% { left: -12%; opacity: 0; }
}

.fly-ball-arc {
    position: relative;
    animation: passArc 12s infinite;
    animation-delay: 1.2s;
}

@keyframes passArc {
    0%, 50% { transform: translateY(0) rotate(-18deg); animation-timing-function: ease-out; }
    63% { transform: translateY(-150px) rotate(0deg); animation-timing-function: ease-in; }
    76%, 100% { transform: translateY(0) rotate(18deg); }
}

.fly-football {
    display: block;
    filter: drop-shadow(0 6px 6px rgba(0, 0, 0, .35));
    animation: spiral .22s linear infinite;
}

/* A spiral: the laces roll round and the ball's outline breathes a little. */
@keyframes spiral {
    0% { transform: scaleY(1); }
    50% { transform: scaleY(.82); }
    100% { transform: scaleY(1); }
}

.fly-football .laces {
    animation: laces .22s linear infinite;
}

@keyframes laces {
    0% { transform: translateY(-5px); opacity: .2; }
    50% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(5px); opacity: .2; }
}

.fly-trail {
    position: absolute;
    left: 40px;
    top: 50%;
    width: 120px;
    height: 6px;
    border-radius: 3px;
    transform: translateY(-50%);
    background: linear-gradient(90deg, rgba(255, 255, 255, .55), transparent);
}

@media (prefers-reduced-motion: reduce) {
    .field-fun {
        display: none;
    }

    .hero {
        padding-bottom: 3.2rem;
    }
}

@media (max-width: 575.98px) {
    .runner { transform: scale(.8); transform-origin: bottom left; }
    .fly-ball { top: 30%; }
}

/* ---- Admin › Logs ----------------------------------------------------------------------------- */

.log-list {
    padding: .4rem 0;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: .8rem;
}

.log-entry {
    display: flex;
    flex-wrap: wrap;
    gap: .2rem .7rem;
    padding: .3rem 1rem;
    border-bottom: 1px solid var(--line);
}

.log-entry.wrn { background: rgba(245, 158, 11, .1); }
.log-entry.err { background: rgba(220, 38, 38, .12); }

.log-time { color: var(--muted); }

.log-level { font-weight: 700; width: 2.2rem; }
.log-entry.inf .log-level { color: var(--sky); }
.log-entry.wrn .log-level { color: #FCD34D; }
.log-entry.err .log-level { color: #FCA5A5; }

.log-message { flex: 1; min-width: 50%; word-break: break-word; }

.log-detail { flex-basis: 100%; }

.log-detail pre {
    margin: .3rem 0 0;
    max-height: 18rem;
    overflow: auto;
    white-space: pre-wrap;
    font-size: .75rem;
}

.log-source {
    color: var(--muted);
    margin-right: .4rem;
}

/* ---- commissioner entering a player's picks ---------------------------------------------------- */

.enter-for {
    padding: .55rem .8rem;
    border-radius: 12px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.enter-for.acting {
    background: rgba(99, 102, 241, .16);
    border-left: 5px solid #4F46E5;
}

.entered-badge {
    background: rgba(99, 102, 241, .25);
    color: #C7D2FE;
}

.lock-badge.commissioner-unlock {
    background: #4F46E5;
}

/* The ✍️ / 🔓 mark sits in the row's corner, so it doesn't take a column of its own. */
.conf-row {
    position: relative;
}

.conf-flag {
    position: absolute;
    top: 3px;
    right: 48px;
    font-size: .8rem;
    line-height: 1;
    cursor: help;
    z-index: 2;
}

/* ---- helmet pictures ---------------------------------------------------------------------------- */

img.helmet-photo {
    object-fit: contain;
    vertical-align: middle;
}

/* The pictures face right; the home side of a matchup is mirrored so the helmets face each other. */
img.helmet-photo.flip {
    transform: scaleX(-1);
}

/* Picks the commissioner can see but players can't yet (the game hasn't locked). */
.cell-pick.early,
.survivor-cell.early {
    outline: 2px dashed #6366F1;
    outline-offset: 1px;
    opacity: .85;
}

.cell-pick.early.sample {
    display: inline;
    min-width: 0;
    padding: 0 .3rem;
    background: transparent;
    color: inherit;
    border-bottom: 0;
}

/* ---- pick history ------------------------------------------------------------------------------- */

.history-list {
    overflow: hidden;
}

.history-list tr.auto td {
    color: #6B7280;
}

.history-list tr.other td:last-child {
    color: #A5B4FC;
    font-weight: 600;
}

/* ---- licences ----------------------------------------------------------------------------------- */

.licence-box {
    padding: .9rem 1rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, .04);
    border: 1px solid var(--line);
}

.licence-price strong {
    font-family: var(--display);
    font-size: 1.6rem;
}

.licence-meter {
    height: 12px;
    border-radius: 6px;
    background: rgba(255, 255, 255, .1);
    overflow: hidden;
}

.licence-meter span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--win), #FACC15);
}

.licence-meter.full span {
    background: var(--lose);
}

#paypal-buttons.disabled {
    opacity: .45;
    pointer-events: none;
}

/* ---- football-junkie.com background and Bootstrap's dark mode ------------------------------------ */

/* The drifting grid and the two glowing orbs behind every page. */
.bg-grid {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(circle at center, black 35%, transparent 90%);
    pointer-events: none;
    z-index: 0;
}

.bg-orb {
    position: fixed;
    width: 45vw;
    height: 45vw;
    border-radius: 50%;
    filter: blur(80px);
    opacity: .22;
    pointer-events: none;
    z-index: 0;
}

.bg-orb.orb-a { top: -10vw; left: -10vw; background: #1B4FFF; animation: fj-orb 16s ease-in-out infinite; }
.bg-orb.orb-b { bottom: -15vw; right: -10vw; background: #D50A0A; animation: fj-orb 20s ease-in-out infinite reverse; }

@keyframes fj-orb {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(4%, -6%) scale(1.08); }
}

@media (prefers-reduced-motion: reduce) {
    .bg-orb { animation: none; }
}

[data-bs-theme=dark] {
    --bs-body-bg: var(--page);
    --bs-body-color: var(--ink);
    --bs-emphasis-color: #fff;
    --bs-secondary-color: var(--muted);
    --bs-secondary-bg: var(--paper);
    --bs-tertiary-bg: var(--paper-2);
    --bs-border-color: var(--line);
    --bs-border-color-translucent: var(--line);
    --bs-link-color: var(--sky);
    --bs-link-color-rgb: 158, 197, 255;
    --bs-link-hover-color: #fff;
    --bs-link-hover-color-rgb: 255, 255, 255;
    --bs-heading-color: #fff;
    --bs-focus-ring-color: rgba(158, 197, 255, .3);
}

.table {
    --bs-table-bg: transparent;
    --bs-table-color: var(--ink);
    --bs-table-border-color: var(--line);
    --bs-table-striped-bg: rgba(255, 255, 255, .03);
    --bs-table-hover-bg: rgba(255, 255, 255, .05);
}

.form-control,
.form-select {
    background-color: rgba(255, 255, 255, .06);
    border-color: var(--line);
    color: var(--ink);
}

.form-control:focus,
.form-select:focus {
    background-color: rgba(255, 255, 255, .09);
    border-color: rgba(158, 197, 255, .6);
    color: #fff;
}

.form-select option {
    background: var(--surface);
    color: var(--ink);
}

.dropdown-menu {
    --bs-dropdown-bg: var(--surface);
    --bs-dropdown-border-color: var(--line);
    --bs-dropdown-link-color: var(--ink);
    --bs-dropdown-link-hover-bg: rgba(255, 255, 255, .08);
    --bs-dropdown-link-hover-color: #fff;
    border-radius: 14px;
    box-shadow: var(--shadow);
}

.modal-content {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.list-group {
    --bs-list-group-bg: transparent;
    --bs-list-group-color: var(--ink);
    --bs-list-group-border-color: var(--line);
    --bs-list-group-action-hover-bg: rgba(255, 255, 255, .06);
    --bs-list-group-action-hover-color: #fff;
}

.bg-light {
    background-color: rgba(255, 255, 255, .06) !important;
    color: var(--ink) !important;
}

.text-dark {
    color: var(--ink) !important;
}

.alert-light {
    --bs-alert-bg: rgba(255, 255, 255, .06);
    --bs-alert-border-color: var(--line);
    --bs-alert-color: var(--ink);
}

h1, h2, h3, h4, h5, h6 {
    color: #fff;
}

/* Bootstrap's blue becomes the football-junkie.com red. */
.nav-pills {
    --bs-nav-pills-border-radius: 999px;
    --bs-nav-pills-link-active-bg: var(--accent);
    --bs-nav-pills-link-active-color: var(--accent-ink);
}

.nav-pills .nav-link.active {
    background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 55%, #FF5A3D));
}

.form-check-input:checked {
    background-color: var(--accent);
    border-color: var(--accent);
}

.form-check-input:focus,
.btn:focus-visible {
    box-shadow: 0 0 0 .25rem rgba(158, 197, 255, .3);
}

.form-range {
    accent-color: var(--accent);
}

/* ---- Light theme (<html data-bs-theme="light">): the same look on a light background ------------- */

[data-bs-theme=light] {
    --brand-text: var(--brand);
    --accent-text: var(--accent);
    --page: #EEF1F7;
    --surface: #fff;
    --paper: #fff;
    --paper-2: #F4F6FA;
    --glass: rgba(255, 255, 255, .82);
    --ink: #0B1220;
    --muted: #5B6474;
    --line: #DDE2EA;
    --even: #E5E7EB;
    --sky: #0B4FBF;
    --shadow: 0 1px 2px rgba(11, 18, 32, .06), 0 14px 40px rgba(11, 18, 32, .10);
    --bs-body-bg: var(--page);
    --bs-body-color: var(--ink);
    --bs-heading-color: var(--ink);
    --bs-border-color: var(--line);
    --bs-link-color: var(--sky);
    --bs-link-hover-color: #013369;
}

[data-bs-theme=light] body {
    background: radial-gradient(circle at top, #DCE6FA 0%, var(--page) 45%, #E9ECF2 100%) fixed;
}

[data-bs-theme=light] a:hover { color: #013369; }

[data-bs-theme=light] h1,
[data-bs-theme=light] h2,
[data-bs-theme=light] h3,
[data-bs-theme=light] h4,
[data-bs-theme=light] h5,
[data-bs-theme=light] h6 {
    color: var(--ink);
}

[data-bs-theme=light] .bg-orb { opacity: .1; }
[data-bs-theme=light] .bg-grid { background-image: linear-gradient(rgba(11, 18, 32, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(11, 18, 32, .04) 1px, transparent 1px); }

[data-bs-theme=light] .fj-nav {
    background: rgba(255, 255, 255, .72);
    border-bottom-color: var(--line);
}

[data-bs-theme=light] .fj-nav .nav-link:hover,
[data-bs-theme=light] .fj-nav .nav-link.active {
    color: var(--ink);
}

[data-bs-theme=light] .fj-nav .nav-link.active {
    background: rgba(11, 18, 32, .06);
}

/* The pool banner and the home page banner stay dark, like football-junkie.com's highlight panels. */
[data-bs-theme=light] .pool-banner {
    background:
        repeating-linear-gradient(90deg, transparent 0 58px, rgba(255, 255, 255, .04) 58px 60px),
        linear-gradient(135deg, color-mix(in srgb, var(--brand) 70%, transparent), color-mix(in srgb, var(--accent) 30%, transparent)),
        #0B1124;
}

[data-bs-theme=light] .pool-banner h1,
[data-bs-theme=light] .hero h1,
[data-bs-theme=light] .hero h2,
[data-bs-theme=light] .hero h3 {
    color: #fff;
}

[data-bs-theme=light] .pool-tabs a.active {
    background: var(--page);
}

[data-bs-theme=light] .form-control,
[data-bs-theme=light] .form-select {
    background-color: #fff;
}

[data-bs-theme=light] .btn-outline-secondary,
[data-bs-theme=light] .btn-outline-primary,
[data-bs-theme=light] .btn-light {
    --bs-btn-bg: #fff;
    --bs-btn-hover-color: var(--ink);
    --bs-btn-hover-bg: #F1F4F9;
    --bs-btn-hover-border-color: #C9D1DD;
    --bs-btn-active-color: var(--ink);
    --bs-btn-active-bg: #E8EDF5;
}

[data-bs-theme=light] .side .line { background: rgba(0, 0, 0, .07); }
[data-bs-theme=light] .paid { background: #DCFCE7; color: #166534; }
[data-bs-theme=light] .unpaid { background: #FEF3C7; color: #92400E; }
[data-bs-theme=light] .tile { background: #F8FAFC; }
[data-bs-theme=light] .heat span { background: color-mix(in srgb, var(--brand) calc(var(--v) * 100%), #E5E7EB); }
[data-bs-theme=light] .rank-1 .rank-cell { color: #B8860B; }
[data-bs-theme=light] .rank-2 .rank-cell { color: #7C8591; }
[data-bs-theme=light] .rank-3 .rank-cell { color: #A0522D; }
[data-bs-theme=light] .lines-note { background: #FEF3C7; color: #78350F; }
[data-bs-theme=light] .lines-note.set { background: #DCFCE7; color: #14532D; }
[data-bs-theme=light] .auto-badge { background: #EDE9FE; color: #5B21B6; }
[data-bs-theme=light] .entered-badge { background: #E0E7FF; color: #3730A3; }
[data-bs-theme=light] .conf-handle,
[data-bs-theme=light] .conf-move { background: #F3F4F6; }
[data-bs-theme=light] .licence-meter { background: #E5E7EB; }
[data-bs-theme=light] .survivor-cell.none { background: repeating-linear-gradient(45deg, #F3F4F6 0 6px, #E5E7EB 6px 12px); }
[data-bs-theme=light] .pool-banner .form-select { background-color: color-mix(in srgb, var(--brand-ink) 10%, transparent); }
[data-bs-theme=light] .hero .fj-card { background: #fff; }

/* The light/dark switch in the top bar's menu. */
.scheme-switch {
    display: flex;
    gap: 2px;
    padding: 2px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(127, 127, 127, .08);
}

.scheme-switch button {
    flex: 1;
    border: 0;
    border-radius: 999px;
    padding: .25rem .6rem;
    background: transparent;
    color: var(--muted);
    font-size: .8rem;
    font-weight: 600;
    white-space: nowrap;
}

.scheme-switch button:hover {
    color: var(--ink);
}

.scheme-switch button.active {
    background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 55%, #FF5A3D));
    color: var(--accent-ink);
}

/* ---------- Bootstrap dialogs (fj.confirm / fj.alert / fj.prompt) -----------------------------------
   Football Junkie styled modals replace the browser's plain confirm(), alert() and prompt() boxes.
   The logo and text are filled in by site.js.                                                          */

.fj-dialog-modal .modal-content {
    border: 1px solid var(--line);
    border-top: 5px solid var(--accent);
    border-radius: var(--radius);
    background: var(--paper);
    color: var(--ink);
    box-shadow: var(--shadow);
}

.fj-dialog-logo {
    width: 34px;
    height: 34px;
    object-fit: contain;
    flex: 0 0 auto;
}

.fj-dialog-head {
    display: flex;
    align-items: center;
    gap: .75rem;
    min-width: 0;
}

.fj-dialog-icon {
    font-size: 1.6rem;
    line-height: 1;
}

.fj-dialog-title {
    margin: 0;
    font-family: var(--display);
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.fj-dialog-message {
    margin: 0;
    color: var(--muted);
    white-space: pre-line;
}

.fj-dialog-input {
    margin-top: .85rem;
}

.fj-dialog-buttons {
    gap: .5rem;
}

.fj-dialog-buttons .btn {
    min-width: 6.5rem;
}

.fj-dialog-modal .btn-cancel {
    border: 1px solid var(--line);
    color: var(--ink);
    background: transparent;
}

.fj-dialog-modal .btn-cancel:hover,
.fj-dialog-modal .btn-cancel:focus-visible {
    background: var(--even);
    color: var(--ink);
}

/* ---------- the logo in larger places ----------------------------------------------------------
   Every one has a fixed size, so its space is held before the image loads and nothing shifts.      */

.auth-logo {
    display: block;
    width: 96px;
    height: 96px;
    margin: 0 auto 12px;
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .35));
}

@media (max-width: 575.98px) {
    .auth-logo {
        width: 72px;
        height: 72px;
    }
}

.empty .big-logo {
    display: block;
    width: 120px;
    height: 120px;
    margin: 0 auto 12px;
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .35));
}

.empty .big-logo.big-logo-lg {
    width: 220px;
    height: 220px;
}

/* A faint watermark behind the landing page hero: out of the layout, never clickable. */
.hero .hero-logo {
    position: absolute;
    left: -70px;
    bottom: -90px;
    width: 460px;
    height: 460px;
    opacity: .1;
    pointer-events: none;
    user-select: none;
    z-index: 0;
}

@media (max-width: 767.98px) {
    .hero .hero-logo {
        width: 320px;
        height: 320px;
        left: auto;
        right: -90px;
        bottom: -70px;
        opacity: .08;
    }
}

.fj-foot .foot-logo {
    width: 22px;
    height: 22px;
    margin-right: 6px;
    vertical-align: -6px;
}

/* ---------- the FJ character images ----------------------------------------------------------- */

.watch-badge {
    width: 56px;
    height: 56px;
    margin: -8px 0;
    flex: none;
}

.invite-art {
    display: block;
    width: 160px;
    height: 160px;
    margin: -8px auto 8px;
}

@media (max-width: 575.98px) {
    .watch-badge {
        width: 44px;
        height: 44px;
    }

    .invite-art {
        width: 120px;
        height: 120px;
    }
}

/* "You're all set": a Touchdown! pop-up that floats over the page, then goes. Fixed, so nothing moves. */
.td-toast {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1080;
    pointer-events: none;
    animation: td-pop 3.4s ease-out forwards;
}

.td-toast img {
    display: block;
    width: 180px;
    height: 180px;
    filter: drop-shadow(0 12px 28px rgba(0, 0, 0, .45));
}

@keyframes td-pop {
    0% { opacity: 0; transform: translateY(30px) scale(.6) rotate(-8deg); }
    12% { opacity: 1; transform: translateY(0) scale(1.08) rotate(3deg); }
    20% { transform: scale(1) rotate(0); }
    80% { opacity: 1; transform: scale(1); }
    100% { opacity: 0; transform: translateY(10px) scale(.95); visibility: hidden; }
}

@media (max-width: 575.98px) {
    .td-toast {
        right: 12px;
        bottom: 12px;
    }

    .td-toast img {
        width: 130px;
        height: 130px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .td-toast {
        animation: td-fade 3.4s linear forwards;
    }

    @keyframes td-fade {
        0%, 85% { opacity: 1; }
        100% { opacity: 0; visibility: hidden; }
    }
}

.print-only {
    display: none;
}

@media print {
    @page { margin: 14mm; }

    body {
        background: #fff !important;
        color: #000 !important;
    }

    .fj-nav,
    .fj-foot,
    .bg-orb,
    .bg-grid,
    .pool-banner,
    .week-chips,
    .enter-for,
    .picks-screen-only,
    .alert,
    .flash,
    .autopick,
    .claude-box,
    .lines-note,
    #picks-form {
        display: none !important;
    }

    .page {
        padding: 0 !important;
    }

    .container {
        max-width: none !important;
        padding: 0 !important;
    }

    .print-only {
        display: block !important;
    }

    .picks-print-head {
        display: flex;
        align-items: center;
        gap: 12px;
        padding-bottom: 10px;
        margin-bottom: 12px;
        border-bottom: 3px solid #B91C1C;
    }

    .picks-print-title {
        font-size: 20pt;
        font-weight: 800;
        letter-spacing: .02em;
        text-transform: uppercase;
    }

    .picks-print-table {
        width: 100%;
        border-collapse: collapse;
        font-size: 10pt;
    }

    .picks-print-table th,
    .picks-print-table td {
        padding: 6px 8px;
        border-bottom: 1px solid #bbb;
        text-align: left;
        vertical-align: top;
    }

    .picks-print-table th {
        border-bottom: 2px solid #333;
        text-transform: uppercase;
        font-size: 8pt;
        letter-spacing: .08em;
    }

    .picks-print-table tr {
        break-inside: avoid;
    }

    .picks-print-tb,
    .picks-print-foot {
        margin: 12px 0 0;
        font-size: 9pt;
    }

    .picks-print-foot {
        color: #555;
    }
}
