/* ══════════════════════════════════════════════════════════════
   daryls.jnet.us — Daryls Fantasy Football Archive
   San Francisco 49ers colourway: red, gold, black.

   ⚠ GOLD IS THE TEXT ACCENT, RED IS STRUCTURAL. This is not a style
   preference — it's contrast. Measured against --bg (#040404):

       #B3995D  gold          7.45:1   fine for text
       #AA0000  49ers red     2.64:1   FAILS even the 3:1 graphic threshold
       #E5484D  error red     5.24:1   fine for text

   So the official 49ers red is only ever used as a FILL, RULE or BORDER
   (where nothing has to be read), never for type, links or small glyphs.
   Anything red that must be legible uses --red-bright instead. If you swap
   --gold for --red on a text rule, you have made the page unreadable.

   Minimum information-bearing text brightness: rgba(255,255,255,0.88).
   ══════════════════════════════════════════════════════════════ */

:root {
    /* Official 49ers brand colours: PMS 187C red, PMS 4525C gold. */
    --gold:       #B3995D;
    --gold-bright:#C9AE70;                  /* hover / emphasis */
    --gold-dim:   rgba(179,153,93,0.12);
    --gold-glow:  rgba(179,153,93,0.45);
    --red:        #AA0000;                  /* STRUCTURAL ONLY — see above */
    --red-bright: #E5484D;                  /* the readable red, for error text */
    --red-dim:    rgba(170,0,0,0.18);
    --red-glow:   rgba(170,0,0,0.60);
    --amber:      #fbbf24;
    --amber-dim:  rgba(251,191,36,0.10);
    --bg:         #040404;
    --surface:    #0f0f0f;
    --surface2:   #141414;
    --border:     rgba(255,255,255,0.18);
    --text:       #ffffff;
    --dim:        rgba(255,255,255,0.88);
    --dimmer:     rgba(255,255,255,0.55);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 860px; margin: 0 auto; padding: 3rem 1.25rem 4rem; }

/* ── Header ──
   The red rule is the one place the 49ers red carries real weight. It's a
   solid bar, not type, so the 2.64:1 contrast is irrelevant here. */
.hd {
    border-bottom: 3px solid var(--red);
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1.15rem;
}

/* The league avatar — Zack. Shown UNCROPPED: the source is square, so a square
   box needs no object-fit trickery and nothing of him is cut off. (The favicon
   is the one exception; see make_icons.sh.) No filter, no greyscale, no tint. */
.hd-avatar {
    width: 84px; height: 84px;
    flex: none;
    border-radius: 12px;
    border: 1px solid var(--border);
    display: block;
}
.hd-text { min-width: 0; }
.hd h1 {
    margin: 0;
    font-size: 2.5rem;
    letter-spacing: -0.02em;
    font-weight: 800;
}
.hd h1 span { color: var(--gold); }
.hd .tag { color: var(--dimmer); font-size: 0.85rem; margin-top: 0.35rem; }

/* ── Cards ── */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.25rem;
}
.card h2 {
    margin: 0 0 0.9rem;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--dimmer);
    font-weight: 700;
}
.card p { margin: 0 0 0.75rem; color: var(--dim); font-size: 0.92rem; }
.card p:last-child { margin-bottom: 0; }

/* ── Status banners ── */
.banner { border-radius: 10px; padding: 1.25rem 1.5rem; margin-bottom: 1.25rem; border: 1px solid; }
.banner h2 { margin: 0 0 0.5rem; font-size: 1rem; letter-spacing: 0; text-transform: none; }
.banner p  { margin: 0 0 0.5rem; font-size: 0.9rem; }
.banner p:last-child { margin-bottom: 0; }
.banner.ok   { background: var(--gold-dim); border-color: var(--gold-glow); }
.banner.ok h2 { color: var(--gold); }
.banner.warn { background: var(--amber-dim); border-color: rgba(251,191,36,0.35); }
.banner.warn h2 { color: var(--amber); }
/* Brand red for the fill/border (nothing to read), --red-bright for the heading. */
.banner.err  { background: var(--red-dim); border-color: var(--red-glow); }
.banner.err h2 { color: var(--red-bright); }

/* ── The OAuth code box ── */
.code-box {
    display: flex; align-items: center; gap: 0.6rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.7rem 0.85rem;
    margin: 0.85rem 0;
}
.code-box code {
    flex: 1; min-width: 0;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 1rem;
    color: var(--gold);
    word-break: break-all;
}
.btn {
    flex: none;
    background: var(--surface2);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    font-family: inherit;
    cursor: pointer;
}
.btn:hover { border-color: var(--gold); color: var(--gold-bright); }

