/* Fantasy Producers: the game's own look (the live page and the testnet practice page), on the site tokens in
 * styles.css. Matchday language: a stadium scoreboard up top (navy, a gold clock), and the signature piece, your five
 * producers in jerseys on a basketball court (owner, Nov 2026), captain at the hoop with the gold "C". Everything else stays
 * quiet: plain cards, a draft board, a fixture strip. Producers keep one colour everywhere (a hash of the address). */

.fx {
  --wood: #C98B4E; --wood-2: #B97A40; --wood-3: #D69B5F; --chalk: rgba(255, 255, 255, .82); --paint: rgba(242, 92, 193, .30);
  --pitch: var(--wood); --pitch-2: var(--wood-2);
  --stadium: #101B33; --gold: var(--sun); --kick: var(--tang);
  --wide: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  max-width: 1180px; margin: 0 auto; padding: 18px 16px 72px;
}
.fx h2 { font-family: var(--wide); font-weight: 800; font-stretch: 112%; font-size: 21px; letter-spacing: -.01em; margin: 0; }
.fx h3 { font-family: var(--display); font-weight: 700; font-size: 16px; margin: 16px 0 8px; }
.fx .status { font-size: 14px; color: var(--muted); margin: 10px 0 0; }
.fx .status:empty, .fx .status[hidden] { display: none; }
.fx .note { font-size: 13px; color: var(--muted); margin: 10px 0 0; }
.fx .mono { font-family: ui-monospace, Consolas, monospace; font-size: 12.5px; }
.fx .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.fx button { font: inherit; cursor: pointer; }
.fx button:focus-visible, .fx a:focus-visible, .fx input:focus-visible, .fx select:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.fx button[disabled] { cursor: not-allowed; }

/* ── scoreboard ── */
.fx-hero { background: var(--stadium); color: var(--navy-ink); border-radius: 28px; padding: 26px 26px 18px; position: relative; overflow: hidden; isolation: isolate; }
.fx-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(60% 90% at 100% 0%, rgba(242, 179, 61, .16), transparent 60%),
  radial-gradient(50% 80% at 0% 0%, rgba(124, 194, 156, .14), transparent 60%); }
.fx-hero-in { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px 28px; align-items: end; }
.fx-kicker { margin: 0 0 10px; font-size: 14px; font-weight: 700; color: var(--navy-muted); }
.fx-hero h1 { font-family: var(--wide); font-weight: 900; font-stretch: 118%; font-size: clamp(32px, 5.2vw, 60px); line-height: .96; letter-spacing: -.015em; margin: 0; max-width: 15ch; text-wrap: balance; }
.fx-lede { margin: 14px 0 0; max-width: 56ch; color: var(--navy-muted); font-size: 16px; }
.fx-clock { text-align: right; padding: 14px 18px; border-radius: 18px; background: rgba(0, 0, 0, .28); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); min-width: 220px; }
.fx-clock-l { display: block; font-size: 13px; color: var(--navy-muted); font-weight: 700; }
.fx-clock-n { display: block; font-family: var(--wide); font-weight: 900; font-stretch: 125%; font-size: clamp(34px, 4.4vw, 50px); line-height: 1.05; color: var(--gold); font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.fx-clock-s { display: block; font-size: 13px; color: var(--navy-muted); }
.fx-board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 22px; border-top: 1px solid rgba(255, 255, 255, .12); }
.fx-board[hidden] { display: none; }
.fx-board > div { padding: 14px 4px 4px; min-width: 0; }
.fx-board > div + div { padding-left: 18px; border-left: 1px solid rgba(255, 255, 255, .12); }
.fx-board b { display: block; font-family: var(--wide); font-weight: 900; font-stretch: 112%; font-size: 30px; line-height: 1.1; font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx-board span { font-size: 13px; color: var(--navy-muted); }
.fx-next { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; margin-top: 18px; padding: 12px 14px; border-radius: 16px; background: var(--navy-ink); color: var(--navy); }
.fx-next:empty { display: none; }
.fx-next-l { font-family: var(--wide); font-weight: 900; font-stretch: 112%; font-size: 13px; padding: 4px 10px; border-radius: 99px; background: var(--kick); color: var(--tang-ink); }
.fx-next-t { flex: 1 1 260px; font-weight: 700; font-size: 15px; }
.fx-next button { border: 0; border-radius: 99px; padding: 8px 16px; font-weight: 800; font-size: 14px; background: var(--navy); color: var(--navy-ink); }
@media (max-width: 760px) {
  .fx-hero { padding: 20px 18px 16px; border-radius: 22px; }
  .fx-hero-in { grid-template-columns: 1fr; }
  .fx-clock { text-align: left; min-width: 0; }
  .fx-board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fx-board > div:nth-child(3) { padding-left: 4px; border-left: 0; }
  .fx-board b { font-size: 24px; }
}

/* ── section tabs ── */
.fx-nav { position: sticky; top: 58px; z-index: 15; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; margin: 14px -16px 0; padding: 8px 16px;
  background: color-mix(in srgb, var(--paper) 90%, transparent); backdrop-filter: blur(10px); }
.fx-nav::-webkit-scrollbar { display: none; }
.fx-nav a { flex: none; text-decoration: none; color: var(--muted); font-weight: 700; font-size: 14px; padding: 8px 14px; border-radius: 99px; }
.fx-nav a:hover { color: var(--ink); background: var(--surface); }
.fx-nav a[aria-current] { color: var(--surface); background: var(--ink); }
.fx section[id], .fx details[id] { scroll-margin-top: 120px; }

.fx-remind { margin: 12px 0 0; padding: 12px 16px; border-radius: 14px; background: var(--sun-soft); border: 1px solid var(--gold); color: var(--ink); font-size: 15px; }

/* ── layout ── */
.fx-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 18px; margin-top: 14px; align-items: start; }
.fx-side { display: grid; gap: 18px; }
.fx-cols { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 18px; margin-top: 18px; align-items: start; }
@media (max-width: 980px) { .fx-grid, .fx-cols { grid-template-columns: 1fr; } }
.fx-card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 18px; min-width: 0; }
.fx-draft { margin-top: 18px; }
.fx-head { display: flex; justify-content: space-between; align-items: baseline; gap: 4px 14px; flex-wrap: wrap; margin-bottom: 12px; }
.fx-head p { margin: 0; color: var(--muted); font-size: 13.5px; }

