/* The Professor — Fantasy league (v2). Everything here lives under .fx-app and is dark on
   purpose: an arena at night, a hardwood-amber accent, teal for what is good. It does not
   follow the app's light/dark switch — the game has its own room. Logical properties
   (inline/block) throughout, so Hebrew (RTL) and English (LTR) both lay out correctly. */

.fx-app {
  --fx-bg: #070b14; --fx-bg2: #0d1424; --fx-card: rgba(255, 255, 255, .055); --fx-card2: rgba(255, 255, 255, .09);
  --fx-line: rgba(255, 255, 255, .13); --fx-text: #f2f5fb; --fx-muted: #a3aec6;
  --fx-accent: #ff9f43; --fx-accent-ink: #1b1206; --fx-good: #47d7c1; --fx-bad: #ff7b7b; --fx-gold: #f6c453;
  /* Photo: "Beige and blue basketball court" by Christian Rebero Twahirwa, unsplash.com/photos/ggtFONGaWTo (Unsplash licence: free, commercial use, no attribution needed). */
  --fx-hero-photo: url("../../assets/arena-hardwood.jpg"); --fx-court-photo: url("../../assets/arena-hardwood.jpg");
  --fx-hero-veil: linear-gradient(180deg, rgba(7, 11, 20, .72), rgba(7, 11, 20, .84));
  --fx-court-veil: linear-gradient(180deg, rgba(7, 11, 20, .58), rgba(7, 11, 20, .8));
  position: relative; isolation: isolate; overflow: hidden;
  max-width: 1180px; margin: 0 auto; padding: 16px 16px 40px;
  color: var(--fx-text); border-radius: 20px;
  background:
    radial-gradient(60% 38% at 12% -6%, rgba(255, 159, 67, .22), transparent 62%),
    radial-gradient(50% 34% at 92% -4%, rgba(71, 215, 193, .15), transparent 62%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .018) 0 2px, transparent 2px 46px),
    linear-gradient(180deg, var(--fx-bg), var(--fx-bg2) 60%, var(--fx-bg));
}
.fx-app::before {                                   /* the centre circle, huge and faint, behind everything */
  content: ""; position: absolute; z-index: -1; inset-inline: 50%; inset-block-end: -260px;
  width: 720px; height: 720px; margin-inline-start: -360px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 60px rgba(255, 159, 67, .012);
  pointer-events: none;
}
#fantasy-screen { inline-size: 100%; }            /* a .stub-screen would otherwise shrink the column to its content */
.fx-app { container-type: inline-size; container-name: fx; }
/* Optional photographs: set --fx-hero-photo / --fx-court-photo to url(...) on .fx-app, and --fx-hero-veil / --fx-court-veil to a
   dark linear-gradient(...) so the text on top stays readable. Without them the amber floor and glow below are used. */
.fx-app *, .fx-app *::before, .fx-app *::after { box-sizing: border-box; }
.fx-app button { font: inherit; color: inherit; }
.fx-app h2, .fx-app h3, .fx-app h4, .fx-app p, .fx-app ul { margin: 0; padding: 0; }
.fx-app ul { list-style: none; }
.fx-app :focus-visible { outline: 2px solid var(--fx-accent); outline-offset: 2px; }
.fx-app bdi { unicode-bidi: isolate; }

.fx-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-block-size: 44px; }
.fx-back { border: 1px solid var(--fx-line); background: var(--fx-card); border-radius: 999px; padding: 8px 16px; min-block-size: 40px; cursor: pointer; }
.fx-league { font-weight: 800; letter-spacing: .02em; color: var(--fx-accent); }

