/* Wiz27 Sports — one token set, both themes.
   Every colour is named by what it means, never by what it looks like, so the
   dark theme is a value swap and never a second stylesheet. */
:root {
  --ground: #FFFFFF; --surface: #F4F4F6; --raise: #E9E9EE;
  --ink: #0C0C0E; --ink-2: #4A4A55; --muted: #6A6A73; --faint: #9A9AA4;
  --line: #E3E3E8; --line-soft: #F3F3F6;
  --live: #D5082B; --live-soft: #FCE9EC;
  --mine: #FFC527; --mine-soft: #FFF8E3; --mine-ink: #7A5B00;
  --good: #1F6B37; --good-soft: #E8F3EA;
  --pitch: #15794A;
  --shadow: 0 1px 3px rgba(0,0,0,.14);
}
:root[data-theme="dark"] {
  --ground: #0C0C0E; --surface: #17171B; --raise: #24242B;
  --ink: #FFFFFF; --ink-2: #B6B6C0; --muted: #9A9AA4; --faint: #7E7E8A;
  --line: #26262C; --line-soft: #1C1C22;
  --live: #FF3D5E; --live-soft: #3A1119;
  --mine: #FFC527; --mine-soft: #2A2208; --mine-ink: #F0CB6B;
  --good: #5FCB85; --good-soft: #122A1A;
  --pitch: #0E4F30;
  --shadow: 0 1px 3px rgba(0,0,0,.55);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #0C0C0E; --surface: #17171B; --raise: #24242B;
    --ink: #FFFFFF; --ink-2: #B6B6C0; --muted: #9A9AA4; --faint: #7E7E8A;
    --line: #26262C; --line-soft: #1C1C22;
    --live: #FF3D5E; --live-soft: #3A1119;
    --mine-soft: #2A2208; --mine-ink: #F0CB6B;
    --good: #5FCB85; --good-soft: #122A1A;
    --pitch: #0E4F30;
    --shadow: 0 1px 3px rgba(0,0,0,.55);
  }
}

* { box-sizing: border-box; }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font-family: Archivo, system-ui, -apple-system, sans-serif;
  font-size: 15px; -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; color: inherit; }
a { color: var(--live); text-decoration: none; }
.num { font-variant-numeric: tabular-nums; }
.black { font-family: 'Archivo Black', Archivo, sans-serif; }

#shell { max-width: 480px; margin: 0 auto; min-height: 100vh;
         display: flex; flex-direction: column; }
main { flex-grow: 1; padding-bottom: 76px; }

/* header */
.top { display: flex; align-items: center; gap: 4px; padding: 12px 16px 10px;
       border-bottom: 1px solid var(--line); position: sticky; top: 0;
       background: var(--ground); z-index: 5; }
.mark { font-family: 'Archivo Black', Archivo, sans-serif; font-size: 21px;
        letter-spacing: -.5px; }
.mark em { color: var(--live); font-style: normal; }
.mark small { font-family: Archivo, sans-serif; font-size: 11px; font-weight: 600;
              letter-spacing: 1.6px; color: var(--muted); margin-inline-start: 6px; }
.iconbtn { width: 40px; height: 40px; display: grid; place-items: center;
           background: none; border: 0; cursor: pointer; border-radius: 10px; }
.iconbtn:hover { background: var(--surface); }

/* chips and rails */
.rail { display: flex; gap: 6px; padding: 10px 12px; overflow-x: auto;
        border-bottom: 1px solid var(--line); scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.day { flex: 1 0 auto; min-width: 58px; height: 46px; border-radius: 10px;
       border: 0; background: none; cursor: pointer; display: grid;
       place-items: center; gap: 1px; }
.day b { font-size: 16px; font-weight: 700; }
.day span { font-size: 10px; font-weight: 600; letter-spacing: 1px;
            text-transform: uppercase; opacity: .72; }
.day[aria-pressed="true"] { background: var(--live); color: #fff; }
.chips { display: flex; gap: 8px; padding: 12px 16px 8px; align-items: center;
         flex-wrap: wrap; }
.chip { height: 32px; padding: 0 14px; border-radius: 16px;
        border: 1px solid var(--line); background: var(--ground);
        font-size: 13px; font-weight: 600; cursor: pointer;
        display: inline-flex; align-items: center; gap: 6px; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--ground); border-color: var(--ink); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--live); }