/* The refresh control is an <a>, not a <button> — it's a plain GET that
   redirects, so it needs no JS and works with middle-click / back. */
.btn-go {
    display: inline-flex; align-items: center;
    text-decoration: none;
    background: var(--surface2);
    color: var(--gold);
    border: 1px solid var(--gold-glow);
    border-radius: 6px;
    padding: 0.42rem 0.85rem;
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
}
.btn-go:hover {
    text-decoration: none;
    color: var(--gold-bright);
    border-color: var(--gold);
    background: var(--gold-dim);
}

/* One-off CTA pulse — the "Rosters & pick your keeper" link on index.php,
   so it's the first thing the eye lands on instead of getting lost in the
   standings table above it. box-shadow + transform only (no blur, nothing
   animating width/height) per the stack's CSS perf rules, and it's a single
   button, not a page-wide habit. Stops for anyone who's asked their OS for
   reduced motion. */
.btn-pulse { animation: btn-pulse-glow 1.8s ease-in-out infinite; }
@keyframes btn-pulse-glow {
    0%, 100% { box-shadow: 0 0 0 0 var(--gold-glow); transform: scale(1); }
    50%      { box-shadow: 0 0 16px 4px var(--gold-glow); transform: scale(1.04); }
}
@media (prefers-reduced-motion: reduce) {
    .btn-pulse { animation: none; }
}

/* ── Toolbar: freshness + controls ──
   Sits above the cards so the two things a reader actually acts on — "is this
   current?" and "refresh it" — are visible without reading any prose. */
.toolbar {
    display: flex; align-items: center; justify-content: space-between;
    gap: 1rem; flex-wrap: wrap;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.7rem 0.9rem 0.7rem 1rem;
    margin-bottom: 0.75rem;
}
.tb-status { display: flex; align-items: center; gap: 0.55rem; flex-wrap: wrap; font-size: 0.85rem; }
.tb-fresh  { color: var(--dim); }
.tb-warn   { color: var(--amber); font-size: 0.8rem; }
.tb-actions { display: flex; align-items: center; gap: 0.9rem; flex-wrap: wrap; }

/* Freshness dot. Colour carries a duplicate of the text label, never the only
   signal — the label always says how old the data is. */
.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; display: inline-block; }
.dot.fresh   { background: var(--gold); box-shadow: 0 0 0 3px var(--gold-dim); }
.dot.aging   { background: var(--dimmer); }
.dot.stale   { background: var(--amber); box-shadow: 0 0 0 3px var(--amber-dim); }
.dot.unknown { background: var(--dimmer); }

/* ── Collapsible help ──
   The explanatory prose lives here instead of above the content. Closed by
   default: it answers a question you only ask once. */
.help {
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
    padding: 0.6rem 1rem;
    margin-bottom: 1.25rem;
}
.help > summary {
    cursor: pointer; color: var(--dimmer);
    font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700;
    list-style: none;
}
.help > summary::-webkit-details-marker { display: none; }
.help > summary::before { content: "\25B8"; display: inline-block; margin-right: 0.5rem; transition: transform 0.15s; }
.help[open] > summary::before { transform: rotate(90deg); }
.help > summary:hover { color: var(--gold); }
.help-body { padding-top: 0.75rem; }
.help-body p { color: var(--dim); font-size: 0.88rem; margin: 0 0 0.7rem; }

.btn.copied { border-color: var(--gold); color: var(--gold); }

pre.cmd {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.85rem 1rem;
    overflow-x: auto;
    margin: 0.5rem 0 0;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.8rem;
    color: var(--dim);
    line-height: 1.5;
}

