/* Homepage additions (2026-09-25, owner-approved): live wire, weekly drive, tool tiles, field goal.
   Loaded only by index.html; built on the editorial tokens so light and dark both work.
   js/home-additions.js fills the live wire and marks today on the drive. */

/* ---------- live wire ---------- */
.ffn-wire {
    position: relative;
    z-index: 20;
    display: flex;
    align-items: center;
    height: 34px;
    background: #0b1a33;
    color: #d6e2f5;
    font-family: var(--ffn-ed-font-sans);
    font-size: 12.5px;
    border-bottom: 1px solid rgba(243, 247, 255, 0.08);
}

.ffn-wire[hidden] {
    display: none;
}

.ffn-wire-label,
.ffn-wire-more {
    flex: none;
    display: flex;
    align-items: center;
    gap: 8px;
    height: 100%;
    font-family: var(--ffn-ed-font-mono);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.ffn-wire-label {
    padding: 0 16px 0 clamp(1rem, 2vw, 2rem);
    border-right: 1px solid rgba(243, 247, 255, 0.12);
    color: #ffffff;
}

.ffn-wire-more {
    padding: 0 clamp(1rem, 2vw, 2rem) 0 16px;
    border-left: 1px solid rgba(243, 247, 255, 0.12);
    color: #8fb8ff;
    text-decoration: none;
}

.ffn-wire-more:hover,
.ffn-wire-more:focus-visible {
    color: #ffffff;
}

.ffn-wire-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #2f7bff;
    box-shadow: 0 0 0 3px rgba(47, 123, 255, 0.25);
    animation: ffnWireBlink 1.6s ease-in-out infinite;
}

.ffn-wire-view {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 28px, #000 calc(100% - 40px), transparent);
    mask-image: linear-gradient(90deg, transparent, #000 28px, #000 calc(100% - 40px), transparent);
}

.ffn-wire-track {
    display: flex;
    width: max-content;
    animation: ffnWireScroll 90s linear infinite;
}

.ffn-wire:hover .ffn-wire-track,
.ffn-wire:focus-within .ffn-wire-track {
    animation-play-state: paused;
}

.ffn-wire-set {
    display: flex;
}

.ffn-wire-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding-left: 22px;
    white-space: nowrap;
    color: #d6e2f5;
    text-decoration: none;
}

.ffn-wire-item::after {
    content: "";
    width: 3px;
    height: 3px;
    margin-left: 14px;
    border-radius: 50%;
    background: rgba(243, 247, 255, 0.28);
}

.ffn-wire-item:hover,
.ffn-wire-item:focus-visible {
    color: #ffffff;
}

.ffn-wire-pos {
    font-family: var(--ffn-ed-font-mono);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: #8fb8ff;
}

.ffn-wire-team {
    font-family: var(--ffn-ed-font-mono);
    font-size: 10px;
    letter-spacing: 0.08em;
    color: #7f93b3;
}

@keyframes ffnWireScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes ffnWireBlink { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

/* ---------- five days, one drive ---------- */
.ffn-drive {
    margin-top: 1.75rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--ffn-ed-border);
}

.ffn-drive-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem 1rem;
}