/* ── hero ─────────────────────────────────────────────────────────────── */
.fx-hero {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; align-items: center;
  margin-block: 8px 14px; padding: 18px 20px; border-radius: 18px; border: 1px solid var(--fx-line);
  background-image: var(--fx-hero-veil, linear-gradient(transparent, transparent)), var(--fx-hero-photo, none),
    linear-gradient(135deg, rgba(255, 159, 67, .16), rgba(255, 255, 255, .03) 55%);
  background-size: cover; background-position: center;
}
.fx-hero-art { display: none; position: absolute; inset-block-start: 10px; inset-inline-end: 170px; inline-size: 150px; opacity: .5; color: #fff; pointer-events: none; }
.fx-hoop { display: block; inline-size: 100%; height: auto; }
.fx-hero-copy { position: relative; min-inline-size: 0; grid-column: 1; grid-row: 1; padding-inline-end: 4px; }
.fx-eyebrow { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--fx-accent); font-weight: 700; }
.fx-title { margin-block-start: 4px; font-size: clamp(22px, 4.6vw, 32px); line-height: 1.15; font-weight: 800; text-wrap: balance; overflow-wrap: anywhere; }
.fx-sub { margin-block-start: 6px; color: var(--fx-muted); font-size: 14px; }
.fx-ring { position: relative; inline-size: 132px; block-size: 132px; grid-column: 2; grid-row: 1; }
.fx-ring svg { inline-size: 100%; block-size: 100%; transform: rotate(-90deg); }
.fx-ring circle { fill: none; stroke-width: 7; }
.fx-ring-bg { stroke: rgba(255, 255, 255, .12); }
.fx-ring-fg { stroke: var(--fx-accent); stroke-linecap: round; transition: stroke-dashoffset .9s linear; }
.fx-ring-txt { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 800; font-size: 19px; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.fx-vitals { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-block-start: 8px; }
.fx-vital { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 6px; border-radius: 12px; background: var(--fx-card); border: 1px solid var(--fx-line); min-inline-size: 0; }
.fx-vital-v { font-size: clamp(16px, 3.6vw, 21px); font-weight: 800; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; text-align: center; }
.fx-vital-l { font-size: 12px; color: var(--fx-muted); text-align: center; }

/* ── tabs ─────────────────────────────────────────────────────────────── */
.fx-tabs { display: flex; flex-wrap: wrap; gap: 6px; padding-block: 2px 10px; }
.fx-tab { flex: 1 1 auto; min-block-size: 42px; padding: 8px 14px; text-align: center; border-radius: 999px; border: 1px solid var(--fx-line); background: var(--fx-card); cursor: pointer; font-weight: 700; white-space: nowrap; }
.fx-tab.on { background: var(--fx-accent); border-color: var(--fx-accent); color: var(--fx-accent-ink); }
.fx-error { margin-block: 4px 10px; padding: 10px 14px; border-radius: 12px; background: rgba(255, 123, 123, .14); border: 1px solid rgba(255, 123, 123, .5); color: #ffd2d2; overflow-wrap: anywhere; }

.fx-body { min-inline-size: 0; }
.fx-lead { color: var(--fx-muted); font-size: 14.5px; line-height: 1.55; margin-block-end: 12px; max-inline-size: 70ch; }
.fx-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-size: 15px; font-weight: 800; margin-block-end: 10px; }
.fx-h small { font-size: 12px; font-weight: 500; color: var(--fx-muted); }
.fx-hint, .fx-legend { font-size: 12.5px; color: var(--fx-muted); line-height: 1.5; }
.fx-legend { margin-block-start: 10px; }
.fx-empty { padding: 26px 16px; text-align: center; color: var(--fx-muted); border: 1px dashed var(--fx-line); border-radius: 14px; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.fx-skel { block-size: 90px; border-radius: 14px; margin-block: 8px; background: linear-gradient(90deg, var(--fx-card), var(--fx-card2), var(--fx-card)); background-size: 200% 100%; animation: fxsk 1.4s linear infinite; }
@keyframes fxsk { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .fx-skel { animation: none; } .fx-ring-fg { transition: none; } }

/* ── the team tab ─────────────────────────────────────────────────────── */
.fx-team-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; margin-block-end: 10px; }
.fx-team-name { font-size: 19px; font-weight: 800; overflow-wrap: anywhere; }
.fx-note { font-size: 13px; color: var(--fx-muted); }
.fx-cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
@container fx (min-width: 860px) { .fx-cols { grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); align-items: start; } }
.fx-main, .fx-side { display: flex; flex-direction: column; gap: 16px; min-inline-size: 0; }