/* ── Facts table ── */
table.facts { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
table.facts th, table.facts td {
    text-align: left; padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}
table.facts tr:last-child th, table.facts tr:last-child td { border-bottom: none; }
table.facts th { color: var(--dimmer); font-weight: 500; width: 40%; }
table.facts td { color: var(--dim); }

/* ── Nav ── */
.nav { margin-top: 0.6rem; font-size: 0.85rem; }
.nav a { margin-right: 1.1rem; }

/* ── Settings tables ──
   Three columns: label (+ optional note), decoded value, and Sleeper's raw
   "key = value". The raw column is deliberately quiet but still legible; it
   exists so an undocumented enum can be checked against the Sleeper app. */
table.set { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
table.set th, table.set td {
    text-align: left; padding: 0.45rem 0;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}
table.set tr:last-child th, table.set tr:last-child td { border-bottom: none; }
table.set th { color: var(--dim); font-weight: 500; width: 52%; padding-right: 0.75rem; }
table.set td.val {
    color: var(--text); font-weight: 600; width: 22%;
    font-variant-numeric: tabular-nums; white-space: nowrap;
}

.raw {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.75rem;
    color: var(--dimmer);
    word-break: break-word;
}
table.set td.raw { text-align: right; }

/* A note clarifies what a bare number means (e.g. "1 pt per 25 yds"). */
.note { display: block; color: var(--dimmer); font-size: 0.78rem; font-weight: 400; }
.muted { color: var(--dimmer); }
.seq { font-size: 0.82rem; color: var(--dim); margin: 0.9rem 0 0; }

/* ── Teams & owners ── */
table.owners { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
table.owners th, table.owners td {
    text-align: left; padding: 0.5rem 0.6rem 0.5rem 0;
    border-bottom: 1px solid var(--border);
}
table.owners thead th {
    color: var(--dimmer); font-weight: 500; font-size: 0.75rem;
    text-transform: uppercase; letter-spacing: 0.06em;
}
table.owners tbody tr:last-child th, table.owners tbody tr:last-child td { border-bottom: none; }
table.owners td.num { color: var(--dimmer); width: 2.5rem; font-variant-numeric: tabular-nums; }
table.owners td.owner { color: var(--gold); font-weight: 600; }
table.owners td.tname { color: var(--dim); }
table.owners tr.vacant td.owner { color: var(--dimmer); font-weight: 400; font-style: italic; }

details summary { cursor: pointer; color: var(--gold); font-size: 0.85rem; }
details[open] summary { margin-bottom: 0.5rem; }
pre.cmd { max-height: 26rem; overflow: auto; white-space: pre; }

/* ── Footer & data-source attribution ──
   See footer.php for the full rationale. The short version:

   • The Yahoo SVG is a WIDE WORDMARK inside a SQUARE canvas — ink occupies
     only x 62.3-230.8, y 135.1-158.0 of a 293x293 viewBox. Sizing it 24x24
     renders a 2px sliver. `.yf-mark` is an overflow window that crops the
     empty canvas; the image inside is scaled UNIFORMLY, so nothing is
     distorted and no Yahoo brand rule is broken.
   • "fantasy" in that logo is BLACK and invisible on our background, and
     recolouring it is forbidden — hence `.yf-chip`, a white plate behind it.

   Deliberately NOT applied to the Yahoo mark: filter, opacity, box-shadow,
   border, transform, or any non-uniform sizing. */
.ft {
    margin-top: 3rem; padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    font-size: 0.8rem; color: var(--dimmer);
    display: flex; justify-content: space-between; align-items: center;
    gap: 1.5rem; flex-wrap: wrap;
}
.ft-attr { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.ft-site { color: var(--dimmer); }

.attr {
    display: inline-flex; align-items: center; gap: 0.55rem;
    color: var(--dim); text-decoration: none;
}
.attr:hover { color: var(--gold-bright); text-decoration: underline; }

/* Sleeper's own published app mark. */
.sl-mark { width: 20px; height: 20px; flex: none; display: block; border-radius: 4px; }

/* White plate so the black half of the Yahoo wordmark is visible at all. */
.yf-chip {
    display: inline-flex; align-items: center;
    background: #fff;
    padding: 5px 8px;
    border-radius: 5px;
    flex: none;
}
/* Crop window onto the wordmark.
   These numbers are MEASURED ink bounds, not the clipPath rect in the file —
   the clipPath understates it and clips the "y" descender:
       convert yahoo-fantasy.svg -resize 2930x2930 png:- | convert - -format %@ info:
       -> ink occupies x 61.70, y 134.50, w 170.10, h 24.50  (6.94:1)
   For a displayed width W:  scale = W/170.10
       img = 293*scale   left = -61.70*scale   top = -134.50*scale   height = 24.50*scale
   W = 104px below. */
.yf-mark {
    display: block; position: relative;
    width: 104px; height: 15px;
    overflow: hidden;
}
.yf-mark img {
    position: absolute;
    width: 179.1px; height: 179.1px;   /* uniform scale — aspect untouched */
    left: -37.7px; top: -82.2px;
    display: block; max-width: none;
}

@media (max-width: 600px) {
    .ft { justify-content: flex-start; gap: 0.75rem; }
}

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-bright); text-decoration: underline; }

@media (max-width: 600px) {
    .wrap { padding: 2rem 1rem 3rem; }
    .hd h1 { font-size: 1.9rem; }
    .hd { gap: 0.9rem; }
    .hd-avatar { width: 64px; height: 64px; }
    table.facts th { width: 45%; }

    /* No room for three columns. The raw key=value is a verification aid, not
       content, so it's the one that goes on narrow screens. Desktop always
       shows it — there is no user-facing toggle. */
    table.set td.raw { display: none; }
    table.set th     { width: 62%; }
    table.set td.val { width: 38%; }
}

/* ── History page (history.php, added 2026-09-02) ── */
.lvl { font-size: 0.78rem; font-weight: 700; padding: 0.1rem 0.5rem; border-radius: 4px; }
.lvl-gold   { color: var(--gold); background: var(--gold-dim); }
.lvl-silver { color: rgba(255,255,255,0.75); background: rgba(255,255,255,0.08); }
.lvl-bronze { color: #cd8b5c; background: rgba(205,139,92,0.12); }

/* ── Draft countdown (index.php, added 2026-09-02 — draft night) ── */
.draft-countdown { text-align: center; border-color: var(--gold-glow); }
.draft-countdown h2 { color: var(--gold); font-size: 0.85rem; }
.dc-clock { display: flex; justify-content: center; gap: 1.5rem; margin: 0.5rem 0 0.75rem; }
.dc-unit { display: flex; flex-direction: column; align-items: center; min-width: 3.2rem; }
.dc-num {
    font-size: 2.4rem; font-weight: 800; color: var(--gold);
    font-variant-numeric: tabular-nums; line-height: 1;
    text-shadow: 0 0 18px var(--gold-glow);
}
.dc-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--dimmer); margin-top: 0.3rem; }
.dc-sub { font-size: 0.85rem; color: var(--dim); margin: 0; }
@media (max-width: 600px) {
    .dc-clock { gap: 0.9rem; }
    .dc-num { font-size: 1.8rem; }
    .dc-unit { min-width: 2.4rem; }
}

/* ── Keeper picker (keepers.php, added 2026-09-01) ──
   Reuses .card / .owners / .btn-go / .help / .banner from above rather than
   inventing a parallel set — only what's genuinely new lives here. */

.champ { color: var(--gold); }

/* Standings table gained a 7th column (2026 keeper) — needs its own line
   height since it wraps player + "picked by" onto two lines per cell. */
.keeper-cell { font-size: 0.85rem; line-height: 1.5; white-space: normal; }
.keeper-cell strong { color: var(--gold); }

.team-card h2 { color: var(--dim); font-size: 1.05rem; text-transform: none; letter-spacing: 0; font-weight: 700; }
.team-meta { font-size: 0.85rem; color: var(--dimmer); margin: 0 0 0.9rem; }

.pick-flash {
    font-size: 0.85rem; color: var(--gold);
    background: var(--gold-dim); border: 1px solid var(--gold-glow);
    border-radius: 8px; padding: 0.5rem 0.75rem; margin: 0 0 0.9rem;
}
.keeper-current { font-size: 0.9rem; color: var(--dim); margin: 0 0 1rem; }
.keeper-current strong { color: var(--gold); }
.locked-note { font-size: 0.82rem; margin: 0; }
.lock-warn { font-size: 0.78rem; margin: 0 0 0.6rem; }

/* Commissioner-locked player — struck through, with the ruling spelled out
   inline. Deliberately still LISTED rather than hidden: "why is McCaffrey
   missing?" is a worse question than seeing him greyed out with the reason. */
tr.inelig label { color: var(--dimmer); text-decoration: line-through; cursor: not-allowed; }
tr.inelig .pos  { opacity: 0.55; }
.inelig-tag {
    display: block; font-size: 0.72rem; color: var(--red-bright);
    text-decoration: none; margin-top: 0.1rem;
}

table.roster { width: 100%; border-collapse: collapse; font-size: 0.88rem; margin-bottom: 0.85rem; }
table.roster th {
    text-align: left; padding: 0.35rem 0.5rem 0.35rem 0;
    color: var(--dimmer); font-weight: 500; font-size: 0.72rem;
    text-transform: uppercase; letter-spacing: 0.05em;
    border-bottom: 1px solid var(--border);
}
table.roster td {
    padding: 0.4rem 0.5rem 0.4rem 0;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}
table.roster tbody tr:last-child td { border-bottom: none; }
table.roster label { color: var(--dim); cursor: pointer; }
table.roster input[type=radio] { accent-color: var(--gold); cursor: pointer; }

/* Position pill — quiet by default, a hair of colour so the offense/K/DEF/IDP
   groups scan at a glance without turning into a rainbow. */
.pos {
    display: inline-block; font-size: 0.68rem; font-weight: 700;
    letter-spacing: 0.03em; color: var(--dimmer);
    border: 1px solid var(--border); border-radius: 4px;
    padding: 0.1rem 0.4rem;
}
.pos-QB, .pos-RB, .pos-WR, .pos-TE { color: var(--dim); }
.pos-K, .pos-DEF { color: var(--dimmer); }

.pick-actions { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.pick-actions input[type=text] {
    flex: 1; min-width: 10rem;
    background: var(--bg); color: var(--text);
    border: 1px solid var(--border); border-radius: 6px;
    padding: 0.42rem 0.6rem; font-size: 0.85rem; font-family: inherit;
}
.pick-actions input[type=text]:focus { outline: none; border-color: var(--gold); }
.pick-actions button.btn-go { border: 1px solid var(--gold-glow); cursor: pointer; font-family: inherit; }

@media (max-width: 600px) {
    table.roster { font-size: 0.82rem; }
    table.roster th:last-child, table.roster td:last-child { display: none; } /* NFL team column */

    /* Standings table: 7 columns doesn't fit narrow screens. PF/PA are the
       least-asked-about numbers here — the keeper column is the new point of
       the page, so that's the one that has to stay. */
    table.owners th:nth-child(5), table.owners td:nth-child(5),
    table.owners th:nth-child(6), table.owners td:nth-child(6) { display: none; }
}

/* ── Draft results (draft.php, added 2026-09-02, post-draft) ── */
.keeper-tag {
    font-size: 0.66rem; font-weight: 700; letter-spacing: 0.04em;
    text-transform: uppercase; color: var(--gold);
    background: var(--gold-dim); border: 1px solid var(--gold-glow);
    border-radius: 3px; padding: 0.05rem 0.35rem; margin-left: 0.35rem;
    white-space: nowrap;
}

/* ── Player card (draft.php, added 2026-09-03) ──
   Click, not hover: hover has no equivalent on touch, and half this league
   reads the site on a phone. The trigger is a <button> rather than a styled
   <span> so it's keyboard-reachable and announces itself; it's restyled to
   look like inline text, not a chrome button. */
button.pcard-link {
    background: none; border: none; padding: 0; margin: 0;
    font: inherit; color: inherit; cursor: pointer; text-align: left;
    border-bottom: 1px dotted var(--dimmer);
}
button.pcard-link:hover { color: var(--gold); border-bottom-color: var(--gold); }
button.pcard-link:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.pcard-back {
    position: fixed; inset: 0; z-index: 50;
    background: rgba(0,0,0,0.72);
    display: flex; align-items: center; justify-content: center;
    padding: 1rem;
}
.pcard-back[hidden] { display: none; }
.pcard {
    position: relative;
    background: var(--surface); border: 1px solid var(--gold-glow);
    border-radius: 12px; padding: 1.5rem;
    width: 100%; max-width: 30rem;
    max-height: 85vh; overflow-y: auto;
}
.pcard-x {
    position: absolute; top: 0.6rem; right: 0.75rem;
    background: none; border: none; color: var(--dimmer);
    font-size: 1.6rem; line-height: 1; cursor: pointer; padding: 0.2rem 0.4rem;
}
.pcard-x:hover { color: var(--gold); }

.pc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; padding-right: 1.5rem; }
.pc-head h3 { margin: 0; font-size: 1.35rem; font-weight: 800; color: var(--text); letter-spacing: -0.01em; }
.pc-sub { color: var(--gold); font-size: 0.85rem; font-weight: 600; margin-top: 0.15rem; }
.pc-num { color: var(--dimmer); font-size: 1.5rem; font-weight: 800; font-variant-numeric: tabular-nums; }

.pc-badges { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-top: 0.75rem; }
.pc-badge {
    font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
    padding: 0.12rem 0.45rem; border-radius: 3px;
    color: var(--dimmer); background: rgba(255,255,255,0.06); border: 1px solid var(--border);
}
.pc-badge.warn { color: var(--red-bright); background: var(--red-dim); border-color: var(--red-glow); }
.pc-badge.ok   { color: var(--gold); background: var(--gold-dim); border-color: var(--gold-glow); }

/* Two-column definition list — label left, value right, one row per pair. */
dl.pc-bio {
    display: grid; grid-template-columns: 1fr auto;
    gap: 0.35rem 1rem; margin: 1rem 0 0; font-size: 0.88rem;
}
dl.pc-bio dt { color: var(--dimmer); }
dl.pc-bio dd { margin: 0; color: var(--dim); font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }

.pc-stat { margin-top: 1.25rem; border-top: 1px solid var(--border); padding-top: 0.9rem; }
.pc-stat h4 {
    margin: 0; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em;
    color: var(--dimmer); font-weight: 700;
}
.pc-stat h4 span { color: var(--gold); }
.pc-pts { margin-top: 0.4rem; font-size: 0.95rem; color: var(--dim); }
.pc-pts strong { color: var(--gold); font-size: 1.5rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.pc-none { font-size: 0.85rem; color: var(--dimmer); margin: 1.25rem 0 0; }
.pc-src { font-size: 0.72rem; color: var(--dimmer); margin: 1.25rem 0 0; text-align: center; }

@media (max-width: 600px) {
    .pcard { padding: 1.25rem; max-height: 90vh; }
    .pc-head h3 { font-size: 1.15rem; }
}

/* ── Standings + Scoreboard (added 2026-09-28, week 3) ───────────── */
.st-meta { font-size: 0.82rem !important; color: var(--dimmer) !important; }
.st-meta a { color: var(--gold); }
.st-foot { font-size: 0.78rem !important; color: var(--dimmer) !important; margin-top: 0.75rem !important; }
table.standings td.tname .tn { display: block; color: var(--text); font-weight: 600; }
table.standings td.tname .mgr { display: block; color: var(--dimmer); font-size: 0.78rem; }
table.standings td.rec { font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--text); }
table.standings .r { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.standings th.r { text-align: right; }
table.standings td.dimc { color: var(--dimmer); }
table.standings td.pf { position: relative; }
table.standings .pfbar { position: absolute; right: 0; top: 22%; height: 56%; background: var(--gold-dim); border-radius: 3px; }
table.standings .pfv { position: relative; }
table.standings .pos { color: var(--gold); }
table.standings .neg { color: var(--red-bright); }
table.standings td.strk { font-weight: 700; font-size: 0.82rem; }
table.standings tr.cutline td { border-bottom: 2px solid var(--gold); }

.weeks { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0 0 1rem; }
.weeks .wk { border: 1px solid var(--border); border-radius: 999px; padding: 0.25rem 0.8rem; font-size: 0.82rem; color: var(--dim); text-decoration: none; }
.weeks .wk:hover { border-color: var(--gold); color: var(--gold); }
.weeks .wk.on { background: var(--gold); border-color: var(--gold); color: #000; font-weight: 700; }
.pill { font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; border-radius: 999px; padding: 0.1rem 0.55rem; margin-left: 0.4rem; vertical-align: middle; }
.pill.final { background: var(--gold-dim); color: var(--gold); border: 1px solid var(--gold-glow); }
.pill.live { background: var(--red-dim); color: var(--red-bright); border: 1px solid var(--red-glow); }
.wkstats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0.6rem; margin: 0.25rem 0 1.1rem; }
.wkstats > div { background: var(--surface2); border: 1px solid var(--border); border-radius: 8px; padding: 0.55rem 0.7rem; display: grid; gap: 0.1rem; min-width: 0; }
.wkstats .k { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--dimmer); }
.wkstats b { font-size: 1.15rem; color: var(--gold); font-variant-numeric: tabular-nums; }
.wkstats .v { font-size: 0.8rem; color: var(--dim); overflow-wrap: anywhere; }
.games { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0.75rem; }
.game { border: 1px solid var(--border); border-radius: 10px; padding: 0.6rem 0.8rem; background: var(--surface2); }
.game .side { display: flex; justify-content: space-between; align-items: center; gap: 0.6rem; padding: 0.3rem 0; }
.game .side + .side { border-top: 1px solid var(--border); }
.game .tn { min-width: 0; color: var(--dim); overflow-wrap: anywhere; }
.game .mgr { display: block; font-size: 0.74rem; color: var(--dimmer); }
.game .pts { font-variant-numeric: tabular-nums; font-size: 1.1rem; color: var(--dim); white-space: nowrap; }
.game .side.win .tn, .game .side.lead .tn { color: var(--text); font-weight: 700; }
.game .side.win .pts { color: var(--gold); font-weight: 700; }
.game .side.lead .pts { color: var(--text); font-weight: 700; }
.game .margin { font-size: 0.74rem; color: var(--dimmer); text-align: right; margin-top: 0.2rem; }
@media (max-width: 560px) {
    table.standings th:nth-child(5), table.standings td:nth-child(5) { display: none; }
}

/* ══ "Dazzle" pass (2026-09-29, Joel: "make this page pop"). Home hero, leader spotlight,
   week-in-review tiles, standings medallions / monograms / streak pills / animated PF bars.
   Also fixes the standings +/- and streak cells, which used the global .pos (position pill)
   class and rendered as floating boxes: standings now use .up/.dn.
   Everything animated switches off under prefers-reduced-motion.
   Revert: delete this block + restore ~/daryls-bak-20260929/{standings_card,index}.php. ══ */

/* hero */
.hd-fx { position: relative; isolation: isolate; }
.hd-fx::before {
    content: ""; position: absolute; inset: -40px -60px -10px; z-index: -1; pointer-events: none;
    background: radial-gradient(420px 160px at 18% 45%, rgba(170,0,0,0.28), transparent 70%),
                radial-gradient(360px 140px at 62% 30%, rgba(179,153,93,0.16), transparent 70%);
    filter: blur(6px);
}
.hd-fx h1 {
    background: linear-gradient(100deg, #fff 0%, #fff 38%, var(--gold-bright) 46%, #fff6dd 50%, var(--gold) 56%, #fff 64%, #fff 100%);
    background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
    animation: dzShine 7s ease-in-out infinite;
}
.hd-fx h1 span { color: transparent; }
.hd-fx .hd-avatar { box-shadow: 0 0 0 2px var(--gold-glow), 0 8px 26px rgba(170,0,0,0.35); border-radius: 12px; }
@keyframes dzShine { 0%, 100% { background-position: 100% 0; } 50% { background-position: 0 0; } }

/* leader spotlight */
.spot {
    position: relative; margin-bottom: 1.25rem; border-radius: 14px; padding: 1.3rem 1.4rem 1.2rem;
    background: linear-gradient(135deg, rgba(170,0,0,0.22), rgba(20,20,20,0.9) 45%, rgba(179,153,93,0.14));
    border: 1px solid transparent; background-clip: padding-box; overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5), inset 0 0 0 1px rgba(179,153,93,0.35);
}
.spot::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(115deg, transparent 30%, rgba(255,240,200,0.08) 45%, transparent 60%);
    background-size: 250% 100%; animation: dzSweep 6s ease-in-out infinite;
}
@keyframes dzSweep { 0% { background-position: 120% 0; } 60%, 100% { background-position: -120% 0; } }
.spot-lead { display: flex; align-items: center; gap: 1rem; position: relative; }
.spot-crown { position: absolute; left: 22px; top: -20px; font-size: 1.35rem; transform: rotate(-14deg);
    filter: drop-shadow(0 2px 6px rgba(179,153,93,0.7)); animation: dzBob 3.2s ease-in-out infinite; }
