/* IPL Fantasy (static/fantasy.js): the season game's look (play.css, .sx: the pitch, the shirts, the strip, the cards,
   the player card), and what only this game has: the round's strip, the welcome with an XI on a little ground, the
   status tiles, price changes, the transfers bar and player list, the leagues. */

body.fx-page { background: #F2F4F7; }
.fx-main { display: block; min-height: 70vh; }
.fx-main .sx { min-height: 70vh; }
.fx-noscript { max-width: 640px; margin: 40px auto; padding: 0 20px; color: #475467; }
.fx-msg { max-width: 560px; margin: 40px auto; gap: 10px; align-items: flex-start; }
.fx-msg h1 { margin: 0; font-family: var(--display); font-weight: 900; font-size: 34px; line-height: 1; }
.fx-msg p { margin: 0 0 6px; color: var(--s-sub); }
.sx a.sx-btn { color: #fff; }
.sx a.sx-btn.gold { color: #1A1405; }
.sx a.sx-btn.ghost { color: var(--s-ink); }
.sx :focus-visible { outline: 2px solid var(--s-brand); outline-offset: 2px; }

/* ---- the round's strip: which practice round, the gameweek on or next, the next deadline */
.fx-rbar { background: var(--s-card); border-bottom: 1px solid var(--s-line); }
.fx-rbar-in { max-width: 1240px; margin: 0 auto; padding: 9px 20px; display: flex; align-items: center; gap: 8px 14px; flex-wrap: wrap; font-size: 13.5px; }
.fx-rl { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.fx-rl b { font-weight: 800; color: var(--s-brand); white-space: nowrap; }
.fx-rl span { color: var(--s-mu); }
.fx-pill { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 800; white-space: nowrap; }
.fx-pill .sx-dot { margin: 0; }
.fx-pill.live { background: #FEECEB; color: #D92D20; }
.fx-pill.wait { background: var(--s-gold-bg); color: var(--s-gold); }
.fx-pill.done { background: var(--s-soft); color: var(--s-sub); }
.fx-rd { margin-left: auto; color: var(--s-sub); display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.fx-rd b { color: var(--s-ink); font-weight: 750; }
.fx-cd { margin-left: 6px; padding: 2px 8px; border-radius: 6px; background: var(--s-brand); color: #fff; font-weight: 800; font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---- the welcome: the game in a line, the way in, and an XI on a little ground in IPL colours */
.fx-hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 28px; align-items: center; overflow: hidden;
  margin-bottom: 18px; padding: 38px 40px; border-radius: 22px; color: #fff;
  background: radial-gradient(120% 150% at 0% 100%, #3E0A18 0%, rgba(62, 10, 24, 0) 55%), radial-gradient(110% 130% at 100% 0%, var(--s-brand2) 0%, var(--s-brand) 62%); }
.fx-hero::before { content: ""; position: absolute; left: -90px; bottom: -140px; width: 380px; height: 380px; border-radius: 50%; border: 44px solid rgba(255, 255, 255, .035); pointer-events: none; }
.fx-hero-t { position: relative; z-index: 1; min-width: 0; }
.fx-hero h1 { margin: 0 0 14px; font-family: var(--display); font-weight: 900; font-size: clamp(52px, 7.2vw, 84px); line-height: .9; letter-spacing: .005em; color: #fff; }
.fx-lede { margin: 0; max-width: 34em; font-size: 17px; line-height: 1.55; color: rgba(255, 255, 255, .86); }
.fx-hero-a { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 24px; }
.fx-hero-a .sx-btn { height: 48px; padding: 0 22px; font-size: 16px; }
.fx-hero-d { font-size: 14px; color: rgba(255, 255, 255, .78); }
.fx-hero-d b { color: #fff; font-weight: 750; }
.fx-hero-n { margin: 18px 0 0; max-width: 36em; font-size: 13px; line-height: 1.5; color: rgba(255, 255, 255, .6); }
.fx-hero-r { position: relative; z-index: 1; display: flex; justify-content: center; }
.fx-hp { position: relative; width: min(100%, 380px); aspect-ratio: 1 / 1; display: flex; flex-direction: column; justify-content: space-evenly; padding: 9% 6%;
  border-radius: 50%; background: repeating-linear-gradient(90deg, #3F9D5C 0 34px, #399255 34px 68px);
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .42), inset 0 0 0 26px rgba(255, 255, 255, .035), 0 24px 60px rgba(20, 3, 8, .45); }
.fx-hp-f { position: absolute; left: 50%; top: 50%; width: 15%; height: 30%; transform: translate(-50%, -50%); border-radius: 3px; background: rgba(236, 219, 164, .62); }
.fx-hp-f::before, .fx-hp-f::after { content: ""; position: absolute; left: -12%; right: -12%; height: 2px; background: rgba(255, 255, 255, .75); }
.fx-hp-f::before { top: 14%; }
.fx-hp-f::after { bottom: 14%; }
.fx-hp-r { position: relative; z-index: 1; display: flex; justify-content: center; gap: 5%; }
.fx-hp-s { position: relative; line-height: 0; filter: drop-shadow(0 4px 5px rgba(0, 0, 0, .3)); }
.fx-hp-s .sx-cap { position: absolute; left: -7px; top: -5px; }
/* the round over: who won, where you finished, when the next begins */
.fx-over { flex-direction: row; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; border-color: #F0D58A; background: linear-gradient(120deg, #FFF5D6 0%, #FFFFFF 75%); }
.fx-over-t { display: flex; align-items: flex-start; gap: 16px; min-width: 0; }
.fx-over h2 { margin: 2px 0 4px; font-size: 20px; font-weight: 800; letter-spacing: -.01em; }
.fx-over p { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--s-sub); }
.fx-over p b { color: var(--s-ink); }
.fx-over .fx-over-n { margin-top: 4px; font-size: 13.5px; }
.fx-trophy { flex: none; width: 52px; height: 52px; border-radius: 50%; background: var(--s-brand); color: #F5C451; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 16px rgba(92, 15, 36, .25); }
/* how to play: a real sequence, so numbered */
.fx-steps { list-style: none; counter-reset: st; margin: 0 0 20px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.fx-steps li { counter-increment: st; position: relative; padding: 18px 18px 18px 66px; border-radius: 16px; background: var(--s-card); border: 1px solid var(--s-line); box-shadow: var(--s-shadow); min-width: 0; }
.fx-steps li::before { content: counter(st); position: absolute; left: 18px; top: 17px; width: 34px; height: 34px; border-radius: 50%; background: var(--s-brand); color: #F5C451;
  font-family: var(--display); font-weight: 900; font-size: 20px; display: flex; align-items: center; justify-content: center; }
.fx-steps b { display: block; margin-bottom: 4px; font-size: 16px; font-weight: 800; letter-spacing: -.01em; }
.fx-steps span { display: block; font-size: 13.5px; line-height: 1.5; color: var(--s-sub); }

/* ---- Home, as FPL's Status page: the main column and a narrower one beside it */
.sx-grid.g-home { grid-template-columns: minmax(0, 1fr) 360px; }
.fx-gwbn .sx-gwbs.three { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, 1fr); max-width: 620px; align-items: end; }
.fx-gwbn .sx-gwbs.two { max-width: 520px; }
.fx-gwbn .sx-gwbs .me b { font-size: 76px; color: #F5C451; }
.fx-gwbn .sx-gwbs b a { color: #fff; text-decoration: none; border-bottom: 3px solid rgba(245, 196, 81, .55); }
.fx-gwbn .sx-gwbs b a:hover { border-bottom-color: #F5C451; }
.fx-gwbn .sx-gwbs small { margin-top: 6px; font-size: 12.5px; color: rgba(255, 255, 255, .76); }
.fx-gwbn .fx-dlt { font-size: 50px; }
/* the status tiles: who everyone picked */
.fx-sts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.fx-st { display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 0; padding: 14px 8px 12px; border-radius: 14px; border: 1px solid var(--s-line); background: var(--s-soft);
  color: var(--s-ink); font: inherit; text-align: center; }
button.fx-st { cursor: pointer; transition: background-color .15s, border-color .15s, box-shadow .15s; }
button.fx-st:hover { background: var(--s-card); border-color: var(--s-line2); box-shadow: 0 6px 16px rgba(16, 24, 40, .08); }
.fx-st .lab { font-size: 12px; font-weight: 700; color: var(--s-mu); }
.fx-st .sh { height: 58px; display: flex; align-items: flex-end; margin: 4px 0 2px; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .18)); }
.fx-st .nm { max-width: 100%; font-size: 14px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fx-st .v { font-size: 12.5px; font-weight: 600; color: var(--s-sub); }
.fx-st.none { justify-content: center; min-height: 128px; }
.fx-st.wc { justify-content: center; background: var(--s-brand-tint); border-color: #F1E4E8; }
.fx-st.wc .big { margin-top: 6px; font-family: var(--display); font-weight: 900; font-size: 46px; line-height: 1; color: var(--s-brand); }
/* price changes */
.fx-pcs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.fx-pcs h3 { margin: 0 0 4px; font-size: 13px; font-weight: 800; color: var(--s-sub); }
.fx-pcl { list-style: none; margin: 0; padding: 0; }
.fx-pcl li { border-bottom: 1px solid var(--s-line); }
.fx-pcl li:last-child { border-bottom: 0; }
.fx-pcl button { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto 50px; align-items: center; gap: 8px; padding: 8px 2px; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.fx-pcl button:hover b { text-decoration: underline; }
.fx-pcl .pr { font-weight: 800; font-variant-numeric: tabular-nums; }
.fx-pcl i { font-style: normal; font-size: 12px; font-weight: 800; text-align: right; font-variant-numeric: tabular-nums; }
.fx-pcl i.up { color: var(--s-green); }
.fx-pcl i.down { color: var(--s-red); }
.fx-pcl li.none { padding: 10px 2px; font-size: 13.5px; color: var(--s-mu); }
/* the players' tables */
.nmf { display: flex; align-items: center; gap: 6px; min-width: 0; }
.nmf b { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fx-os { flex: none; font-style: normal; font-size: 9.5px; font-weight: 800; letter-spacing: .03em; padding: 2px 5px; border-radius: 4px; background: #E8EEFB; color: #2347A8; line-height: 1.1; }
.sx-lnm .fx-os { margin-left: 6px; }
.sx-players tr.pcr td { transition: background-color .12s; }
.fx-topc .sx-players td.l { padding-left: 2px; }
/* your leagues and the overall table */
.fx-lgl { list-style: none; margin: 0; padding: 0; }
.fx-lgl li a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 6px; border-bottom: 1px solid var(--s-line); color: var(--s-ink); text-decoration: none; font-size: 14.5px; }
.fx-lgl li:last-child a { border-bottom: 0; }
.fx-lgl li a:hover { background: var(--s-hover); }
.fx-lgl li.on a { border-radius: 10px; background: var(--s-brand-tint); color: var(--s-brand); border-bottom-color: transparent; }
.fx-lgl b { font-weight: 700; }
.fx-lgl span { flex: none; font-weight: 800; white-space: nowrap; }
.fx-lgl small { font-weight: 500; color: var(--s-mu); }
.fx-lgn { margin: 8px 0 0; }
.fx-lga { margin-top: 12px; }
.sx a.fx-tl, .fx-tl { display: flex; flex-direction: column; min-width: 0; color: var(--s-ink); text-decoration: none; line-height: 1.25; text-align: left; }
.fx-tl small { font-size: 12px; color: var(--s-mu); }
.fx-tl:hover b { text-decoration: underline; }
.fx-mini td.pos { width: 34px; }
.fx-mini td.l { padding-left: 4px; }
/* the round */
.fx-about { margin: 0; font-size: 14px; line-height: 1.6; color: var(--s-sub); }
.fx-h3 { margin: 16px 0 6px; font-size: 13px; font-weight: 800; color: var(--s-ink); }
.fx-hof { list-style: none; margin: 0; padding: 0; }
.fx-hof li { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--s-line); font-size: 13.5px; }
.fx-hof .r { color: var(--s-mu); font-weight: 600; }
.fx-hof .w { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.fx-hof .w small { color: var(--s-mu); font-size: 12px; }
.fx-hof .p { font-weight: 800; }

/* ---- the pitch's extras: an overseas player's badge, a player taken out, one coming in, an empty place */
.fx-osb { width: 18px; height: 18px; border-radius: 50%; background: #2347A8; color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 2px #fff; flex: none; }
.fx-osb svg { width: 10px; height: 10px; }
.fx-x { position: absolute; right: 4px; top: -2px; z-index: 2; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 50%; background: #fff; color: #D92D20; font-size: 17px; font-weight: 800; line-height: 1;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 1px 3px rgba(0, 0, 0, .35); cursor: pointer; }
.fx-x:hover { background: #FDECEA; transform: scale(1.08); }
.fx-x.back { color: var(--s-green); font-size: 15px; }
.fx-x.back:hover { background: var(--s-green-bg); }
.sx-pl.fx-gone .sx-shirt { opacity: .38; filter: grayscale(1); }
.sx-pl.fx-gone .sx-nm { background: #98A2B3; }
.sx-pl.fx-new .sx-nm { background: var(--s-green); }
.sx-pl.off .sx-shirt { opacity: .55; }
.fx-slot .sx-shirt { position: relative; opacity: .95; }
.fx-slot .sx-shirt .kit { opacity: .8; }
.fx-plus { position: absolute; left: 50%; top: 56%; transform: translate(-50%, -50%); width: 24px; height: 24px; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--s-brand);
  font-style: normal; font-size: 18px; font-weight: 800; line-height: 24px; text-align: center; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
.fx-slot .sx-nm { background: rgba(255, 255, 255, .9); color: var(--s-sub); }
.fx-slot .sx-pv { background: rgba(255, 255, 255, .7); }
.fx-slot .sx-plb:hover .fx-plus { background: #F5C451; color: #1A1405; }
.fx-subi { font-style: normal; font-weight: 800; margin-left: 6px; font-size: 13px; }
.fx-subi.in { color: var(--s-green); }
.fx-subi.out { color: var(--s-red); }

/* ---- Gameweek and Pick team */
.sx .sx-gwpts b a { color: inherit; text-decoration: none; border-bottom: 3px solid rgba(92, 15, 36, .25); }
.sx .sx-gwpts b a:hover { border-bottom-color: var(--s-brand); }
.sx a.sx-gwb, .sx-gwb.off { display: inline-flex; align-items: center; gap: 4px; text-decoration: none; color: var(--s-brand); }
.sx-gwb.off { opacity: .35; cursor: default; }
.fx-gwsum { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); margin: 0 0 14px; border: 1px solid var(--s-line); border-radius: 12px; overflow: hidden; }
.fx-gwsum div { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 9px 6px; text-align: center; min-width: 0; }
.fx-gwsum div + div { border-left: 1px solid var(--s-line); }
.fx-gwsum dt { font-size: 12px; font-weight: 600; color: var(--s-mu); }
.fx-gwsum dd { margin: 0; font-size: 16px; font-weight: 800; white-space: nowrap; }
.fx-gwsum dd small { font-size: 12px; font-weight: 600; color: var(--s-mu); }
.fx-gwsum .wc dd { color: var(--s-green); }
.fx-gwtools { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.fx-gwtools .sx-seg { margin: 0; }
.fx-pad { margin: 18px; }
.fx-xin { display: flex; align-items: center; justify-content: space-between; gap: 6px 14px; flex-wrap: wrap; margin: 0 0 12px; font-size: 13.5px; color: var(--s-sub); }
.fx-xin b { color: var(--s-ink); font-weight: 800; }
.fx-xin b.full { color: var(--s-gold); }
.fx-need { align-items: flex-start; gap: 6px; padding: 30px 28px; }
.fx-need h1 { margin: 0; font-family: var(--display); font-weight: 900; font-size: 36px; line-height: 1; }
.fx-need p { margin: 0 0 12px; color: var(--s-sub); line-height: 1.5; }

/* ---- Transfers, as FPL's: the bar over the pitch, the player list beside it */
.sx-grid.fx-tgrid { grid-template-columns: minmax(0, 1fr) 440px; }
.fx-tbar { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); margin-bottom: 12px; border: 1px solid var(--s-line); border-radius: 14px; overflow: hidden; background: var(--s-card); }
.fx-tst { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0; padding: 10px 6px; text-align: center; }
.fx-tst + .fx-tst { border-left: 1px solid var(--s-line); }
.fx-tst span { font-size: 12px; font-weight: 600; color: var(--s-mu); white-space: nowrap; }
.fx-tst b { font-size: 17px; font-weight: 800; white-space: nowrap; font-variant-numeric: tabular-nums; }
.fx-tst.bad b { color: var(--s-red); }
.fx-tst.ok b { color: var(--s-green); }
.fx-tst.full b { color: var(--s-gold); }
.fx-tacts { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.fx-tacts .fx-go { margin-left: auto; height: 40px; }
.fx-wcb { background: linear-gradient(100deg, var(--s-brand) 0%, var(--s-brand2) 100%); }
.fx-wcon { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 9px; background: var(--s-green-bg); color: var(--s-green); font-weight: 800; font-size: 13.5px; }
.fx-err { margin: 0 0 12px; padding: 9px 12px; border-radius: 10px; background: var(--s-red-bg); color: var(--s-red); font-size: 13.5px; font-weight: 650; }
.fx-tip { margin: 0 0 12px; font-size: 13.5px; color: var(--s-sub); }
.fx-tcard .sx-pitch { min-height: 640px; }
.fx-plist .sx-ch { margin-bottom: 10px; }
.fx-filt { display: flex; flex-direction: column; gap: 10px; margin-bottom: 8px; }
.fx-search { position: relative; display: block; }
.fx-search svg { position: absolute; left: 12px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); fill: none; stroke: var(--s-mu); stroke-width: 2.2; stroke-linecap: round; pointer-events: none; }
.fx-search input { width: 100%; height: 42px; padding: 0 12px 0 38px; border-radius: 10px; border: 1px solid var(--s-line2); background: var(--s-card); color: var(--s-ink); font: inherit; font-size: 15px; -webkit-appearance: none; appearance: none; }
.fx-search input:focus { outline: 2px solid var(--s-brand); outline-offset: 1px; border-color: transparent; }
.fx-roles { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.fx-roles::-webkit-scrollbar { display: none; }
.fx-roles button { flex: none; height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--s-line2); background: var(--s-card); color: var(--s-sub); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.fx-roles button:hover { border-color: #98A2B3; color: var(--s-ink); }
.fx-roles button[aria-pressed="true"] { background: var(--s-brand); border-color: var(--s-brand); color: #fff; }
.fx-sels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.fx-sels label { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.fx-sels span { font-size: 11.5px; font-weight: 700; color: var(--s-mu); }
.fx-sels select { width: 100%; min-width: 0; height: 38px; padding: 0 28px 0 10px; border-radius: 9px; border: 1px solid var(--s-line2); color: var(--s-ink); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
  background: var(--s-card) 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='%235C0F24' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center;
  -webkit-appearance: none; appearance: none; }
.fx-sels select:focus { outline: 2px solid var(--s-brand); outline-offset: 1px; }
.fx-ptab td { padding: 8px 6px; }
.fx-ptab td.l { padding-left: 2px; }
.fx-ptab td.pr { white-space: nowrap; font-variant-numeric: tabular-nums; }
.fx-ptab td.c, .fx-ptab th.c { width: 62px; padding-right: 2px; }
.fx-ptab tr.insq td { background: #F3FBF6; }
.fx-ch { font-style: normal; font-size: 9.5px; margin-left: 3px; vertical-align: 1px; }
.fx-ch.up { color: var(--s-green); }
.fx-ch.down { color: var(--s-red); }
.fx-add { width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%; background: var(--s-green); color: #fff; font-size: 20px; font-weight: 700; line-height: 1; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 1px 2px rgba(7, 138, 76, .3); }
.fx-add:hover { filter: brightness(1.1); transform: scale(1.06); }
.fx-have { color: var(--s-green); font-weight: 800; font-size: 16px; }
.fx-keep { width: 30px; height: 30px; padding: 0; border: 1px solid #BDE8CF; border-radius: 50%; background: var(--s-green-bg); color: var(--s-green); font-size: 16px; font-weight: 800; line-height: 1; cursor: pointer; }
.fx-keep:hover { background: #D4F0E0; }
.fx-no { display: inline-block; max-width: 62px; font-size: 10.5px; font-weight: 650; line-height: 1.2; color: var(--s-mu); white-space: normal; }
.fx-none { padding: 22px 10px !important; color: var(--s-mu); text-align: center !important; }
.fx-more { width: 100%; margin-top: 12px; }
.fx-lhint { margin: 2px 0 8px; padding: 8px 12px; border-radius: 10px; background: var(--s-gold-bg); color: #7A5600; font-size: 13px; font-weight: 600; line-height: 1.4; }
.fx-ptab.view td:last-child, .fx-ptab.view th:last-child { padding-right: 4px; }
/* your team's strip: beside Home on a computer, under the gameweek on a phone */
.fx-mstrip { display: none; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.fx-tfoot { display: none; }

/* ---- Leagues */
.fx-share { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: -2px 0 14px; padding: 10px 12px; border-radius: 12px; background: var(--s-soft); border: 1px solid var(--s-line); }
.fx-code { margin-right: auto; font-size: 13.5px; color: var(--s-sub); }
.fx-code b { margin-left: 4px; font-family: var(--mono); font-size: 16px; font-weight: 600; letter-spacing: .14em; color: var(--s-ink); }
.fx-leave.warn { border-color: #F5B3AE; color: var(--s-red); background: var(--s-red-bg); }
.fx-ltab td.pos { width: 72px; text-align: left; white-space: nowrap; padding-left: 6px; }
.fx-ltab td.pos b { display: inline-block; min-width: 22px; margin-right: 6px; }
.fx-ltab .sx-mv.same, .fx-mini .sx-mv.same { color: var(--s-mu); }
.fx-ltab tr.pcr { cursor: pointer; }
.fx-ltab tr.pcr:hover td { background: var(--s-hover); }
.fx-ltab tr.me:hover td { background: var(--s-me); }
.fx-ltab tr.gap td { padding: 0; line-height: 1.2; color: var(--s-mu); text-align: center; border-bottom: 0; }
.fx-pager { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 14px; font-size: 13.5px; color: var(--s-sub); }
.fx-form { display: flex; gap: 8px; }
.sx-hc .sx-fine + .fx-form { margin-top: 12px; }
.fx-form input { flex: 1; min-width: 0; height: 44px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--s-line2); background: var(--s-card); color: var(--s-ink); font: inherit; font-size: 15px; }
.fx-form input:focus { outline: 2px solid var(--s-brand); outline-offset: 1px; border-color: transparent; }
#fx-lcode { font-family: var(--mono); letter-spacing: .1em; text-transform: uppercase; }
#fx-lcode::placeholder { font-family: var(--body); letter-spacing: 0; text-transform: none; }
.fx-invite { margin-bottom: 18px; align-items: flex-start; border-color: #F0D58A; background: linear-gradient(160deg, #FFF5D6 0%, #FFFFFF 70%); }
.fx-invite h2 { margin: 0 0 6px; font-size: 21px; font-weight: 800; letter-spacing: -.01em; }
.fx-invite .sx-btn { margin-top: 14px; }

/* ---- Help */
.fx-helps { columns: 2; column-gap: 18px; }
.fx-helps > .fx-help { break-inside: avoid; margin-bottom: 18px; }
.fx-help ul { margin: 0; padding-left: 18px; }
.fx-help li { margin: 0 0 9px; font-size: 14.5px; line-height: 1.55; color: var(--s-sub); }
.fx-help li:last-child { margin-bottom: 0; }
.fx-help li::marker { color: var(--s-brand); }

/* ---- sheets: the confirmations, and the player card's own bits */
.fx-conf p { margin: 0 0 14px; line-height: 1.55; color: var(--s-sub); }
.fx-conf .fx-form { margin-bottom: 14px; }
.fx-trl { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.fx-trl li { display: grid; grid-template-columns: minmax(0, 1fr) 18px minmax(0, 1fr); align-items: center; gap: 8px; padding: 10px; border-radius: 12px; background: var(--s-soft); }
.fx-trl li > span { display: flex; align-items: center; gap: 8px; min-width: 0; }
.fx-trl li > span > span { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.fx-trl small { font-size: 12px; color: var(--s-mu); }
.fx-trl .out b { color: var(--s-red); }
.fx-trl .in b { color: var(--s-green); }
.fx-trl i { font-style: normal; color: var(--s-mu); text-align: center; }
.fx-cdl { margin: 0 0 16px; display: flex; flex-direction: column; }
.fx-cdl div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--s-line); font-size: 14px; }
.fx-cdl dt { color: var(--s-mu); }
.fx-cdl dd { margin: 0; font-weight: 800; text-align: right; }
.fx-cdl dd.bad { color: var(--s-red); }
.fx-cacts { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.pc-stats b em { font-style: normal; font-size: 11px; margin-left: 2px; }
.pc-stats b em.up { color: var(--s-green); }
.pc-stats b em.down { color: var(--s-red); }
.fx-osl { display: inline-flex; align-items: center; gap: 5px; }
.fx-osl svg { width: 12px; height: 12px; }
.fx-cant { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border-radius: 9px; background: var(--s-soft); border: 1px dashed var(--s-line2); color: var(--s-sub); font-size: 13.5px; font-weight: 600; }
.pc-own .pc-you { flex: none; }

/* ---- a word at the bottom of the screen */
.fx-toast { position: fixed; left: 50%; bottom: 24px; z-index: 60; max-width: min(540px, calc(100vw - 32px)); padding: 12px 18px; border-radius: 12px; background: #1A0710; color: #fff;
  font: 600 14px/1.45 "Public Sans", "Segoe UI", system-ui, sans-serif; box-shadow: 0 14px 34px rgba(16, 4, 8, .3); opacity: 0; pointer-events: none; transform: translate(-50%, 16px); transition: opacity .2s, transform .2s; }
.fx-toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---- narrower screens */
@media (max-width: 1160px) {
  .sx-grid.g-home { grid-template-columns: minmax(0, 1fr) 320px; }
  .sx-grid.fx-tgrid { grid-template-columns: minmax(0, 1fr) 400px; }
}
@media (max-width: 979px) {
  .sx-grid.g-home, .sx-grid.fx-tgrid { grid-template-columns: minmax(0, 1fr); }
  .fx-hero { grid-template-columns: minmax(0, 1fr); padding: 28px 22px 26px; gap: 22px; }
  .fx-hero-r { order: -1; }
  .fx-hp { width: min(78%, 300px); }
  .fx-steps { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .fx-helps { columns: 1; }
  .fx-mstrip { display: block; }
  .fx-dstrip { display: none; }
  .fx-tfoot { position: sticky; bottom: 0; z-index: 6; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 16px -12px -48px;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px)); background: rgba(255, 255, 255, .97); border-top: 1px solid var(--s-line); box-shadow: 0 -8px 20px rgba(16, 24, 40, .08); font-size: 14px; color: var(--s-sub); }
  .fx-tfoot b { color: var(--s-ink); }
  .fx-page .fx-toast { bottom: 80px; }
  .fx-tcard .sx-pitch { min-height: 560px; }
}
@media (max-width: 900px) {
  .fx-rbar-in { padding: 8px 12px; }
  .fx-rl span { display: none; }
  .fx-rd { margin-left: 0; flex-basis: 100%; font-size: 13px; }
  .fx-gwbn .sx-gwbs.three { gap: 6px; }
  .fx-gwbn .sx-gwbs.three b { font-size: 40px; }
  .fx-gwbn .sx-gwbs .me b { font-size: 56px; }
  .fx-gwbn .fx-dlt { font-size: 40px; }
  .fx-sts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fx-pcs { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .fx-tacts .fx-go { display: none; }
  .fx-tst { padding: 8px 4px; }
  .fx-tst span { font-size: 11px; }
  .fx-tst b { font-size: 15px; }
  .fx-sels { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .fx-sels select { padding-left: 8px; font-size: 13px; }
  .fx-x { width: 22px; height: 22px; right: 0; font-size: 15px; }
  .fx-osb { width: 16px; height: 16px; }
  .fx-gwsum dd { font-size: 14.5px; }
  .fx-need { padding: 24px 20px; }
  .fx-need h1 { font-size: 30px; }
}
@media (max-width: 560px) {
  .fx-over { flex-direction: column; align-items: stretch; }
  .fx-trophy { width: 42px; height: 42px; }
  .fx-hero h1 { font-size: 54px; }
  .fx-lede { font-size: 15.5px; }
  .fx-hero-a .sx-btn { width: 100%; }
  .fx-trl li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .fx-trl i { display: none; }
  .fx-share .fx-code { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .fx-toast { transition: none; }
  button.fx-st, .fx-add { transition: none; }
}