/* match rows */
.group { display: flex; align-items: center; gap: 8px; padding: 9px 16px 7px;
         background: var(--surface); font-size: 12px; font-weight: 700; }
.group span { font-weight: 500; color: var(--muted); }
.row { display: flex; align-items: stretch; gap: 12px; padding: 11px 16px;
       border-bottom: 1px solid var(--line-soft); color: inherit; cursor: pointer;
       background: none; border-left: 0; border-right: 0; border-top: 0;
       width: 100%; text-align: start; font: inherit; }
.row:hover { background: var(--surface); }
.clock { width: 44px; flex: none; display: flex; flex-direction: column;
         justify-content: center; gap: 3px; font-size: 12px; font-weight: 600;
         color: var(--muted); }
.clock .on { color: var(--live); font-size: 13px; font-weight: 700; }
.clock .lbl { font-size: 9px; font-weight: 700; letter-spacing: .8px; color: var(--live); }
.sides { flex-grow: 1; min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.side { display: flex; align-items: center; gap: 9px; }
.badge { width: 22px; height: 22px; flex: none; border-radius: 5px;
         background: var(--raise); color: var(--ink); font-size: 9px; font-weight: 700;
         display: grid; place-items: center; }
.side .nm { font-size: 14px; font-weight: 500; white-space: nowrap;
            overflow: hidden; text-overflow: ellipsis; }
.side.lead .nm { font-weight: 700; }
.side .sc { margin-inline-start: auto; font-size: 16px; font-weight: 700; color: var(--muted); }
.side.lead .sc { color: var(--ink); }
.mine { flex: none; align-self: center; display: inline-flex; align-items: center;
        gap: 2px; height: 20px; padding: 0 6px; border-radius: 10px;
        background: var(--mine); color: #3A2A00; font-size: 11px; font-weight: 700; }

/* generic */
.empty { padding: 40px 24px; text-align: center; color: var(--muted); font-size: 14px; }
.skel { height: 62px; border-bottom: 1px solid var(--line-soft);
        background: linear-gradient(90deg, var(--ground), var(--surface), var(--ground));
        background-size: 200% 100%; animation: sweep 1.2s linear infinite; }
@keyframes sweep { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .skel { animation: none; } }

/* bottom nav */
nav.tabs { position: fixed; bottom: 0; left: 0; right: 0; display: flex;
           border-top: 1px solid var(--line); background: var(--ground);
           padding-bottom: env(safe-area-inset-bottom); max-width: 480px;
           margin: 0 auto; }
nav.tabs a { flex-grow: 1; display: flex; flex-direction: column; align-items: center;
             gap: 4px; padding: 9px 0 8px; color: var(--muted); font-size: 10px;
             font-weight: 600; }
nav.tabs a[aria-current="page"] { color: var(--live); font-weight: 700;
                                  box-shadow: inset 0 2px 0 var(--live); }

/* match detail */
.score { display: flex; align-items: flex-start; padding: 8px 16px 18px;
         border-bottom: 1px solid var(--line); }
.score .team { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; gap: 9px; }
.crest { width: 52px; height: 52px; border-radius: 13px; background: var(--raise);
          display: grid; place-items: center; font-size: 15px; font-weight: 700; flex: none; }
.score .team b { font-size: 13px; font-weight: 600; text-align: center; line-height: 1.25; }
.score .mid { flex: none; width: 130px; display: flex; flex-direction: column;
              align-items: center; gap: 5px; }
.score .mid .n { display: flex; align-items: baseline; gap: 10px; }
.score .mid .n span { font-family: 'Archivo Black', Archivo, sans-serif; font-size: 38px;
                      line-height: 1; }
.pill { display: inline-flex; align-items: center; gap: 5px; height: 22px;
        padding: 0 9px; border-radius: 11px; background: var(--live-soft);
        color: var(--live); font-size: 12px; font-weight: 700; }
.tabstrip { display: flex; gap: 2px; padding: 0 10px; border-bottom: 1px solid var(--line);
            overflow-x: auto; scrollbar-width: none; }
.tabstrip::-webkit-scrollbar { display: none; }
.tabstrip button { flex: none; padding: 11px 10px 9px; background: none; border: 0;
                   border-bottom: 2px solid transparent; font-size: 13px;
                   font-weight: 500; color: var(--muted); cursor: pointer; }
.tabstrip button[aria-selected="true"] { color: var(--ink); font-weight: 700;
                                         border-bottom-color: var(--live); }
.ev { display: flex; align-items: center; padding: 10px 14px;
      border-bottom: 1px solid var(--line-soft); }
.ev .half { flex: 1 1 0; min-width: 0; display: flex; align-items: center; gap: 7px; }
.ev .half.away { justify-content: flex-end; }
.ev .min { width: 32px; flex: none; text-align: center; font-size: 12px;
           font-weight: 700; color: var(--muted); }
.ev .ico { width: 24px; height: 24px; flex: none; border-radius: 50%;
           background: var(--surface); color: var(--muted); display: grid; place-items: center; }
/* One look per outcome. A penalty is a goal that came from the spot, so it
   keeps the goal colour and gains a ring; a missed penalty is not a goal at
   all and must not read as one. */
.ev .ico.goal { background: var(--good-soft); color: var(--good); }
.ev .ico.pen { background: var(--good-soft); color: var(--good);
               box-shadow: inset 0 0 0 2px var(--good); }
.ev .ico.own { background: var(--live-soft); color: var(--live); }
.ev .ico.missed { background: var(--live-soft); color: var(--live); }
.ev .ico.yellow { box-shadow: inset 0 0 0 2px var(--mine); }
.ev .ico.red { background: var(--live); color: #fff; }
.ev .mine { height: 18px; min-width: 18px; padding: 0 5px; border-radius: 9px;
            background: var(--mine); color: #3A2A00; font-size: 10.5px;
            font-weight: 700; display: inline-grid; place-items: center;
            flex: none; font-variant-numeric: tabular-nums; }

/* VAR is a decision about the match, not something a player did on one side of
   it, so it runs across the row instead of sitting in a half. */
.varrow { display: flex; align-items: center; gap: 9px; padding: 9px 16px;
          border-bottom: 1px solid var(--line-soft); background: var(--surface); }
.varrow .tag { flex: none; height: 18px; padding: 0 6px; border-radius: 4px;
               background: var(--ink); color: var(--ground); font-size: 9.5px;
               font-weight: 700; letter-spacing: .8px; display: grid;
               place-items: center; }
.varrow b { font-size: 13px; font-weight: 600; }
.varrow i { font-size: 11.5px; font-style: normal; color: var(--muted);
            white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.varrow .min { margin-inline-start: auto; font-size: 12px; font-weight: 700;
               color: var(--muted); }
.ev .txt { flex-grow: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.ev .txt b { font-size: 13px; font-weight: 600; white-space: nowrap;
             overflow: hidden; text-overflow: ellipsis; }
.ev .txt i { font-size: 10.5px; font-style: normal; color: var(--muted);
             white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev .half.away .txt { text-align: right; }
.statline { display: flex; align-items: center; gap: 10px; padding: 9px 16px; }
.statline .v { width: 42px; flex: none; font-size: 13px; font-weight: 700; }
.statline .v.r { text-align: right; }
.statline .bar { flex-grow: 1; height: 5px; border-radius: 3px; background: var(--raise);
                 display: flex; overflow: hidden; }
.statline .bar i { display: block; height: 100%; background: var(--live); }
.statline .lbl { position: absolute; }
.statwrap { text-align: center; font-size: 10.5px; color: var(--muted);
            letter-spacing: .4px; padding-top: 10px; }

/* fantasy */
.hero { display: flex; align-items: flex-end; gap: 14px; padding: 14px 16px; }
.hero .big { font-family: 'Archivo Black', Archivo, sans-serif; font-size: 54px; line-height: .9; }
.h2h { display: flex; align-items: center; gap: 12px; margin: 0 16px 14px;
       padding: 12px 14px; border-radius: 13px; background: var(--surface); color: inherit; }
.h2h .s { flex: none; display: flex; align-items: baseline; gap: 9px;
          font-size: 23px; font-weight: 700; }
.h2h .lbl { font-size: 10px; font-weight: 700; letter-spacing: 1px; color: var(--muted); }
.plist { display: flex; align-items: center; gap: 9px; padding: 0 16px; height: 34px;
         border-bottom: 1px solid var(--line-soft); }
.pos { width: 28px; height: 17px; flex: none; border-radius: 4px; font-size: 8px;
       font-weight: 700; color: #fff; display: grid; place-items: center; }
.pos.GKP { background: #5A4FCF; } .pos.DEF { background: #1F7A52; }
.pos.MID { background: #B06A00; } .pos.FWD { background: #B02A3A; }
.plist.bench .pos { opacity: .45; } .plist.bench .nm { color: var(--muted); }
.capt { width: 15px; height: 15px; flex: none; border-radius: 50%; background: var(--live);
        color: #fff; font-size: 9px; font-weight: 700; display: grid; place-items: center; }
.pts { width: 26px; flex: none; text-align: right; font-size: 14px; font-weight: 700; }
.pts.pending { color: var(--faint); font-weight: 500; }
.pts.blank { color: var(--muted); font-weight: 500; }
.pitch { margin: 0 12px; border-radius: 14px; background: var(--pitch); padding: 14px 8px;
         display: flex; flex-direction: column; justify-content: space-between;
         min-height: 390px; position: relative; }
.pitch .line { display: flex; justify-content: center; gap: 6px; }
.pitch .p { width: 80px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.pitch .disc { width: 38px; height: 38px; border-radius: 50%; background: #fff;
               color: #0C0C0E; font-size: 10px; font-weight: 700; display: grid;
               place-items: center; box-shadow: var(--shadow); position: relative; }
.pitch .p b { font-size: 10.5px; font-weight: 600; color: #fff; max-width: 80px;
              white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pitch .cap { position: absolute; right: -4px; top: -4px; width: 17px; height: 17px;
              border-radius: 50%; background: var(--live); color: #fff; font-size: 9px;
              display: grid; place-items: center; border: 2px solid var(--pitch); }
.pchip { min-width: 26px; height: 19px; padding: 0 6px; border-radius: 10px;
         display: inline-grid; place-items: center; font-size: 11.5px; font-weight: 700;
         background: #fff; color: #0C0C0E; }
.pchip.pending, .pchip.blank { background: rgba(255,255,255,.18); color: #fff; }
.pchip.pending { color: rgba(255,255,255,.72); }

/* connect */
.pad { padding: 18px 22px; }
.pad h1 { font-size: 26px; font-weight: 700; letter-spacing: -.4px; line-height: 1.18; margin: 0 0 8px; }
.pad p.sub { margin: 0 0 22px; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
label.fld { font-size: 11px; font-weight: 700; letter-spacing: 1px; color: var(--muted);
            display: block; margin-bottom: 9px; }
input.id { width: 100%; height: 54px; padding: 0 16px; border-radius: 12px;
           border: 1.5px solid var(--line); background: var(--ground);
           font-size: 21px; font-weight: 700; letter-spacing: 1.5px; }
input.id:focus-visible { outline: 2px solid var(--live); outline-offset: 2px; }
button.go { width: 100%; height: 52px; border: 0; border-radius: 12px; font-size: 15px;
            font-weight: 700; background: var(--live); color: #fff; cursor: pointer;
            margin-top: 16px; }
button.go[disabled] { background: var(--raise); color: var(--faint); cursor: not-allowed; }
.promise { display: flex; gap: 10px; align-items: flex-start; margin-top: 11px;
           font-size: 12.5px; line-height: 1.45; color: var(--ink-2); }
.tick { width: 19px; height: 19px; flex: none; margin-top: 1px; border-radius: 50%;
        background: var(--good-soft); color: var(--good); display: grid; place-items: center; }
.err { color: var(--live); font-size: 13px; margin-top: 10px; min-height: 1.2em; }
.hint { font-size: 11.5px; color: var(--muted); margin-top: 9px; }
.hint b { color: var(--live); }

/* news */
.newsrow { display: block; padding: 13px 16px; border-bottom: 1px solid var(--line-soft);
           color: inherit; }
.newsrow:hover { background: var(--surface); }
.nmeta { display: flex; align-items: center; gap: 8px; font-size: 10.5px;
         color: var(--faint); margin-bottom: 4px; }
.nmeta .src { font-weight: 700; letter-spacing: .6px; text-transform: uppercase;
              color: var(--live); }
.newsrow b { display: block; font-size: 14px; font-weight: 600; line-height: 1.35; }
.newsrow p { margin: 5px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--muted); }

/* search + tables */
input.search { width: 100%; height: 38px; padding: 0 14px; border-radius: 19px;
               border: 1px solid var(--line); background: var(--surface); font-size: 14px; }
input.search:focus-visible { outline: 2px solid var(--live); outline-offset: 2px; }
.trow { display: flex; align-items: center; gap: 10px; padding: 9px 16px;
        border-bottom: 1px solid var(--line-soft); font-size: 13px; }
.trow .n { width: 26px; flex: none; text-align: right; font-variant-numeric: tabular-nums;
           color: var(--muted); }
.trow .n.b { color: var(--ink); font-weight: 700; }
.trow .nm { flex-grow: 1; min-width: 0; white-space: nowrap; overflow: hidden;
            text-overflow: ellipsis; font-weight: 600; }
.trow.head { background: var(--surface); font-size: 9.5px; font-weight: 700;
             letter-spacing: .6px; color: var(--muted); }
.trow.head .n, .trow.head .nm { color: var(--muted); font-weight: 700; }

/* lineups: the shape first, the people under it */
.lineup-pitch { margin: 10px 12px 4px; border-radius: 14px; background: var(--pitch);
                padding: 16px 8px; display: flex; flex-direction: column;
                justify-content: space-between; gap: 14px; position: relative; }
.lineup-pitch .line { display: flex; justify-content: space-evenly; align-items: flex-start;
                      gap: 4px; }
.lineup-pitch .p { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column;
                   align-items: center; gap: 4px; }
.lineup-pitch .disc { width: 34px; height: 34px; border-radius: 50%; background: #fff;
                      color: #0C0C0E; display: grid; place-items: center;
                      font-size: 12px; font-weight: 700; box-shadow: var(--shadow); }
.lineup-pitch .disc.mineplayer { background: var(--mine); color: #3A2A00;
                                 box-shadow: 0 0 0 2px #fff, var(--shadow); }
.lineup-pitch .p b { font-size: 10px; font-weight: 600; color: #fff; max-width: 100%;
                     text-align: center; white-space: nowrap; overflow: hidden;
                     text-overflow: ellipsis; }
.lineup-pitch .pchip { min-width: 22px; height: 17px; padding: 0 5px; border-radius: 9px;
                       background: #fff; color: #0C0C0E; font-size: 10.5px;
                       font-weight: 700; display: inline-grid; place-items: center; }
.subhead { display: flex; align-items: center; gap: 8px; padding: 12px 16px 6px; }
.subhead span { font-size: 10px; font-weight: 700; letter-spacing: 1px; color: var(--muted); }
.subhead i { font-style: normal; font-size: 10.5px; color: var(--faint); }
.clock .date { font-size: 10px; font-weight: 600; color: var(--faint); }

/* following */
.iconbtn.star { color: var(--muted); }
.iconbtn.star.on { color: var(--mine); }
.score .team { background: none; border: 0; cursor: pointer; font: inherit;
               color: inherit; padding: 0; }
.score .team:hover .crest { background: var(--line); }
.followrow { display: flex; align-items: center; gap: 10px; padding: 10px 16px;
             border-bottom: 1px solid var(--line-soft); }
.followrow .nm { flex-grow: 1; min-width: 0; font-size: 14px; font-weight: 600;
                 white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acct-sec { padding: 16px 16px 6px; }
.acct-sec h2 { font-size: 11px; font-weight: 700; letter-spacing: 1px;
               color: var(--muted); margin: 0; text-transform: uppercase; }
.acct-row { display: flex; align-items: center; gap: 12px; padding: 13px 16px;
            border-bottom: 1px solid var(--line-soft); }
.acct-row .lbl { flex-grow: 1; font-size: 14px; }
.acct-row .val { font-size: 13px; color: var(--muted); }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 9px;
       overflow: hidden; }
.seg button { padding: 7px 12px; font-size: 12.5px; font-weight: 600;
              background: var(--ground); border: 0; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--ground); }

/* A point we worked out before FPL published it, marked so it can be told from
   one FPL has already settled. */
.pts.prov, .pchip.prov { box-shadow: inset 0 0 0 1.5px var(--mine); }
.pchip.prov { box-shadow: 0 0 0 1.5px var(--mine); }

/* league: a manager row that opens where it stands */
.h2h.yours { background: var(--mine-soft); }
.h2h .hit { display: block; font-size: 10.5px; font-weight: 700; color: var(--live); }
.chiptag { flex: none; height: 17px; padding: 0 5px; border-radius: 4px;
           background: var(--ink); color: var(--ground); font-size: 9px;
           font-weight: 700; letter-spacing: .5px; display: inline-grid;
           place-items: center; }
.chiptag.used { background: var(--raise); color: var(--muted); }
.chiptag.left { background: none; color: var(--muted);
                box-shadow: inset 0 0 0 1px var(--line); }
.twoway { display: flex; align-items: center; gap: 8px; padding: 0 16px 8px; }
.twoway .kv { flex-grow: 1; text-align: center; }
.iconbtn.chev { width: 32px; height: 32px; transition: transform .15s; }
.kv { font-size: 11px; color: var(--faint); padding: 6px 16px; }
.mgr { background: var(--surface); border-bottom: 1px solid var(--line); }
.mgrstats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
            gap: 2px; padding: 12px 14px 8px; }
.mgrstats .stat { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mgrstats .k { font-size: 9.5px; font-weight: 700; letter-spacing: .5px;
               color: var(--muted); text-transform: uppercase; }
.mgrstats .v { font-size: 14px; font-weight: 700; white-space: nowrap;
               overflow: hidden; text-overflow: ellipsis; }
.xfer { display: flex; align-items: center; gap: 8px; padding: 7px 16px;
        border-bottom: 1px solid var(--line-soft); font-size: 12px; }
.xfer .gw { width: 34px; flex: none; font-size: 10px; font-weight: 700;
            color: var(--faint); }
.xfer .in { color: var(--good); font-weight: 600; flex: 1 1 0; min-width: 0;
            white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xfer .out { color: var(--muted); flex: 1 1 0; min-width: 0; text-align: right;
             white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* a competition header that pins and folds */
.group.clickable { cursor: pointer; user-select: none; gap: 6px; }
.group.clickable:hover { background: var(--raise); }
.group .gchev { display: inline-flex; color: var(--muted); transition: transform .15s;
                flex: none; }
.group .gcount { margin-inline-start: auto; font-size: 11px; font-weight: 600;
                 color: var(--faint); }
.iconbtn.pin { width: 28px; height: 28px; flex: none; color: var(--muted); }
.iconbtn.pin.on { color: var(--live); }

/* table movement, and the nudge when a newer build has landed */
.moved { flex: none; font-size: 10px; font-weight: 700; font-variant-numeric: tabular-nums; }
.moved.up { color: var(--good); }
.moved.down { color: var(--live); }
.updatebar { position: fixed; left: 50%; transform: translateX(-50%); bottom: 86px;
             z-index: 20; display: flex; align-items: center; gap: 10px;
             padding: 9px 12px 9px 16px; border-radius: 22px; background: var(--ink);
             color: var(--ground); font-size: 13px; box-shadow: var(--shadow); }
.updatebar .chip { background: var(--ground); color: var(--ink); border: 0; height: 28px; }
.gwpick { border: 1px solid var(--line); background: var(--ground); color: var(--ink);
          border-radius: 8px; padding: 4px 8px; font-size: 12px; font-weight: 600;
          font-family: inherit; }
.iconbtn.bell { color: var(--muted); }
.iconbtn.bell.on { color: var(--live); }

/* league table: the columns a head-to-head season is actually read with */
.ltrow { display: flex; align-items: center; gap: 6px; padding: 9px 10px 9px 12px;
         border-bottom: 1px solid var(--line-soft); }
.ltrow.yours { background: var(--mine-soft); }
.ltrow.head { background: var(--surface); font-size: 9.5px; font-weight: 700;
              letter-spacing: .5px; color: var(--muted); padding-block: 6px; }
.ltrow .rk { width: 30px; flex: none; display: flex; align-items: center; gap: 2px; }
.ltrow .rk b { font-size: 12px; font-weight: 600; color: var(--muted); }
.ltrow .nm { flex-grow: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.ltrow .nm .tn { display: flex; align-items: center; gap: 5px; min-width: 0; }
.ltrow .nm b { font-size: 13px; font-weight: 600; white-space: nowrap;
               overflow: hidden; text-overflow: ellipsis; }
.ltrow .nm i { font-size: 10px; font-style: normal; color: var(--faint);
               white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ltrow .c, .ltrow .n { width: 24px; flex: none; text-align: center; font-size: 12px;
                       color: var(--muted); }
.ltrow .n { width: 34px; text-align: right; }
.ltrow .n.b { color: var(--ink); font-weight: 700; font-size: 14px; width: 30px; }
.ltrow.head .n.b { color: var(--muted); font-size: 9.5px; }
.form { display: flex; gap: 2px; margin-top: 2px; }
.form b { width: 13px; height: 13px; border-radius: 3px; font-size: 8px;
          font-weight: 700; display: grid; place-items: center; color: #fff; }
.form b.w { background: var(--good); }
.form b.d { background: var(--faint); }
.form b.l { background: var(--live); }
.legend { padding: 12px 16px 4px; font-size: 11px; line-height: 1.6;
          color: var(--faint); }
.legend b { color: var(--muted); font-weight: 700; }

/* A pitch shirt and a squad row are both links now, so they must lose the
 * button chrome a browser gives them and keep the layout they had as divs. */
.pitch .p { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; }
.pitch .p:hover .disc { outline: 2px solid var(--mine); outline-offset: 2px; }
.plist { width: 100%; background: none; border: 0; font: inherit; color: inherit;
         text-align: start; cursor: pointer; }
.plist:hover { background: var(--surface); }

/* A name that opens a player. Underlined on hover only: a timeline full of
 * underlines reads as a list of links rather than as a match. */
.plink { cursor: pointer; }
.plink:hover { text-decoration: underline; text-underline-offset: 2px; }

/* Teams analysis. A grid of boxes over one list of shots: each box is a
 * different group-by, and the filter above them re-cuts all of them at once. */
.boxgrid { display: flex; flex-direction: column; gap: 10px; padding: 8px 12px 4px; }
.anbox { display: block; width: 100%; text-align: start; font: inherit; color: inherit;
         background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
         padding: 12px 13px 10px; cursor: pointer; }
.anbox:hover { border-color: var(--line-strong, var(--line)); }
.anbox .bt { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; }
.anbox .bt b { font-size: 12px; font-weight: 700; letter-spacing: .4px;
               text-transform: uppercase; color: var(--muted); }
.anbox .bt .gchev { margin-inline-start: auto; display: inline-flex; color: var(--faint);
                    transition: transform .15s; }
.anbox[aria-expanded="true"] .bt .gchev { transform: rotate(180deg); }
.cutrow { display: flex; align-items: center; gap: 8px; padding: 3px 0; }
.cutrow .cl { width: 108px; flex: none; font-size: 12px; white-space: nowrap;
              overflow: hidden; text-overflow: ellipsis; }
.cutrow .ctrack { flex-grow: 1; min-width: 20px; height: 6px; border-radius: 3px;
                  background: var(--raise); overflow: hidden; }
.cutrow .ctrack i { display: block; height: 100%; background: var(--ink); opacity: .35; }
.cutrow .ctrack i.bad { background: var(--live); opacity: .5; }
.cutrow .cs { width: 26px; flex: none; text-align: right; font-size: 11.5px;
              color: var(--faint); }
.cutrow .cg { width: 22px; flex: none; text-align: right; font-size: 13px; font-weight: 700; }
.cutrow .cx { width: 34px; flex: none; text-align: right; font-size: 11px; color: var(--muted); }
.cutrow.head .cs, .cutrow.head .cg, .cutrow.head .cx { font-size: 9px; font-weight: 700;
              letter-spacing: .6px; color: var(--faint); }
.anbox .more { font-size: 11px; color: var(--faint); padding-top: 5px; }
.goallist { margin-top: 10px; border-top: 1px solid var(--line); }
.goalrow { display: flex; align-items: flex-start; gap: 9px; padding: 7px 0; }
.goalrow .gm { width: 30px; flex: none; font-size: 11px; font-weight: 700; color: var(--muted);
               padding-top: 2px; }
.goalrow .gn { flex-grow: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.goalrow .gn b { font-size: 13px; font-weight: 600; }
.goalrow .gn i { font-size: 10.5px; font-style: normal; color: var(--muted); line-height: 1.35; }
.goalrow .gx { width: 34px; flex: none; text-align: right; font-size: 11px; color: var(--faint);
               padding-top: 3px; }
.ptag { flex: none; height: 15px; padding: 0 5px; border-radius: 3px; background: var(--raise);
        color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .4px;
        display: inline-flex; align-items: center; }
.followrow .chev { color: var(--faint); display: inline-flex; }
.chips { scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }

/* Fantasy on the lineup: points and rating side by side on every shirt. */
.lineup-pitch .fx { display: inline-flex; gap: 3px; margin-top: 2px; }
.lineup-pitch .fx .pchip { position: static; }
.pchip.est { opacity: .78; box-shadow: inset 0 0 0 1px rgba(255,255,255,.55); }
.rchip { min-width: 24px; height: 17px; padding: 0 4px; border-radius: 9px; font-size: 9.5px;
         font-weight: 700; display: inline-flex; align-items: center; justify-content: center;
         background: rgba(0,0,0,.35); color: #fff; }
.plist .fx { display: inline-flex; gap: 4px; margin-inline-start: 8px; }
.plist .fx .rchip { background: var(--raise); color: var(--ink-2); }
.fxbox { margin: 8px 12px 4px; padding: 10px 12px; border-radius: 12px;
         background: var(--surface); border: 1px solid var(--line); }
.fxhead { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.fxhead b { font-size: 14px; flex-grow: 1; }
.fxline { display: flex; justify-content: space-between; font-size: 12.5px; padding: 3px 0;
          border-top: 1px solid var(--line-soft); }
.fxbox .chip { margin-top: 8px; display: inline-flex; align-items: center; text-decoration: none; }
