/* ============================================================================
   BFL Hub — UI V2 · Fantasy (see web/v2/fantasy.js)

   The Premier League game's own look, on the league's night: the purple that
   fades to green across the header, a striped pitch with the keeper at the top,
   a kit per man with a white name plate over a purple one, and the neon green
   that marks the thing to press. Everything else is the site's own glass.
   ========================================================================= */
.fx {
  --fx-violet: #37003c;
  --fx-violet-2: #2a0b46;
  --fx-plum: #1b0a26;
  --fx-green: #00ff87;
  --fx-green-ink: #1b0a26;
  --fx-cyan: #04f5ff;
  --fx-pink: #ff2d8a;
  --fx-amber: #ffc94a;
  --fx-turf-a: #12924a;
  --fx-turf-b: #0f8542;
  --fx-kit-w: 74px;
  --fx-plate-w: 108px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-family: var(--v2-font);
}
.fx-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.fx-muted { color: var(--v2-text-3, rgba(255, 255, 255, .55)); font-size: .8125rem; }
.fx h1, .fx h2, .fx h3 { margin: 0; }

/* ------------------------------------------------------------ the header */
.fx-hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--v2-r-lg);
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, .035) 0 2px, transparent 2px 16px),
    linear-gradient(118deg, #3a0040 0%, #2a0b4d 40%, #093f5a 74%, #00a66b 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1), 0 30px 60px -36px rgba(55, 0, 60, .9);
}
.fx-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 46%;
  background: linear-gradient(180deg, rgba(10, 4, 18, 0), rgba(10, 4, 18, .38));
  pointer-events: none;
}
.fx-hero-in {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(20px, 3vw, 34px) clamp(20px, 3.2vw, 40px);
}
.fx-brand { display: flex; align-items: center; gap: 16px; min-width: 0; }
.fx-brand-mark { width: 54px; height: 54px; flex: none; filter: drop-shadow(0 0 14px rgba(255, 255, 255, .35)); }
.fx-brand-txt { min-width: 0; }
.fx-brand-txt h1 {
  font: 800 clamp(1.6rem, 1.1rem + 1.8vw, 2.6rem)/1 var(--v2-display);
  letter-spacing: -.01em;
  color: #fff;
  text-shadow: 0 0 24px rgba(255, 255, 255, .25);
}
.fx-brand-txt p { margin: 8px 0 0; color: rgba(255, 255, 255, .74); font-size: .875rem; font-weight: 500; }
.fx-hero-side { display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }
.fx-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(10, 4, 18, .42);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14);
  color: #fff;
  font: 700 .75rem/1 var(--v2-font);
  letter-spacing: .02em;
  white-space: nowrap;
}
.fx-status i { width: 8px; height: 8px; border-radius: 50%; background: var(--fx-green); box-shadow: 0 0 10px var(--fx-green); }
.fx-status.is-locked i { background: var(--fx-amber); box-shadow: 0 0 10px var(--fx-amber); }
.fx-hero-figs { display: flex; gap: 26px; }
.fx-hero-figs span { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; color: rgba(255, 255, 255, .7); font-size: .75rem; font-weight: 600; }
.fx-hero-figs b { font: 800 1.75rem/1 var(--v2-display); color: #fff; font-variant-numeric: tabular-nums; }
.fx-hero-figs small { font: 700 .875rem/1 var(--v2-font); color: rgba(255, 255, 255, .6); margin-left: 2px; }

/* ------------------------------------------------------------ the tabs */
.fx-nav { position: relative; margin-top: -4px; }
.fx-nav-in {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: 1px solid var(--v2-line);
}
.fx-nav-in::-webkit-scrollbar { display: none; }
.fx-tab {
  position: relative;
  flex: none;
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 16px;
  color: var(--v2-text-2, rgba(255, 255, 255, .72));
  font: 700 .875rem/1 var(--v2-font);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--v2-t-fast) var(--v2-ease);
}
.fx-tab::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: -1px;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--fx-green);
  box-shadow: 0 0 14px rgba(0, 255, 135, .55);
  transform: scaleX(0);
  transition: transform var(--v2-t) var(--v2-ease-out);
}
.fx-tab:hover { color: #fff; }
.fx-tab.is-on { color: #fff; }
.fx-tab.is-on::after { transform: scaleX(1); }
.fx-tab.is-desk { margin-left: auto; }

.fx-body { display: flex; flex-direction: column; align-items: stretch; gap: 18px; min-width: 0; }

/* ------------------------------------------------------------ notices */
.fx-flash {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: var(--v2-r);
  background: var(--v2-card);
  box-shadow: var(--v2-card-edge);
}
.fx-flash > .v2-ic { flex: none; color: #fff; }
.fx-flash > div { flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.fx-flash b { font-weight: 700; color: #fff; font-size: .9375rem; }
.fx-flash span { color: var(--v2-text-2, rgba(255, 255, 255, .72)); font-size: .8125rem; }
.fx-flash.is-desk { background: linear-gradient(90deg, rgba(55, 0, 60, .55), rgba(55, 0, 60, .18)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.fx-flash.is-lock { background: rgba(255, 201, 74, .08); box-shadow: inset 0 0 0 1px rgba(255, 201, 74, .26); }
.fx-flash.is-lock > .v2-ic { color: var(--fx-amber); }
.fx-flash.is-start { background: rgba(0, 255, 135, .06); box-shadow: inset 0 0 0 1px rgba(0, 255, 135, .24); }
.fx-flash.is-start > .v2-ic { color: var(--fx-green); }

/* ------------------------------------------------------------ layout */
.fx-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; align-items: start; }
@media (min-width: 1100px) {
  .fx-grid { grid-template-columns: minmax(0, 1fr) minmax(320px, 380px); gap: 24px; }
  .fx-grid.is-transfers { grid-template-columns: minmax(0, 1fr) minmax(360px, 440px); }
}
.fx-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.fx-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.fx-phone-only { display: none; }
@media (max-width: 1099px) {
  .fx-desk-only { display: none; }
  .fx-phone-only { display: inline-flex; }
}

.fx-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
  border-radius: var(--v2-r);
  background: var(--v2-card);
  box-shadow: var(--v2-card-edge);
  min-width: 0;
}
.fx-card.is-flush { padding: 0; gap: 0; overflow: hidden; }
.fx-card.is-flush > .fx-card-h { padding: 18px 18px 12px; }
.fx-card-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.fx-card-h > div { display: flex; flex-direction: column; gap: 4px; }
.fx-card-h h3 { font: 700 1rem/1.2 var(--v2-display); color: #fff; letter-spacing: .005em; }
.fx-card p { margin: 0; color: var(--v2-text-2, rgba(255, 255, 255, .74)); font-size: .875rem; line-height: 1.55; }
.fx-card p b { color: #fff; font-weight: 700; }

.fx-bar { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.fx-bar h2 { font: 800 1.375rem/1.1 var(--v2-display); color: #fff; }
.fx-bar p { margin: 6px 0 0; color: var(--v2-text-2, rgba(255, 255, 255, .72)); font-size: .875rem; }

/* ------------------------------------------------------------ the pitch */
.fx-pitchwrap { display: flex; flex-direction: column; gap: 12px; }
.fx-pitch {
  position: relative;
  overflow: hidden;
  border-radius: var(--v2-r-lg);
  padding: 30px 8px 26px;
  background: linear-gradient(180deg, #08391f 0%, #0b4a29 50%, #0a4426 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), 0 30px 60px -40px rgba(0, 0, 0, .9);
  isolation: isolate;
}
.fx-turf {
  position: absolute;
  z-index: -1;
  inset: 14px 5% 10px;
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, .2), rgba(0, 0, 0, 0) 26%, rgba(0, 0, 0, 0) 74%, rgba(0, 0, 0, .24)),
    repeating-linear-gradient(180deg, var(--fx-turf-a) 0 9.09%, var(--fx-turf-b) 9.09% 18.18%);
  transform: perspective(1200px) rotateX(11deg);
  transform-origin: 50% 100%;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .04);
}
.fx-marks { position: absolute; inset: 0; width: 100%; height: 100%; }
.fx-marks rect, .fx-marks path, .fx-marks circle { fill: none; stroke: rgba(255, 255, 255, .5); stroke-width: 2; vector-effect: non-scaling-stroke; }
.fx-marks .dot { fill: rgba(255, 255, 255, .6); }
.fx-lines {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(10px, 2.2vw, 22px);
  min-height: clamp(380px, 42vw, 540px);
}
@media (min-width: 1100px) {
  .fx { --fx-kit-w: 92px; --fx-plate-w: 132px; }
  .fx-nm, .fx-val { font-size: .8125rem; }
  .fx-val.is-pts { font-size: 1rem; }
  .fx-cap { width: 26px; height: 26px; font-size: .75rem; }
}
.fx-line { display: flex; justify-content: center; gap: clamp(16px, 7vw, 76px); }

/* One man: his kit, his crest, and the plate under him. */
.fx-man {
  appearance: none;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform var(--v2-t) var(--v2-ease-out), opacity var(--v2-t-fast) var(--v2-ease);
}
div.fx-man { cursor: default; }
button.fx-man:hover { transform: translateY(-3px); }
button.fx-man:active { transform: scale(.97); }
.fx-shirt { position: relative; display: block; width: var(--fx-kit-w); aspect-ratio: 64 / 60; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .45)); }
.fx-kit { display: block; width: 100%; height: 100%; overflow: visible; }
/* THE FACE, ON THE SHIRT. The kit still carries the club's colour and crest;
   the player's own headshot sits over the shoulders, the way a squad is read at
   a glance — who it is first, then who he plays for. It is the site's own .av
   disc, so the same cache that paints every other face paints this one. */
.fx-face {
  position: absolute;
  right: -8px;
  bottom: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  overflow: hidden;
  background: #14161b;
  box-shadow: 0 0 0 2px rgba(9, 10, 12, .82), 0 4px 10px rgba(0, 0, 0, .5);
  z-index: 3;
}
.fx-face .fx-av { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; color: #fff; font-size: 11px; font-weight: 800; }
.fx-badge { position: absolute; left: 50%; top: 34%; width: 30%; aspect-ratio: 1; transform: translateX(-50%); display: grid; place-items: center; }
.fx-badge img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .45)); }
.fx-badge .ph { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; background: rgba(0, 0, 0, .28); color: #fff; font: 800 .6875rem/1 var(--v2-display); }
.fx-cap {
  position: absolute;
  top: -2px;
  right: -4px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #0b0710;
  color: #fff;
  font: 800 .6875rem/1 var(--v2-display);
  box-shadow: 0 0 0 2px #fff, 0 4px 10px rgba(0, 0, 0, .5);
}
.fx-flag {
  position: absolute;
  bottom: 2px;
  left: -4px;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--fx-violet);
  color: #fff;
  font: 800 .6875rem/1 var(--v2-display);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .85);
}
.fx-x {
  position: absolute;
  top: -4px;
  left: -6px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  color: var(--fx-violet);
  box-shadow: 0 4px 10px rgba(0, 0, 0, .45);
  cursor: pointer;
  transition: transform var(--v2-t-fast) var(--v2-ease);
}
.fx-x:hover { transform: scale(1.1); background: var(--fx-pink); color: #fff; }
.fx-plate {
  display: flex;
  flex-direction: column;
  width: var(--fx-plate-w);
  margin-top: -3px;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 8px 18px -8px rgba(0, 0, 0, .7);
  text-align: center;
}
.fx-nm {
  display: block;
  padding: 4px 6px 3px;
  background: #fbfbfd;
  color: #1b0a26;
  font: 700 .75rem/1.25 var(--v2-font);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fx-val {
  display: block;
  padding: 3px 6px 4px;
  background: var(--fx-violet);
  color: #fff;
  font: 600 .75rem/1.2 var(--v2-font);
  font-style: normal;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.fx-val.is-pts { font: 800 .875rem/1.1 var(--v2-display); padding: 4px 6px; }
.fx-man.is-cap .fx-val.is-pts { background: linear-gradient(90deg, var(--fx-violet), #5b0a62); }

/* The empty place: a shirt drawn in chalk. */
.fx-shirt.is-ghost { filter: none; }
.fx-shirt.is-ghost .fx-kit path { fill: rgba(255, 255, 255, .07); stroke: rgba(255, 255, 255, .5); stroke-width: 1.4; stroke-dasharray: 4 3; }
.fx-plus { position: absolute; inset: 0; display: grid; place-items: center; padding-top: 10%; color: #fff; }
.fx-man.is-empty .fx-nm { background: rgba(255, 255, 255, .86); }
.fx-man.is-empty .fx-val { background: rgba(55, 0, 60, .85); }
button.fx-man.is-empty:hover .fx-shirt.is-ghost .fx-kit path { fill: rgba(0, 255, 135, .14); stroke: var(--fx-green); }
.fx-man.is-target .fx-shirt.is-ghost .fx-kit path { fill: rgba(0, 255, 135, .18); stroke: var(--fx-green); stroke-dasharray: none; }
.fx-man.is-target .fx-val { background: var(--fx-green); color: var(--fx-green-ink); font-weight: 800; }

/* Pick team: the man chosen for a switch, and the men he may switch with. */
.fx-man.is-sel .fx-shirt { filter: drop-shadow(0 0 0 #ffd94a) drop-shadow(0 0 12px rgba(255, 217, 74, .85)); }
.fx-man.is-sel .fx-val { background: #ffd94a; color: #1b0a26; }
.fx-man.is-swap .fx-shirt { filter: drop-shadow(0 0 10px rgba(0, 255, 135, .9)); }
.fx-man.is-swap .fx-val { background: var(--fx-green); color: var(--fx-green-ink); font-weight: 800; }
.fx-man.is-dim { opacity: .4; }
.fx-man.is-off .fx-nm { text-decoration: line-through; text-decoration-color: rgba(27, 10, 38, .5); }

/* The bench. */
.fx-bench {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 12px 16px;
  border-radius: var(--v2-r);
  background: linear-gradient(180deg, rgba(55, 0, 60, .28), rgba(55, 0, 60, .1));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
}
.fx-bench-h { padding-left: 6px; color: var(--v2-text-2, rgba(255, 255, 255, .7)); font: 700 .75rem/1 var(--v2-font); letter-spacing: .06em; text-transform: uppercase; }
.fx-bench-row { display: flex; justify-content: center; gap: clamp(16px, 7vw, 76px); }
.fx.is-points .fx-bench .fx-man:not(.is-empty) { opacity: .78; }

/* ------------------------------------------------------------ Points */
.fx-sum {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px 18px 18px;
  border-radius: var(--v2-r-lg);
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, .03) 0 2px, transparent 2px 14px),
    linear-gradient(135deg, #37003c 0%, #2a0b46 60%, #1d0d38 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1);
}
.fx-pager { display: flex; align-items: center; justify-content: center; gap: 14px; }
.fx-pager-now { font: 700 .9375rem/1 var(--v2-display); color: #fff; min-width: 9ch; text-align: center; }
.fx-pg {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  color: #fff;
  cursor: pointer;
  transition: background-color var(--v2-t-fast) var(--v2-ease);
}
.fx-pg:hover:not(:disabled) { background: rgba(255, 255, 255, .2); }
.fx-pg:disabled { opacity: .3; cursor: default; }
.fx-sum-row { display: grid; grid-template-columns: 1fr minmax(140px, 1.2fr) 1fr; align-items: center; gap: 10px; }
.fx-sum-side { display: flex; flex-direction: column; align-items: center; gap: 6px; color: rgba(255, 255, 255, .7); font-size: .75rem; font-weight: 600; text-decoration: none; }
.fx-sum-side b { font: 800 1.5rem/1 var(--v2-display); color: #fff; font-variant-numeric: tabular-nums; }
.fx-sum-side .v2-ic { vertical-align: -2px; }
.fx-sum-side.is-link:hover b { color: var(--fx-green); }
.fx-sum-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 16px 10px 14px;
  border-radius: 18px;
  background: linear-gradient(160deg, var(--fx-green) 0%, #05e0c8 55%, var(--fx-cyan) 100%);
  color: var(--fx-green-ink);
  box-shadow: 0 16px 40px -18px rgba(0, 255, 135, .7);
}
.fx-sum-main b { font: 800 clamp(2.4rem, 1.8rem + 2vw, 3.4rem)/1 var(--v2-display); font-variant-numeric: tabular-nums; }
.fx-sum-main span { font: 700 .75rem/1 var(--v2-font); letter-spacing: .04em; text-transform: uppercase; }
.fx-sum-foot { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .1); }
.fx-sum-foot span { display: flex; flex-direction: column; align-items: center; gap: 5px; color: rgba(255, 255, 255, .64); font-size: .75rem; font-weight: 600; text-align: center; }
.fx-sum-foot b { font: 800 1.0625rem/1 var(--v2-display); color: #fff; font-variant-numeric: tabular-nums; }

.fx-other { display: flex; align-items: center; gap: 12px; }
.fx-other > div { display: flex; flex-direction: column; gap: 3px; }
.fx-other b { font: 800 1.25rem/1.1 var(--v2-display); color: #fff; }
.fx-other span { color: var(--v2-text-2, rgba(255, 255, 255, .7)); font-size: .8125rem; }

/* A list of men (team of the week, your squad, the desk). */
.fx-list { display: flex; flex-direction: column; gap: 2px; }
.fx-li {
  appearance: none;
  display: grid;
  grid-template-columns: 40px 26px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  padding: 6px 8px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background-color var(--v2-t-fast) var(--v2-ease);
}
.fx-li:hover { background: rgba(255, 255, 255, .05); }
.fx-li-pos { display: grid; place-items: center; height: 24px; border-radius: 6px; background: rgba(255, 255, 255, .07); color: var(--v2-text-2, rgba(255, 255, 255, .78)); font: 700 .6875rem/1 var(--v2-font); letter-spacing: .04em; }
.fx-crest { width: 26px; height: 26px; object-fit: contain; display: block; }
.fx-crest.is-sm { width: 22px; height: 22px; }
.fx-crest.ph { display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .1); color: #fff; font: 700 .6875rem/1 var(--v2-font); }
.fx-li-nm { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.fx-li-nm b { color: #fff; font-weight: 700; font-size: .875rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fx-li-nm i { color: var(--v2-text-3, rgba(255, 255, 255, .55)); font-style: normal; font-size: .75rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fx-li-v { font: 800 1rem/1 var(--v2-display); color: #fff; font-variant-numeric: tabular-nums; }
.fx-c { display: inline-grid; place-items: center; width: 17px; height: 17px; margin-left: 4px; border-radius: 50%; background: #fff; color: #0b0710; font: 800 .6875rem/1 var(--v2-display); font-style: normal; vertical-align: 1px; }

.fx-hhead, .fx-hrow { display: grid; grid-template-columns: 1fr 56px 48px 48px; align-items: center; gap: 6px; }
.fx-hhead { padding: 0 10px; color: var(--v2-text-3, rgba(255, 255, 255, .5)); font: 700 .6875rem/1 var(--v2-font); letter-spacing: .06em; text-transform: uppercase; }
.fx-hhead span:not(:first-child) { text-align: right; }
.fx-hlist { display: flex; flex-direction: column; gap: 2px; max-height: 320px; overflow-y: auto; }
.fx-hrow {
  appearance: none;
  min-height: 40px;
  padding: 0 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--v2-text-2, rgba(255, 255, 255, .72));
  font: 600 .8125rem/1 var(--v2-font);
  text-align: left;
  cursor: pointer;
}
.fx-hrow:hover { background: rgba(255, 255, 255, .05); }
.fx-hrow.is-on { background: rgba(0, 255, 135, .1); color: #fff; }
.fx-hrow b, .fx-hrow i { text-align: right; font-style: normal; font-variant-numeric: tabular-nums; }
.fx-hrow b { color: #fff; font: 800 .9375rem/1 var(--v2-display); }

/* The first visit. */
.fx-start {
  position: relative;
  overflow: hidden;
  border-radius: var(--v2-r-lg);
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, .03) 0 2px, transparent 2px 14px),
    linear-gradient(140deg, #37003c 0%, #22093a 55%, #08402f 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1);
}
.fx-start-in { display: flex; flex-direction: column; gap: 18px; max-width: 720px; padding: clamp(26px, 4vw, 48px); }
.fx-start h2 { font: 800 clamp(1.75rem, 1.2rem + 2vw, 2.75rem)/1.05 var(--v2-display); color: #fff; }
.fx-start p { margin: 0; color: rgba(255, 255, 255, .78); font-size: 1rem; line-height: 1.55; }
.fx-start-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.fx-start-steps li { display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: 16px; background: rgba(10, 4, 18, .35); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.fx-start-steps b { font: 800 1.5rem/1 var(--v2-display); color: var(--fx-green); }
.fx-start-steps span { color: rgba(255, 255, 255, .78); font-size: .8125rem; line-height: 1.45; }
.fx-start-acts { display: flex; flex-wrap: wrap; gap: 10px; }
.fx .v2-btn.is-primary, .fx-modal .v2-btn.is-primary { background: var(--fx-green); color: var(--fx-green-ink); box-shadow: 0 0 0 1px rgba(0, 255, 135, .4), 0 12px 34px -12px rgba(0, 255, 135, .6); }
.fx .v2-btn.is-primary:hover, .fx-modal .v2-btn.is-primary:hover { background: #3dffa3; }
.fx .v2-btn.is-primary:disabled { opacity: .4; cursor: default; box-shadow: none; }
.fx .v2-btn:disabled, .fx-modal .v2-btn:disabled { opacity: .45; cursor: default; }

.fx-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 44px 20px;
  border-radius: var(--v2-r);
  background: var(--v2-card);
  box-shadow: var(--v2-card-edge);
  color: var(--v2-text-2, rgba(255, 255, 255, .72));
  text-align: center;
  font-size: .875rem;
}
.fx-empty b { color: #fff; font: 700 1.0625rem/1.3 var(--v2-display); }
.fx-empty .v2-btn { margin-top: 6px; }
.fx-empty.is-page { min-height: 50vh; justify-content: center; }
.fx-none { margin: 0; padding: 22px 12px; color: var(--v2-text-3, rgba(255, 255, 255, .55)); font-size: .875rem; text-align: center; }

/* ------------------------------------------------------------ Transfers */
.fx-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.fx-tile { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; border-radius: 16px; background: var(--v2-card); box-shadow: var(--v2-card-edge); }
.fx-tile b { font: 800 1.375rem/1 var(--v2-display); color: #fff; font-variant-numeric: tabular-nums; }
.fx-tile small { font: 700 .875rem/1 var(--v2-font); color: var(--v2-text-3, rgba(255, 255, 255, .5)); }
.fx-tile span { color: var(--v2-text-2, rgba(255, 255, 255, .7)); font-size: .75rem; font-weight: 600; }
.fx-tile.is-neg { background: rgba(255, 45, 138, .1); box-shadow: inset 0 0 0 1px rgba(255, 45, 138, .38); }
.fx-tile.is-neg b { color: #ff7ab5; }
.fx-tools { display: flex; flex-wrap: wrap; gap: 8px; }

.fx-market {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border-radius: var(--v2-r);
  background: var(--v2-card);
  box-shadow: var(--v2-card-edge);
  min-width: 0;
}
@media (min-width: 1100px) {
  .fx-side > .fx-market { position: sticky; top: calc(var(--bar-h) + 14px); max-height: calc(100vh - var(--bar-h) - 32px); }
  .fx-side > .fx-market .fx-mlist { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; margin: 0 -8px; padding: 0 8px; }
}
.fx-market-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.fx-market-h h3 { font: 700 1rem/1.2 var(--v2-display); color: #fff; }
.fx-target {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  padding: 0 4px 0 12px;
  border-radius: 999px;
  background: var(--fx-green);
  color: var(--fx-green-ink);
  font: 700 .75rem/1 var(--v2-font);
}
.fx-target button { display: grid; place-items: center; width: 22px; height: 22px; border: 0; border-radius: 50%; background: rgba(27, 10, 38, .14); color: inherit; cursor: pointer; }
.fx-search {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .05);
  box-shadow: inset 0 0 0 1px var(--v2-edge);
  color: var(--v2-text-3, rgba(255, 255, 255, .55));
  transition: box-shadow var(--v2-t-fast) var(--v2-ease);
}
.fx-search:focus-within { box-shadow: inset 0 0 0 1px rgba(0, 255, 135, .6), 0 0 0 3px rgba(0, 255, 135, .12); }
html.v2 .fx-search > input.v2-input:not([type="checkbox"]):not([type="radio"]):not([type="range"]) { flex: 1; min-width: 0; height: 42px; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; color: #fff; font: 500 .9375rem/1 var(--v2-font); outline: none; }
.fx-search input::placeholder { color: var(--v2-text-3, rgba(255, 255, 255, .45)); }
.fx-search.is-plain { padding: 0 12px; }
.fx-posseg { align-self: flex-start; }
.fx-selects { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; }
.fx-selects label { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.fx-selects span { color: var(--v2-text-3, rgba(255, 255, 255, .5)); font: 700 .6875rem/1 var(--v2-font); letter-spacing: .06em; text-transform: uppercase; }
html.v2 .fx-selects select.v2-input {
  appearance: none;
  width: 100%;
  min-height: 40px;
  padding: 0 30px 0 12px;
  border: 0;
  border-radius: 12px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 12px center / 12px no-repeat,
    rgba(255, 255, 255, .05);
  box-shadow: inset 0 0 0 1px var(--v2-edge);
  color: #fff;
  font: 600 .8125rem/1 var(--v2-font);
  cursor: pointer;
}
.fx-selects select option { background: #15181c; color: #fff; }
.fx-mlist { display: flex; flex-direction: column; gap: 2px; }
.fx-mgroup {
  position: sticky;
  top: 0;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 60px 44px 30px;
  gap: 8px;
  padding: 10px 8px 6px 44px;
  background: #121418;
  color: var(--v2-text-3, rgba(255, 255, 255, .5));
  font: 700 .6875rem/1 var(--v2-font);
  letter-spacing: .06em;
  text-transform: uppercase;
}
.fx-mgroup span:nth-child(2), .fx-mgroup span:nth-child(3) { text-align: right; }
.fx-mrow { display: grid; grid-template-columns: 36px minmax(0, 1fr); align-items: center; border-radius: 12px; transition: background-color var(--v2-t-fast) var(--v2-ease); }
.fx-mrow:hover { background: rgba(255, 255, 255, .045); }
.fx-mrow-info { display: grid; place-items: center; width: 36px; height: 44px; border: 0; background: none; color: var(--v2-text-3, rgba(255, 255, 255, .5)); cursor: pointer; }
.fx-mrow-info:hover { color: #fff; }
.fx-mrow-main {
  appearance: none;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 60px 44px 30px;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  padding: 4px 8px 4px 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.fx-mrow-main:disabled { cursor: default; }
.fx-mini { position: relative; display: block; width: 30px; aspect-ratio: 64 / 60; }
.fx-mini .fx-kit { width: 100%; height: 100%; }
.fx-mini-face {
  position: absolute;
  right: 0;
  bottom: -2px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  overflow: hidden;
  background: #14161b;
  box-shadow: 0 0 0 1.5px rgba(9, 10, 12, .9);
  z-index: 2;
}
.fx-mini-face .fx-av { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; color: #fff; font-size: 11px; font-weight: 800; }
.fx-mrow-nm { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.fx-mrow-nm b { color: #fff; font-weight: 700; font-size: .875rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fx-mrow-nm i { color: var(--v2-text-3, rgba(255, 255, 255, .55)); font-style: normal; font-size: .75rem; }
.fx-mrow-price, .fx-mrow-pts { text-align: right; font-variant-numeric: tabular-nums; }
.fx-mrow-price { color: #fff; font: 700 .8125rem/1 var(--v2-font); }
.fx-mrow-pts { color: #fff; font: 800 .9375rem/1 var(--v2-display); }
.fx-mrow-go { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: rgba(255, 255, 255, .08); color: #fff; justify-self: end; transition: background-color var(--v2-t-fast) var(--v2-ease), color var(--v2-t-fast) var(--v2-ease); }
.fx-mrow-main:hover .fx-mrow-go { background: var(--fx-green); color: var(--fx-green-ink); }
.fx-mrow.is-in .fx-mrow-go { background: rgba(0, 255, 135, .16); color: var(--fx-green); }
.fx-mrow.is-in .fx-mrow-main:hover .fx-mrow-go { background: rgba(255, 45, 138, .2); color: #ff7ab5; }
.fx-mrow.is-pricey .fx-mrow-price { color: #ff7ab5; }
.fx-mrow.is-off { opacity: .38; }
.fx-more { align-self: center; margin: 10px 0 4px; }

/* ------------------------------------------------------------ the save bar */
.fx-savebar { position: sticky; bottom: 18px; z-index: 30; margin-top: 4px; }
.fx-savebar-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 64px;
  padding: 10px 10px 10px 20px;
  border-radius: 999px;
  background: rgba(20, 12, 28, .72);
  -webkit-backdrop-filter: var(--v2-blur);
  backdrop-filter: var(--v2-blur);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), 0 20px 50px -18px rgba(0, 0, 0, .9);
}
.fx-savebar.is-dirty .fx-savebar-in { box-shadow: inset 0 0 0 1px rgba(0, 255, 135, .4), 0 20px 50px -18px rgba(0, 0, 0, .9); }
.fx-savebar-acts { display: flex; align-items: center; gap: 6px; flex: none; }
.fx-note { display: inline-flex; align-items: center; gap: 6px; min-width: 0; color: var(--v2-text-2, rgba(255, 255, 255, .78)); font-size: .8125rem; font-weight: 600; line-height: 1.35; }
.fx-note.is-err { color: #ff8fbf; }
.fx-note.is-warn { color: var(--fx-amber); }
.fx-note.is-ok { color: var(--fx-green); }
.fx-save { min-width: 132px; }

/* ------------------------------------------------------------ League */
.fx-lhead, .fx-lrow { display: grid; grid-template-columns: 74px minmax(0, 1fr) 64px 76px; align-items: center; gap: 8px; }
.fx-lhead { padding: 0 18px 10px; color: var(--v2-text-3, rgba(255, 255, 255, .5)); font: 700 .6875rem/1 var(--v2-font); letter-spacing: .06em; text-transform: uppercase; border-bottom: 1px solid var(--v2-line); }
.fx-lhead span:nth-child(3), .fx-lhead span:nth-child(4) { text-align: right; }
.fx-ltable { display: flex; flex-direction: column; }
.fx-lrow { min-height: 60px; padding: 8px 18px; border-bottom: 1px solid var(--v2-line); color: inherit; text-decoration: none; transition: background-color var(--v2-t-fast) var(--v2-ease); }
.fx-lrow:last-child { border-bottom: 0; }
.fx-lrow:hover { background: rgba(255, 255, 255, .04); }
.fx-lrow.is-me { background: rgba(0, 255, 135, .08); }
.fx-lrow.is-me .fx-lr-team i { color: var(--fx-green); }
.fx-lr-rank { display: flex; align-items: center; gap: 8px; }
.fx-lr-rank b { font: 800 1rem/1 var(--v2-display); color: #fff; font-variant-numeric: tabular-nums; min-width: 2ch; }
.fx-lrow.is-r1 .fx-lr-rank b { color: var(--v2-gold); }
.fx-lrow.is-r2 .fx-lr-rank b { color: var(--v2-silver); }
.fx-lrow.is-r3 .fx-lr-rank b { color: var(--v2-bronze); }
.fx-mv { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; }
.fx-mv.is-up { background: rgba(0, 255, 135, .16); color: var(--fx-green); }
.fx-mv.is-down { background: rgba(255, 45, 138, .16); color: #ff7ab5; }
.fx-mv.is-same::before { content: ""; width: 8px; height: 2px; border-radius: 2px; background: rgba(255, 255, 255, .3); }
.fx-lr-team { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.fx-lr-team b { color: #fff; font-weight: 700; font-size: .9375rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fx-lr-team i { color: var(--v2-text-3, rgba(255, 255, 255, .55)); font-style: normal; font-size: .75rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fx-lr-gw, .fx-lr-tot { text-align: right; font-variant-numeric: tabular-nums; }
.fx-lr-gw { color: var(--v2-text-2, rgba(255, 255, 255, .78)); font: 700 .9375rem/1 var(--v2-font); }
.fx-lr-tot { color: #fff; font: 800 1.0625rem/1 var(--v2-display); }
.fx-bigfig { display: flex; align-items: baseline; gap: 10px; }
.fx-bigfig b { font: 800 2.5rem/1 var(--v2-display); color: #fff; font-variant-numeric: tabular-nums; }
.fx-bigfig span { color: var(--v2-text-2, rgba(255, 255, 255, .7)); font-size: .875rem; }

/* ------------------------------------------------------------ Players */
.fx-statbar { display: flex; flex-direction: column; gap: 10px; padding: 0 18px 14px; }
@media (min-width: 900px) {
  .fx-statbar { flex-direction: row; flex-wrap: wrap; align-items: flex-end; }
  .fx-statbar .fx-search { flex: 1 1 260px; }
  .fx-statbar .fx-selects { flex: 1 1 280px; }
}
.fx-shead, .fx-srow { display: grid; grid-template-columns: 34px 30px minmax(0, 1fr) 62px 62px 52px 56px 56px; align-items: center; gap: 8px; }
.fx-shead { padding: 10px 18px; color: var(--v2-text-3, rgba(255, 255, 255, .5)); font: 700 .6875rem/1 var(--v2-font); letter-spacing: .06em; text-transform: uppercase; border-top: 1px solid var(--v2-line); border-bottom: 1px solid var(--v2-line); }
.fx-shead span:nth-child(n + 4) { text-align: right; }
.fx-slist { display: flex; flex-direction: column; }
.fx-srow {
  appearance: none;
  min-height: 56px;
  padding: 6px 18px;
  border: 0;
  border-bottom: 1px solid var(--v2-line);
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background-color var(--v2-t-fast) var(--v2-ease);
}
.fx-srow:hover { background: rgba(255, 255, 255, .04); }
.fx-sr-n { color: var(--v2-text-3, rgba(255, 255, 255, .5)); font: 700 .8125rem/1 var(--v2-font); font-variant-numeric: tabular-nums; }
.fx-sr-nm { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.fx-sr-nm b { color: #fff; font-weight: 700; font-size: .875rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fx-sr-nm i { color: var(--v2-text-3, rgba(255, 255, 255, .55)); font-style: normal; font-size: .75rem; }
.fx-sr-c { text-align: right; color: var(--v2-text-2, rgba(255, 255, 255, .8)); font: 600 .8125rem/1 var(--v2-font); font-variant-numeric: tabular-nums; }
.fx-sr-c.is-tot { color: #fff; font: 800 .9375rem/1 var(--v2-display); }
.fx-slist .fx-more { margin: 14px auto; }

/* ------------------------------------------------------------ Rules */
.fx-rules { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 900px) {
  .fx-rules { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fx-rules .fx-card.is-wide { grid-column: span 2; grid-row: span 2; }
}
.fx-rulelist { display: flex; flex-direction: column; }
.fx-rule { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 46px; border-bottom: 1px solid var(--v2-line); }
.fx-rule:last-child { border-bottom: 0; }
.fx-rule span { display: flex; flex-direction: column; gap: 2px; color: #fff; font-size: .875rem; font-weight: 600; }
.fx-rule span i { color: var(--v2-text-3, rgba(255, 255, 255, .55)); font-style: normal; font-size: .75rem; font-weight: 500; }
.fx-rule b { min-width: 44px; padding: 6px 10px; border-radius: 10px; background: rgba(255, 255, 255, .07); color: #fff; font: 800 .9375rem/1 var(--v2-display); text-align: center; font-variant-numeric: tabular-nums; }
.fx-rule b.is-pos { background: rgba(0, 255, 135, .14); color: var(--fx-green); }
.fx-rule b.is-neg { background: rgba(255, 45, 138, .14); color: #ff8fbf; }
.fx-rulelist.is-tight .fx-rule { min-height: 38px; }
.fx-rulelist.is-tight .fx-rule b { font-size: .8125rem; min-width: 0; }

/* ------------------------------------------------------------ the desk */
.fx-desk { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 900px) {
  .fx-desk { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fx-desk .fx-card.is-wide { grid-column: 1 / -1; }
}
.fx-switch {
  appearance: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 14px 16px;
  border: 0;
  border-radius: 16px;
  background: rgba(255, 255, 255, .05);
  box-shadow: inset 0 0 0 1px var(--v2-edge);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background-color var(--v2-t-fast) var(--v2-ease), box-shadow var(--v2-t-fast) var(--v2-ease);
}
.fx-switch:hover { background: rgba(255, 255, 255, .08); }
.fx-switch-txt { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.fx-switch-txt b { color: #fff; font: 700 .9375rem/1.2 var(--v2-font); }
.fx-switch-txt i { color: var(--v2-text-2, rgba(255, 255, 255, .7)); font-style: normal; font-size: .8125rem; line-height: 1.4; }
.fx-switch-knob { position: relative; flex: none; width: 52px; height: 30px; border-radius: 999px; background: rgba(255, 255, 255, .16); transition: background-color var(--v2-t) var(--v2-ease); }
.fx-switch-knob i { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .45); transition: transform var(--v2-t) var(--v2-ease-out); }
.fx-switch[aria-checked="true"] .fx-switch-knob { background: var(--fx-green); }
.fx-switch[aria-checked="true"] .fx-switch-knob i { transform: translateX(22px); }
.fx-switch-card.is-on .fx-switch { box-shadow: inset 0 0 0 1px rgba(0, 255, 135, .4); background: rgba(0, 255, 135, .06); }
.fx-switch-card.is-warn .fx-switch { box-shadow: inset 0 0 0 1px rgba(255, 201, 74, .4); background: rgba(255, 201, 74, .06); }
.fx-switch-card.is-warn .fx-switch[aria-checked="true"] .fx-switch-knob { background: var(--fx-amber); }
.fx-figs { flex-direction: row; justify-content: space-around; align-items: center; }
.fx-figs span { display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--v2-text-2, rgba(255, 255, 255, .7)); font-size: .75rem; font-weight: 600; text-align: center; }
.fx-figs b { font: 800 1.5rem/1 var(--v2-display); color: #fff; font-variant-numeric: tabular-nums; }
.fx-findrow { display: flex; gap: 8px; align-items: center; }
.fx-findrow .fx-search { flex: 1; }
.fx-dlist { display: flex; flex-direction: column; gap: 4px; }
.fx-drow { border-radius: 14px; transition: background-color var(--v2-t-fast) var(--v2-ease); }
.fx-drow.is-open { background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px var(--v2-edge); }
.fx-drow-main {
  appearance: none;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 54px;
  padding: 6px 12px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.fx-drow-main:hover { background: rgba(255, 255, 255, .04); }
.fx-drow-figs { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.fx-drow-figs b { color: #fff; font: 800 .9375rem/1 var(--v2-display); }
.fx-drow-figs i { color: var(--v2-text-3, rgba(255, 255, 255, .55)); font-style: normal; font-size: .75rem; }
.fx-tag { padding: 5px 10px; border-radius: 999px; background: rgba(255, 255, 255, .07); color: var(--v2-text-2, rgba(255, 255, 255, .7)); font: 700 .6875rem/1 var(--v2-font); }
.fx-edit { display: flex; flex-direction: column; gap: 14px; padding: 6px 14px 16px; }
.fx-edit-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.fx-edit-row.is-acts { align-items: center; }
.fx-edit-lab { display: block; margin-bottom: 6px; color: var(--v2-text-3, rgba(255, 255, 255, .5)); font: 700 .6875rem/1 var(--v2-font); letter-spacing: .06em; text-transform: uppercase; }
.fx-edit-row > .fx-edit-lab { margin: 0 6px 0 0; align-self: center; }
.fx-field { display: flex; flex-direction: column; }
.fx-step { display: inline-flex; align-items: center; gap: 4px; padding: 3px; border-radius: 12px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px var(--v2-edge); }
.fx-step button { width: 34px; height: 34px; border: 0; border-radius: 9px; background: rgba(255, 255, 255, .08); color: #fff; font: 700 1rem/1 var(--v2-font); cursor: pointer; }
.fx-step button:hover { background: rgba(255, 255, 255, .16); }
html.v2 .fx-step > input.v2-input:not([type="checkbox"]):not([type="radio"]):not([type="range"]) { width: 72px; height: 34px; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; color: #fff; font: 700 .9375rem/1 var(--v2-font); text-align: center; outline: none; font-variant-numeric: tabular-nums; }
.fx-quick { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.fx-grow { flex: 1; }
.fx-log { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; max-height: 340px; overflow-y: auto; }
.fx-log li { display: flex; flex-direction: column; gap: 3px; padding: 9px 0; border-bottom: 1px solid var(--v2-line); }
.fx-log li:last-child { border-bottom: 0; }
.fx-log span { color: #fff; font-size: .8125rem; line-height: 1.4; }
.fx-log i { color: var(--v2-text-3, rgba(255, 255, 255, .5)); font-style: normal; font-size: .75rem; }

/* ------------------------------------------------------------ the player's page (a sheet) */
html.v2 .fx-modal.v2-modal .modal { padding: 0 0 env(safe-area-inset-bottom, 0px); overflow-x: hidden; }
html.v2 .fx-modal.v2-modal .modal .fx-ps-id h2 { font-size: clamp(1.25rem, 1rem + 1.2vw, 1.75rem); }
html.v2 .fx-modal.v2-modal .modal > .v2-grab { position: absolute; z-index: 2; left: 50%; top: 8px; transform: translateX(-50%); }
@media (min-width: 900px) {
  html.v2 .fx-modal .modal { width: min(560px, calc(100vw - 48px)); max-width: 560px; }
  html.v2 .fx-modal-market .modal { width: min(520px, calc(100vw - 48px)); }
}
.fx-psheet { display: flex; flex-direction: column; gap: 18px; padding-bottom: 22px; }
.fx-ps-head {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 30px 22px 22px;
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, .04) 0 2px, transparent 2px 14px),
    linear-gradient(125deg, color-mix(in srgb, var(--fx-tone) 58%, #12081c) 0%, #1d0b2c 70%, #12081c 100%);
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, .08);
}
.fx-ps-kit { position: relative; flex: none; width: 92px; aspect-ratio: 64 / 60; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .5)); }
.fx-ps-id { display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 1; }
.fx-ps-pos { align-self: flex-start; padding: 4px 9px; border-radius: 999px; background: rgba(255, 255, 255, .14); color: #fff; font: 700 .6875rem/1 var(--v2-font); letter-spacing: .06em; text-transform: uppercase; }
.fx-ps-id h2 { font: 800 clamp(1.25rem, 1rem + 1.2vw, 1.75rem)/1.1 var(--v2-display); color: #fff; overflow-wrap: anywhere; }
.fx-ps-club { display: inline-flex; align-items: center; gap: 8px; color: rgba(255, 255, 255, .8); font-size: .875rem; font-weight: 600; }
.fx-ps-face { flex: none; width: 64px; height: 64px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(255, 255, 255, .25); }
.fx-ps-figs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; padding: 0 18px; }
.fx-ps-figs span { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 4px; border-radius: 14px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px var(--v2-edge); color: var(--v2-text-2, rgba(255, 255, 255, .7)); font-size: .6875rem; font-weight: 700; text-align: center; letter-spacing: .02em; }
.fx-ps-figs b { color: #fff; font: 800 1rem/1 var(--v2-display); font-variant-numeric: tabular-nums; }
.fx-ps-acts { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 18px; }
.fx-ps-acts .v2-btn { flex: 1 1 140px; }
.fx-ps-sec { display: flex; flex-direction: column; gap: 10px; padding: 0 18px; }
.fx-ps-sec h3 { font: 700 .9375rem/1.2 var(--v2-display); color: #fff; }
.fx-ps-sec .fx-muted { margin: 0; }
.fx-fixes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.fx-fix { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px; border-radius: 14px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px var(--v2-edge); }
.fx-fix b { color: #fff; font: 700 .8125rem/1 var(--v2-font); }
.fx-fix i { color: var(--v2-text-3, rgba(255, 255, 255, .55)); font-style: normal; font-size: .75rem; }
.fx-ptable { display: flex; flex-direction: column; border-radius: 14px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--v2-edge); }
.fx-pt-h, .fx-pt-r { display: grid; grid-template-columns: 36px minmax(0, 1fr) 40px 26px 26px 30px 30px 40px; align-items: center; gap: 6px; padding: 0 12px; }
.fx-pt-h { min-height: 34px; background: rgba(255, 255, 255, .05); color: var(--v2-text-3, rgba(255, 255, 255, .55)); font: 700 .6875rem/1 var(--v2-font); letter-spacing: .05em; text-transform: uppercase; }
.fx-pt-r { min-height: 42px; border-top: 1px solid var(--v2-line); color: var(--v2-text-2, rgba(255, 255, 255, .8)); font: 600 .8125rem/1 var(--v2-font); font-variant-numeric: tabular-nums; }
.fx-pt-h span:nth-child(n + 3), .fx-pt-r span:nth-child(n + 3), .fx-pt-r b { text-align: center; }
.fx-pt-r b { color: #fff; font: 800 .9375rem/1 var(--v2-display); }
.fx-pt-opp { display: flex; align-items: center; gap: 6px; color: #fff; white-space: nowrap; overflow: hidden; }
.fx-pt-opp i { color: var(--v2-text-3, rgba(255, 255, 255, .55)); font-style: normal; }
.fx-card-y, .fx-card-r { display: inline-block; width: 8px; height: 11px; border-radius: 2px; }
.fx-card-y { background: #ffd23f; }
.fx-card-r { background: #ff3b4e; }

/* ------------------------------------------------------------ the match, man by man

   THE POINTS, TAKEN APART. A matchweek's fixtures are a strip of chips; under it,
   the chosen match's scoreline and every footballer the game paid, best first, with
   the reasons beside his points. The squad's own five carry a marker down the
   side, so a manager can see at once which of his men paid and which did not. */
.fx-fxchips { display: flex; gap: 8px; padding: 0 18px; overflow-x: auto; scrollbar-width: none; }
.fx-fxchips::-webkit-scrollbar { display: none; }
.fx-fxchip {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 9px 13px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, .05);
  box-shadow: inset 0 0 0 1px var(--v2-edge);
  color: var(--v2-text-2, rgba(255, 255, 255, .74));
  font: 700 .8125rem/1.1 var(--v2-font);
  cursor: pointer;
  white-space: nowrap;
}
.fx-fxchip i { color: var(--fx-green); font-style: normal; font-size: .6875rem; font-weight: 700; }
.fx-fxchip.is-on { background: rgba(0, 255, 135, .1); box-shadow: inset 0 0 0 1px rgba(0, 255, 135, .45); color: #fff; }
.fx-sc-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  margin: 0 18px;
  padding: 14px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .04);
  box-shadow: inset 0 0 0 1px var(--v2-edge);
}
.fx-sc-side { display: flex; align-items: center; gap: 8px; min-width: 0; }
.fx-sc-side b { color: #fff; font: 700 .9375rem/1.2 var(--v2-display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx-sc-side.is-away { justify-content: flex-end; text-align: right; }
.fx-sc-score { font: 800 1.375rem/1 var(--v2-display); color: #fff; font-variant-numeric: tabular-nums; }
.fx-sclist { display: flex; flex-direction: column; gap: 2px; padding: 2px 10px 10px; }
.fx-scrow {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 48px;
  align-items: start;
  gap: 10px;
  padding: 12px 10px;
  border-radius: 12px;
  border-top: 1px solid var(--v2-line);
}
.fx-scrow:first-child { border-top: 0; }
.fx-scrow.is-mine { background: rgba(0, 255, 135, .05); }
.fx-sc-pos { display: grid; place-items: center; height: 24px; margin-top: 2px; border-radius: 6px; background: rgba(255, 255, 255, .07); color: var(--v2-text-2, rgba(255, 255, 255, .78)); font: 700 .6875rem/1 var(--v2-font); letter-spacing: .04em; }
.fx-sc-who { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.fx-sc-nm { display: flex; align-items: center; gap: 7px; min-width: 0; }
.fx-sc-nm b { color: #fff; font-weight: 700; font-size: .875rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx-sc-tag { flex: none; padding: 2px 6px; border-radius: 6px; background: rgba(0, 255, 135, .14); color: var(--fx-green); font: 800 .6875rem/1.3 var(--v2-font); font-style: normal; letter-spacing: .04em; }
.fx-sc-tag.is-sub { background: rgba(255, 255, 255, .08); color: var(--v2-text-3, rgba(255, 255, 255, .6)); }
.fx-sc-sub { display: flex; align-items: center; gap: 6px; color: var(--v2-text-3, rgba(255, 255, 255, .55)); font-size: .75rem; font-weight: 600; }
.fx-sc-sub .fx-crest { flex: none; }
.fx-sc-pts { color: #fff; font: 800 1.125rem/1.2 var(--v2-display); font-variant-numeric: tabular-nums; text-align: right; }
.fx-sc-total { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; color: var(--v2-text-3, rgba(255, 255, 255, .55)); font: 600 .6875rem/1.3 var(--v2-font); text-align: right; }
.fx-sc-total b { color: var(--fx-green); font: 800 1rem/1 var(--v2-display); font-variant-numeric: tabular-nums; }
.fx-sc-total.is-neg b { color: #ff6b7a; }
.fx-scores-note { margin: 0; padding: 0 18px 16px; }

.fx-why { display: flex; flex-wrap: wrap; gap: 5px; }
.fx-why-c {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px 3px 6px;
  border-radius: 7px;
  background: rgba(255, 255, 255, .06);
  color: var(--v2-text-2, rgba(255, 255, 255, .78));
  font: 600 .6875rem/1.4 var(--v2-font);
  white-space: nowrap;
}
.fx-why-c i { color: var(--fx-green); font-style: normal; font-weight: 800; font-variant-numeric: tabular-nums; }
.fx-why-c.is-neg i { color: #ff6b7a; }
.fx-why-c.is-cap { background: rgba(255, 201, 74, .12); box-shadow: inset 0 0 0 1px rgba(255, 201, 74, .3); color: #ffe1a3; }
.fx-why-c.is-cap i { color: #ffc94a; }
.fx-why-none { color: var(--v2-text-3, rgba(255, 255, 255, .5)); font-size: .75rem; font-weight: 600; }
.fx-whylist { display: flex; flex-direction: column; gap: 8px; }
.fx-whyrow { display: flex; flex-direction: column; gap: 7px; padding: 11px 12px; border-radius: 12px; background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px var(--v2-edge); }
.fx-whyrow-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.fx-whyrow-h span { color: var(--v2-text-2, rgba(255, 255, 255, .78)); font: 700 .75rem/1.3 var(--v2-font); }
.fx-whyrow-h b { color: #fff; font: 800 .9375rem/1 var(--v2-display); font-variant-numeric: tabular-nums; }

/* The list of players, as a sheet (a phone). */
.fx-market.is-sheet { padding: 22px 16px 16px; border-radius: 0; background: none; box-shadow: none; }
.fx-modal-market .fx-mgroup { background: #16181d; }
@media (max-width: 899px) {
  html.v2 .fx-modal-market.v2-modal .modal { min-height: 82vh; }
}

/* ------------------------------------------------------------ the phone */
@media (max-width: 899px) {
  .fx { --fx-kit-w: 58px; --fx-plate-w: 84px; gap: 14px; }
  .fx-hero-in { flex-direction: column; align-items: flex-start; gap: 14px; padding: 18px; }
  .fx-brand-mark { width: 42px; height: 42px; }
  .fx-hero-side { align-items: flex-start; gap: 14px; width: 100%; }
  .fx-hero-figs { gap: 26px; }
  .fx-hero-figs span { align-items: flex-start; }
  .fx-hero-figs b { font-size: 1.375rem; }
  .fx-nav {
    position: sticky;
    top: calc(var(--bar-h) + env(safe-area-inset-top, 0px));
    z-index: 20;
    margin: -4px calc(var(--v2-gut) * -1) 0;
    padding: 0 var(--v2-gut);
    background: rgba(5, 6, 8, .82);
    -webkit-backdrop-filter: var(--v2-blur);
    backdrop-filter: var(--v2-blur);
  }
  .fx-tab { min-height: 48px; padding: 0 13px; font-size: .8125rem; }
  .fx-tab.is-desk { margin-left: 0; }
  .fx-pitch { padding: 16px 2px 18px; }
  .fx-turf { inset: 10px 3% 8px; }
  .fx-lines { min-height: 340px; gap: 8px; }
  .fx-line, .fx-bench-row { gap: clamp(8px, 4vw, 26px); }
  .fx-nm, .fx-val { font-size: .6875rem; padding-left: 4px; padding-right: 4px; }
  .fx-val.is-pts { font-size: .8125rem; }
  .fx-cap { width: 20px; height: 20px; }
  .fx-face { right: -7px; width: 20px; height: 20px; }
  .fx-sum { padding: 14px 12px 16px; gap: 14px; }
  .fx-sum-row { grid-template-columns: 1fr 1.25fr 1fr; gap: 6px; }
  .fx-sum-side b { font-size: 1.25rem; }
  .fx-tiles { gap: 6px; }
  .fx-tile { padding: 12px; }
  .fx-tile b { font-size: 1.0625rem; }
  .fx-tile span { font-size: .6875rem; }
  .fx-start-steps { grid-template-columns: minmax(0, 1fr); }
  .fx-savebar { position: fixed; left: 10px; right: 10px; bottom: calc(var(--v2-tabbar-h) + env(safe-area-inset-bottom, 0px) + 6px); margin: 0; }
  .fx-savebar-in { min-height: 58px; padding: 8px 8px 8px 16px; border-radius: 22px; }
  .fx-save { min-width: 0; }
  .fx.is-pick .fx-body, .fx.is-transfers .fx-body { padding-bottom: 76px; }
  .fx-lhead, .fx-lrow { grid-template-columns: 58px minmax(0, 1fr) 46px 58px; padding-left: 12px; padding-right: 12px; }
  .fx-card.is-flush > .fx-card-h { padding: 16px 14px 10px; }
  .fx-statbar { padding: 0 14px 12px; }
  .fx-shead, .fx-srow { grid-template-columns: 26px 26px minmax(0, 1fr) 54px 50px; padding-left: 12px; padding-right: 12px; }
  .fx-shead .is-wide, .fx-srow .is-wide { display: none; }
  .fx-ps-head { padding: 24px 16px 18px; gap: 12px; }
  .fx-ps-kit { width: 70px; }
  .fx-ps-face { width: 48px; height: 48px; }
  .fx-ps-figs { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 0 14px; }
  .fx-ps-figs span:nth-child(4), .fx-ps-figs span:nth-child(5) { grid-column: span 1; }
  .fx-ps-acts, .fx-ps-sec { padding: 0 14px; }
  .fx-pt-h, .fx-pt-r { grid-template-columns: 24px minmax(0, 1fr) 30px 20px 20px 24px 24px 30px; padding: 0 8px; gap: 3px; }
  .fx-fxchips { padding: 0 14px; }
  .fx-fxchip { padding: 10px 12px; }
  .fx-sc-head { margin: 0 14px; padding: 12px 10px; }
  .fx-sclist { padding: 0 8px 8px; }
  .fx-scrow { grid-template-columns: 38px minmax(0, 1fr) 40px; padding: 10px 8px; }
  .fx-scores-note { padding: 0 14px; }
  .fx-scores .fx-card-h { flex-direction: column; align-items: flex-start; gap: 8px; }
  .fx-sc-total { align-items: flex-start; text-align: left; }
}
@media (max-width: 380px) {
  .fx { --fx-kit-w: 50px; --fx-plate-w: 74px; }
}

@media (prefers-reduced-motion: reduce) {
  .fx *, .fx *::before, .fx *::after { transition: none !important; }
}
