/* PayDay — Ticket UI kit (mobile web + the Flutter app's visual reference)
   ======================================================================
   Ported from the design handoff (app/css/payday-ticket.css) and extended
   with the classes the handoff screens defined in their own <style> blocks,
   so no page re-declares a component.

   Two deliberate departures from the handoff files:

   1. `.scr` in the handoff is a 390x844 mockup frame with overflow hidden.
      Here it is a fluid phone-first shell: full width, capped and centred on
      wide screens, the document scrolls, and the tab bar and WhatsApp float
      are fixed to the viewport with safe-area insets. At 390px the rendering
      is identical to the mockups.
   2. Classes that collided between screens are renamed (noted at each one).

   Colour rule, both surfaces: green means live / won / go and nothing else.
   Brand-green fills always carry dark text. */

:root{
  --g:#29B36A;--g2:#23A05E;--ink:#06140C;--w:#FFFFFF;--mute:#4A554F;
  --line:#C9D3CD;--soft:#EEF3EF;--dm:#A9B5AE;
  /* WHEAT. A warm neutral to break up a page that is otherwise saturated
     green edge to edge, so the eye has somewhere to rest.

     It is a SURFACE first and a text colour second, and the measurement says
     why. Against our green, wheat as text is 2.06:1 — under the 3:1 floor for
     large text, let alone body — so a wheat headline on the green board would
     be the one place it cannot go. As a surface it is the opposite: ink on
     wheat is 14.36:1 and mute on wheat 5.91:1, both comfortably past AA. And
     on the dark screens wheat IS the text colour, at 14.36:1 on ink.

     So: wheat panels under dark type on green pages, wheat type on ink ones. */
  --wheat:#F5DEB3;--wheat-d:#E8CC93;--wheat-tint:rgba(6,20,12,.08);
  --coral:#FF8A7A;--lost:#B3261E;--amber:#8A4B00;--amber-soft:#FFE7B8;
  --amber-ink:#3D2200;
  --tabh:74px;                      /* tab bar height, for body padding */
  --shell:480px;                    /* phone shell cap on wide screens */
}
*{box-sizing:border-box}
/* The browser's own [hidden] rule is in the UA stylesheet, so ANY author
   `display` outranks it — and `.btn`, `.cta` and `.tk` all set one. A button
   written `<button hidden>` therefore stayed visible, which is how the web
   app's install button showed itself before the browser had offered the
   install prompt. Author-level, so hidden means hidden. */