@keyframes dzBob { 0%, 100% { transform: rotate(-14deg) translateY(0); } 50% { transform: rotate(-10deg) translateY(-3px); } }
.spot-txt { min-width: 0; }
.spot-k { font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.spot-name { font-size: 1.7rem; font-weight: 800; line-height: 1.15; color: #fff; overflow-wrap: anywhere;
    text-shadow: 0 0 22px rgba(179,153,93,0.35); }
.spot-sub { color: var(--dim); font-size: 0.9rem; margin-top: 0.15rem; }
.spot-sub b { color: #fff; font-variant-numeric: tabular-nums; }
.spot-wk { margin: 1.15rem 0 0.55rem; color: var(--dimmer); }
.spot-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0.6rem; position: relative; }
.tile {
    display: grid; gap: 0.05rem; min-width: 0; padding: 0.65rem 0.8rem; border-radius: 10px;
    background: rgba(0,0,0,0.45); border: 1px solid rgba(255,255,255,0.1);
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
    animation: dzUp .5s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(0.25s + var(--i) * 0.08s);
}
.tile:hover { transform: translateY(-3px); border-color: var(--gold-glow); box-shadow: 0 8px 22px rgba(0,0,0,0.5); }
.tile-ic { font-size: 1.1rem; line-height: 1; }
.tile-k { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--dimmer); margin-top: 0.3rem; }
.tile b { font-size: 1.3rem; color: var(--gold-bright); font-variant-numeric: tabular-nums; }
.tile-v { font-size: 0.8rem; color: var(--dim); overflow-wrap: anywhere; }