.fx-court {
  position: relative; display: grid; grid-template-rows: repeat(3, minmax(112px, 1fr)); gap: 6px;
  padding: 30px 8px 16px; min-block-size: 440px; border-radius: 20px; border: 1px solid var(--fx-line);
  background-image: var(--fx-court-veil, linear-gradient(transparent, transparent)), var(--fx-court-photo, none),
    linear-gradient(180deg, rgba(255, 159, 67, .26), rgba(255, 159, 67, .09) 72%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .035) 0 18px, transparent 18px 36px);
  background-size: cover, cover, auto, auto; background-position: center;
}
.fx-court-art { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; pointer-events: none; }
.fx-cwords { fill: rgba(255, 255, 255, .88); font: 800 17px/1 system-ui, "Segoe UI", Arial, sans-serif; letter-spacing: .22em; }
.fx-line { position: relative; z-index: 1; display: flex; flex-wrap: wrap; justify-content: center; align-content: center; align-items: center; gap: 6px 10px; min-inline-size: 0; }

.fx-card {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; inline-size: 92px; min-inline-size: 0;
  padding: 6px 4px; border: 0; border-radius: 14px; background: transparent; cursor: pointer; text-align: center;
}
.fx-card:hover { background: rgba(255, 255, 255, .07); }
.fx-card:disabled { cursor: default; }
.fx-crest { position: relative; display: inline-flex; }
.fx-crest .team-crest { box-shadow: 0 6px 16px rgba(0, 0, 0, .45), inset 0 0 0 1px rgba(255, 255, 255, .5); }
.fx-armband {
  position: absolute; inset-block-start: -5px; inset-inline-end: -8px; inline-size: 22px; block-size: 22px; border-radius: 50%;
  display: grid; place-items: center; font-size: 12px; font-weight: 900; border: 2px solid var(--fx-bg);
}
.fx-armband.cap { background: var(--fx-gold); color: #241a00; }
.fx-armband.vice { background: #cfd6e4; color: #131a28; }
.fx-pname { max-inline-size: 100%; font-size: 13.5px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-shadow: 0 1px 6px rgba(0, 0, 0, .7); }
.fx-pmeta { max-inline-size: 100%; font-size: 11.5px; color: #dbe2f0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx-pts { padding: 1px 8px; border-radius: 999px; background: var(--fx-good); color: #062a25; font-size: 12px; font-weight: 800; font-variant-numeric: tabular-nums; }
.fx-card.add .fx-plus {
  inline-size: 52px; block-size: 52px; border-radius: 50%; border: 2px dashed var(--fx-accent); color: var(--fx-accent);
  align-items: center; justify-content: center; font-size: 26px; font-weight: 700; background: rgba(255, 159, 67, .08);
}
.fx-card.add .fx-pname { color: var(--fx-accent); font-weight: 700; }
.fx-card.bench { inline-size: 96px; }
.fx-card.bench.add .fx-plus { inline-size: 40px; block-size: 40px; font-size: 22px; }

.fx-bench { padding: 12px; border-radius: 16px; background: var(--fx-card); border: 1px solid var(--fx-line); }
.fx-bench-row { display: flex; flex-wrap: wrap; justify-content: space-around; gap: 6px; }

.fx-coach-btn {
  display: flex; align-items: center; gap: 12px; inline-size: 100%; padding: 12px 14px; text-align: start; cursor: pointer;
  border-radius: 16px; border: 1px solid var(--fx-line); background: var(--fx-card);
}
.fx-coach-btn:disabled { cursor: default; opacity: .8; }
.fx-coach-btn .fx-plus { inline-size: 44px; block-size: 44px; border-radius: 50%; border: 2px dashed var(--fx-accent); color: var(--fx-accent); display: grid; place-items: center; font-size: 24px; }
.fx-coach-txt { display: flex; flex-direction: column; gap: 2px; min-inline-size: 0; flex: 1; }
.fx-coach-txt strong { overflow-wrap: anywhere; }
.fx-coach-txt small { color: var(--fx-muted); font-size: 12.5px; overflow-wrap: anywhere; }
.fx-chev { color: var(--fx-accent); font-size: 18px; }

.fx-chip-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 8px; }
.fx-chip-card { display: flex; align-items: center; gap: 12px; padding: 12px; text-align: start; cursor: pointer; border-radius: 14px; border: 1px solid var(--fx-line); background: var(--fx-card); min-inline-size: 0; }
.fx-chip-card:disabled { opacity: .5; cursor: default; }
.fx-chip-card.on { border-color: var(--fx-accent); background: rgba(255, 159, 67, .16); }
.fx-chip-ico { flex: none; inline-size: 44px; block-size: 44px; border-radius: 12px; display: grid; place-items: center; font-weight: 900; font-size: 15px; background: var(--fx-card2); color: var(--fx-accent); }
.fx-chip-txt { display: flex; flex-direction: column; gap: 1px; min-inline-size: 0; }
.fx-chip-txt small { color: var(--fx-muted); font-size: 12px; line-height: 1.35; }
.fx-chip-txt em { font-style: normal; font-size: 11.5px; color: var(--fx-good); font-weight: 700; }
.fx-chip-card.spent em { color: var(--fx-muted); }

.fx-mini { padding: 12px 14px; border-radius: 16px; background: var(--fx-card); border: 1px solid var(--fx-line); }
.fx-mg { display: flex; flex-direction: column; gap: 8px; }
.fx-mg li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 10px; font-size: 13px; }
.fx-mg-t { color: var(--fx-muted); }
.fx-mg-m { display: inline-flex; align-items: center; gap: 6px; }
.fx-mg-s { color: var(--fx-muted); font-weight: 700; min-inline-size: 2.4em; text-align: center; }
.fx-link { margin-block-start: 8px; border: 0; background: transparent; color: var(--fx-accent); cursor: pointer; padding: 6px 0; font-weight: 700; }

/* ── builder ──────────────────────────────────────────────────────────── */
.fx-build { display: flex; flex-direction: column; gap: 12px; padding: 14px; border-radius: 16px; background: var(--fx-card); border: 1px solid var(--fx-line); }
.fx-field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--fx-muted); }
.fx-field input, .fx-input {
  min-block-size: 44px; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--fx-line); background: rgba(0, 0, 0, .3);
  color: var(--fx-text); font: inherit; font-size: 15px; min-inline-size: 0; inline-size: 100%;
}
.fx-field input::placeholder, .fx-input::placeholder { color: #7d88a3; }
select.fx-input { appearance: auto; }
.fx-budget-top { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--fx-muted); margin-block-end: 6px; flex-wrap: wrap; }
.fx-budget-top strong { color: var(--fx-text); }
.fx-budget-top strong.over { color: var(--fx-bad); }
.fx-bar { block-size: 9px; border-radius: 999px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.fx-bar span { display: block; block-size: 100%; background: linear-gradient(90deg, var(--fx-accent), var(--fx-gold)); }
.fx-save { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }

.fx-btn { min-block-size: 44px; padding: 10px 18px; border-radius: 12px; border: 1px solid var(--fx-line); background: var(--fx-card2); cursor: pointer; font-weight: 700; }
.fx-btn.primary { background: var(--fx-accent); border-color: var(--fx-accent); color: var(--fx-accent-ink); }
.fx-btn.ghost { background: transparent; }
.fx-btn.on { border-color: var(--fx-gold); background: rgba(246, 196, 83, .16); }
.fx-btn.danger { border-color: rgba(255, 123, 123, .6); color: #ffd2d2; }
.fx-btn:disabled { opacity: .45; cursor: default; }

/* ── sheets: player menu and pickers ──────────────────────────────────── */
.fx-scrim { position: fixed; inset: 0; z-index: 10001; display: flex; align-items: flex-end; justify-content: center; background: rgba(3, 6, 12, .74); backdrop-filter: blur(4px); padding: 0; }
.fx-sheet {
  inline-size: min(580px, 100%); max-block-size: 90vh; max-block-size: 90dvh; overflow-y: auto; overscroll-behavior: contain;
  padding: 18px 16px 22px; border-radius: 22px 22px 0 0; background: #0e1526; border: 1px solid var(--fx-line); color: var(--fx-text);
  display: flex; flex-direction: column; gap: 12px;
}
@media (min-width: 700px) { .fx-scrim { align-items: center; padding: 24px; } .fx-sheet { border-radius: 22px; } }
.fx-sheet > * { flex: none; }
.fx-picker { block-size: min(740px, 90dvh); }
.fx-picker .fx-list { flex: 1 1 auto; min-block-size: 0; overflow-y: auto; overscroll-behavior: contain; padding-inline-end: 2px; }
.fx-sheet h3 { font-size: 17px; font-weight: 800; overflow-wrap: anywhere; }
.fx-sheet-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.fx-sheet-head { display: flex; align-items: center; gap: 12px; }
.fx-sheet-head p { color: var(--fx-muted); font-size: 13px; margin-block-start: 2px; }
.fx-x { inline-size: 40px; block-size: 40px; border-radius: 50%; border: 1px solid var(--fx-line); background: var(--fx-card); cursor: pointer; flex: none; }
.fx-actions { display: flex; flex-direction: column; gap: 8px; }
.fx-filters { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fx-filters #fx-q { grid-column: 1 / -1; }
.fx-check { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--fx-muted); min-block-size: 32px; }
.fx-check input { inline-size: 18px; block-size: 18px; accent-color: var(--fx-accent); }
.fx-list { display: flex; flex-direction: column; gap: 6px; min-block-size: 120px; }
.fx-row {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; text-align: start; cursor: pointer;
  padding: 9px 10px; min-block-size: 52px; border-radius: 12px; border: 1px solid var(--fx-line); background: var(--fx-card);
}
.fx-row:hover:not(:disabled) { background: var(--fx-card2); }
.fx-row.off { opacity: .5; cursor: default; }
.fx-row-main { display: flex; flex-direction: column; gap: 1px; min-inline-size: 0; }
.fx-row-name { font-weight: 700; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx-row-sub { font-size: 12px; color: var(--fx-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx-row-end { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fx-row-end em { font-style: normal; font-size: 11px; color: var(--fx-muted); }
.fx-row-end strong { font-size: 14px; }
.fx-val { align-self: flex-end; padding: 0 7px; border-radius: 999px; background: rgba(71, 215, 193, .16); color: var(--fx-good); font-size: 12px; font-weight: 800; }
.fx-val-lbl { display: inline-flex; flex-direction: column; align-items: center; padding: 3px 9px; border-radius: 12px; line-height: 1.15; }
.fx-val-lbl small { font-size: 10px; font-weight: 600; opacity: .85; white-space: nowrap; }
.fx-move { font-size: 11.5px; font-weight: 800; }
.fx-move.up { color: var(--fx-good); } .fx-move.down { color: var(--fx-bad); }

/* ── round / leagues ──────────────────────────────────────────────────── */
.fx-roundnav { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-block-end: 12px; }
.fx-roundnav h3 { font-size: 17px; text-align: center; display: flex; flex-direction: column; gap: 2px; }
.fx-roundnav small { font-size: 12px; color: var(--fx-muted); font-weight: 500; }
.fx-roundnav .fx-btn { min-inline-size: 44px; padding-inline: 12px; }
.fx-day { margin-block-end: 14px; }
.fx-day h4 { font-size: 13px; color: var(--fx-muted); margin-block-end: 6px; }
.fx-games { display: flex; flex-direction: column; gap: 6px; }
.fx-game { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 8px; padding: 9px 12px; border-radius: 12px; background: var(--fx-card); border: 1px solid var(--fx-line); }
.fx-g-team { display: flex; align-items: center; gap: 8px; min-inline-size: 0; font-weight: 700; }
.fx-g-team.away { justify-content: flex-end; }
.fx-g-mid { font-variant-numeric: tabular-nums; color: var(--fx-muted); min-inline-size: 3.6em; text-align: center; }
.fx-g-mid strong { color: var(--fx-text); }
.fx-mine { margin-block-end: 16px; }
.fx-big { color: var(--fx-accent); font-size: 22px; }

.fx-pills { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-block: 2px 10px; }
.fx-pills::-webkit-scrollbar { display: none; }
.fx-pill { flex: none; min-block-size: 38px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--fx-line); background: var(--fx-card); cursor: pointer; font-size: 13.5px; white-space: nowrap; }
.fx-pills.big .fx-pill { font-size: 14.5px; min-block-size: 42px; font-weight: 700; }
.fx-pill.on { background: var(--fx-accent); border-color: var(--fx-accent); color: var(--fx-accent-ink); font-weight: 800; }
.fx-fanhead { display: flex; align-items: center; gap: 8px; }
.fx-table-wrap { overflow-x: auto; border-radius: 14px; border: 1px solid var(--fx-line); }
.fx-table { inline-size: 100%; border-collapse: collapse; font-size: 14px; }
.fx-table th { text-align: start; font-size: 12px; color: var(--fx-muted); font-weight: 700; padding: 10px; border-block-end: 1px solid var(--fx-line); white-space: nowrap; }
.fx-table td { padding: 11px 10px; border-block-end: 1px solid rgba(255, 255, 255, .06); font-variant-numeric: tabular-nums; }
.fx-table tr:last-child td { border-block-end: 0; }
.fx-table tr.mine td { background: rgba(255, 159, 67, .16); font-weight: 700; }
.fx-table em { font-style: normal; color: var(--fx-muted); font-weight: 400; }
.fx-tname { overflow-wrap: anywhere; min-inline-size: 110px; }
.fx-row-flex { margin-block-end: 8px; }
.fx-leagues { display: flex; flex-direction: column; gap: 8px; margin-block-end: 12px; }
.fx-league-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px; min-block-size: 48px; border-radius: 12px; border: 1px solid var(--fx-line); background: var(--fx-card); cursor: pointer; text-align: start; }
.fx-code { letter-spacing: .14em; font-weight: 800; color: var(--fx-accent); }
.fx-forms { display: flex; flex-direction: column; gap: 10px; margin-block-start: 16px; max-inline-size: 460px; }

/* ── the Professor's picks ────────────────────────────────────────────── */
.fx-adv-sec { margin-block-end: 18px; }
.fx-adv-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 8px; }
.fx-adv, .fx-swap { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 12px; border-radius: 14px; background: var(--fx-card); border: 1px solid var(--fx-line); }
.fx-swap { grid-template-columns: minmax(0, 1fr); }
.fx-adv-main { display: flex; flex-direction: column; gap: 2px; min-inline-size: 0; }
.fx-adv-main strong { overflow-wrap: anywhere; }
.fx-adv-main p, .fx-swap p { font-size: 13px; line-height: 1.5; color: #dbe2f0; margin-block-start: 4px; overflow-wrap: anywhere; }
.fx-swap > div { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 14px; }
.fx-swap-out strong { color: var(--fx-bad); } .fx-swap-in strong { color: var(--fx-good); }

/* ── rules ────────────────────────────────────────────────────────────── */
.fx-rules { display: flex; flex-direction: column; gap: 8px; max-inline-size: 760px; }
.fx-rule { border-radius: 14px; border: 1px solid var(--fx-line); background: var(--fx-card); }
.fx-rule summary { padding: 14px 16px; min-block-size: 48px; cursor: pointer; font-weight: 800; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.fx-rule summary::-webkit-details-marker { display: none; }
.fx-rule summary::after { content: "▾"; color: var(--fx-accent); transition: transform .2s; }
.fx-rule[open] summary::after { transform: rotate(180deg); }
.fx-rule > div { padding: 0 16px 16px; color: #dbe2f0; font-size: 14px; line-height: 1.65; }

/* ── narrow screens ───────────────────────────────────────────────────── */
@container fx (max-width: 560px) {
  .fx-hero { padding: 14px; }
  .fx-hero-art { inline-size: 96px; opacity: .35; }
  .fx-ring { inline-size: 116px; block-size: 116px; }
  .fx-ring-txt { font-size: 17px; }
  .fx-card { inline-size: 76px; padding-inline: 2px; }
  .fx-card.bench { inline-size: 80px; }
  .fx-pname { font-size: 12.5px; }
  .fx-court { min-block-size: 400px; grid-template-rows: repeat(3, minmax(104px, 1fr)); }
}
@media (max-width: 560px) {
  .fx-app { padding: 12px 10px 32px; border-radius: 0; }
  .fx-hero-art { display: none; }
  .fx-hero { padding: 14px; }
  .fx-hero-art { inline-size: 96px; opacity: .35; }
  .fx-ring { inline-size: 116px; block-size: 116px; }
  .fx-ring-txt { font-size: 17px; }
  .fx-card { inline-size: 76px; padding-inline: 2px; }
  .fx-card.bench { inline-size: 80px; }
  .fx-pname { font-size: 12.5px; }
  .fx-court { min-block-size: 400px; grid-template-rows: repeat(3, minmax(104px, 1fr)); }
  .fx-filters { grid-template-columns: 1fr; }
  .fx-row { grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px; }
}

/* On a phone the bottom navigation sits above a stub screen's own layer: while a sheet is open it would cover the sheet's
   last buttons, so it steps aside (the league bar does the same, see home.css). */
@media (max-width: 480px) { body.fantasy-modal-open .screen-nav { display: none; } }


/* ── the room: the whole page, edge to edge ───────────────────────────────── */
body.fx-open #league-bar, body.fx-open #dash-strip-bar { display: none !important; }
body.fx-open #screen-fantasy { top: var(--fx-top, 118px); background: #070b14; }
#screen-fantasy.fx-room { align-items: stretch; }
#screen-fantasy.fx-room #fantasy-screen { min-block-size: 100%; }
.fx-app {
  --fx-gutter: max(16px, calc((100% - 1180px) / 2));
  max-width: none; margin: 0; border-radius: 0; min-block-size: 100%;
  padding: 0 var(--fx-gutter) 56px;
}
.fx-app::before { display: none; }
.fx-top { padding-block: 12px 0; }

/* the hero breaks out of the gutters: the arena photo runs from one edge of the screen to the other */
.fx-hero {
  margin-inline: calc(var(--fx-gutter) * -1); margin-block: 8px 16px;
  padding: 26px var(--fx-gutter) 22px; border-radius: 0; border-inline: 0;
  min-block-size: 210px;
  background-image: linear-gradient(180deg, rgba(7, 11, 20, .5), rgba(7, 11, 20, .86)), var(--fx-hero-photo, none),
    linear-gradient(135deg, rgba(255, 159, 67, .16), rgba(255, 255, 255, .03) 55%);
}

/* ── the virtual court ────────────────────────────────────────────────────── */
.fx-court {
  display: grid; grid-template-rows: repeat(3, 1fr); gap: 0; padding: 4% 0 3%;
  aspect-ratio: 400 / 590; min-block-size: 0; inline-size: 100%; max-inline-size: 560px; margin-inline: auto;
  border: 0; border-radius: 6px; background: #0d1424 !important;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .06);
}
.fx-court .fx-line { gap: 2px 10px; }
.fx-court .fx-line-C { padding-inline: 20%; }
.fx-court .fx-line-F { padding-inline: 10%; }
.fx-court { padding-block: 6% 4%; }
.fx-card { inline-size: 96px; padding: 0; gap: 3px; }
.fx-card:hover { background: transparent; }
.fx-card:hover .fx-jsvg { transform: translateY(-3px); }
.fx-jersey { display: inline-flex; }
.fx-jsvg { display: block; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .5)); transition: transform .15s; }
.fx-jersey .fx-armband { inset-block-start: -4px; inset-inline-end: -6px; }
.fx-jersey .fx-pts {
  position: absolute; inset-block-start: 4px; inset-inline-start: -14px; z-index: 2;
  padding: 2px 7px; border-radius: 999px; background: var(--fx-good); color: #062a25; font-size: 12px; font-weight: 900;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .4);
}
.fx-plate {
  display: flex; flex-direction: column; align-items: center; inline-size: 100%; min-inline-size: 0;
  padding: 3px 6px 4px; border-radius: 8px; background: rgba(9, 13, 24, .86); border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: 0 6px 14px rgba(0, 0, 0, .45);
}
.fx-plate .fx-pname { color: #fff; text-shadow: none; font-size: 13px; }
.fx-plate .fx-pmeta { color: var(--fx-accent); font-size: 11px; font-weight: 700; }
.fx-card.bench { inline-size: 84px; }
.fx-card.add .fx-crest { box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .5); background: rgba(9, 13, 24, .55); }
@container fx (max-width: 520px) {
  .fx-card { inline-size: 78px; }
  .fx-jersey .fx-jsvg { inline-size: 48px; block-size: auto; }
  .fx-plate .fx-pname { font-size: 12px; }
  .fx-pcode { display: none; }                 /* the price is what matters on a phone; the jersey shows the club */
  .fx-court .fx-line-C { padding-inline: 14%; }
  .fx-court .fx-line-F { padding-inline: 8%; }
}
.fx-cwords.he { letter-spacing: .04em; font-size: 19px; }
.fx-plate .fx-pname { max-inline-size: 100%; }