[hidden]{display:none!important}
html{background:var(--g)}
body{margin:0;font-family:'Barlow',system-ui,-apple-system,sans-serif;color:var(--ink);background:var(--g);-webkit-font-smoothing:antialiased;-webkit-text-size-adjust:100%}
body.ink{background:var(--ink)}
a{color:var(--ink)}
p,h1,h2,h3{margin:0}
.d{font-family:'Barlow Condensed','Arial Narrow',sans-serif;text-transform:uppercase;letter-spacing:.01em}
.ic{width:20px;height:20px;flex:none;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
:focus-visible{outline:3px solid var(--ink);outline-offset:2px}
.scr.ink :focus-visible,body.ink :focus-visible{outline-color:var(--w)}

/* ---------- shell ---------- */
.scr{width:100%;max-width:var(--shell);margin:0 auto;min-height:100dvh;background:var(--g);display:flex;flex-direction:column;position:relative;font-family:'Barlow',system-ui,sans-serif;color:var(--ink)}
.scr.ink{background:var(--ink);color:var(--w)}
.bar{display:flex;align-items:center;gap:10px;padding:calc(16px + env(safe-area-inset-top)) 16px 8px;min-height:60px}
.wm{font-family:'Barlow Condensed',sans-serif;text-transform:uppercase;font-size:30px;font-weight:800;line-height:1;text-decoration:none;color:inherit;display:flex;align-items:center}
/* The real logo, where the bar carries it.

   The lockup's "P" tile is green, which all but disappears against the green
   ground, and its tagline is unreadable at bar size. So it sits on a white
   chip with the tickets' own corner radius: the tile reads, the dark type
   reads, and it works unchanged on the ink screens too. */
.wm.mark{background:var(--w);border-radius:10px;padding:5px 9px}
.wm img{height:28px;width:auto;display:block}
.bar .r{margin-left:auto;display:flex;gap:8px;align-items:center}
.lang{height:36px;padding:0 12px;border-radius:18px;border:2px solid var(--ink);font-size:13px;font-weight:700;display:flex;align-items:center;text-decoration:none;color:var(--ink);background:transparent;cursor:pointer}
.scr.ink .lang{border-color:var(--w);color:var(--w)}
.login{height:36px;padding:0 14px;border-radius:18px;background:var(--ink);color:var(--w);font-size:13px;font-weight:700;display:flex;align-items:center;text-decoration:none}
.scr.ink .login{background:var(--w);color:var(--ink)}
.back{width:44px;height:44px;border-radius:50%;border:2px solid var(--ink);display:grid;place-items:center;color:var(--ink);text-decoration:none;flex:none}
.scr.ink .back{border-color:var(--w);color:var(--w)}
.ttl{font-family:'Barlow Condensed',sans-serif;text-transform:uppercase;font-size:28px;font-weight:800;line-height:1}
.h1{font-family:'Barlow Condensed',sans-serif;text-transform:uppercase;font-size:46px;font-weight:800;line-height:.95}
.body{flex:1;min-height:0;padding:12px 16px 16px;display:flex;flex-direction:column;gap:10px}
/* Screens with the tab bar leave room for it; `.body.flush` is for screens without one. */
.body{padding-bottom:calc(var(--tabh) + env(safe-area-inset-bottom) + 16px)}
.body.flush{padding-bottom:calc(16px + env(safe-area-inset-bottom))}
.note{font-size:13px;font-weight:500;line-height:1.4}
.mute{color:var(--mute)}
.scr.ink .mute{color:var(--dm)}
.lbl{font-family:'Barlow Condensed',sans-serif;text-transform:uppercase;font-size:15px;font-weight:700;letter-spacing:.03em}
.spread{display:flex;justify-content:space-between;align-items:baseline;gap:10px}

/* ---------- day switch ---------- */
.days{display:flex;gap:6px;padding:4px 16px 0}
.days a{flex:1;height:44px;border-radius:22px;border:2px solid var(--ink);display:flex;align-items:center;justify-content:center;font-family:'Barlow Condensed',sans-serif;text-transform:uppercase;font-size:17px;font-weight:700;text-decoration:none;color:var(--ink)}
.days a.on{background:var(--ink);color:var(--w)}

/* ---------- ticket ---------- */
.tk{display:flex;background:var(--w);border-radius:12px;position:relative;text-decoration:none;color:var(--ink);min-height:78px;flex:none}
.tk::before,.tk::after{content:"";position:absolute;left:62px;width:16px;height:16px;border-radius:50%;background:var(--g)}
.tk::before{top:-8px}.tk::after{bottom:-8px}
.scr.ink .tk::before,.scr.ink .tk::after{background:var(--ink)}
.tk .stub{width:70px;border-right:2px dashed var(--line);display:flex;flex-direction:column;align-items:center;justify-content:center;flex:none;text-align:center}
.tk .stub b{font-family:'Barlow Condensed',sans-serif;font-size:22px;font-weight:800;line-height:1}
.tk .stub span{font-family:'Barlow Condensed',sans-serif;text-transform:uppercase;font-size:12px;font-weight:700;color:var(--mute)}
.tk .main{flex:1;min-width:0;padding:10px 12px;display:flex;flex-direction:column;justify-content:center;gap:2px}
.tk .main span{font-size:13px;font-weight:600;color:var(--mute);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tk .main b{font-family:'Barlow Condensed',sans-serif;text-transform:uppercase;font-size:23px;font-weight:800;line-height:1.05}
.stamp{width:62px;height:62px;border-radius:50%;border:3px solid var(--ink);display:grid;place-items:center;font-family:'Barlow Condensed',sans-serif;font-size:22px;font-weight:800;margin:8px 10px 8px 0;flex:none;transform:rotate(-8deg)}
.stamp.won{background:var(--g);border-color:var(--ink)}
.stamp.lost{border-color:var(--lost);color:var(--lost)}
.tk.dark{background:var(--ink);color:var(--w)}
.tk.dark .stub{border-right-color:#33403A}
.tk.dark .stub span,.tk.dark .main span{color:var(--dm)}
.tk.dark .stamp{border-color:var(--w)}
.tk.dim{opacity:1}

/* ---- crests, and the result banner on a settled ticket ----
   The crest strip sits inline with the fixture name. Coverage is partial, so
   a side with no logo draws its initials at the same 20px: the row keeps its
   shape either way, which a missing <img> would not.
   .res is the mark a finished pick earns. It is deliberately louder than the
   green stamp it sits beside -- the stamp alone was being read as decoration. */
.tk .main .fx{display:flex;align-items:center;gap:6px}
.tk .cr{display:inline-flex;align-items:center;gap:-4px;flex:none}
.tk .cr img,.tk .cr i{width:20px;height:20px;border-radius:50%;flex:none;display:grid;place-items:center}
.tk .cr img{object-fit:contain;background:var(--w);border:1px solid var(--line)}
.tk .cr i{font-style:normal;font-family:'Barlow Condensed',sans-serif;font-size:9px;font-weight:800;background:var(--soft);color:var(--mute);border:1px solid var(--line)}
.tk .cr :nth-child(2){margin-left:-6px}
/* The won banner is meant to be the loudest thing on a ticket after the
   odds, because it is the only part of this product that is evidence rather
   than a claim. It was a 13px chip with two ink-stroked icons, which on a
   ticket already made of ink strokes read as more furniture; at 16px with
   the cup and the cash in full colour it is the first thing the eye lands
   on in a row of finished matches.
   LOST stays deliberately quiet — outline, no fill, no emoji. A board that
   shouts about its wins and whispers its losses would be dishonest; a board
   that shouts about both would be unreadable. The losses are stated, in the
   same place, in the same words, without decoration. */
.tk .main .res{display:inline-flex;align-items:center;gap:6px;align-self:flex-start;margin-top:5px;padding:4px 12px;border-radius:999px;font-family:'Barlow Condensed',sans-serif;text-transform:uppercase;font-size:16px;font-weight:800;letter-spacing:.06em;white-space:nowrap;line-height:1}
/* WHITE on INK, not white on green. White on our green measures 2.71:1 and
   this is 16px bold — under WCAG's 18.66px bold threshold for "large", so it
   needs 4.5:1, not 3:1. Even the darker --g2 only reaches 3.35. On ink it is
   18.87:1, and a black pill with white type and two colour emoji reads harder
   on a white ticket than the green one did anyway. The green moves to the
   shadow, where it keeps the accent without carrying any text. */
.tk .main .res.won{background:var(--ink);color:var(--w);border:2px solid var(--ink);box-shadow:0 2px 0 var(--g)}
.tk .main .res.lost{background:transparent;color:var(--lost);border:2px solid var(--lost);font-size:13px;letter-spacing:.04em;padding:3px 10px}
/* Emoji ignore font-family and colour, so they are sized on their own. The
   nudge keeps them on the cap height of the word rather than its baseline. */
.tk .main .res .em{font-size:15px;line-height:1;transform:translateY(-.5px)}
/* On a dark ticket an ink pill would vanish, so it inverts back to the green
   fill with ink type — 6.96:1 — and a white edge to lift it off the card. */
.tk.dark .main .res.won{background:var(--g);color:var(--ink);border-color:var(--w);box-shadow:0 2px 0 var(--w)}
/* A won ticket is never dimmed: it is the one row on the board worth seeing. */
.tk.dim .main .res.won{color:var(--w)}
.tk.dim.won-row .main b,.tk.dim.won-row .stub b{color:var(--ink)}
.tk.dim .main b,.tk.dim .stub b{color:#6B766F}
/* trailing affordances on a ticket (from Slips.html) */
.tk .go,.tk .lk{width:44px;height:44px;border-radius:50%;display:grid;place-items:center;margin:0 12px 0 0;align-self:center;flex:none}
.tk .go{background:var(--ink);color:var(--w)}
.tk .lk{border:2px solid var(--ink);color:var(--ink)}
.tk.dark .lk{border-color:var(--w);color:var(--w)}
.tk.dark .go{background:var(--w);color:var(--ink)}

/* ---------- result marks ---------- */
.res{display:inline-grid;place-items:center;min-width:28px;height:28px;padding:0 6px;border-radius:14px;font-family:'Barlow Condensed',sans-serif;font-size:15px;font-weight:800}
.res.w{background:var(--g);color:var(--ink)}
.res.l{background:var(--lost);color:var(--w)}
.res.o{background:var(--soft);color:var(--mute)}
.seq{display:flex;gap:3px;align-items:flex-end}
.seq i{width:9px;height:18px;border-radius:2px;background:var(--g)}
.seq i.l{background:var(--coral);height:10px}
/* Not yet graded: neither a win nor a loss, so neither colour. */
.seq i.p{background:rgba(255,255,255,.28);height:14px}
.scr:not(.ink) .seq i.p,.site:not(.ink) .seq i.p{background:rgba(6,20,12,.22)}
.sheet.dk .seq i.p,.tk.dark .seq i.p{background:rgba(255,255,255,.28)}
.won-txt{color:var(--g)}

/* ---------- big slip ticket ---------- */
.big{background:var(--w);border-radius:16px;position:relative;flex:none}
.big .hd{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:14px 16px 8px}
.big .hd b{font-family:'Barlow Condensed',sans-serif;text-transform:uppercase;font-size:30px;font-weight:800;line-height:1}
.pill{font-family:'Barlow Condensed',sans-serif;text-transform:uppercase;font-size:15px;font-weight:800;border:2px solid var(--ink);border-radius:14px;padding:2px 10px;white-space:nowrap}
.pill.vip{background:var(--ink);color:var(--w)}
.pill.g{background:var(--g);border-color:var(--g)}
.leg{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 16px}
.leg b{display:block;font-family:'Barlow Condensed',sans-serif;text-transform:uppercase;font-size:20px;font-weight:800;line-height:1.1}
.leg span{font-size:13px;font-weight:600;color:var(--mute)}
.leg .grow{flex:1;min-width:0}
.leg .o{font-family:'Barlow Condensed',sans-serif;font-size:22px;font-weight:800}
/* A leg's fixture line carries the two badges and the kickoff, the same pair
   the ticket draws (.tk .cr) at the same 20px. Added 2026-11-05: the slips
   area had neither, so a slip built out of the board's own picks looked like a
   different product from the board. */
.leg .fx{display:flex;align-items:center;gap:6px;min-width:0}
.leg .cr{display:inline-flex;align-items:center;flex:none}
.leg .cr img,.leg .cr i{width:20px;height:20px;border-radius:50%;flex:none;display:grid;place-items:center}
.leg .cr img{object-fit:contain;background:var(--w);border:1px solid var(--line)}
.leg .cr i{font-style:normal;font-family:'Barlow Condensed',sans-serif;font-size:9px;font-weight:800;background:var(--soft);color:var(--mute);border:1px solid var(--line)}
.leg .cr :nth-child(2){margin-left:-6px}
.perf{position:relative;border-top:2px dashed var(--line);margin:8px 0}
.perf::before,.perf::after{content:"";position:absolute;top:-9px;width:16px;height:16px;border-radius:50%;background:var(--g)}
.perf::before{left:-8px}.perf::after{right:-8px}
.scr.ink .perf::before,.scr.ink .perf::after{background:var(--ink)}
.tot{display:flex;align-items:baseline;justify-content:space-between;padding:4px 16px}
.tot span{font-family:'Barlow Condensed',sans-serif;text-transform:uppercase;font-size:18px;font-weight:700}
.tot b{font-family:'Barlow Condensed',sans-serif;font-size:52px;font-weight:800;line-height:1}
/* possible return footer (MySlip.html .ret) */
.ret{display:flex;justify-content:space-between;align-items:baseline;padding:0 16px 14px}
.ret b{font-family:'Barlow Condensed',sans-serif;font-size:30px;font-weight:800}
/* remove-a-leg button (MySlip.html) */
.rm{width:44px;height:44px;border-radius:50%;border:2px solid var(--line);background:var(--w);display:grid;place-items:center;color:var(--mute);flex:none;cursor:pointer}

/* ---------- bookmaker + booking code ---------- */
/* Wraps: a slip can carry codes for more bookmakers than fit on one row. */
.bks{display:flex;flex-wrap:wrap;gap:6px;padding:6px 16px 0}
.bk{flex:1 1 calc(50% - 3px);min-width:0;height:44px;border-radius:22px;border:2px solid var(--ink);display:flex;align-items:center;justify-content:center;gap:6px;font-family:'Barlow Condensed',sans-serif;text-transform:uppercase;font-size:15px;font-weight:700;text-decoration:none;color:var(--ink);background:var(--w);overflow:hidden;white-space:nowrap}
.bk.on{background:var(--ink);color:var(--w)}
.bk i{width:22px;height:22px;border-radius:50%;background:var(--line);color:var(--ink);font-style:normal;font-size:8px;font-weight:800;display:grid;place-items:center;font-family:'Barlow',sans-serif}
.code{margin:12px 16px 0;border:3px solid var(--ink);border-radius:10px;padding:8px 12px;display:flex;align-items:center;justify-content:space-between;gap:10px}
.code b{font-family:'Barlow Condensed',sans-serif;font-size:34px;font-weight:800;letter-spacing:.12em;line-height:1}
.code span{font-family:'Barlow Condensed',sans-serif;text-transform:uppercase;font-size:13px;font-weight:700}
.acts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:12px 16px 16px}
/* a ticket and its booking code as ONE card: the code sits on a tear-off
   strip below the perforation (the ticket's own bottom notches mark the
   tear). The strip is outside the ticket's link, so copy never opens the
   match. Bookmaker mark under the stub, code, a small round copy button. */
.tcard{display:flex;flex-direction:column;min-width:0}
.tcard.coded>.tk{border-radius:12px 12px 0 0}
.tkc{display:flex;align-items:center;justify-content:center;gap:10px;background:var(--w);border-top:2px dashed var(--line);border-radius:0 0 12px 12px;padding:5px 8px;min-height:30px}
.tkc .bkm{flex:none;display:grid;place-items:center;text-decoration:none}
.bkmark{width:24px;height:24px;border-radius:50%;display:grid;place-items:center;flex:none}
i.bkmark{font-style:normal;font-family:'Barlow Condensed',sans-serif;font-size:11px;font-weight:800;letter-spacing:.02em;background:var(--ink);color:var(--w)}
img.bkmark{object-fit:contain;background:var(--w);border:1px solid var(--line)}
.tkc b{flex:none;min-width:0;font-family:'Barlow Condensed',sans-serif;font-size:14px;font-weight:400;letter-spacing:.12em;line-height:1;user-select:all;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tkc .cpy{flex:none;height:22px;border-radius:999px;border:1.5px solid var(--ink);background:var(--w);color:var(--ink);display:inline-flex;align-items:center;gap:4px;cursor:pointer;padding:0 8px 0 6px;font-family:'Barlow',sans-serif;font-size:10.5px;font-weight:700;line-height:1;white-space:nowrap}
.tkc .cpy .ic{width:11px;height:11px}
/* the bookmaker's mark and the copy button are deliberately tiny: the code is the content */
.tkc .bkm{width:auto;padding-left:0}
.tkc img.bkmark{width:auto;height:13px;max-width:56px;border:0;border-radius:2px;background:none}
.tkc i.bkmark{width:16px;height:16px;font-size:8px}
.tkc .cpy .done{display:none}
.tkc .cpy.ok{background:var(--ink);color:var(--w)}
.tkc .cpy.ok .ic{display:none}.tkc .cpy.ok .done{display:block}.tkc .cpy.ok .done{width:11px;height:11px}
/* on a big slip the strip closes the slip, under its total */
.big .tkc{margin-top:8px;border-radius:0 0 16px 16px;padding:8px 12px 10px}
.big .tkc .bkm{width:auto;padding-left:0}
.code b{user-select:all}
/* partner slot (SlipDetail.html) */
.partner{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:12px;background:rgba(255,255,255,.55);border:1px solid rgba(6,20,12,.18);font-size:13px;font-weight:600}
.partner .t{font-family:'Barlow Condensed',sans-serif;text-transform:uppercase;font-size:12px;font-weight:700;letter-spacing:.06em}

/* ---------- buttons ---------- */
.btn{height:48px;border-radius:24px;display:flex;align-items:center;justify-content:center;gap:8px;font-family:'Barlow Condensed',sans-serif;text-transform:uppercase;font-size:18px;font-weight:800;text-decoration:none;border:2px solid var(--ink);color:var(--ink);background:transparent;cursor:pointer;flex:none;width:100%}
.btn.p{background:var(--ink);color:var(--w)}
.btn.w{background:var(--w)}
.btn.g{background:var(--g);border-color:var(--g);color:var(--ink)}
.btn.l{height:56px;border-radius:28px;font-size:21px}
.btn[disabled],.btn[aria-disabled="true"]{opacity:.45;pointer-events:none}
.scr.ink .btn{border-color:var(--w);color:var(--w)}
.scr.ink .btn.g{border-color:var(--g);color:var(--ink)}
.scr.ink .btn.w{color:var(--ink)}
.cta{height:52px;border-radius:26px;background:var(--ink);color:var(--w);font-family:'Barlow Condensed',sans-serif;text-transform:uppercase;font-size:20px;font-weight:800;display:flex;align-items:center;justify-content:center;text-align:center;padding:0 16px;text-decoration:none;flex:none;border:0;cursor:pointer;width:100%}
.link{font-weight:700;text-decoration:underline;text-underline-offset:3px}
/* divider with a word in it (Login/Register "or") */
.or{display:flex;align-items:center;gap:10px;font-family:'Barlow Condensed',sans-serif;text-transform:uppercase;font-weight:700;font-size:15px}
.or::before,.or::after{content:"";flex:1;height:2px;background:rgba(6,20,12,.25)}
.scr.ink .or::before,.scr.ink .or::after{background:rgba(255,255,255,.25)}

/* ---------- paper sheets + forms ---------- */
.sheet{background:var(--w);border-radius:16px;padding:16px;display:flex;flex-direction:column;gap:12px;flex:none;color:var(--ink)}
.sheet.dk{background:var(--ink);color:var(--w)}
.row{display:flex;align-items:center;gap:12px;min-height:52px;padding:6px 0;border-bottom:1px solid var(--soft);text-decoration:none;color:var(--ink)}
.row:last-child{border-bottom:0}
.row .grow{flex:1;min-width:0}
.row .grow b{display:block;font-weight:700;font-size:15px}
.row .grow span{display:block;font-size:13px;color:var(--mute)}
.sheet.dk .row{border-bottom-color:#26332C;color:var(--w)}
.sheet.dk .row .grow span{color:var(--dm)}
.chev{color:var(--mute);flex:none}
.field{display:flex;flex-direction:column;gap:6px}
.field label{font-family:'Barlow Condensed',sans-serif;text-transform:uppercase;font-size:15px;font-weight:700}
.inp{height:52px;border:2px solid var(--ink);border-radius:12px;padding:0 14px;font-family:'Barlow',sans-serif;font-size:17px;font-weight:600;background:var(--w);color:var(--ink);width:100%}
textarea.inp{height:auto;padding:12px 14px;line-height:1.4;resize:vertical}
.pre{display:flex;align-items:center;border:2px solid var(--ink);border-radius:12px;background:var(--w);height:52px;overflow:hidden}
.pre span{padding:0 12px;font-weight:700;font-size:17px;border-right:2px solid var(--soft);height:100%;display:flex;align-items:center}
.pre input{border:0;flex:1;height:100%;padding:0 12px;font-family:'Barlow',sans-serif;font-size:17px;font-weight:600;background:transparent;color:var(--ink);min-width:0}
/* The country picker in a split field. Same weight and divider as the static
   .pre span it replaced, so a chosen dial code reads as part of the number
   rather than as a second control bolted on. */
.pre select{border:0;border-right:2px solid var(--soft);height:100%;padding:0 8px 0 12px;font-family:'Barlow',sans-serif;font-size:17px;font-weight:700;background:transparent;color:var(--ink);cursor:pointer;-webkit-appearance:none;appearance:none}
.pre select:focus{outline:2px solid var(--green);outline-offset:-2px}
.radio{display:flex;align-items:center;gap:12px;min-height:56px;padding:8px 14px;border:2px solid var(--line);border-radius:14px;background:var(--w);font-weight:700;font-size:16px}
.radio.on{border-color:var(--ink);box-shadow:inset 0 0 0 1px var(--ink)}
.radio input{width:22px;height:22px;accent-color:#06140C;margin:0}
.chk{display:flex;gap:10px;align-items:flex-start;font-size:14px;font-weight:500}
.chk input{width:20px;height:20px;accent-color:#06140C;margin:0;flex:none}
.seg{display:flex;background:var(--soft);border-radius:22px;padding:3px}
.seg a{flex:1;height:38px;border-radius:19px;display:flex;align-items:center;justify-content:center;font-family:'Barlow Condensed',sans-serif;text-transform:uppercase;font-size:16px;font-weight:700;text-decoration:none;color:var(--mute)}
.seg a.on{background:var(--ink);color:var(--w)}
.seg.ground{background:rgba(6,20,12,.12)}
/* search field (Support.html) */
.srch{display:flex;align-items:center;gap:10px;height:52px;border-radius:26px;background:var(--w);border:2px solid var(--ink);padding:0 16px}
.srch input{border:0;flex:1;font-family:'Barlow',sans-serif;font-size:16px;font-weight:600;background:transparent;color:var(--ink);min-width:0}

/* ---------- choice grids ---------- */
/* wallet picker (Checkout.html) */
.wl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.wl label{display:flex;align-items:center;gap:10px;min-height:56px;padding:8px 12px;border:2px solid var(--line);border-radius:14px;background:var(--w);font-weight:700;font-size:15px}
.wl label.on{border-color:var(--ink);box-shadow:inset 0 0 0 1px var(--ink)}
.wl input{width:20px;height:20px;accent-color:#06140C;margin:0}
.wl i{width:28px;height:28px;border-radius:7px;background:var(--soft);border:1px solid var(--line);font-style:normal;font-size:8px;font-weight:800;color:var(--mute);display:grid;place-items:center;flex:none}
/* target-odds grid + risk row (Generator.html) */
.tg{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
.tg a,.tg button{height:60px;border-radius:14px;border:2px solid var(--ink);display:flex;align-items:center;justify-content:center;font-family:'Barlow Condensed',sans-serif;font-size:26px;font-weight:800;text-decoration:none;color:var(--ink);background:var(--w);cursor:pointer}
.tg a.on,.tg button.on{background:var(--ink);color:var(--w)}
.rk{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.rk a,.rk button{height:48px;border-radius:24px;border:2px solid var(--ink);display:flex;align-items:center;justify-content:center;font-family:'Barlow Condensed',sans-serif;text-transform:uppercase;font-size:17px;font-weight:700;text-decoration:none;color:var(--ink);background:transparent;cursor:pointer}
.rk a.on,.rk button.on{background:var(--ink);color:var(--w)}
/* language picker (Onboarding.html) */
.lg{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.lg a{height:48px;border-radius:24px;border:2px solid var(--ink);display:flex;align-items:center;justify-content:center;font-weight:700;font-size:15px;text-decoration:none;color:var(--ink)}
.lg a.on{background:var(--ink);color:var(--w)}
/* favourite-team chips (Onboarding.html) */
.fav{display:flex;flex-wrap:wrap;gap:6px}
.fav label{display:flex;align-items:center;gap:6px;height:40px;padding:0 12px;border-radius:20px;border:2px solid var(--ink);font-size:14px;font-weight:700;background:var(--w);cursor:pointer;position:relative}
.fav label.on{background:var(--ink);color:var(--w)}
.fav input{position:absolute;opacity:0;pointer-events:none}
/* secondary tool chips (Tools.html .mini — renamed: `.mini` meant a dark row on Live.html) */
.chips{display:flex;flex-wrap:wrap;gap:6px}
.chips a,.chips button{height:36px;padding:0 12px;border-radius:18px;border:2px solid var(--ink);display:flex;align-items:center;font-family:'Barlow Condensed',sans-serif;text-transform:uppercase;font-size:15px;font-weight:700;text-decoration:none;color:var(--ink);background:transparent;cursor:pointer}
.chips a.on,.chips button.on{background:var(--ink);color:var(--w)}
/* four-up tile grid (Tools.html .more) */
.more{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
.more a{min-height:64px;border-radius:14px;border:2px solid var(--ink);background:var(--w);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;font-family:'Barlow Condensed',sans-serif;text-transform:uppercase;font-size:14px;font-weight:700;text-decoration:none;color:var(--ink);text-align:center;padding:4px}

/* ---------- pricing ---------- */
.get{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:8px}
.get li{display:flex;gap:10px;align-items:center;font-size:15px;font-weight:600}
.get li svg{color:var(--g)}
.pk{display:flex;align-items:center;gap:12px;background:var(--w);border-radius:14px;padding:12px 14px;border:3px solid transparent;position:relative}
.pk.on{border-color:var(--ink)}
.pk input{width:22px;height:22px;accent-color:#06140C;margin:0;flex:none}
.pk .n{flex:1;min-width:0}
.pk .n b{display:block;font-family:'Barlow Condensed',sans-serif;text-transform:uppercase;font-size:22px;font-weight:800;line-height:1}
.pk .n span{font-size:13px;font-weight:600;color:var(--mute)}
.pk .p{font-family:'Barlow Condensed',sans-serif;font-size:26px;font-weight:800;text-align:right;line-height:1}
.pk .p small{display:block;font-size:12px;font-weight:700;color:var(--mute)}
.best{position:absolute;top:-11px;right:14px;background:var(--ink);color:var(--w);font-family:'Barlow Condensed',sans-serif;text-transform:uppercase;font-size:12px;font-weight:800;border-radius:6px;padding:2px 8px}

/* ---------- match detail ---------- */
.teams{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:8px;text-align:center}
.crest{width:52px;height:52px;border-radius:50%;background:var(--soft);border:2px solid var(--line);display:grid;place-items:center;margin:0 auto 6px;font-size:12px;font-weight:800;color:var(--mute);overflow:hidden}
.crest img{width:100%;height:100%;object-fit:contain}
.why{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:10px}
.why li{display:flex;gap:10px;font-size:15px;font-weight:500;line-height:1.35}
.why li::before{content:"";width:8px;height:8px;border-radius:50%;background:var(--g);margin-top:6px;flex:none}
.add{width:44px;height:44px;border-radius:50%;border:2px solid var(--ink);display:grid;place-items:center;background:var(--w);color:var(--ink);flex:none;cursor:pointer}

/* ---------- live ---------- */
.lv{display:inline-flex;align-items:center;gap:6px;font-family:'Barlow Condensed',sans-serif;font-weight:800;font-size:16px;text-transform:uppercase}
.lv::before{content:"";width:9px;height:9px;border-radius:50%;background:var(--g)}
/* `.card` on Live.html — renamed `.lv-card` so it cannot collide */
.lv-card{background:var(--w);color:var(--ink);border-radius:16px;padding:14px 16px;display:flex;flex-direction:column;gap:10px;flex:none}
.lv-card .btn{border-color:var(--ink);color:var(--ink)}
.lv-card .btn.p{background:var(--ink);color:var(--w)}
.score{display:flex;align-items:center;justify-content:space-between;gap:10px}
.min{font-family:'Barlow Condensed',sans-serif;font-weight:800;font-size:16px;background:var(--ink);color:var(--w);border-radius:6px;padding:2px 7px}
.age{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:700;border-radius:10px;padding:8px 10px}
.age.ok{background:#E3F5EA;color:#0B4D2A}
.age.old{background:var(--amber-soft);color:var(--amber-ink)}
/* A settled live pick: the badge stops being a warning and just reports.
   The desktop Live screen (DLive.html) introduces this state; the phone
   needs the same badge once a pick closes. */
.age.done{background:var(--soft);color:var(--mute)}
/* `.mini` on Live.html — renamed `.lv-row` (a list row on the dark ground) */
.lv-row{display:flex;align-items:center;gap:10px;padding:10px 0;border-bottom:1px solid #26332C;font-size:14px}
.lv-row:last-child{border-bottom:0}

/* ---------- payment states ---------- */
/* `.why` on Failed.html was a box, not Match.html's bullet list — renamed `.reason` */
.reason{display:flex;gap:12px;align-items:flex-start;background:var(--w);border-radius:14px;padding:14px;border:3px solid var(--lost);color:var(--ink)}
.reason .x{width:36px;height:36px;border-radius:50%;background:var(--lost);color:var(--w);display:grid;place-items:center;flex:none}
.reason b{display:block;font-family:'Barlow Condensed',sans-serif;text-transform:uppercase;font-size:20px;font-weight:800;line-height:1.1}
.phone{width:96px;height:96px;border-radius:28px;border:3px solid var(--g);display:grid;place-items:center;color:var(--g);position:relative}
.phone::after{content:"";position:absolute;inset:-12px;border-radius:38px;border:2px dashed rgba(41,179,106,.5)}
.steps{display:flex;flex-direction:column;gap:0}
.st{display:flex;gap:12px;align-items:center;padding:12px 0;border-bottom:1px solid #26332C;font-size:16px;font-weight:600}
.st:last-child{border-bottom:0}
.st i{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;font-style:normal;font-family:'Barlow Condensed',sans-serif;font-weight:800;font-size:16px;flex:none}
.st i.ok{background:var(--g);color:var(--ink)}
.st i.now{background:var(--w);color:var(--ink)}
.st i.next{border:2px solid var(--mute);color:var(--dm)}
.dots{display:inline-flex;gap:4px}
.dots b{width:7px;height:7px;border-radius:50%;background:var(--g)}
.dots b:nth-child(2){opacity:.6}
.dots b:nth-child(3){opacity:.3}
/* VIP switched on (Success.html) */
.vip-on{background:var(--ink);color:var(--w);border-radius:18px;padding:22px 18px;position:relative;display:flex;flex-direction:column;gap:6px}
.vip-on .big-t{font-family:'Barlow Condensed',sans-serif;text-transform:uppercase;font-size:64px;font-weight:800;line-height:.9}
.vip-on .seal{position:absolute;right:16px;top:18px;width:84px;height:84px;border-radius:50%;border:3px solid var(--g);color:var(--g);display:grid;place-items:center;transform:rotate(-12deg);font-family:'Barlow Condensed',sans-serif;text-transform:uppercase;font-size:20px;font-weight:800;text-align:center;line-height:1}

/* ---------- sign-up proof row (Register.html) ---------- */
.free{display:flex;gap:8px}
.free span{flex:1;background:rgba(255,255,255,.55);border-radius:12px;padding:10px;font-size:13px;font-weight:600;text-align:center}
.free b{display:block;font-family:'Barlow Condensed',sans-serif;font-size:26px;font-weight:800;line-height:1}

/* ---------- onboarding how-it-works ---------- */
.how{display:flex;gap:12px;align-items:flex-start}
.how i{width:34px;height:34px;border-radius:50%;background:var(--ink);color:var(--w);display:grid;place-items:center;font-style:normal;font-family:'Barlow Condensed',sans-serif;font-size:18px;font-weight:800;flex:none}
.how b{display:block;font-family:'Barlow Condensed',sans-serif;text-transform:uppercase;font-size:19px;font-weight:800;line-height:1.1}
.how span{font-size:14px;color:var(--mute);font-weight:500}

/* ---------- profile ---------- */
.av{width:52px;height:52px;border-radius:50%;background:var(--ink);color:var(--w);display:grid;place-items:center;font-family:'Barlow Condensed',sans-serif;font-size:22px;font-weight:800;flex:none}
.days-left{font-family:'Barlow Condensed',sans-serif;font-size:56px;font-weight:800;line-height:.9;color:var(--g)}

/* ---------- states ---------- */
.banner{display:flex;align-items:center;gap:10px;padding:10px 14px;border-radius:12px;background:var(--ink);color:var(--w);font-size:14px;font-weight:600;flex:none}
.banner.warn{background:var(--amber-soft);color:var(--amber-ink)}
.banner.lost{background:var(--lost);color:var(--w)}
/* Success is the dark banner with a green mark — a green fill would vanish
   against the green ground. Same language as the toast. */
.banner.ok{background:var(--ink);color:var(--w)}
.banner.ok .ic{color:var(--g)}
/* amber caution strip (Tools.html .flag) */
.flag{display:flex;align-items:center;gap:10px;padding:8px 10px;border-radius:10px;background:var(--amber-soft);color:var(--amber-ink);font-size:13.5px;font-weight:600}
.meter{display:flex;gap:4px}
.meter i{flex:1;height:8px;border-radius:4px;background:var(--ink)}
.meter i.u{background:rgba(6,20,12,.18)}
.scr.ink .meter i{background:var(--g)}
.scr.ink .meter i.u{background:rgba(255,255,255,.2)}
.ghost{height:12px;border-radius:6px;background:#2A3630}
/* empty / waiting / broken (Kit.html) */
.empty{background:rgba(255,255,255,.55);border:2px dashed rgba(6,20,12,.35);border-radius:14px;padding:14px;display:flex;flex-direction:column;gap:4px}
.empty b{font-family:'Barlow Condensed',sans-serif;text-transform:uppercase;font-size:20px;font-weight:800}
.empty span{font-size:14px;font-weight:500}
.scr.ink .empty{background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.3);color:var(--w)}
/* toast (Kit.html) */
.toast{display:flex;align-items:center;gap:10px;min-height:48px;padding:0 16px;border-radius:24px;background:var(--ink);color:var(--w);font-weight:700;font-size:15px;align-self:flex-start}
.toast svg{color:var(--g)}
.toasts{position:fixed;left:50%;transform:translateX(-50%);bottom:calc(var(--tabh) + env(safe-area-inset-bottom) + 12px);width:100%;max-width:var(--shell);padding:0 16px;display:flex;flex-direction:column;gap:8px;z-index:40;pointer-events:none}

/* ---------- tab bar + WhatsApp float ---------- */
/* Fixed to the viewport (not the mockup frame) and capped to the shell width. */
.tabs{position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:100%;max-width:var(--shell);display:grid;grid-template-columns:repeat(5,minmax(0,1fr));background:var(--ink);padding:6px 4px calc(6px + env(safe-area-inset-bottom));flex:none;z-index:30}
.tabs a{height:50px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;font-size:11.5px;font-weight:700;color:var(--dm);text-decoration:none;position:relative}
.tabs a.on{color:var(--w)}
.tabs a.on .ic{color:var(--g)}
.tabs .bd{position:absolute;top:2px;right:20px;min-width:16px;height:16px;border-radius:8px;background:var(--g);color:var(--ink);font-size:10px;font-weight:800;display:grid;place-items:center;padding:0 4px}
.wa{position:fixed;bottom:calc(var(--tabh) + env(safe-area-inset-bottom) + 20px);width:56px;height:56px;border-radius:50%;background:var(--w);color:var(--ink);border:2px solid var(--ink);display:grid;place-items:center;text-decoration:none;z-index:31;
  /* sit at the shell's right edge, wherever the shell is */
  left:50%;margin-left:calc(min(100vw, var(--shell)) / 2 - 72px)}

/* ---------- wide screens ---------- */
/* The design is phone-first. Above the cap the shell stays phone-width and
   centred, on the ground colour, so nothing stretches out of proportion. */
@media (min-width:600px){
  body{background:var(--g)}
  body.ink{background:var(--ink)}
  .scr{box-shadow:0 0 0 1px rgba(6,20,12,.08)}
}
@media (prefers-reduced-motion:reduce){
  *{animation-duration:.01ms !important;animation-iteration-count:1 !important;transition-duration:.01ms !important}
}
@media print{
  .tabs,.wa,.toasts,.days,.seg{display:none !important}
  body,.scr{background:#fff}
}

/* League badge, inline with the league's name on a chip or a group heading.
   16px because it sits beside 12-13px uppercase text: bigger and it becomes
   the heading, smaller and it is a smudge. vertical-align keeps it on the
   text's optical centre rather than its baseline, where a round badge hangs
   low. Decoration only — the name is always there in words beside it. */
.lgi{width:16px;height:16px;object-fit:contain;vertical-align:-3px;margin-right:5px;flex:none}


/* ---- the wheat head ----
   The hero band: the date, the title, the day switch and the league
   selectors on one calm surface, so the page reads as chrome-then-content
   instead of one unbroken field of green. The border keeps it from floating
   against the white tickets below, which sit only 1.31:1 away from wheat in
   luminance and would otherwise blur into it. */
.hero{background:var(--wheat);border:2px solid var(--ink);border-radius:18px;padding:16px 16px 14px}
.hero .crumb,.hero .mega{color:var(--ink)}
/* On the dark screens the relationship inverts and wheat becomes the type,
   which is where the big-title idea lands at full strength: 14.36:1. */
.site.ink .mega,.scr.ink .mega,body.ink .mega{color:var(--wheat)}

/* ---- league selectors ----
   Deliberately NOT the day switch. That is a navigation control — big,
   bordered, two choices, one of them always true. This is a filter over a
   list: many of them, usually none chosen, and it should read as a quiet
   row of labels rather than a second set of buttons competing with the
   first. So: no border, a tint of ink rather than an outline, and small.
   On a normal day these wrap to two rows, so every pixel of height is paid
   for twice — which is most of the reason they are 26px and not 40. */
.chips.lg{gap:6px}
.chips.lg a,.chips.lg button{height:26px;padding:0 10px;border:0;border-radius:999px;font-size:13px;letter-spacing:.02em;background:var(--wheat-tint);color:var(--ink)}
.chips.lg a.on,.chips.lg button.on{background:var(--ink);color:var(--wheat)}
.chips.lg .lgi{width:14px;height:14px;margin-right:4px;vertical-align:-2px}

/* The league filter on a phone: ONE sideways-scrolling row, not four wrapped
   ones. Seven chips at 375px would stack four rows deep and push the picks
   below the fold, which is why this was desktop-only in the first place —
   the answer is to make it fit, not to withhold it.
   -webkit-overflow-scrolling for momentum on iOS; the scrollbar is hidden
   because a visible one on a 26px row is most of the row. */
@media (max-width:1023.98px){
  .chips.lg{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch;padding-bottom:2px}
  .chips.lg::-webkit-scrollbar{display:none}
  .chips.lg a,.chips.lg button{flex:0 0 auto}
}

/* The small logo chip the bar carries on titled screens. The home chip is
   28px and sits alone; this one shares a 375px row with a back button, a page
   title and whatever actions the screen adds, so it steps down to 18px. The
   title takes the remaining width and ellipsises rather than wrapping the bar
   onto a second line. */
.bar .wm.mark.sm{padding:4px 7px;flex:none}
.bar .wm.mark.sm img{height:18px}
.bar .ttl{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* In play: a blinking LIVE tag in the ticket stub, under the kick-off time.
   Red, the one colour the board keeps for LIVE (and losses). */
.tk-live{display:inline-flex;align-items:center;gap:4px;margin:3px 0 1px;padding:1px 6px;border-radius:5px;background:#FBE5E2;color:#C8372A;font:800 11px/1.4 'Barlow Condensed',sans-serif;font-style:normal;letter-spacing:.04em}
.tk-live i{width:6px;height:6px;border-radius:50%;background:#C8372A;animation:tk-blink 1.2s ease-in-out infinite}
.tk.dark .tk-live{background:#3A1E1B;color:#FF8A7A}
.tk.dark .tk-live i{background:#FF8A7A}
@keyframes tk-blink{50%{opacity:.2}}
@media (prefers-reduced-motion:reduce){.tk-live i{animation:none}}