/* monograms */
.mono {
    --h: 40; flex: none; display: inline-grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 50%;
    font-size: 0.72rem; font-weight: 800; letter-spacing: 0.02em; color: #fff;
    background: linear-gradient(145deg, hsl(var(--h) 55% 42%), hsl(calc(var(--h) + 40) 60% 22%));
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.18), 0 2px 8px rgba(0,0,0,0.5);
}
.mono-xl { width: 4.2rem; height: 4.2rem; font-size: 1.35rem;
    box-shadow: inset 0 0 0 2px rgba(255,255,255,0.2), 0 0 0 3px var(--gold), 0 0 28px var(--gold-glow); }

/* standings card + table */
.card-st { box-shadow: 0 10px 34px rgba(0,0,0,0.45); }
table.standings.fx .tcell { display: flex; align-items: center; gap: 0.7rem; }
table.standings.fx .tnw { min-width: 0; }
table.standings.fx tbody tr { animation: dzUp .45s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--i) * 0.045s);
    transition: background .18s ease; }
table.standings.fx tbody tr:hover { background: rgba(179,153,93,0.07); }
table.standings.fx tbody tr.leader { background: linear-gradient(90deg, rgba(179,153,93,0.16), transparent 70%); }
table.standings.fx tbody tr.leader td:first-child { box-shadow: inset 3px 0 0 var(--gold); }
@keyframes dzUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.rk { display: inline-grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: 50%;
    font-weight: 800; font-size: 0.8rem; color: var(--dimmer); font-variant-numeric: tabular-nums; }