.ffn-drive-title {
    margin: 0;
    color: var(--ffn-ed-text);
    font-size: 1.35rem;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.ffn-drive-kicker {
    color: var(--ffn-ed-text-soft);
    font-family: var(--ffn-ed-font-mono);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.ffn-drive-board {
    position: relative;
    margin-top: 1.1rem;
    padding: 1.6rem 1rem 1.3rem;
    border: 1px solid var(--ffn-ed-border);
    border-radius: 1.2rem;
    background: var(--ffn-ed-surface);
}

.ffn-drive-track {
    position: absolute;
    top: calc(1.6rem + 5.5px);
    left: calc(1rem + (100% - 2rem) * 0.1);
    right: calc(1rem + (100% - 2rem) * 0.1);
    height: 3px;
    border-radius: 99px;
    background: var(--ffn-ed-border-strong);
}

.ffn-drive-fill {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: var(--drive-to, 100%);
    border-radius: inherit;
    background: var(--ffn-ed-accent);
    animation: ffnDriveFill 2.2s 0.3s cubic-bezier(0.3, 0.7, 0.2, 1) both;
}

.ffn-drive-ball {
    position: absolute;
    top: 50%;
    left: var(--drive-to, 100%);
    width: 26px;
    height: 16px;
    margin: -25px 0 0 -13px;
    animation: ffnDriveBall 2.2s 0.3s cubic-bezier(0.3, 0.7, 0.2, 1) both;
}

.ffn-drive-ball svg {
    display: block;
    width: 100%;
    height: 100%;
    transform: rotate(-8deg);
}

.ffn-drive-stops {
    position: relative;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    margin: 0;
    padding: 0;
    list-style: none;
}

.ffn-drive-stop {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    padding: 0 0.45rem;
    border-radius: 0.75rem;
    color: inherit;
    text-align: center;
    text-decoration: none;
}

.ffn-drive-node {
    position: relative;
    width: 14px;
    height: 14px;
    margin-bottom: 0.6rem;
    box-sizing: border-box;
    border: 2px solid var(--ffn-ed-border-strong);
    border-radius: 50%;
    background: var(--ffn-ed-surface);
}

.ffn-drive-stop.is-done .ffn-drive-node {
    border-color: var(--ffn-ed-accent);
    background: var(--ffn-ed-accent);
}

.ffn-drive-stop.is-today .ffn-drive-node::after {
    content: "";
    position: absolute;
    inset: -2px;
    border: 2px solid var(--ffn-ed-accent);
    border-radius: 50%;
    animation: ffnDrivePing 1.8s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.ffn-drive-day {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--ffn-ed-text-soft);
    font-family: var(--ffn-ed-font-mono);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.ffn-drive-today {
    display: none;
    padding: 0.1rem 0.4rem;
    border-radius: 99px;
    background: var(--ffn-ed-accent);
    color: #ffffff;
    font-size: 0.56rem;
    letter-spacing: 0.1em;
}

html[data-theme="dark"] .ffn-drive-today {
    color: #041019;
}

.ffn-drive-stop.is-today .ffn-drive-today {
    display: inline-block;
}

.ffn-drive-stop strong {
    color: var(--ffn-ed-text);
    font-size: 0.98rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    transition: color 0.15s ease;
}

.ffn-drive-what {
    color: var(--ffn-ed-text-muted);
    font-size: 0.8rem;
    line-height: 1.45;
}

.ffn-drive-stop:hover strong,
.ffn-drive-stop:focus-visible strong {
    color: var(--ffn-ed-accent);
}

@keyframes ffnDriveFill { from { width: 0; } to { width: var(--drive-to, 100%); } }
@keyframes ffnDriveBall { from { left: 0; } to { left: var(--drive-to, 100%); } }
@keyframes ffnDrivePing { 0% { transform: scale(1); opacity: 0.7; } 80%, 100% { transform: scale(2.6); opacity: 0; } }

/* ---------- tools: the whole playbook ---------- */
.ffn-tools-wrap {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1.5rem;
    box-sizing: border-box;
}

.ffn-tools-title {
    margin: 0.4rem 0 1.2rem;
    color: var(--ffn-ed-text);
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -0.04em;
}

.ffn-tools {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.6rem;
}

.ffn-tool {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.9rem;
    min-height: 6.4rem;
    padding: 0.85rem;
    box-sizing: border-box;
    border: 1px solid var(--ffn-ed-border);
    border-radius: 1rem;
    background: var(--ffn-ed-surface);
    color: var(--ffn-ed-text);
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.01em;
    text-decoration: none;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.ffn-tool:hover,
.ffn-tool:focus-visible {
    transform: translateY(-3px);
    border-color: var(--ffn-ed-accent);
    box-shadow: var(--ffn-ed-shadow-card);
}

.ffn-tool-ic {
    display: grid;
    place-items: center;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 0.8rem;
    background: var(--ffn-ed-accent-soft);
    color: var(--ffn-ed-accent);
    transition: background 0.2s ease, color 0.2s ease, transform 0.3s ease;
}

.ffn-tool:hover .ffn-tool-ic,
.ffn-tool:focus-visible .ffn-tool-ic {
    background: var(--ffn-ed-accent);
    color: #ffffff;
    transform: rotate(-8deg) scale(1.06);
}

.ffn-tool.is-highlight {
    border-color: transparent;
    background: var(--ffn-ed-accent);
    color: #ffffff;
}

.ffn-tool.is-highlight .ffn-tool-ic {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

html[data-theme="dark"] .ffn-tool.is-highlight,
html[data-theme="dark"] .ffn-tool.is-highlight .ffn-tool-ic,
html[data-theme="dark"] .ffn-tool:hover .ffn-tool-ic {
    color: #041019;
}

.ffn-ic {
    width: 1.2rem;
    height: 1.2rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ---------- newsletter: the kick ---------- */
.ffn-home-newsletter-band.ffn-nl-with-kick {
    grid-template-columns: minmax(0, 1fr) 340px;
    align-items: stretch;
    gap: 1.75rem;
    max-width: 1000px;
}

.ffn-nl-main {
    display: grid;
    align-content: center;
    gap: 1.25rem;
}

.ffn-kick {
    display: grid;
    place-items: center;
    min-height: 280px;
    border: 1px solid rgba(243, 247, 255, 0.08);
    border-radius: 1.3rem;
    background: #07101f;
    overflow: hidden;
}

.ffn-kick-stage {
    position: relative;
    width: 320px;
    height: 260px;
}

.ffn-kick-stage svg {
    position: absolute;
    inset: 0;
    width: 320px;
    height: 260px;
}

.ffn-kick-glow {
    fill: rgba(94, 162, 255, 0.4);
    filter: blur(18px);
}

.ffn-kick-lamp {
    fill: #ffffff;
    animation: ffnWireBlink 3s ease-in-out infinite;
}

.ffn-kick-post {
    fill: none;
    stroke: #ffd23f;
    stroke-width: 6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ffn-kick-flag {
    fill: #ff7a1a;
    transform-box: fill-box;
    transform-origin: left center;
    animation: ffnKickFlag 1.1s ease-in-out infinite alternate;
}

.ffn-kick-good {
    fill: #ffe7a3;
    font-family: 'Caveat', cursive;
    font-size: 38px;
    font-weight: 700;
    text-anchor: middle;
    transform-box: fill-box;
    transform-origin: center;
    animation: ffnKickGood 4.8s cubic-bezier(0.2, 1.6, 0.4, 1) infinite both;
}

.ffn-kick-ball {
    position: absolute;
    left: 0;
    top: 0;
    width: 26px;
    height: 16px;
    opacity: 0;
    offset-path: path('M160 252 Q142 150 160 96');
    offset-rotate: 0deg;
    offset-anchor: center;
    animation: ffnKick 4.8s cubic-bezier(0.25, 0.6, 0.4, 1) infinite;
}

.ffn-kick-ball svg {
    display: block;
    width: 100%;
    height: 100%;
}

@keyframes ffnKickFlag { from { transform: skewY(-12deg) scaleX(0.85); } to { transform: skewY(10deg) scaleX(1); } }
@keyframes ffnKick {
    0% { offset-distance: 0%; opacity: 0; transform: scale(1.5) rotate(0deg); }
    5% { opacity: 1; }
    56% { offset-distance: 100%; opacity: 1; transform: scale(0.42) rotate(900deg); }
    62%, 100% { offset-distance: 100%; opacity: 0; transform: scale(0.42) rotate(900deg); }
}
@keyframes ffnKickGood {
    0%, 55% { opacity: 0; transform: scale(0.4) rotate(-6deg); }
    61%, 88% { opacity: 1; transform: scale(1) rotate(-6deg); }
    96%, 100% { opacity: 0; transform: scale(1) rotate(-6deg); }
}

/* ---------- smaller screens ---------- */
@media (max-width: 900px) {
    .ffn-home-newsletter-band.ffn-nl-with-kick {
        grid-template-columns: minmax(0, 1fr);
    }

    .ffn-tools {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ffn-tool {
        flex-direction: row;
        align-items: center;
        min-height: 0;
    }
}

@media (max-width: 640px) {
    .ffn-wire-more {
        display: none;
    }

    .ffn-drive-track {
        display: none;
    }

    .ffn-drive-stops {
        grid-template-columns: minmax(0, 1fr);
        gap: 1rem;
    }

    .ffn-drive-stop {
        display: grid;
        grid-template-columns: auto auto minmax(0, 1fr);
        grid-template-rows: auto auto;
        column-gap: 0.6rem;
        align-items: center;
        text-align: left;
    }

    .ffn-drive-node { margin: 0; grid-row: 1; }
    .ffn-drive-day { grid-row: 1; }
    .ffn-drive-stop strong { grid-row: 1; }
    .ffn-drive-what { grid-column: 2 / -1; }
}

@media (prefers-reduced-motion: reduce) {
    .ffn-wire-track,
    .ffn-wire-dot,
    .ffn-drive-fill,
    .ffn-drive-ball,
    .ffn-drive-node::after,
    .ffn-kick-lamp,
    .ffn-kick-flag,
    .ffn-kick-good,
    .ffn-kick-ball {
        animation: none;
    }

    .ffn-wire-view {
        overflow-x: auto;
    }
}

/* ---- 04 Rankings leaderboard + 05 Articles (2026-09-25 PM) ----
   Wide screens: rankings and recent articles side by side. Rankings: one card, hairline rows,
   team-colored names, a points bar scaled to the list leader, team chip on the right. */
@media (min-width: 1201px) {
    /* Same 1000px column as the newsletter band below. */
    .ffn-pilot-home .ffn-data-grid {
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
        gap: 2.5rem;
        align-items: start;
        max-width: 1000px;
        margin-right: auto;
        margin-left: auto;
    }

    .ffn-pilot-home .rankings-section,
    .ffn-pilot-home .more-articles-panel {
        max-width: none;
        margin: 0;
        padding: 0;
    }
}

.ffn-pilot-home .rankings-section {
    margin-top: 0;
}

.ffn-pilot-home .rankings-title,
.ffn-pilot-home .more-articles-header h2 {
    margin: 0.4rem 0 1rem;
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -0.04em;
    text-align: left;
    text-transform: none;
}

.ffn-pilot-home .rankings-title::after {
    display: none;
}

.ffn-pilot-home .more-articles-header {
    margin: 0;
    text-align: left;
}

.ffn-pilot-home .ppr-toggle,
.ffn-pilot-home .position-toggle {
    justify-content: flex-start;
    margin: 0.5rem 0 0;
}

.ffn-pilot-home .ffn-toggle {
    min-height: 2.3rem;
}

.ffn-pilot-home .hp-rankings-context {
    margin: 1rem 0 0.6rem;
    color: var(--ffn-ed-text-soft);
    font-family: var(--ffn-ed-font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ffn-pilot-home .rankings {
    display: block;
    margin: 0;
}

.ffn-pilot-home .ranking-column {
    max-width: none;
    border: 1px solid var(--ffn-ed-border);
    border-radius: 1rem;
    background: var(--ffn-ed-surface);
    box-shadow: none;
}

.ffn-pilot-home .player-list {
    display: block;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ffn-pilot-home .player-list li {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(4.8rem, 28%) 2.9rem;
    align-items: center;
    gap: 1rem;
    padding: 0.62rem 1rem 0.62rem 0.9rem;
    border: 0;
    border-bottom: 1px solid var(--ffn-ed-border);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.ffn-pilot-home .player-list li.has-team-tint {
    box-shadow: inset 3px 0 0 var(--ffn-row-team-color);
}

.ffn-pilot-home .player-list li:not(.hp-list-head):hover {
    background: rgba(0, 87, 255, 0.045);
}

.ffn-pilot-home .player-list li.hp-list-head {
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
    background: #f4f7fc;
    color: var(--ffn-ed-text-soft);
    font-family: var(--ffn-ed-font-mono);
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.ffn-pilot-home .player-list li.hp-list-head span:not(:first-child) {
    text-align: right;
}

.ffn-pilot-home .player-list li.see-full-list {
    display: flex;
    justify-content: center;
    border-bottom: 0;
}

.ffn-pilot-home .player-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.ffn-pilot-home .player-rank {
    min-width: 1.5rem;
    color: var(--ffn-ed-text-soft);
}

.ffn-pilot-home .player-rank--elite {
    color: var(--ffn-ed-text);
}

.ffn-pilot-home .hp-player-detail {
    display: grid;
    min-width: 0;
}

.ffn-pilot-home .player-list .player-name {
    color: var(--ffn-team-ink, var(--ffn-ed-text));
    font-weight: 800;
    line-height: 1.2;
}

.ffn-pilot-home .player-list li:hover .player-name {
    color: var(--ffn-team-ink, var(--ffn-ed-text));
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.ffn-pilot-home .hp-dst-meta {
    color: var(--ffn-ed-text-soft);
    font-size: 0.74rem;
}

.ffn-pilot-home .hp-points {
    display: grid;
    gap: 0.3rem;
    justify-items: end;
}

.ffn-pilot-home .hp-points strong {
    color: var(--ffn-ed-text);
    font-family: var(--ffn-ed-font-mono);
    font-size: 0.84rem;
    font-weight: 800;
}

.ffn-pilot-home .hp-points[style]::after {
    content: "";
    width: 100%;
    height: 3px;
    background: linear-gradient(to left, rgba(0, 87, 255, 0.42) calc(var(--bar, 0) * 100%), rgba(7, 16, 31, 0.06) 0);
}

.ffn-pilot-home .hp-team-badge {
    justify-self: end;
}

html[data-theme="dark"] .ffn-pilot-home .player-list li.hp-list-head {
    background: #132238;
}

html[data-theme="dark"] .ffn-pilot-home .player-list li:not(.hp-list-head):hover {
    background: rgba(99, 180, 255, 0.07);
}

html[data-theme="dark"] .ffn-pilot-home .hp-points[style]::after {
    background: linear-gradient(to left, rgba(99, 180, 255, 0.55) calc(var(--bar, 0) * 100%), rgba(148, 168, 198, 0.1) 0);
}

html[data-theme="dark"] .ffn-pilot-home .hp-team-badge {
    box-shadow: inset 0 0 0 1px rgba(243, 247, 255, 0.16);
}

@media (max-width: 640px) {
    .ffn-pilot-home .player-list li {
        grid-template-columns: minmax(0, 1fr) 4.8rem 2.7rem;
        gap: 0.6rem;
        padding-right: 0.75rem;
    }
}

.ffn-pilot-home .more-articles-header h2::after {
    display: none;
}

@media (max-width: 640px) {
    .ffn-pilot-home .ppr-toggle,
    .ffn-pilot-home .position-toggle {
        gap: 0.4rem !important;
        padding: 0 !important;
        flex-wrap: wrap !important;
    }

}

/* ---- Hero board (2026-09-26) ----
   One card replaces the two rotating hero panels: a navy scoreboard head (same paint as the
   live wire, field goal and endzone) with hero-weight tabs, over a white leaderboard body that
   matches 04 Rankings (light header row, hairline rows, team ink, data bars, team chips).
   js/homepage-showcase.js renders it; nothing rotates. */
.ffn-pilot-home .ffn-home-board-side {
    min-width: 0;
}

/* Hero title sized to its own column (2026-09-26, eyebrow removed): cqi is 1% of the copy
   column, so "FOOTBALL" (about 4.98em wide) fills ~95% of it at every width without running
   into the board. Browsers without container units keep the base clamp(). */
.ffn-pilot-home .ffn-pilot-hero-main {
    container-type: inline-size;
}

.ffn-pilot-home .ffn-pilot-hero .ffn-pilot-title {
    font-size: min(19cqi, 8rem);
}

@media (min-width: 1261px) {
    .ffn-pilot-home .ffn-pilot-hero {
        grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
        gap: clamp(1.5rem, 2.6vw, 3rem);
    }

    .ffn-pilot-home .ffn-pilot-hero .ffn-pilot-actions {
        display: flex;
        flex-wrap: wrap;
    }

    .ffn-pilot-home .ffn-pilot-hero .ffn-pilot-actions .ffn-pilot-button {
        flex: none;
    }

    /* Board top meets the title's top (same offset as the copy's top padding); the copy column
       stretches to the board's height, the buttons sit on its bottom edge and any spare height
       is shared between title, lead and buttons. */
    .ffn-pilot-home .ffn-home-board-side {
        padding-top: 1.5rem;
    }

    .ffn-pilot-home .ffn-pilot-hero {
        align-items: stretch;
    }

    .ffn-pilot-home .ffn-pilot-hero-main {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        padding-right: 0;
        padding-bottom: 0;
    }
}

/* Wide enough for an even split: the title column grows (and the title with it). */
@media (min-width: 1440px) {
    .ffn-pilot-home .ffn-pilot-hero {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }
}


@media (max-width: 1260px) {
    .ffn-pilot-home .ffn-pilot-hero {
        grid-template-columns: minmax(0, 1fr);
    }
}

.ffn-board {
    --board-paint: #0b1a33;
    --board-head-ink: #ffffff;
    --board-head-dim: rgba(214, 226, 245, 0.42);
    --board-head-accent: #8fb8ff;
    --board-row-hover: rgba(0, 87, 255, 0.045);
    --board-thead: #f4f7fc;
    --board-good: #0a7d4f;
    --board-bad: #c62f28;
    --board-track: rgba(7, 16, 31, 0.07);
    --board-bar: rgba(0, 87, 255, 0.42);
    display: block;
}

html[data-theme="dark"] .ffn-board {
    --board-paint: #061226;
    --board-row-hover: rgba(99, 180, 255, 0.07);
    --board-thead: #132238;
    --board-good: #4ade80;
    --board-bad: #fb7185;
    --board-track: rgba(148, 168, 198, 0.12);
    --board-bar: rgba(99, 180, 255, 0.55);
}

.ffn-board-shell {
    overflow: hidden;
    border: 1px solid var(--ffn-ed-border);
    border-radius: 1.5rem;
    background: var(--ffn-ed-surface);
    box-shadow: var(--ffn-ed-shadow-card), 0 30px 60px -30px rgba(11, 26, 51, 0.35);
}

/* ---------- head: the scoreboard ---------- */
.ffn-board-head {
    position: relative;
    padding: 1.05rem clamp(1rem, 2vw, 1.5rem) 0;
    overflow: hidden;
    background:
        radial-gradient(120% 160% at 100% 0%, rgba(47, 123, 255, 0.32), transparent 55%),
        radial-gradient(80% 120% at 0% 100%, rgba(79, 70, 229, 0.18), transparent 60%),
        var(--board-paint);
    color: var(--board-head-ink);
}

/* Hash marks along the bottom edge: the same yard-line rhythm as the page field. */
.ffn-board-head::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 6px;
    background: repeating-linear-gradient(90deg, rgba(214, 226, 245, 0.2) 0 2px, transparent 2px 18px);
    pointer-events: none;
}

.ffn-board-wk {
    position: absolute;
    right: clamp(0.6rem, 1.6vw, 1.2rem);
    bottom: -0.75rem;
    color: transparent;
    font-size: clamp(4.2rem, 6.4vw, 6rem);
    font-weight: 900;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.06em;
    line-height: 1;
    -webkit-text-stroke: 1.5px rgba(143, 184, 255, 0.3);
    pointer-events: none;
    user-select: none;
}

.ffn-board-strip {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.35rem 1rem;
    color: var(--board-head-accent);
    font-family: var(--ffn-ed-font-mono);
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.ffn-board-live {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--board-head-ink);
}

.ffn-board-live i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #2f7bff;
    box-shadow: 0 0 0 3px rgba(47, 123, 255, 0.25);
    animation: ffnWireBlink 1.6s ease-in-out infinite;
}

/* Folder tabs: the active tab is painted in the panel color and joins the table below; the
   other tab is an outlined tab on the scoreboard paint, so both read as clickable tabs. */
.ffn-board-tabs {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
    margin-top: 1rem;
}

.ffn-board-tab {
    appearance: none;
    position: relative;
    display: inline-flex;
    align-items: flex-start;
    gap: 0.45rem;
    margin: 0;
    padding: 0.85rem 1.2rem 0.8rem;
    border: 1px solid rgba(214, 226, 245, 0.2);
    border-bottom: 0;
    border-radius: 0.95rem 0.95rem 0 0;
    background: rgba(255, 255, 255, 0.07);
    color: rgba(214, 226, 245, 0.72);
    cursor: pointer;
    font: inherit;
    font-size: clamp(1.3rem, 2.1vw, 1.95rem);
    font-weight: 900;
    letter-spacing: -0.045em;
    line-height: 0.95;
    text-transform: uppercase;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.ffn-board-tab:hover {
    border-color: rgba(214, 226, 245, 0.38);
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
}

.ffn-board-tab:focus-visible {
    outline: 2px solid #8fb8ff;
    outline-offset: 3px;
}

.ffn-board-tab[aria-selected="true"] {
    border-color: transparent;
    background: var(--ffn-ed-surface);
    color: var(--ffn-ed-text);
    cursor: default;
}

.ffn-board-tab-num {
    margin-top: 0.1rem;
    color: var(--board-head-accent);
    font-family: var(--ffn-ed-font-mono);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    line-height: 1;
}

.ffn-board-tab[aria-selected="true"] .ffn-board-tab-num {
    color: var(--ffn-ed-accent);
}

/* The homepage gradient period, on the active tab only. */
.ffn-board-tab[aria-selected="true"] .ffn-board-tab-label::after {
    content: ".";
    color: var(--ffn-ed-accent);
}

@supports ((background-clip: text) or (-webkit-background-clip: text)) {
    .ffn-board-tab[aria-selected="true"] .ffn-board-tab-label::after {
        background: linear-gradient(110deg, #0284c7 0%, #2563eb 42%, #1d4ed8 72%, #4f46e5 100%);
        background-clip: text;
        -webkit-background-clip: text;
        color: transparent;
        -webkit-text-fill-color: transparent;
    }

    html[data-theme="dark"] .ffn-board-tab[aria-selected="true"] .ffn-board-tab-label::after {
        background-image: linear-gradient(110deg, #7dd3fc 0%, #60a5fa 38%, #3b82f6 72%, #818cf8 100%);
    }
}

/* Brand gradient cap on the active tab. */
.ffn-board-tab[aria-selected="true"]::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0.9rem;
    left: 0.9rem;
    height: 3px;
    border-radius: 0 0 3px 3px;
    background: linear-gradient(90deg, #38bdf8, #2563eb 55%, #6366f1);
    transform-origin: left;
    animation: ffnBoardTab 0.45s cubic-bezier(0.3, 0.7, 0.2, 1) both;
}

/* ---------- panel ---------- */
.ffn-board-panel {
    padding: 1.05rem clamp(0.85rem, 1.8vw, 1.35rem) 1.1rem;
}

.ffn-board-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem 1rem;
    min-height: 2.3rem;
    margin-bottom: 0.9rem;
}

.ffn-board-note {
    margin: 0;
    color: var(--ffn-ed-text-muted);
    font-size: 0.9rem;
    line-height: 1.45;
}

.ffn-board-note.is-inline {
    color: var(--ffn-ed-text-soft);
    font-family: var(--ffn-ed-font-mono);
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.ffn-board-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.ffn-board-chip,
.ffn-board-seg button {
    appearance: none;
    min-height: 2.15rem;
    margin: 0;
    padding: 0 0.85rem;
    border: 1px solid var(--ffn-ed-border);
    border-radius: 999px;
    background: var(--ffn-ed-surface);
    color: var(--ffn-ed-text-muted);
    cursor: pointer;
    font-family: var(--ffn-ed-font-mono);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.ffn-board-chip:hover,
.ffn-board-seg button:hover {
    border-color: var(--ffn-ed-accent);
    color: var(--ffn-ed-text);
}

.ffn-board-chip[aria-pressed="true"] {
    border-color: var(--ffn-ed-accent);
    background: var(--ffn-ed-accent);
    color: #ffffff;
    box-shadow: 0 6px 16px rgba(0, 87, 255, 0.24);
}

.ffn-board-chip:focus-visible,
.ffn-board-seg button:focus-visible,
.ffn-board-more:focus-visible {
    outline: 2px solid var(--ffn-ed-accent);
    outline-offset: 2px;
}

.ffn-board-seg {
    display: inline-flex;
    padding: 3px;
    border-radius: 999px;
    background: var(--board-thead);
    box-shadow: inset 0 0 0 1px var(--ffn-ed-border);
}

.ffn-board-seg button {
    min-height: 1.95rem;
    padding: 0 0.75rem;
    border-color: transparent;
    background: transparent;
    color: var(--ffn-ed-text-soft);
}

.ffn-board-seg button[aria-pressed="true"] {
    border-color: var(--ffn-ed-border);
    background: var(--ffn-ed-surface);
    color: var(--ffn-ed-text);
    box-shadow: 0 1px 3px rgba(7, 16, 31, 0.12);
}

/* ---------- table ---------- */
.ffn-board-table {
    width: 100%;
    border: 1px solid var(--ffn-ed-border);
    border-radius: 1rem;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    font-variant-numeric: tabular-nums;
}

.ffn-board-table th {
    padding: 0.55rem 0.8rem;
    background: var(--board-thead);
    color: var(--ffn-ed-text-soft);
    font-family: var(--ffn-ed-font-mono);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-align: left;
    text-transform: uppercase;
    white-space: nowrap;
}

.ffn-board-table th small {
    font-size: inherit;
    opacity: 0.75;
}

.ffn-board-table td {
    padding: 0.62rem 0.8rem;
    border-top: 1px solid var(--ffn-ed-border);
    color: var(--ffn-ed-text);
    vertical-align: middle;
}

.ffn-board-row {
    animation: ffnBoardRow 0.5s calc(var(--i, 0) * 45ms) cubic-bezier(0.3, 0.7, 0.2, 1) both;
}

.ffn-board-row:hover td {
    background: var(--board-row-hover);
}

.ffn-bk-sub {
    display: block;
    margin-top: 0.12rem;
    color: var(--ffn-ed-text-soft);
    font-size: 0.72rem;
    line-height: 1.3;
}

/* Rankings */
.ffn-board-ranks td:first-child {
    box-shadow: inset 3px 0 0 var(--ffn-row-team-color, transparent);
}

.ffn-bk-rank {
    width: 2.2rem;
    color: var(--ffn-ed-text-soft);
    font-size: 1.05rem;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.ffn-bk-rank.is-top {
    color: var(--ffn-ed-accent);
}

@supports ((background-clip: text) or (-webkit-background-clip: text)) {
    .ffn-board .ffn-bk-rank.is-top {
        background: linear-gradient(110deg, #0284c7 0%, #2563eb 50%, #4f46e5 100%);
        background-clip: text;
        -webkit-background-clip: text;
        color: transparent;
        -webkit-text-fill-color: transparent;
    }

    html[data-theme="dark"] .ffn-board .ffn-bk-rank.is-top {
        background-image: linear-gradient(110deg, #7dd3fc 0%, #60a5fa 50%, #818cf8 100%);
    }
}

.ffn-bk-player b {
    display: block;
    color: var(--ffn-team-ink, var(--ffn-ed-text));
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.ffn-bk-grade {
    white-space: nowrap;
}

.ffn-bk-grade::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    margin: 0 0.35rem 0.1rem 0;
    border-radius: 50%;
    background: currentColor;
}

.ffn-bk-grade.is-good {
    color: var(--board-good);
}

.ffn-bk-grade.is-bad {
    color: var(--board-bad);
}

.ffn-board-table th:nth-child(n + 3),
.ffn-bk-pts,
.ffn-bk-team,
.ffn-bk-score,
.ffn-bk-call {
    text-align: right;
}

.ffn-bk-pts {
    width: 7rem;
}

.ffn-bk-pts b {
    font-family: var(--ffn-ed-font-mono);
    font-size: 0.9rem;
    font-weight: 800;
}

.ffn-bk-pts::after {
    content: "";
    display: block;
    height: 3px;
    margin-top: 0.3rem;
    border-radius: 3px;
    background: linear-gradient(to left, var(--board-bar) calc(var(--bar, 0) * 100%), var(--board-track) 0);
    transform-origin: right;
    animation: ffnBoardGrow 0.8s calc(var(--i, 0) * 45ms + 0.1s) cubic-bezier(0.3, 0.7, 0.2, 1) both;
}

.ffn-bk-team {
    width: 3.4rem;
}

html[data-theme="dark"] .ffn-board .hp-team-badge {
    box-shadow: inset 0 0 0 1px rgba(243, 247, 255, 0.16);
}

/* Predictions: a tug of war per game, each side painted in its team color. */
.ffn-board-picks td {
    line-height: 1.2;
}

.ffn-bk-kick {
    width: 5.6rem;
    white-space: nowrap;
}

.ffn-bk-kick b {
    display: block;
    font-family: var(--ffn-ed-font-mono);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ffn-bk-kick .ffn-bk-sub {
    font-family: var(--ffn-ed-font-mono);
    font-size: 0.66rem;
}

.ffn-bk-kick b.is-live {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--board-bad);
}

.ffn-bk-kick b.is-live::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    animation: ffnWireBlink 1.2s ease-in-out infinite;
}

.ffn-duel {
    display: grid;
    grid-template-columns: 4.7rem minmax(3rem, 1fr) 4.7rem;
    align-items: center;
    gap: 0.55rem;
}

.ffn-duel-team {
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
    color: var(--ffn-ed-text-soft);
    white-space: nowrap;
}

.ffn-duel-team.is-home {
    justify-content: flex-end;
}

.ffn-duel-team abbr {
    color: var(--ffn-ed-text-muted);
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    text-decoration: none;
}

.ffn-duel-team em {
    font-family: var(--ffn-ed-font-mono);
    font-size: 0.72rem;
    font-style: normal;
    font-weight: 600;
}

.ffn-duel-team.is-pick abbr {
    color: var(--ffn-team-ink, var(--ffn-ed-text));
    font-weight: 900;
}

.ffn-duel-team.is-pick em {
    color: var(--ffn-ed-text);
    font-weight: 800;
}

.ffn-duel-bar {
    position: relative;
    display: flex;
    gap: 2px;
    height: 0.6rem;
    overflow: hidden;
    border-radius: 999px;
}

.ffn-duel-bar i {
    display: block;
    flex: 0 1 auto;
    min-width: 0;
    background: var(--team-primary, #6b7280);
    opacity: 0.22;
    animation: ffnBoardTug 0.9s calc(var(--i, 0) * 45ms + 0.1s) cubic-bezier(0.3, 0.7, 0.2, 1) both;
}

.ffn-duel-bar i.is-pick {
    opacity: 1;
}

@supports (color: oklch(from red l c h)) {
    html[data-theme="dark"] .ffn-duel-bar i {
        background: oklch(from var(--team-primary, #6b7280) max(l, 0.62) min(c, 0.2) h);
    }
}

.ffn-bk-score {
    width: 6.4rem;
    white-space: nowrap;
}

.ffn-bk-score b {
    font-family: var(--ffn-ed-font-mono);
    font-size: 0.84rem;
    font-weight: 800;
}

.ffn-bk-score b > span[aria-hidden] {
    margin: 0 0.2rem;
    color: var(--ffn-ed-text-soft);
}

.ffn-bk-call {
    width: 6.6rem;
    white-space: nowrap;
}

.ffn-bk-call > b {
    margin-left: 0.1rem;
    color: var(--ffn-team-ink, var(--ffn-ed-text));
    font-size: 0.9rem;
    font-weight: 900;
}

.ffn-bk-tier {
    display: inline-block;
    padding: 0.22rem 0.5rem;
    border-radius: 999px;
    background: var(--ffn-ed-accent-soft, rgba(0, 87, 255, 0.1));
    color: var(--ffn-ed-accent);
    font-family: var(--ffn-ed-font-mono);
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    vertical-align: 0.12em;
}

.ffn-bk-tier.is-lock {
    background: var(--ffn-ed-accent);
    color: #ffffff;
}

.ffn-bk-tier.is-coin-flip {
    background: transparent;
    box-shadow: inset 0 0 0 1px var(--ffn-ed-border-strong);
    color: var(--ffn-ed-text-soft);
}

html[data-theme="dark"] .ffn-bk-tier {
    background: rgba(47, 123, 255, 0.18);
    color: #8fb8ff;
}

html[data-theme="dark"] .ffn-bk-tier.is-lock {
    background: #2f7bff;
    color: #ffffff;
}

html[data-theme="dark"] .ffn-bk-tier.is-coin-flip {
    background: transparent;
    color: var(--ffn-ed-text-soft);
}

.ffn-board-row.is-played {
    opacity: 0.55;
}

/* All games in one list that scrolls inside the board. JS trims max-height so this tab is as
   tall as the rankings tab; the sticky header stays put while rows move. */
.ffn-board-scroll {
    position: relative;
    max-height: 20.5rem;
    overflow-y: auto;
    border: 1px solid var(--ffn-ed-border);
    border-radius: 1rem;
}

/* A scrollbar that is always drawn (macOS hides overlay scrollbars until you scroll). */
.ffn-board-scroll::-webkit-scrollbar {
    width: 10px;
}

.ffn-board-scroll::-webkit-scrollbar-track {
    margin: 2.2rem 0 0.4rem;
    border-radius: 10px;
    background: var(--board-track);
}

.ffn-board-scroll::-webkit-scrollbar-thumb {
    border: 2px solid transparent;
    border-radius: 10px;
    background: var(--ffn-ed-accent) padding-box;
}

@supports not selector(::-webkit-scrollbar) {
    .ffn-board-scroll {
        scrollbar-color: var(--ffn-ed-accent) var(--board-track);
        scrollbar-width: auto;
    }
}

.ffn-board-scroll:focus-visible {
    outline: 2px solid var(--ffn-ed-accent);
    outline-offset: 2px;
}

.ffn-board-scroll > .ffn-board-table {
    border: 0;
    border-radius: 0;
    overflow: visible;
}

.ffn-board-scroll th {
    position: sticky;
    z-index: 2;
    top: 0;
}

/* Fade over the last visible rows until the list reaches its end. */
.ffn-board-scroll::after {
    content: "";
    position: sticky;
    bottom: 0;
    display: block;
    height: 4rem;
    margin-top: -4rem;
    background: linear-gradient(to bottom, transparent, var(--ffn-ed-surface) 85%);
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.ffn-board-scroll.is-end::after {
    opacity: 0;
}

/* Floating "N more games" pill: sticks to the bottom of the list, turns into "Back to top" at the end. */
.ffn-board-jump {
    appearance: none;
    position: sticky;
    z-index: 3;
    bottom: 0.65rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: max-content;
    min-height: 2.2rem;
    margin: 0.65rem auto;
    padding: 0 1rem;
    border: 0;
    border-radius: 999px;
    background: var(--ffn-ed-accent);
    box-shadow: 0 8px 20px rgba(0, 87, 255, 0.35);
    color: #ffffff;
    cursor: pointer;
    font-family: var(--ffn-ed-font-mono);
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.ffn-board-jump:hover {
    background: #0046d1;
}

.ffn-board-jump:focus-visible {
    outline: 2px solid var(--ffn-ed-text);
    outline-offset: 2px;
}

.ffn-board-jump i,
.ffn-board-hint i {
    width: 0.4rem;
    height: 0.4rem;
    margin-top: -0.2rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    animation: ffnBoardNudge 1.6s ease-in-out infinite;
}

.ffn-board-jump i.is-up {
    margin: 0.2rem 0 0;
    transform: rotate(-135deg);
    animation: none;
}

.ffn-board-scroll.is-end .ffn-board-jump {
    background: var(--ffn-ed-surface);
    box-shadow: inset 0 0 0 1px rgba(0, 87, 255, 0.3);
    color: var(--ffn-ed-accent);
}

html[data-theme="dark"] .ffn-board-scroll.is-end .ffn-board-jump {
    box-shadow: inset 0 0 0 1px rgba(143, 184, 255, 0.35);
    color: #8fb8ff;
}

.ffn-board-hint {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--ffn-ed-accent);
    font-family: var(--ffn-ed-font-mono);
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

html[data-theme="dark"] .ffn-board-hint {
    color: #8fb8ff;
}


/* ---------- foot ---------- */
.ffn-board-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem 1rem;
    min-height: 2.3rem;
    margin-top: 0.95rem;
}

.ffn-board-caption {
    color: var(--ffn-ed-text-soft);
    font-family: var(--ffn-ed-font-mono);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.ffn-board-more {
    appearance: none;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 2.3rem;
    margin: 0;
    padding: 0 1rem;
    border: 1px solid rgba(0, 87, 255, 0.24);
    border-radius: 999px;
    background: rgba(0, 87, 255, 0.06);
    color: var(--ffn-ed-accent);
    cursor: pointer;
    font-family: var(--ffn-ed-font-mono);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-decoration: none;
    text-transform: uppercase;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.ffn-board-more:hover {
    background: var(--ffn-ed-accent);
    color: #ffffff;
}

html[data-theme="dark"] .ffn-board-more {
    border-color: rgba(143, 184, 255, 0.3);
    background: rgba(47, 123, 255, 0.12);
    color: #8fb8ff;
}

html[data-theme="dark"] .ffn-board-more:hover {
    background: #2f7bff;
    color: #ffffff;
}

/* ---------- loading / empty ---------- */
.ffn-board-skeleton {
    display: grid;
    gap: 0.7rem;
    padding: 1.2rem clamp(0.85rem, 1.8vw, 1.35rem) 1.4rem;
}

.ffn-board-skeleton span {
    height: 2.6rem;
    border-radius: 0.7rem;
    background: linear-gradient(90deg, var(--board-track) 0%, var(--board-row-hover) 50%, var(--board-track) 100%) 0 0 / 200% 100%;
    animation: ffnBoardShimmer 1.4s linear infinite;
}

.ffn-board-empty {
    display: grid;
    justify-items: start;
    gap: 0.9rem;
    padding: 1.4rem clamp(1rem, 2vw, 1.5rem) 1.5rem;
}

.ffn-board-empty p {
    margin: 0;
    color: var(--ffn-ed-text-muted);
}

.ffn-board-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

@keyframes ffnBoardTab { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes ffnBoardRow { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes ffnBoardGrow { from { transform: scaleX(0); } }
@keyframes ffnBoardTug { from { flex-basis: 50%; } }
@keyframes ffnBoardShimmer { to { background-position: -200% 0; } }
@keyframes ffnBoardNudge { 0%, 100% { translate: 0 0; } 50% { translate: 0 3px; } }

/* ---------- phones ---------- */
@media (max-width: 640px) {
    .ffn-board-shell {
        border-radius: 1.2rem;
    }

    .ffn-board-tabs {
        gap: 0.35rem;
    }

    .ffn-board-tab {
        flex: 1;
        justify-content: center;
        padding: 0.75rem 0.4rem 0.7rem;
        font-size: clamp(0.95rem, 4.3vw, 1.3rem);
    }

    .ffn-board-tab-num {
        display: none;
    }

    .ffn-board-wk,
    .ffn-bk-long,
    .ffn-board-picks .ffn-bk-score .ffn-bk-sub {
        display: none;
    }

    .ffn-board-note {
        font-size: 0.84rem;
    }

    .ffn-board-table td,
    .ffn-board-table th {
        padding-right: 0.55rem;
        padding-left: 0.55rem;
    }

    .ffn-bk-pts {
        width: 4.8rem;
    }

    .ffn-bk-team {
        width: 2.9rem;
    }

    .ffn-board .hp-team-badge {
        min-width: 2.3rem;
        padding: 0.16rem 0.3rem;
        font-size: 0.6rem;
    }

    /* Predictions stack: kickoff, score and call on one line, the tug bar below. */
    .ffn-board-picks,
    .ffn-board-picks tbody {
        display: block;
    }

    .ffn-board-picks thead {
        display: none;
    }

    .ffn-board-picks tr {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        grid-template-areas:
            "kick score call"
            "duel duel duel";
        align-items: center;
        gap: 0.5rem 0.75rem;
        padding: 0.7rem 0.75rem;
    }

    .ffn-board-picks tr + tr {
        border-top: 1px solid var(--ffn-ed-border);
    }

    .ffn-board-picks td {
        width: auto;
        padding: 0;
        border: 0;
    }

    .ffn-board-row:hover td {
        background: none;
    }

    .ffn-board-picks .ffn-bk-kick {
        grid-area: kick;
        display: flex;
        align-items: baseline;
        gap: 0.4rem;
    }

    .ffn-board-picks .ffn-bk-kick .ffn-bk-sub {
        margin: 0;
    }

    .ffn-board-picks .ffn-bk-score {
        grid-area: score;
        display: flex;
        align-items: baseline;
        gap: 0.45rem;
        text-align: left;
    }

    .ffn-board-picks .ffn-bk-score .ffn-bk-sub {
        margin: 0;
    }

    .ffn-board-picks .ffn-bk-call {
        grid-area: call;
    }

    .ffn-board-picks .ffn-bk-call .ffn-bk-sub {
        display: none;
    }

    .ffn-board-picks .ffn-bk-duel {
        grid-area: duel;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ffn-board-row,
    .ffn-board-tab[aria-selected="true"]::after,
    .ffn-bk-pts::after,
    .ffn-duel-bar i,
    .ffn-board-skeleton span,
    .ffn-board-hint i,
    .ffn-board-jump i,
    .ffn-board-live i,
    .ffn-bk-kick b.is-live::before {
        animation: none;
    }
}

/* ---- High-signal desk (2026-09-26) ----
   NOW // High-Signal Stories as one card in the homepage table style (light header row,
   hairline rows, team-color edge, team ink headlines, team chips, pills like the board's
   Lock/Lean). Aligned to its section head; every story shows, nothing rotates.
   js/homepage-x-pulse.js renders it. */
/* The section head becomes the card's navy scoreboard strip, the same paint as the hero board. */
.ffn-pilot-home .ffn-home-x-pulse-section .ffn-pilot-section-head {
    position: relative;
    align-items: center;
    margin-bottom: 0;
    padding: 1rem 1.2rem 1.15rem;
    overflow: hidden;
    border: 0;
    border-radius: 1.2rem 1.2rem 0 0;
    background:
        radial-gradient(120% 220% at 100% 0%, rgba(47, 123, 255, 0.3), transparent 55%),
        #0b1a33;
    color: #8fb8ff;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.16em;
}

html[data-theme="dark"] .ffn-pilot-home .ffn-home-x-pulse-section .ffn-pilot-section-head {
    background:
        radial-gradient(120% 220% at 100% 0%, rgba(47, 123, 255, 0.3), transparent 55%),
        #061226;
}

.ffn-pilot-home .ffn-home-x-pulse-section .ffn-pilot-section-head span:first-child {
    color: #ffffff;
}

.ffn-pilot-home .ffn-home-x-pulse-section .ffn-pilot-section-head::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 6px;
    background: repeating-linear-gradient(90deg, rgba(214, 226, 245, 0.2) 0 2px, transparent 2px 18px);
    pointer-events: none;
}

.ffn-desk {
    --desk-thead: #f4f7fc;
    --desk-hover: rgba(0, 87, 255, 0.045);
    --desk-cols: 8.2rem minmax(0, 1fr) 3.4rem 7.6rem;
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid var(--ffn-ed-border);
    border-top: 0;
    border-radius: 0 0 1.2rem 1.2rem;
    background: var(--ffn-ed-surface);
    box-shadow: var(--ffn-ed-shadow-card);
}

html[data-theme="dark"] .ffn-desk {
    --desk-thead: #132238;
    --desk-hover: rgba(99, 180, 255, 0.07);
}

.ffn-desk-head,
.ffn-desk-row {
    display: grid;
    grid-template-columns: var(--desk-cols);
    gap: 1rem;
    align-items: center;
    padding: 0 1.2rem;
}

.ffn-desk-head {
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
    background: var(--desk-thead);
    color: var(--ffn-ed-text-soft);
    font-family: var(--ffn-ed-font-mono);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.ffn-desk-head span:nth-child(n + 3) {
    text-align: right;
}

.ffn-desk-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.ffn-desk-row {
    padding-top: 1rem;
    padding-bottom: 1rem;
    border-top: 1px solid var(--ffn-ed-border);
    box-shadow: inset 3px 0 0 var(--ffn-row-team-color, var(--ffn-ed-accent));
    animation: ffnBoardRow 0.5s calc(var(--i, 0) * 60ms) cubic-bezier(0.3, 0.7, 0.2, 1) both;
    transition: background-color 0.2s ease;
}

.ffn-desk-row:hover {
    background: var(--desk-hover);
}

/* Dark mode: lift dark team colors (navy, black) so the edge still shows on the dark surface. */
@supports (color: oklch(from red l c h)) {
    html[data-theme="dark"] .ffn-desk-row[data-team],
    html[data-theme="dark"] .ffn-board-ranks td:first-child {
        --desk-edge: oklch(from var(--ffn-row-team-color, #6b7280) max(l, 0.62) min(c, 0.2) h);
    }

    html[data-theme="dark"] .ffn-desk-row[data-team] {
        box-shadow: inset 3px 0 0 var(--desk-edge);
    }

    html[data-theme="dark"] .ffn-board-ranks td:first-child {
        box-shadow: inset 3px 0 0 var(--desk-edge);
    }
}

.ffn-desk-row.is-scanning {
    box-shadow: inset 3px 0 0 var(--ffn-ed-border-strong);
}

.ffn-desk-status {
    display: grid;
    justify-items: start;
    gap: 0.4rem;
}

.ffn-desk-pill {
    display: inline-block;
    padding: 0.24rem 0.55rem;
    border-radius: 999px;
    background: var(--ffn-ed-accent-soft, rgba(0, 87, 255, 0.1));
    color: var(--ffn-ed-accent);
    font-family: var(--ffn-ed-font-mono);
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.ffn-desk-pill.is-confirmed {
    background: rgba(10, 125, 79, 0.12);
    color: #086b43;
}

.ffn-desk-pill.is-analysis {
    background: rgba(180, 83, 9, 0.12);
    color: #b45309;
}

.ffn-desk-pill.is-archive,
.ffn-desk-pill.is-scanning {
    background: transparent;
    box-shadow: inset 0 0 0 1px var(--ffn-ed-border-strong);
    color: var(--ffn-ed-text-soft);
}

html[data-theme="dark"] .ffn-desk-pill {
    background: rgba(47, 123, 255, 0.18);
    color: #8fb8ff;
}

html[data-theme="dark"] .ffn-desk-pill.is-confirmed {
    background: rgba(74, 222, 128, 0.14);
    color: #4ade80;
}

html[data-theme="dark"] .ffn-desk-pill.is-analysis {
    background: rgba(251, 191, 36, 0.14);
    color: #fbbf24;
}

html[data-theme="dark"] .ffn-desk-pill.is-archive,
html[data-theme="dark"] .ffn-desk-pill.is-scanning {
    background: transparent;
    color: var(--ffn-ed-text-soft);
}

.ffn-desk-time,
.ffn-desk-handle {
    color: var(--ffn-ed-text-soft);
    font-family: var(--ffn-ed-font-mono);
    font-size: 0.68rem;
    font-weight: 600;
}

.ffn-desk-story {
    min-width: 0;
}

.ffn-desk-title {
    margin: 0;
    color: var(--ffn-team-ink, var(--ffn-ed-text));
    font-size: 1.12rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.ffn-desk-row.is-scanning .ffn-desk-title {
    color: var(--ffn-ed-text-soft);
    font-weight: 700;
}

.ffn-desk-impact {
    margin: 0.3rem 0 0;
    color: var(--ffn-ed-text-muted);
    font-size: 0.88rem;
    line-height: 1.5;
}

.ffn-desk-teams {
    display: grid;
    justify-items: end;
    gap: 0.3rem;
}

html[data-theme="dark"] .ffn-desk .hp-team-badge {
    box-shadow: inset 0 0 0 1px rgba(243, 247, 255, 0.16);
}

.ffn-desk-source {
    display: grid;
    justify-items: end;
    gap: 0.4rem;
    text-decoration: none;
}

.ffn-desk-open {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    min-height: 2rem;
    padding: 0 0.85rem;
    border: 1px solid rgba(0, 87, 255, 0.24);
    border-radius: 999px;
    background: rgba(0, 87, 255, 0.06);
    color: var(--ffn-ed-accent);
    font-family: var(--ffn-ed-font-mono);
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.ffn-desk-open i {
    font-style: normal;
}

a.ffn-desk-source:hover .ffn-desk-open {
    background: var(--ffn-ed-accent);
    color: #ffffff;
}

a.ffn-desk-source:focus-visible {
    outline: none;
}

a.ffn-desk-source:focus-visible .ffn-desk-open {
    outline: 2px solid var(--ffn-ed-accent);
    outline-offset: 2px;
}

html[data-theme="dark"] .ffn-desk-open {
    border-color: rgba(143, 184, 255, 0.3);
    background: rgba(47, 123, 255, 0.12);
    color: #8fb8ff;
}

html[data-theme="dark"] a.ffn-desk-source:hover .ffn-desk-open {
    background: #2f7bff;
    color: #ffffff;
}

@media (max-width: 640px) {
    .ffn-desk {
        border-radius: 0 0 1rem 1rem;
    }

    .ffn-pilot-home .ffn-home-x-pulse-section .ffn-pilot-section-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.4rem;
        border-radius: 1rem 1rem 0 0;
    }

    .ffn-desk-head {
        display: none;
    }

    /* Phone rows: status and team on top, story, then source. */
    .ffn-desk-row {
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "status teams"
            "story story"
            "source source";
        gap: 0.6rem;
        padding: 0.95rem 1rem;
    }

    .ffn-desk-list .ffn-desk-row:first-child {
        border-top: 0;
    }

    .ffn-desk-status {
        grid-area: status;
        display: flex;
        align-items: center;
        gap: 0.55rem;
    }

    .ffn-desk-teams {
        grid-area: teams;
        display: flex;
    }

    .ffn-desk-story {
        grid-area: story;
    }

    .ffn-desk-title {
        font-size: 1.02rem;
    }

    .ffn-desk-source {
        grid-area: source;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ffn-desk-row {
        animation: none;
    }
}

/* ---------- UI/UX sweep (2026-09-26 AM) ---------- */
/* Phone/tablet tool tiles: icon and label sit together on the left (space-between pushed one-line labels right). */
@media (max-width: 900px) {
    .ffn-tool {
        justify-content: flex-start;
    }
}

/* Featured analysis titles: match the site's heavy headline voice instead of the browser's light h3. */
.ffn-pilot-home .ffn-article-link h3 {
    margin: 0;
    color: var(--ffn-ed-text);
    font-size: clamp(1.25rem, 2.6vw, 1.7rem);
    font-weight: 850;
    line-height: 1.18;
    letter-spacing: -0.025em;
}

.ffn-pilot-home .ffn-article-link:hover h3,
.ffn-pilot-home .ffn-article-link:focus-visible h3 {
    color: var(--ffn-ed-accent);
}

/* Rankings leaderboard footer link: brand accent (legacy light blue failed contrast) and a real tap target. */
.ffn-pilot-home .player-list li.see-full-list a {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
    padding: 0 1rem;
    color: var(--ffn-ed-accent);
}

/* Dark mode: the active chip sits on the light accent, so it needs dark ink like other dark primary buttons. */
html[data-theme="dark"] .ffn-board-chip[aria-pressed="true"] {
    color: #041019;
}

/* Phones: one text gutter. Section heads sit at 32px; the about, featured and tools blocks
   were indented to 40px. */
@media (max-width: 640px) {
    .ffn-pilot-home .ffn-home-about-stack,
    .ffn-pilot-home .ffn-article-grid,
    .ffn-pilot-home .ffn-tools-wrap {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    .ffn-pilot-home .rankings-section {
        margin-left: 0;
        margin-right: 0;
    }
    /* "Browse all articles": on the text gutter, with a glow small enough not to be clipped
       into a pale box over the next section head. */
    .ffn-pilot-home .archive-actions {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    .ffn-pilot-home .archive-actions .ffn-pilot-button {
        box-shadow: 0 8px 18px rgba(0, 87, 255, 0.16);
    }
}