/* ── the team sheet: the pitch ── */
.fx-sheet { background: var(--stadium); color: var(--navy-ink); border-radius: 26px; padding: 18px; min-width: 0; }
.fx-sheet-top { display: flex; justify-content: space-between; align-items: center; gap: 8px 16px; flex-wrap: wrap; padding: 2px 4px 0; }
.fx-sheet h2 { font-size: 20px; }
.fx-for-s { display: block; font-family: var(--body); font-weight: 400; font-stretch: 100%; font-size: 13px; color: var(--navy-muted); margin-top: 2px; }
.fx-lock { display: inline-flex; flex-direction: column; align-items: flex-end; text-align: right; margin-left: auto; font-size: 12px; color: var(--navy-muted); }
.fx-lock b { font-family: var(--wide); font-weight: 900; font-stretch: 112%; font-size: 20px; color: var(--navy-ink); font-variant-numeric: tabular-nums; }
.fx-plan { display: flex; gap: 6px; align-items: center; margin: 14px 0 0; overflow-x: auto; scrollbar-width: thin; padding-bottom: 2px; }
.fx-plan[hidden] { display: none; }
.fx-plan .lbl { flex: none; color: var(--navy-muted); font-weight: 700; font-size: 13px; margin-right: 2px; }
.fx-plan button { flex: none; position: relative; display: inline-flex; flex-direction: column; align-items: flex-start; gap: 0; padding: 6px 14px 7px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .04); color: var(--navy-ink); text-align: left; }
.fx-plan button .d { font-weight: 800; font-size: 13.5px; }
.fx-plan button .s { font-size: 11.5px; color: var(--navy-muted); }
.fx-plan button[aria-pressed="true"] { background: var(--navy-ink); color: var(--navy); border-color: var(--navy-ink); }
.fx-plan button[aria-pressed="true"] .s { color: #4c5874; }
.fx-dotsaved { position: absolute; top: 6px; right: 6px; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }

.fx-pitch { position: relative; margin-top: 14px; border-radius: 20px; overflow: hidden; padding: 26px 14px 22px;
  /* the court: maple planks (thin seams every 22px over three soft tones), chalk lines, the paint in Fantasy's pink */
  background:
    repeating-linear-gradient(90deg, rgba(60, 30, 8, .16) 0 1px, transparent 1px 22px),
    repeating-linear-gradient(90deg, var(--wood) 0 66px, var(--wood-3) 66px 132px, var(--wood-2) 132px 198px);
  box-shadow: inset 0 0 0 3px var(--chalk), inset 0 18px 40px rgba(40, 18, 4, .22); }
.fx-lines i { position: absolute; border: 2px solid var(--chalk); pointer-events: none; }
.fx-lines .backboard { left: 42%; right: 42%; top: 10px; height: 0; border-width: 3px 0 0; }
.fx-lines .rim { left: 50%; top: 14px; width: 18px; height: 18px; transform: translateX(-50%); border-radius: 50%; border-color: #F47B20; }
.fx-lines .box { left: 33%; right: 33%; top: -3px; height: 34%; border-top: 0; background: var(--paint); }
.fx-lines .arc { left: 50%; top: calc(34% - 3px); width: 34%; aspect-ratio: 1; max-width: 140px; transform: translate(-50%, -50%); border-radius: 50%; }
.fx-lines .three { left: 7%; right: 7%; top: -3px; height: 58%; border-top: 0; border-radius: 0 0 50% 50% / 0 0 100% 100%; }
.fx-lines .half { left: -2px; right: -2px; top: 93%; height: 0; border-width: 2px 0 0; }
.fx-lines .circle { left: 50%; top: 93%; width: 120px; height: 120px; transform: translate(-50%, -50%); border-radius: 50%; }
.fx-slots { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-areas: ". c c ." "a a b b" "d d e e"; gap: 18px 10px; justify-items: center; }
.fx-slot { width: min(200px, 100%); display: flex; flex-direction: column; align-items: center; text-align: center; min-width: 0; }
.fx-slot.p0 { grid-area: c; } .fx-slot.p1 { grid-area: a; } .fx-slot.p2 { grid-area: b; } .fx-slot.p3 { grid-area: d; } .fx-slot.p4 { grid-area: e; }
.fx-kitwrap { position: relative; display: inline-block; }
.fx-slot .fx-kit { width: 68px; height: 64px; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .3)); }
.fx-slot.cap .fx-kit { width: 80px; height: 75px; }
.fx-band { position: absolute; right: -6px; top: 2px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-family: var(--wide); font-weight: 900; font-size: 14px; background: var(--gold); color: var(--tang-ink); box-shadow: 0 0 0 3px var(--pitch); }
.fx-slot .who, .fx-slot .meta, .fx-slot .acts { position: relative; }
.fx-slot .who { margin-top: 4px; max-width: 100%; padding: 4px 10px; border-radius: 8px 8px 0 0; background: var(--navy-ink); color: var(--navy); font-weight: 800; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx-slot .meta { max-width: 100%; padding: 2px 10px 3px; border-radius: 0 0 8px 8px; background: rgba(10, 18, 36, .72); color: var(--navy-muted); font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fx-slot .meta b { color: var(--gold); font-family: var(--wide); font-weight: 800; }
.fx-slot.cap .who { box-shadow: 0 0 0 2px var(--gold); }
.fx-slot .acts { display: flex; gap: 6px; margin-top: 6px; align-items: center; }
.fx-slot .acts button { font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 99px; border: 1px solid rgba(255, 255, 255, .34); background: rgba(10, 18, 36, .35); color: var(--navy-ink); }
.fx-slot .acts button:hover { background: rgba(10, 18, 36, .6); }
.fx-slot .acts .x { width: 26px; height: 26px; padding: 0; display: grid; place-items: center; font-size: 11px; }
.fx-capt { font-size: 12px; font-weight: 800; color: var(--gold); background: rgba(10, 18, 36, .72); border-radius: 99px; padding: 3px 9px; }
.fx-open { display: flex; flex-direction: column; align-items: center; gap: 0; width: 100%; border: 0; background: transparent; color: var(--navy-ink); padding: 0; }
.fx-open .fx-kit.ghost { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-family: var(--wide); font-size: 30px; font-weight: 700; color: #fff; border: 2px dashed rgba(255, 255, 255, .85); background: rgba(40, 18, 4, .42); }
.fx-slot.p0 .fx-open .fx-kit.ghost { border-color: var(--gold); color: var(--gold); width: 74px; height: 74px; }
.fx-open .who { background: rgba(255, 248, 241, .92); }
.fx-open:hover .fx-kit.ghost { background: rgba(40, 18, 4, .6); }
.fx-open[disabled] { opacity: .55; }
/* dark theme: the same court, in darker wood so it doesn't glare */
:root[data-theme="dark"] .fx { --wood: #8A5A2F; --wood-2: #7C4F28; --wood-3: #956336; --chalk: rgba(255, 255, 255, .7); --paint: rgba(242, 92, 193, .26); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .fx { --wood: #8A5A2F; --wood-2: #7C4F28; --wood-3: #956336; --chalk: rgba(255, 255, 255, .7); --paint: rgba(242, 92, 193, .26); } }
@media (max-width: 520px) {
  .fx-pitch { padding: 20px 6px 16px; }
  .fx-slots { gap: 14px 6px; }
  .fx-slot .fx-kit { width: 56px; height: 52px; } .fx-slot.cap .fx-kit { width: 66px; height: 62px; }
  .fx-slot .who { font-size: 12.5px; padding: 3px 8px; } .fx-slot .meta { font-size: 11px; padding: 2px 6px; }
}

/* the cap bar and saving */
.fx-cap { margin-top: 16px; padding: 0 4px; }
.fx-budget { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; font-size: 13px; color: var(--navy-muted); }
.fx-budget-l { font-weight: 700; }
.fx-budget-n b { font-family: var(--wide); font-weight: 900; font-stretch: 112%; font-size: 22px; color: var(--navy-ink); font-variant-numeric: tabular-nums; }
.fx-left { margin-left: auto; font-weight: 700; color: var(--navy-ink); }
.fx-bar { height: 12px; border-radius: 99px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.fx-bar i { display: block; height: 100%; width: var(--p, 0%); border-radius: inherit; background: linear-gradient(90deg, #5CCB9A, var(--gold)); transition: width .35s ease; }
.fx-bar.over i { background: #F08B74; }
.fx-check { margin: 14px 4px 0; font-size: 14.5px; min-height: 1.3em; color: var(--navy-ink); }
.fx-check.bad { color: #FFB4A3; } .fx-check.ok { color: #9FE3C4; }
.fx-sheet-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: 14px 4px 2px; }
.fx-saved { flex: 1 1 240px; font-size: 13.5px; color: var(--navy-muted); }
.fx-saved b { color: var(--gold); }
.fx-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.fx-save { font-family: var(--wide); font-weight: 900; font-stretch: 112%; font-size: 17px; padding: 14px 28px; border-radius: 99px; border: 0; background: var(--kick); color: var(--tang-ink); box-shadow: 0 6px 0 #C9642F; transition: transform .08s; }
.fx-save:active:not([disabled]) { transform: translateY(3px); box-shadow: 0 3px 0 #C9642F; }
.fx-save[disabled] { background: rgba(255, 255, 255, .12); color: var(--navy-muted); box-shadow: none; }
.fx-ghost { font-size: 14px; font-weight: 700; padding: 10px 16px; border-radius: 99px; border: 1px solid rgba(255, 255, 255, .3); background: transparent; color: var(--navy-ink); }
.fx-ghost[hidden] { display: none; }
.fx-share { margin: 10px 0 0; font-size: 13px; color: var(--navy-muted); }
.fx-share[hidden] { display: none; }
@media (max-width: 520px) { .fx-btns, .fx-save { width: 100%; } .fx-btns { flex-direction: column-reverse; } }

/* ── draft board ── */
.fx-tools { display: flex; gap: 10px 14px; flex-wrap: wrap; align-items: center; margin-bottom: 8px; }
.fx-search { flex: 1 1 240px; display: flex; align-items: center; gap: 8px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--paper); }
.fx-search svg { width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; flex: none; }
.fx-search input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--ink); font: inherit; font-size: 15px; padding: 10px 0; }
.fx-search input:focus-visible { outline: 0; }
.fx-search:focus-within { outline: 3px solid var(--gold); outline-offset: 1px; }
.fx-next[hidden] { display: none; }   /* RL6 audit 7: hidden when the game's files fail */
/* Season so far (IDEAS #7) */
.fx-season { margin: 10px 0 0; font-size: 13px; color: var(--navy-muted); }
.fx-season[hidden] { display: none; }
/* Price movers (IDEAS #5): change from last week's price */
.fx-move { display: block; font-size: 11px; font-weight: 700; line-height: 1.1; margin-top: 2px; white-space: nowrap; }
.fx-move.up { color: var(--rose); }
.fx-move.down { color: var(--mint); }
.fx-move.new { color: var(--navy-muted); font-weight: 600; }
/* 320 px: the players table's hidden header text (.sr, absolute) and the search box made the page 15 px wider than the
   screen when the Players row is open. Keep both inside. */
.fx-scroll { position: relative; }
.fx-search { min-width: 0; max-width: 100%; box-sizing: border-box; }
.fx-filter { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.fx-filter-l { font-size: 13px; color: var(--muted); font-weight: 700; margin-right: 4px; }
.fx-filter button { font-size: 13.5px; font-weight: 700; padding: 7px 12px; border-radius: 99px; border: 1px solid var(--line); background: transparent; color: var(--ink); }
.fx-filter button[aria-pressed="true"] { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.fx-seg { margin-bottom: 10px; }
.fx-scroll { overflow-x: auto; margin: 0 -6px; }
table.fx-t { width: 100%; border-collapse: collapse; font-size: 14px; }
.fx-t th, .fx-t td { text-align: left; padding: 9px 6px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.fx-t th { font-size: 12.5px; color: var(--muted); font-weight: 700; }
.fx-t .num { text-align: right; font-variant-numeric: tabular-nums; }
.fx-t tbody tr:last-child td { border-bottom: 0; }
.fx-pool tbody tr:hover td { background: color-mix(in srgb, var(--paper) 70%, transparent); }
.fx-pool tr.on td { background: var(--violet-soft); }
.fx-pool tr.on td:first-child { box-shadow: inset 4px 0 0 var(--violet); }
.fx-t button { font-size: 13px; font-weight: 800; padding: 6px 14px; border-radius: 99px; border: 1.5px solid var(--ink); background: var(--surface); color: var(--ink); min-width: 74px; }
.fx-t button:hover:not([disabled]) { background: var(--ink); color: var(--surface); }
.fx-t button.rm { background: var(--violet); color: var(--violet-ink); border-color: var(--violet); }
.fx-t button.over { border-style: dashed; color: var(--muted); border-color: var(--muted); }
.fx-t button[disabled] { opacity: .4; }
.fx-none { text-align: center !important; color: var(--muted); padding: 20px 6px !important; }
.fx-name { display: inline-flex; align-items: center; gap: 10px; min-width: 0; max-width: 100%; }
.fx-name .nm { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx-own { font-size: 11px; font-weight: 800; padding: 2px 7px; border-radius: 99px; background: var(--sun-soft); color: var(--ink); border: 1px solid var(--gold); white-space: nowrap; }
.fx-th-form { min-width: 120px; }
.fx-meter { display: inline-flex; align-items: center; gap: 8px; font-variant-numeric: tabular-nums; }
.fx-meter i { display: block; width: 70px; height: 6px; border-radius: 99px; background: linear-gradient(90deg, currentColor var(--p, 0%), var(--line) var(--p, 0%)); color: var(--muted); }
.fx-meter b { font-family: var(--wide); font-weight: 700; min-width: 40px; }
.fx-meter.hi i { color: var(--mint); } .fx-meter.hi b { color: var(--mint); }
.fx-meter.lo i { color: var(--rose); } .fx-meter.lo b { color: var(--rose); }
.fx-form { display: inline-block; min-width: 46px; font-family: var(--wide); }
.fx-form.hi { color: var(--mint); font-weight: 800; } .fx-form.lo { color: var(--rose); font-weight: 800; }
.fx-price { display: inline-block; min-width: 40px; padding: 3px 8px; border-radius: 8px; background: var(--navy); color: var(--gold); font-family: var(--wide); font-weight: 900; font-stretch: 112%; text-align: center; }
@media (max-width: 640px) {
  .fx-tools .fx-filter { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; width: 100%; } .fx-tools .fx-filter button { flex: none; }
  .fx-t .hide-sm { display: none; }
  .fx-meter i { display: none; } .fx-th-form { min-width: 0; }
  .fx-pool .fx-name { gap: 7px; } .fx-pool .fx-name .nm { max-width: 11ch; }
  .fx-t th, .fx-t td { padding: 9px 4px; }
  .fx-t button { min-width: 0; padding: 6px 11px; }
  .fx-pool button.rm { font-size: 0; width: 32px; height: 32px; padding: 0; } .fx-pool button.rm::before { content: "✕"; font-size: 12px; }
}

/* the kit */
.fx-kit { display: inline-block; flex: none; width: 30px; height: 28px; }
.fx-kit svg { display: block; width: 100%; height: 100%; overflow: visible; }
.fx-kit .body { fill: var(--c, #5b6b8f); }
.fx-kit .trim { fill: rgba(255, 255, 255, .85); }
.fx-kit .sleeve { fill: rgba(0, 0, 0, .22); }
.fx-kit text { font-family: var(--wide); font-weight: 900; font-size: 17px; fill: #fff; paint-order: stroke; stroke: rgba(0, 0, 0, .5); stroke-width: 3px; stroke-linejoin: round; }
.fx-kit.sm { width: 28px; height: 26px; }

/* ── my week ── */
.fx-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.fx-day { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 2px; border-radius: 12px; background: var(--paper); min-width: 0; font-size: 11.5px; text-align: center; }
.fx-day .dl { font-weight: 700; color: var(--muted); white-space: nowrap; font-size: 11px; }
.fx-day .bar { width: 14px; height: 64px; border-radius: 99px; background: var(--line); display: flex; align-items: flex-end; overflow: hidden; }
.fx-day .bar i { display: block; width: 100%; height: var(--p, 0%); background: var(--violet); border-radius: inherit; }
.fx-day b { font-family: var(--wide); font-weight: 800; font-size: 15px; min-height: 1.2em; font-variant-numeric: tabular-nums; }
.fx-day .cap { color: var(--muted); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx-day .warn { color: var(--rose); font-size: 10.5px; line-height: 1.2; }
.fx-day.now { background: var(--violet-soft); box-shadow: inset 0 0 0 2px var(--violet); }
.fx-day.live .bar i { background: var(--gold); }
.fx-day.live .cap { color: var(--ink); font-weight: 800; }
.fx-day.later { opacity: .6; }

/* ── rival ── */
.fx-vs { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center; padding: 16px 12px; border-radius: 16px; background: var(--stadium); color: var(--navy-ink); }
.fx-vs .side { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; }
.fx-vs .fx-kit { width: 48px; height: 45px; }
.fx-vs .nm { font-size: 13px; font-weight: 700; color: var(--navy-muted); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx-vs b { font-family: var(--wide); font-weight: 900; font-stretch: 112%; font-size: 32px; line-height: 1; font-variant-numeric: tabular-nums; }
.fx-vs.lead .side:first-child b, .fx-vs.trail .side.r b { color: var(--gold); }
.fx-vs .mid { font-family: var(--wide); font-weight: 900; font-size: 14px; color: var(--navy-muted); padding: 6px 8px; border-radius: 99px; background: rgba(255, 255, 255, .08); }
.fx-vs.empty { display: block; text-align: center; }
.fx-vs.empty p { margin: 0; color: var(--navy-muted); font-size: 14px; }
.fx-rec { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 12px 0 0; }
.fx-rec > div { border-radius: 12px; background: var(--paper); padding: 8px 10px; font-size: 12.5px; color: var(--muted); }
.fx-rec b { display: block; color: var(--ink); font-family: var(--wide); font-weight: 800; font-size: 18px; font-variant-numeric: tabular-nums; }
.fx-challenge { display: grid; grid-template-columns: 1fr; gap: 8px; }
.fx-challenge select, .fx-challenge input { width: 100%; min-width: 0; font: inherit; font-size: 14.5px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); }
.fx-go { font-family: var(--wide); font-weight: 900; font-stretch: 112%; font-size: 15px; padding: 11px 18px; border-radius: 99px; border: 0; background: var(--ink); color: var(--surface); }
.fx-go[disabled] { opacity: .45; }
.fx-pill { display: inline-block; font-size: 11.5px; font-weight: 800; padding: 1px 8px; border-radius: 99px; background: var(--paper); border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }

/* ── league ── */
.fx-league td:first-child { width: 44px; }
.fx-league td.num:first-child { font-family: var(--wide); font-weight: 800; }
.fx-league tr.pod td:first-child { color: var(--tang-ink); }
.fx-league tr.pod1 td:first-child { background: radial-gradient(circle at 50% 50%, var(--gold) 13px, transparent 14px); }
.fx-league tr.pod2 td:first-child { background: radial-gradient(circle at 50% 50%, #C9CED8 13px, transparent 14px); }
.fx-league tr.pod3 td:first-child { background: radial-gradient(circle at 50% 50%, #D9A276 13px, transparent 14px); }
.fx-league td.num:first-child { text-align: center; }
.fx-t tr.me td { background: var(--violet-soft); font-weight: 800; }
.fx-league td:nth-child(3) { font-family: var(--wide); font-weight: 800; }

/* ── how to play ── */
.fx-steps ol { list-style: none; counter-reset: s; padding: 0; margin: 12px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.fx-steps li { counter-increment: s; padding: 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.fx-steps li::before { content: counter(s); display: block; font-family: var(--wide); font-weight: 900; font-stretch: 125%; font-size: 34px; line-height: 1; color: var(--violet); margin-bottom: 8px; }
.fx-steps b { display: block; font-family: var(--display); font-size: 16.5px; margin-bottom: 4px; }
.fx-steps li > span { font-size: 14px; color: var(--muted); }
@media (max-width: 860px) { .fx-steps ol { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .fx-steps ol { grid-template-columns: 1fr; } }

.fx-how { margin-top: 14px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); padding: 4px 18px; }
.fx-how summary { cursor: pointer; font-family: var(--wide); font-weight: 800; font-stretch: 112%; font-size: 18px; padding: 12px 0; }
.fx-how .explain { font-size: 14.5px; color: var(--muted); max-width: 72ch; padding-bottom: 12px; }
.fx-how .explain p { margin: 10px 0; }
.fx-how .explain b { color: var(--ink); }
.fx-how .formula { font-family: var(--wide); font-weight: 700; font-size: 15px; color: var(--ink); background: var(--paper); border-radius: 10px; padding: 8px 12px; display: inline-block; }
.fx-disclose { margin-top: 12px; font-size: 13px; color: var(--muted); border-left: 3px solid var(--gold); padding: 4px 0 4px 10px; }

/* ── the pop-up ── */
.fx-modal { position: fixed; inset: 0; z-index: 1000; background: rgba(8, 14, 30, .6); display: flex; align-items: center; justify-content: center; padding: 16px; }
.fx-modal[hidden] { display: none; }
.fx-box { background: var(--surface); color: var(--ink); width: 100%; max-width: 420px; border-radius: 22px; padding: 26px 22px 22px; box-shadow: 0 24px 60px rgba(0, 0, 0, .4); text-align: center; animation: fx-pop .18s ease-out; }
.fx-box h3 { font-family: var(--wide); font-weight: 900; font-stretch: 112%; font-size: 22px; margin: 12px 0 6px; }
.fx-box p { margin: 6px 0; font-size: 14px; color: var(--muted); }
.fx-box p b { color: var(--ink); }
.fx-box .acts { margin-top: 18px; display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.fx-box .btn { border: 0; border-radius: 99px; padding: 11px 26px; font-weight: 800; background: var(--ink); color: var(--surface); }
.fx-big { display: inline-flex; align-items: center; justify-content: center; width: 60px; height: 60px; border-radius: 50%; font-size: 30px; font-weight: 800; background: var(--paper); }
.fx-big.ok { background: var(--mint-soft); color: var(--mint); } .fx-big.bad { background: var(--rose-soft); color: var(--rose); }
.fx-spin { display: inline-block; width: 46px; height: 46px; border-radius: 50%; border: 4px solid var(--line); border-top-color: var(--kick); animation: fx-spin .9s linear infinite; }
@keyframes fx-spin { to { transform: rotate(360deg); } }
@keyframes fx-pop { from { transform: scale(.96); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .fx-spin { animation: none; } .fx-bar i, .fx-save { transition: none; } .fx-box { animation: none; } }

/* ── help for newcomers ── */
.fx-steps { margin-top: 16px; padding: 18px; border-radius: 22px; background: var(--violet-soft); border: 1px solid color-mix(in srgb, var(--violet) 30%, transparent); }
.fx-steps[hidden], .fx-rule[hidden] { display: none; }
.fx-steps-top { display: flex; justify-content: space-between; align-items: center; gap: 8px 14px; flex-wrap: wrap; }
.fx-steps ol { margin-top: 14px; }
.fx-steps li { border: 0; }
.fx-steps li i { font-style: normal; font-weight: 800; color: var(--ink); }
.fx-ghost-d { font-size: 13.5px; font-weight: 700; padding: 8px 14px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.fx-link { border: 0; background: none; padding: 4px 0; color: var(--violet); font-weight: 700; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }

/* the one-change counter on the team sheet */
.fx-rule { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 12px 0 0; padding: 9px 12px; border-radius: 12px; background: rgba(255, 255, 255, .06); font-size: 13.5px; color: var(--navy-muted); }
.fx-rule b { color: var(--navy-ink); }
.fx-rule.bad { background: rgba(240, 139, 116, .16); } .fx-rule.bad b { color: #FFB4A3; }
.fx-pips { display: inline-flex; gap: 4px; }
.fx-pips i { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--gold); }
.fx-pips i.on { background: var(--gold); }

/* the players list, explained */
.fx-legend { margin: 6px 0 12px; border-radius: 14px; background: var(--paper); padding: 2px 14px; }
.fx-legend summary { cursor: pointer; font-weight: 800; font-size: 14.5px; padding: 10px 0; }
.fx-legend dl { margin: 0 0 4px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 22px; }
.fx-legend dt { font-weight: 800; font-size: 14px; }
.fx-legend dd { margin: 2px 0 0; font-size: 13.5px; color: var(--muted); }
.fx-legend dd b { color: var(--ink); }
.fx-tip { margin: 12px 0 12px; font-size: 13.5px; padding: 8px 12px; border-radius: 10px; background: var(--sun-soft); }
@media (max-width: 640px) { .fx-legend dl { grid-template-columns: 1fr; } }
.fx-prod { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fx-steady { display: inline-flex; align-items: center; gap: 6px; margin-left: 38px; font-size: 12px; color: var(--muted); white-space: nowrap; }
.fx-steady i { display: inline-block; width: 18px; height: 6px; border-radius: 99px; background: linear-gradient(90deg, currentColor var(--w, 50%), var(--line) var(--w, 50%)); }
.fx-steady.s3 { --w: 100%; } .fx-steady.s2 { --w: 70%; } .fx-steady.s1 { --w: 40%; } .fx-steady.s0 { --w: 15%; color: var(--rose); }
.fx-today { display: inline-flex; flex-direction: column; align-items: flex-end; line-height: 1.2; }
.fx-today small { font-size: 11.5px; color: var(--muted); white-space: nowrap; }
@media (max-width: 640px) { .fx-steady { margin-left: 35px; font-size: 11px; } }

/* questions */
.fx-help { margin-top: 26px; }
.fx-faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 14px; align-items: start; }
.fx-faq details { border-radius: 14px; background: var(--surface); border: 1px solid var(--line); padding: 0 16px; }
.fx-faq summary { cursor: pointer; font-weight: 800; font-size: 15px; padding: 13px 0; }
.fx-faq p { margin: 0 0 14px; font-size: 14.5px; color: var(--muted); }
@media (max-width: 760px) { .fx-faq { grid-template-columns: 1fr; } }

/* Full transaction id in the saved dialog (owner, 16 Nov): wraps on phones. */
.fx-tx .mono { overflow-wrap: anywhere; font-size: 0.8rem; }
.fx-tx a { text-decoration: underline; }

/* ── standard page (D-791): links under the title, closed rows, one stake line ── */
.fx-links { margin: 10px 0 0; font-size: 14px; font-weight: 700; }
.fx-links a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.fx .fold { margin-top: 14px; border-top: 1px solid var(--line, rgba(127, 127, 127, .3)); border-bottom: 1px solid var(--line, rgba(127, 127, 127, .3)); }
.fx .fold > summary { min-height: 52px; display: flex; align-items: center; cursor: pointer; font-weight: 800; font-size: 16px; }
.fx .fold[open] > summary { margin-bottom: 8px; }
.fx-sub { margin-top: 10px; }
.fx-sub > summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; font-weight: 700; }
.fx-stake-line { margin: 16px 0 4px; font-weight: 700; }
.fx-stake-line a { color: inherit; }
/* phones: the hero stays one screen-third so the court shows on the first screen (D-791) */
@media (max-width: 520px) {
  .fx-hero h1 { font-size: 30px; max-width: none; }
  .fx-hero-in { gap: 10px; }
  .fx-clock { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 10px; padding: 8px 12px; }
  .fx-clock-n { font-size: 26px; }
  .fx-next { margin-top: 10px; padding: 8px 12px; }
  .fx-next-t { font-size: 14px; }
}

/* phones (320–380 px, DoD-4): the team sheet's header on one line, and an empty slot's label wraps instead of
   being cut ("Add your cap…" at 320 px), so the court starts higher and every word shows. Page look only. */
@media (max-width: 380px) {
  .fx-sheet { padding: 14px 12px; }
  .fx-sheet-top { flex-wrap: nowrap; align-items: baseline; }
  .fx-sheet h2 { font-size: 17px; }
  .fx-lock { font-size: 11px; }
  .fx-lock b { font-size: 16px; }
  .fx-open .who { white-space: normal; overflow: visible; text-overflow: clip; text-align: center; line-height: 1.2; }
}

/* Fill my five (IDEAS #3) */
.fx-fill { margin: 8px 0 0; font-size: 12px; color: var(--navy-muted); }
.fx-fill[hidden] { display: none; }
