/* auction200 · the auction game. One dark stylesheet for the play pages: create, join, lobby, live room, results.
   The room is a stadium at night: near-black panels, gold for money and the paddle, red for live and danger,
   teal for your own squad, each team's colour for its chips. */
@font-face { font-family: "Big Shoulders Display"; src: url("/assets/fonts/big-shoulders-display.woff") format("woff"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("/assets/fonts/public-sans.woff") format("woff"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/assets/fonts/ibm-plex-mono-400.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/assets/fonts/ibm-plex-mono-500.woff") format("woff"); font-weight: 500 600; font-display: swap; }

:root {
  --bg: #F2F4F7; --bar: #5C0F24; --panel: #FFFFFF; --panel2: #F7F8FA; --tile: #F5F6F8; --well: #FFFFFF;
  --line: #E6E9EF; --line2: #D3D8E0; --edge: #C9CFD9; --btn: #FFFFFF;
  --ink: #101828; --sub: #475467; --muted: #667085; --dim: #8D96A5;
  --red: #D92D20; --red-bg: #FDECEA; --red-line: #F4B4AD; --red-ink: #B42318;
  --gold: #8A6400; --gold-fill: #F5C451; --gold-deep: #C99A2E; --gold-bg: #FFF5D6; --gold-ink: #1A1405;
  --green: #078A4C; --green-bg: #E5F5EC; --green-line: #9BD8B6; --green-ink: #05603A;
  --blue: #1A6FE8;
  --teal-bg: #ECF8F6; --teal-line: #9FD9CF; --teal-well: #F4FBFA; --teal-label: #2B7A70; --teal-slot: #DDF2EE; --teal-ring: #7CCBBE;
  /* the brand: leather maroon, the red ball's dark side; gold for money */
  --brand: #5C0F24; --brand2: #8A1B33; --brand-tint: #FBF1F3;
  --display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --body: "Public Sans", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 15px; line-height: 1.45; }
a { color: var(--blue); }
a:hover { color: #0B5CD6; }
[hidden] { display: none !important; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.mono { font-family: var(--mono); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.disp { font-family: var(--display); font-weight: 800; }
.chip { display: inline-flex; align-items: center; justify-content: center; flex: none; border-radius: 6px; color: #0B0E13; font-weight: 800; font-size: 11px; width: 26px; height: 26px; box-shadow: inset 0 0 0 1px rgba(16, 24, 40, .12); }   /* the ring shows a black trim on the dark page */
.chip.lg { width: 48px; height: 48px; border-radius: 12px; font-size: 17px; }
.chip.md { width: 34px; height: 34px; border-radius: 8px; font-size: 13px; }
.chip.sm { width: 22px; height: 22px; border-radius: 5px; font-size: 10px; }
.dot { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.ell { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }

/* ---- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 18px; border-radius: 11px; border: 1px solid var(--edge); background: var(--btn); color: var(--ink); font-weight: 700; font-size: 15px; text-decoration: none; }
.btn:hover { color: var(--ink); border-color: #98A2B3; }
.btn.ghost { background: transparent; color: var(--sub); }
.btn.gold { border: 0; background: var(--gold-fill); color: var(--gold-ink); box-shadow: 0 5px 0 var(--gold-deep); font-family: var(--display); font-weight: 900; font-size: 22px; height: 56px; border-radius: 14px; }
.btn.gold:hover { color: var(--gold-ink); filter: brightness(1.05); }
.btn.gold:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 2px 0 var(--gold-deep); }
.btn.gold:disabled { background: #F2E8CC; color: #8A7A4A; box-shadow: none; }
.btn.teal { border: 0; background: #2CC4B0; color: #06231F; font-weight: 800; }
.btn.teal:hover { color: #06231F; filter: brightness(1.06); }
.btn.sm { height: 38px; padding: 0 12px; font-size: 13.5px; border-radius: 9px; }

/* ---- the page frame: the top bar and the games' banner are gh.css; the wordmark here is the live room's own */
.mark { font-family: var(--display); font-weight: 800; font-size: 28px; color: var(--ink); text-decoration: none; letter-spacing: -.01em; line-height: 1; }
.mark:hover { color: var(--ink); }
.mark b { color: var(--red); font-weight: 800; }
.pmain { max-width: 1160px; margin: 0 auto; padding: 28px max(16px, env(safe-area-inset-left, 0px)) 56px; }
.pmain h1 { margin: 6px 0 8px; font-family: var(--display); font-weight: 900; font-size: clamp(40px, 7vw, 56px); line-height: 1; }
.lede { margin: 0 0 26px; max-width: 660px; font-size: 16px; color: var(--sub); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; }
.card h2 { margin: 0; font-family: var(--display); font-weight: 800; font-size: 24px; line-height: 1.1; }
.note { font-size: 13px; color: var(--muted); }
.err { color: #B42318; font-size: 14px; }
.notice { padding: 12px 14px; border-radius: 10px; background: var(--red-bg); border: 1px solid var(--red-line); color: var(--red-ink); font-size: 14px; }
.fillgo { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; width: 100%; padding: 14px 16px; border-radius: 12px;
  background: var(--gold-bg); border: 1px solid var(--gold-fill); }
.fillgo > div { flex: 1 1 260px; min-width: 0; }
.fillgo b { display: block; font-size: 16px; }
.fillgo span { display: block; margin-top: 3px; font-size: 14px; color: var(--sub); }
.notice.ok { background: var(--green-bg); border-color: var(--green-line); color: var(--green-ink); }

/* ---- landing */
.hero-play { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 28px; align-items: center; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-actions .btn.gold { padding: 0 26px; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.steps li { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.steps b { font-family: var(--display); font-size: 21px; font-weight: 800; }
.steps span { font-size: 13.5px; color: var(--sub); }
.steps .n { font-family: var(--mono); font-size: 11px; color: var(--gold); letter-spacing: .08em; }
/* the game's front page: three steps in a row, the rules in four lines, every rule folded away */
.steps3 { list-style: none; margin: 0 0 16px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.steps3 li { display: grid; grid-template-columns: 30px minmax(0, 1fr); column-gap: 10px; align-items: center; padding: 12px 14px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); }
.steps3 .n { grid-row: 1 / span 2; width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--brand-tint); color: var(--brand); font-weight: 800; font-size: 14px; }
.steps3 b { font-family: var(--display); font-weight: 800; font-size: 19px; line-height: 1.1; }
.steps3 span:last-child { font-size: 13.5px; color: var(--sub); }
.rules4 { margin-bottom: 14px; }
.rules4 h2 { margin-bottom: 8px; }
.rules4 dl { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 22px; }
.rules4 dl > div { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 10px; align-items: baseline; }
.rules4 dt { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.rules4 dd { margin: 0; font-size: 14px; color: var(--ink); line-height: 1.4; }
.rules-all { margin: 6px 0 0; }
.rules-all summary { cursor: pointer; display: inline-flex; align-items: center; gap: 6px; padding: 8px 2px; color: var(--sub); font-weight: 600; font-size: 14px; list-style: none; }
.rules-all summary::-webkit-details-marker { display: none; }
.rules-all summary::after { content: "›"; font-size: 18px; line-height: 1; transition: transform .15s; }
.rules-all[open] summary::after { transform: rotate(90deg); }
.rules-all[open] .rules { margin-top: 8px; }
@media (max-width: 760px) {
  .steps3 { grid-template-columns: 1fr; gap: 8px; }
  .rules4 dl { grid-template-columns: 1fr; }
  .rules4 dl > div { grid-template-columns: 1fr; gap: 2px; }
}
.rules { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.rule { background: var(--tile); border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.rule .eyebrow { font-size: 11px; }
.mylist { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.myrow { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--panel2); border: 1px solid var(--line); text-decoration: none; color: var(--ink); }
/* a league row with its Delete (practice leagues only), and the line over the list */
.myitem { display: flex; align-items: center; gap: 8px; transition: opacity .2s; }
.myitem > .myrow { flex: 1 1 auto; min-width: 0; }
.myitem.going { opacity: .4; pointer-events: none; }
.mydel { display: inline-flex; align-items: center; gap: 6px; flex: none; }
.mydel span { font-size: 13px; color: var(--sub); }
.mydel .err { color: #B42318; max-width: 260px; }
.mydel button { height: 34px; padding: 0 12px; border-radius: 9px; border: 1px solid var(--line2); background: #fff; color: var(--sub); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.mydel button:hover, .mydel button.danger { border-color: #F5B3AE; color: #B42318; background: #FEF3F2; }
.mydel button.danger:hover { background: #FEE4E2; }
.mytools { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 12px; padding: 0 2px 4px; }
.mytools .note { margin: 0; }
/* the owner's page */
.adminpage { max-width: 1240px; }
.adm-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.adm-head h1 { font-size: 44px; margin: 4px 0 2px; }
.adm-head .note { margin: 0; }
.adm-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.adm-tile { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.adm-tile b { font-family: var(--display); font-size: 36px; font-weight: 900; line-height: 1; color: var(--brand); }
.adm-tile span { font-weight: 700; font-size: 14px; }
.adm-tile small { font-size: 12.5px; color: var(--muted); }
.adm-card { margin-bottom: 16px; }
.adm-card h2 { margin: 0 0 10px; font-size: 20px; }
.adm-h2 { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.adm-h2 h2 { margin: 0; }
.adm-seg button { white-space: nowrap; }
.adm-tw { overflow-x: auto; }
.adm-pg { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin: 8px 0 0; }
.adm-pg .note { margin: 0; }
.adm-tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.adm-tbl th { text-align: left; font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.adm-tbl td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; white-space: nowrap; }
.adm-tbl .r { text-align: right; }
.adm-tbl tr.new td { background: #FFFBEB; }
.adm-tbl a { color: var(--ink); text-decoration: none; }
.adm-tbl a:hover { text-decoration: underline; }
.adm-tbl small { color: var(--muted); font-family: var(--mono); font-size: 12px; }
.adm-acc td small.em { display: block; margin-top: 2px; font-family: inherit; font-size: 12.5px; }
.adm-acc th.g, .adm-acc td.g { text-align: center; }
.adm-acc td.g b { display: block; font-size: 15px; font-variant-numeric: tabular-nums; }
.adm-acc td.g b.tick { font-size: 13px; color: var(--green-ink); }
.adm-acc td.g small { display: block; font-family: inherit; font-size: 11.5px; max-width: 120px; margin: 1px auto 0; overflow: hidden; text-overflow: ellipsis; }
.adm-acc td.g.none { color: var(--dim); }
.adm-who { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 4px; font-size: 12.5px; color: var(--sub); }
.adm-tag.na { background: #F2F4F7; color: var(--muted); }
.adm-tag { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: var(--brand-tint); color: var(--brand); font-style: normal; font-size: 11.5px; font-weight: 800; }
.adm-tag.new { background: #FEF0C7; color: #93370D; }
@media (max-width: 900px) {
  .adm-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .adm-head h1 { font-size: 34px; }
}
.myrow:hover { color: var(--ink); border-color: var(--edge); }
.myrow .t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.myrow .t b { font-size: 15.5px; }
.myrow .t span { font-size: 13px; color: var(--muted); }
.myrow .t b .kind { display: inline-block; margin-left: 4px; padding: 1px 7px; border-radius: 999px; background: #FBF1F3; color: #8A1B33; font-size: 11px; font-weight: 800; vertical-align: 2px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; background: var(--tile); color: var(--sub); border: 1px solid var(--line2); white-space: nowrap; }
.pill.live { background: var(--red-bg); border-color: var(--red-line); color: var(--red-ink); }
.pill.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--red); animation: livepulse 1.2s ease-in-out infinite; }
.pill.done { background: var(--green-bg); border-color: var(--green-line); color: var(--green-ink); }
.pill.wait { background: var(--gold-bg); border-color: #F0D58A; color: var(--gold); }
@keyframes livepulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }

/* ---- create form */
.create { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.create .form { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.create .form .card { display: flex; flex-direction: column; gap: 14px; }
.squads-all { margin: 28px 0 0; }
.squads-all summary { cursor: pointer; list-style: none; display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.squads-all summary::-webkit-details-marker { display: none; }
.squads-all summary h2 { margin: 0; font-size: 26px; }
.squads-all summary span { color: var(--muted); font-size: 14px; }
.squads-all summary::after { content: "›"; margin-left: auto; font-size: 24px; color: var(--muted); transition: transform .15s; }
.squads-all[open] summary::after { transform: rotate(90deg); }
.more-set summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.more-set summary::-webkit-details-marker { display: none; }
.more-set summary > span { display: flex; flex-direction: column; gap: 2px; }
.more-set summary b { font-family: var(--display); font-weight: 800; font-size: 22px; }
.more-set summary small { font-size: 13px; color: var(--muted); }
.more-set summary::after { content: "›"; font-size: 24px; color: var(--muted); transition: transform .15s; }
.more-set[open] summary::after { transform: rotate(90deg); }
.more-set[open] summary { margin-bottom: 6px; }
.create .form details.more-set { display: block; }
.more-body { display: flex; flex-direction: column; gap: 14px; margin-top: 10px; }
.create aside { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 14px; position: sticky; top: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); flex: 1 1 220px; min-width: 0; }
.field input, .field select { height: 46px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--edge); background: var(--well); color: var(--ink); font-size: 16px; width: 100%; }
.field input:focus, .field select:focus { border-color: var(--blue); outline: none; }
.row { display: flex; flex-wrap: wrap; gap: 14px; }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch { position: relative; }
.swatches .brk { flex-basis: 100%; height: 0; }   /* the IPL kits, then the national sides */
.swatch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.swatch span { display: block; width: 40px; height: 40px; border-radius: 10px; border: 3px solid transparent; box-shadow: inset 0 0 0 1px rgba(16, 24, 40, .12); }
.swatch input:checked + span { border-color: var(--ink); }
.swatch input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.swatch input:disabled + span { opacity: .16; }
.swatch input:disabled { cursor: not-allowed; }
@media (max-width: 560px) { .swatches { gap: 8px; } .swatch span { width: 36px; height: 36px; } }
.seg { display: grid; gap: 8px; }
.seg label { position: relative; display: block; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg .opt { height: 100%; min-height: 48px; border-radius: 10px; border: 1px solid var(--edge); background: var(--btn); color: var(--ink); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 6px; font-weight: 700; font-size: 16px; text-align: center; }
.seg input:checked + .opt { border-color: var(--gold); background: var(--gold-bg); color: var(--gold); }
.seg input:focus-visible + .opt { outline: 2px solid var(--blue); outline-offset: 2px; }
.seg input:disabled + .opt { opacity: .45; cursor: not-allowed; }
.seg.teams { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); max-width: 460px; }
.seg.teams .opt { font-family: var(--display); font-weight: 900; font-size: 28px; min-height: 56px; }
.seg.purse { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 420px; }
.seg.clock { grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); }
.seg.clock .opt { min-height: 64px; }
.seg.clock .opt b { font-family: var(--display); font-weight: 900; font-size: 24px; line-height: 1; }
.seg.clock .opt small { font-size: 12px; font-weight: 600; opacity: .85; }
.seg.clockset { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.seg.clockset .opt { align-items: stretch; justify-content: flex-start; text-align: left; padding: 12px 14px; gap: 8px; font-size: 15px; }
.cs-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.cs-top b { font-size: 16px; }
.cs-top .est { font-size: 14px; font-weight: 700; color: var(--gold); white-space: nowrap; }
.cs-tiers { display: flex; flex-direction: column; gap: 3px; font-size: 13px; font-weight: 400; color: var(--sub); }
.cs-tiers i { font-style: normal; font-family: var(--mono); font-weight: 600; color: var(--ink); display: inline-block; min-width: 42px; }
.seg.clockset input:checked + .opt .cs-tiers i { color: var(--gold); }
.custom-clocks { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.custom-clocks label { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; color: var(--muted); }
.custom-clocks input { height: 44px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--edge); background: var(--well); color: var(--ink); font-family: var(--mono); font-size: 16px; width: 100%; }
.seg.pool { grid-template-columns: 1fr; }
.seg.pool .opt { flex-direction: row; align-items: flex-start; justify-content: flex-start; gap: 12px; text-align: left; padding: 12px 14px; font-size: 15px; }
.seg.pool .opt .radio { width: 18px; height: 18px; flex: none; margin-top: 2px; border-radius: 50%; border: 2px solid var(--edge); display: flex; align-items: center; justify-content: center; }
.seg.pool input:checked + .opt .radio { border-color: var(--gold); }
.seg.pool input:checked + .opt .radio::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold-fill); }
.seg.pool .opt span { display: flex; flex-direction: column; gap: 2px; }
.seg.pool .opt small { font-size: 13.5px; font-weight: 400; color: var(--sub); }
.seg.pool input:checked + .opt { color: var(--ink); }
.seg.pool .soon { display: inline; margin-left: 6px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; color: var(--gold); }
.field .rec { font-size: 12px; font-weight: 600; color: var(--gold); margin-left: 6px; }
.toggle { display: flex; align-items: center; gap: 14px; padding: 10px 0; border-top: 1px solid #EEF0F4; cursor: pointer; }
.toggle span { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.toggle span b { font-size: 15px; font-weight: 600; }
.toggle span small { font-size: 13px; color: var(--muted); }
.toggle input { appearance: none; -webkit-appearance: none; margin: 0; width: 52px; height: 30px; flex: none; border-radius: 999px; background: var(--edge); position: relative; cursor: pointer; transition: background .15s; }
.toggle input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); transition: transform .15s; }
.toggle input:checked { background: #2D9C6A; }
.toggle input:checked::after { transform: translateX(22px); }
.summary { background: var(--panel2); border: 1px solid var(--edge); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.summary dl { margin: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.summary dl div { display: flex; justify-content: space-between; gap: 12px; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; font-weight: 700; text-align: right; }
.est-line { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px; font-size: 13px; color: var(--muted); }
.est-line b { color: var(--gold); }

/* ---- join */
.join { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; max-width: 980px; }
@media (max-width: 900px) { .join .join-form { order: -1; } }      /* stacked (phones): the form comes first */
.code-in { display: flex; gap: 10px; max-width: 420px; }
.code-in input { flex: 1; height: 54px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--edge); background: var(--well); font-family: var(--mono); font-size: 22px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink); min-width: 0; }
.mgrs { display: flex; flex-direction: column; gap: 6px; }
.mgr { min-height: 42px; display: flex; align-items: center; gap: 10px; padding: 6px 10px; border-radius: 9px; background: var(--panel2); border: 1px solid var(--line); }
.mgr.me { background: #ECF8F6; border-color: #9FD9CF; }
.mgr.empty { background: transparent; border-style: dashed; border-color: var(--edge); color: var(--muted); }
.mgr .nm { flex: 1; min-width: 0; font-size: 14px; font-weight: 600; }
.mgr .nm small { display: block; font-weight: 400; font-size: 12px; color: var(--muted); }
.mgr .st { font-size: 12px; color: var(--muted); }
.mgr.empty .chip { background: #D3D8E0; color: var(--muted); }

/* ---- lobby */
.lobby { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 20px; align-items: start; }
.lobby .col { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.starts { display: flex; align-items: center; gap: 12px; }
.starts .t { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.starts .t b { font-size: 16px; }
.starts .t span { font-size: 13px; color: var(--muted); }
.invite { background: #ECF8F6; border: 1px solid #9FD9CF; border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.invite .top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.invite .code { font-family: var(--mono); font-size: 20px; font-weight: 600; letter-spacing: .14em; color: #1F6F66; }
.invite .link { font-family: var(--mono); font-size: 12.5px; color: #1F6F66; word-break: break-all; }
.invite .acts { display: flex; gap: 8px; }
.invite .acts .btn { flex: 1; }
.invite .acts .btn.ghost { flex: none; border-color: #9FD9CF; color: #1F6F66; }
.meter { height: 6px; border-radius: 3px; background: #E6E9EF; overflow: hidden; }
.meter i { display: block; height: 100%; background: #2CC4B0; border-radius: 3px; }
.hostbar { display: flex; flex-direction: column; gap: 8px; }
.poolhead { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; }
.poolhead h2 { margin: 0; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.filters input[type=search] { flex: 1 1 200px; height: 40px; padding: 0 12px; border-radius: 9px; border: 1px solid var(--edge); background: var(--well); color: var(--ink); min-width: 0; }
.fchip { height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--edge); background: var(--btn); color: var(--sub); font-weight: 600; font-size: 13px; }
.fchip[aria-pressed="true"] { border-color: var(--gold); background: var(--gold-bg); color: var(--gold); }
.ptable { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.ptable th { font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; font-weight: 500; color: var(--muted); text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.ptable td { padding: 7px 8px; border-bottom: 1px solid #EEF0F4; vertical-align: middle; }
.ptable td.num, .ptable th.num { text-align: right; font-family: var(--mono); white-space: nowrap; }
.ptable .pn { font-weight: 600; }
.ptable .pm { display: block; font-size: 12px; color: var(--muted); }
.ptable tr.starred td { background: #FFF8E3; }
.star { width: 32px; height: 32px; border: 0; background: transparent; color: #C3CAD5; font-size: 18px; line-height: 1; border-radius: 8px; padding: 0; }
.star[aria-pressed="true"] { color: var(--gold); }
.star:hover { color: var(--gold); }
.more-row { display: flex; justify-content: center; padding-top: 12px; }

/* ---- the live room */
body.room-page { overflow-x: hidden; }
.room { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.rbar { height: 60px; flex: none; display: flex; align-items: center; gap: 16px; padding: 0 20px; border-bottom: 1px solid var(--line); background: var(--bar); position: sticky; top: 0; z-index: 6; }
.rbar .sep { width: 1px; height: 28px; background: var(--line2); }
.rbar .lg { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.rbar .lg b { font-size: 15px; font-weight: 600; }
.rbar .lg span { font-size: 12px; color: var(--muted); }
.rbar .lot { font-family: var(--mono); font-size: 13px; color: var(--sub); white-space: nowrap; }
.rbar .ping { display: flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 12px; color: var(--muted); white-space: nowrap; }
.rbar .icon { width: 40px; height: 40px; border-radius: 8px; border: 1px solid var(--line2); background: var(--panel2); color: var(--sub); display: flex; align-items: center; justify-content: center; flex: none; }
.rbar .icon[aria-pressed="false"] { color: var(--dim); }
.callbtn { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: 999px; background: #ECF8F6; border: 1px solid #9FD9CF; color: #1F6F66; font-size: 13px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.callbtn:hover { color: #1F6F66; border-color: #7CCBBE; }
.callcard { display: flex; flex-direction: column; gap: 10px; }
.callcard .btn.ghost.sm { align-self: flex-start; }
.rbar .hostbtn { height: 40px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--line2); background: var(--panel2); color: var(--sub); font-size: 13px; font-weight: 600; white-space: nowrap; }
.rbar .grow { flex: 1; }
.conn { position: fixed; left: 50%; top: 68px; transform: translateX(-50%); z-index: 20; padding: 8px 14px; border-radius: 999px; background: #FFF1E8; border: 1px solid #F7C3A0; color: #9A3412; font-size: 13.5px; font-weight: 600; }

.rgrid { flex: 1; min-height: 0; display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 16px; padding: 14px 20px 0; }
.rcol { display: flex; flex-direction: column; gap: 14px; min-height: 0; min-width: 0; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
.panel h2 { margin: 0; font-family: var(--display); font-size: 22px; font-weight: 800; line-height: 1.1; }
.label { font-family: var(--mono); font-size: 10.5px; letter-spacing: .05em; color: var(--muted); text-transform: uppercase; }

/* your squad */
.squad { background: var(--teal-bg); border: 1px solid var(--teal-line); border-radius: 12px; display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.squad .head { padding: 12px 14px 10px; display: flex; flex-direction: column; gap: 8px; border-bottom: 1px solid #D6F0EB; }
.squad .who { display: flex; align-items: center; gap: 10px; }
.squad .who > span:not(.chip) { flex: 1; display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.squad .who b { font-family: var(--display); font-weight: 800; font-size: 21px; }
.squad .who small { font-size: 12px; color: #1F6F66; }
.stats3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.stats3 div { background: var(--teal-well); border-radius: 8px; padding: 6px 8px; }
.stats3 .k { font-family: var(--mono); font-size: 10px; color: var(--teal-label); }
.stats3 .v { font-family: var(--mono); font-size: 14px; font-weight: 600; }
.slots { padding: 6px 12px 12px; display: flex; flex-direction: column; gap: 6px; overflow-y: auto; }
.slotgrp { display: flex; flex-direction: column; gap: 3px; }
.slotgrp .gl { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 10.5px; letter-spacing: .05em; color: var(--teal-label); padding: 2px 2px 0; }
.slotgrp .gl .full { color: var(--green); }
.slotgrp .gl .arcap { margin-left: 6px; padding: 0 5px; border-radius: 4px; background: #DCF1EC; color: #1F6F66; font-style: normal; letter-spacing: .02em; }
.slotgrp .gl .arcap.full { background: #FFF1D6; color: var(--gold); }
.ftag { flex: none; display: inline-block; margin-left: 6px; padding: 0 4px; border-radius: 4px; background: #EEF0F3; color: #667085; font-family: var(--mono); font-size: 10px; line-height: 16px; font-style: normal; font-weight: 700; vertical-align: 1px; }
.slot .ftag, .ps .ftag { margin-left: 0; }
.slot .rtag { flex: none; padding: 0 4px; border-radius: 4px; background: #E3F2EF; color: #1F6F66; font-family: var(--mono); font-size: 10px; font-style: normal; font-weight: 700; }
.arnote { margin: 4px 2px 0; font-size: 11.5px; line-height: 1.4; color: var(--teal-label); }
.slot { height: 25px; display: flex; align-items: center; gap: 8px; padding: 0 8px; border-radius: 6px; background: var(--teal-slot); border: 1px solid var(--teal-ring); }
.slot .nm { flex: 1; min-width: 0; font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slot .pr { font-family: var(--mono); font-size: 12px; color: #1F6F66; }
.slot.empty { background: transparent; border-style: dashed; border-color: #B9E3DB; }
.slot.empty .nm { font-weight: 400; color: var(--teal-label); }
.slot.empty .pr { color: #7A9A95; }
.slot.fresh { background: #FFF8E3; border-color: var(--gold); animation: glow 1.4s ease-out 2; }
@keyframes glow { 50% { box-shadow: 0 0 0 4px rgba(245, 196, 81, .25); } }
.gaps { margin-top: 4px; padding: 8px 10px; border-radius: 8px; background: var(--teal-well); display: flex; flex-direction: column; gap: 5px; }
.gaps .g { display: flex; align-items: center; gap: 8px; font-size: 12.5px; }
.gaps .g .r { width: 36px; font-family: var(--mono); font-size: 10.5px; color: var(--teal-label); flex: none; }
.gaps .g .n { flex: 1; min-width: 0; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gaps .g .w { font-family: var(--mono); font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.watching { padding: 16px; display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: var(--sub); }

/* the player on the block */
.block { flex: 1; min-height: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 16px 22px; display: flex; flex-direction: column; gap: 14px; overflow-y: auto; }
.pid { display: flex; align-items: flex-start; gap: 18px; }
.pav { width: 80px; height: 80px; flex: none; border-radius: 16px; background: #F2F4F7; border: 1px solid #D3D8E0; display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 900; font-size: 34px; color: var(--blue); }
.pid .who { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.pid h1 { margin: 0; font-family: var(--display); font-weight: 900; font-size: clamp(36px, 4.2vw, 56px); line-height: .95; overflow-wrap: anywhere; }
.pid .meta { font-size: 14.5px; color: var(--sub); }
.pid .rt { display: flex; flex-direction: column; align-items: flex-end; flex: none; }
.pid .rt b { font-family: var(--display); font-weight: 900; font-size: 56px; line-height: 1; color: var(--green); }
.pid .rt span { font-size: 13px; color: var(--sub); white-space: nowrap; }
.pid .rt .star { margin-top: 4px; }
.pid .nmline { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 16px; min-width: 0; }
.pid .rtg { display: inline-flex; align-items: baseline; gap: 8px; flex: none; }
.pid .rtg b { font-family: var(--display); font-weight: 900; font-size: 56px; line-height: .95; color: var(--green); }
.pid .rtg small { font-size: 13px; color: var(--sub); white-space: nowrap; }
.pid .nmline .star { flex: none; }
.pid .meta { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 0; }
.pid .meta .flag { margin-right: 7px; }
.pid .meta .ctry { color: var(--ink); font-weight: 700; }
.pid .meta .dot { display: inline-block; width: 3px; height: 3px; border-radius: 50%; background: var(--dim); margin: 0 8px; flex: none; }
.pid .meta .ipl { font-weight: 800; letter-spacing: .03em; font-size: 1.08em; }
.pid .meta .unc { color: var(--gold); font-weight: 600; }
.flag { height: 14px; width: auto; border-radius: 2px; box-shadow: 0 0 0 1px rgba(16, 24, 40, .12); flex: none; vertical-align: -2px; }
.flag.xs { height: 11px; margin-right: 6px; }
.pid .mine { flex: none; display: grid; grid-template-columns: repeat(3, auto); gap: 6px; align-self: center; }
.pid .mine > div { display: flex; flex-direction: column; align-items: flex-end; padding: 8px 12px; border-radius: 10px; background: var(--teal-well); border: 1px solid var(--teal-line); }
.pid .mine .k { font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--teal-label); }
.pid .mine b { font-family: var(--display); font-weight: 900; font-size: 30px; line-height: 1; font-variant-numeric: tabular-nums; }
.pid .mine .purse { background: var(--gold-bg); border-color: #F0D58A; }
.pid .mine .purse .k { color: var(--gold); }
.pid .mine .purse b { color: var(--gold); font-size: 36px; }
.binfo { display: flex; flex-direction: column; gap: 12px; min-height: 0; }
/* the latest season, big */
.lastseason { background: var(--tile); border-radius: 10px; padding: 10px 14px 12px; display: flex; flex-direction: column; gap: 6px; }
.ls-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }
.ls-head .eyebrow { color: var(--sub); }
.ls-body { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.ls-pts { display: flex; flex-direction: column; line-height: .95; min-width: 92px; }
.ls-pts b { font-family: var(--display); font-weight: 900; font-size: 56px; }
.ls-pts small { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.ls-stats { flex: 1; min-width: 0; margin: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.ls-stats div { min-width: 0; }
.ls-stats dt { font-family: var(--mono); font-size: 10.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ls-stats dd { margin: 0; font-family: var(--display); font-weight: 800; font-size: 28px; line-height: 1.1; }
/* five seasons of points, as a line */
.graph { background: var(--tile); border-radius: 10px; padding: 10px 14px 8px; display: flex; flex-direction: column; gap: 2px; }
.g-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }
.legend { display: flex; align-items: center; gap: 5px 8px; flex-wrap: wrap; font-size: 11.5px; color: var(--muted); }
.legend i { width: 9px; height: 9px; border-radius: 2px; display: inline-block; margin-left: 4px; }
.sgraph { --ph: 112px; display: flex; flex-direction: column; gap: 6px; width: 100%; }
.sgp { position: relative; height: var(--ph); display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
.sgp svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.sgp polyline { fill: none; stroke: rgba(16, 24, 40, .22); stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.sgc { position: relative; }
.sgv { position: absolute; left: 50%; transform: translate(-50%, -50%); min-width: 44px; padding: 3px 7px; border-radius: 6px; text-align: center; font-family: var(--display); font-weight: 800; font-size: 18px; line-height: 1.1; color: #FFFFFF; }
.sgv.off { min-width: 0; padding: 0; background: none; color: var(--dim); font-family: var(--mono); font-size: 16px; }
.sgf { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); text-align: center; }
.sgf div { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.sgf b { font-family: var(--mono); font-size: 13px; font-weight: 500; color: #475467; }
.sgf small { font-size: 11.5px; color: #8D96A5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* the season's numbers in one line, for shorter screens */
.ls-line { display: none; margin: 0; font-size: 13.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ls-line b { color: var(--ink); font-weight: 700; font-family: var(--display); font-size: 17px; letter-spacing: .01em; }
.ls-line i { display: inline-block; width: 3px; height: 3px; border-radius: 50%; background: var(--dim); margin: 0 8px; vertical-align: 3px; }
.pplink { font-size: 12px; align-self: flex-start; }
.seasons { background: var(--tile); border-radius: 10px; padding: 10px 14px; display: flex; flex-direction: column; gap: 2px; }
.seasons .sr { display: grid; grid-template-columns: 44px 44px 30px 46px 38px minmax(0, 1fr) 50px; gap: 8px; align-items: center; height: 25px; font-size: 13px; }
.seasons .sr.h { height: auto; padding-bottom: 4px; border-bottom: 1px solid #E6E9EF; font-family: var(--mono); font-size: 10.5px; letter-spacing: .04em; color: var(--muted); }
.seasons .sr.off { color: var(--dim); }
.seasons .y { font-family: var(--mono); font-weight: 600; }
.seasons .n { text-align: right; font-family: var(--mono); }
.seasons .pts { display: flex; align-items: center; gap: 8px; }
.seasons .bar { flex: 1; height: 6px; border-radius: 3px; background: #E6E9EF; overflow: hidden; }
.seasons .bar i { display: block; height: 100%; background: var(--blue); border-radius: 3px; }
.seasons .pv { width: 36px; text-align: right; font-family: var(--display); font-weight: 800; font-size: 17px; }
.seasons .rk { text-align: right; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.seasons .dnp { grid-column: 2 / -1; font-size: 12.5px; }
.seasons .foot { margin-top: 4px; font-size: 12px; color: var(--muted); }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; align-content: start; }
.tile { background: var(--tile); border-radius: 10px; padding: 10px 12px; min-width: 0; }
.tile .v { font-family: var(--display); font-weight: 800; font-size: 28px; line-height: 1.15; white-space: nowrap; }
.tile .v small { font-size: 13px; font-weight: 600; color: var(--muted); }

/* bidding */
.bidp { flex: none; min-height: 0; background: var(--panel2); border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; display: grid; grid-template-columns: minmax(230px, 320px) auto minmax(0, 1fr); gap: 20px; position: relative; }
.bidp.lead { border-color: var(--green-line); }
.bidp.out { border-color: var(--red-line); }
.cur { display: flex; flex-direction: column; gap: 9px; min-width: 0; position: relative; }
.cur .status { position: absolute; top: -4px; right: 0; max-width: 64%; margin: 0; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cur .amt { font-family: var(--display); font-weight: 900; font-size: 68px; line-height: .95; white-space: nowrap; }
.cur .amt small { font-size: 26px; font-weight: 800; color: var(--sub); }
.cur .amt.none { font-size: 40px; color: var(--sub); }
.leader { display: flex; align-items: center; gap: 10px; min-height: 34px; }
.leader > span:not(.chip) { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.leader b { font-weight: 700; font-size: 16px; }
.leader small { font-size: 13px; color: var(--muted); }
.status { margin-top: auto; padding: 9px 12px; border-radius: 10px; background: var(--tile); color: var(--sub); font-weight: 600; font-size: 14.5px; }
.status.lead { background: var(--green-bg); color: var(--green-ink); }
.status.out { background: var(--red-bg); color: var(--red-ink); }
.status.warn { background: var(--gold-bg); color: var(--gold); }
.bclock { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; }
.ring { position: relative; width: 116px; height: 116px; }
.ring svg { display: block; }
.ring .num { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ring .num b { font-family: var(--display); font-weight: 900; font-size: 48px; line-height: 1; }
.ring .num small { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.ring.hot .num b { color: var(--red); }
.bclock .hint { font-size: 12px; color: var(--muted); text-align: center; max-width: 150px; line-height: 1.35; }
.bacts { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
#b-toast { display: contents; }
.paddle { height: 80px; border-radius: 14px; border: 0; background: var(--gold-fill); color: var(--gold-ink); display: flex; align-items: center; justify-content: center; gap: 14px; box-shadow: 0 6px 0 var(--gold-deep); padding: 0 12px; transition: transform .05s; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.paddle:active:not(:disabled) { transform: translateY(4px); box-shadow: 0 2px 0 var(--gold-deep); }
.paddle .pl { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.05; min-width: 0; }
.paddle b { font-family: var(--display); font-weight: 900; font-size: 34px; white-space: nowrap; }
.paddle small { font-size: 13px; font-weight: 700; opacity: .8; white-space: nowrap; }
/* an auction paddle in the manager's team colour: raised while you lead */
.pdl { position: relative; width: 44px; height: 62px; flex: none; transition: transform .18s cubic-bezier(.2, .8, .2, 1); transform-origin: 50% 100%; }
.pdl i { position: absolute; top: 0; left: 0; width: 44px; height: 44px; border-radius: 50%; background: var(--tc, #2CC4B0); border: 3px solid #1A1405; box-sizing: border-box; display: flex; align-items: center; justify-content: center; font-style: normal; font-weight: 800; font-size: 13px; color: #0B0E13; }
.pdl::after { content: ""; position: absolute; left: 19px; top: 41px; width: 6px; height: 21px; border-radius: 3px; background: #1A1405; }
.paddle:active:not(:disabled) .pdl, .pdl.up { transform: translateY(-8px) rotate(-12deg); }
.paddle.leading .pdl i { border-color: #078A4C; }
.paddle.leading .pdl::after { background: #078A4C; }
.paddle:disabled:not(.leading) .pdl { opacity: .45; }
.paddle.leading { background: #E5F5EC; color: var(--green-ink); box-shadow: 0 6px 0 #9BD8B6; }
.paddle:disabled:not(.leading) { background: #EEF0F3; color: #98A2B3; box-shadow: 0 6px 0 #D3D8E0; }
.paddle.sending { opacity: .75; }
.arow { display: flex; flex-wrap: wrap; align-items: stretch; gap: 8px; }
.quick { flex: 1 1 300px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.arow .autorow { flex: 0 1 auto; }
.quick button { height: 44px; border-radius: 10px; border: 1px solid var(--edge); background: var(--btn); color: var(--ink); font-weight: 700; font-size: 14.5px; padding: 0 4px; }
.quick button:disabled { opacity: .4; }
.quick button[data-a]:not([data-a=""]) { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; line-height: 1.05; }
.quick button b { font-size: 15px; font-weight: 800; }
.quick button small { font-size: 10.5px; font-weight: 600; color: var(--muted); }
.toast.jump { background: var(--gold-bg); border-color: #F0D58A; color: var(--gold); }
.autorow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.autorow .on { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px; background: var(--green-bg); border: 1px solid var(--green-line); color: var(--green-ink); font-size: 13px; font-weight: 600; }
.autorow .on button { border: 0; background: none; color: var(--green-ink); text-decoration: underline; font-size: 13px; padding: 0; }
.autorow .open { height: 40px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--edge); background: transparent; color: var(--sub); font-weight: 600; font-size: 13.5px; }
.autorow .open:disabled { opacity: .4; }
.autorow .pass { color: var(--red-ink); border-color: var(--red-line); }
.autorow .passed { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px; background: var(--red-bg); border: 1px solid var(--red-line); color: var(--red-ink); font-size: 13px; font-weight: 600; }
.autorow .passed button { border: 0; background: none; color: var(--red-ink); text-decoration: underline; font-size: 13px; padding: 0; }
.team .c .ld.out { background: #D3D8E0; color: var(--sub); }
.simrow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding-top: 8px; border-top: 1px dashed var(--line2); }
.simrow .lbl { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-right: 2px; }
.simrow button { height: 32px; padding: 0 12px; border-radius: 9px; border: 1px solid #B7D0F7; background: transparent; color: var(--blue); font-weight: 600; font-size: 13px; }
.simrow button.warn { background: var(--gold-bg); border-color: #F0D58A; color: var(--gold); }
.simrow button:disabled { opacity: .4; }
.autorow .mx { margin-left: auto; font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.autorow .mx b { color: var(--ink); }
.sheet { display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.sheet .sh { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.sheet .sh b { font-family: var(--display); font-weight: 800; font-size: 24px; }
.sheet .sh span, .sheet p { font-size: 12.5px; color: var(--muted); margin: 0; }
.sheet .chips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.sheet .chips button { height: 42px; border-radius: 10px; border: 1px solid var(--edge); background: var(--btn); color: var(--ink); font-weight: 700; font-size: 14.5px; padding: 0 4px; }
.sheet .chips button[aria-pressed="true"] { border-color: var(--gold); background: var(--gold-bg); }
.sheet.auto .chips button[aria-pressed="true"] { border-color: var(--green); background: #E5F5EC; }
.amount { display: flex; align-items: center; gap: 8px; height: 48px; padding: 0 14px; border-radius: 10px; background: var(--well); border: 1px solid var(--edge); }
.amount span { font-size: 13px; color: var(--muted); }
.amount i { font-style: normal; font-family: var(--display); font-weight: 800; font-size: 24px; }
.amount input { flex: 1; min-width: 0; background: transparent; border: 0; color: var(--ink); font-family: var(--display); font-weight: 800; font-size: 24px; outline: none; }
.amount input::-webkit-outer-spin-button, .amount input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.amount input[type=number] { -moz-appearance: textfield; }
.sheet .serr { font-size: 12.5px; color: #B42318; min-height: 1em; }
.sheet .go { display: flex; gap: 8px; margin-top: auto; }
.sheet .go .cancel { height: 46px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--edge); background: transparent; color: var(--sub); font-weight: 600; }
.sheet .go .ok { flex: 1; height: 46px; border-radius: 10px; border: 0; background: var(--gold-fill); color: #0B0E13; font-weight: 800; font-size: 16px; }
.sheet.auto .go .ok { background: var(--green); }
.sheet .go .ok:disabled { opacity: .45; }
.toast { position: absolute; left: 20px; right: 20px; top: -22px; z-index: 3; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 10px; background: #FFF1E8; border: 1px solid #F7C3A0; color: #9A3412; font-size: 14px; animation: slidein .25s ease-out both; }
.toast.ok { background: var(--green-bg); border-color: var(--green-line); color: var(--green-ink); }
.ltoast .toast { position: fixed; top: auto; bottom: 20px; left: 16px; right: 16px; max-width: 560px; margin: 0 auto; z-index: 25; }
@keyframes slidein { from { transform: translateY(-10px); opacity: 0; } to { transform: none; opacity: 1; } }

/* bids and the set */
.setp .ph { padding: 12px 16px 6px; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.setp { flex: none; padding-bottom: 12px; display: flex; flex-direction: column; gap: 8px; max-height: 50%; overflow-y: auto; }
.setp .sub { padding: 0 16px; display: flex; flex-direction: column; }
.setp .sub .label { display: flex; justify-content: space-between; margin: 2px 0; }
.un { display: flex; align-items: center; gap: 10px; padding: 5px 0; border-bottom: 1px solid #EEF0F4; }
.un .t { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.un .t b { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.un .t small { font-size: 12px; color: var(--muted); }
.un .p { font-family: var(--mono); font-size: 12.5px; color: var(--blue); }
.un .v { width: 66px; text-align: right; font-family: var(--mono); font-size: 12.5px; }
.un .st { color: var(--gold); margin-right: 2px; }
.sold { display: flex; align-items: center; gap: 10px; padding: 4px 0; font-size: 13px; }
.sold .t { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sold .t small { color: var(--muted); font-size: 13px; }
.sold .p { font-family: var(--mono); font-size: 12.5px; }
.sold .p.uns { color: #B42318; }

/* teams strip */
.teams { flex: none; margin: 14px 20px 16px; display: grid; grid-template-columns: repeat(var(--n, 8), minmax(0, 1fr)); gap: 8px; }
.team { min-height: 84px; border-radius: 10px; padding: 8px 10px; background: var(--panel2); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.team.me { background: #ECF8F6; border-color: #9FD9CF; }
.team .a { display: flex; align-items: center; gap: 7px; min-width: 0; }
.team .a .nm { flex: 1; min-width: 0; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.team .a .sq { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.team .b { display: flex; justify-content: space-between; gap: 6px; font-family: var(--mono); font-size: 12px; }
.team .b span:last-child { color: var(--muted); }
.team .c { display: flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 10.5px; color: #667085; }
.team .c .nd { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.team .c .nd.warn { color: var(--gold); }
.team .c .ld { padding: 1px 5px; border-radius: 4px; color: #0B0E13; font-weight: 600; }

/* the live row between the player and the bid panel: live bids, just sold, up next */
.block { flex: 0 1 auto; }
.liverow { flex: 1 1 0; min-height: 124px; display: grid; grid-template-columns: minmax(0, .72fr) minmax(0, 1.5fr) minmax(0, 1.2fr); gap: 12px; }
.liverow .panel { min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
.liverow .ph, .topb .ph { padding: 10px 14px 6px; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.liverow h2, .topb h2 { font-size: 19px; }
.liverow ol, .topb ol { list-style: none; margin: 0; padding: 0 8px 8px; display: flex; flex-direction: column; gap: 3px; overflow-y: auto; min-height: 0; }
.liverow .empty, .topb .empty { margin: 0; padding: 2px 14px 12px; font-size: 13px; color: var(--muted); }

/* live bids: the heart of the room. The bid that leads is big and in its team's colours; older bids step back */
.feed { background: radial-gradient(120% 90% at 50% 0%, #F7F8FA 0%, var(--panel) 70%); }
.feed .ph.lv { padding: 9px 14px 5px; align-items: center; }
.feed .lv .eyebrow { display: flex; align-items: center; gap: 7px; font-size: 11px; color: var(--sub); }
.feed .lv .eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: var(--red); animation: livepulse 1.2s ease-in-out infinite; }
.feed ol { padding: 2px 10px 10px; gap: 4px; }
.feed li { position: relative; display: flex; align-items: center; gap: 10px; padding: 4px 10px 4px 8px; border-radius: 8px; flex: none;
  background: color-mix(in srgb, var(--tc) 9%, transparent); border-left: 3px solid var(--tc); }
.feed li:nth-child(2) { opacity: .92; }
.feed li:nth-child(3) { opacity: .78; }
.feed li:nth-child(4) { opacity: .64; }
.feed li:nth-child(n+5) { opacity: .5; }
.feed li .nm { flex: 1; min-width: 0; font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed li .tag { font-family: var(--mono); font-size: 10.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.feed li .am { font-family: var(--mono); font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.feed li.top { gap: 12px; padding: 9px 16px 9px 12px; border-radius: 12px; border-left: 0; overflow: hidden;
  background: linear-gradient(100deg, color-mix(in srgb, var(--tc) 26%, #FFFFFF) 0%, color-mix(in srgb, var(--tc) 8%, #FFFFFF) 72%);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tc) 60%, transparent), 0 12px 30px -16px var(--tc); }
.feed li.top .chip { width: 40px; height: 40px; border-radius: 10px; font-size: 15px; }
.feed li.top .who { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.15; }
.feed li.top .who b { font-size: 18px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed li.top .who small { font-size: 12px; color: #475467; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed li.top .am { display: flex; align-items: baseline; gap: 4px; font-family: var(--display); }
.feed li.top .am b { font-weight: 900; font-size: 40px; line-height: .95; font-variant-numeric: tabular-nums; }
.feed li.top .am small { font-size: 17px; font-weight: 800; color: #475467; }
/* the leading bid breathes in its colour, quicker in the last seconds of the clock */
.feed li.top::before { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 2px var(--tc), inset 0 0 22px -6px var(--tc); opacity: .2; animation: breathe 2.4s ease-in-out infinite; pointer-events: none; }
.feed.hot li.top::before { animation-duration: .7s; }
@keyframes breathe { 0%, 100% { opacity: .2; } 50% { opacity: .85; } }
/* a new leading bid lands: it drops in, flashes, and a light sweeps across it */
.feed li.top.arrive { animation: bidin .55s cubic-bezier(.2, .9, .25, 1.12) both; }
.feed li.top.arrive::after { content: ""; position: absolute; top: 0; bottom: 0; left: -45%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .3), transparent); transform: skewX(-18deg); animation: sweep .8s ease-out .1s both; pointer-events: none; }
@keyframes bidin { 0% { transform: translateY(-20px) scale(.95); opacity: 0; filter: brightness(1.9); } 50% { opacity: 1; filter: brightness(1.4); } 100% { transform: none; opacity: 1; filter: none; } }
@keyframes sweep { from { left: -45%; } to { left: 115%; } }
.feed li.top.sold::before { animation: none; opacity: 1; box-shadow: inset 0 0 0 2px var(--gold); }
.feed li.top.sold .who small { color: var(--gold); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.feed .wait { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 6px 14px 16px; text-align: center; }
.feed .wait b { font-family: var(--display); font-size: 24px; font-weight: 800; color: var(--sub); }
.feed .wait span { font-size: 13px; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .feed li.top::before, .feed li.top.arrive, .feed li.top.arrive::after { animation: none; } }

/* just sold and the pot: information beside the bids, kept quiet */
.soldp h2, .nextp h2 { font-size: 16px; color: #101828; }
.soldp li, .nextp li, .topb li { display: flex; align-items: center; gap: 9px; padding: 4px 6px; border-bottom: 1px solid #EEF0F4; }
.soldp li:last-child, .nextp li:last-child, .topb li:last-child { border-bottom: 0; }
.soldp .t, .nextp .t { flex: 1; min-width: 0; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.soldp .p, .topb .p { font-family: var(--mono); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.nextp .p { width: 38px; text-align: right; font-family: var(--mono); font-size: 12px; }
.nextp .v { width: 38px; text-align: right; font-family: var(--mono); font-size: 12px; color: var(--sub); }
.nextp .cols { display: flex; justify-content: flex-end; gap: 9px; padding: 0 14px 2px; font-size: 9.5px; }
.nextp .cols span { width: 38px; text-align: right; white-space: nowrap; }
.nextp .cols span:first-child { width: 60px; }
.nextp .st { color: var(--gold); margin-right: 3px; }
.nextp li.now { background: rgba(245, 196, 81, .1); border-radius: 6px; border-bottom-color: transparent; box-shadow: inset 3px 0 0 var(--gold); }
.nextp li.now .t { color: var(--gold); }
.nextp .nowtag { display: inline-block; margin-right: 6px; padding: 0 5px; border-radius: 4px; background: var(--gold-fill); color: #1A1406; font-family: var(--mono); font-size: 9.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; vertical-align: 1px; }
.soldp li.uns .t { color: var(--muted); }
.soldp li.uns .p { color: var(--muted); font-weight: 500; }
.chip.none { background: #E6E9EF; color: var(--muted); box-shadow: none; }
.nextp .more { margin: 2px 14px 10px; font-size: 12px; color: var(--muted); }
.topb { flex: 0 1 auto; min-height: 118px; max-height: 46%; display: flex; flex-direction: column; overflow: hidden; }
.rcol > .squad { flex: 1 1 auto; min-height: 220px; }
.topb li .rk { width: 12px; font-family: var(--mono); font-size: 11px; color: var(--muted); flex: none; }
.topb li .t { flex: 1; min-width: 0; font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chip.xs { width: 18px; height: 18px; border-radius: 4px; font-size: 8.5px; }
.star.sm { width: 22px; height: 22px; font-size: 14px; border-radius: 6px; margin: -2px -2px -2px -4px; }
/* the pots: every pot in order as chips, and the one picked as a list */
.potchips { display: flex; gap: 4px; overflow-x: auto; padding: 0 10px 6px; scrollbar-width: none; flex: none; }
.potchips::-webkit-scrollbar { display: none; }
.potchips button { flex: none; height: 24px; padding: 0 8px; border-radius: 6px; border: 1px solid var(--line2); background: var(--btn); color: var(--sub); font-family: var(--mono); font-size: 11px; font-weight: 600; }
.potchips button.done { color: var(--dim); background: transparent; }
.potchips button.cur { color: var(--gold); border-color: #F0D58A; background: var(--gold-bg); }
.potchips button[aria-pressed="true"] { box-shadow: 0 0 0 1.5px var(--ink); color: var(--ink); }
.potchips button.cur[aria-pressed="true"] { color: var(--gold); box-shadow: 0 0 0 1.5px var(--gold); }
.nextp li.gone .t { color: var(--muted); font-weight: 500; }
.nextp .res { display: inline-flex; align-items: center; gap: 5px; font-family: var(--mono); font-size: 12px; font-weight: 600; white-space: nowrap; }
.nextp .res.uns { color: var(--dim); font-weight: 500; }
/* unsold: star the ones to bring back */
.unsp .hint { margin: 0; padding: 0 14px 6px; font-size: 12px; color: var(--muted); line-height: 1.35; }
.unsq { flex: none; margin: 0 10px 6px; height: 30px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--line2); background: var(--well); color: var(--ink); font-size: 13px; min-width: 0; }
.unsq:focus { outline: none; border-color: var(--edge); }
.ulist { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.unsp .cols { display: flex; justify-content: flex-end; gap: 8px; padding: 0 14px 2px; font-size: 9.5px; }
.unsp .cols span { width: 34px; text-align: right; }
.unsp .p { width: 34px; text-align: right; font-family: var(--mono); font-size: 12px; }
.unsp li { display: flex; align-items: center; gap: 8px; padding: 4px 6px; border-bottom: 1px solid #EEF0F4; }
.unsp li:last-child { border-bottom: 0; }
.unsp li.on { background: rgba(245, 196, 81, .07); border-radius: 6px; }
.unsp .t { flex: 1; min-width: 0; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.unsp .r { font-family: var(--mono); font-size: 10.5px; color: var(--muted); white-space: nowrap; }
.unsp .v { width: 34px; text-align: right; font-family: var(--mono); font-size: 12px; color: var(--sub); }
.unsp h2 { font-size: 16px; color: #101828; }
.unsp.nominate { border-color: #F0D58A; box-shadow: 0 0 0 1px #F0D58A, 0 0 24px -8px rgba(245, 196, 81, .5); }
.unsp.nominate .hint { color: var(--gold); }
.rcol > .squad:only-child { flex: 1 1 auto; }
/* time-outs */
.autorow .to { color: var(--gold); border-color: #F0D58A; }
.autorow .to small { font-family: var(--mono); font-size: 11px; color: var(--muted); margin-left: 4px; }
.autorow .to.on { background: var(--gold-bg); }
.status .tosec { font-family: var(--mono); color: var(--gold); margin-left: 6px; }
.toast.starred { background: var(--gold-bg); border-color: var(--gold-deep); color: var(--gold); font-weight: 600; }
/* a team's squad, over its card */
.team { cursor: pointer; }
.team.popped { box-shadow: 0 0 0 1.5px var(--edge); }
.tpop { position: fixed; z-index: 28; width: 300px; max-height: min(520px, calc(100vh - 16px)); overflow-y: auto; background: var(--panel2); border: 1px solid var(--edge); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 24px 60px rgba(16, 24, 40, .18); }
.tpop .th { display: flex; align-items: center; gap: 10px; }
.tpop .th > span:not(.chip) { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.tpop .th b { font-size: 15px; }
.tpop .th small { font-size: 12px; color: var(--muted); }
.tpop .tm3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.tpop .tm3 div { background: var(--tile); border-radius: 8px; padding: 5px 8px; display: flex; flex-direction: column; }
.tpop .tm3 .k { font-family: var(--mono); font-size: 9.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.tpop .tm3 b { font-family: var(--mono); font-size: 13.5px; }
.tpop .pgs { display: flex; flex-direction: column; gap: 6px; }
.tpop .gl { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 10px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); padding: 0 2px 2px; }
.tpop .ps { display: flex; align-items: center; gap: 8px; height: 23px; padding: 0 8px; border-radius: 6px; background: var(--tile); font-size: 12.5px; }
.tpop .ps .nm { flex: 1; min-width: 0; display: flex; align-items: center; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tpop .ps .pr { font-family: var(--mono); font-size: 12px; color: var(--sub); }
.tpop .ps.empty { background: transparent; border: 1px dashed var(--line2); color: var(--dim); }
/* the admin menu */
.amenu { position: fixed; z-index: 27; top: 64px; right: 16px; width: 320px; background: var(--panel2); border: 1px solid var(--edge); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 8px; box-shadow: 0 24px 60px rgba(16, 24, 40, .18); }
.amenu .ah { display: flex; align-items: center; justify-content: space-between; }
.amenu .ah b { font-family: var(--display); font-size: 20px; font-weight: 800; }
.amenu .x { width: 30px; height: 30px; border: 0; border-radius: 8px; background: transparent; color: var(--sub); font-size: 20px; }
.amenu .ab { height: 40px; border-radius: 10px; border: 1px solid var(--edge); background: var(--btn); color: var(--ink); font-weight: 700; font-size: 14px; }
.amenu .ab.gold { background: var(--gold-bg); border-color: #F0D58A; color: var(--gold); }
.amenu .ab.warn { background: #FFF1E8; border-color: #F7C3A0; color: #9A3412; }
.amenu .ab:disabled { opacity: .4; }
.amenu .an { margin: 0; font-size: 12px; color: var(--muted); line-height: 1.4; }
.amenu .aseg { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.amenu .aseg > div { display: flex; gap: 4px; }
.amenu .aseg button, .amenu .ar button { height: 30px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--edge); background: transparent; color: var(--sub); font-size: 12.5px; font-weight: 600; }
.amenu .aseg button[aria-pressed="true"], .amenu .ar button[aria-pressed="true"] { background: var(--gold-bg); border-color: #F0D58A; color: var(--gold); }
.amenu .aadm { display: flex; flex-direction: column; gap: 5px; padding-top: 4px; border-top: 1px solid var(--line); }
.amenu .ar { display: flex; align-items: center; gap: 8px; }
.amenu .ar .nm { flex: 1; min-width: 0; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rbar .hostbtn[aria-expanded="true"] { border-color: var(--gold); color: var(--gold); }
.pbmine.gold { color: var(--gold); font-weight: 600; }
/* between pots: the player card becomes the pot's summary */
.pbreak { display: flex; flex-direction: column; gap: 12px; }
.pbreak h1 { margin: 0; font-family: var(--display); font-weight: 900; font-size: clamp(32px, 3.6vw, 48px); line-height: .95; }
.pbstats { display: flex; flex-wrap: wrap; gap: 10px; }
.pbstats > div { background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; padding: 8px 14px; display: flex; flex-direction: column; }
.pbstats b { font-family: var(--display); font-weight: 800; font-size: 28px; line-height: 1; }
.pbstats b small { font-size: 15px; color: var(--muted); }
.pbstats > div > span { font-size: 12px; color: var(--muted); }
.pbstats .pbtop { flex: 1; min-width: 220px; flex-direction: row; align-items: center; gap: 10px; }
.pbtop > span:not(.chip) { display: flex; flex-direction: column; min-width: 0; }
.pbtop b { font-family: var(--body); font-size: 16px; font-weight: 700; color: var(--ink); }
.pbtop small { font-size: 12.5px; color: var(--sub); }
.pbmine { margin: 0; font-size: 14px; color: var(--teal-label); }
.pbnext { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 12px; padding: 12px 16px; border-radius: 12px; background: var(--gold-bg); border: 1px solid #F0D58A; font-size: 15px; }
.pbnext b { color: var(--gold); }
.pbsec { font-family: var(--mono); font-size: 13px; color: var(--sub); white-space: nowrap; }
.pbsec b { font-size: 22px; }

/* on desktop the latest season and the five-season graph sit side by side, so the card fits without scrolling */
@media (min-width: 901px) {
  .binfo { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: 12px; align-items: stretch; }
  .lastseason .ls-body { flex-direction: column; align-items: flex-start; gap: 10px; }
  .ls-stats { width: 100%; grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 8px; }
  .ls-stats dd { font-size: 24px; }
  .ls-pts b { font-size: 50px; }
}
/* mobile tabs */
.rtabs { display: none; }
/* on a tall enough desktop the room fills the screen exactly and panels scroll inside it */
@media (min-width: 901px) and (min-height: 560px) {
  .room { height: 100vh; height: 100dvh; overflow: hidden; }
}
/* most laptop and desktop windows (a 1080p screen leaves a window about 950 px tall): everything a little tighter, so
   the player card, the live row and the paddle all fit on one screen */
@media (min-width: 901px) and (max-height: 1060px) {
  .rbar { height: 52px; }
  .rgrid { padding-top: 10px; gap: 12px; }
  .rcol { gap: 10px; }
  .block { padding: 10px 16px; gap: 8px; }
  .pav { width: 56px; height: 56px; border-radius: 12px; font-size: 24px; }
  .pid { gap: 14px; }
  .pid h1 { font-size: 40px; }
  .pid .meta { font-size: 13.5px; }
  .pid .rt b { font-size: 42px; }
  .pid .rt .star { display: none; }
  .pid .rtg b { font-size: 42px; }
  .pid .mine b { font-size: 24px; }
  .pid .mine .purse b { font-size: 28px; }
  .pid .mine > div { padding: 6px 10px; }
  .lastseason { padding: 8px 12px 10px; gap: 4px; }
  .lastseason .ls-body { gap: 6px; }
  .ls-pts b { font-size: 40px; }
  .ls-stats dd { font-size: 20px; }
  .graph { padding: 8px 12px 6px; }
  .pplink { display: none; }
  .bidp { min-height: 0; padding: 12px 16px; gap: 14px; }
  .cur { gap: 6px; }
  .cur .amt { font-size: 52px; }
  .cur .amt.none { font-size: 34px; }
  .ring, .ring svg { width: 96px; height: 96px; }
  .ring .num b { font-size: 40px; }
  .paddle { height: 66px; }
  .paddle b { font-size: 30px; }
  .quick button { height: 38px; }
  .autorow .open { height: 36px; }
  .teams { margin: 10px 20px 12px; }
  .team { min-height: 70px; padding: 6px 9px; gap: 2px; }
  .pbreak { gap: 8px; }
  .pbreak h1 { font-size: 38px; }
  .pbstats b { font-size: 24px; }
  .pbnext { padding: 9px 14px; }
}
/* short laptop windows (1366×768 and 1440×900 screens leave 650 to 800 px): the last season's numbers go on one line
   beside its points, the graph and the bid panel get shorter, and the top buys show three */
@media (min-width: 901px) and (max-height: 820px) {
  .rbar { height: 48px; }
  .rgrid { padding-top: 8px; gap: 10px; }
  .rcol { gap: 8px; }
  .block { padding: 8px 14px; gap: 6px; }
  .pav { width: 44px; height: 44px; border-radius: 10px; font-size: 19px; }
  .pid { gap: 12px; }
  .pid h1 { font-size: 32px; }
  .pid .meta { font-size: 13px; }
  .pid .rt b { font-size: 34px; }
  .pid .rtg b { font-size: 34px; }
  .pid .rtg small { font-size: 12px; }
  .pid .mine b { font-size: 20px; }
  .pid .mine .purse b { font-size: 23px; }
  .pid .mine > div { padding: 5px 9px; }
  .pid .mine .k { font-size: 9.5px; }
  .binfo { gap: 8px; }
  .lastseason { padding: 6px 10px 8px; gap: 2px; }
  .lastseason .ls-body { flex-direction: row; align-items: center; gap: 14px; }
  .ls-pts { min-width: 70px; }
  .ls-pts b { font-size: 34px; }
  .ls-stats { flex: 1; width: auto; row-gap: 4px; }
  .ls-stats dd { font-size: 17px; }
  .graph { padding: 6px 10px 4px; }
  .sgraph { --ph: 70px; }
  .bidp { padding: 10px 14px; gap: 12px; }
  .cur .amt { font-size: 44px; }
  .ring, .ring svg { width: 84px; height: 84px; }
  .ring .num b { font-size: 34px; }
  .paddle { height: 58px; }
  .paddle b { font-size: 26px; }
  .quick button { height: 34px; }
  .autorow .open { height: 32px; }
  .teams { margin: 8px 20px 10px; }
  .team { min-height: 0; padding: 5px 8px; }
  .liverow { min-height: 112px; gap: 10px; }
  .liverow .ph { padding: 7px 12px 4px; }
  .topb h2 { font-size: 17px; }
  .soldp h2, .nextp h2 { font-size: 15px; }
  .feed li.top .am b { font-size: 34px; }
  .feed li.top .chip { width: 34px; height: 34px; font-size: 13px; }
  .feed li.top { padding: 7px 14px 7px 10px; }
  .topb .ph { padding: 7px 12px 4px; }
  .pbreak h1 { font-size: 30px; }
  .pbstats > div { padding: 6px 12px; }
  .pbstats b { font-size: 20px; }
}
/* the shortest windows (a 1366×768 laptop leaves about 650 px) */
@media (min-width: 901px) and (max-height: 700px) {
  .rbar { height: 44px; }
  .pid h1 { font-size: 28px; }
  .pid .rt b { font-size: 30px; }
  .pid .rtg b { font-size: 30px; }
  .ls-pts b { font-size: 30px; }
  .ls-stats dd { font-size: 16px; }
  .sgraph { --ph: 56px; }
  .bidp { padding: 8px 14px; }
  .cur { gap: 4px; }
  .cur .amt { font-size: 38px; }
  .ring, .ring svg { width: 76px; height: 76px; }
  .ring .num b { font-size: 30px; }
  .bacts { gap: 8px; }
  .paddle { height: 52px; }
  .paddle b { font-size: 24px; }
  .quick button { height: 32px; }
  .autorow .open { height: 30px; }
  .liverow { min-height: 100px; }
  .pbreak { gap: 6px; }
  .pbreak h1 { font-size: 26px; }
}

/* the hammer */
.hammer { position: fixed; inset: 0; z-index: 30; background: rgba(16, 24, 40, .55); display: flex; align-items: center; justify-content: center; padding: 16px; }
.hammer .box { width: min(640px, 100%); border-radius: 20px; background: var(--panel2); border: 2px solid var(--c, var(--edge)); padding: 34px 40px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; box-shadow: 0 30px 80px rgba(16, 24, 40, .18); animation: pop .55s cubic-bezier(.2, .8, .2, 1) both; }
.hammer .word { font-family: var(--display); font-weight: 900; font-size: clamp(72px, 16vw, 120px); line-height: .85; letter-spacing: .02em; color: var(--gold); }
.hammer .word.uns { color: var(--muted); }
.hammer .to { font-size: 18px; color: var(--sub); }
.hammer .tm { display: flex; align-items: center; gap: 12px; }
.hammer .tm b { font-family: var(--display); font-weight: 800; font-size: clamp(28px, 6vw, 40px); }
.hammer .pr { font-family: var(--display); font-weight: 900; font-size: clamp(48px, 11vw, 72px); line-height: 1; }
.hammer .ln { font-size: 15px; color: var(--sub); }
.hammer .nx { font-size: 13px; color: var(--muted); }
@keyframes pop { 0% { transform: scale(.55); opacity: 0; } 60% { transform: scale(1.06); opacity: 1; } 100% { transform: scale(1); opacity: 1; } }

/* room: lobby and results share the page frame */
.rpage { max-width: 1240px; width: 100%; margin: 0 auto; padding: 22px 20px 56px; }
.rpage h1 { margin: 4px 0 6px; font-family: var(--display); font-weight: 900; font-size: clamp(36px, 6vw, 52px); line-height: 1; }
.results { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 480px), 1fr)); gap: 14px; }
.rteam { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.rteam.me { border-color: #9FD9CF; background: #ECF8F6; }
.rteam .a { display: flex; align-items: center; gap: 10px; }
.rteam .a > span:not(.chip) { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.rteam .a b { font-size: 15px; }
.rteam .a small { font-size: 12px; color: var(--muted); }
.rteam .tot { font-family: var(--mono); font-size: 12px; color: var(--sub); display: flex; justify-content: space-between; gap: 8px; white-space: nowrap; }
.rteam ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.rteam li { display: flex; gap: 8px; align-items: baseline; padding: 3px 0; border-bottom: 1px solid #EEF0F4; font-size: 13px; }
.rteam li .r { width: 34px; font-family: var(--mono); font-size: 10.5px; color: var(--muted); flex: none; }
.rteam li .n { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rteam li .p { font-family: var(--mono); font-size: 12px; }
.topbuys { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; margin: 14px 0 22px; }
.topbuys div { background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.topbuys b { font-family: var(--display); font-size: 26px; font-weight: 800; }
.topbuys span { font-size: 13px; color: var(--sub); }

/* results: paid and worth columns, and the notes under each squad */
.rteam li .p, .rteam li .w, .rteam li .g { width: 58px; text-align: right; flex: none; font-family: var(--mono); font-size: 13px; }
.rteam li .g.up { color: var(--green); }
.rteam li .g.down { color: var(--red); }
.rteam li { padding: 6px 0; font-size: 14px; }
.rteam li .r { width: 40px; }
.rteam { padding: 14px 16px; gap: 10px; }
.rteam .a b { font-size: 17px; }
.rteam li .x { width: 34px; text-align: right; flex: none; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.rteam li .w { color: var(--sub); font-family: var(--mono); font-size: 12px; }
.rteam li.hd { border-bottom-color: var(--line2); padding-bottom: 4px; }
.rteam li.hd span { font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); }
.rteam .a > span.grade { flex: none; display: inline-flex; flex-direction: row; line-height: 1; }
.up, .rteam li .w.up { color: var(--green); }
.down, .rteam li .w.down { color: var(--red); }
.rt-notes { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--sub); }
.rt-notes p { margin: 0; }
.rt-notes b { color: var(--ink); font-weight: 700; margin-right: 2px; }
.rt-notes small { display: block; color: var(--muted); font-size: 11.5px; }

/* the auction report */
.rep { margin: 22px 0 6px; display: flex; flex-direction: column; gap: 14px; }
.rep-wait { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 34px 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; }
.rep-wait b { font-family: var(--display); font-size: 26px; font-weight: 800; }
.rep-wait span:not(.spin) { color: var(--muted); font-size: 14px; }
.spin { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--line2); border-top-color: var(--gold-fill); animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.grade { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 26px; padding: 0 6px; border-radius: 7px; font-family: var(--display); font-weight: 900; font-size: 18px; line-height: 1; border: 1px solid; }
.grade.ga { color: var(--green); background: var(--green-bg); border-color: var(--green-line); }
.grade.gb { color: var(--blue); background: #EAF2FE; border-color: #B7D0F7; }
.grade.gc { color: var(--red); background: var(--red-bg); border-color: var(--red-line); }
.grade.big { min-width: 64px; height: 52px; border-radius: 12px; font-size: 34px; }
.rep-hero { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 14px; background: linear-gradient(100deg, #FFF5D6, var(--panel) 60%); border: 1px solid #F0D58A; }
.rep-hero .w { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.rep-hero small { font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.rep-hero b { font-family: var(--display); font-weight: 900; font-size: clamp(30px, 5vw, 42px); line-height: 1.05; }
.rep-hero span:not(.chip):not(.grade) { color: var(--sub); font-size: 14px; }
.rep-me { margin: 0; padding: 10px 14px; border-radius: 10px; background: var(--teal-bg); border: 1px solid var(--teal-line); font-size: 14px; color: var(--sub); }
.rep-me b { color: var(--ink); }
.rep .tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.rank-t { width: 100%; border-collapse: collapse; font-size: 14px; }
.rank-t th { text-align: left; font-family: var(--mono); font-size: 10.5px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); padding: 10px 10px 8px; border-bottom: 1px solid var(--line2); white-space: nowrap; }
.rank-t td { padding: 9px 10px; border-bottom: 1px solid #EEF0F4; white-space: nowrap; }
.rank-t tbody tr:last-child td { border-bottom: 0; }
.rank-t tr.me td { background: #ECF8F6; }
.rank-t .num { text-align: right; font-family: var(--mono); font-size: 13px; }
.rank-t .rk { width: 28px; color: var(--muted); font-family: var(--mono); }
.rank-t .tm { display: flex; align-items: center; gap: 8px; max-width: 220px; min-width: 0; }
.rank-t .rg { width: 28%; min-width: 120px; }
.rng { position: relative; display: block; height: 14px; }
.rng i { position: absolute; top: 5px; height: 4px; border-radius: 2px; background: var(--line2); }
.rng b { position: absolute; top: 2px; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: var(--gold-fill); }
.rep-key { margin: -4px 0 0; line-height: 1.5; }
.rep-key b { color: var(--sub); }
.rep-lists { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.rep-list { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.rep-list h3 { margin: 0; font-family: var(--display); font-weight: 800; font-size: 22px; }
.rep-list > .note { margin: 0 0 8px; font-size: 12.5px; }
.rep-list ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.rep-list li { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-top: 1px solid #EEF0F4; font-size: 14px; }
.rep-list li .n { font-weight: 600; }
.rep-list li .c { width: 52px; text-align: right; flex: none; font-family: var(--mono); font-size: 12.5px; }
.rep-list li .c.r { width: 70px; font-size: 11px; color: var(--muted); }
.rep-list li .c.d { width: 58px; }
.rep-list li.hd { border-top: 0; padding: 6px 0 4px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); }
.rep-list li.hd .n { font-weight: 500; }
.rep-list li.hd .c { font-size: 10.5px; }
.rep-list h3 { margin-bottom: 4px; }
.rep-list li .n { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.rep-list li .n b { font-size: 14px; }
.rep-list li .n small { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rep-list li .d { font-family: var(--mono); font-size: 12.5px; flex: none; }
.rep-share { display: flex; flex-wrap: wrap; gap: 10px; }
.btn.wa { border: 0; background: #25D366; color: #052E16; font-weight: 800; }
.btn.wa:hover { color: #052E16; filter: brightness(1.05); }
.rep-cta { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: 14px; background: var(--gold-bg); border: 1px solid #F0D58A; }
.rep-cta > div { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.rep-cta b { font-family: var(--display); font-weight: 900; font-size: 26px; }
.rep-cta span { color: var(--sub); font-size: 14px; }

/* ---- smaller screens */
@media (max-width: 1400px) {
  .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tile .v { font-size: 24px; }
}
@media (max-width: 1180px) {
  .rgrid { grid-template-columns: 270px minmax(0, 1fr); gap: 12px; padding: 12px 14px 0; }
  .teams { margin: 12px 14px 14px; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(150px, 1fr); overflow-x: auto; }
  .bidp { grid-template-columns: minmax(0, 1fr) 88px minmax(0, 1.3fr); gap: 12px; }
  .ring, .ring svg { width: 84px; height: 84px; }
  .ring .num b { font-size: 34px; }
  .bclock .hint { display: none; }
  .cur .amt { font-size: 44px; }
  .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .hero-play, .join, .lobby { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .rbar { height: 52px; gap: 10px; padding: 0 12px; }
  .rbar .mark { font-size: 22px; }
  .rbar .sep, .rbar .lg span, .rbar .ping { display: none; }
  .rbar .lg { display: none; }
  .rbar .lot { font-size: 12px; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
  .rbar .icon { width: 36px; height: 36px; }
  .rbar .hostbtn { height: 36px; padding: 0 10px; }
  .rgrid { flex: none; display: flex; flex-direction: column; gap: 10px; padding: 10px 12px 0; }
  .rgrid > .rcol { display: contents; }
  .block { display: contents; }
  .pid { order: 1; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
  .binfo { order: 4; display: none; }
  .room[data-tab="player"] .binfo { display: flex; }
  .bidp { order: 2; }
  .rtabs { order: 3; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 3px; padding: 4px; border-radius: 10px; background: #FFFFFF; border: 1px solid var(--line); }
  .rtabs button { height: 34px; border: 0; border-radius: 7px; background: transparent; color: var(--sub); font-weight: 600; font-size: 12.5px; padding: 0; }
  .rtabs button[aria-selected="true"] { background: var(--ink); color: #FFFFFF; font-weight: 700; }
  .liverow { display: contents; }
  .liverow .panel, .feed, .soldp, .nextp, .unsp, .squad, .topb, .teams { order: 4; display: none; }
  .room[data-tab="bids"] .feed, .room[data-tab="set"] .potsp, .room[data-tab="uns"] .unsp, .room[data-tab="squad"] .squad,
  .room[data-tab="teams"] .teams { display: flex; }
  .pbreak { order: 1; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
  .pbreak h1 { font-size: 32px; }
  .liverow .panel ol, .topb ol { max-height: none; }
  .feed li.top .am b { font-size: 30px; }
  .feed li.top .who b { font-size: 16px; }
  .room[data-tab="teams"] .teams { display: grid; }
  .feed { max-height: none; }
  .teams { margin: 0 12px 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: row; overflow-x: visible; }
  .room .tail { order: 5; height: 24px; }
  .pid { gap: 12px; }
  .pav { width: 52px; height: 52px; border-radius: 12px; font-size: 22px; }
  .pid h1 { font-size: 32px; }
  .pid .meta { font-size: 13px; }
  .pid .rt b { font-size: 36px; }
  .pid { flex-wrap: wrap; }
  .pid .rtg b { font-size: 34px; }
  .pid .mine { order: 3; flex-basis: 100%; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pid .mine > div { align-items: flex-start; padding: 6px 10px; }
  .pid .mine b { font-size: 20px; }
  .pid .mine .purse b { font-size: 22px; }
  .amenu { top: 58px; left: 12px; right: 12px; width: auto; }
  .tpop { width: min(320px, calc(100vw - 24px)); }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .tile .v { font-size: 22px; }
  .seasons { padding: 8px 10px; }
  .seasons .sr { grid-template-columns: 38px 40px 24px minmax(0, 1fr) 40px; gap: 6px; }
  .seasons .sr .rw, .seasons .sr .wk { display: none; }
  .bidp { grid-template-columns: minmax(0, 1fr) 92px; gap: 12px; padding: 12px 14px; min-height: 0; }
  .bidp .bacts { grid-column: 1 / -1; }
  .ls-body { gap: 10px 16px; }
  .ls-pts b { font-size: 44px; }
  .ls-stats { flex-basis: 100%; gap: 6px; }
  .ls-stats dt { font-size: 9.5px; letter-spacing: 0; }
  .ls-stats dd { font-size: 21px; }
  .callbtn { height: 36px; padding: 0 10px; font-size: 0; gap: 0; }
  .callbtn svg { width: 18px; height: 18px; }
  .cur .amt { font-size: 48px; }
  .cur .amt small { font-size: 20px; }
  .cur .amt.none { font-size: 30px; }
  .ring, .ring svg { width: 88px; height: 88px; }
  .ring .num b { font-size: 36px; }
  .bclock .hint { display: none; }
  .paddle { height: 68px; }
  .paddle b { font-size: 28px; }
  .toast { left: 10px; right: 10px; top: auto; bottom: calc(100% + 6px); }
}
@media (max-width: 560px) {
  .card { padding: 16px; }
  .seg.teams .opt { font-size: 24px; }
  .quick button { font-size: 13px; }
  .hammer .box { padding: 26px 18px; }
  .ptable .hide-s { display: none; }
  .invite .acts { flex-direction: column; }
  .invite .acts .btn.ghost { flex: 1; }
  .rank-t .hide-s, .rank-t .u { display: none; }
  .rank-t th, .rank-t td { padding-left: 7px; padding-right: 7px; }
  .rank-t .tm { max-width: 128px; }
  .rep-hero { padding: 14px; gap: 12px; }
  .rep-hero .chip.lg { width: 40px; height: 40px; font-size: 15px; }
  .grade.big { min-width: 52px; height: 44px; font-size: 28px; }
  .rep-cta { flex-direction: column; align-items: stretch; }
  .rep-share .btn { flex: 1 1 auto; }
}
@media (max-width: 900px) {
  .rep-lists { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ================= the season (season.js): after the auction, the league plays the IPL week by week */
.season-room { min-height: 100vh; }
.stabs { position: sticky; top: 60px; z-index: 5; display: flex; gap: 4px; padding: 8px 20px; background: var(--bar); border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.stabs::-webkit-scrollbar { display: none; }
.stabs button { position: relative; flex: none; height: 38px; padding: 0 16px; border: 0; border-radius: 9px; background: transparent; color: var(--sub); font-weight: 650; font-size: 14px; }
.stabs button:hover { background: var(--tile); color: var(--ink); }
.stabs button[aria-selected="true"] { background: var(--ink); color: #FFFFFF; font-weight: 750; }
.stabs button.au { color: var(--gold); background: var(--gold-bg); box-shadow: inset 0 0 0 1px #F0D58A; }
.stabs button.au:hover { color: var(--gold); filter: brightness(1.12); }
.stabs button.au[aria-selected="true"] { background: var(--gold-fill); color: var(--gold-ink); box-shadow: none; }
.stabs i.bd, .subtabs i.bd { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; margin-left: 6px; padding: 0 5px; border-radius: 9px; background: var(--red); color: #fff; font-style: normal; font-size: 11px; font-weight: 800; }
.rpage.season { padding-top: 18px; }
.sgrid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.sgrid.live { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
.sgrid .col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.season .card { display: flex; flex-direction: column; gap: 10px; }
.season .card > .note { margin: 0; }
.sgo { cursor: pointer; margin-bottom: 14px; }
.shero { background: linear-gradient(160deg, #FFFFFF 0%, var(--panel) 60%); border-color: var(--line2); }
.shero h2 { font-size: 30px; }
.shero .hero-actions { margin-top: 4px; display: flex; gap: 10px; flex-wrap: wrap; }
.btn.gold.sm2 { height: 46px; font-size: 19px; padding: 0 20px; box-shadow: 0 4px 0 var(--gold-deep); }
.sdl { margin: 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.sdl > div { display: flex; justify-content: space-between; gap: 14px; padding: 10px 12px; background: var(--tile); }
.sdl dt { color: var(--muted); font-size: 13px; }
.sdl dd { margin: 0; text-align: right; font-weight: 600; font-size: 14px; display: flex; flex-direction: column; align-items: flex-end; }
.sdl dd small { font-family: var(--mono); font-size: 11.5px; color: var(--gold); font-weight: 500; }
.smu .mu { display: flex; align-items: center; gap: 12px; }
.smu .mu.one { justify-content: space-between; }
.smu .sd { flex: 1 1 0; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 12px; background: var(--tile); }
.smu .sd.me { background: var(--teal-bg); box-shadow: inset 0 0 0 1px var(--teal-line); }
.smu .sd b { flex: 1; min-width: 0; font-size: 15px; }
.smu .sd .sc { font-family: var(--display); font-weight: 900; font-size: 34px; line-height: 1; }
.smu .v { font-family: var(--display); font-weight: 800; color: var(--dim); font-size: 20px; }
.smu .btn { align-self: flex-start; }
.tblw { overflow-x: auto; margin: 0 -6px; }
.stable { width: 100%; border-collapse: collapse; font-size: 14px; }
.stable th { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 500; padding: 6px; text-align: right; }
.stable td { padding: 8px 6px; border-top: 1px solid var(--line); text-align: right; font-variant-numeric: tabular-nums; }
.stable .l { text-align: left; }
.stable td.b { font-weight: 800; color: var(--gold); }
.stable tr.me td { background: var(--teal-bg); }
.stable .tn { display: flex; align-items: center; gap: 9px; min-width: 0; max-width: 260px; }
.stable .tn > span { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.stable .tn small { color: var(--muted); font-size: 12px; }
.moves { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.moves li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.moves li:first-child { border-top: 0; }
.moves li > span:not(.chip) { flex: 1; min-width: 0; color: var(--sub); }
.moves li b { color: var(--ink); font-weight: 650; }
.moves time { font-family: var(--mono); font-size: 11.5px; color: var(--dim); white-space: nowrap; }
.worder { margin: 0; padding: 0; list-style: none; counter-reset: wo; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 6px; }
.worder li { counter-increment: wo; display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 8px; background: var(--tile); font-size: 13.5px; min-width: 0; }
.worder li::before { content: counter(wo); font-family: var(--mono); font-size: 11.5px; color: var(--dim); width: 16px; }
.worder li.me { background: var(--teal-bg); }
/* live */
.gwnav { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; }
.gwnav > div { display: flex; flex-direction: column; line-height: 1.2; }
.gwnav b { font-family: var(--display); font-weight: 900; font-size: 28px; }
.gwnav .icon, .season .icon { width: 40px; height: 40px; border-radius: 9px; border: 1px solid var(--line2); background: var(--panel2); color: var(--ink); font-size: 22px; line-height: 1; display: inline-flex; align-items: center; justify-content: center; }
.season .icon.sm { width: 32px; height: 32px; font-size: 16px; }
.season .icon:disabled { opacity: .35; }
.mups { display: flex; flex-direction: column; gap: 8px; }
.mup { border-radius: 12px; background: var(--tile); overflow: hidden; }
.mup.me { box-shadow: inset 0 0 0 1px var(--teal-line); background: var(--teal-bg); }
.mrow { width: 100%; display: flex; align-items: center; gap: 10px; padding: 11px 12px; border: 0; background: transparent; text-align: left; }
.mrow:disabled { cursor: default; }
.mrow .ms { flex: 1 1 0; min-width: 0; display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; }
.mrow .ms.r { flex-direction: row-reverse; text-align: right; }
.mrow .ms b { font-family: var(--display); font-weight: 900; font-size: 24px; margin-left: auto; }
.mrow .ms.r b { margin-left: 0; margin-right: auto; }
.mrow .v { color: var(--dim); font-weight: 700; }
.mrow .rk { font-family: var(--mono); color: var(--dim); width: 20px; }
.xis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 10px 12px; }
.xi { background: var(--well); border-radius: 10px; padding: 10px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.xi .xh { display: flex; align-items: center; gap: 8px; }
.xi .xh b { flex: 1; min-width: 0; font-size: 13.5px; }
.xi .tot { font-family: var(--display); font-weight: 900; font-size: 22px; color: var(--gold); }
.xi ul, .fpl, .plist, .sql, .claims, .drops, .tcol, .trades { list-style: none; margin: 0; padding: 0; }
.xi li, .fpl li { display: flex; align-items: center; gap: 8px; padding: 5px 0; border-top: 1px solid var(--line); font-size: 13px; }
.xi li.bn { opacity: .8; }
.xi li.out { opacity: .5; text-decoration: line-through; }
.xi li.in { background: rgba(95, 211, 154, .07); }
.rl { flex: none; width: 38px; font-family: var(--mono); font-size: 10.5px; color: var(--dim); }
.pn { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.pn b { font-weight: 600; }
.pn small { color: var(--muted); font-size: 11.5px; display: flex; align-items: center; gap: 4px; }
.pp { font-family: var(--display); font-weight: 800; font-size: 18px; min-width: 32px; text-align: right; font-variant-numeric: tabular-nums; }
.pp.dim { color: var(--dim); }
i.cap { display: inline-flex; align-items: center; justify-content: center; width: 17px; height: 17px; border-radius: 50%; background: var(--gold-fill); color: var(--gold-ink); font-style: normal; font-size: 10px; font-weight: 900; vertical-align: 1px; }
i.cap.v { background: var(--sub); color: #FFFFFF; }
i.sub { font-style: normal; font-family: var(--mono); font-size: 10px; color: var(--green); }
.xi .eyebrow { font-size: 10.5px; margin-top: 4px; }
.fday { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.fx { border-radius: 10px; background: var(--tile); }
.fx.on { box-shadow: inset 0 0 0 1px var(--red-line); }
.frow { width: 100%; display: flex; align-items: center; gap: 8px; padding: 10px 12px; border: 0; background: transparent; text-align: left; font-size: 14px; }
.frow .ipl { font-size: 14px; }
.frow .vs { color: var(--dim); font-size: 12px; }
.frow .grow { flex: 1; }
.frow .st { font-family: var(--mono); font-size: 12px; color: var(--sub); white-space: nowrap; }
.fx.on .st { color: var(--red-ink); }
.frow .yrs { font-size: 11.5px; padding: 2px 7px; border-radius: 6px; background: var(--teal-bg); color: var(--teal-label); white-space: nowrap; }
.fpl { padding: 0 12px 10px; }
.fpl li.me { background: var(--teal-bg); }
/* team */
.thead { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 6px; }
.thead h2 { font-size: 30px; margin: 2px 0; }
.tacts { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.shape { font-family: var(--mono); font-size: 12px; color: var(--sub); padding: 6px 10px; border-radius: 8px; background: var(--tile); }
.thint { margin: 4px 0 10px; }
.pacts { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 12px; }
.pitch { display: flex; flex-direction: column; gap: 14px; padding: 16px; border-radius: 16px; background: radial-gradient(ellipse at 50% 0%, #E3F3EA 0%, #F1F8F4 55%, #F4FBFA 100%); border: 1px solid var(--teal-line); }
.prow { display: flex; flex-direction: column; gap: 8px; }
.prow .eyebrow { color: var(--teal-label); font-size: 11px; }
.pcs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.pcs .pc { width: 172px; }
.bench .pcs { justify-content: flex-start; }
.pc { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-width: 0; padding: 10px 11px; border-radius: 11px; border: 1px solid var(--teal-ring); background: rgba(12, 22, 21, .85); color: var(--ink); text-align: left; }
.pc:hover { border-color: #7CCBBE; }
.pc.sel { border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold); background: #FFF8E3; }
.pc b { font-size: 14px; font-weight: 700; max-width: 100%; padding-right: 20px; }
.pc .m { display: flex; align-items: center; gap: 6px; font-size: 12px; }
.pc .fx2 { font-family: var(--mono); font-size: 11px; color: var(--sub); }
.pc .fx2 em { color: var(--red-ink); font-style: normal; }
.pc .ps { font-size: 11.5px; color: var(--muted); }
.pc i.cap { position: absolute; top: 9px; right: 9px; }
.pc i.bo { position: absolute; top: 9px; right: 9px; font-style: normal; font-family: var(--mono); font-size: 11px; color: var(--dim); }
.bench { margin-top: 12px; padding: 14px 16px; border-radius: 14px; background: var(--panel); border: 1px dashed var(--line2); display: flex; flex-direction: column; gap: 8px; }
.pc.bn { border-color: var(--line2); background: var(--tile); }
img.flag.sm { width: 16px; height: 11px; border-radius: 2px; }
.sql li { display: flex; align-items: center; gap: 8px; padding: 7px 0; border-top: 1px solid var(--line); font-size: 14px; }
.sql li .ell { flex: 1; min-width: 0; }
/* transfers */
.mvst { flex-direction: row !important; flex-wrap: wrap; align-items: baseline; gap: 6px 10px !important; padding: 14px 18px; margin-bottom: 12px; }
.mvst b { font-size: 15px; }
.mvst span { color: var(--sub); font-size: 14px; }
.mvst.open { background: var(--green-bg); border-color: var(--green-line); }
.mvst.open b { color: var(--green-ink); }
.subtabs { display: inline-flex; gap: 3px; padding: 4px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); margin-bottom: 12px; }
.subtabs button { height: 34px; padding: 0 14px; border: 0; border-radius: 7px; background: transparent; color: var(--sub); font-weight: 600; font-size: 13.5px; }
.subtabs button[aria-selected="true"] { background: var(--tile); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line2); }
.subtabs i { font-style: normal; }
.pfilter { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.pfilter input[type=search], .pfilter select { height: 40px; padding: 0 12px; border-radius: 9px; border: 1px solid var(--edge); background: var(--well); color: var(--ink); font-size: 14.5px; }
.pfilter input[type=search] { flex: 1 1 200px; min-width: 0; }
.pfilter .roles { display: flex; gap: 3px; }
.pfilter .roles button { height: 40px; padding: 0 11px; border-radius: 9px; border: 1px solid var(--line2); background: var(--panel2); color: var(--sub); font-family: var(--mono); font-size: 12px; }
.pfilter .roles button[aria-pressed="true"] { background: var(--ink); color: #FFFFFF; border-color: var(--ink); }
.pfilter .own { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--sub); }
.plist li { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; background: var(--panel); margin-bottom: 5px; }
.plist .nums { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.15; min-width: 72px; }
.plist .nums b { font-family: var(--display); font-weight: 800; font-size: 20px; }
.plist .nums small { font-size: 11px; color: var(--muted); white-space: nowrap; }
.tag { font-size: 11px; font-weight: 650; padding: 3px 8px; border-radius: 6px; background: var(--tile); color: var(--sub); white-space: nowrap; }
.tag.f { background: var(--green-bg); color: var(--green-ink); }
.tag.w { background: var(--gold-bg); color: var(--gold); }
.plist .btn.sm { min-width: 82px; }
.claims li { display: flex; align-items: center; gap: 8px; padding: 9px 0; border-top: 1px solid var(--line); }
.claims .n { font-family: var(--display); font-weight: 800; font-size: 20px; width: 24px; color: var(--gold); }
.claims .pn small { color: var(--red-ink); }
.trades { display: flex; flex-direction: column; gap: 8px; }
.trade { padding: 12px; border-radius: 10px; background: var(--tile); display: flex; flex-direction: column; gap: 6px; }
.trade .tr { display: flex; gap: 10px; font-size: 13.5px; }
.trade .tr > span:first-child { flex: none; width: 46%; display: flex; align-items: center; gap: 7px; color: var(--sub); }
.trade .tr > span:last-child { flex: 1; min-width: 0; font-weight: 600; }
.tpick { display: flex; flex-wrap: wrap; gap: 8px; }
.tpick .btn { gap: 8px; }
.tcols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tcol li button { width: 100%; display: flex; align-items: center; gap: 8px; padding: 7px 9px; margin-bottom: 4px; border-radius: 8px; border: 1px solid var(--line); background: var(--tile); text-align: left; font-size: 13.5px; }
.tcol li button .ell { flex: 1; min-width: 0; }
.tcol li button[aria-pressed="true"] { border-color: var(--gold); background: #FFF8E3; }
.hset { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
/* the who-goes sheet */
.sshade { position: fixed; inset: 0; z-index: 30; background: rgba(16, 24, 40, .45); }
.sdrop { position: fixed; z-index: 31; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(520px, calc(100vw - 24px)); max-height: calc(100vh - 40px); overflow: auto; padding: 18px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line2); display: flex; flex-direction: column; gap: 10px; box-shadow: 0 24px 60px rgba(16, 24, 40, .18); }
.sdrop h3 { margin: 0; font-family: var(--display); font-weight: 900; font-size: 26px; }
.sdrop .note { margin: 0; }
.drops li button { width: 100%; display: flex; align-items: center; gap: 8px; padding: 9px 10px; margin-bottom: 4px; border-radius: 9px; border: 1px solid var(--line); background: var(--tile); text-align: left; font-size: 14px; }
.drops li button .ell { flex: 1; min-width: 0; }
.drops li button:disabled { opacity: .45; }
.drops li button small { font-size: 11px; color: var(--red-ink); }
@media (max-width: 900px) {
  .stabs { top: 60px; padding: 6px 10px; }
  .stabs button { padding: 0 12px; font-size: 13.5px; }
  .rpage.season { padding: 14px 12px 48px; }
  .sgrid, .sgrid.live { grid-template-columns: 1fr; }
  .xis { grid-template-columns: 1fr; }
  .pcs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pcs .pc { width: auto; }
  .smu .mu { gap: 8px; }
  .smu .sd { flex-direction: column; align-items: flex-start; gap: 6px; padding: 10px; }
  .smu .sd b { font-size: 13.5px; max-width: 100%; }
  .smu .sd .sc { font-size: 30px; }
  .tcols { grid-template-columns: 1fr; }
  .shero h2, .thead h2 { font-size: 25px; }
  .plist li { flex-wrap: wrap; }
  .trade .tr { flex-direction: column; gap: 2px; }
  .trade .tr > span:first-child { width: auto; }
  .plist .pn { flex-basis: calc(100% - 140px); }
}
/* accounts: signed in or not (set before the page draws, from the a200in cookie) */
html.in .only-out, html.out .only-in { display: none !important; }
.devin { display: flex; gap: 8px; }
.devin input { flex: 1; min-width: 0; height: 38px; padding: 0 12px; border-radius: 9px; border: 1px solid var(--edge); background: var(--well); color: var(--ink); }
/* the sign-in page */
body[data-page="signin"] { overflow-x: hidden; }
body[data-page="signin"] .pfoot { margin-top: 0; }
.authpage { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); margin: -28px calc(50% - 50vw) -56px; min-height: calc(100vh - 108px); }
.authcard { display: flex; justify-content: center; align-items: flex-start; padding: 56px 24px 48px; background: #fff; }
.authin { width: 100%; max-width: 440px; display: flex; flex-direction: column; gap: 16px; }
.atabs { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 12px; background: var(--brand); }
.atabs button { height: 38px; border: 0; border-radius: 9px; background: none; color: rgba(255, 255, 255, .82); font-weight: 700; font-size: 14px; cursor: pointer; }
.atabs button[aria-selected="true"] { background: #fff; color: var(--brand); }
.authcard h1 { margin: 10px 0 0; font-family: var(--display); font-weight: 900; font-size: 52px; line-height: 1; }
.authcard .lede { margin: 0; color: var(--sub); }
.authcard .gwrap { min-height: 44px; display: flex; justify-content: center; }
.authcard .or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; }
.authcard .or::before, .authcard .or::after { content: ""; flex: 1; height: 1px; background: var(--line2); }
.emailin { display: flex; flex-direction: column; gap: 10px; }
.emailin .field, .acard .field { flex: none; }
.emailin .field { color: var(--ink); font-weight: 700; }
.btn.pillb { height: 48px; border-radius: 999px; border: 0; background: var(--brand); color: #fff; font-size: 16px; font-weight: 800; }
.btn.pillb:hover { color: #fff; background: var(--brand2); }
.btn.pillb:disabled { opacity: .6; }
.authcard .fine { margin-top: 18px; text-align: center; }
.authside { padding: 64px 48px; color: #fff; background: radial-gradient(120% 90% at 100% 0%, var(--brand2) 0%, var(--brand) 62%); display: flex; flex-direction: column; gap: 22px; }
.authside .kits { display: flex; gap: 12px; flex-wrap: wrap; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .25)); }
.authside h2 { margin: 0; font-family: var(--display); font-weight: 900; font-size: 44px; line-height: 1.02; max-width: 12ch; }
.authside ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 16px; max-width: 420px; }
.authside li { display: flex; flex-direction: column; gap: 2px; padding-left: 14px; border-left: 3px solid var(--gold-fill); }
.authside li b { font-size: 16px; }
.authside li span { color: rgba(255, 255, 255, .78); font-size: 14.5px; }
.authside .free { margin: auto 0 0; font-size: 13.5px; color: rgba(255, 255, 255, .7); }
/* the account page */
.acard { display: flex; flex-direction: column; gap: 12px; margin-bottom: 14px; max-width: 980px; }
.acard .field { max-width: 420px; }
.acsave { margin: 4px 0 22px; }
/* the play landing (signed out) and my leagues (signed in) */
.hero-play.out { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.hero-play.out h1 { font-size: 54px; line-height: 1; margin: 6px 0 14px; }
.promo { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pcard { border-radius: 16px; padding: 14px 16px; background: var(--panel); border: 1px solid var(--line2); display: flex; flex-direction: column; gap: 6px; }
.pcard.lot b { font-family: var(--display); font-weight: 900; font-size: 26px; }
.pcard.lot .price { font-family: var(--display); font-weight: 900; font-size: 38px; color: var(--gold); line-height: 1; }
.pcard.lot .who { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--sub); }
.pcard.ground { grid-row: span 2; background: radial-gradient(ellipse at 50% 30%, #2E7D46 0%, #1F5E34 60%, #174A29 100%); border-color: #2D6A4C; }
.mini-ground { display: flex; flex-direction: column; gap: 6px; align-items: center; justify-content: center; flex: 1; padding: 6px 0; }
.mini-ground > div { display: flex; gap: 6px; justify-content: center; }
.pcard.table ol { margin: 0; padding: 0 0 0 18px; display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.pcard.table li b { font-weight: 650; }
.pcard.table li i { float: right; font-style: normal; color: var(--gold); font-weight: 800; }
.cards3 { list-style: none; margin: 0 0 30px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.cards3 li { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; }
.cards3 b { font-family: var(--display); font-weight: 800; font-size: 24px; }
.cards3 span { color: var(--sub); font-size: 14px; }
.dash { display: flex; flex-direction: column; gap: 16px; margin-bottom: 30px; }
.dash-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.dash-head h1 { margin: 4px 0 0; }
.dash-kit { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--sub); font-size: 12px; text-decoration: none; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--line2); background: var(--panel); }
.dash-kit:hover { border-color: var(--gold-deep); color: var(--ink); }
/* the kit designer (kit.js): the kit on the left, front or back; the choices on the right */
.kd { display: grid; grid-template-columns: 252px minmax(0, 1fr); gap: 26px; align-items: start; }
.kd-view { position: sticky; top: 80px; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 20px 12px 14px; border-radius: 18px; background: radial-gradient(ellipse at 50% 32%, #FFFFFF 0%, #EEF0F3 100%); border: 1px solid var(--line2); }
.kd-fig { line-height: 0; }
.kd-fig .kitf { filter: drop-shadow(0 10px 14px rgba(16, 24, 40, .16)); }
.kd.trying .kd-view { box-shadow: 0 0 0 2px var(--brand) inset; }
.kd-ctl { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.kd-row { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.kd-l { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.kd-ptag { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px 2px 7px; border-radius: 999px; background: var(--brand-tint); color: var(--brand); font-style: normal; font-family: inherit; letter-spacing: .02em; text-transform: none; font-size: 11.5px; font-weight: 700; }
.kd-pat { display: grid; grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); gap: 6px; }
.kd-pat button, .kd-tp button { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 2px 5px; border-radius: 11px; border: 1px solid var(--line2); background: var(--tile); color: var(--sub); font-size: 11.5px; }
.kd-pat button:hover, .kd-tp button:hover { border-color: #C7CDD6; }
.kd-pat button[aria-pressed="true"], .kd-tp button[aria-pressed="true"] { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); color: var(--ink); background: var(--brand-tint); }
.kd-pat.prem button { background: linear-gradient(180deg, #FFFFFF 40%, #F4EEF0); }
.kd-pat.prem button[aria-pressed="true"] { background: var(--brand-tint); }
.kd-lk { position: absolute; top: 5px; right: 5px; width: 18px; height: 18px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--brand); color: #fff; }
.kd-lockmsg { display: flex; align-items: center; justify-content: space-between; gap: 10px 14px; flex-wrap: wrap; padding: 10px 12px; border-radius: 12px; background: var(--brand-tint); border: 1px solid #EBCBD3; }
.kd-lockmsg[hidden] { display: none; }
.kd-lockmsg p { margin: 0; display: flex; gap: 8px; align-items: center; font-size: 13.5px; color: var(--brand); }
.kd-lockmsg p svg { flex: none; }
.kd-mini-btn { height: 32px; padding: 0 12px; border-radius: 9px; border: 1px solid var(--brand); background: #fff; color: var(--brand); font-weight: 700; font-size: 13px; }
.kd-two { display: flex; gap: 12px 28px; flex-wrap: wrap; }
.kd-tp { display: flex; gap: 6px; flex-wrap: wrap; }
.kd-tp button { width: 86px; padding-top: 8px; }
.kd-parts { display: flex; flex-wrap: wrap; gap: 6px; }
.kd-parts button { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px 0 7px; border-radius: 999px; border: 1px solid var(--line2); background: var(--tile); color: var(--sub); font-weight: 600; font-size: 13px; }
.kd-parts button[aria-selected="true"] { border-color: var(--ink); color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.kd-dot { width: 20px; height: 20px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(16, 24, 40, .2); flex: none; }
.kd-scale { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 18px; row-gap: 14px; align-items: center; max-width: 560px; margin-top: 4px; }
.kd-bar { grid-column: 1; position: relative; height: 16px; border-radius: 999px; cursor: pointer; touch-action: none; box-shadow: inset 0 0 0 1px rgba(16, 24, 40, .14); }
.kd-bar.hue { background: linear-gradient(90deg, #F00 0%, #FF0 16.67%, #0F0 33.33%, #0FF 50%, #00F 66.67%, #F0F 83.33%, #F00 100%); }
.kd-bar i { position: absolute; top: 50%; width: 24px; height: 24px; margin: -12px 0 0 -12px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 1px 4px rgba(16, 24, 40, .35), 0 0 0 1px rgba(16, 24, 40, .25); pointer-events: none; }
.kd-bar:focus-visible { outline: 2px solid var(--brand); outline-offset: 4px; }
.kd-hex { grid-column: 2; grid-row: 1 / span 3; display: flex; flex-direction: column; align-items: center; gap: 8px; cursor: text; }
.kd-hex .kd-dot { width: 54px; height: 54px; border-radius: 14px; }
.kd-hex input { width: 88px; height: 32px; text-align: center; border-radius: 8px; border: 1px solid var(--line2); background: var(--tile); color: var(--ink); font-family: var(--mono); font-size: 13px; text-transform: uppercase; }
.kd-seg { display: inline-flex; gap: 3px; padding: 3px; border-radius: 10px; background: var(--panel2); border: 1px solid var(--line2); align-self: flex-start; }
.kd-seg button { height: 32px; padding: 0 14px; border: 0; border-radius: 7px; background: transparent; color: var(--sub); font-weight: 600; font-size: 13px; }
.kd-seg button[aria-pressed="true"] { background: var(--ink); color: #FFFFFF; }
.kd-turn { align-self: center; }
.kd-mfig { display: none; }
.kd-ctl > .btn { align-self: flex-start; }
@media (max-width: 900px) {
  .authpage { grid-template-columns: minmax(0, 1fr); margin: -28px -16px -56px; min-height: 0; }
  .authcard { padding: 28px 18px 32px; }
  .authcard h1 { font-size: 42px; }
  .authside { padding: 28px 20px 36px; }
  .authside h2 { font-size: 32px; }
  .hero-play.out { grid-template-columns: 1fr; }
  .hero-play.out h1 { font-size: 40px; }
  .cards3 { grid-template-columns: 1fr; }
  .kd { grid-template-columns: 1fr; }
  .kd-view { position: static; }
  .kd-fig .kitf { width: 168px; height: auto; }
  .kd-pat { grid-template-columns: repeat(auto-fill, minmax(60px, 1fr)); }
  .kd-hex .kd-dot { display: none; }
  .kd-tp button { width: calc(25% - 5px); }
  .kd-mfig { display: block; line-height: 0; }
}
/* the Team tab's ground (season.js): the XI in its kit, rows from the keeper behind the stumps to the bowlers */
.ground { position: relative; width: 100%; max-width: 1000px; margin: 0 auto; aspect-ratio: 1000 / 760; border-radius: 22px; overflow: hidden; border: 1px solid #2D6A4C; background: #1E5E33; }
.ground .field { position: absolute; inset: 0; width: 100%; height: 100%; }
.grows { position: absolute; inset: 3% 4% 2%; display: flex; flex-direction: column; justify-content: space-around; }
.grow { display: flex; justify-content: center; align-items: flex-start; gap: clamp(4px, 1.6vw, 22px); }
.gp { position: relative; display: flex; flex-direction: column; align-items: center; gap: 0; flex: 0 1 112px; min-width: 0; padding: 0; border: 0; background: transparent; color: var(--ink); }
.gp .kit { width: 64px; height: 64px; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .35)); transition: transform .12s; }
.gbench .gp .kit { width: 54px; height: 54px; }
.gp:hover .kit { transform: translateY(-2px); }
.gp.sel .kit { filter: drop-shadow(0 0 0 #000) drop-shadow(0 0 6px var(--gold-fill)) drop-shadow(0 0 2px var(--gold-fill)); transform: translateY(-3px); }
.gp .gb { position: absolute; top: 0; left: 50%; margin-left: -40px; display: flex; flex-direction: column; gap: 2px; z-index: 1; }
.gp .gb i.bo { font-style: normal; font-family: var(--mono); font-size: 11px; width: 18px; height: 18px; border-radius: 50%; background: rgba(16, 24, 40, .18); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.gp .gn { max-width: 100%; margin-top: 2px; padding: 2px 6px; border-radius: 5px 5px 0 0; background: #F4F6F2; color: #10151B; font-weight: 750; font-size: 12px; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gp .gf { max-width: 100%; padding: 2px 6px; border-radius: 0 0 5px 5px; background: rgba(9, 22, 16, .86); color: #DCE7E0; font-family: var(--mono); font-size: 10.5px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gp .gf .ipl { font-size: 10.5px; }
.gp .gf em { color: var(--red-ink); font-style: normal; }
.gp.sel .gn { background: var(--gold-fill); }
.gbench { max-width: 1000px; margin: 12px auto 0; padding: 12px 14px 14px; border-radius: 18px; background: linear-gradient(180deg, #17402A, #123321); border: 1px solid #2D6A4C; display: flex; flex-direction: column; gap: 8px; }
.gbench .eyebrow { color: #A6CDB5; text-align: center; }
.kitbtn { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 12px 0 6px; border-radius: 9px; border: 1px solid var(--line2); background: var(--panel2); color: var(--ink); font-weight: 650; font-size: 13.5px; }
.kd-seg.tv { align-self: center; }
.shape-line { margin: 10px 0 0; }
.skit { width: min(940px, calc(100vw - 24px)); }
.skit .kd { grid-template-columns: 252px minmax(0, 1fr); }
.kd-back { display: flex; gap: 10px; flex-wrap: wrap; }
.kd-back label { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; font-weight: 600; color: var(--sub); }
.kd-back input { height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line2); background: var(--tile); color: var(--ink); font: inherit; font-size: 15px; font-weight: 700; }
.kd-back input[data-kf=name] { width: 190px; text-transform: uppercase; letter-spacing: .04em; }
.kd-back input[data-kf=num] { width: 96px; }
@media (max-width: 900px) {
  .ground { aspect-ratio: 1000 / 980; border-radius: 16px; }
  .grows { inset: 2% 1% 1%; }
  .gp { flex-basis: 72px; }
  .gp .kit, .gbench .gp .kit { width: 46px; height: 46px; }
  .gp .gn { font-size: 11px; padding: 1px 4px; }
  .gp .gf { font-size: 9.5px; padding: 1px 4px; }
  .gp .gb { margin-left: -33px; }
  .grow { gap: 2px; }
  .skit .kd { grid-template-columns: 1fr; }
}
/* Google's button is an iframe with a light page: matching its colour scheme keeps its corners transparent on dark pages */
#g-btn, #g-btn iframe { color-scheme: light; }

/* ---- top buys: the top 5, under the squad; on a phone, in the Teams tab */
.tb-left { margin-top: 0; }
@media (min-width: 901px) {
  .rcol > .squad { flex: 0 1 auto; }
  .tb-left { flex: 1 1 0; min-height: 0; max-height: none; }
  .tb-left.none { display: none; }
}
.topb ol { position: relative; flex: 1 1 auto; overflow: hidden; }
.topb li[hidden] { display: none; }
.topb li.mine { background: rgba(242, 201, 76, .08); border-radius: 6px; }
.topb li .t img { margin-right: 5px; vertical-align: -1px; }
/* a sold player in the pot: the buyer's colours (set inline), the name back at full strength */
.nextp li.sold { border-radius: 7px; border-bottom-color: transparent; margin-bottom: 1px; }
.nextp li.sold .t { color: var(--ink); font-weight: 600; }
.nextp li.sold .res { color: var(--ink); }
@media (max-width: 900px) {
  .tb-left { order: 4; display: none; }
  .room[data-tab="teams"] .tb-left { display: flex; }
}
/* the rest of the auction among computer managers */
.fastbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; background: rgba(242, 201, 76, .10);
  border: 1px solid rgba(242, 201, 76, .45); border-radius: 12px; padding: 10px 14px; font-size: 14px; }
.fastbar b { color: var(--ink); }
@media (max-width: 900px) { .fastbar { order: 2; } }
.fastbar .btn.gold { height: 38px; font-size: 16px; padding: 0 16px; border-radius: 10px; box-shadow: 0 3px 0 var(--gold-deep); }
.pfoot { border-top: 1px solid var(--line); margin-top: 40px; padding: 20px 16px 32px; color: var(--muted); font-size: 13px; }
.pfoot > div { max-width: 1180px; margin: 0 auto; display: flex; gap: 8px 20px; flex-wrap: wrap; justify-content: space-between; }
.pfoot nav { display: flex; gap: 16px; }
.pfoot a { color: var(--muted); }

/* ---- season: names that open the player card, your season, awards, the player card, help */
.plink { background: none; border: 0; padding: 0; margin: 0; color: inherit; font: inherit; text-align: left; cursor: pointer; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plink:hover { text-decoration: underline; text-underline-offset: 3px; }
.gwh { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.gwh li { display: grid; grid-template-columns: 44px minmax(60px, 1fr) 44px minmax(0, 210px); align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px; background: var(--tile); font-size: 13.5px; }
.gwh .rs { display: flex; align-items: center; min-width: 0; }
.gwh li.on { box-shadow: inset 0 0 0 1px var(--red-line); }
.gwh .gw { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.gwh .bar { height: 8px; border-radius: 4px; background: var(--well); overflow: hidden; }
.gwh .bar i { display: block; height: 100%; border-radius: 4px; background: var(--gold-fill); }
.gwh b { font-family: var(--display); font-weight: 800; font-size: 20px; text-align: right; }
.gwh .res { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; margin-right: 6px; border-radius: 6px; font-weight: 800; font-size: 12px; background: var(--line2); color: var(--sub); }
.gwh .res.r-W { background: var(--green-bg); color: var(--green-ink); }
.gwh .res.r-L { background: var(--red-bg); color: var(--red-ink); }
.gwh .vs { color: var(--muted); font-size: 12.5px; min-width: 0; }
.awards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.awards li { display: flex; flex-direction: column; gap: 6px; padding: 12px; border-radius: 10px; background: var(--tile); min-width: 0; }
.awards .eyebrow { font-size: 10.5px; }
.awards .who { display: flex; align-items: center; gap: 8px; min-width: 0; font-weight: 650; font-size: 14px; flex-wrap: wrap; }
.awards .who small { flex-basis: 100%; color: var(--muted); font-weight: 400; font-size: 12px; }
.awards b { font-family: var(--display); font-weight: 900; font-size: 30px; line-height: 1; color: var(--gold); }
.pcard { gap: 14px; }
.pc-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.pc-h .m { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 4px; color: var(--muted); font-size: 13px; }
.pc-own { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; }
.pc-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.pc-tiles div { padding: 10px; border-radius: 10px; background: var(--tile); display: flex; flex-direction: column; gap: 4px; }
.pc-tiles b { font-family: var(--display); font-weight: 900; font-size: 26px; line-height: 1; }
.pc-tiles span { font-size: 11.5px; color: var(--muted); line-height: 1.25; }
.pc-gw ol { list-style: none; margin: 6px 0 0; padding: 0; display: flex; gap: 6px; flex-wrap: wrap; }
.pc-gw li { display: flex; flex-direction: column; align-items: center; min-width: 46px; padding: 6px 4px; border-radius: 8px; background: var(--tile); }
.pc-gw li span { font-family: var(--mono); font-size: 10.5px; color: var(--muted); }
.pc-gw li b { font-family: var(--display); font-weight: 800; font-size: 19px; }
.pc-gw li b.dim { color: var(--dim); }
.pc-ipl ul { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.pc-ipl li { display: grid; grid-template-columns: 1fr 52px 56px; gap: 8px; padding: 7px 10px; border-radius: 8px; background: var(--tile); font-size: 13.5px; }
.pc-ipl li span:nth-child(2) { color: var(--muted); text-align: right; }
.pc-ipl li b { text-align: right; font-family: var(--display); font-weight: 800; font-size: 18px; }
.helpw { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.faqs { display: flex; flex-direction: column; gap: 6px; }
.faq { border-radius: 10px; background: var(--tile); }
.faq summary { cursor: pointer; list-style: none; padding: 12px 40px 12px 14px; font-weight: 650; font-size: 15px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 14px; top: 9px; font-size: 20px; color: var(--muted); }
.faq[open] summary::after { content: "−"; }
.faq > div { padding: 0 14px 14px; color: var(--sub); font-size: 14px; line-height: 1.55; }
.faq a { color: var(--blue); }
.practice { margin: 18px 0 6px; display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.practice p { margin: 4px 0 0; color: var(--sub); max-width: 640px; }
@media (max-width: 900px) {
  .helpw { grid-template-columns: 1fr; }
  .pc-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .awards { grid-template-columns: 1fr 1fr; }
  .gwh li { grid-template-columns: 40px minmax(40px, 1fr) 40px; }
  .gwh .rs { grid-column: 2 / -1; }
}

/* the season's Home: the auction, in a card; head to head: stage tables, knockouts, the format */
.sauc { border-color: #F0D58A; background: linear-gradient(160deg, var(--gold-bg) 0%, var(--panel) 70%); }
.sauc-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sauc-h .eyebrow { color: var(--gold); }
.sauc-l { margin: 0; font-size: 15px; line-height: 1.5; }
.btn.au { align-self: flex-start; border-color: #F0D58A; color: var(--gold); background: transparent; }
.btn.au:hover { background: var(--gold-bg); color: var(--gold); }
.stbl h2 small, .season .card h2 small { margin-left: 8px; font-family: var(--mono); font-size: 12px; font-weight: 500; color: var(--muted); letter-spacing: .02em; }
.stable tr.cut td { border-bottom: 2px solid var(--gold-deep); }
.stw { margin: 0 0 -4px; }
.sfold { padding: 0; }
.sfold > summary { cursor: pointer; padding: 14px 16px; font-weight: 700; color: var(--sub); list-style-position: inside; }
.sfold[open] > summary { border-bottom: 1px solid var(--line); }
.sfold > .card.sub { border: 0; border-radius: 0; background: transparent; }
.skos .kow { display: flex; flex-direction: column; gap: 6px; }
.skos .kow + .kow { margin-top: 6px; }
.ko { display: grid; grid-template-columns: 1fr; gap: 4px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--tile); }
.ko.me { border-color: var(--gold-deep); }
.ko .kn { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--gold); }
.ko .ks { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 14px; }
.ko .ks .ell { flex: 1; min-width: 0; }
.ko .ks small, .ms small { display: block; font-size: 11.5px; color: var(--muted); }
.ko .ks b { font-family: var(--mono); }
.ko .ks.won { font-weight: 750; }
.ko .ks.won b { color: var(--green); }
.mst { margin: 8px 0 2px; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-family: var(--mono); font-weight: 500; }
.mup .mname { display: block; padding: 6px 12px 0; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--gold); }
.worder.fin li:first-child { background: var(--gold-bg); color: var(--gold); font-weight: 700; }
.worder.fin .ell small { display: block; font-size: 11.5px; font-weight: 500; color: var(--muted); }
ol.fmt { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
ol.fmt li { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--tile); font-size: 14.5px; line-height: 1.45; }

/* laptop screens (a 1080p laptop at 125-150% scaling leaves 650 to 900 px): the bidding comes first. The player card
   shrinks to a strip (his season's numbers on one line, a short graph), the whole squad stays in view, and the live
   bids and the pot get the room that frees. A big monitor keeps the full card. */
@media (min-width: 901px) and (max-height: 900px) {
  .block { padding: 8px 14px; gap: 6px; }
  .binfo { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 8px; }
  .lastseason { padding: 6px 12px 8px; gap: 2px; justify-content: center; }
  .lastseason .ls-body { flex-direction: row; align-items: baseline; gap: 10px; }
  .ls-stats { display: none; }
  .ls-line { display: block; }
  .ls-pts { flex-direction: row; align-items: baseline; gap: 6px; min-width: 0; }
  .ls-pts b { font-size: 34px; }
  .graph { padding: 5px 10px 4px; }
  .graph .legend { display: none; }
  .graph .eyebrow { font-size: 10px; }
  .sgraph { --ph: 44px; gap: 2px; }
  .sgv { font-size: 14px; min-width: 36px; padding: 1px 5px; }
  .sgf b { font-size: 11px; }
  .sgf small { font-size: 10px; }
  .bidp { grid-template-columns: minmax(196px, 250px) auto minmax(0, 1fr); padding: 10px 14px; gap: 14px; }
  .bclock .hint { max-width: 118px; font-size: 11.5px; }
  .quick { flex-basis: 250px; }
  .bacts { gap: 8px; }
  .paddle { height: 54px; }
  .paddle b { font-size: 26px; }
  .quick button { height: 36px; }
  .autorow .open { height: 36px; }
  .simrow { padding-top: 6px; }
  .simrow button { height: 28px; font-size: 12.5px; }
  .squad .head { padding: 8px 12px 7px; }
  .squad .who b { font-size: 18px; }
  .slots { padding: 4px 10px 8px; gap: 4px; }
  .slotgrp { gap: 2px; }
  .slot { height: 22px; }
  .slot .nm { font-size: 12px; }
  .slot .pr { font-size: 11.5px; }
}
/* the shortest windows (a 1366×768 laptop leaves about 650 px): the season's points and numbers share one line, and
   the graph is just the five tallies with their years */
@media (min-width: 901px) and (max-height: 720px) {
  .block { padding: 6px 12px; gap: 5px; }
  .pav { width: 40px; height: 40px; font-size: 17px; }
  .lastseason { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: baseline; column-gap: 12px; padding: 5px 10px 6px; }
  .lastseason .ls-head { grid-column: 1 / -1; }
  .ls-pts b { font-size: 26px; }
  .ls-pts small { font-size: 10px; }
  .ls-line { font-size: 12.5px; }
  .ls-line b { font-size: 15px; }
  .graph { padding: 4px 10px 3px; }
  .sgraph { --ph: 30px; }
  .sgv { font-size: 13px; }
  .sgf small { display: none; }
  .paddle { height: 48px; }
  .paddle b { font-size: 23px; }
  .quick button, .autorow .open { height: 34px; }
  .cur .amt { font-size: 36px; }
  .teams { margin: 6px 20px 8px; }
}
/* short screens: shorter labels on the action buttons and a smaller paddle, so the actions stay on one line */
@media (min-width: 901px) and (max-height: 900px) {
  .autorow .open { padding: 0 11px; font-size: 13px; }
  .autorow .open .x { display: none; }
  .quick { flex-basis: 236px; }
  .pdl { width: 36px; height: 50px; }
  .pdl i { width: 36px; height: 36px; font-size: 11px; border-width: 2.5px; }
  .pdl::after { left: 15px; top: 33px; width: 6px; height: 17px; }
}
@media (min-width: 901px) and (max-height: 720px) {
  .pdl { height: 44px; }
  .pdl i { width: 32px; height: 32px; }
  .pdl::after { left: 13px; top: 29px; height: 15px; }
}
/* the last pick, in the player card's place */
.pbreak.fill.mine { gap: 8px; min-height: 0; }
.fillh { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.fillh h1 { margin: 2px 0 0; }
.fillnote { margin: 0; font-size: 13px; color: var(--muted); }
.pbreak.fill .unsq { margin: 0; max-width: 320px; }
.fillist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; overflow-y: auto; min-height: 0; max-height: 46vh; }
.fillist li { display: flex; align-items: center; gap: 10px; padding: 5px 4px; border-bottom: 1px solid #EEF0F4; font-size: 13.5px; }
.fillist li .t { flex: 1; min-width: 0; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fillist li .r { width: 40px; font-family: var(--mono); font-size: 10.5px; color: var(--muted); }
.fillist li .p, .fillist li .v, .fillist li .b { width: 46px; text-align: right; font-family: var(--mono); font-size: 12.5px; }
.fillist li .v { color: var(--sub); }
.fillist li .btn.sm { height: 30px; padding: 0 14px; font-size: 14px; box-shadow: 0 3px 0 var(--gold-deep); border-radius: 8px; }
.fillist li.empty { color: var(--muted); }
.rep-list li .n { flex: 1; min-width: 0; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fillist li.hd { border-bottom-color: var(--line2); padding: 2px 4px 4px; font-family: var(--mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); }
.fillist li .r { width: 70px; white-space: nowrap; }
.fillist li.hd .sp { width: 62px; }
/* phones: the three action buttons share one row, the test-auction buttons another */
@media (max-width: 560px) {
  .arow .autorow { flex: 1 1 100%; flex-wrap: nowrap; }
  .autorow .open { flex: 1 1 0; padding: 0 8px; min-width: 0; }
  .autorow .open .x { display: none; }
  .autorow .on, .autorow .passed { flex: 2 1 0; }
  .simrow .lbl { flex-basis: 100%; }
  .simrow button { flex: 1 1 0; }
}

/* the paddle row: in a test auction the two simulate buttons sit beside the paddle, so the bidding panel stays short and
   the live bids and the pot above it get the height */
.padrow { display: flex; gap: 10px; align-items: stretch; }
.padrow > .paddle { flex: 1 1 auto; min-width: 0; }
.padrow > .simrow { flex: 0 0 clamp(150px, 20%, 210px); display: flex; flex-direction: column; gap: 4px; padding: 0; border: 0; margin-bottom: -6px; }
.padrow > .simrow button { flex: 1 1 0; height: auto; min-height: 0; width: 100%; padding: 0 8px; border-radius: 8px; font-size: 12px; line-height: 1; white-space: nowrap; }
.bclock .hint:empty { display: none; }
.feed ol { padding-top: 10px; }
.feed .wait { padding-top: 14px; }

/* ---- the lobby: a countdown to the auction, the managers, and the player list with a shortlist (FPL's draft room) */
.lobby2 { max-width: 1280px; }
.lb-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: stretch; padding: 22px 24px; border-radius: 18px; color: #fff; margin-bottom: 20px;
  background: radial-gradient(130% 160% at 100% 0%, var(--brand2) 0%, var(--brand) 60%); box-shadow: 0 12px 30px rgba(92, 15, 36, .2); }
.lb-h1 { min-width: 0; }
.lb-h1 .eyebrow { color: rgba(255, 255, 255, .7); }
.lb-h1 h1 { margin: 6px 0 4px; font-family: var(--display); font-weight: 900; font-size: 44px; line-height: 1; }
.lb-h1 p { margin: 0; color: rgba(255, 255, 255, .82); font-size: 14.5px; }
.lb-h1 .lb-how { margin-top: 12px; max-width: 62ch; color: rgba(255, 255, 255, .72); font-size: 14px; line-height: 1.5; }
.lb-clock { position: relative; min-width: 330px; background: #fff; color: var(--ink); border-radius: 14px; padding: 14px 18px 12px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.lb-ct { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); }
.lb-digits { display: flex; align-items: flex-start; gap: 4px; }
.lb-digits div { display: flex; flex-direction: column; align-items: center; min-width: 56px; }
.lb-digits b { font-family: var(--display); font-weight: 900; font-size: 48px; line-height: 1; font-variant-numeric: tabular-nums; }
.lb-digits span { font-size: 11.5px; color: var(--muted); font-weight: 650; }
.lb-digits i { font-style: normal; font-family: var(--display); font-weight: 900; font-size: 38px; color: var(--dim); line-height: 1.1; }
.lb-date { width: 100%; display: flex; align-items: center; justify-content: center; text-align: center; padding-top: 8px; margin-top: 2px; border-top: 1px solid var(--line); font-size: 13.5px; font-weight: 750; color: var(--green); }
.lb-change { margin-left: 10px; vertical-align: 1px; border: 0; background: var(--panel2); color: var(--sub); font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; cursor: pointer; }
.lb-change:hover { background: var(--line); color: var(--ink); }
.lb-clock.none, .lb-clock.edit { justify-content: center; gap: 10px; }
.lb-when { font-size: 18px; }
.lb-tin { display: flex; align-items: center; gap: 6px; }
.lb-tin input { height: 40px; padding: 0 10px; border-radius: 9px; border: 1px solid var(--edge); background: #fff; color: var(--ink); font-size: 15px; }
.lb-tin span { font-size: 12.5px; color: var(--muted); font-weight: 700; }
.lb-tacts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.btn.gold2 { border: 0; background: var(--gold-fill); color: var(--gold-ink); font-weight: 800; }
.btn.gold2:hover { color: var(--gold-ink); filter: brightness(1.04); }
.lb-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
.lb-grid .col { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.lb-pool { display: flex; flex-direction: column; gap: 12px; }
.lb-filters { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.lb-f { display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; font-weight: 700; color: var(--sub); min-width: 0; }
.lb-f input, .lb-f select { height: 44px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--edge); background: #fff; color: var(--ink); font-size: 15px; width: 100%; }
.lb-f input:focus, .lb-f select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-tint); }
.lb-tabs { display: flex; align-self: center; padding: 4px; gap: 4px; border-radius: 12px; background: var(--panel2); border: 1px solid var(--line); }
.lb-tabs button { height: 36px; padding: 0 18px; border: 0; border-radius: 9px; background: none; color: var(--sub); font-weight: 700; font-size: 14px; cursor: pointer; }
.lb-tabs button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(16, 24, 40, .14); }
.lb-tabs i { font-style: normal; display: inline-flex; min-width: 20px; height: 20px; padding: 0 6px; margin-left: 4px; border-radius: 999px; background: var(--gold-bg); color: var(--gold); font-size: 12px; align-items: center; justify-content: center; }
.lb-shown { margin: 0; text-align: center; font-size: 13.5px; color: var(--sub); }
.lb-shown b { color: var(--green); }
.lb-tw { overflow-x: auto; margin: 0 -6px; }
.lb-t td { padding: 8px; }
.lb-t th.sl, .lb-t td.sl { text-align: right; width: 1%; }
.lb-pl { display: flex; align-items: center; gap: 10px; min-width: 0; }
.lb-pl .kit { flex: none; }
.lb-pl > span { display: flex; flex-direction: column; min-width: 0; }
.lb-star { height: 34px; padding: 0 12px; border-radius: 9px; border: 1px solid var(--edge); background: #fff; color: var(--sub); font-weight: 700; font-size: 13px; white-space: nowrap; cursor: pointer; }
.lb-star:hover { border-color: var(--gold-deep); color: var(--gold); }
.lb-star[aria-pressed="true"] { background: var(--gold-fill); border-color: var(--gold-fill); color: var(--gold-ink); }
.ptable tr.starred td { background: #FFFCF2; }
b.g1, .g1 { color: #1A6FE8; }
b.g2, .g2 { color: #078A4C; }
b.g3, .g3 { color: #967000; }
b.g4, .g4 { color: #D92D20; }
@media (max-width: 1000px) {
  .lb-grid, .lb-hero { grid-template-columns: minmax(0, 1fr); }
  .lb-clock { min-width: 0; }
  .lb-filters { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .lb-f.grow { grid-column: 1 / -1; }
  .lb-star span { display: none; }
  .lb-h1 h1 { font-size: 34px; }
  .lb-hero { padding: 18px; gap: 16px; }
  .lb-digits b { font-size: 40px; }
  .lb-digits div { min-width: 48px; }
}

/* the league room under the top bar (gh.css): the top bar steps aside in the live auction, where the room fills the
   screen; elsewhere it stays, and the room's bar drops its own wordmark and wears the games' banner */
body.room-page { --gh-w: 1240px; }
body[data-view="live"] .gh, body[data-view="draft"] .gh { display: none; }
body.room-page:not([data-view="live"]):not([data-view="draft"]) .rbar .mark, body.room-page:not([data-view="live"]):not([data-view="draft"]) .rbar .sep { display: none; }
body.room-page:not([data-view="live"]):not([data-view="draft"]) .rbar { background: linear-gradient(115deg, #45091A 0%, #6E1029 50%, #8A1B33 100%); }
@media (max-width: 900px) {      /* a phone: the league's name where the wordmark was */
  body.room-page:not([data-view="live"]):not([data-view="draft"]) .rbar .lg { display: flex; flex: 0 1 auto; }
  body.room-page:not([data-view="live"]):not([data-view="draft"]) .rbar .lg b { font-size: 15px; }
}
/* the league room's bar in the brand: white words on maroon, gold 200 */
.rbar { background: var(--brand); border-bottom: 0; color: #fff; }
.rbar .mark, .rbar .mark:hover { color: #fff; }
.rbar .mark b { color: var(--gold-fill); }
.rbar .sep { background: rgba(255, 255, 255, .25); }
.rbar .lg span, .rbar .ping, .rbar .lot { color: rgba(255, 255, 255, .72); }
.rbar .icon, .rbar .hostbtn { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .2); color: #fff; }
.rbar .icon[aria-pressed="false"] { color: rgba(255, 255, 255, .55); }
.rbar .hostbtn[aria-expanded="true"] { border-color: var(--gold-fill); color: var(--gold-fill); }
.rbar .pill { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .25); color: #fff; }
.rbar .pill.live { background: #E5484D; border-color: #E5484D; color: #fff; }
.rbar .pill.live::before { background: #fff; }
.rbar .callbtn { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .3); color: #fff; }

/* ================= the season, redrawn (season.js): pages laid out the way FPL lays them out. Light by default, dark a
   tap away; every colour comes from the --s-* tokens below */
.sx { --s-bg: #F2F4F7; --s-card: #FFFFFF; --s-ink: #101828; --s-sub: #475467; --s-mu: #8D96A5; --s-line: #E6E9EF; --s-line2: #D3D8E0;
  --s-soft: #F5F6F8; --s-hover: #F2F4F7; --s-pv: #FFFFFF; --s-pv-ink: #101828;
  /* the brand: leather maroon, the red ball's dark side, with gold for money */
  --s-brand: #5C0F24; --s-brand2: #8A1B33; --s-brand-tint: #FBF1F3; --s-navy: var(--s-brand); --s-plate: var(--s-brand);
  --s-green: #078A4C; --s-green-bg: #E5F5EC; --s-red: #D92D20; --s-red-bg: #FDECEA; --s-blue: #1A6FE8; --s-gold: #946C00; --s-gold-bg: #FFF5D6;
  --s-me: #FFF8E3; --s-shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 1px 3px rgba(16, 24, 40, .04);
  --s-grass1: #3F9D5C; --s-grass2: #399255; --s-bench: #E2F0E6;
  background: var(--s-bg); color: var(--s-ink); min-height: 100vh; }
body.sx-light { background: #F2F4F7; }

.sx .ell { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sx a { color: var(--s-blue); }
/* the tabs */
.sx-tabs { position: sticky; top: 60px; z-index: 5; display: flex; align-items: center; gap: 10px; padding: 0 20px; background: var(--s-card); border-bottom: 1px solid var(--s-line); }
.sx-tabs-in { flex: 1; min-width: 0; display: flex; align-items: center; gap: 4px; padding: 8px 0; overflow-x: auto; scrollbar-width: none; }
.sx-tabs-in::-webkit-scrollbar { display: none; }
/* the tabs as FPL has them: a lit pill for the one you are on */
.sx-tabs-in button { flex: none; display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 16px; border: 0; border-radius: 999px; background: none; color: var(--s-sub); font-weight: 650; font-size: 14.5px; cursor: pointer; transition: background-color .15s, color .15s; }
.sx-tabs-in button:hover { background: #F2F4F7; color: var(--s-ink); }
.sx-tabs-in button[aria-selected="true"] { background: var(--s-brand); color: #fff; font-weight: 750; box-shadow: 0 2px 8px rgba(92, 15, 36, .25); }
.sx-tabs-in .tic { width: 16px; height: 16px; flex: none; fill: none; stroke: #B07D0A; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.sx-tabs-in button[aria-selected="true"] .tic { stroke: #F5C451; }
.sx-tabs i.bd { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; margin-left: 6px; padding: 0 5px; border-radius: 9px; background: #E5484D; color: #fff; font-style: normal; font-size: 11px; font-weight: 800; }
@media (min-width: 901px) and (max-height: 1060px) { .sx-tabs { top: 52px; } }
@media (min-width: 901px) and (max-height: 820px) { .sx-tabs { top: 48px; } }
@media (min-width: 901px) and (max-height: 700px) { .sx-tabs { top: 44px; } }
/* the page */
.sx-page { max-width: 1240px; margin: 0 auto; padding: 24px 20px 64px; }
.sx-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.sx-grid.g-gw { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
.sx-grid.g-team { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); }
.sx-grid.g-lg { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
.sx-col { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.sx-card { background: var(--s-card); border: 1px solid var(--s-line); border-radius: 16px; padding: 18px 20px; box-shadow: var(--s-shadow); min-width: 0; display: flex; flex-direction: column; }
.sx-ch { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.sx-ch h2 { margin: 0; font-size: 18px; font-weight: 800; letter-spacing: -.01em; line-height: 1.2; }
.sx-fine { font-size: 13px; color: var(--s-mu); margin: 0; line-height: 1.45; }
.sx-eyebrow { font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; }
.sx-plink { border: 0; background: none; padding: 0; margin: 0; color: inherit; font: inherit; font-weight: inherit; cursor: pointer; text-align: left; max-width: 100%; }
.sx-plink:hover { text-decoration: underline; }
.sx-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 10px; border: 1px solid transparent; font-weight: 750; font-size: 15px; cursor: pointer; text-decoration: none; white-space: nowrap; }
.sx-btn { background: var(--s-navy); color: #fff; }
.sx-btn.gold { background: #F5C451; color: #1A1405; }
.sx-btn.gold:hover { filter: brightness(1.04); }
.sx-btn.green { background: var(--s-green); color: #fff; }
.sx-btn.ghost { background: var(--s-card); color: var(--s-ink); border-color: var(--s-line2); }
.sx-btn.ghost:hover { background: var(--s-hover); }
.sx-btn.sm { height: 36px; padding: 0 14px; font-size: 14px; border-radius: 9px; }
.sx-btn:disabled { opacity: .45; cursor: default; }
.sx-ic { flex: none; width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--s-line); background: var(--s-card); color: var(--s-sub); font-size: 18px; line-height: 1; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.sx-ic:disabled { opacity: .35; cursor: default; }
.sx-link { border: 0; background: none; padding: 0; color: var(--s-blue); font-weight: 700; font-size: 14px; align-self: flex-start; cursor: pointer; }
.sx-acts { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.sx-seg { display: inline-flex; align-self: flex-start; padding: 3px; border-radius: 10px; background: var(--s-soft); border: 1px solid var(--s-line); gap: 2px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.sx-seg button { flex: none; height: 32px; padding: 0 14px; border: 0; border-radius: 8px; background: none; color: var(--s-sub); font-weight: 650; font-size: 13.5px; cursor: pointer; }
.sx-seg button[aria-pressed="true"] { background: var(--s-card); color: var(--s-ink); box-shadow: 0 1px 2px rgba(16, 24, 40, .14); }
.sx-seg i.bd { display: inline-flex; min-width: 18px; height: 18px; margin-left: 6px; padding: 0 5px; border-radius: 9px; background: #E5484D; color: #fff; font-style: normal; font-size: 11px; font-weight: 800; align-items: center; justify-content: center; }
.sx-card > .sx-seg { margin-bottom: 14px; }
.sx-tag { font-size: 12px; font-weight: 700; color: var(--s-sub); background: var(--s-soft); border: 1px solid var(--s-line); padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.sx-live { display: inline-flex; align-items: center; gap: 0; font-size: 11.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: #fff; background: #E5484D; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.sx-live .sx-dot { background: #fff; margin: 0 6px 0 0; order: -1; }
.sx-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #E5484D; margin-left: 5px; animation: livepulse 1.1s ease-in-out infinite; vertical-align: 1px; flex: none; }
.sx-tn { display: inline-flex; align-items: center; gap: 10px; min-width: 0; max-width: 100%; vertical-align: middle; text-align: left; }
.sx-tn > span:not(.chip) { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.sx-tn b { font-weight: 700; }
.sx-tn small { font-size: 12px; color: var(--s-mu); font-weight: 500; }
.sx-tn .kit { flex: none; }
.chip.sx-avg { background: var(--s-soft); color: var(--s-sub); box-shadow: inset 0 0 0 1px var(--s-line2); }
/* tables */
.sx-tbl, .sx-mini { width: 100%; border-collapse: collapse; font-size: 14px; }
.sx-tbl th, .sx-mini th { font-size: 11.5px; font-weight: 700; color: var(--s-mu); text-transform: uppercase; letter-spacing: .04em; padding: 8px; border-bottom: 1px solid var(--s-line); text-align: center; white-space: nowrap; }
.sx-tbl td, .sx-mini td { padding: 10px 8px; border-bottom: 1px solid var(--s-line); text-align: center; white-space: nowrap; }
.sx-tbl tbody tr:last-child td, .sx-mini tbody tr:last-child td { border-bottom: 0; }
.sx-tbl .l, .sx-mini .l { text-align: left; max-width: 0; width: 100%; }
.sx-tbl .r { text-align: right; }
.sx-tbl tr.me td, .sx-mini tr.me td { background: var(--s-me); }
.sx-tbl .mu, .sx-mini .mu { color: var(--s-mu); }
.sx-tbl td.live b { color: var(--s-ink); }
.sx-tw { overflow-x: auto; margin: 0 -4px; }
.sx-std td.pos, .sx-std th.pos { position: relative; width: 34px; padding-left: 12px; font-weight: 700; }
.sx-std td.pts b { font-size: 15.5px; font-weight: 800; }
.sx-z { position: absolute; left: 0; top: 7px; bottom: 7px; width: 4px; border-radius: 0 3px 3px 0; }
.sx-z.q, .sx-z.f { background: #12B76A; }
.sx-z.o { background: #F04438; }
.sx-z.c { background: #F5C451; }
.sx-legend { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 12px; font-size: 12.5px; color: var(--s-sub); }
.sx-legend span { display: inline-flex; align-items: center; gap: 7px; }
.sx-legend .sx-z { position: static; display: inline-block; width: 10px; height: 10px; border-radius: 3px; }
.sx-form { display: inline-flex; gap: 3px; }
.sx-form i { position: relative; width: 22px; height: 22px; border-radius: 6px; font-size: 11px; font-weight: 800; font-style: normal; color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.sx-form i.last::after { content: ""; position: absolute; left: 3px; right: 3px; bottom: -5px; height: 2px; border-radius: 1px; background: currentColor; opacity: .5; }
.sx-form i.last { margin-bottom: 4px; }
.sx-form .W { background: #12B76A; }
.sx-form .W.last::after { background: #12B76A; opacity: 1; }
.sx-form .L.last::after { background: #F04438; opacity: 1; }
.sx-form .D.last::after { background: #98A2B3; opacity: 1; }
.sx-form .L { background: #F04438; }
.sx-form .D { background: #98A2B3; }
.sx-list tr.sep td { background: var(--s-soft); font-size: 11.5px; font-weight: 800; color: var(--s-mu); text-transform: uppercase; letter-spacing: .06em; padding: 7px 10px; text-align: left; }
.sx-list tr.bn td { color: var(--s-sub); }
.sx-list.pick tbody tr { cursor: pointer; }
.sx-list.pick tbody tr:hover td { background: var(--s-hover); }
.sx-list.pick tr.sel td { background: var(--s-gold-bg); }
.sx-list td.r b { font-weight: 800; }
/* Home */
.sx-news { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; margin-bottom: 18px; border-radius: 12px; border: 1px solid #A6E9C2; background: var(--s-green-bg); color: var(--s-green); font-weight: 700; font-size: 14.5px; cursor: pointer; }
.sx-hero { position: relative; overflow: hidden; border-radius: 18px; padding: 24px 26px; color: #fff; background: radial-gradient(130% 150% at 100% 0%, var(--s-brand2) 0%, var(--s-brand) 58%); }
.sx-hero::after { content: ""; position: absolute; right: -70px; top: -70px; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(circle, rgba(245, 196, 81, .3), transparent 70%); pointer-events: none; }
.sx-hero .sx-eyebrow { color: rgba(255, 255, 255, .72); }
.sx-hero h1 { margin: 8px 0 4px; font-family: var(--display); font-weight: 900; font-size: 42px; line-height: 1; letter-spacing: .01em; }
.sx-hero p { margin: 0; color: rgba(255, 255, 255, .78); font-size: 15px; }
.sx-hero dl { position: relative; z-index: 1; margin: 18px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.sx-hero dl div { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); border-radius: 12px; padding: 10px 12px; min-width: 0; }
.sx-hero dt { font-size: 12px; color: rgba(255, 255, 255, .7); }
.sx-hero dd { margin: 3px 0 0; font-weight: 700; font-size: 14.5px; }
.sx-hero .sx-acts { position: relative; z-index: 1; margin-top: 18px; }
.sx-hero .sx-btn.ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }
.sx-mrow { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 12px; }
.sx-mside { display: flex; flex-direction: column; align-items: center; gap: 5px; text-align: center; min-width: 0; }
.sx-mside b { font-size: 15.5px; max-width: 100%; }
.sx-mside small { font-size: 12.5px; color: var(--s-mu); max-width: 100%; }
.sx-mscore { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 900; font-size: 46px; line-height: 1; }
.sx-mscore b { font-weight: 900; }
.sx-mscore b.w { color: var(--s-green); }
.sx-mscore i { color: var(--s-mu); font-style: normal; font-size: 26px; }
.sx-mscore span { font-size: 26px; color: var(--s-mu); }
.sx-avgshirt { width: 60px; height: 60px; border-radius: 50%; background: var(--s-soft); border: 1px solid var(--s-line2); display: flex; align-items: center; justify-content: center; font-weight: 800; color: var(--s-sub); }
.sx-mc .sx-link { margin-top: 14px; }
.sx-mc .sx-fine { margin-top: 10px; text-align: center; }
.sx-mcone { display: flex; align-items: center; gap: 14px; }
.sx-mcone b { display: block; font-family: var(--display); font-weight: 900; font-size: 46px; line-height: 1; }
.sx-mcone span { color: var(--s-mu); font-size: 13.5px; }
.sx-bars { display: flex; gap: 8px; align-items: flex-end; overflow-x: auto; padding-bottom: 2px; scrollbar-width: thin; }
.sx-bar { flex: 1 0 36px; display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 36px; }
.sx-bar > span { height: 92px; width: 100%; max-width: 30px; display: flex; align-items: flex-end; background: var(--s-soft); border-radius: 7px; overflow: hidden; }
.sx-bar > span i { display: block; width: 100%; background: linear-gradient(#6481F7, #3C5BD6); border-radius: 7px 7px 0 0; }
.sx-bar.on > span i { background: linear-gradient(#F7CE5E, #E2A72E); }
.sx-bar b { font-size: 12.5px; font-weight: 800; }
.sx-bar small { font-family: var(--mono); font-size: 10.5px; color: var(--s-mu); }
.sx-bar em { font-style: normal; font-size: 10.5px; font-weight: 800; width: 18px; height: 18px; border-radius: 5px; display: flex; align-items: center; justify-content: center; }
.sx .r-W { background: var(--s-green-bg); color: var(--s-green); }
.sx .r-L { background: var(--s-red-bg); color: var(--s-red); }
.sx .r-D { background: var(--s-soft); color: var(--s-sub); }
.sx-aws { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.sx-aw { padding: 12px 14px; border-radius: 12px; background: var(--s-soft); display: flex; flex-direction: column; min-width: 0; }
.sx-aw > span { font-size: 12px; color: var(--s-mu); font-weight: 600; }
.sx-aw b { font-family: var(--display); font-weight: 900; font-size: 30px; line-height: 1.1; }
.sx-aw small { font-size: 13px; color: var(--s-sub); }
.sx-moves { list-style: none; margin: 0; padding: 0; }
.sx-moves li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--s-line); font-size: 13.5px; }
.sx-moves li:last-child { border-bottom: 0; }
.sx-moves li > span:not(.chip) { flex: 1; min-width: 0; line-height: 1.35; }
.sx-moves time { font-size: 12px; color: var(--s-mu); white-space: nowrap; }
.sx-moves .in, .sx-cl .in { color: var(--s-green); font-weight: 650; }
.sx-moves .out, .sx-cl .out { color: var(--s-red); font-weight: 650; }
.sx .sauc.card { background: linear-gradient(160deg, #FFF5D6 0%, #FFFFFF 72%); border-color: #F0D58A; color: var(--s-ink); border-radius: 16px; box-shadow: var(--s-shadow); }
.sx .sauc .eyebrow { color: #7A5600; }
.sx .sauc .note { color: var(--s-sub); }
.sx .sauc .btn.au { background: #FFFFFF; color: #7A5600; border-color: #E8C76A; }
.sx-auction { background: none; color: var(--ink); padding: 0; }
.sx .sx-auction .rteam, .sx .sx-auction .rep-list, .sx .sx-auction .tbl-wrap, .sx .sx-auction .rep-how { box-shadow: var(--s-shadow); border-radius: 14px; }
/* Gameweek */
.sx-gwnav { display: flex; align-items: center; gap: 14px; }
.sx-gwnav > div { display: flex; flex-direction: column; align-items: center; min-width: 180px; text-align: center; }
.sx-gwnav b { font-size: 22px; font-weight: 800; letter-spacing: -.01em; }
.sx-gwnav small { font-size: 12.5px; color: var(--s-mu); }
.sx-gwnav .sx-ic { width: 40px; height: 40px; font-size: 22px; border-radius: 50%; }
.sx-card .sx-gwnav { justify-content: space-between; margin-bottom: 12px; }
.sx-card .sx-gwnav b { font-size: 16px; }
.sx-card .sx-gwnav .sx-ic { width: 34px; height: 34px; font-size: 20px; }
.sx-loading { min-height: 240px; align-items: center; justify-content: center; }
.sx-spin { width: 30px; height: 30px; border-radius: 50%; border: 3px solid var(--s-line2); border-top-color: var(--s-ink); animation: spin .9s linear infinite; }
/* the pitch: a cricket ground in stripes, the XI in rows, the bench under it */
.sx-pitch { position: relative; border-radius: 16px; overflow: hidden; padding: 26px 10px 28px; min-height: 760px; display: flex; flex-direction: column; background: repeating-linear-gradient(180deg, var(--s-grass1) 0 46px, var(--s-grass2) 46px 92px); }
/* the ground stands upright: a tall oval on the grass, and the XI spread over it in rows by role, like FPL */
.sx-field { position: absolute; top: 12px; bottom: 12px; left: 50%; width: min(86%, 690px); transform: translateX(-50%); border: 2px solid rgba(255, 255, 255, .5); border-radius: 50%; pointer-events: none; }
.sx-field::before { content: ""; position: absolute; left: 50%; top: 50%; width: 50%; height: 56%; transform: translate(-50%, -50%); border: 2px dashed rgba(255, 255, 255, .3); border-radius: 50%; }
.sx-field::after { content: ""; position: absolute; left: 50%; top: 50%; width: 26px; height: 32%; transform: translate(-50%, -50%); background: rgba(236, 219, 164, .55); border-radius: 3px; }
.sx-rows { position: relative; flex: 1; width: 100%; max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; justify-content: space-around; gap: 16px; }
.sx-row { display: flex; justify-content: space-evenly; gap: 6px; }
.sx-row.n6 .sx-pl, .sx-row.n7 .sx-pl { width: 94px; }
.sx-bench .sx-row { max-width: 720px; margin: 0 auto; }
.sx-pl { position: relative; width: 100px; display: flex; flex-direction: column; align-items: center; transition: opacity .15s; }
.sx-plb { width: 100%; display: flex; flex-direction: column; align-items: center; padding: 0; border: 0; background: none; cursor: pointer; color: inherit; font: inherit; }
.sx-shirt { position: relative; height: 54px; display: flex; align-items: flex-end; justify-content: center; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .22)); transition: transform .15s; }
.sx-plb:hover .sx-shirt { transform: translateY(-2px); }
.sx-nm { margin-top: 4px; width: 100%; padding: 3px 4px; border-radius: 6px 6px 0 0; background: var(--s-plate); color: #fff; font-size: 12px; font-weight: 700; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sx-pv { width: 100%; padding: 2px 4px 3px; border-radius: 0 0 6px 6px; background: var(--s-pv); color: var(--s-pv-ink); font-size: 13px; font-weight: 800; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; justify-content: center; }
.sx-pv:not(:last-child) { border-radius: 0; }
.sx-pv.mu { font-weight: 600; font-size: 11.5px; color: #667085; }
.sx-pv2 { width: 100%; padding: 1px 4px 2px; border-radius: 0 0 6px 6px; background: #EEF0F3; color: #475467; font-size: 10.5px; font-weight: 700; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sx-badges { position: absolute; left: 4px; top: -2px; display: flex; flex-direction: column; gap: 3px; z-index: 1; pointer-events: none; }
.sx-cap { width: 20px; height: 20px; border-radius: 50%; background: #101828; color: #fff; font-size: 11px; font-weight: 800; font-style: normal; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 2px #fff; flex: none; }
.sx-cap.v { background: #fff; color: #101828; box-shadow: 0 0 0 2px #101828; }
.sx-cap.in { display: inline-flex; vertical-align: 1px; width: 18px; height: 18px; margin-left: 6px; box-shadow: none; font-size: 10px; }
.sx-cap.in.v { box-shadow: inset 0 0 0 1.5px #101828; }
.sx-star { width: 20px; height: 20px; border-radius: 50%; background: #12B76A; color: #fff; font-size: 12px; font-style: normal; line-height: 1; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 2px #fff; flex: none; }
.sx-star.in { display: inline-flex; width: 18px; height: 18px; font-size: 10.5px; box-shadow: none; margin-left: 6px; vertical-align: 1px; }
.sx-bo { width: 18px; height: 18px; border-radius: 50%; background: #fff; color: #101828; font-size: 10.5px; font-weight: 800; font-style: normal; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 1.5px #101828; flex: none; }
.sx-sub { position: absolute; right: 4px; top: -2px; width: 20px; height: 20px; border-radius: 50%; font-style: normal; font-weight: 900; font-size: 12px; color: #fff; display: flex; align-items: center; justify-content: center; z-index: 1; }
.sx-sub.in { background: #12B76A; }
.sx-sub.out { background: #F04438; }
.sx-swap { position: absolute; right: 4px; top: -2px; z-index: 2; width: 24px; height: 24px; padding: 0; border-radius: 50%; border: 0; background: #FFD43B; color: #1A1405; display: flex; align-items: center; justify-content: center; box-shadow: 0 1px 3px rgba(0, 0, 0, .35); cursor: pointer; }
.sx-swap:hover { background: #FFC300; transform: scale(1.08); }
.sx-swap.in { position: static; box-shadow: none; }
.sx-swapi { display: inline-flex; width: 20px; height: 20px; border-radius: 50%; background: #FFD43B; color: #1A1405; align-items: center; justify-content: center; flex: none; vertical-align: -5px; }
.sx-swapi.info { background: var(--s-soft); color: var(--s-sub); border: 1px solid var(--s-line2); font: italic 800 12px Georgia, serif; }
.sx-pl.out { opacity: .55; }
.sx-pl.dim { opacity: .32; filter: saturate(.3); }
.sx-pl.sel::before { content: ""; position: absolute; inset: -5px -3px -3px; border: 2.5px solid #F04438; border-radius: 10px; pointer-events: none; }
.sx-pl.sel .sx-nm { background: #F04438; }
.sx-pl.tgt .sx-pv { background: #12B76A; color: #fff; }
.sx-pl.tgt .sx-pv.mu { color: #fff; }
.sx-bench { margin-top: 10px; border-radius: 14px; background: var(--s-bench); padding: 12px 8px 16px; }
.sx-blab { display: block; text-align: center; font-size: 11.5px; font-weight: 800; color: var(--s-sub); text-transform: uppercase; letter-spacing: .07em; margin-bottom: 8px; }
/* fixtures */
.sx-fday h3 { margin: 16px 0 8px; font-size: 12px; font-weight: 800; color: var(--s-mu); text-transform: uppercase; letter-spacing: .06em; }
.sx-fday:first-child h3 { margin-top: 0; }
.sx-fx { border: 1px solid var(--s-line); border-radius: 12px; margin-bottom: 8px; overflow: hidden; background: var(--s-card); }
.sx-fx.on { border-color: #F5B3AE; }
.sx-fx.open { box-shadow: 0 4px 14px rgba(16, 24, 40, .08); }
.sx-fxr { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) 86px minmax(0, 1fr); align-items: center; gap: 8px; padding: 10px 12px; border: 0; background: none; color: inherit; cursor: pointer; font: inherit; }
.sx-fxr:hover { background: var(--s-hover); }
.sx-ft { display: flex; align-items: center; gap: 8px; min-width: 0; }
.sx-ft.h { justify-content: flex-end; text-align: right; }
.sx-ft b { font-weight: 800; font-size: 15px; }
.sx-ft .ell { font-size: 12.5px; color: var(--s-mu); min-width: 0; }
.sx-ft .kit { flex: none; }
.sx-fst { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.sx-fst small { font-size: 11px; color: var(--s-mu); white-space: nowrap; }
.sx-time { font-weight: 800; font-size: 14px; }
.sx-fin { font-size: 11.5px; font-weight: 800; color: var(--s-sub); background: var(--s-soft); border: 1px solid var(--s-line); padding: 3px 9px; border-radius: 999px; }
.sx-fbody { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding: 4px 14px 14px; border-top: 1px solid var(--s-line); background: var(--s-soft); }
.sx-fcol { min-width: 0; }
.sx-fcol h4 { display: flex; align-items: center; gap: 6px; margin: 12px 0 6px; font-size: 12.5px; font-weight: 800; }
.sx-fcol ul { list-style: none; margin: 0; padding: 0; }
.sx-fcol li { display: flex; align-items: center; gap: 6px; padding: 6px 0; border-bottom: 1px solid var(--s-line); font-size: 13.5px; }
.sx-fcol li:last-child { border-bottom: 0; }
.sx-fcol li .ell { flex: 1; min-width: 0; }
.sx-fcol li b { font-weight: 800; min-width: 38px; text-align: right; display: inline-flex; align-items: center; justify-content: flex-end; }
.sx-fcol li.me { font-weight: 700; }
.sx-fcol li.me .ell::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #F5C451; margin-right: 6px; vertical-align: 2px; }
.sx-own { flex: none; font-size: 10px; font-weight: 800; color: var(--s-sub); background: var(--s-card); border: 1px solid var(--s-line); border-radius: 4px; padding: 0 4px; }
/* Team */
.sx-teamtop, .sx-lgtop { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.sx-teamtop h1, .sx-lgtop h1 { margin: 0 0 4px; font-family: var(--display); font-weight: 900; font-size: 38px; line-height: 1; }
.sx-lgtop { align-items: center; }
.sx-rules { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.sx-rules li { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--s-line); font-size: 14px; }
.sx-rules li:last-child { border-bottom: 0; }
.sx-rules b { font-weight: 800; }
.sx-rules small { display: block; font-weight: 600; color: var(--s-mu); font-size: 12px; }
.sx-rules span { color: var(--s-sub); line-height: 1.5; }
.sx-sq td { padding: 8px; }
/* Transfers */
.sx-mvhead { margin-bottom: 16px; }
.sx-band { display: flex; border-radius: 14px; overflow: hidden; background: var(--s-card); border: 1px solid var(--s-line); box-shadow: var(--s-shadow); }
.sx-band > div { flex: 1; padding: 12px 16px; display: flex; flex-direction: column; gap: 2px; border-right: 1px solid var(--s-line); min-width: 0; }
.sx-band > div:last-child { border-right: 0; }
.sx-band span { font-size: 12px; color: var(--s-mu); font-weight: 600; }
.sx-band b { font-size: 16px; font-weight: 800; }
.sx-band.open > div:first-child b { color: var(--s-green); }
.sx-seg.big { margin-bottom: 14px; }
.sx-seg.big button { height: 36px; padding: 0 18px; font-size: 14px; }
.sx-filters { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.sx-filters input[type=search] { flex: 1 1 220px; height: 40px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--s-line2); background: var(--s-card); color: var(--s-ink); font-size: 14.5px; min-width: 0; }
.sx-filters select { height: 40px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--s-line2); background: var(--s-card); color: var(--s-ink); font-size: 14px; }
.sx-check { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--s-sub); }
.sx-tcard { padding: 4px 10px; }
.sx-players td { padding: 9px 8px; }
.sx-players td.c { width: 90px; }
.sx-st { font-size: 11.5px; font-weight: 800; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.sx-st.f { background: var(--s-green-bg); color: var(--s-green); }
.sx-st.w { background: var(--s-gold-bg); color: var(--s-gold); }
.sx-fine.pad { padding: 10px; }
.sx-claims { list-style: none; margin: 0; padding: 0; }
.sx-claims li { display: flex; align-items: center; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--s-line); }
.sx-claims li:last-child { border-bottom: 0; }
.sx-claims .n { width: 26px; height: 26px; border-radius: 50%; background: var(--s-soft); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 12.5px; flex: none; }
.sx-cl { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 14px; }
.sx-order { list-style: none; margin: 0; padding: 0; counter-reset: so; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 6px; }
.sx-order li { counter-increment: so; display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 10px; background: var(--s-soft); font-size: 13.5px; min-width: 0; }
.sx-order li::before { content: counter(so); font-family: var(--mono); font-size: 11.5px; color: var(--s-mu); width: 16px; }
.sx-order li.me { background: var(--s-me); font-weight: 700; }
.sx-trades { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.sx-trade { padding: 12px; border-radius: 12px; background: var(--s-soft); display: flex; flex-direction: column; gap: 10px; }
.sx-trs { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 10px; align-items: center; }
.sx-trs > div { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13.5px; min-width: 0; }
.sx-trs > div span:not(.chip) { flex-basis: 100%; color: var(--s-sub); }
.sx-trs i { font-style: normal; color: var(--s-mu); font-size: 18px; }
.sx-pickteams { display: flex; gap: 8px; flex-wrap: wrap; }
.sx-tcols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 12px; }
.sx-tcols h3 { margin: 0 0 6px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--s-mu); }
.sx-tcol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.sx-tcol button { width: 100%; display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 9px; border: 1px solid var(--s-line); background: var(--s-card); color: var(--s-ink); font-size: 13.5px; cursor: pointer; text-align: left; }
.sx-tcol button[aria-pressed="true"] { border-color: #F5C451; background: var(--s-gold-bg); font-weight: 700; }
.sx-tcol .r { width: 36px; font-family: var(--mono); font-size: 10.5px; color: var(--s-mu); }
.sx-tcol .ell { flex: 1; min-width: 0; }
/* League */
.sx-timeline { display: flex; gap: 6px; flex-wrap: wrap; }
.sx-timeline div { display: flex; flex-direction: column; padding: 8px 14px; border-radius: 12px; background: var(--s-card); border: 1px solid var(--s-line); min-width: 110px; }
.sx-timeline b { font-size: 13.5px; font-weight: 800; }
.sx-timeline span { font-size: 12px; color: var(--s-mu); }
.sx-timeline .on { border-color: var(--s-navy); background: var(--s-navy); color: #fff; }
.sx-timeline .on span { color: rgba(255, 255, 255, .72); }
.sx-timeline .past { opacity: .55; }
.sx-card > .sx-fine { margin-bottom: 10px; }
.sx-sth { margin: 14px 0 4px; font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: var(--s-mu); }
.sx-ress > .sx-sth:first-child { margin-top: 0; }
.sx-res { padding: 9px 6px; border-bottom: 1px solid var(--s-line); }
.sx-res:last-child { border-bottom: 0; }
.sx-res.me { background: var(--s-me); border-radius: 10px; }
.sx-kon { display: block; font-size: 10.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--s-gold); margin-bottom: 5px; text-align: center; }
.sx-resr { display: grid; grid-template-columns: minmax(0, 1fr) 92px minmax(0, 1fr); align-items: center; gap: 8px; }
.sx-rs { display: flex; flex-direction: row-reverse; align-items: center; gap: 8px; min-width: 0; font-size: 14px; font-weight: 600; text-align: right; }
.sx-rs.r { flex-direction: row; text-align: left; }
.sx-rs > .ell { min-width: 0; }
.sx-rs small { display: block; font-size: 11.5px; color: var(--s-mu); font-weight: 500; }
.sx-rs.w { font-weight: 800; }
.sx-sc { display: flex; justify-content: center; align-items: center; gap: 3px; }
.sx-sc b { min-width: 40px; padding: 5px 6px; border-radius: 6px; background: var(--s-navy); color: #fff; text-align: center; font-size: 14px; font-weight: 800; }
.sx-sc i { display: none; }
.sx-sc span { color: var(--s-mu); font-weight: 700; font-size: 13px; }
.sx-tie { border: 1px solid var(--s-line); border-radius: 12px; overflow: hidden; background: var(--s-card); min-width: 0; }
.sx-trow { display: flex; align-items: center; gap: 8px; padding: 8px 10px; font-size: 14px; }
.sx-trow + .sx-trow { border-top: 1px solid var(--s-line); }
.sx-trow .ell { flex: 1; min-width: 0; }
.sx-trow small { display: block; font-size: 11.5px; color: var(--s-mu); font-weight: 500; }
.sx-trow b { font-weight: 800; }
.sx-trow.w { font-weight: 800; }
.sx-trow.w b { color: var(--s-green); }
.sx-trow.l { color: var(--s-mu); }
.sx-trow.me { background: var(--s-me); }
.sx-ties { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.sx-dl { margin: 0 0 14px; display: flex; flex-direction: column; }
.sx-dl div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--s-line); font-size: 14px; }
.sx-dl div:last-child { border-bottom: 0; }
.sx-co { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--s-line); font-size: 14px; color: var(--s-sub); }
.sx-co select { height: 38px; max-width: 60%; padding: 0 10px; border-radius: 8px; border: 1px solid var(--s-line2); background: var(--s-card); color: var(--s-ink); font: inherit; font-weight: 600; }
.sx-dl dt { color: var(--s-mu); }
.sx-dl dd { margin: 0; font-weight: 700; text-align: right; }
.sx-acts.wrap .sx-btn { flex: 0 1 auto; }
/* Help */
.sx-faq { border-bottom: 1px solid var(--s-line); }
.sx-faq:last-child { border-bottom: 0; }
.sx-faq summary { cursor: pointer; padding: 13px 0; font-weight: 700; font-size: 15px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.sx-faq summary::-webkit-details-marker { display: none; }
.sx-faq summary::after { content: "+"; color: var(--s-mu); font-weight: 400; font-size: 20px; line-height: 1; }
.sx-faq[open] summary::after { content: "–"; }
.sx-faq div { padding: 0 0 14px; color: var(--s-sub); font-size: 14.5px; line-height: 1.55; }
/* sheets: who goes, the player card, the kit */
.sx-shade { position: fixed; inset: 0; z-index: 40; background: rgba(16, 24, 40, .45); }
.sx-sheet { position: fixed; z-index: 41; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(540px, calc(100vw - 24px)); max-height: calc(100vh - 40px); overflow-y: auto; background: var(--s-card); color: var(--s-ink); border-radius: 18px; padding: 18px 20px 20px; box-shadow: 0 24px 60px rgba(16, 24, 40, .3); }
.sx-sheet.skit { width: min(760px, calc(100vw - 24px)); }
.sx-sheet .sx-ch h2 { font-size: 20px; }
.sx-drops { list-style: none; margin: 10px 0 0; padding: 0; }
.sx-drops button { width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px 8px; border: 0; border-bottom: 1px solid var(--s-line); background: none; color: var(--s-ink); font-size: 14.5px; text-align: left; cursor: pointer; }
.sx-drops button:hover:not(:disabled) { background: var(--s-hover); }
.sx-drops button:disabled { opacity: .4; cursor: default; }
.sx-drops .ell { flex: 1; min-width: 0; }
.sx-drops small { font-size: 11.5px; color: var(--s-mu); width: 40px; }
.sx-drops b { min-width: 36px; text-align: right; }
.sx-pch { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 16px; }
.sx-pch > div { flex: 1; min-width: 0; }
.sx-pch h2 { margin: 0 0 3px; font-size: 22px; font-weight: 800; }
.sx-pch .flag { margin-right: 6px; }
.sx-pco { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 13.5px; font-weight: 600; }
.sx-pct { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 16px; }
.sx-pct div { background: var(--s-soft); border-radius: 12px; padding: 10px 6px; display: flex; flex-direction: column; align-items: center; text-align: center; min-width: 0; }
.sx-pct b { font-family: var(--display); font-weight: 900; font-size: 26px; line-height: 1.1; }
.sx-pct span { font-size: 11.5px; color: var(--s-mu); }
.sx-pcgw h3, .sx-pcipl h3 { margin: 0 0 8px; font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: var(--s-mu); }
.sx-pcgw ol { list-style: none; margin: 0 0 16px; padding: 0; display: flex; gap: 6px; flex-wrap: wrap; }
.sx-pcgw li { display: flex; flex-direction: column; align-items: center; min-width: 46px; padding: 6px; border-radius: 10px; background: var(--s-soft); }
.sx-pcgw li span { font-size: 10.5px; color: var(--s-mu); }
.sx-pcgw li b { font-size: 15px; font-weight: 800; }
.sx-pcgw li b.mu { color: var(--s-mu); }
.sx-pcipl { margin-bottom: 12px; }
.sx-sheet > .sx-fine { margin-bottom: 12px; }
/* the player card, as FPL's player pop-up: a maroon header with his shirt, name and role, his numbers on white tiles,
   then who has him, what you can do, and his matches */
.sx-sheet.pc2 { width: min(640px, calc(100vw - 20px)); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); padding: 0; overflow-x: hidden; }
.pc-top { position: relative; padding: 20px 20px 16px; color: #fff; overflow: hidden;
  background: radial-gradient(90% 120% at 100% 0%, rgba(245, 196, 81, .3) 0%, rgba(245, 196, 81, 0) 50%), linear-gradient(115deg, #45091A 0%, #6E1029 52%, #962240 100%); }
.pc-top::before { content: ""; position: absolute; right: -60px; top: -40px; width: 300px; height: 300px; border-radius: 50%; border: 36px solid rgba(255, 255, 255, .045); pointer-events: none; }
.pc-x { position: absolute; top: 12px; right: 12px; z-index: 1; width: 34px; height: 34px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; font-size: 22px; line-height: 1; cursor: pointer; }
.pc-x:hover { background: rgba(255, 255, 255, .26); }
.pc-id { position: relative; display: flex; align-items: flex-end; gap: 16px; padding-right: 36px; }
.pc-shirt { flex: none; line-height: 0; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .3)); }
.pc-who { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; padding-bottom: 2px; }
.pc-role { padding: 4px 8px; border-radius: 6px; background: #1A0710; color: #F5C451; font: 600 10.5px/1 var(--mono); letter-spacing: .09em; text-transform: uppercase; }
.pc-nm { margin: 7px 0 5px; font-family: var(--display); font-weight: 900; font-size: 34px; line-height: .95; letter-spacing: .005em; color: #fff; overflow-wrap: anywhere; }
.pc-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: 13.5px; color: rgba(255, 255, 255, .82); }
.pc-sub span { display: inline-flex; align-items: center; gap: 5px; }
.pc-flag { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; padding: 4px 10px 4px 6px; border-radius: 999px; font-size: 12.5px; font-weight: 700; background: #FFF3BF; color: #5C4400; }
.pc-flag svg { width: 15px; height: 15px; }
.pc-flag.orange { background: #FFE8CC; color: #7A3A00; }
.pc-flag.red { background: #FFE3E3; color: #9B1C1C; }
.pc-stats { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 16px; border-radius: 12px; background: #fff; color: var(--s-ink); box-shadow: 0 6px 18px rgba(0, 0, 0, .18); overflow: hidden; }
.pc-stats > div { display: flex; flex-direction: column; align-items: center; padding: 9px 4px 10px; text-align: center; min-width: 0; }
.pc-stats > div + div { border-left: 1px solid var(--s-line); }
.pc-stats span { font-size: 11.5px; font-weight: 650; color: var(--s-mu); }
.pc-stats b { display: flex; align-items: baseline; gap: 3px; font-family: var(--display); font-weight: 900; font-size: 26px; line-height: 1.1; }
.pc-stats b i { font: 650 11px/1 var(--body); color: var(--s-mu); font-style: normal; }
.pc-rks { position: relative; display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 1.15fr); gap: 8px; margin-top: 8px; }
.pc-rk { border-radius: 12px; background: rgba(255, 255, 255, .93); color: var(--s-ink); padding: 8px 10px 9px; min-width: 0; }
.pc-rk h3 { margin: 0 0 4px; font: 600 10.5px/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: #8A1B33; text-align: center; }
.pc-minis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pc-rk.one .pc-minis { grid-template-columns: 1fr; }
.pc-minis > div { display: flex; flex-direction: column; align-items: center; text-align: center; min-width: 0; }
.pc-minis span { font-size: 11px; color: var(--s-mu); font-weight: 600; }
.pc-minis b { font-size: 17px; font-weight: 800; line-height: 1.25; }
.pc-minis small { font-size: 10.5px; color: var(--s-mu); white-space: nowrap; }
.pc-body { padding: 14px 20px 20px; }
.pc-own { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 14px; }
.pc-own b { font-weight: 750; }
.pc-own .mu { color: var(--s-mu); font-size: 13px; }
.pc-sold { margin-left: auto; font-size: 13px; color: var(--s-sub); }
.pc-you { padding: 2px 8px; border-radius: 999px; background: var(--s-brand-tint); color: var(--s-brand); font-size: 11.5px; font-weight: 800; }
.pc-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.pc-acts .sx-btn { gap: 7px; }
.pc-acts .sx-btn.ghost.on { background: #FFF8E3; border-color: #F0D58A; color: #7A5600; }
.pc-acts svg { flex: none; }
.pc-acts .sx-swapi { display: inline-flex; width: 20px; height: 20px; }
.pc-acts .sx-swapi svg { width: 100%; height: 100%; }
.pc-tabs { display: flex; margin: 16px 0 12px; }
.pc-tabs button { flex: 1; }
.pc-h { margin: 14px 0 8px; font: 600 11px/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--s-mu); }
.pc-h:first-child { margin-top: 2px; }
.pc-tw { margin: 0 -20px; padding: 0 20px; overflow-x: auto; }
.pc-tbl { width: 100%; min-width: 440px; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.pc-tbl.fx { min-width: 0; }
.pc-tbl.past { min-width: 500px; }
.pc-tbl.past td:first-child, .pc-tbl.past th:first-child { position: sticky; left: 0; background: var(--s-card); }
.pc-tbl th { padding: 6px 6px; font: 600 10.5px/1.2 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--s-mu); text-align: right; border-bottom: 1px solid var(--s-line); white-space: nowrap; }
.pc-tbl td { padding: 7px 6px; text-align: right; border-bottom: 1px solid var(--s-line); white-space: nowrap; }
.pc-tbl .l { text-align: left; }
.pc-tbl td:first-child, .pc-tbl th:first-child { padding-left: 0; }
.pc-tbl td:last-child, .pc-tbl th:last-child { padding-right: 0; }
.pc-tbl .mu { color: var(--s-mu); }
.pc-tbl small { font-size: 11px; color: var(--s-mu); font-weight: 600; }
.pc-tbl td.pt { font-weight: 800; color: var(--s-ink); }
.pc-tbl tr.dnp td { color: var(--s-mu); }
.pc-tbl tfoot td { border-bottom: 0; border-top: 2px solid var(--s-line2); font-weight: 750; }
.pc-tbl .pc-opp { display: inline-flex; align-items: center; gap: 7px; }
.pc-tbl .code { display: none; }
@media (max-width: 560px) { .pc-tbl .code { display: inline; } }
.pc-none { margin: 4px 0 6px; color: var(--s-sub); font-size: 14px; }
/* the Transfers list: the whole row opens his card */
.sx-players tr.pcr { cursor: pointer; }
.sx-players tr.pcr:hover td { background: #FAF6F7; }
@media (max-width: 560px) {
  .sx-sheet.pc2 { top: auto; bottom: 0; left: 0; right: 0; transform: none; width: 100%; max-height: calc(100dvh - 24px); border-radius: 18px 18px 0 0; }
  .pc-top { padding: 16px 14px 14px; }
  .pc-id { gap: 12px; }
  .pc-shirt svg { width: 70px; height: auto; }
  .pc-nm { font-size: 29px; }
  .pc-stats b { font-size: 22px; }
  .pc-rks { grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); gap: 6px; }
  .pc-rk { padding: 7px 4px 8px; }
  .pc-rk h3 { font-size: 9.5px; letter-spacing: .05em; }
  .pc-minis span { font-size: 10.5px; }
  .pc-minis b { font-size: 16px; }
  .pc-minis small { font-size: 10px; }
  .pc-body { padding: 12px 14px 18px; }
  .pc-tbl { min-width: 0; font-size: 12.5px; }
  .pc-tbl th, .pc-tbl td { padding-left: 3px; padding-right: 3px; }
  .pc-tbl th { font-size: 9.5px; letter-spacing: .03em; }
  .pc-tbl .full { display: none; }
  .pc-sold { flex-basis: 100%; margin-left: 0; }
  .pc-tw { margin: 0 -14px; padding: 0 14px; }
}
/* phones */
@media (max-width: 900px) {
  .sx-tabs { top: 52px; padding: 0 6px 0 4px; gap: 6px; }
  .sx-tabs-in { padding: 7px 0; }
  .sx-tabs-in button { padding: 0 13px; font-size: 14px; height: 34px; }
  .sx-page { padding: 14px 12px 48px; }
  .sx-grid, .sx-grid.g-gw, .sx-grid.g-team, .sx-grid.g-lg { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .sx-col { gap: 14px; }
  .sx-card { padding: 14px; border-radius: 14px; }
  .sx-hero { padding: 18px; }
  .sx-hero h1 { font-size: 32px; }
  .sx-hero dl { grid-template-columns: minmax(0, 1fr); }
  .sx-pitch { padding: 18px 2px 20px; min-height: 620px; }
  .sx-field { width: 94%; }
  .sx-rows { gap: 12px; }
  .sx-row { gap: 2px; }
  .sx-row.n4 .sx-pl { width: 74px; }
  .sx-row.n5 .sx-pl { width: 63px; }
  /* a row of six or more on a phone: two lines of three, full size, rather than six squeezed plates */
  .sx-row.n6, .sx-row.n7 { flex-wrap: wrap; row-gap: 12px; }
  .sx-row.n6 .sx-pl, .sx-row.n7 .sx-pl { width: 30%; }
  .sx-row.n5 .sx-shirt { height: 36px; }
  .sx-row.n5 .sx-shirt .kit { width: 34px; }
  .sx-row.n4 .sx-nm { font-size: 10px; padding: 2px 2px; }
  .sx-row.n5 .sx-nm { font-size: 9px; padding: 2px 1px; letter-spacing: -.01em; }
  .sx-row.n5 .sx-pv { font-size: 10.5px; }
  .sx-pl { width: 76px; }
  .sx-shirt { height: 42px; }
  .sx-shirt .kit { width: 40px; height: auto; }
  .sx-nm { font-size: 10.5px; padding: 2px 3px; }
  .sx-pv { font-size: 11.5px; }
  .sx-pv.mu { font-size: 10px; }
  .sx-gwnav > div { min-width: 0; }
  .sx-gwnav b { font-size: 19px; }
  .sx .hs { display: none; }
  .sx-fxr { grid-template-columns: minmax(0, 1fr) 70px minmax(0, 1fr); padding: 10px 8px; }
  .sx-ft .ell { display: none; }
  .sx-fbody { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .sx-rules li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .sx-band { flex-wrap: wrap; }
  .sx-band > div { flex: 1 1 45%; border-bottom: 1px solid var(--s-line); }
  .sx-pct { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sx-resr { grid-template-columns: minmax(0, 1fr) 84px minmax(0, 1fr); }
  .sx-rs { font-size: 13px; }
  .sx-rs .chip { display: none; }
  .sx-teamtop h1, .sx-lgtop h1 { font-size: 30px; }
  .sx-tcols { grid-template-columns: minmax(0, 1fr); }
  .sx-sheet { top: auto; bottom: 0; transform: translateX(-50%); width: 100vw; border-radius: 18px 18px 0 0; max-height: 88vh; }
  .sx-tabs-in { padding-right: 28px; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent); }
  .sx-bars { gap: 4px; }
  .sx-bar { flex: 1 0 28px; min-width: 28px; }
  .sx-bar b { font-size: 11px; }
  .sx-bar small { font-size: 9.5px; }
}
.sx-more { display: block; width: 100%; margin-top: 6px; padding: 12px; border: 0; border-top: 1px solid var(--s-line); background: none; color: var(--s-blue); font-weight: 700; font-size: 14px; cursor: pointer; }
.sx-more:hover { background: var(--s-hover); }
.sx-fin-l { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.sx-fin-l li { display: flex; align-items: center; gap: 12px; padding: 8px 6px; border-bottom: 1px solid var(--s-line); }
.sx-fin-l li:last-child { border-bottom: 0; }
.sx-fin-l .p { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; background: var(--s-soft); color: var(--s-sub); flex: none; }
.sx-fin-l .m1 .p { background: #F5C451; color: #1A1405; }
.sx-fin-l .m2 .p { background: #D0D5DD; color: #101828; }
.sx-fin-l .m3 .p { background: #E3A877; color: #2B1606; }
.sx-fin-l .m1 { padding: 12px 6px; }
.sx-fin-l .m1 b { font-size: 17px; }
.sx-fin-l li.me { background: var(--s-me); border-radius: 10px; }

/* ================= Pick team and Gameweek, the FPL way: the main column, and the team's strip beside it */
.sx-grid.g-pick { grid-template-columns: minmax(0, 1fr) 340px; }
.sx-scol { position: sticky; top: 130px; }
.sx-strip { background: radial-gradient(140% 70% at 100% 0%, var(--s-brand2) 0%, var(--s-brand) 60%); color: #fff; border-radius: 18px; padding: 20px 20px 14px; display: flex; flex-direction: column; box-shadow: 0 12px 30px rgba(92, 15, 36, .22); }
.sx-sid { display: flex; align-items: center; gap: 16px; min-width: 0; }
.sx-sid > div { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; }
.sx-sid .sx-spill { margin-top: 10px; }
.sx-skit { flex: none; display: flex; align-items: center; justify-content: center; padding: 10px 9px 8px; border-radius: 16px; background: rgba(255, 255, 255, .1); line-height: 0; }
.sx-skit .kitf { filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .25)); }
.sx-sid h2 { margin: 0; font-size: 22px; font-weight: 800; line-height: 1.15; letter-spacing: -.01em; }
/* the manager's kit, head to boots, standing on its own shadow */
.sx-sid h2 { overflow-wrap: anywhere; }
.sx-sid span.ell { font-size: 13.5px; color: rgba(255, 255, 255, .72); }
.sx-sacts { display: flex; margin-top: 12px; }
.sx-strip section { border-top: 1px solid rgba(255, 255, 255, .14); padding-top: 14px; margin-top: 14px; }
.sx-sh { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.sx-sh h3 { margin: 0; font-size: 16px; font-weight: 800; }
.sx-spill { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 999px; border: 0; background: rgba(255, 255, 255, .13); color: #fff; font-size: 12.5px; font-weight: 700; text-decoration: none; cursor: pointer; white-space: nowrap; }
.sx a.sx-spill { color: #fff; }
.sx-spill:hover { background: rgba(255, 255, 255, .22); }
.sx-sdl { margin: 0; display: flex; flex-direction: column; }
.sx-sdl div { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 6px 0; font-size: 14px; }
.sx-sdl dt { color: rgba(255, 255, 255, .78); }
.sx-sdl dd { margin: 0; font-weight: 800; display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.sx-sdl small { font-weight: 500; color: rgba(255, 255, 255, .6); font-size: 12px; }
.sx-mv { font-style: normal; font-size: 11px; font-weight: 800; padding: 2px 6px; border-radius: 999px; line-height: 1.2; }
.sx-mv.up { background: #12B76A; color: #fff; }
.sx-mv.down { background: #F04438; color: #fff; }
.sx-mv.same { color: rgba(255, 255, 255, .55); padding: 0 2px; }
.sx-favs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.sx-fav { font-size: 12.5px; font-weight: 800; padding: 5px 10px; border-radius: 7px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28); white-space: nowrap; }
.sx-snote { margin: 2px 0 6px; font-size: 13px; color: rgba(255, 255, 255, .72); line-height: 1.45; }
.sx-lock { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 999px; background: #F5C451; color: #1A1405; font-size: 11.5px; font-weight: 800; }
/* Pick team */
.sx-ptop { margin-bottom: 16px; }
.sx-ptop h1 { margin: 0 0 4px; font-family: var(--display); font-weight: 900; font-size: 38px; line-height: 1; }
.sx-ptop .sx-fine b { color: var(--s-ink); }
.sx-ptbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.sx-ptbar .sx-seg { margin: 0; }
.sx-tip { align-self: center; margin: 0 0 14px; padding: 6px 14px; border-radius: 999px; background: var(--s-soft); border: 1px solid var(--s-line); font-size: 13px; color: var(--s-sub); display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: center; text-align: center; }
.sx-swapbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 14px; padding: 7px 7px 7px 14px; border-radius: 12px; background: #FFF6D6; border: 1px solid #F5D46B; font-size: 14px; }
.sx-swapbar .sx-btn { flex: none; }
.sx-list td.sw { width: 30px; padding-left: 2px; padding-right: 0; }
.sx-list.pick td[data-sact] { cursor: pointer; }
.sx-list tr.dim td { opacity: .35; }
.sx-list.pick tr.tgt td { background: #EAF8F0; }
.sx-list.pick tr.sel td { background: #FDECEA; }
.sx-lnm { display: inline-flex; align-items: center; min-width: 0; }
.sx-menu { width: min(420px, calc(100vw - 24px)); }
.sx-mlist { display: flex; flex-direction: column; gap: 8px; }
.sx-mlist button { display: flex; align-items: center; gap: 12px; height: 50px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--s-line); background: var(--s-card); color: var(--s-ink); font-weight: 700; font-size: 15px; cursor: pointer; text-align: left; }
.sx-mlist button:hover:not(:disabled) { background: var(--s-hover); border-color: var(--s-line2); }
.sx-mlist button:disabled { opacity: .5; cursor: default; }
.sx-mlist .sx-cap.in { margin-left: 0; }
/* Gameweek: the header band with the week and its points */
.sx-gwcard.flush { padding: 0; overflow: hidden; }
.sx-gwhead { background: linear-gradient(180deg, var(--s-brand-tint) 0%, var(--s-card) 100%); padding-bottom: 4px; }
.sx-gwband { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; background: linear-gradient(100deg, var(--s-brand) 0%, var(--s-brand2) 100%); color: #fff; }
.sx-gwt { display: flex; flex-direction: column; align-items: center; text-align: center; min-width: 0; }
.sx-gwt b { font-size: 20px; font-weight: 800; letter-spacing: -.01em; }
.sx-gwt small { font-size: 12.5px; color: rgba(255, 255, 255, .75); }
.sx-gwb { flex: none; height: 34px; padding: 0 14px; border-radius: 9px; border: 0; background: rgba(255, 255, 255, .95); color: var(--s-brand); font-weight: 800; font-size: 13.5px; cursor: pointer; }
.sx-gwb:hover:not(:disabled) { background: #fff; }
.sx-gwb:disabled { opacity: .35; cursor: default; }
.sx-gwpts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) minmax(0, 1fr); gap: 10px; align-items: center; padding: 16px 18px 6px; max-width: 540px; margin: 0 auto; }
.sx-gwpts.one { grid-template-columns: minmax(0, 300px); justify-content: center; }
.sx-gwpts > div { display: flex; flex-direction: column; align-items: center; text-align: center; min-width: 0; }
.sx-gwpts span { font-size: 12.5px; font-weight: 600; color: var(--s-mu); }
.sx-gwpts b { font-family: var(--display); font-weight: 900; font-size: 34px; line-height: 1.05; }
.sx-gwpts .big { background: var(--s-brand); background-image: radial-gradient(120% 140% at 100% 0%, var(--s-brand2) 0%, transparent 60%); color: #fff; border-radius: 14px; padding: 12px 10px 10px; box-shadow: 0 8px 20px rgba(92, 15, 36, .22); }
.sx-gwpts .big span { color: rgba(255, 255, 255, .78); }
.sx-gwpts .big b { font-size: 54px; color: #fff; }
.sx-gwpts .big b.sm { font-family: var(--body); font-size: 17px; font-weight: 800; line-height: 1.3; margin: 3px 0 1px; }
.sx-gwpts .big small { font-size: 12px; color: rgba(255, 255, 255, .78); }
.sx-gwbody { padding: 14px 18px 18px; display: flex; flex-direction: column; }
.sx-gwbody > .sx-seg { align-self: center; margin-bottom: 14px; }
.sx-gwbody > .sx-link { margin-top: 12px; }
.sx-gwcard .sx-loading { min-height: 260px; display: flex; align-items: center; justify-content: center; }
.sx-subs { margin-top: 14px; }
.sx-subs h3 { margin: 0 0 6px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--s-mu); }
.sx-subs div { display: flex; gap: 16px; padding: 7px 0; border-top: 1px solid var(--s-line); font-size: 14px; font-weight: 650; }
.sx-subs .in { color: var(--s-green); }
.sx-subs .out { color: var(--s-red); }
/* fixtures, the way FPL lists them: by day, no boxes */
.sx-fday h3 { margin: 18px 0 2px; font-size: 14.5px; font-weight: 800; color: var(--s-ink); text-transform: none; letter-spacing: 0; }
.sx-fx { border: 0; border-bottom: 1px solid var(--s-line); border-radius: 0; margin: 0; background: none; }
.sx-fday .sx-fx:last-child { border-bottom: 0; }
.sx-fx.on { border-color: var(--s-line); }
.sx-fx.open { box-shadow: none; }
.sx-fxr { grid-template-columns: minmax(0, 1fr) 84px minmax(0, 1fr) 58px; padding: 12px 6px; border-radius: 10px; }
.sx-fmeta { grid-column: 4; font-size: 11.5px; font-weight: 600; color: var(--s-mu); text-align: right; white-space: nowrap; }
.sx-time { font-weight: 800; font-size: 15px; }
.sx-fbody { border-radius: 12px; border-top: 0; margin: 0 0 10px; }
@media (max-width: 1100px) {
  .sx-grid.g-pick { grid-template-columns: minmax(0, 1fr) 300px; }
}
@media (max-width: 900px) {
  .sx-grid.g-pick { grid-template-columns: minmax(0, 1fr); }
  .sx-scol { position: static; }
  .sx-ptop h1 { font-size: 30px; }
  .sx-pl { width: 76px; }
  .sx-swap { width: 22px; height: 22px; right: 0; }
  .sx-badges { left: 0; }
  .sx-cap, .sx-star { width: 18px; height: 18px; font-size: 10px; }
  .sx-pv2 { font-size: 9.5px; }
  .sx-gwband { padding: 12px 10px; }
  .sx-gwb { padding: 0 10px; }
  .sx-gwb span { display: none; }
  .sx-gwt b { font-size: 18px; }
  .sx-gwpts { padding: 14px 10px 4px; gap: 6px; }
  .sx-gwpts b { font-size: 26px; }
  .sx-gwpts .big b { font-size: 44px; }
  .sx-gwbody { padding: 12px 10px 14px; }
  .sx-fxr { grid-template-columns: minmax(0, 1fr) 70px minmax(0, 1fr); padding: 11px 2px; }
  .sx-fmeta { grid-column: 1 / -1; text-align: center; margin-top: -4px; }
  .sx-ptbar .sx-btn { padding: 0 12px; }
}

/* League, the FotMob way: a coloured strip before each team (green through, red out, gold champion), form as
   squares with the latest underlined, the next opponent's initials; the knockouts converge on the trophy */
.sx-std td.pos { padding-left: 14px; }
.sx-std td.fm, .sx-std th.fm { padding-left: 4px; padding-right: 4px; }
.sx-std td.nx, .sx-std th.nx { width: 46px; }
.sx-nx { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 7px; font-size: 11px; font-weight: 800; background: var(--s-soft); color: var(--s-sub); box-shadow: inset 0 0 0 1px var(--s-line2); }
.sx-nxc { width: 26px; height: 26px; }
.sx-legend .sx-z { border-radius: 3px; }
.sx-tiet { display: flex; justify-content: space-between; gap: 8px; padding: 6px 10px; font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--s-mu); background: var(--s-soft); border-bottom: 1px solid var(--s-line); }
.sx-tiet em { font-style: normal; font-weight: 700; color: var(--s-mu); }
.sx-tie.on { border-color: #F5B3AE; }
.sx-tie.on .sx-tiet em { color: #E5484D; }
.sx-bk { display: grid; grid-template-columns: minmax(0, 1fr) 22px minmax(0, 1.12fr) 22px minmax(0, 1fr); align-items: end; margin-bottom: 6px; }
.sx-bk.one { grid-template-columns: minmax(0, 340px); justify-content: center; }
.sx-bks, .sx-bkf { min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.sx-bkl { align-self: end; height: 50px; border-top: 2px solid var(--s-line2); }
.sx-bkf .sx-tie { border-color: #E8C76A; box-shadow: 0 6px 18px rgba(201, 154, 46, .16); }
.sx-bkf .sx-tiet { background: #FFF5D6; color: #7A5600; }
.sx-cup { display: flex; flex-direction: column; align-items: center; gap: 2px; color: #C9CFD9; text-align: center; padding-bottom: 4px; }
.sx-cup span { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--s-mu); }
.sx-cup b { font-size: 15px; font-weight: 800; color: var(--s-ink); max-width: 100%; }
.sx-cup.won { color: #E0A800; }
.sx-plh { margin: 18px 0 8px; font-size: 11.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--s-mu); }
.sx-plh:empty { display: none; }
.sx-kocard .sx-ties { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
@media (max-width: 900px) {
  .sx-bk { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .sx-bkl { display: none; }
  .sx-bks.r { order: 1; }
  .sx-bkf { order: 2; }
  .sx-std td.nx, .sx-std th.nx { width: 34px; padding-left: 2px; padding-right: 6px; }
}
.sx-trow.tbd > .ell { color: var(--s-sub); }
.sx-trow.tbd .chip { opacity: .55; }

/* Transfers, the FPL Draft way: every player with his owner's initials or a +, a watchlist, your proposed waivers
   (drag to reorder) and trades; the trade builder offers your squad against theirs, by role */
.sx-grid.g-mv { grid-template-columns: minmax(0, 1fr) 340px; }
.sx-mvwrap .sx-band { margin-bottom: 18px; }
.sx-mvcard { gap: 12px; }
.sx-mvtabs { display: flex; justify-content: center; }
.sx-places { margin-top: 16px; }
.sx-places summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 8px; padding: 6px 0; font-weight: 700; font-size: 14px; color: var(--s-sub); }
.sx-places summary::-webkit-details-marker { display: none; }
.sx-places summary span { font-family: var(--mono); font-size: 11.5px; padding: 1px 7px; border-radius: 999px; background: var(--panel2); }
.sx-places summary::after { content: "›"; margin-left: auto; font-size: 20px; transition: transform .15s; }
.sx-places[open] summary::after { transform: rotate(90deg); }
.sx-places[open] .sx-ties { margin-top: 8px; }
/* Transfers: role chips and a team picker under search and sort */
.sx-mvcard .lb-filters { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
.sx-roles { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.sx-roles .fchip { height: 32px; padding: 0 11px; font-size: 12.5px; }
.sx-roles .fchip[aria-pressed="true"] { border-color: var(--s-brand); background: var(--brand-tint); color: var(--s-brand); }
.sx-roles select { height: 32px; margin-left: auto; padding: 0 28px 0 10px; border-radius: 999px; border: 1px solid var(--edge); background-color: var(--btn); color: var(--sub); font: inherit; font-size: 12.5px; font-weight: 600; max-width: 200px; }
.sx-roles[hidden] { display: none; }
.sx-players tr.mine td { background: #FFFCF2; }
.sx-players td.c, .sx-players th.c { width: 64px; text-align: center; }
.sx-players .sx-tn > .sx-st { margin-left: 2px; }
.sx-eye { width: 40px; height: 34px; border-radius: 9px; border: 0; background: var(--s-soft); color: #B4BCC8; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.sx-eye:hover { color: var(--s-sub); }
.sx-eye[aria-pressed="true"] { background: var(--s-brand-tint); color: var(--s-brand); }
.sx-sign { width: 46px; height: 34px; border-radius: 9px; border: 0; font-size: 12.5px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
button.chip.sx-sign:hover { filter: brightness(1.08); transform: translateY(-1px); }
.chip.sx-sign.mine { cursor: default; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .7), 0 0 0 2px var(--s-ink); }
.sx-sign.add { background: linear-gradient(120deg, #19D3C5, #12B76A); color: #06231F; font-size: 24px; font-weight: 900; line-height: 1; }
.sx-sign.add:hover { filter: brightness(1.06); }
.sx-sign.add.on { background: var(--s-green-bg); color: var(--s-green); font-size: 18px; cursor: default; }
.sx-claims2 td { padding: 10px 8px; }
.sx-claims2 td.pri { width: 84px; white-space: nowrap; }
.sx-claims2 td.pri b { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 8px; background: var(--s-soft); margin-left: 6px; vertical-align: middle; }
.sx-claims2 th.in { color: var(--s-green); }
.sx-claims2 th.out { color: var(--s-red); }
.sx-claims2 td.in { box-shadow: inset 4px 0 0 #12B76A; padding-left: 14px; }
.sx-claims2 td.out { box-shadow: inset 4px 0 0 #F04438; padding-left: 14px; }
.sx-claims2 tr { transition: transform .12s; background: var(--s-card); }
.sx-claims2 tr.drag { transition: none; position: relative; z-index: 2; box-shadow: 0 8px 24px rgba(16, 24, 40, .18); }
.sx-grip { display: inline-flex; vertical-align: middle; color: #98A2B3; cursor: grab; touch-action: none; padding: 6px 4px; }
.sx-grip:active { cursor: grabbing; }
.sx-x { width: 36px; height: 34px; border-radius: 9px; border: 0; background: var(--s-soft); color: var(--s-sub); font-size: 20px; cursor: pointer; }
.sx-x:hover { background: var(--s-red-bg); color: var(--s-red); }
.sx-trade2 { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 12px; border-radius: 12px; background: var(--s-soft); }
.sx-trw { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; min-width: 0; font-size: 13.5px; }
.sx-trw b { max-width: 100%; }
.sx-trw i { flex-basis: 100%; font-style: normal; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--s-mu); }
.sx-trw > span:not(.chip) { padding: 2px 8px; border-radius: 6px; background: var(--s-card); border: 1px solid var(--s-line); font-weight: 600; }
.sx-tra { color: var(--s-mu); font-size: 18px; }
.sx-tracts { display: flex; gap: 6px; }
.sx-offers { border-color: #A6E9C2; box-shadow: 0 0 0 3px var(--s-green-bg); }
#mv-offers .sx-offers { margin-bottom: 16px; }
.sx-ofnote { margin: -6px 0 12px; }
.sx-ofl { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.sx-of { display: grid; grid-template-columns: minmax(160px, .7fr) minmax(0, 1fr) auto minmax(0, 1fr) auto; gap: 12px 18px; align-items: center; padding: 14px 16px; border-radius: 12px; background: var(--s-soft); }
.sx-ofh { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; min-width: 0; }
.sx-ofh b { font-size: 15px; }
.sx-ofh .sx-fine { flex-basis: 100%; }
.sx-ofs { min-width: 0; }
.sx-ofs i { display: block; margin-bottom: 6px; font-style: normal; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--s-mu); }
.sx-ofs ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sx-ofs .sx-tn { display: flex; }
.sx-of .sx-tracts { justify-content: flex-end; }
@media (max-width: 900px) {
  .sx-of { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .sx-ofh, .sx-of .sx-tracts { grid-column: 1 / -1; }
  .sx-of .sx-tra { display: none; }
  .sx-of .sx-tracts .sx-btn { flex: 1 1 0; }
}
.sx-tbcard .sx-ch select { flex: 1; min-width: 0; max-width: 360px; height: 40px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--s-line2); background: var(--s-card); color: var(--s-ink); font-size: 15px; font-weight: 700; }
.sx-tb { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.sx-tbc h3 { display: flex; flex-direction: column; margin: 0 0 8px; font-family: var(--display); font-weight: 900; font-size: 26px; line-height: 1; text-transform: uppercase; }
.sx-tbc h3 small { font-family: var(--body); text-transform: none; font-size: 13px; font-weight: 600; color: var(--s-mu); margin-top: 4px; }
.sx-tbg { margin-bottom: 12px; }
.sx-tbg h4 { display: inline-block; margin: 0 0 6px; padding: 5px 14px; border-radius: 0 10px 10px 0; background: var(--s-brand); color: #fff; font-size: 13.5px; font-weight: 800; }
.sx-tbr { width: 100%; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 0; border-bottom: 1px solid var(--s-line); background: none; color: var(--s-ink); font: inherit; text-align: left; cursor: pointer; }
.sx-tbr:hover:not(:disabled) { background: var(--s-hover); }
.sx-tbr > .ell { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sx-tbr small { font-size: 12px; color: var(--s-mu); }
.sx-tbr:disabled { opacity: .35; cursor: default; }
.sx-tick { flex: none; width: 22px; height: 22px; border-radius: 6px; border: 2px solid var(--s-line2); background: var(--s-card); }
.sx-tbr.on .sx-tick { border-color: #E5484D; background: #E5484D url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 16px no-repeat; }
.sx-tbr.on { background: #FFF5F5; }
.sx-tbf { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 14px; margin-top: 4px; border-top: 1px solid var(--s-line); position: sticky; bottom: 0; background: var(--s-card); }
.sx-tbf p { margin: 0; font-size: 14px; color: var(--s-sub); flex: 1 1 260px; }
.sx-tbf p.ok { color: var(--s-green); font-weight: 700; }
.sx-tbf p.bad { color: var(--s-red); font-weight: 700; }
@media (max-width: 1100px) { .sx-grid.g-mv { grid-template-columns: minmax(0, 1fr) 300px; } }
@media (max-width: 900px) {
  .sx-grid.g-mv { grid-template-columns: minmax(0, 1fr); }
  .sx-players td.c, .sx-players th.c { width: 48px; padding-left: 2px; padding-right: 2px; }
  .sx-eye { width: 36px; }
  .sx-sign { width: 40px; }
  .sx-tb { gap: 10px; }
  .sx-tbc h3 { font-size: 20px; }
  .sx-tbr { padding: 7px 4px; gap: 6px; }
  .sx-tbr .kit { display: none; }
  .sx-tbr b { font-size: 13px; }
  .sx-trade2 { grid-template-columns: minmax(0, 1fr); }
  .sx-tra { display: none; }
  .sx-claims2 td.pri { width: 64px; }
}
.sx-tbl.sx-claims2 .l { width: 42%; max-width: 0; }
.sx-claims2 .sx-tn { max-width: 100%; }
.sx-claims2 .sx-tn > span { min-width: 0; overflow: hidden; }
.sx-claims2 .sx-tn .sx-plink, .sx-claims2 .sx-tn small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.lb-tabs button { white-space: nowrap; }
@media (max-width: 900px) {
  .lb-tabs { align-self: stretch; }
  .lb-tabs button { flex: 1 1 0; padding: 0 8px; font-size: 13.5px; }
  .lb-tabs i { min-width: 18px; height: 18px; padding: 0 5px; font-size: 11px; }
}
@media (max-width: 900px) {
  .padrow { flex-direction: column; }
  .padrow > .simrow { flex: none; flex-direction: row; }
  .padrow > .simrow { margin-bottom: 0; gap: 8px; }
  .padrow > .simrow button { height: 30px; }
}

/* Home, the way FPL Draft lays out its Status page: a banner with the gameweek's points and place over each day's
   status; the deadlines; players of the week on name plates; the best players nobody owns; this gameweek's trades
   and the last deadline's moves, always shown, so a manager sees what is coming; beside them the table, the team of
   the week and who is not playing. Each card has a title band. */
.sx-hc { padding-top: 0; }
.sx-hc > .sx-hch { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 -20px 16px; padding: 14px 20px; border-radius: 15px 15px 0 0; border-bottom: 1px solid #F1E4E8; background: linear-gradient(100deg, #FBEFF2 0%, #FFF8E8 100%); }
.sx-hc > .sx-hch h2 { margin: 0; font-size: 17px; font-weight: 800; letter-spacing: -.01em; color: var(--s-brand); display: flex; align-items: center; gap: 8px; }
.sx-hci { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: var(--s-brand); color: #F5C451; font-size: 13px; line-height: 1; }
.sx-hc > .sx-hch .sx-link { align-self: center; }
.sx-hc > .sx-hch .sx-fine { text-align: right; }
.sx-empty { margin: 0; padding: 18px 16px; border-radius: 12px; border: 1px dashed var(--s-line2); background: var(--s-soft); color: var(--s-mu); font-size: 13.5px; line-height: 1.45; text-align: center; }

/* Current team: a switch between the account's leagues */
.sx-curteam { display: flex; margin-bottom: 16px; }
.sx-curteam label { display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 700; color: var(--s-ink); min-width: 0; max-width: 100%; }
.sx-curteam select { height: 44px; min-width: 260px; max-width: 100%; padding: 0 40px 0 14px; border-radius: 10px; border: 1px solid var(--s-line2); background: var(--s-card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' 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 14px center; -webkit-appearance: none; appearance: none; color: var(--s-ink); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.sx-curteam select:focus { outline: 2px solid var(--s-brand); outline-offset: 1px; }

/* the gameweek banner */
.sx-gwbn { padding: 0; overflow: hidden; }
.sx-gwbb { position: relative; padding: 18px 20px 24px; color: #fff; text-align: center; background: radial-gradient(130% 170% at 100% 0%, var(--s-brand2) 0%, var(--s-brand) 58%, #3E0A18 100%); }
.sx-gwbb::after { content: ""; position: absolute; right: -70px; top: -80px; width: 230px; height: 230px; border-radius: 50%; background: radial-gradient(circle, rgba(245, 196, 81, .26), transparent 70%); pointer-events: none; }
.sx-gwp { display: inline-flex; align-items: center; justify-content: center; height: 28px; padding: 0 16px; border-radius: 999px; background: linear-gradient(90deg, #F5C451, #FFDD8A); color: #3A2600; font-weight: 800; font-size: 13.5px; white-space: nowrap; }
.sx-gwst { position: absolute; right: 14px; top: 16px; z-index: 1; }
.sx-gwbs { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: 540px; margin: 16px auto 0; }
.sx-gwbs > div { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.sx-gwbs span { font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, .78); }
.sx-gwbs b { margin-top: 4px; display: inline-flex; align-items: center; gap: 8px; font-family: var(--display); font-weight: 900; font-size: 58px; line-height: 1; color: #fff; }
.sx-gwbs b .sx-mv { font-family: var(--body); font-size: 12px; }
.sx-gwbs b .nil { font-style: normal; opacity: .45; font-weight: 700; }
.sx-gwbs b .sx-mv.same { color: rgba(255, 255, 255, .6); }
.sx-ds { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; padding: 3px 10px; border-radius: 999px; white-space: nowrap; background: var(--s-soft); color: var(--s-sub); border: 1px solid var(--s-line); }
.sx-ds.live { background: #FEECEB; color: #D92D20; border-color: #FBD0CC; }
.sx-ds.prov { background: var(--s-gold-bg); color: var(--s-gold); border-color: #F3E2A8; }
.sx-ds.final { background: var(--s-green-bg); color: var(--s-green); border-color: #BDE8CF; }
.sx-days { width: 100%; border-collapse: collapse; font-size: 14px; }
.sx-days th { padding: 12px 6px 8px; font-size: 11.5px; font-weight: 700; color: var(--s-mu); text-transform: uppercase; letter-spacing: .04em; text-align: left; }
.sx-days th.d { padding-left: 0; }
.sx-days th.s { text-align: right; padding-right: 0; }
.sx-days td { padding: 10px 6px; border-top: 1px solid var(--s-line); vertical-align: middle; }
.sx-days td.d { white-space: nowrap; font-weight: 700; padding-left: 0; width: 1%; }
.sx-days td.m { color: var(--s-sub); }
.sx-days td.m span { display: inline-block; margin-right: 12px; white-space: nowrap; }
.sx-days td.s { text-align: right; white-space: nowrap; padding-right: 0; width: 1%; }
.sx-days td.s small { display: block; margin-top: 2px; font-size: 12px; color: var(--s-mu); }
.sx-gwbn .sx-days { margin: 2px 20px 0; width: calc(100% - 40px); }
.sx-gwbn .sx-provn { margin: 8px 20px 0; }
.sx-gwbar { display: flex; align-items: center; justify-content: center; width: calc(100% - 40px); height: 44px; margin: 14px 20px 18px; padding: 0 12px; border: 0; border-radius: 10px; background: linear-gradient(90deg, #FBEFF2, #FFF4D6); color: var(--s-brand); font: inherit; font-weight: 800; font-size: 14px; cursor: pointer; }
.sx-gwbar:hover { filter: brightness(.97); }

/* the deadlines: a banner, a tile each */
.sx-dlb { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); border-radius: 14px; overflow: hidden; background: radial-gradient(130% 170% at 100% 0%, var(--s-brand2) 0%, var(--s-brand) 65%, #3E0A18 100%); }
.sx-dlt { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 18px 14px 20px; color: #fff; text-align: center; min-width: 0; }
.sx-dlt + .sx-dlt { border-left: 1px solid rgba(255, 255, 255, .16); }
.sx-dlt b { font-size: 19px; font-weight: 800; letter-spacing: -.01em; line-height: 1.25; }
.sx-dlt small { font-size: 12.5px; color: rgba(255, 255, 255, .75); }
.sx-dlt.on .sx-gwp { background: linear-gradient(90deg, #12B76A, #5CE1A0); color: #fff; }

/* players of the week, on name plates */
.sx-potw { display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none; padding: 2px 2px 4px; }
.sx-potw::-webkit-scrollbar { display: none; }
.sx-pw { flex: 0 0 136px; display: flex; flex-direction: column; align-items: center; text-align: center; min-width: 0; }
.sx-pw .sh { height: 66px; display: flex; align-items: flex-end; }
.sx-pw .pwp { display: block; width: 100%; margin-top: 6px; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 6px rgba(16, 24, 40, .1); }
.sx-pw .pwn { display: block; padding: 6px 6px 5px; background: var(--s-brand); }
.sx-pw .pwn .sx-plink { display: block; width: 100%; color: #fff; font-weight: 700; font-size: 13px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sx-pw .pwg { display: flex; flex-direction: row; justify-content: space-between; gap: 6px; padding: 4px 9px; background: linear-gradient(90deg, #F5C451, #FFDD8A); color: #3A2600; font-size: 12px; font-weight: 700; white-space: nowrap; }
.sx-pw .pwg i { font-style: normal; font-weight: 900; }
.sx-pw small { margin-top: 6px; font-size: 12px; color: var(--s-sub); max-width: 100%; }
.sx-pw.me .pwn { background: #3E0A18; }

/* the best players nobody owns */
.sx-hrole { margin-bottom: 12px; }
.sx-avl .sx-tn > span { min-width: 0; }
.sx-avl .sx-tn .sx-plink { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sx-avl .sx-tn > .sx-st { flex: none; }
.sx-avl td.nx, .sx-avl th.nx { white-space: nowrap; text-align: center; padding-left: 4px; padding-right: 4px; }
.sx-avl td.nx i { font-style: normal; display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 22px; padding: 0 4px; margin: 1px; border-radius: 6px; font-size: 10.5px; font-weight: 800; background: var(--s-soft); color: var(--s-sub); box-shadow: inset 0 0 0 1px var(--s-line2); }
.sx-avl td.nx i.no { min-width: 22px; color: var(--s-mu); box-shadow: none; background: none; }

/* trades and transactions: lists laid out as tables, a header row on top */
.sx-hc .sx-seg { margin-bottom: 12px; }
.sx-trdec { margin: 0 0 12px; font-size: 14px; color: var(--s-sub); }
.sx-trnews { margin-bottom: 12px; }
.sx-trl, .sx-tx { list-style: none; margin: 0; padding: 0; }
.sx-trl li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) minmax(0, 1fr) 128px; grid-template-areas: "by trd to st"; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--s-line); font-size: 13.5px; }
.sx-trl li:last-child, .sx-tx li:last-child { border-bottom: 0; }
.sx-trl .by { grid-area: by; min-width: 0; }
.sx-trl .trd { grid-area: trd; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; min-width: 0; }
.sx-trl .trd span { font-weight: 650; }
.sx-trl .trd i { font-style: normal; font-size: 12px; color: var(--s-mu); }
.sx-trl .to { grid-area: to; min-width: 0; }
.sx-trl .st { grid-area: st; justify-self: end; display: flex; align-items: center; gap: 6px; }
.sx-trl li.me { background: var(--s-me); margin: 0 -8px; padding-left: 8px; padding-right: 8px; border-radius: 8px; }
.sx-tx li { display: grid; grid-template-columns: 22px minmax(0, 1fr) minmax(0, 1.2fr) 150px; grid-template-areas: "pri mg io res"; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--s-line); font-size: 13.5px; }
.sx-tx .pri { grid-area: pri; font-family: var(--mono); font-size: 12px; color: var(--s-mu); text-align: center; }
.sx-tx .mg { grid-area: mg; min-width: 0; }
.sx-tx .sx-io { grid-area: io; }
.sx-tx .res { grid-area: res; text-align: right; font-size: 12.5px; font-weight: 750; line-height: 1.3; }
.sx-tx li.ok .res { color: var(--s-green); }
.sx-tx li.no .res { color: var(--s-red); }
.sx-tx li.no .sx-io { opacity: .7; }
.sx-tx li .res.mu { color: var(--s-mu); font-weight: 600; }
.sx-tx li.me { background: var(--s-me); margin: 0 -8px; padding-left: 8px; padding-right: 8px; border-radius: 8px; }
.sx-trl li.hd, .sx-tx li.hd, .sx-totw li.hd, .sx-outl li.hd { padding: 0 0 8px; background: none; }
.sx-trl li.hd > span, .sx-tx li.hd > span, .sx-totw li.hd > span, .sx-outl li.hd > span { font-family: var(--body); font-size: 11.5px; font-weight: 700; color: var(--s-mu); text-transform: uppercase; letter-spacing: .04em; opacity: 1; }
.sx-trl li.none, .sx-tx li.none { display: block; margin-top: 8px; padding: 18px 14px; border: 1px dashed var(--s-line2); border-radius: 10px; background: var(--s-soft); color: var(--s-mu); text-align: center; line-height: 1.45; }
.sx-trn { margin-top: 12px; }
.sx-io { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.sx-io > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sx-io .in { color: var(--s-green); font-weight: 650; }
.sx-io .out { color: var(--s-red); font-weight: 650; }
.sx-io .mu { color: var(--s-mu); }

/* the table, the team of the week, not playing */
.sx-ltab .sx-mini td.pos { white-space: nowrap; text-align: left; padding-left: 4px; width: 1%; }
.sx-ltab .sx-mini td.pos b { display: inline-block; min-width: 16px; }
.sx-ltab .sx-mini th:first-child { text-align: left; padding-left: 4px; }
.sx-ltab .sx-mv { margin-left: 4px; font-size: 10px; padding: 1px 5px; }
.sx-ltab .sx-mv.same { color: var(--s-mu); }
.sx-ltab .sx-tn > span { line-height: 1.2; }
.sx-ltab .sx-tn b { font-size: 14px; }
.sx-totw, .sx-outl { list-style: none; margin: 0; padding: 0; }
.sx-totw li { display: grid; grid-template-columns: 40px minmax(0, 1fr) 30px 36px; gap: 8px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--s-line); font-size: 13.5px; }
.sx-totw li.hd .pt { text-align: right; }
.sx-totw li:last-child, .sx-outl li:last-child { border-bottom: 0; }
.sx-totw li.me, .sx-outl li.me { background: var(--s-me); margin: 0 -8px; padding-left: 8px; padding-right: 8px; border-radius: 8px; }
.sx-totw .r { font-family: var(--mono); font-size: 10.5px; font-weight: 700; color: var(--s-mu); }
.sx-totw .sx-tn { gap: 8px; }
.sx-totw .sx-plink { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 650; }
.sx-totw b { text-align: right; font-weight: 800; }
.sx-totw .fa { width: 18px; font-size: 10px; font-weight: 800; color: var(--s-mu); text-align: center; }
.sx-outl li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--s-line); font-size: 13.5px; }
.sx-outl .sx-tn > span { min-width: 0; }
.sx-outl .sx-plink { font-weight: 650; }
.sx-card > .sx-outl + .sx-fine { margin-top: 8px; }

@media (max-width: 900px) {
  .sx-curteam label { flex: 1; }
  .sx-curteam select { flex: 1; min-width: 0; }
  .sx-hc > .sx-hch { margin: 0 -14px 14px; padding: 12px 14px; border-radius: 13px 13px 0 0; }
  .sx-hc > .sx-hch h2 { font-size: 16px; }
  .sx-gwbb { padding: 16px 14px 20px; }
  .sx-gwst { right: 10px; top: 14px; }
  .sx-gwbs b { font-size: 46px; }
  .sx-gwbn .sx-days { margin: 2px 14px 0; width: calc(100% - 28px); }
  .sx-gwbn .sx-provn { margin: 8px 14px 0; }
  .sx-gwbar { width: calc(100% - 28px); margin: 12px 14px 14px; }
  .sx-days thead { display: none; }
  .sx-days tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "d s" "m s"; column-gap: 10px; padding: 10px 0; border-top: 1px solid var(--s-line); }
  .sx-days td { border-top: 0; padding: 0; }
  .sx-days td.d { grid-area: d; width: auto; }
  .sx-days td.m { grid-area: m; padding-top: 2px; font-size: 13px; }
  .sx-days td.m span { margin-right: 10px; }
  .sx-days td.s { grid-area: s; align-self: center; width: auto; }
  .sx-dlb { grid-template-columns: minmax(0, 1fr); }
  .sx-dlt + .sx-dlt { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .16); }
  .sx-dlt b { font-size: 18px; }
  .sx-trl li { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "by to" "trd st"; row-gap: 6px; }
  .sx-trl li.hd, .sx-tx li.hd { display: none; }
  .sx-trl .to { justify-self: end; }
  .sx-tx li { grid-template-columns: 18px minmax(0, 1fr) auto; grid-template-areas: "pri mg res" ". io io"; row-gap: 4px; column-gap: 8px; }
  .sx-tx .res { max-width: 150px; }
}

/* availability flags, as FPL shows them: a triangle by a name, yellow, orange or red */
.avf { display: inline-flex; flex: none; width: 16px; height: 16px; margin-left: 6px; vertical-align: -2px; color: #FFD43B; }
.avf svg { width: 100%; height: 100%; display: block; }
.avf.orange { color: #FF922B; }
.avf.red { color: #E03131; }
.avf.red svg path:nth-child(2) { stroke: #fff; }
.avf.red svg circle { fill: #fff; }
.pid h1 .avf { width: 26px; height: 26px; margin-left: 10px; vertical-align: 2px; }
.avl { display: flex; align-items: flex-start; gap: 8px; margin-top: 8px; padding: 8px 10px; border-radius: 10px; font-size: 13px; font-weight: 600; line-height: 1.35; background: #FFF6D6; color: #6B5100; }
.avl svg { flex: none; width: 18px; height: 18px; margin-top: 1px; color: #FFD43B; }
.avl.orange { background: #FFEBD9; color: #8A3F00; }
.avl.orange svg { color: #FF922B; }
.avl.red { background: #FDE8E8; color: #A51D1D; }
.avl.red svg { color: #E03131; }
.avl.red svg path:nth-child(2) { stroke: #fff; }
.avl.red svg circle { fill: #fff; }
.sx-badges .avf { margin: 0; width: 20px; height: 20px; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .3)); }
.nmf { display: flex; align-items: center; min-width: 0; }

/* ---- the draft room (a draft league): whose pick it is and his clock beside your queue, your squad and every pick;
   the players to draft from, or the board, round by round. On a phone, one pane at a time under the clock. */
.droom { min-height: 100vh; min-height: 100dvh; background: var(--bg); }
.dwrap { max-width: 1400px; margin: 0 auto; padding: 16px 20px 40px; }
.dgrid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
/* your clock, queue and squad on the right of the list, as FPL Draft has them (Vijay, 27 Oct 2026); first on a phone */
.dgrid > .dside { order: 2; }
.dcol { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.dside { position: sticky; top: 76px; max-height: calc(100vh - 92px); overflow-y: auto; scrollbar-width: thin; padding-bottom: 2px; }
.droom .card { padding: 14px 16px; }
.dh-row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.dh { margin: 0; font-family: var(--display); font-weight: 900; font-size: 22px; line-height: 1.1; }
/* the clock: maroon while others pick, gold when it is yours */
.dclock { border-radius: 16px; padding: 14px 16px 16px; color: #fff; box-shadow: 0 8px 24px rgba(92, 15, 36, .22);
  background: radial-gradient(90% 140% at 100% 0%, rgba(245, 196, 81, .25) 0%, rgba(245, 196, 81, 0) 55%), linear-gradient(115deg, #45091A 0%, #6E1029 55%, #8A1B33 100%); }
.dclock.mine { color: #1A1405; background: linear-gradient(115deg, #F5C451 0%, #FFD978 100%); box-shadow: 0 8px 28px rgba(201, 154, 46, .45); }
.dclock.paused { filter: saturate(.55); }
.dc-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 22px; }
.dclock .eyebrow { color: rgba(255, 255, 255, .78); }
.dclock.mine .eyebrow { color: rgba(26, 20, 5, .72); }
.dc-main { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; }
.dc-who { min-width: 0; }
.dc-team { display: flex; align-items: center; gap: 10px; min-width: 0; }
.dc-team > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.dc-team b { font-size: 18px; font-weight: 800; line-height: 1.2; }
.dc-team small { font-size: 12.5px; color: rgba(255, 255, 255, .78); }
.dc-you { display: block; font-family: var(--display); font-size: 36px; font-weight: 900; line-height: 1; }
.dc-sub { display: block; margin-top: 5px; font-size: 13px; line-height: 1.35; }
.dc-ring { position: relative; flex: none; width: 72px; height: 72px; }
.dc-ring svg { width: 72px; height: 72px; display: block; }
.dc-ring .tr { fill: none; stroke: rgba(255, 255, 255, .18); stroke-width: 6; }
.dc-ring .arc { fill: none; stroke: #F5C451; stroke-width: 6; stroke-linecap: round; transition: stroke-dashoffset .25s linear; }
.dclock.mine .dc-ring .tr { stroke: rgba(26, 20, 5, .14); }
.dclock.mine .dc-ring .arc { stroke: #5C0F24; }
.dc-ring .arc.hot { stroke: #E5484D !important; }
.dc-ring b { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--display); font-size: 27px; font-weight: 900; }
.dc-note { margin: 10px 0 0; font-size: 13px; opacity: .9; }
.dc-msg { margin: 8px 0 0; font-size: 15px; }
.dc-next { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; margin-top: 12px; font-size: 12px; }
.dc-next > span:first-child { margin-right: 4px; opacity: .8; }
.dc-next .chip.me { outline: 2px solid #F5C451; outline-offset: 1px; }
.dclock.mine .dc-next .chip.me { outline-color: #5C0F24; }
/* queue, squad, picks */
.dq { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.dq li { display: flex; align-items: center; gap: 8px; padding: 6px; border-radius: 10px; background: var(--panel2); font-size: 13.5px; font-weight: 600; }
.dq li.nofit { opacity: .55; }
.dq-n { flex: none; width: 20px; text-align: center; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.dq-p { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.dq-p small { font-size: 11.5px; font-weight: 500; color: var(--muted); }
.dq-b { display: flex; gap: 2px; flex: none; }
.dq-b button { width: 26px; height: 26px; border: 0; border-radius: 7px; background: transparent; color: var(--sub); font-size: 14px; font-weight: 700; }
.dq-b button:hover:not(:disabled) { background: #E8EBF0; }
.dq-b button:disabled { opacity: .25; }
.ds-g { margin-top: 10px; }
.ds-g:first-of-type { margin-top: 2px; }
.ds-h { font: 600 10.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ds-g ul { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 3px; }
.ds-g li { display: flex; align-items: center; gap: 8px; min-height: 32px; padding: 4px 8px; border-radius: 8px; background: var(--panel2); font-size: 13.5px; font-weight: 600; }
.ds-g li .ell { flex: 1; }
.ds-g li small { font-size: 11.5px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.ds-g li.open { background: transparent; border: 1px dashed var(--line2); color: var(--dim); font-weight: 500; }
.dpl { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; max-height: 420px; overflow-y: auto; scrollbar-width: thin; }
.dpl li { display: flex; align-items: center; gap: 8px; padding: 6px 4px; border-bottom: 1px solid var(--line); }
.dpl li:last-child { border-bottom: 0; }
.dpl li.me { background: #FFF8E3; border-radius: 8px; }
.dpl-n { flex: none; width: 36px; font: 600 12px/1 var(--mono); color: var(--muted); }
.dpl-p { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.dpl-p b { font-size: 13.5px; }
.dpl-p small { font-size: 11.5px; color: var(--muted); }
.dtag { flex: none; font-style: normal; font-size: 10.5px; font-weight: 700; padding: 2px 7px; border-radius: 999px; background: #F2F4F7; color: var(--sub); white-space: nowrap; }
/* the main pane: players or the board */
.dseg { display: inline-flex; align-self: flex-start; padding: 3px; gap: 2px; border-radius: 11px; background: #E6E9EF; }
.dseg button { height: 34px; padding: 0 18px; border: 0; border-radius: 8px; background: none; color: var(--sub); font-weight: 650; font-size: 14px; }
.dseg button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(16, 24, 40, .14); }
.droom[data-dview="players"] #d-board, .droom[data-dview="board"] #d-pool { display: none; }
.dpf { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 12px 0 2px; }
.dchips { display: flex; gap: 6px; flex-wrap: wrap; }
.dshow { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--sub); white-space: nowrap; }
.dpt th.c, .dpt td.c { width: 1%; text-align: center; white-space: nowrap; }
.dpt tr.taken td { opacity: .5; }
.dpt tr.queued td { background: #FFFCF0; }
.dq-add { width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line2); background: #fff; color: var(--sub); font-size: 16px; font-weight: 800; line-height: 1; }
.dq-add:hover { border-color: #98A2B3; color: var(--ink); }
.dq-add[aria-pressed="true"] { background: #FFF5D6; border-color: #F0D58A; color: #8A6400; }
.btn.dpick { height: 34px; padding: 0 14px; border-radius: 9px; border-color: transparent; background: #F2F4F7; color: #98A2B3; font-weight: 750; }
.btn.dpick.on { background: var(--brand); color: #fff; box-shadow: 0 3px 0 #3A0716; }
.btn.dpick.on:hover { background: #7A1430; color: #fff; }
.btn.dpick.on:active { transform: translateY(2px); box-shadow: 0 1px 0 #3A0716; }
.dturn { color: var(--brand); font-weight: 700; }
.dtaken { display: inline-flex; }
/* the board: a column a team (round 1's order), a row a round; a cell a pick, tinted by role as FPL's board is */
.db-w { overflow-x: auto; margin: 0 -16px; padding: 0 16px 4px; scrollbar-width: thin; }
.dbt { border-collapse: separate; border-spacing: 4px; font-size: 12px; }
.dbt th { padding: 4px 6px; font-weight: 700; font-size: 12px; text-align: left; white-space: nowrap; max-width: 130px; overflow: hidden; text-overflow: ellipsis; }
.dbt th .chip { margin-right: 6px; vertical-align: middle; }
.dbt th.me { color: var(--brand); }
.dbt th.rd { width: 30px; text-align: center; color: var(--muted); font: 600 11px/1.2 var(--mono); }
.dbt th.rd small { display: block; font-size: 10px; }
.dbt td { min-width: 104px; max-width: 128px; height: 44px; padding: 5px 7px; border-radius: 8px; background: #F5F6F8; vertical-align: top; }
.dbt td b { display: block; font-size: 12.5px; font-weight: 700; line-height: 1.25; }
.dbt td small { display: block; font-size: 10.5px; color: var(--muted); white-space: nowrap; }
.dbt td small.mu { color: #C2C8D2; }
.dbt td.r-WK { background: #FFF1DD; }
.dbt td.r-BAT { background: #E6EFFF; }
.dbt td.r-AR { background: #E6F6EC; }
.dbt td.r-BOWL { background: #F2E9FC; }
.dbt td.me { box-shadow: inset 0 0 0 2px rgba(92, 15, 36, .32); }
.dbt td.now { background: #FFF1C2; box-shadow: inset 0 0 0 2px #F5C451; }
.dboard.done { margin-top: 16px; }
/* our report on a draft */
.drep { margin-top: 16px; }
.drank { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 6px; }
.drank li { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; background: var(--panel2); }
.drank li.me { background: #FFF8E3; }
.drank b { flex: 1; min-width: 0; font-size: 14px; }
.dr-k { flex: none; width: 18px; font: 600 12px/1 var(--mono); color: var(--muted); }
.dr-w { flex: none; font-weight: 800; font-size: 13px; }
.dvals { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 14px; }
.dvals h3 { margin: 0; font: 600 11px/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.dvals ul { list-style: none; margin: 6px 0 0; padding: 0; }
.dvals li { display: flex; align-items: center; gap: 8px; padding: 6px 0; font-size: 13.5px; border-bottom: 1px solid var(--line); }
.dvals li .ell { flex: 1; min-width: 0; }
.dvals small { color: var(--muted); font-size: 12px; white-space: nowrap; }
/* the phone: the clock stays at the top, one pane under it, chosen from a row of tabs */
.dmob { display: none; gap: 3px; padding: 3px; border-radius: 12px; background: #E6E9EF; overflow-x: auto; scrollbar-width: none; }
.dmob::-webkit-scrollbar { display: none; }
.dmob button { flex: 1; height: 36px; padding: 0 10px; border: 0; border-radius: 9px; background: none; color: var(--sub); font-weight: 650; font-size: 13.5px; white-space: nowrap; }
.dmob button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(16, 24, 40, .14); }
.dmob i { font-style: normal; font-size: 11px; font-weight: 800; margin-left: 4px; color: var(--brand); }
/* the spotlight of the draft room: the latest pick, big, in his IPL kit in a box in the colours of the team that took
   him; the picks before it, small and all of one size, move right as each new pick lands and fade off the edge */
.dspot { position: relative; }
.ds-rail { display: flex; align-items: center; gap: 10px; list-style: none; margin: 0; padding: 2px 0 4px; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 74%, transparent 100%); mask-image: linear-gradient(90deg, #000 0%, #000 74%, transparent 100%); }
.ds-top { position: relative; flex: 0 0 auto; width: min(440px, 58%); display: flex; align-items: center; gap: 16px; padding: 14px 18px 14px 14px; border-radius: 18px; overflow: hidden;
  background: linear-gradient(105deg, color-mix(in srgb, var(--tc) 30%, #FFFFFF) 0%, color-mix(in srgb, var(--tc) 9%, #FFFFFF) 78%);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tc) 62%, transparent), 0 16px 34px -20px var(--tc); }
.ds-top::before { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 2px var(--tc), inset 0 0 26px -6px var(--tc); opacity: .2; animation: breathe 2.6s ease-in-out infinite; pointer-events: none; }
.ds-top.arrive { animation: bidin .6s cubic-bezier(.2, .9, .25, 1.12) both; }
.ds-top.arrive::after { content: ""; position: absolute; top: 0; bottom: 0; left: -45%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent); transform: skewX(-18deg); animation: sweep .9s ease-out .1s both; pointer-events: none; }
.ds-kit { flex: none; display: grid; place-items: center; border-radius: 14px;
  background: radial-gradient(circle at 50% 36%, color-mix(in srgb, var(--tc) 38%, #FFFFFF) 0%, color-mix(in srgb, var(--tc) 78%, #000000) 100%);
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--tc) 55%, #FFFFFF), 0 8px 18px -10px var(--tc); }
.ds-kit svg { display: block; filter: drop-shadow(0 5px 6px rgba(0, 0, 0, .28)); }
.ds-top .ds-kit { width: 116px; height: 116px; border-radius: 16px; }
.ds-txt { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ds-eb { font: 600 11px/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: color-mix(in srgb, var(--tc) 45%, #1F2430); }
.ds-nm { font-family: var(--display); font-size: 32px; font-weight: 900; line-height: .98; color: var(--ink); overflow-wrap: anywhere; }
.ds-meta { font-size: 13px; color: var(--sub); }
.ds-by { display: flex; align-items: center; gap: 10px; margin-top: 7px; min-width: 0; }
.ds-by > span:last-child { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
.ds-by b { font-size: 15px; font-weight: 750; color: var(--ink); }
.ds-by small { font-size: 12px; color: var(--sub); }
.ds-top.me .ds-by b::after { content: "YOUR PICK"; margin-left: 8px; padding: 2px 6px; border-radius: 5px; font: 700 9.5px/1 var(--mono); letter-spacing: .06em; background: var(--gold-fill); color: var(--gold-ink); vertical-align: 2px; }
.ds-sm { position: relative; flex: 0 0 116px; height: 128px; box-sizing: border-box; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 10px 8px; border-radius: 14px; text-align: center;
  background: color-mix(in srgb, var(--tc) 9%, #FFFFFF); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tc) 34%, transparent); transform-origin: left center; }
.ds-sm .ds-kit { width: 58px; height: 58px; border-radius: 12px; }
.ds-sm b { display: block; max-width: 100%; font-size: 13px; font-weight: 700; color: var(--ink); }
.ds-sb { display: flex; align-items: center; gap: 5px; font: 600 11px/1 var(--mono); color: var(--sub); }
.ds-sm.me { box-shadow: inset 0 0 0 2px var(--gold-fill); }
.ds-sm:nth-child(3) { opacity: .9; }
.ds-sm:nth-child(4) { opacity: .78; }
.ds-sm:nth-child(5) { opacity: .66; }
.ds-sm:nth-child(n+6) { opacity: .5; }
.ds-wait { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border-radius: 18px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.ds-wait .ds-eb { color: var(--muted); }
.ds-wait b { font-family: var(--display); font-size: 26px; font-weight: 900; line-height: 1; }
.ds-wait small { font-size: 13px; color: var(--sub); }
@media (prefers-reduced-motion: reduce) { .ds-top::before, .ds-top.arrive, .ds-top.arrive::after { animation: none; } }
@keyframes popin { from { transform: translateY(10px) scale(.97); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 1100px) { .dgrid { grid-template-columns: minmax(0, 1fr) 300px; } }
@media (max-width: 900px) {
  .dwrap { padding: 10px 10px 30px; }
  .dgrid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .dgrid > .dside { order: 0; }
  .dside { position: static; max-height: none; overflow: visible; gap: 10px; }
  .dmain { gap: 10px; }
  .dclock { position: sticky; top: 52px; z-index: 4; padding: 12px 14px 14px; }
  .ds-top { width: 74%; gap: 12px; padding: 10px 12px 10px 10px; border-radius: 14px; }
  .ds-top .ds-kit { width: 76px; height: 76px; border-radius: 12px; }
  .ds-top .ds-kit svg { width: 62px; height: auto; }
  .ds-nm { font-size: 22px; }
  .ds-meta { font-size: 12px; }
  .ds-by { margin-top: 4px; gap: 8px; }
  .ds-by .chip.md { width: 26px; height: 26px; font-size: 10.5px; border-radius: 6px; }
  .ds-by b { font-size: 13.5px; }
  .ds-by small { font-size: 11px; }
  .ds-sm { flex-basis: 84px; height: 104px; padding: 8px 6px; gap: 4px; }
  .ds-sm .ds-kit { width: 44px; height: 44px; }
  .ds-sm .ds-kit svg { width: 34px; height: auto; }
  .ds-sm b { font-size: 11.5px; }
  .ds-top.me .ds-by b::after { display: none; }
  .dc-you { font-size: 30px; }
  .dc-ring, .dc-ring svg { width: 60px; height: 60px; }
  .dc-ring b { font-size: 23px; }
  .dseg { display: none; }
  .dmob { display: flex; }
  .droom [data-pane] { display: none !important; }
  .droom[data-dtab="players"] [data-pane="players"], .droom[data-dtab="queue"] [data-pane="queue"], .droom[data-dtab="squad"] [data-pane="squad"],
  .droom[data-dtab="picks"] [data-pane="picks"], .droom[data-dtab="board"] [data-pane="board"] { display: block !important; }
  .droom .card { padding: 12px; }
  .dpl { max-height: none; }
  .dvals { grid-template-columns: 1fr; }
}

/* a fixture opened, FPL's way (season.js fixtureStats): the top five of each side, section by section, each player
   with the team that owns him in this league, yours highlighted */
.sx-fbody { display: block; padding: 4px 14px 12px; }
.sx-fsh { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; padding: 10px 0 0; }
.sx-fsh span { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 12.5px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sx-fsec { margin-top: 10px; }
.sx-fsec h5 { margin: 0 0 3px; padding: 5px 8px; border-radius: 8px; background: var(--s-card); box-shadow: inset 0 0 0 1px var(--s-line); text-align: center; font-size: 12px; font-weight: 800; color: var(--s-brand); }
.sx-fsec h5 small { margin-left: 4px; font-size: 11px; font-weight: 600; color: var(--s-mu); }
.sx-fsc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.sx-fsc ol { list-style: none; margin: 0; padding: 0; min-width: 0; }
.sx-fsc li { display: flex; align-items: center; gap: 6px; padding: 5px 6px; border-bottom: 1px solid var(--s-line); font-size: 13.5px; }
.sx-fsc li:last-child { border-bottom: 0; }
.sx-fsc li.none { justify-content: center; color: var(--s-mu); }
.sx-fsc li.me { border-radius: 6px; background: var(--s-brand-tint); box-shadow: inset 3px 0 0 var(--s-brand); font-weight: 750; }
.sx-fpl { flex: 1; min-width: 0; display: flex; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.sx-fpl:hover .ell, .sx-fpl:focus-visible .ell { text-decoration: underline; }
.sx-fo { flex: none; display: inline-flex; }
.sx-fo.fa { width: 18px; justify-content: center; font-size: 12px; color: var(--s-mu); }
.sx-fsc li b { flex: none; min-width: 46px; display: inline-flex; align-items: baseline; justify-content: flex-end; gap: 4px; font-weight: 800; font-variant-numeric: tabular-nums; text-align: right; }
.sx-fsc li b small { font-size: 11px; font-weight: 600; color: var(--s-mu); }
.sx-fsc li b small::before { content: "("; }
.sx-fsc li b small::after { content: ")"; }
.sx-fleg { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 7px; margin: 12px 0 0; font-size: 12px; color: var(--s-sub); }
.sx-fleg .k { flex: none; }
.sx-fleg .k.me { width: 14px; height: 14px; border-radius: 4px; background: var(--s-brand-tint); box-shadow: inset 3px 0 0 var(--s-brand); }
.sx-fleg .k.o { display: inline-flex; margin-left: 8px; }
.sx-fleg .k.me + .k.o { margin-left: 8px; }
.sx-fleg .k.t { margin-left: auto; color: var(--s-mu); }
@media (max-width: 560px) {
  .sx-fbody { padding: 4px 8px 10px; }
  .sx-fsh, .sx-fsc { gap: 8px; }
  .sx-fsc li { gap: 4px; padding: 5px 3px; font-size: 12.5px; }
  .sx-fsc li.me { padding-left: 6px; }
  .sx-fsc li b { min-width: 34px; gap: 2px; }
  .sx-fsc li b small { font-size: 10px; }
  .sx-fleg .k.t { margin-left: 0; flex-basis: 100%; }
}

/* the player card: his points in a gameweek or a match (static/points.js), by batting, bowling and fielding with the
   degree of difficulty, then the total; a row of his history opens that match */
.pc-gwb { margin-top: 14px; border: 1px solid var(--s-line); border-radius: 14px; padding: 12px 14px 12px; background: var(--s-card); }
.pc-gwh { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 12px; flex-wrap: wrap; margin-bottom: 8px; }
.pc-gwh h3 { margin: 0; display: flex; align-items: center; gap: 8px; font-family: var(--display); font-weight: 900; font-size: 22px; line-height: 1; color: var(--s-brand); }
.pc-gwh > span { font-size: 13px; font-weight: 650; color: var(--s-sub); }
.pc-gwb.none p { margin: 0; font-size: 13.5px; color: var(--s-sub); }
.pc-gwt { width: 100%; border-collapse: collapse; table-layout: fixed; font-variant-numeric: tabular-nums; }
.pc-gwt th { padding: 0 6px 6px; font: 600 10.5px/1.2 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--s-mu); text-align: left; }
.pc-gwt td { padding: 6px; border-top: 1px solid var(--s-line); vertical-align: baseline; }
.pc-gwt th + th, .pc-gwt td + td { border-left: 1px solid var(--s-line); }
.pc-gwt tbody td { display: table-cell; }
.pc-gwt td span { display: block; font-size: 11.5px; font-weight: 650; color: var(--s-mu); line-height: 1.2; }
.pc-gwt td b { display: block; font-size: 16px; font-weight: 800; color: var(--s-ink); line-height: 1.25; }
.pc-gwt td b.mu { color: var(--s-mu); font-weight: 600; }
.pc-gwt td span[title] { cursor: help; text-decoration: underline dotted rgba(0, 0, 0, .25); text-underline-offset: 2px; }
.pc-gwt tr.pts td { background: var(--s-brand-tint); }
.pc-gwt tr.pts td b { font-family: var(--display); font-weight: 900; font-size: 22px; color: var(--s-brand); }
.pc-gwt tfoot td { padding: 8px 10px; border-top: 0; background: var(--s-brand); color: #fff; }
.pc-gwt tfoot td span { display: inline; font-size: 13px; font-weight: 700; color: rgba(255, 255, 255, .85); }
.pc-gwt tfoot td b { display: inline; float: right; font-family: var(--display); font-weight: 900; font-size: 24px; line-height: 1; color: #fff; }
.pc-gwn { margin: 8px 2px 0; font-size: 12px; line-height: 1.45; color: var(--s-mu); }
.pc-gwn b { color: var(--s-sub); }
@media (max-width: 420px) {
  .pc-gwb { padding: 10px 10px 10px; }
  .pc-gwt td { padding: 6px 5px; }
  .pc-gwt td b { font-size: 15px; }
  .pc-gwt tr.pts td b { font-size: 20px; }
}
.pc-gwh .pc-gwl { margin-left: auto; font-size: 13px; }
.pc-tbl tr.pc-hr { cursor: pointer; }
.pc-tbl tr.pc-hr:hover td { background: #FAF6F7; }
.pc-tbl tr.pc-hr.on td { background: var(--s-brand-tint); }

/* a team in a table opens its gameweek (season.js tbtn, openTeamGw): FPL Draft's way to see an opponent's XI */
.sx tr.tlink { cursor: pointer; }
.sx tr.tlink:hover td { background: #FAF6F7; }
.sx tr.tlink.me:hover td { background: var(--s-me); }
.sx-tbtn { display: block; max-width: 100%; padding: 0; border: 0; background: none; color: inherit; font: inherit; font-weight: 700; text-align: left; cursor: pointer; }
.sx-tbtn:hover, .sx-tbtn:focus-visible { text-decoration: underline; }
.sx-rs.tlink { cursor: pointer; border-radius: 8px; }
.sx-rs.tlink:hover .ell, .sx-rs.tlink:focus-visible .ell { text-decoration: underline; }
.sx-viewing { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 14px; padding: 10px 14px; border-radius: 14px;
  background: var(--s-card); box-shadow: inset 0 0 0 1px var(--s-line), var(--s-shadow); }
.sx-viewing .sx-tn > span { display: flex; flex-direction: column; min-width: 0; }
.sx-viewing b { font-size: 16px; font-weight: 800; }
.sx-viewing .sx-tn svg { flex: none; }

/* Transfers, FPL Draft's way (season.js playersHTML, squadSide): the filters stay put at the top of the card while
   the list scrolls in its own box, its heading row pinned; your squad beside it with the coming gameweek's matches */
.sx-mvbox { max-height: min(640px, calc(100vh - 230px)); max-height: min(640px, calc(100dvh - 230px)); overflow: auto;
  border: 1px solid var(--s-line); border-radius: 12px; background: var(--s-card); }
.sx-mvbox .sx-players { margin: 0; }
.sx-mvbox .sx-players thead th { position: sticky; top: 0; z-index: 1; background: var(--s-soft); box-shadow: inset 0 -1px 0 var(--s-line); }
.sx-mvbox .sx-players td:first-child, .sx-mvbox .sx-players th:first-child { padding-left: 12px; }
.sx-mvbox .sx-players td:last-child, .sx-mvbox .sx-players th:last-child { padding-right: 10px; }
.sx-players td.nx, .sx-players th.nx { width: 64px; white-space: nowrap; text-align: center; padding-left: 3px; padding-right: 3px; }
.sx-players td.nx i { font-style: normal; display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 22px; margin: 1px; padding: 0 4px; border-radius: 6px;
  background: var(--s-soft); box-shadow: inset 0 0 0 1px var(--s-line2); color: var(--s-sub); font-size: 10.5px; font-weight: 800; }
.sx-players td.nx i.no { min-width: 22px; background: none; box-shadow: none; color: var(--s-mu); }
.sx-mvcard .lb-shown { margin-top: -2px; }
.sx-sqcard { padding-bottom: 8px; }
.sx-sqtop { display: flex; align-items: center; gap: 10px; margin: -2px 0 6px; padding-bottom: 10px; border-bottom: 1px solid var(--s-line); }
.sx-sqtop > span { display: flex; flex-direction: column; min-width: 0; }
.sx-sqtop b { font-family: var(--display); font-weight: 900; font-size: 22px; line-height: 1; color: var(--s-brand); }
.sx-sqtop small { margin-top: 3px; font-size: 12px; color: var(--s-mu); font-weight: 600; }
.sx-sqh { display: flex; align-items: center; justify-content: space-between; margin: 10px 0 2px; }
.sx-sqh h4 { margin: 0; padding: 4px 12px; border-radius: 0 9px 9px 0; margin-left: -20px; background: var(--s-brand); color: #fff; font-size: 12.5px; font-weight: 800; }
.sx-sqh span { font: 600 10.5px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--s-mu); }
.sx-sql { list-style: none; margin: 0; padding: 0; }
.sx-sql li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--s-line); cursor: pointer; }
.sx-sql li:last-child { border-bottom: 0; }
.sx-sql li:hover { background: #FAF6F7; }
.sx-sql .sx-tn { gap: 8px; }
.sx-sql .sx-tn > span { min-width: 0; }
.sx-sql .nmf { display: flex; align-items: center; gap: 4px; min-width: 0; }
.sx-sql .sx-plink { font-size: 13.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sx-sql small { font-size: 11.5px; }
.sx-sql .fx { flex: none; font-size: 11.5px; font-weight: 800; color: var(--s-sub); text-align: right; }
.sx-sql .fx.no { color: var(--s-mu); font-weight: 600; }
@media (max-width: 900px) {
  .sx-mvbox { max-height: 72vh; max-height: 72dvh; }
  .sx-sqh h4 { margin-left: -14px; }
}
@media (max-width: 560px) {
  .sx-players td.nx, .sx-players th.nx { width: 46px; }
  .sx-mvbox .sx-players td:first-child, .sx-mvbox .sx-players th:first-child { padding-left: 8px; }
}

/* the lobby's and the draft room's player lists, FPL's way: the filters stay put while every player scrolls in his
   own box under them, the heading row pinned */
.lb-tw.lbox { max-height: min(620px, calc(100vh - 260px)); max-height: min(620px, calc(100dvh - 260px)); overflow: auto; margin: 0; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.lb-tw.lbox thead th { position: sticky; top: 0; z-index: 1; background: #F7F8FA; box-shadow: inset 0 -1px 0 var(--line); }
.lb-tw.lbox .ptable td:first-child, .lb-tw.lbox .ptable th:first-child { padding-left: 12px; }
.lb-tw.lbox .ptable td:last-child, .lb-tw.lbox .ptable th:last-child { padding-right: 10px; }
.lb-tw.lbox tbody tr:last-child td { border-bottom: 0; }
@media (max-width: 900px) { .lb-tw.lbox { max-height: 70vh; max-height: 70dvh; } }

/* the notice above a game's page (IPL 2027 leagues open on 17 December): Fantasy's provisional notice, the same look */
.pnotice { background: #FBF1F3; border-bottom: 1px solid #EED5DB; color: #5C0F24; }
.pnotice p { max-width: 1240px; margin: 0 auto; padding: 9px 20px; font-size: 13.5px; line-height: 1.45; }
.pnotice b { font-weight: 750; }
@media (max-width: 560px) { .pnotice p { padding: 8px 12px; font-size: 13px; } }

/* the watch link (room bar) and its panel */
.watchbtn { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line2); background: var(--panel2); color: var(--sub); font: inherit; font-size: 13px; font-weight: 700; white-space: nowrap; cursor: pointer; flex: none; }
.watchbtn[aria-expanded="true"] { border-color: var(--sub); color: var(--ink, inherit); }
.watchbtn .wn:not(:empty) { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: #E8F4EF; color: #1F6F66; font-size: 12px; display: inline-grid; place-items: center; }
.watchpop { position: fixed; top: 66px; right: 16px; z-index: 30; width: min(360px, calc(100vw - 32px)); background: var(--panel, #fff); border: 1px solid var(--line2); border-radius: 12px; padding: 14px 16px; box-shadow: 0 12px 30px rgba(16, 24, 40, .16); }
.watchpop .wp-h { display: flex; align-items: center; justify-content: space-between; font-size: 16px; }
.watchpop .wp-x { border: 0; background: none; font-size: 22px; line-height: 1; color: var(--muted); cursor: pointer; padding: 0 4px; }
.watchpop p { margin: 6px 0 8px; font-size: 13.5px; color: var(--sub); line-height: 1.45; }
.watchpop .wp-link { display: block; font-family: var(--mono); font-size: 13px; padding: 7px 10px; border-radius: 8px; background: var(--panel2); margin-bottom: 10px; overflow-wrap: anywhere; }
.watchpop .acts { display: flex; gap: 8px; flex-wrap: wrap; }
.wl-note { margin: 10px 0 0; font-size: 13px; color: var(--muted); }
.wl-note .lnk { border: 0; background: none; padding: 0; font: inherit; font-weight: 700; color: #1F6F66; text-decoration: underline; cursor: pointer; }
@media (max-width: 760px) { .watchbtn .wl { display: none; } .watchbtn { padding: 0 10px; } .watchpop { top: 64px; right: 16px; } }

/* ---------- the big screen (?screen=tv) and the stream overlay (?screen=overlay): sized to the screen, nothing to press */
body.scr-on .gh, body.scr-on .ss, body.scr-on .pnotice { display: none !important; }
body.scr-tv { background: radial-gradient(120% 140% at 85% 0%, #8A1B33 0%, #5C0F24 55%, #3E0918 100%); color: #fff; min-height: 100vh; overflow: hidden; }
body.scr-overlay, html:has(body.scr-overlay) { background: transparent !important; }
.tv { height: 100vh; display: grid; grid-template-rows: auto 1fr auto auto; gap: 1.6vh; padding: 2.4vh 2.6vw 2vh; box-sizing: border-box; }
.tv-top { display: flex; align-items: baseline; gap: 1.6vw; font-size: 1.5vw; }
.tv-mark { font: 800 2.4vw/1 var(--display); } .tv-mark b, .ov-mark b { color: #F5C451; font-weight: 800; }
.tv-lg { font-weight: 700; } .tv-lot { color: rgba(255,255,255,.75); }
.tv-w { margin-left: auto; display: inline-flex; align-items: center; gap: .4vw; color: rgba(255,255,255,.8); }
.tv-w svg { width: 1.4vw; height: 1.4vw; }
.tv-main { display: grid; grid-template-columns: 1.55fr 1fr; gap: 1.6vw; min-height: 0; }
.tv-card, .tv-bid { background: #fff; color: #101828; border-radius: 1.4vw; box-shadow: 0 1.4vh 3vh rgba(0,0,0,.28); min-height: 0; }
.tv-card { display: grid; grid-template-columns: auto 1fr; gap: 2vw; padding: 3.4vh 2.4vw; align-content: center; }
.tv-av { width: 9vw; height: 9vw; border-radius: 50%; background: #5C0F24; color: #F5C451; display: grid; place-items: center; font: 800 3.6vw/1 var(--display); }
.tv-who h1 { margin: 0; font: 800 4.6vw/1.02 var(--body); letter-spacing: -.02em; }
.tv-meta { margin: 1vh 0 0; font-size: 1.5vw; color: #475467; }
.tv-line { margin: 1.4vh 0 0; font-size: 1.6vw; color: #344054; } .tv-line b { color: #101828; }
.tv-nums { display: flex; gap: 3vw; margin-top: 3vh; }
.tv-nums span { display: block; font-size: 1.1vw; color: #667085; } .tv-nums small { display: block; font-size: 1vw; color: #667085; }
.tv-nums b { display: block; font: 800 3.4vw/1.05 var(--display); color: #5C0F24; }
.tv-bid { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 3vh 2vw; }
.s-k { font-size: 1.4vw; color: #667085; font-weight: 600; }
.tv-bid .s-amt { font: 900 8.4vw/1 var(--display); color: #101828; margin: .6vh 0 1.4vh; } .tv-bid .s-amt small { font-size: 3vw; }
.tv-bid .s-lead { display: inline-flex; align-items: center; gap: .8vw; font-size: 1.9vw; font-weight: 750; }
.tv-bid .s-lead .chip { width: 3vw; height: 3vw; font-size: 1.1vw; border-radius: .5vw; }
.s-clock { width: 80%; height: 1.2vh; border-radius: 1vh; background: #EAECF0; overflow: hidden; margin-top: 3vh; }
.s-clock i { display: block; height: 100%; width: 100%; background: #101828; border-radius: 1vh; }
.s-clock i.hot { background: #E5484D; }
.tv-bid .s-sec { margin-top: 1vh; font: 800 2.2vw/1 var(--display); color: #475467; min-height: 2.2vw; }
.s-hammer { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--c, #475467); color: #fff; animation: s-in .35s ease-out both; }
.s-hammer.uns { background: #475467; }
.tv-bid .s-hammer b { font: 900 9vw/1 var(--display); letter-spacing: .02em; } .tv-bid .s-hammer span { font-size: 2vw; font-weight: 700; margin-top: 1vh; padding: 0 2vw; }
@keyframes s-in { from { opacity: 0; transform: scale(1.06); } to { opacity: 1; transform: none; } }
.tv-teams { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: .8vw; }
.tv-t { background: rgba(255,255,255,.1); border: .15vw solid rgba(255,255,255,.12); border-radius: .9vw; padding: 1.1vh .8vw; display: grid; grid-template-columns: auto 1fr; column-gap: .6vw; align-items: center; min-width: 0; }
.tv-t.lead { background: #fff; color: #101828; border-color: #F5C451; }
.tv-t .chip { grid-row: 1 / 4; width: 2.4vw; height: 2.4vw; font-size: .9vw; border-radius: .45vw; }
.tv-tn { font-size: 1.05vw; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tv-tp { font: 800 1.6vw/1.1 var(--display); } .tv-ts { font-size: .95vw; opacity: .75; }
.tv-tick { display: flex; gap: 2vw; align-items: center; font-size: 1.25vw; white-space: nowrap; overflow: hidden; color: rgba(255,255,255,.85); min-height: 2vh; }
.tv-tick b { color: #F5C451; } .tv-tick i { font-style: normal; opacity: .6; }
.tv-wait { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.tv-wait .tv-eb { font-size: 1.6vw; color: rgba(255,255,255,.75); } .tv-wait h1 { font: 900 7vw/1 var(--display); margin: 1.4vh 0; } .tv-wait p { font-size: 1.6vw; color: rgba(255,255,255,.85); }
/* the overlay: a lower third on a 1920 x 1080 stream */
.ov { position: fixed; left: 40px; right: 40px; bottom: 40px; }
.ov-bar { position: relative; display: grid; grid-template-columns: 1.4fr 1fr 220px; align-items: center; gap: 28px; height: 150px; padding: 0 34px; border-radius: 22px; overflow: hidden;
  background: linear-gradient(90deg, #3E0918, #5C0F24 60%, #8A1B33); color: #fff; box-shadow: 0 16px 40px rgba(0,0,0,.35); }
.ov-p b { display: block; font: 800 48px/1.05 var(--body); letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ov-p span { display: block; margin-top: 6px; font-size: 21px; color: rgba(255,255,255,.8); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ov-b { display: grid; grid-template-columns: auto 1fr; column-gap: 16px; align-items: center; }
.ov-b .s-k { grid-column: 1 / -1; font-size: 17px; color: rgba(255,255,255,.7); }
.ov-b .s-amt { font: 900 66px/1 var(--display); color: #F5C451; } .ov-b .s-amt small { font-size: 26px; }
.ov-b .s-lead { display: inline-flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 750; min-width: 0; }
.ov-b .s-lead .chip { width: 36px; height: 36px; font-size: 13px; }
.ov-c { text-align: right; } .ov-c .s-sec { font: 800 44px/1 var(--display); }
.ov-c .s-clock { width: 100%; margin-top: 10px; height: 8px; background: rgba(255,255,255,.2); } .ov-c .s-clock i { background: #fff; } .ov-c .s-clock i.hot { background: #FF6B6B; }
.ov .s-hammer { flex-direction: row; gap: 26px; } .ov .s-hammer b { font: 900 76px/1 var(--display); } .ov .s-hammer span { font-size: 30px; font-weight: 750; }
.ov-mark { position: absolute; right: 22px; top: 10px; font: 800 20px/1 var(--display); opacity: .85; }
.ov-wait { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 22px; } .ov-wait b { font: 900 54px/1 var(--display); } .ov-wait span { font-size: 22px; opacity: .8; }
.wp-more { margin: 10px 0 0 !important; font-size: 12.5px !important; }
.wp-more a { font-weight: 700; color: #1F6F66; }
.wp-more .lnk { border: 0; background: none; padding: 0; font: inherit; font-weight: 700; color: #1F6F66; text-decoration: underline; cursor: pointer; }

/* the lobby: a host with empty seats sees "play now" first; after a minute alone, a bar that stays on screen */
.lb-clock.go { justify-content: center; gap: 8px; text-align: center; }
.lb-clock.go .btn { width: 100%; }
.lb-or { font-size: 13px; color: var(--muted); }
.lb-or .lnk, .lnudge .lnk { border: 0; background: none; padding: 0; font: inherit; font-weight: 700; color: var(--brand, #5C0F24); text-decoration: underline; cursor: pointer; }
.lnudge { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 40; width: min(640px, calc(100vw - 32px)); display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px;
  padding: 14px 16px; border-radius: 14px; background: #FFF8E1; border: 1px solid #F5C451; box-shadow: 0 14px 34px rgba(16, 24, 40, .22); }
.lnudge > div { flex: 1 1 260px; min-width: 0; }
.lnudge b { display: block; font-size: 16px; } .lnudge span { display: block; margin-top: 2px; font-size: 13.5px; color: var(--sub); }
@media (max-width: 1000px) { .lb-grid > .col:last-child { order: -1; } }
.lb-clock.go .btn { font-family: var(--body); font-size: 16px; font-weight: 750; letter-spacing: -.01em; }
.lb-sub { font-size: 13px; line-height: 1.4; color: var(--sub); max-width: 34ch; margin: 0 auto; }
.lnudge .ln-alt { font-size: 13px; color: var(--muted); margin: 0; }
.lnudge a.lnk { text-decoration: underline; }

/* the lobby's "while you wait": our other games, each a tile you can tap */
.lb-wait { display: flex; flex-direction: column; gap: 10px; }
.lw-h { display: flex; flex-direction: column; gap: 2px; }
.lw-h h2 { font-size: 22px; margin: 0; }
.lw-tile { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--brand-tint);
  color: var(--ink); text-decoration: none; }
.lw-tile:hover { border-color: var(--brand2); color: var(--ink); }
.lw-tile:focus-visible { outline: 3px solid var(--brand2); outline-offset: 2px; }
.lw-k { font-size: 12px; font-weight: 750; color: var(--brand); }
.lw-tile b { font-size: 17px; line-height: 1.3; }
.lw-s { font-size: 13.5px; color: var(--sub); line-height: 1.4; }
.lw-go { margin-top: 4px; font-size: 14px; font-weight: 750; color: var(--brand); }
.lw-go::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 7px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: translateY(-1px) rotate(45deg); }

/* the competition a new league plays: IPL or ILT20 (create pages) */
.seg.comp { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.seg.comp .opt { align-items: stretch; justify-content: flex-start; text-align: left; padding: 14px 16px; gap: 6px; font-weight: 400; }
.seg.comp .opt small { font-size: 13px; color: var(--sub); line-height: 1.4; }
.cp-top { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.cp-nm { font-family: var(--display); font-weight: 900; font-size: 34px; line-height: .95; letter-spacing: .01em; color: var(--ink); }
.seg.comp input:checked + .opt .cp-nm { color: var(--brand); }
.cp-new { font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; color: var(--gold); font-weight: 600; }
.cp-kits { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.cp-kits i { font-style: normal; font-family: var(--mono); font-size: 10px; font-weight: 600; color: #fff; padding: 2px 6px; border-radius: 4px; text-shadow: 0 1px 1px rgba(0,0,0,.35); }
.seg.teams.n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 300px; }
.seg.cur .opt small { font-size: 11.5px; font-weight: 600; opacity: .8; }
[data-tier] { font-style: normal; }
@media (max-width: 560px) { .seg.comp { grid-template-columns: 1fr; } .cp-nm { font-size: 30px; } }
.pnotice a { color: #5C0F24; font-weight: 700; }
.pnotice p.sub { padding-top: 0; font-size: 12.5px; opacity: .8; }

/* phones: no text under 12px (the review, 13 Nov 2026). Made from the rules above that set a smaller size and apply on a
   phone: change those rules and make this list again rather than editing it. */
@media (max-width: 640px) {
  .adm-acc td.g small,
  .adm-tag,
  .adm-tbl th,
  .arnote,
  .autorow .to small,
  .awards .eyebrow,
  .chip,
  .chip.sm,
  .chip.xs,
  .cp-kits i,
  .cp-new,
  .dbt td small,
  .dbt th.rd,
  .dbt th.rd small,
  .dmob i,
  .dpl-p small,
  .dq-p small,
  .drops li button small,
  .ds-by .chip.md,
  .ds-by small,
  .ds-eb,
  .ds-g li small,
  .ds-h,
  .ds-sb,
  .ds-sm b,
  .ds-top.me .ds-by b::after,
  .dtag,
  .dvals h3,
  .feed .lv .eyebrow,
  .feed li .tag,
  .fillist li .r,
  .fillist li.hd,
  .frow .yrs,
  .ftag,
  .gaps .g .r,
  .gaps .g .w,
  .gp .gb i.bo,
  .gp .gf,
  .gp .gf .ipl,
  .gp .gn,
  .kd-l,
  .kd-pat button,
  .kd-ptag,
  .kd-tp button,
  .ko .kn,
  .ko .ks small,
  .label,
  .lb-digits span,
  .lb-tabs i,
  .legend,
  .ls-pts small,
  .ls-stats dt,
  .moves time,
  .ms small,
  .mup .mname,
  .myrow .t b .kind,
  .nextp .cols,
  .nextp .nowtag,
  .pc .fx2,
  .pc .ps,
  .pc i.bo,
  .pc-gw li span,
  .pc-gwt td span,
  .pc-gwt th,
  .pc-h,
  .pc-minis small,
  .pc-minis span,
  .pc-rk h3,
  .pc-role,
  .pc-stats b i,
  .pc-stats span,
  .pc-tbl small,
  .pc-tbl th,
  .pc-tiles span,
  .pc-you,
  .pid .mine .k,
  .pill,
  .plist .nums small,
  .pn small,
  .potchips button,
  .prow .eyebrow,
  .ptable th,
  .quick button small,
  .rank-t th,
  .rep-hero small,
  .rep-list li .c.r,
  .rep-list li.hd,
  .rep-list li.hd .c,
  .ring .num small,
  .rl,
  .rt-notes small,
  .rteam li .r,
  .rteam li.hd span,
  .rule .eyebrow,
  .rules4 dt,
  .sdl dd small,
  .seasons .sr.h,
  .seg.cur .opt small,
  .seg.pool .soon,
  .sgf small,
  .simrow .lbl,
  .slot .rtag,
  .slotgrp .gl,
  .stable th,
  .stabs i.bd,
  .stats3 .k,
  .steps .n,
  .subtabs i.bd,
  .sx-avl td.nx i,
  .sx-bar b,
  .sx-bar em,
  .sx-bar small,
  .sx-blab,
  .sx-bo,
  .sx-cap,
  .sx-cap.in,
  .sx-cup span,
  .sx-days th,
  .sx-drops small,
  .sx-eyebrow,
  .sx-fin,
  .sx-fmeta,
  .sx-form i,
  .sx-fsc li b small,
  .sx-fsec h5 small,
  .sx-fst small,
  .sx-kon,
  .sx-list tr.sep td,
  .sx-live,
  .sx-lock,
  .sx-ltab .sx-mv,
  .sx-mini th,
  .sx-mv,
  .sx-nm,
  .sx-nx,
  .sx-ofs i,
  .sx-order li::before,
  .sx-outl li.hd > span,
  .sx-own,
  .sx-pcgw h3,
  .sx-pcgw li span,
  .sx-pcipl h3,
  .sx-pct span,
  .sx-places summary span,
  .sx-players td.nx i,
  .sx-plh,
  .sx-pv,
  .sx-pv.mu,
  .sx-pv2,
  .sx-row.n4 .sx-nm,
  .sx-row.n5 .sx-nm,
  .sx-row.n5 .sx-pv,
  .sx-rs small,
  .sx-seg i.bd,
  .sx-sqh span,
  .sx-sql .fx,
  .sx-sql small,
  .sx-st,
  .sx-star,
  .sx-star.in,
  .sx-sth,
  .sx-tabs i.bd,
  .sx-tbl th,
  .sx-tcol .r,
  .sx-tiet,
  .sx-totw .fa,
  .sx-totw .r,
  .sx-totw li.hd > span,
  .sx-trl li.hd > span,
  .sx-trow small,
  .sx-trw i,
  .sx-tx li.hd > span,
  .tag,
  .team .a .sq,
  .team .c,
  .topb li .rk,
  .tpop .gl,
  .tpop .tm3 .k,
  .unsp .cols,
  .unsp .r,
  .worder li::before,
  .worder.fin .ell small,
  .xi .eyebrow,
  i.cap,
  i.sub { font-size: 12px; }
}
/* a pot break: every player the pot sold (static/play.js paintFeed) */
.feed .pbsold-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 12px 16px 6px; }
.feed .pbsold-h b { font-size: 15px; }
.feed .pbsold-h span { font-family: var(--mono); font-size: 11px; color: var(--sub); }
.feed ol.pbsold { overflow-y: auto; }
.feed ol.pbsold li { opacity: 1; padding: 7px 12px 7px 10px; }
.feed ol.pbsold li .nm { display: flex; flex-direction: column; line-height: 1.2; }
.feed ol.pbsold li .nm b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed ol.pbsold li .nm small { font-size: 11.5px; font-weight: 500; color: #475467; }