.rk1, .rk2, .rk3 { color: #111; }
.rk1 { background: radial-gradient(circle at 30% 30%, #fff1c2, #d9b45a 55%, #8f6d24); box-shadow: 0 0 12px var(--gold-glow); }
.rk2 { background: radial-gradient(circle at 30% 30%, #ffffff, #c4c9cf 55%, #7c838b); }
.rk3 { background: radial-gradient(circle at 30% 30%, #ffe0c2, #c98a4f 55%, #7a4a22); }
table.standings.fx .pfbar {
    background: linear-gradient(90deg, rgba(179,153,93,0.05), rgba(179,153,93,0.30));
    transform-origin: right center; animation: dzGrow .9s cubic-bezier(.2,.8,.2,1) both;
    animation-delay: calc(0.2s + var(--i) * 0.05s);
}
@keyframes dzGrow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
table.standings .up { color: var(--gold-bright); }
table.standings .dn { color: var(--red-bright); }
.pill-s { display: inline-block; min-width: 2.1rem; text-align: center; font-size: 0.72rem; font-weight: 800;
    letter-spacing: 0.04em; padding: 0.1rem 0.45rem; border-radius: 999px; font-variant-numeric: tabular-nums; }
.pill-s.w { color: #10230f; background: linear-gradient(135deg, #b8f06a, #57c26b); }
.pill-s.l { color: #fff; background: linear-gradient(135deg, #e5484d, #8a0f14); }
table.standings.fx tr.cutline td { border-bottom: 2px solid var(--gold); position: relative; }
table.standings.fx tr.cutline td.tname::after {
    content: "PLAYOFF LINE"; position: absolute; left: 0; bottom: -0.55rem; white-space: nowrap; z-index: 1; font-size: 0.56rem; font-weight: 800;
    letter-spacing: 0.12em; color: #111; background: var(--gold); padding: 0.05rem 0.45rem; border-radius: 999px;
}
@media (max-width: 560px) {
    .spot-name { font-size: 1.35rem; } .mono-xl { width: 3.3rem; height: 3.3rem; font-size: 1.05rem; }
    table.standings.fx .mono { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .hd-fx h1, .spot::after, .spot-crown, .tile, table.standings.fx tbody tr, table.standings.fx .pfbar { animation: none !important; }
}
@media (max-width: 560px) { .spot-tiles { grid-template-columns: 1fr 1fr; } .tile b { font-size: 1.1rem; } }
table.standings.fx th { white-space: nowrap; }
