/* ==========================================================================
   SBE RETAIL CASHIER TERMINAL — THE COMPLETE STYLESHEET
   This is the real, working CSS from the built cashier terminal.
   Use it as-is. Do not rewrite it, do not 'modernise' it, do not
   substitute your own colours. Every value here was chosen and tested.

   THE FONTS ARE SERVED BY THIS SERVER, NOT BY GOOGLE. Put this in your <head>:
     <link rel="stylesheet" href="fonts.css">

   It used to say to use three fonts.googleapis.com tags, and index2.html did. A
   shop must not need Google to render its own counter: on a slow line or a blocked
   network the till drew in a fallback face, with different metrics and widths, and
   looked wrong to the person who uses it all day. web/fonts.css declares Sora
   and Inter locally at every weight this stylesheet uses.

   THE FACES CHANGED ON 15 NOVEMBER 2026, BY AUSTIN'S CHOICE ("Option A", from a
   side-by-side sample of the real counter): Inter for text AND for numbers, Sora
   kept for headings, tabs and club codes. It was Manrope for text and JetBrains
   Mono for every number: a programmer's face, so odds and money read like code
   (dotted zero, wide spacing) and whole sentences were set in it.
   --mono KEEPS ITS NAME though it is no longer monospaced: 127 rules use it for
   "this is a number". The digits still line up in columns because the body sets
   font-variant-numeric:tabular-nums and Inter has fixed-width figures (measured:
   "1.11" and "8.88" are the same width).
   NOT CHANGED: the printed slip (.receipt keeps the old faces, see index2.html)
   and the shop walls (#tvOverlay/.tv set their own --mono in shop-screen.css).
   ========================================================================== */

:root{
  color-scheme: light;
  /* white ground, neutrals biased faintly cyan toward the accent */
  --bg:#E3EDF1; --panel:#FAFDFE; --panel2:#F1F7FA; --surf3:#E6F1F6;
  --ink900:#FDFEFF; --ink850:#F4FAFC; --ink800:#E9F3F7; --ink750:#FDFEFF; --ink700:#D6E8EF; --ink600:#C0DAE4;
  --navy:var(--ink900); --navy2:var(--ink800); --navy3:var(--ink700);
  --line:#D5E5EC; --line2:#ADCAD7;
  /* --ink3 IS THE QUIET TEXT (labels like "Betting closes in", "Cashier", "Balance", "First run"), and it was too quiet: #6F8C98 measured 3.5:1 on the
     white panels and 3.0:1 on the page ground, where small text needs 4.5:1 to be read at arm's length. #4E6B77 is 5.6:1 on white, 5.3:1 on --panel2 and
     4.8:1 on --bg, and still a clear step lighter than --ink2 (7.2:1). 15 November 2026. Dark was already well above (see cashier-dark.css). */
  --ink:#0B2A35; --ink2:#3F5C67; --ink3:#4E6B77;
  /* the accent is CYAN (--acc3 the deep end); --green is NOT green, it is the deep cyan, kept under its old name so nothing else changes */
  --acc:#ADE8F4; --acc2:#8FDCEE; --acc3:#0A6E8C; --accbright:#ADE8F4;
  --accdim:rgba(173,232,244,.38); --accglow:rgba(143,220,238,.6);
  --onacc:#08333F;
  --orange:var(--acc); --gold:#E0A415; --gold2:#B98305; --brand:var(--acc);
  /* odds pill = solid cyan on white; charcoal marks the chosen one */
  --pill:#ADE8F4; --pillhi:#C9F1F9; --pill2:#8FDCEE;
  --pillsel:#191D1B; --pillsel2:#0B0E0C; --blue:var(--acc);
  --green:#0A6E8C; --green2:#075A73; --red:#D93A3A; --red2:#B62B2B; --warn:#D9930A; --warn-ink:#8A5A00;
  --key:#F1F4F2; --key2:#E4EAE6; --keyhi:#FFFFFF;
  --r1:4px; --r2:8px; --r3:14px;
  --e1:0 1px 2px rgba(16,24,20,.07);
  --e2:0 2px 8px rgba(16,24,20,.10), 0 1px 2px rgba(16,24,20,.06);
  --e3:0 22px 60px rgba(16,24,20,.22), 0 4px 14px rgba(16,24,20,.10);
  --edge:inset 0 1px 0 rgba(255,255,255,.6);
  --ease:cubic-bezier(.22,.61,.36,1);
  /* Surface tokens (cashier tier-1, slice 1). Same values the stylesheet always used,
     now named for the JOB, so a dark theme can restate them in one place.
     --plate     a plain raised surface        --on-strong  text on a coloured/dark fill: white in BOTH themes
     --key-top/--key-bot/--key-bot-hi  the glossy control gradient (hover = -hi)
     --on-deep   soft text on the dark round banner    --deep-top/--deep-bot  that banner's ends */
  /* --veil  what lies over the board while it is being fetched (stage 3): the panel's own colour, mostly see-through */
  --veil:rgba(250,253,254,.74);
  /* --ok  "it went through": the green of the Place key, for the bet-placed card. #0E7A47 on --ok-bg is 4.9:1 */
  --ok:#0E7A47; --ok-bg:#E8F7EF; --ok-line:#9AD8B8;
  --plate:#FFFFFF; --on-strong:#FFFFFF; --key-top:#FFFFFF; --key-bot:#E4EDF1; --key-bot-hi:#D3E2E9;
  --on-deep:#EAF3F7; --deep-top:#123A48; --deep-bot:#08222C;
  /* Pale tints the stylesheet wrote as literal colours (tier-1 slice 2): one token each, same value, so dark can restate them. Named for the colour they ARE. */
  --t-c6e8f3:#C6E8F3;
  --t-c7d6dd:#C7D6DD;
  --t-cdedf6:#CDEDF6;
  --t-d6e0e5:#D6E0E5;
  --t-d6f4fb:#D6F4FB;
  --t-dff4fa:#DFF4FA;
  --t-dff5fb:#DFF5FB;
  --t-e1ecf1:#E1ECF1;
  --t-e1eef3:#E1EEF3;
  --t-e4f2f7:#E4F2F7;
  --t-e4f5fa:#E4F5FA;
  --t-e7eef1:#E7EEF1;
  --t-e7eff3:#E7EFF3;
  --t-e8f3f7:#E8F3F7;
  --t-e9f0f4:#E9F0F4;
  --t-e9f6fa:#E9F6FA;
  --t-e9fafe:#E9FAFE;
  --t-eaf3f7:#EAF3F7;
  --t-eaf4f8:#EAF4F8;
  --t-eaf6fa:#EAF6FA;
  --t-ecf0f1:#ECF0F1;
  --t-edf1f3:#EDF1F3;
  --t-edf4f7:#EDF4F7;
  --t-eff7fa:#EFF7FA;
  --t-f2c8e6:#F2C8E6;
  --t-f2f7fa:#F2F7FA;
  --t-f4fafc:#F4FAFC;
  --t-f4fcfe:#F4FCFE;
  --t-f6dcda:#F6DCDA;
  --t-f8f7f3:#F8F7F3;
  --t-fbf3de:#FBF3DE;
  --t-fee2e2:#FEE2E2;
  --t-fff0ef:#FFF0EF;
  --t-fff2f1:#FFF2F1;
  --t-fff5f5:#FFF5F5;
  --t-fff7e4:#FFF7E4;
  --ui:"Inter","Helvetica Neue",Arial,sans-serif;
  --disp:"Sora","Inter",Arial,sans-serif;
  --mono:"Inter","Helvetica Neue",Arial,sans-serif;
  /* the faces of the PRINTED slip (.receipt): what they were before 15 November 2026, so a shop's paper does not change with the counter's face.
     An agent's own look sets --paper to its typeface (look/derive.go), exactly as --ui reached the slip before. */
  --paper:"Manrope","Helvetica Neue",Arial,sans-serif;
  --paper-mono:"JetBrains Mono",ui-monospace,Consolas,monospace;
}
*{box-sizing:border-box}
html,body{height:100%}
html{font-size:clamp(12px, 0.6vw + 5.2px, 17.5px)}
body{margin:0;background:var(--bg);color:var(--ink);font-family:var(--ui);font-size:1rem;line-height:1.35;
  font-variant-numeric:tabular-nums;letter-spacing:-.005em;
  -webkit-font-smoothing:antialiased;overflow:hidden}
button{font:inherit;color:inherit;background:none;border:0;cursor:pointer;padding:0}
button:focus-visible,input:focus-visible{outline:2px solid var(--gold);outline-offset:2px;border-radius:var(--r1)}
.mono{font-family:var(--mono);font-variant-numeric:tabular-nums}
.app{display:flex;flex-direction:column;height:100vh;min-height:0}

/* ===== top bar ===== */
.top{display:flex;align-items:center;gap:.6rem;padding:0 .85rem;height:3.4rem;flex:0 0 3.4rem;color:var(--ink);
  background:var(--ink900);border-bottom:1px solid var(--line2);box-shadow:0 1px 3px rgba(16,24,20,.05);
  position:relative;z-index:6}
.leagues{display:flex;gap:4px;min-width:0;flex:0 1 auto;overflow:hidden}
.lgb{flex:0 1 auto;min-width:0;white-space:nowrap;display:flex;align-items:center;gap:.45rem;padding:.5rem .8rem;border-radius:1.4rem;color:var(--ink2);font-weight:700;
  font-size:.94rem;font-family:var(--disp);letter-spacing:-.01em;background:linear-gradient(180deg,var(--key-top) 0%,var(--key-bot) 100%);
  border:1px solid var(--line2);box-shadow:var(--edge),var(--e1);
  transition:all .12s var(--ease)}
.lgb svg{width:1.25rem;height:1.25rem;fill:currentColor;opacity:.85}
.lgb:hover{color:var(--ink);background:linear-gradient(180deg,var(--key-top) 0%,var(--key-bot-hi) 100%)}
.lgb[aria-pressed="true"]{background:linear-gradient(180deg,var(--t-dff5fb) 0%,var(--acc) 100%);color:var(--acc3);
  border-color:var(--acc2);box-shadow:var(--edge),0 1px 3px rgba(10,110,140,.2)}
.lgb[aria-pressed="true"] svg{fill:var(--acc)}
.cdwrap{margin-left:auto;display:flex;align-items:center;gap:.55rem}
/* segmented clock */
.clockx{display:flex;align-items:center;gap:.14rem}
.clockx .seg{position:relative;min-width:2.2rem;padding:.24rem .3rem .28rem;text-align:center;
  font-family:var(--mono);font-variant-numeric:tabular-nums;font-weight:800;font-size:1.16rem;letter-spacing:-.02em;
  color:var(--ink);background:linear-gradient(180deg,var(--key-top) 0%,var(--t-edf4f7) 52%,var(--t-e1ecf1) 100%);
  border:1px solid var(--line2);border-radius:var(--r2);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.9),0 1px 2px rgba(11,42,53,.12)}
.clockx .seg::after{content:"";position:absolute;left:22%;right:22%;bottom:.16rem;height:2px;border-radius:2px;
  background:var(--acc2);opacity:.55}
.clockx .seg.s{color:var(--acc3);background:linear-gradient(180deg,var(--t-f4fcfe) 0%,var(--t-dff4fa) 55%,var(--t-cdedf6) 100%);
  border-color:var(--acc2)}
.clockx .seg.s::after{background:var(--acc3);opacity:.75}
.clockx .cln{font-family:var(--mono);font-weight:800;font-size:1rem;color:var(--ink3);padding:0 .04rem;
  animation:blip 1s steps(1,end) infinite}
@keyframes blip{0%,50%{opacity:1}51%,100%{opacity:.22}}
.cd.warn,.clockx.warn .seg{color:var(--gold2)}
.nextg{display:flex;align-items:center;gap:.5rem;font-size:.74rem;color:var(--ink3);line-height:1.2;font-weight:600}
.nextg .lbl{text-align:right}
.nextg .t2{font-family:var(--mono);font-weight:800;font-size:1.02rem;color:var(--onacc);letter-spacing:-.01em;
  background:linear-gradient(180deg,var(--pillhi) 0%,var(--acc) 55%,var(--acc2) 100%);
  border-radius:1.2rem;padding:.24rem .8rem;border:1px solid var(--acc3);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.6),0 1px 2px rgba(11,42,53,.12)}
.nextg .t2.warn2{color:#5C3F03;background:linear-gradient(180deg,#FDEEC4 0%,#F7DC96 55%,#EFCC72 100%);
  border-color:var(--gold2);box-shadow:inset 0 1px 0 rgba(255,255,255,.6),0 0 0 3px rgba(217,147,10,.18)}
.cash{margin-left:auto;display:flex;align-items:center;gap:.45rem;padding:.3rem .7rem;border-radius:1.2rem;
  background:linear-gradient(180deg,var(--key-top) 0%,var(--t-eaf3f7) 100%);border:1px solid var(--line2);
  box-shadow:var(--edge),var(--e1);font-size:.7rem;color:var(--ink3);font-weight:700;
  letter-spacing:.06em;text-transform:uppercase;font-family:var(--disp);white-space:nowrap}
.cash b{font-family:var(--disp);font-size:.86rem;color:var(--ink);letter-spacing:.01em;text-transform:none}
.bal{display:flex;align-items:center;gap:.5rem;font-size:.74rem;color:var(--ink3);font-weight:700;line-height:1.15}
.bal b{font-family:var(--mono);font-size:1.1rem;color:var(--ink)}
.icobtn{display:flex;flex-direction:column;align-items:center;gap:2px;color:var(--ink2);font-size:.67rem;
  font-weight:600;padding:5px 8px;border-radius:var(--r1);background:linear-gradient(180deg,var(--key-top) 0%,var(--key-bot) 100%);
  border:1px solid var(--line2);box-shadow:var(--edge);transition:all .12s var(--ease)}
.icobtn:hover{color:var(--acc3);background:linear-gradient(180deg,var(--key-top) 0%,var(--key-bot-hi) 100%);border-color:var(--acc3)}
.icobtn svg{width:1.25rem;height:1.25rem;fill:currentColor}
.icobtn .pip{position:absolute;display:none}

/* ===== jackpot bar ===== */
.jack{display:flex;align-items:center;gap:1.6rem;padding:.3rem 1.05rem;height:1.8rem;flex:0 0 1.8rem;color:var(--ink3);
  background:var(--panel2);border-bottom:1px solid var(--line);font-family:var(--disp);font-size:.74rem;font-weight:700;letter-spacing:.05em;overflow:hidden;white-space:nowrap}
.jack b{font-family:var(--mono);color:var(--warn);font-size:.88rem;letter-spacing:0;font-weight:700}
.jack .lab{color:#7C889A}

/* ===== week bar + market pills ===== */
.subhead{display:flex;align-items:flex-start;gap:12px;background:var(--panel2);padding:7px 10px 9px;flex:0 0 auto;
  border-bottom:1px solid var(--line)}
.weeks{display:flex;gap:4px}
.roundbar{display:flex;align-items:baseline;gap:.55rem;flex:0 0 auto;padding:.4rem .9rem;
  background:linear-gradient(90deg,var(--wall-panel,#0F2C38) 0%,var(--wall-panel-2,#17404F) 55%,var(--wall-panel,#0F2C38) 100%);color:#DCF3F9;
  border-bottom:1px solid var(--line2);box-shadow:inset 0 1px 0 rgba(255,255,255,.08)}
.roundbar .rlab{font-family:var(--disp);font-size:.66rem;font-weight:800;letter-spacing:.18em;
  text-transform:uppercase;color:var(--wall-dim,#8FC4D4)}
.roundbar .rno{font-family:var(--mono);font-variant-numeric:tabular-nums;font-size:1.02rem;font-weight:800;
  letter-spacing:.02em;color:var(--accbright)}
.roundbar .rmeta{margin-left:auto;font-family:var(--disp);font-size:.7rem;font-weight:700;letter-spacing:.05em;
  text-transform:uppercase;color:var(--wall-dim,#9FCBD9)}

.wk{display:flex;flex-direction:column;align-items:center;line-height:1.1;padding:.42rem .85rem;
  font-family:var(--disp);border-radius:var(--r1);color:var(--ink2);font-weight:700;
  background:linear-gradient(180deg,var(--key-top) 0%,var(--key-bot) 100%);border:1px solid var(--line2);box-shadow:var(--edge);transition:all .12s var(--ease)}
.wk span{font-size:.64rem;letter-spacing:.11em;font-weight:600;opacity:.8}
.wk b{font-size:1.1rem}
.wk:hover{color:var(--ink);background:linear-gradient(180deg,var(--key-top) 0%,var(--key-bot-hi) 100%)}
.wk[aria-pressed="true"]{background:linear-gradient(180deg,var(--key-top) 0%,var(--t-e4f5fa) 100%);color:var(--acc3);
  border-color:var(--acc2);box-shadow:inset 0 -2.5px 0 var(--acc2),0 1px 4px rgba(10,110,140,.2)}
.mpills{display:flex;flex-wrap:wrap;gap:5px 6px;flex:1}
.mpill{padding:.5rem 1rem;border-radius:1.2rem;color:var(--ink2);font-weight:600;font-size:.9rem;white-space:nowrap;
  font-family:var(--disp);letter-spacing:-.01em;background:linear-gradient(180deg,var(--key-top) 0%,var(--key-bot) 100%);border:1px solid var(--line2);
  box-shadow:var(--edge);transition:transform .12s var(--ease),filter .12s var(--ease),color .12s var(--ease)}
.mpill:hover{color:var(--ink);border-color:var(--acc3);background:linear-gradient(180deg,var(--key-top) 0%,var(--key-bot-hi) 100%)}
.mpill[aria-selected="true"]{background:linear-gradient(180deg,var(--pillhi) 0%,var(--acc2) 100%);
  border-color:var(--acc3);color:var(--onacc);font-weight:800;
  box-shadow:var(--edge),0 2px 10px rgba(10,110,140,.3)}

/* ===== board ===== */
.mainrow{flex:1;display:flex;min-height:0}
.boardcol{flex:1;display:flex;flex-direction:column;min-width:0;min-height:0;background:var(--panel)}
.boardbody{flex:1;display:flex;flex-direction:column;min-width:0;min-height:0;position:relative}
.grphead{display:grid;flex:0 0 auto;background:var(--panel2);color:var(--ink);border-bottom:1px solid var(--line)}
.grphead .g{display:flex;align-items:center;justify-content:center;gap:.4rem;font-size:.74rem;font-weight:700;
  padding:.36rem 2px;letter-spacing:.11em;text-transform:uppercase;font-family:var(--disp);color:var(--acc3)}
.upsw.eg{margin-left:.55rem}
.upsw{margin-left:2.6rem;display:inline-flex;align-items:center;gap:.3rem;padding:.1rem .42rem .1rem .18rem;
  border-radius:1rem;font-family:var(--disp);font-size:.6rem;font-weight:800;letter-spacing:.06em;
  color:var(--ink3);background:linear-gradient(180deg,var(--key-top),var(--t-e7eff3));border:1px solid var(--line2);
  box-shadow:var(--edge);transition:all .14s var(--ease);vertical-align:middle}
.upsw .kn{width:1.5rem;height:.78rem;border-radius:1rem;background:var(--t-c7d6dd);position:relative;
  box-shadow:inset 0 1px 2px rgba(11,42,53,.25);transition:background .14s var(--ease)}
.upsw .kn::after{content:"";position:absolute;top:.09rem;left:.1rem;width:.6rem;height:.6rem;border-radius:50%;
  background:var(--plate);box-shadow:0 1px 2px rgba(11,42,53,.3);transition:transform .16s var(--ease)}
.upsw:hover{border-color:var(--acc3);color:var(--acc3)}
.upsw[aria-pressed="true"]{color:var(--onacc);border-color:var(--acc3);
  background:linear-gradient(180deg,var(--pillhi),var(--acc2))}
.upsw[aria-pressed="true"] .kn{background:var(--acc3)}
.upsw[aria-pressed="true"] .kn::after{transform:translateX(.7rem)}
.grphead .g .inf{cursor:pointer;width:.95rem;height:.95rem;border-radius:50%;background:var(--acc3);color:var(--on-strong);font-size:9px;display:inline-flex;
  align-items:center;justify-content:center;font-style:normal;cursor:help}
.colhead{display:grid;flex:0 0 auto;background:var(--panel);color:var(--ink);border-bottom:1.5px solid var(--line2)}
.colhead .c{text-align:center;font-size:.76rem;font-weight:700;padding:.32rem 2px;font-family:var(--disp);letter-spacing:.02em}
.colhead .fx{display:flex;align-items:center;padding-left:1rem;font-size:.72rem;font-family:var(--disp);
  letter-spacing:.11em;font-weight:700;color:var(--ink3)}
.bscroll{flex:1;overflow:auto;min-height:0;display:flex;flex-direction:column}
#frows{flex:1;display:grid;grid-auto-rows:minmax(3.3rem,1fr);min-height:100%}
.frow{display:grid;align-items:center;min-height:3.1rem;border-bottom:1px solid var(--line);transition:background .1s var(--ease)}
.frow:hover{background:var(--panel2)}
.frow:nth-child(even){background:var(--panel2)}
/* fixture cell */
.frow .fx{display:flex;align-items:center;gap:.26rem;padding-left:.45rem;padding-right:.3rem;min-width:0}
.fx .no{flex:0 0 1.45rem;height:1.35rem;display:flex;align-items:center;justify-content:center;
  font-family:var(--mono);font-variant-numeric:tabular-nums;font-weight:700;font-size:.7rem;color:var(--ink3);
  background:linear-gradient(180deg,var(--key-top),var(--t-e9f0f4));border:1px solid var(--line2);border-radius:var(--r1);
  box-shadow:var(--edge)}
.fx .tm{display:flex;align-items:center;gap:.28rem;min-width:0;flex:1 1 0}
.fx .tm.a{justify-content:flex-end}
.fx .tm b{flex:0 0 auto;font-family:var(--disp);font-weight:800;font-size:.92rem;letter-spacing:-.015em;
  color:var(--ink);white-space:nowrap}
.fx .crest{width:1.15rem;height:1.25rem;flex:0 0 1.15rem;filter:drop-shadow(0 1px 1px rgba(11,42,53,.22))}
.fx .sep{flex:0 0 auto;font-family:var(--disp);font-size:.62rem;font-weight:800;letter-spacing:.08em;
  text-transform:uppercase;color:var(--ink3);opacity:.75;padding:0 .05rem}
.fx .sc{flex:0 0 auto;font-family:var(--mono);font-variant-numeric:tabular-nums;font-weight:800;font-size:.72rem;
  color:var(--onacc);background:linear-gradient(180deg,var(--pillhi),var(--acc2));border:1px solid var(--acc3);
  border-radius:1rem;padding:.06rem .3rem;box-shadow:var(--edge);letter-spacing:-.02em}
.fx .plus{width:1.35rem;height:1.35rem;flex:0 0 1.35rem;border-radius:50%;color:var(--acc3);font-size:.95rem;
  font-weight:800;line-height:1;background:linear-gradient(180deg,var(--key-top),var(--t-e4f2f7));border:1px solid var(--acc2);
  display:flex;align-items:center;justify-content:center;box-shadow:var(--edge),var(--e1);
  transition:all .12s var(--ease)}
.fx .plus:hover{background:linear-gradient(180deg,var(--pillhi),var(--acc2));color:var(--onacc);
  border-color:var(--acc3);transform:translateY(-1px)}
.fx .plus:active{transform:translateY(1px)}
.ocell{padding:0 3px;display:flex;justify-content:stretch}
.pillodd{width:100%;max-width:none;margin:0;min-height:2.6rem;border-radius:var(--r2);color:var(--onacc);
  background:linear-gradient(180deg,var(--pillhi) 0%,var(--pill) 52%,var(--pill2) 100%);
  font-family:var(--mono);font-variant-numeric:tabular-nums;font-weight:800;font-size:1.2rem;letter-spacing:-.03em;
  display:flex;align-items:center;justify-content:center;border:1px solid rgba(10,110,140,.34);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.6),0 1px 2px rgba(11,42,53,.14);
  transition:filter .12s var(--ease),transform .09s var(--ease),box-shadow .12s var(--ease)}
.pillodd:hover:not(:disabled){filter:brightness(1.04);border-color:var(--acc3);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.7),0 3px 10px rgba(10,110,140,.24)}
.pillodd:active:not(:disabled){transform:translateY(1px) scale(.985);box-shadow:inset 0 2px 5px rgba(0,0,0,.28)}
.pillodd[data-sel="true"]{background:linear-gradient(180deg,var(--deep-top) 0%,var(--deep-bot) 100%);
  border-color:var(--deep-bot);color:var(--accbright);font-weight:900;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.14),0 0 0 2px var(--accglow),0 2px 10px rgba(11,42,53,.28)}
.pillodd:disabled{background:linear-gradient(180deg,var(--t-e7eef1),var(--t-d6e0e5));border-color:var(--line2);color:#FAFDFE;
  cursor:not-allowed;box-shadow:none}
/* NO PRICE: a padlock in place of the dash (setOdd in index2.html). Drawn as a mask so it takes a token colour in light and dark; muted, because a shut line
   must not compete with the prices around it. */
.pillodd .lock{display:block;width:.95em;height:.95em;flex:0 0 auto;background:var(--ink3);opacity:.7;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 10.5V7.6a4 4 0 0 1 8 0v2.9' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'/%3E%3Crect x='4.5' y='10' width='15' height='11' rx='2.6' fill='black'/%3E%3C/svg%3E") center/contain no-repeat;
          mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 10.5V7.6a4 4 0 0 1 8 0v2.9' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'/%3E%3Crect x='4.5' y='10' width='15' height='11' rx='2.6' fill='black'/%3E%3C/svg%3E") center/contain no-repeat}
.pillodd.mk{max-width:none}
.gsep{align-self:stretch;background:var(--bg);border-left:1px solid var(--line2);border-right:1px solid var(--line2)}
.gsep.dark{background:var(--bg);border-color:var(--line2)}

/* ===== right rail / coupon ===== */
.rail{width:23rem;flex:0 0 23rem;background:var(--panel2);border-left:1px solid var(--line2);display:flex;
  flex-direction:column;min-height:0}
.fastrow{display:flex;align-items:center;gap:6px;padding:.5rem;flex:0 0 auto;background:var(--ink900);border-bottom:1px solid var(--line)}
.fastrow .fi{flex:1;display:flex;align-items:center;background:var(--plate);border:1.5px solid var(--line2);
  border-radius:1.2rem;overflow:hidden}
.fastrow input{flex:1;border:0;padding:.5rem .95rem;font-size:.86rem;font-weight:700;letter-spacing:.1em;
  color:var(--ink);font-family:var(--disp)}
.fastrow input::placeholder{color:var(--ink3)}
.fastrow .go{width:1.75rem;height:1.75rem;border-radius:50%;color:var(--onacc);margin-right:.22rem;font-size:.8rem;
  background:linear-gradient(180deg,var(--pillhi),var(--acc2));border:1px solid var(--acc3);box-shadow:var(--edge)}
.raillinks{display:flex;gap:.3rem;padding:.5rem;background:var(--ink900);flex:0 0 auto;border-bottom:1px solid var(--line)}
.rlink{flex:1;display:flex;align-items:center;justify-content:center;gap:.4rem;color:var(--ink2);font-size:.76rem;
  font-weight:700;padding:.48rem;border-radius:var(--r1);font-family:var(--disp);letter-spacing:.02em;
  background:linear-gradient(180deg,var(--key-top) 0%,var(--key-bot) 100%);border:1px solid var(--line2);box-shadow:var(--edge),var(--e1);
  transition:all .12s var(--ease)}
.rlink:hover{color:var(--ink);background:linear-gradient(180deg,var(--key-top) 0%,var(--key-bot-hi) 100%);border-color:var(--acc3)}
.rlink svg{width:13px;height:13px;fill:currentColor}
.coupon{flex:1;display:flex;flex-direction:column;min-height:0;background:var(--panel)}
.cempty{padding:2.4rem 1.4rem;color:var(--ink3);font-size:.9rem;line-height:1.7;text-align:center;font-weight:500}
.bonusline{padding:.35rem .75rem;background:var(--t-fff7e4);color:#8A5D06;font-size:.76rem;
  font-weight:700;border-bottom:1px solid #F3E3BC}
.ctabs{display:flex;border-bottom:1px solid var(--line);background:var(--panel)}
.ctab{flex:1;padding:.62rem;text-align:center;font-weight:700;font-size:.88rem;color:var(--ink3);
  border-bottom:2.5px solid transparent;font-family:var(--disp);background:linear-gradient(180deg,var(--key-top) 0%,var(--key-bot) 100%);
  transition:all .12s var(--ease)}
.ctab[aria-pressed="true"]{color:var(--acc3);border-bottom-color:var(--acc2);
  background:linear-gradient(180deg,var(--key-top) 0%,var(--t-eaf6fa) 100%)}
.crow{display:flex;align-items:center;gap:7px;padding:7px 10px}
.crow .lab{font-size:.85rem;font-weight:700;color:var(--ink2);white-space:nowrap}
.crow input{flex:1;min-width:0;border:1.5px solid var(--line2);border-radius:var(--r1);padding:.55rem .7rem;
  font-family:var(--mono);font-weight:700;font-size:1.05rem;text-align:right;cursor:pointer;
  background:var(--plate);color:var(--ink);
  transition:border-color .12s var(--ease),box-shadow .12s var(--ease)}
.crow input:hover{border-color:var(--acc3);box-shadow:0 0 0 3px var(--accdim)}
.crow .clr{padding:8px 12px;border-radius:var(--r1);background:linear-gradient(180deg,var(--key-top) 0%,var(--key-bot) 100%);border:1px solid var(--line2);box-shadow:var(--edge);
  font-size:11px;font-weight:700;color:var(--ink2)}

/* ===== coupon: single / combi ===== */
.slipscroll{flex:1;overflow:auto;min-height:0;background:var(--panel)}
.cempty{padding:2.4rem 1.4rem;color:var(--ink3);font-size:.9rem;line-height:1.7;text-align:center;font-weight:500}
table.seltab,table.grptab,table.mmtab{width:100%;border-collapse:collapse;font-size:.88rem}
table.seltab th,table.grptab th,table.mmtab th{background:var(--panel2);color:var(--ink);font-weight:700;
  font-size:.82rem;padding:.5rem .6rem;border-bottom:1.5px solid var(--line2);text-align:left;font-family:var(--disp)}
table.seltab th.c,table.grptab th{text-align:center}
table.seltab th.r{text-align:right}
table.seltab td{padding:.5rem .6rem;border-bottom:1px solid var(--line);color:var(--ink);font-weight:600}
table.seltab tr:nth-child(even) td{background:var(--panel2)}
table.seltab td.ev{font-family:var(--mono);font-size:.85rem;letter-spacing:-.02em}
table.seltab td.sel{text-align:center;font-weight:800;font-family:var(--mono)}
table.seltab td.od{text-align:right;font-family:var(--mono);font-weight:700;color:var(--acc3)}
table.seltab td.x{width:2.6rem;text-align:center;padding:.3rem .4rem}
.delx{width:2rem;height:1.8rem;border-radius:var(--r1);background:linear-gradient(180deg,var(--key-top),var(--t-edf1f3));
  border:1px solid var(--line2);color:var(--red);font-weight:800;font-size:.95rem;box-shadow:var(--edge)}
.delx:hover{background:linear-gradient(180deg,var(--t-fff0ef),var(--t-f6dcda));border-color:var(--red)}
table.grptab td{padding:.45rem .5rem;border-bottom:1px solid var(--line);text-align:center;
  font-family:var(--mono);font-weight:700;color:var(--ink)}
table.grptab tr:nth-child(even) td{background:var(--panel2)}
table.grptab td.stk{padding:.3rem .45rem;width:8.4rem}
table.grptab input{width:100%;border:1.5px solid var(--line2);border-radius:var(--r1);padding:.42rem .55rem;
  font-family:var(--mono);font-weight:700;font-size:.95rem;text-align:right;background:var(--plate);color:var(--ink);cursor:pointer}
table.grptab input:hover{border-color:var(--acc3);box-shadow:0 0 0 3px var(--accdim)}
table.grptab tr.on td{background:var(--accdim)}
table.mmtab{flex:0 0 auto;border-top:1.5px solid var(--line2);background:var(--panel)}
table.mmtab th{text-align:center}
table.mmtab th:first-child{text-align:left}
table.mmtab td{padding:.5rem .6rem;border-bottom:1px solid var(--line);text-align:right;
  font-family:var(--mono);font-weight:700;color:var(--ink)}
table.mmtab td:first-child{text-align:left;font-family:var(--ui);color:var(--ink2);font-weight:700}
table.mmtab tr:nth-child(odd) td{background:var(--panel2)}
table.mmtab td.stk2{color:var(--ink);font-size:1rem}
table.mmtab tr.tot td{font-size:1rem;color:var(--acc3);border-top:1.5px solid var(--line2)}
.crow{display:flex;align-items:center;gap:8px;padding:10px 12px}
.crow .lab{font-size:.85rem;font-weight:700;color:var(--ink2);white-space:nowrap}
.crow input{flex:1;min-width:0;border:1.5px solid var(--line2);border-radius:var(--r1);padding:.55rem .7rem;
  font-family:var(--mono);font-weight:700;font-size:1.05rem;text-align:right;cursor:pointer;background:var(--plate);color:var(--ink)}
.crow input:hover{border-color:var(--acc3);box-shadow:0 0 0 3px var(--accdim)}
/* ===== free-bet row ===== */
.freebet{display:flex;align-items:center;gap:.5rem;padding:.6rem .6rem .55rem;
  background:linear-gradient(180deg,var(--panel) 0%,var(--panel2) 100%);border-top:1px solid var(--line)}
.fbq{width:2rem;height:2rem;flex:0 0 2rem;border-radius:50%;color:var(--acc3);font-weight:800;font-size:.95rem;
  background:linear-gradient(180deg,var(--key-top),var(--t-eaf4f8));border:1px solid var(--line2);
  box-shadow:var(--edge),0 1px 2px rgba(11,42,53,.10);transition:all .14s var(--ease)}
.fbq:hover{color:var(--onacc);background:linear-gradient(180deg,var(--pillhi),var(--acc2));
  border-color:var(--acc3);box-shadow:0 0 0 3px var(--accdim)}
.fbin{flex:1;display:flex;align-items:center;gap:.45rem;min-width:0;height:2.35rem;padding:0 .6rem;
  border-radius:calc(var(--r2) - 1px);background:linear-gradient(180deg,var(--key-top),var(--t-f2f7fa));
  border:1px solid var(--line2);box-shadow:inset 0 1px 2px rgba(11,42,53,.08);
  transition:border-color .14s var(--ease),box-shadow .14s var(--ease)}
.fbin:focus-within{border-color:var(--acc3);box-shadow:inset 0 1px 2px rgba(11,42,53,.06),0 0 0 3px var(--accdim)}
.fbin .gift{width:1.05rem;height:1.05rem;flex:0 0 auto;fill:var(--gold2);opacity:.95}
.fbin input{flex:1;min-width:0;border:0;background:transparent;color:var(--ink);padding:0;font-size:.74rem;
  font-weight:800;letter-spacing:.08em;font-family:var(--disp);text-transform:uppercase}
.fbin input::placeholder{color:var(--ink3);font-weight:700;letter-spacing:.08em}
.fbin input[data-on="true"]{color:var(--acc3)}
.fbin:has(input[data-on="true"]){border-color:var(--acc3);box-shadow:0 0 0 3px var(--accdim)}
.vbtn{height:2.35rem;padding:0 .85rem;border-radius:calc(var(--r2) - 1px);font-size:.68rem;font-weight:800;
  letter-spacing:.09em;font-family:var(--disp);color:#6B5410;
  background:linear-gradient(180deg,#FBEBC2 0%,#F0D592 55%,#E7C578 100%);border:1px solid #DCBE79;
  box-shadow:var(--edge),0 1px 2px rgba(11,42,53,.12);transition:all .14s var(--ease)}
.vbtn:hover{filter:brightness(1.04);box-shadow:var(--edge),0 3px 8px rgba(140,110,20,.22)}
.vbtn:active{transform:translateY(1px);box-shadow:var(--edge)}

/* ===== action bar ===== */
.ctrl{flex:0 0 auto;padding:.7rem .6rem .75rem;
  background:linear-gradient(180deg,#1E2A33 0%,#131C24 100%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.07)}
.acts{display:grid;grid-template-columns:1fr 1fr 1fr 1.5fr;gap:.5rem}
.act{position:relative;height:3.6rem;border-radius:var(--r2);display:flex;flex-direction:column;
  align-items:center;justify-content:center;gap:.16rem;overflow:hidden;
  border:1px solid rgba(0,0,0,.28);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.30),inset 0 -1px 0 rgba(0,0,0,.16),0 2px 5px rgba(0,0,0,.30);
  transition:transform .11s var(--ease),box-shadow .16s var(--ease),filter .16s var(--ease)}
.act::after{content:"";position:absolute;inset:0 0 52% 0;border-radius:var(--r2) var(--r2) 60% 60%/var(--r2) var(--r2) 12% 12%;
  background:linear-gradient(180deg,rgba(255,255,255,.22),rgba(255,255,255,0));pointer-events:none}
.act svg{width:1.35rem;height:1.35rem;fill:currentColor;position:relative;z-index:1}
.act i{font-style:normal;font-family:var(--disp);font-size:.6rem;font-weight:800;letter-spacing:.1em;
  text-transform:uppercase;opacity:.92;position:relative;z-index:1}
.act:hover:not(:disabled){filter:brightness(1.09);transform:translateY(-1px);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.34),0 6px 14px rgba(0,0,0,.34)}
.act:active:not(:disabled){transform:translateY(1px);
  box-shadow:inset 0 2px 5px rgba(0,0,0,.28)}
.act:disabled{filter:grayscale(.55);opacity:.4;cursor:not-allowed;box-shadow:inset 0 1px 0 rgba(255,255,255,.12)}
.act.place{background:linear-gradient(180deg,var(--t-d6f4fb) 0%,var(--acc) 46%,var(--acc2) 100%);
  color:var(--onacc);border-color:#7FCFE4}
.act.place:not(:disabled){box-shadow:inset 0 1px 0 rgba(255,255,255,.55),inset 0 -1px 0 rgba(0,0,0,.10),
  0 3px 10px rgba(143,220,238,.30)}
.act.place:hover:not(:disabled){box-shadow:inset 0 1px 0 rgba(255,255,255,.6),0 7px 18px rgba(143,220,238,.42)}
.act.place svg{width:1.5rem;height:1.5rem}
.act.clear{background:linear-gradient(180deg,#D2564A 0%,#B23A31 48%,#8E2A23 100%);color:#FDECEA;border-color:#7A241E}
.act.check{background:linear-gradient(180deg,#3E85CE 0%,#2A66AC 48%,#1B4A83 100%);color:#E6F1FB;border-color:#17406F}
.act.print{background:linear-gradient(180deg,#E4B94F 0%,#C99A2A 48%,#A87C18 100%);color:#FFF8E6;border-color:#8E6812}

/* ===== recent bets panel ===== */
.recent{flex:1;display:none;flex-direction:column;min-height:0;background:var(--panel)}
.recent[data-on="true"]{display:flex}
.coupon[data-off="true"]{display:none}
.rechead{display:grid;grid-template-columns:2.6rem 1fr 5.2rem 5.6rem;color:var(--ink3);flex:0 0 auto;
  background:var(--panel2);border-bottom:1.5px solid var(--line2);
  font-family:var(--disp);font-size:.7rem;font-weight:700;letter-spacing:.09em;text-transform:uppercase}
.rechead div{padding:.5rem .4rem;text-align:center}
.rechead div:nth-child(2){text-align:center}
.recbody{flex:1;overflow:auto;min-height:0}
.recrow{display:grid;grid-template-columns:2.6rem 1fr 5.2rem 5.6rem;align-items:center;
  border-bottom:1px solid var(--line);font-size:.9rem;font-weight:700;background:var(--panel);color:var(--ink)}
.recrow:nth-child(even){background:var(--panel2)}
.recrow .ib{display:flex;align-items:center;justify-content:center;padding:.32rem}
.recrow .ii{width:1.7rem;height:1.7rem;border-radius:var(--r1);color:var(--onacc);font-weight:800;font-size:.95rem;
  font-style:italic;background:linear-gradient(180deg,var(--pillhi),var(--acc2));border:1px solid var(--acc3);
  box-shadow:var(--edge),var(--e1);display:flex;align-items:center;justify-content:center;font-family:var(--disp);
  transition:filter .12s var(--ease),transform .09s var(--ease)}
.recrow .ii:hover{filter:brightness(1.18)}
.recrow .ii:active{transform:scale(.94)}
.recrow .tn{padding:.55rem .55rem;font-family:var(--mono);font-weight:600;letter-spacing:-.02em;font-size:.86rem}
.recrow .st{padding:.5rem .4rem;text-align:right;font-family:var(--mono)}
.recrow .py{padding:.5rem .6rem;text-align:right;font-family:var(--mono)}
.recrow .py.open{font-family:var(--disp);font-weight:700;letter-spacing:.06em;color:var(--ink3);font-size:.78rem}
.recrow .py.win{color:var(--acc3)}
.recempty{padding:2rem 1.2rem;color:var(--ink3);font-size:.88rem;text-align:center;line-height:1.7}
.recnote{padding:.45rem .6rem;background:var(--panel2);border-top:1px solid var(--line);color:var(--ink3);
  font-size:.68rem;text-align:center;flex:0 0 auto;letter-spacing:.04em;font-family:var(--disp)}
.rlink[aria-pressed="true"]{background:linear-gradient(180deg,var(--pillhi),var(--acc2));color:var(--onacc);
  border-color:var(--acc3);box-shadow:var(--edge),0 2px 8px rgba(10,110,140,.26)}

/* ===== ticket details modal ===== */
.tdwrap{background:var(--panel);color:var(--ink);border:1px solid var(--line2);border-radius:var(--r3);
  width:min(980px,97vw);max-height:94vh;overflow:auto;box-shadow:var(--e3)}
.tdhead{display:flex;align-items:center;padding:.9rem 1.2rem;color:var(--ink);position:sticky;top:0;z-index:2;
  background:var(--panel);border-bottom:2px solid var(--acc)}
.tdhead h3{margin:0;font-size:1.1rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase;font-family:var(--disp)}
.tdhead .x{margin-left:auto;font-size:1.8rem;line-height:1;color:var(--ink3);font-weight:400;padding:0 .2rem}
.tdhead .x:hover{color:var(--acc3)}
.tdbody{padding:1rem 1.1rem 1.2rem}
table.tdinfo{width:100%;border-collapse:collapse;font-size:.95rem;margin-bottom:1.1rem}
table.tdinfo td{border:1px solid var(--line);padding:.55rem .7rem;vertical-align:middle}
table.tdinfo td.k{font-weight:700;width:16%;background:var(--panel2);font-size:.84rem;color:var(--ink2);
  letter-spacing:.02em}
table.tdinfo td.v{width:34%;color:var(--ink)}
table.tdinfo td.v.big{font-weight:800;font-size:1.2rem;font-family:var(--mono);letter-spacing:-.02em}
.stbar{display:inline-block;width:.4rem;height:1.15rem;vertical-align:-.22rem;margin-right:.65rem;border-radius:2px}
.stbar.win{background:var(--acc)}
.stbar.lose{background:var(--red)}.stbar.none{background:var(--line2)}
.tdh4{font-size:.78rem;font-weight:700;margin:0 0 .55rem;letter-spacing:.12em;text-transform:uppercase;
  color:var(--ink3);font-family:var(--disp)}
table.tdlist{width:100%;border-collapse:collapse;font-size:.92rem;margin-bottom:1.1rem}
table.tdlist th{background:var(--panel2);color:var(--ink2);border:1px solid var(--line);padding:.55rem .6rem;font-weight:700;text-align:center;
  font-size:.72rem;letter-spacing:.08em;text-transform:uppercase;font-family:var(--disp)}
table.tdlist td{border:1px solid var(--line);padding:.55rem .6rem;text-align:center;color:var(--ink)}
table.tdlist td.sel{text-align:left;font-weight:700;white-space:nowrap}
table.tdlist td.oc{text-align:left;padding-left:0}
.mno2{display:inline-block;border:1px solid var(--line2);border-radius:var(--r1);padding:.1rem .4rem;
  margin:0 .55rem 0 .4rem;font-family:var(--mono);font-weight:600;font-size:.8rem;background:var(--panel2);color:var(--ink2)}
.trophy{width:1.35rem;height:1.35rem;vertical-align:-.3rem;fill:#B07A05}

/* ===== place-bet preview modal ===== */
.pv{width:min(27rem,95vw);max-height:92vh;display:flex;flex-direction:column;border-radius:var(--r3);
  background:var(--panel);border:1px solid var(--line2);box-shadow:var(--e3);overflow:hidden}
.pv .pvh{position:relative;padding:.85rem 1.05rem;background:linear-gradient(180deg,#17404F 0%,#0F2C38 100%);color:#EAF8FC;
  display:flex;align-items:center;gap:.6rem;box-shadow:inset 0 1px 0 rgba(255,255,255,.10)}
.pv .pvh h4{margin:0;font-family:var(--disp);font-size:.82rem;font-weight:800;letter-spacing:.12em;text-transform:uppercase}
.pv .pvh .tag{margin-left:auto;font-family:var(--disp);font-size:.64rem;font-weight:800;letter-spacing:.1em;
  text-transform:uppercase;color:var(--onacc);background:linear-gradient(180deg,var(--pillhi),var(--acc2));
  border:1px solid var(--acc3);border-radius:1rem;padding:.2rem .6rem}
.pv .pvh .x{position:absolute;right:.9rem;top:.85rem;color:#9FCBD9;font-size:1.3rem;line-height:1}
.pv .pvh .x:hover{color:var(--on-strong)}
.pv .pvlist{max-height:12.5rem;overflow:auto;background:var(--panel)}
.pv .pvrow{display:flex;align-items:center;gap:.6rem;padding:.5rem .9rem;border-bottom:1px solid var(--line);
  font-size:.82rem;font-weight:700;color:var(--ink)}
.pv .pvrow:nth-child(even){background:var(--panel2)}
.pv .pvrow .ev{font-family:var(--mono);font-size:.76rem;color:var(--ink3);letter-spacing:-.02em;flex:0 0 auto}
.pv .pvrow .pk{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pv .pvrow .od{font-family:var(--mono);font-weight:800;color:var(--acc3);flex:0 0 auto}
.pv .amtbox{padding:.8rem .9rem .2rem;background:linear-gradient(180deg,var(--panel2),var(--panel))}
.pv .amtlab{display:flex;align-items:center;font-family:var(--disp);font-size:.63rem;font-weight:800;
  letter-spacing:.13em;text-transform:uppercase;color:var(--ink3);margin-bottom:.35rem}
.pv .amtlab .clr{margin-left:auto;color:var(--red);font-size:.62rem;font-weight:800;letter-spacing:.1em;
  border:1px solid var(--line2);border-radius:1rem;padding:.14rem .55rem;background:var(--plate)}
.pv .amtlab .clr:hover{border-color:var(--red);background:var(--t-fff2f1)}
.pv .amt{display:flex;align-items:center;gap:.5rem;padding:.55rem .85rem;border-radius:var(--r2);
  background:linear-gradient(180deg,#0F2229 0%,#0A181E 100%);border:1px solid #0A181E;
  box-shadow:inset 0 2px 10px rgba(0,0,0,.5)}
.pv .amt .cur{font-family:var(--disp);font-size:1rem;font-weight:800;color:#7FB6C8}
.pv .amt input{flex:1;min-width:0;border:0;background:transparent;text-align:right;color:var(--accbright);
  font-family:var(--mono);font-variant-numeric:tabular-nums;font-weight:800;font-size:2rem;letter-spacing:-.03em;padding:0}
.pv .amt .bs{width:2.6rem;height:2.2rem;border-radius:var(--r1);color:#CFE9F1;font-size:1rem;
  background:linear-gradient(180deg,#2A3A42,#1B272E);border:1px solid #33454E}
.pv .amt .bs:hover{background:linear-gradient(180deg,#35474F,#22313A)}
.pv .chips{display:grid;grid-template-columns:repeat(4,1fr);gap:.45rem;padding:.7rem .9rem 0}
.pv .chips button{padding:.6rem 0;border-radius:var(--r2);font-family:var(--mono);font-size:1rem;font-weight:800;
  color:var(--onacc);background:linear-gradient(180deg,var(--pillhi),var(--acc2));border:1px solid var(--acc3);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.6),0 1px 2px rgba(11,42,53,.14);transition:all .12s var(--ease)}
.pv .chips button:hover{filter:brightness(1.06);transform:translateY(-1px)}
.pv .chips button:active{transform:translateY(1px)}
.pv .pad{display:grid;grid-template-columns:repeat(3,1fr);gap:.45rem;padding:.7rem .9rem 0}
.pv .pad button{padding:.55rem 0;border-radius:var(--r2);font-family:var(--mono);font-size:1.05rem;font-weight:800;
  color:var(--ink);background:linear-gradient(180deg,var(--key-top),var(--t-e7eff3));border:1px solid var(--line2);
  box-shadow:var(--edge),var(--e1)}
.pv .pad button:hover{color:var(--acc3);border-color:var(--acc2)}
.pv .pad button:active{transform:translateY(1px);background:var(--surf3)}
.pv .sum{margin:.85rem .9rem 0;border-top:1px solid var(--line)}
.pv .sum div{display:flex;align-items:baseline;padding:.4rem 0;font-size:.82rem;font-weight:700;color:var(--ink2)}
.pv .sum div b{margin-left:auto;font-family:var(--mono);font-weight:800;color:var(--ink);font-size:.95rem}
.pv .sum div.win{border-top:1px dashed var(--line2);margin-top:.1rem}
.pv .sum div[hidden]{display:none}
.pv .sum div.win b{color:var(--acc3);font-size:1.15rem}
.pv .note{padding:.35rem .9rem 0;font-size:.7rem;font-weight:700;color:var(--warn)}
.pv .pvcta{display:grid;grid-template-columns:1fr 1.5fr;gap:.55rem;padding:.85rem .9rem .9rem}
.pv .pvcta button{height:3.2rem;border-radius:var(--r2);font-family:var(--disp);font-size:.8rem;font-weight:800;
  letter-spacing:.08em;text-transform:uppercase;border:1px solid rgba(0,0,0,.28);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.3),0 2px 5px rgba(0,0,0,.18);transition:all .12s var(--ease)}
.pv .pvcta .no{background:linear-gradient(180deg,var(--key-top),var(--key-bot));color:var(--ink2);border-color:var(--line2)}
.pv .pvcta .no:hover{color:var(--red);border-color:var(--red)}
.pv .pvcta .yes{background:linear-gradient(180deg,var(--t-d6f4fb) 0%,var(--acc) 46%,var(--acc2) 100%);color:var(--onacc);
  border-color:#7FCFE4;box-shadow:inset 0 1px 0 rgba(255,255,255,.55),0 3px 10px rgba(143,220,238,.34)}
.pv .pvcta .yes:hover:not(:disabled){filter:brightness(1.07);transform:translateY(-1px)}
.pv .pvcta button:active:not(:disabled){transform:translateY(1px)}
.pv .pvcta .yes:disabled{filter:grayscale(.55);opacity:.45;cursor:not-allowed}


/* ===== all-markets sheet (the "+" beside a fixture) ===== */
.msheet{max-height:76vh;overflow:auto;padding:.2rem .9rem 1rem;background:var(--panel)}
.mhead{display:flex;align-items:center;justify-content:center;gap:.7rem;padding:1rem .9rem .9rem;
  background:linear-gradient(180deg,var(--panel) 0%,var(--panel2) 100%);border-bottom:1px solid var(--line);
  position:sticky;top:0;z-index:2}
.mhead .tm{display:flex;align-items:center;gap:.5rem;font-family:var(--disp);font-weight:800;
  font-size:1.35rem;letter-spacing:-.02em;color:var(--ink)}
.mhead .crest{width:2rem;height:2.2rem;filter:drop-shadow(0 1px 3px rgba(11,42,53,.25))}
.mhead .vs{font-family:var(--disp);font-size:.8rem;font-weight:700;color:var(--ink3);letter-spacing:.06em}
.mhead .x{position:absolute;right:1rem;top:.9rem;font-size:1.4rem;color:var(--ink3);line-height:1}
.mhead .x:hover{color:var(--acc3)}
.mgt{display:flex;align-items:center;justify-content:center;gap:.4rem;margin:1.1rem 0 .55rem;
  font-family:var(--disp);font-size:.8rem;font-weight:800;letter-spacing:.14em;text-transform:uppercase;color:var(--acc3)}
.mgt .inf,.mcol .ct .inf{cursor:pointer;width:1.05rem;height:1.05rem;border-radius:50%;background:var(--acc3);color:var(--on-strong);font-size:.6rem;
  display:inline-flex;align-items:center;justify-content:center;font-style:normal;cursor:help;flex:0 0 auto}
.mgrid{display:grid;gap:.5rem}
.mcard{display:flex;flex-direction:column;overflow:hidden;border-radius:var(--r2);border:1px solid rgba(10,110,140,.34);
  background:var(--plate);box-shadow:var(--edge),0 1px 3px rgba(11,42,53,.12);transition:all .12s var(--ease)}
.mcard .lab{padding:.3rem .2rem;font-family:var(--mono);font-variant-numeric:tabular-nums;font-weight:800;
  font-size:.82rem;color:var(--acc3);text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mcard .val{padding:.34rem .2rem;font-family:var(--mono);font-variant-numeric:tabular-nums;font-weight:800;
  font-size:1.02rem;color:var(--onacc);text-align:center;letter-spacing:-.02em;
  background:linear-gradient(180deg,var(--pillhi) 0%,var(--pill) 52%,var(--pill2) 100%);
  border-top:1px solid rgba(10,110,140,.34);box-shadow:inset 0 1px 0 rgba(255,255,255,.6)}
.mcard:hover:not(:disabled){transform:translateY(-1px);box-shadow:var(--edge),0 5px 12px rgba(10,110,140,.24)}
.mcard:active:not(:disabled){transform:translateY(1px)}
.mcard[data-sel="true"]{border-color:var(--deep-bot)}
.mcard[data-sel="true"] .lab{background:#123A48;color:var(--accbright)}
.mcard[data-sel="true"] .val{background:linear-gradient(180deg,var(--deep-top) 0%,var(--deep-bot) 100%);color:var(--accbright);
  border-top-color:#0d2f3b;box-shadow:inset 0 1px 0 rgba(255,255,255,.14)}
.mcard:disabled{opacity:.42;cursor:not-allowed;filter:grayscale(.5)}
.mcols{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem;align-items:start}
.mcol .ct{display:flex;align-items:center;justify-content:center;gap:.35rem;margin-bottom:.5rem;
  font-family:var(--disp);font-size:.72rem;font-weight:800;letter-spacing:.1em;text-transform:uppercase;color:var(--ink2)}
@media (max-width:760px){.mcols{grid-template-columns:1fr}}


/* ===== round specials ===== */
.rsbar{display:flex;align-items:center;gap:.5rem;height:100%;padding:0 .55rem;color:var(--onacc);
  background:linear-gradient(180deg,var(--pillhi) 0%,var(--acc) 55%,var(--acc2) 100%);
  border-right:1px solid var(--acc3);box-shadow:var(--edge);transition:filter .12s var(--ease)}
.rsbar:hover{filter:brightness(1.06)}
.rsbar .t{flex:1;text-align:left;font-family:var(--disp);font-size:.7rem;font-weight:800;
  letter-spacing:.11em;text-transform:uppercase}
.rsbar .pl{width:1.5rem;height:1.35rem;border-radius:var(--r1);background:linear-gradient(180deg,var(--key-top),var(--t-e4f2f7));
  border:1px solid var(--acc3);color:var(--acc3);font-weight:800;font-size:.95rem;line-height:1;
  display:flex;align-items:center;justify-content:center;box-shadow:var(--edge)}
.rswrap{width:min(1020px,97vw);max-height:92vh;display:flex;flex-direction:column;border-radius:var(--r3);
  overflow:hidden;background:var(--panel);border:1px solid var(--line2);box-shadow:var(--e3)}
.rswrap .rsh{padding:1rem 1.1rem .85rem;text-align:center;position:relative;
  background:linear-gradient(180deg,#17404F 0%,#0F2C38 100%);color:#EAF8FC;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.10)}
.rswrap .rsh h4{margin:0;font-family:var(--disp);font-size:1.3rem;font-weight:800;
  letter-spacing:.12em;text-transform:uppercase;color:var(--accbright)}
.rswrap .rsh .sub{margin-top:.3rem;font-size:.68rem;font-weight:800;letter-spacing:.09em;
  text-transform:uppercase;color:var(--wall-dim,#9FCBD9)}
.rswrap .rsh .lead{margin-top:.35rem;font-size:.82rem;font-weight:600;color:#D6ECF3}
.rswrap .rsh .x{position:absolute;right:.9rem;top:.8rem;font-size:1.4rem;color:#9FCBD9;line-height:1}
.rswrap .rsh .x:hover{color:var(--on-strong)}
.rstabs{display:flex;border-bottom:1px solid var(--line);background:var(--panel)}
.rstab{flex:1;padding:.66rem;text-align:center;font-family:var(--disp);font-size:.8rem;font-weight:800;
  letter-spacing:.09em;text-transform:uppercase;color:var(--ink3);border-bottom:2.5px solid transparent;
  background:linear-gradient(180deg,var(--key-top) 0%,var(--key-bot) 100%);transition:all .12s var(--ease)}
.rstab[aria-pressed="true"]{color:var(--acc3);border-bottom-color:var(--acc2);
  background:linear-gradient(180deg,var(--key-top) 0%,var(--t-eaf6fa) 100%)}
.rsbody{flex:1;overflow:auto;padding:.9rem;background:var(--panel)}
.rsgrid{display:grid;gap:.5rem}
.rscard{display:flex;flex-direction:column;overflow:hidden;border-radius:var(--r2);border:1px solid rgba(10,110,140,.34);
  background:var(--plate);box-shadow:var(--edge),0 1px 3px rgba(11,42,53,.12);transition:all .12s var(--ease)}
.rscard .l{padding:.28rem .2rem;text-align:center;font-family:var(--mono);font-variant-numeric:tabular-nums;
  font-size:.8rem;font-weight:800;color:var(--acc3)}
.rscard .v{padding:.32rem .2rem;text-align:center;font-family:var(--mono);font-variant-numeric:tabular-nums;
  font-size:.96rem;font-weight:800;color:var(--onacc);letter-spacing:-.02em;border-top:1px solid rgba(10,110,140,.34);
  background:linear-gradient(180deg,var(--pillhi) 0%,var(--pill) 52%,var(--pill2) 100%);box-shadow:inset 0 1px 0 rgba(255,255,255,.6)}
.rscard:hover:not(:disabled){transform:translateY(-1px);box-shadow:var(--edge),0 5px 12px rgba(10,110,140,.24)}
.rscard:active:not(:disabled){transform:translateY(1px)}
.rscard[data-sel="true"]{border-color:var(--deep-bot)}
.rscard[data-sel="true"] .l{background:#123A48;color:var(--accbright)}
.rscard[data-sel="true"] .v{background:linear-gradient(180deg,var(--deep-top) 0%,var(--deep-bot) 100%);color:var(--accbright);
  border-top-color:#0d2f3b;box-shadow:inset 0 1px 0 rgba(255,255,255,.14)}
.rscard:disabled{opacity:.42;cursor:not-allowed;filter:grayscale(.5)}
.rshist{background:linear-gradient(180deg,#17404F 0%,#0F2C38 100%);padding:.65rem .9rem .85rem}
.rshist .h{text-align:center;font-family:var(--disp);font-size:.72rem;font-weight:800;letter-spacing:.14em;
  text-transform:uppercase;color:var(--accbright)}
.rshist .sub{display:flex;justify-content:space-between;font-size:.66rem;font-weight:700;
  color:#9FCBD9;padding:.2rem .1rem .45rem}
.rshist .row{display:grid;gap:.35rem}
.rshist .row div{padding:.42rem 0;text-align:center;font-family:var(--mono);font-variant-numeric:tabular-nums;
  font-weight:800;font-size:.95rem;color:#EAF8FC;background:rgba(255,255,255,.10);
  border:1px solid rgba(255,255,255,.14);border-radius:var(--r1)}
/* ===== stake keypad ===== */
.kp{background:var(--panel);border:1px solid var(--line2);
  border-radius:var(--r3);padding:1rem;width:min(23rem,94vw);box-shadow:var(--e3),var(--edge)}
.kp .disp{display:flex;align-items:stretch;background:#14181A;border:1px solid #14181A;border-radius:var(--r2);
  overflow:hidden;margin-bottom:.9rem;box-shadow:inset 0 2px 8px rgba(0,0,0,.4)}
.kp .disp input{flex:1;border:0;background:transparent;text-align:right;font-family:var(--mono);font-weight:700;
  font-size:2.3rem;padding:.5rem .85rem;color:var(--accbright);min-width:0;letter-spacing:-.03em}
.kp .disp .bs{width:4rem;background:linear-gradient(180deg,#2C3336 0%,#1A1F21 100%);border-left:1px solid #333B3D;
  color:var(--accbright);font-size:1.7rem;font-weight:800;display:flex;align-items:center;justify-content:center}
.kp .disp .bs:hover{background:#2E3538}
.kp .keys{display:grid;grid-template-columns:repeat(3,1fr);gap:.45rem;margin-bottom:.7rem}
.kp .keys button{background:linear-gradient(180deg,var(--key-top) 0%,var(--key-bot) 100%);border:1px solid var(--line2);
  border-radius:var(--r2);color:var(--ink);font-weight:700;font-size:1.75rem;padding:.62rem 0;font-family:var(--mono);
  box-shadow:var(--edge),var(--e1);transition:filter .1s var(--ease),transform .07s var(--ease)}
.kp .keys button:active,.kp .quick button:active{transform:translateY(1px) scale(.97);background:var(--surf3)}
.kp .keys button:hover{background:linear-gradient(180deg,var(--key-top),var(--t-e1eef3));color:var(--acc3);border-color:var(--acc2)}
.kp .keys button:active{background:var(--key2)}
.kp .quick{display:grid;grid-template-columns:repeat(4,1fr);gap:.45rem;margin-bottom:.7rem}
.kp .quick button{background:linear-gradient(180deg,var(--key-top) 0%,var(--key-bot) 100%);border:1px solid var(--line2);
  border-radius:var(--r2);color:var(--ink2);box-shadow:var(--edge);font-weight:700;font-size:.98rem;padding:.55rem 0;font-family:var(--mono);
  box-shadow:var(--edge);transition:filter .1s var(--ease),transform .07s var(--ease)}
.kp .quick button:hover{color:var(--acc3);border-color:var(--acc2);background:var(--accdim)}
.kp .cta{display:grid;grid-template-columns:1fr 1fr;gap:.5rem}
.kp .cta button{border-radius:var(--r2);padding:.8rem 0;font-size:1.5rem;font-weight:800;color:var(--on-strong);
  border:1px solid rgba(0,0,0,.3);box-shadow:var(--edge),var(--e2);
  transition:filter .1s var(--ease),transform .07s var(--ease)}
.kp .cta button:active{transform:translateY(1px) scale(.985)}
.kp .cta .no{background:linear-gradient(180deg,var(--red) 0%,var(--red2) 100%);color:var(--on-strong)}
.kp .cta .no:hover{filter:brightness(1.12)}
.kp .cta .yes{background:linear-gradient(180deg,var(--pillhi) 0%,var(--acc2) 100%);color:var(--onacc);
  border-color:var(--acc3);box-shadow:var(--edge),0 3px 12px rgba(10,110,140,.3)}
.kp .cta .yes:hover{filter:brightness(1.1)}
.kp .hintline{color:var(--ink3);font-size:.72rem;text-align:center;margin:0 0 .7rem;font-weight:600;
  letter-spacing:.05em;font-family:var(--disp)}

/* ===== overlays ===== */
.scrim{position:fixed;inset:0;background:rgba(16,24,20,.5);backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px);
  display:none;align-items:center;justify-content:center;z-index:60;padding:1.1rem}
.scrim[data-on="true"]{display:flex}
.modal{background:var(--panel);color:var(--ink);border:1px solid var(--line2);border-radius:var(--r3);
  width:min(560px,96vw);max-height:92vh;overflow:auto;box-shadow:var(--e3)}
.modal h3{margin:0;padding:.9rem 1.1rem;color:var(--ink);font-size:.82rem;font-weight:700;letter-spacing:.1em;
  text-transform:uppercase;display:flex;align-items:center;gap:.7rem;border-radius:var(--r3) var(--r3) 0 0;
  position:sticky;top:0;font-family:var(--disp);background:var(--panel);border-bottom:2px solid var(--acc)}
.modal h3 .x{margin-left:auto;font-size:20px;color:var(--ink3)}
.modal h3 .x:hover{color:var(--acc3)}
.mbody{padding:14px 16px}
.fld{margin-bottom:11px}
.fld label{display:block;font-size:10.5px;font-weight:700;letter-spacing:.09em;text-transform:uppercase;color:var(--ink2);margin-bottom:4px}
.fld input{width:100%;border:1.5px solid var(--line2);border-radius:var(--r1);padding:12px;font-family:var(--mono);
  font-size:1.25rem;font-weight:700;letter-spacing:.1em;text-align:center;background:var(--plate);color:var(--ink)}
/* back office: compact numeric fields, permission ticks, team rows */
.borow{display:flex;gap:8px;flex-wrap:wrap;align-items:flex-end}
.bon{display:block}
.bon i{display:block;font-size:10px;color:var(--ink3);font-weight:700;font-style:normal;margin-bottom:2px}
.bon input{width:100%;text-align:right;border:1.5px solid var(--line2);border-radius:6px;padding:8px;
  font-family:var(--mono);font-weight:700;font-size:.9rem;background:var(--plate);color:var(--ink)}
.bon input:disabled{opacity:.55}
.bochk{display:flex;align-items:center;gap:6px;color:var(--ink2);font-size:.74rem;font-weight:700;
  white-space:nowrap;padding-bottom:9px;cursor:pointer}
.bochk input{width:1.1rem;height:1.1rem;accent-color:var(--acc3);margin:0}
.botabs{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:10px}
.botab{padding:9px 13px;border-radius:var(--r1);font-weight:700;font-size:11.5px;letter-spacing:.05em;
  text-transform:uppercase;border:1px solid var(--line2);background:linear-gradient(180deg,var(--key-top) 0%,var(--key-bot) 100%);
  color:var(--ink2);font-family:var(--disp);cursor:pointer}
.botab[data-on="true"]{background:linear-gradient(180deg,var(--pillhi),var(--acc2));border-color:var(--acc3);color:var(--onacc)}
.perms{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:5px}
.perm{display:flex;align-items:flex-start;gap:7px;padding:7px 8px;border:1px solid var(--line2);
  border-radius:6px;background:var(--plate);cursor:pointer}
.perm input{width:1.05rem;height:1.05rem;accent-color:var(--acc3);margin:1px 0 0}
.perm b{display:block;font-size:11.5px;color:var(--ink);font-weight:700}
.perm span{display:block;font-size:10px;color:var(--ink3);line-height:1.35}
.perm[data-locked="true"]{opacity:.42;cursor:not-allowed}
.tmrows{max-height:340px;overflow:auto;border:1px solid var(--line2);border-radius:8px;background:var(--plate)}
/* an input with its button beside it, as the settlement box uses */
.row2{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.row2 input{min-width:0}
.tmrow{display:grid;grid-template-columns:26px 74px 1fr 92px 44px;gap:7px;align-items:center;
  padding:6px 8px;border-bottom:1px solid var(--line)}
.tmrow:last-child{border-bottom:0}
.tmrow em{font-style:normal;font-size:10px;color:var(--ink3);font-family:var(--mono);text-align:center}
.tmrow input{border:1.5px solid var(--line2);border-radius:5px;padding:6px 7px;font-size:12px;
  font-weight:700;background:var(--plate);color:var(--ink);width:100%}
.tmrow input.num{text-align:center;font-family:var(--mono)}
.tmrow b.gr{font-family:var(--mono);font-size:12px;font-weight:800;text-align:center;color:var(--acc3)}
.jpwins{max-height:120px;overflow:auto;font-family:var(--mono);font-size:11px;color:var(--ink2)}
.jpwins div{padding:3px 0;border-bottom:1px solid var(--line)}
.mbtns{display:flex;gap:7px;margin-top:12px}
.mbtns.thm .mb[aria-pressed="true"]{border-color:var(--acc3);box-shadow:inset 0 0 0 2px var(--acc3);color:var(--acc3)}
.mb{flex:1;padding:12px;border-radius:var(--r1);font-weight:700;font-size:12.5px;letter-spacing:.06em;
  text-transform:uppercase;border:1px solid var(--line2);background:linear-gradient(180deg,var(--key-top) 0%,var(--key-bot) 100%);color:var(--ink2);
  font-family:var(--disp);box-shadow:var(--edge),var(--e1)}
.mb:hover:not(:disabled){background:linear-gradient(180deg,var(--key-top) 0%,var(--key-bot-hi) 100%);color:var(--ink)}
.mb.go{background:linear-gradient(180deg,var(--pillhi),var(--acc2));border-color:var(--acc3);color:var(--onacc)}
.mb.go:hover:not(:disabled){filter:brightness(1.1)}
.mb.warn{background:linear-gradient(180deg,#E45A5A 0%,var(--red2) 100%);border-color:var(--red2);color:var(--on-strong);
  box-shadow:var(--edge),var(--e1)}
.mb:disabled{opacity:.45;cursor:not-allowed}
.hint{font-size:11.5px;color:var(--ink3);line-height:1.55;margin-top:9px}
.tk{border:1px solid var(--line2);border-radius:var(--r2);overflow:hidden;margin-bottom:10px;background:var(--panel2)}
.tk .bar{padding:10px 13px;font-weight:700;font-size:13px;display:flex;justify-content:space-between;gap:10px}
.tk.won .bar{background:var(--accdim);color:var(--acc3)}.tk.paid .bar{background:var(--t-fff7e4);color:#8A5D06}
.tk.lost .bar{background:rgba(255,77,77,.12);color:var(--red)}.tk.open .bar{background:var(--surf3);color:var(--ink2)}
.tk.void .bar{background:var(--surf3);color:var(--ink3)}.tk.none .bar{background:rgba(255,77,77,.12);color:var(--red)}
.tk .in{padding:9px 13px;font-family:var(--mono);font-size:11px;color:var(--ink2);line-height:1.65}
.tk .lg{display:flex;justify-content:space-between;gap:10px;border-bottom:1px dashed var(--line);padding:3px 0}
.tk .lg:last-child{border:0}
.tk .ok{color:#1B6B37;font-weight:700}.tk .no{color:var(--red);font-weight:700}
/* closed overlay */
.closed{position:fixed;inset:0;z-index:55;display:none;align-items:center;justify-content:center;background:rgba(5,10,16,.82)}
.closed[data-on="true"]{display:flex}
.closedbox{text-align:center;color:var(--on-strong);padding:30px}
.closedbox .l1{font-size:clamp(16px,2.4vw,26px);font-weight:600;letter-spacing:.12em;color:#C4CFDD}
.closedbox .l2{font-size:clamp(30px,5.5vw,64px);font-weight:800;letter-spacing:.02em;margin:6px 0 22px}
.closedbox button{display:inline-flex;align-items:center;gap:10px;color:var(--onacc);border-radius:24px;
  background:linear-gradient(180deg,var(--pillhi),var(--acc2));box-shadow:var(--edge),var(--e2);
  padding:12px 24px;font-weight:700;font-size:14px}
/* results overlay */
.full{position:fixed;inset:0;z-index:50;background:var(--bg);display:none;flex-direction:column}
.full[data-on="true"]{display:flex}
.fullhead{display:flex;align-items:center;gap:14px;padding:11px 16px;background:var(--ink900);
  border-bottom:1px solid var(--line2);flex:0 0 auto;color:var(--ink)}
.fullhead h2{margin:0;font-size:15px;font-weight:700}
.fullhead .close{margin-left:auto;background:linear-gradient(180deg,var(--pillhi),var(--acc2));color:var(--onacc);
  border-radius:var(--r1);padding:9px 22px;font-weight:700;font-size:13px;border:1px solid var(--acc3);
  box-shadow:var(--edge),var(--e1)}
.fullbody{flex:1;overflow:auto;padding:16px;display:flex;flex-wrap:wrap;gap:14px;align-content:flex-start;
  background:var(--bg);color:var(--ink)}
.rescard{background:var(--panel);border:1px solid var(--line2);border-radius:var(--r2);overflow:hidden;width:330px}
.rescard .rh{display:flex;gap:8px;align-items:center;padding:7px 10px;background:var(--panel2);color:var(--ink);
  font-size:11px;font-weight:700;font-family:var(--disp);letter-spacing:.05em}
.rescard .rh b{font-family:var(--mono);color:var(--acc3)}
.rescard table{width:100%;border-collapse:collapse;font-family:var(--mono);font-size:11.5px}
.rescard td,.rescard th{padding:4px 8px;border-bottom:1px solid var(--line);text-align:center;white-space:nowrap}
.rescard th{background:var(--panel2);font-size:9.5px;letter-spacing:.08em;color:var(--ink3)}
.rescard td:nth-child(2){text-align:right;font-weight:700}.rescard td:nth-child(4){text-align:left;font-weight:700}
.rescard .ht{color:var(--ink3)} .rescard .ft{font-weight:700;color:var(--acc3)}
table.t{width:100%;border-collapse:collapse;font-family:var(--mono);font-size:12px;background:var(--panel);color:var(--ink)}
table.t th{background:var(--panel2);color:var(--ink2);font-weight:700;font-size:10px;letter-spacing:.09em;text-transform:uppercase;
  text-align:right;padding:7px 9px;position:sticky;top:0}
table.t th:first-child,table.t th:nth-child(2){text-align:left}
table.t td{padding:6px 9px;border-bottom:1px solid var(--line);text-align:right;white-space:nowrap}
table.t td:first-child,table.t td:nth-child(2){text-align:left}
table.t tbody tr:hover td{background:var(--panel2);cursor:pointer}
table.t tr[data-on="true"] td{background:var(--accdim)}
.badge{display:inline-block;padding:2px 8px;border-radius:20px;font-size:9.5px;font-weight:700;letter-spacing:.07em;text-transform:uppercase}
.badge.open{background:var(--surf3);color:var(--ink2)}.badge.won{background:var(--accdim);color:var(--acc3)}
.badge.lost{background:rgba(255,77,77,.12);color:var(--red)}.badge.paid{background:var(--t-fff7e4);color:#8A5D06}
.badge.void{background:var(--surf3);color:var(--ink3)}
.kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;padding:12px 16px;background:var(--panel2)}
.kpi{background:var(--panel);border:1px solid var(--line2);border-radius:var(--r2);padding:10px 11px}
.kpi .k{font-size:9px;font-weight:700;letter-spacing:.11em;text-transform:uppercase;color:var(--ink3);display:block;font-family:var(--disp)}
.kpi .v{font-family:var(--mono);font-size:16px;font-weight:700;margin-top:3px;display:block}
.kpi .v.g{color:var(--green)}.kpi .v.r{color:var(--red)}.kpi .v.o{color:var(--gold2)}
/* receipt */
.receipt{background:var(--t-f8f7f3);color:#141414;width:330px;max-height:90vh;overflow:auto;border-radius:4px;padding:18px;
  font-family:var(--mono);font-size:12px;line-height:1.55}
.receipt h4{margin:0 0 2px;font-family:var(--ui);font-size:17px}
.receipt .sub{font-size:10px;letter-spacing:.13em;text-transform:uppercase;color:#6A6A6A;margin-bottom:10px}
.receipt hr{border:0;border-top:1.5px dashed #B9B4A9;margin:10px 0}
.receipt .code{font-size:24px;font-weight:700;letter-spacing:.09em;text-align:center;margin:3px 0}
.receipt .row{display:flex;justify-content:space-between;gap:10px}
.receipt .lg2{margin:6px 0;padding-left:8px;border-left:2px solid #C9C4B8}
.receipt .lg2 .a{font-weight:700}.receipt .lg2 .b{color:#4A4A4A;font-size:11px}
.receipt .big{font-size:16px;font-weight:700}
.receipt .dupe{text-align:center;font-weight:700;letter-spacing:.28em;font-size:11px;color:#8A8375;
  border:1.5px dashed #B9B4A9;padding:5px;margin-bottom:9px}
.barcode{height:44px;margin:10px 0 4px;display:flex;gap:1.5px;align-items:stretch;justify-content:center}
.barcode i{display:block;background:#141414}
.toast{position:fixed;left:50%;bottom:20px;transform:translateX(-50%) translateY(12px);background:#14181A;color:var(--on-strong);
  border-radius:6px;padding:12px 20px;font-weight:600;font-size:13px;opacity:0;pointer-events:none;
  transition:opacity .18s,transform .18s;z-index:90;box-shadow:0 10px 34px rgba(0,0,0,.4)}
.toast[data-on="true"]{opacity:1;transform:translateX(-50%) translateY(0)}
.toast b{color:var(--gold)}
#tvOverlay{position:fixed;inset:0;z-index:80;background:var(--bg);display:none}
#tvOverlay[data-on="true"]{display:block}
.tvclose{position:absolute;top:7px;right:7px;z-index:60;width:26px;height:26px;padding:0;
  border-radius:50%;font-size:0;line-height:0;background:rgba(255,255,255,.16);color:var(--on-strong);
  border:1px solid rgba(255,255,255,.28)}
.tvclose::after{content:"\00d7";font-size:17px;line-height:24px}
@media print{
  body > *:not(.scrim){display:none !important}
  .scrim{position:static !important;display:block !important;background:var(--plate);padding:0}
  .receipt{width:auto;max-width:76mm;box-shadow:none;max-height:none;padding:0}
  .mbtns{display:none !important}
}
@media (prefers-reduced-motion: reduce){*{transition:none!important;animation:none!important}}
/* ==========================================================================
   LIVE SCORE BOARD
   It rides on the same shell as the between-rounds screen — the fixed
   fixture column, the green bands, the big odds — so the wall never changes
   shape when a round kicks off. What is added here: the score box, the
   minute, the goal bar, the badges, and a market cell that lights up when
   its selection is the one winning.
   ========================================================================== */
.lvpanel{position:absolute;inset:0;z-index:18;display:none;flex-direction:column;
  background:var(--wall-bg,#07141C);color:var(--on-deep)}
.lvpanel[data-on="true"]{display:flex}
.lvbtns{flex:none;display:flex;gap:7px;padding:6px 10px;background:rgba(0,0,0,.3);
  border-bottom:1px solid #143343}
.lvbtns button{border:1px solid #1D4256;background:#0C2836;color:#BBD3DE;border-radius:7px;
  padding:6px 12px;font-family:var(--disp);font-weight:700;font-size:11px;letter-spacing:.08em;
  text-transform:uppercase;cursor:pointer}
.lvbtns button:hover{background:#134156;color:var(--on-strong)}

/* The live fixture column is wider than the between-rounds one — it carries
   the score and the badges. Trimmed back so the markets get the room: what
   is left still clears the widest row (number, O1.5, club, crest, score,
   crest, club, O2.5 + O3.5) with space to spare at every width. */
.nxfix.live{flex:0 0 clamp(348px,29vw,670px)}
.nx:has(.nxfix.live){--tm:clamp(10px,1.02vw,24px)}
/* a narrow cashier terminal has to fit a club code, a 1UP chip and the badges on one
   line, so the parts that can give, give */
.nxfix.live .nxfrow{gap:clamp(3px,.36vw,9px);padding:0 clamp(5px,.55vw,12px)}
.nxfix.live .nxfrow .n{width:clamp(12px,1.2vw,32px)}
.nxfix.live .nxfh{display:flex;align-items:center;gap:10px;padding:0 clamp(6px,.7vw,14px)}
.nxfix.live .nxfh .tag{display:inline-flex;align-items:center;gap:6px;font-family:var(--mono);
  font-weight:800;font-size:clamp(8px,.8vw,15px);letter-spacing:.14em;color:#FF5A5A}
.nxfix.live .nxfh .tag i{width:8px;height:8px;border-radius:50%;background:#FF3B3B;
  animation:lvblink 1s steps(2,end) infinite}
.nxfix.live .nxfh .tag[data-ph="ft"]{color:#9FB6C2}
.nxfix.live .nxfh .tag[data-ph="ft"] i{background:#9FB6C2;animation:none}
.nxfix.live .nxfh .tag[data-ph="closed"]{color:#FF9A5A}
.nxfix.live .nxfh .tag[data-ph="closed"] i{background:#FF9A5A;animation:none}
@keyframes lvblink{50%{opacity:.15}}
/* the season/week chip has gone from this header — the round is named on the
   cashier terminal's own round bar, and the wall header carries the clock instead. */
.nxfix.live .nxfh .clk{margin-left:auto;font-family:var(--mono);font-weight:800;
  font-size:clamp(10px,1.05vw,22px);color:#6BFFB0}

/* ---- ROUND SPECIALS: the running goal count for the whole round ----
   One shape, two sizes. Inside the fixture header it lies flat on one line;
   on the wall header it stacks, with the gold strip under the number the way
   the reference board does it. */
.rsg{display:inline-flex;align-items:center;gap:clamp(4px,.5vw,9px);flex:none;
  font-family:var(--disp);white-space:nowrap;line-height:1}
.rsg .rw{display:inline-flex;align-items:center;gap:clamp(3px,.4vw,7px)}
.rsg b{font-size:clamp(6px,.62vw,12px);font-weight:800;letter-spacing:.14em;color:#9FB6C2}
.rsg em{font-style:normal;font-family:var(--mono);font-weight:800;
  font-size:clamp(10px,1vw,21px);color:var(--on-deep);background:#00131C;
  border:1.5px solid #1D4256;border-radius:5px;padding:1px clamp(4px,.45vw,9px);
  min-width:clamp(22px,2.2vw,44px);text-align:center;display:inline-block}
.rsg i{font-style:normal;font-size:clamp(5px,.5vw,10px);font-weight:800;letter-spacing:.11em;
  color:#231400;background:linear-gradient(180deg,#FFD066,#E6A62A);
  border:1px solid #FFDF9A;border-radius:3px;padding:2px clamp(4px,.45vw,8px)}
/* the moment a goal lands anywhere in the round */
.rsg.tick em{animation:rsbump .7s cubic-bezier(.2,1.4,.35,1) 1}
@keyframes rsbump{
  0%  {transform:scale(1)}
  22% {transform:scale(1.6);color:#6BFFB0;border-color:var(--wall-accent,#00E27A);
       box-shadow:0 0 0 0 rgba(0,226,122,.75)}
  100%{transform:scale(1);box-shadow:0 0 0 12px rgba(0,226,122,0)}}

/* the wall header version: a black plate with the gold strip beneath */
/* the wall plate stands exactly as tall as a jackpot pot, so the header
   reads as one row of equal blocks */
.rsg.big{flex-direction:column;align-items:stretch;justify-content:center;gap:2px;
  background:#050B0F;border:1px solid #17323F;border-radius:8px;
  height:var(--hdbar,auto);overflow:hidden;
  padding:0 clamp(8px,.9vw,18px)}
.rsg.big .rw{justify-content:space-between;gap:clamp(6px,.8vw,16px)}
.rsg.big b{font-size:clamp(8px,.85vw,18px);letter-spacing:.1em;color:var(--on-strong)}
.rsg.big em{font-size:clamp(12px,1.3vw,27px);background:var(--plate);color:#0A1116;border-color:var(--plate);
  min-width:clamp(28px,2.5vw,54px);padding:0 clamp(4px,.45vw,9px)}
.rsg.big i{display:block;text-align:center;font-size:clamp(5px,.52vw,10px);letter-spacing:.16em;
  padding:1px clamp(4px,.45vw,8px)}
.rsg.big.tick em{animation:rsbumpw .7s cubic-bezier(.2,1.4,.35,1) 1}
@keyframes rsbumpw{
  0%  {transform:scale(1)}
  22% {transform:scale(1.45);background:#6BFFB0;border-color:#6BFFB0}
  100%{transform:scale(1);background:var(--plate);border-color:var(--plate)}}
@media (prefers-reduced-motion:reduce){.rsg.tick em{animation:none}}
.nxfrow{position:relative}
.nxfrow .lvbadge{position:relative;z-index:3}
.nxfrow[data-just="true"]{background:rgba(0,255,120,.16)}
.nxfrow .tmw{display:flex;flex-direction:column;gap:1px;min-width:0;flex:1;overflow:visible;
  position:relative}
.nxfrow .tmw.h{align-items:flex-end}
.nxfrow .tmw.a{align-items:flex-start}
/* THE 1UP / 2UP PAIR HAS TO LEAVE THE ROW.
   The row is full to the pixel — number, early-goals box, club, crest, score,
   crest, club, early-goals box — so the club cell settles at about 50px and
   the pair is 71px. In the flow it overhung sideways into the early-goals box
   at exactly the same height as the chips there, and since both are z-index 3
   the later one in the mark-up won: on the home side 1UP swallowed the "5" of
   O1.5, on the away side a second EG chip swallowed 2UP.
   Lifted onto the clear line above the club name it still overhangs, but a
   whole badge-height above the chips, so nothing covers anything. It also
   stops a second badge pushing the club name down — every name in the round
   now sits on the same line. This is what the TV board already does; its own
   rules below carry more weight and still override these. */
.nxfrow .tmw .upset{position:absolute;bottom:100%;top:auto;z-index:4}
.nxfrow .tmw.h .upset{right:0}
.nxfrow .tmw.a .upset{left:0}
/* The clear line above the club name is only (row - name) / 2 high, and at a
   1280-wide terminal a full-size chip is ~2px taller than that: the top of
   match 1's badge was cut off by the list's own clip. Lifted badges are a
   mark beside the club, not a chip to be read across the shop, so they take a
   size below the one the early-goals chips keep. */
.nxfrow .tmw .upset .lvbadge{font-size:calc(var(--chip) * .88);padding:1px 4px}
.nxfrow .tmw .ln{display:flex;align-items:center;gap:6px;min-width:0;max-width:100%;overflow:hidden}
.nxfrow .tmw b{font-family:var(--mono);font-weight:800;font-size:var(--tm);line-height:1.1;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* the 1UP chip beside a club: stated here rather than inheriting the club
   code's size by accident */
.nxfrow .tmw .lvbadge,.nxfrow .lvbg .lvbadge{font-size:var(--chip);padding:2px 5px}
.nxfrow .tmw .lvbadge{align-self:inherit}

.nxfrow .sc{flex:none;font-family:var(--mono);font-weight:800;font-size:clamp(12px,1.2vw,26px);
  text-align:center;background:#00131C;border:1.5px solid #1D4256;border-radius:6px;
  padding:1px clamp(3px,.35vw,9px);letter-spacing:.04em;min-width:clamp(40px,4vw,92px)}
.nxfrow[data-just="true"] .sc{border-color:var(--wall-accent,#00E27A);color:var(--wall-accent,#00E27A)}
/* the goal bar and the badges sit under the row, clear of the club codes */
.nxfrow .lvpips{position:absolute;left:clamp(6px,.7vw,15px);right:clamp(6px,.7vw,15px);bottom:4px;
  display:flex;align-items:center;pointer-events:none;height:5px}
.nxfrow .lvpips .bar{position:relative;flex:1;height:4px;border-radius:2px;
  background:rgba(255,255,255,.07);overflow:hidden}
.nxfrow .lvpips .fill{position:absolute;left:0;top:0;bottom:0;background:rgba(0,226,122,.24);
  border-right:1px solid rgba(0,226,122,.55);transition:width .5s linear}
.nxfrow .lvpips .ht{position:absolute;top:0;bottom:0;width:1px;background:rgba(255,255,255,.28);left:50%}
.nxfrow .lvpips i{position:absolute;width:4px;height:4px;border-radius:50%;transform:translateX(-50%);top:.5px}
.nxfrow .lvpips i.h{background:#7FD4FF}
.nxfrow .lvpips i.a{background:#FFC46B;top:auto;bottom:.5px}
.lvbg{display:flex;gap:3px;flex:none;flex-wrap:nowrap;align-items:center}
/* The two badge boxes reserve exactly what the badges need and no more:
   one chip on the left, two on the right, at the size --chip settles to. */
.nxfrow .lvbg.l{width:clamp(38px,3.4vw,62px);justify-content:flex-start}
.nxfrow .lvbg.r{width:clamp(80px,7vw,130px);justify-content:flex-end}

/* ---- achievement badges: 1UP and the early goals ---- */
.lvbadge,.nxfrow .lvbadge{display:inline-block;flex:none;font-family:var(--mono);font-weight:800;
  font-size:clamp(6px,.55vw,12px);letter-spacing:.02em;line-height:1;padding:2px 3px;
  border-radius:4px;white-space:nowrap;
  /* it arrives huge, then settles into the small label it stays as */
  animation:lvland 1.5s cubic-bezier(.16,.9,.3,1) 1 both}
.lvbadge.up{background:linear-gradient(180deg,#FFD066,#F0A81E);color:#231400;
  border:1px solid #FFDF9A;box-shadow:0 0 0 0 rgba(255,196,107,.7);
  animation:lvland 1.5s cubic-bezier(.16,.9,.3,1) 1 both, lvhalo 2.6s ease-out 2 1.4s}
.lvbadge.eg,.nxfrow .lvbadge.eg{background:linear-gradient(180deg,#7FD4FF,#2E9BD6);
  color:#04202E;border:1px solid #B4E6FF;letter-spacing:.04em}
.lvbadge.eg[data-st="ft"]{background:rgba(127,212,255,.16);color:#9FD8F2;border-color:rgba(127,212,255,.35)}
/* big on arrival, held for a beat, then down to its resting size */
@keyframes lvland{
  0%  {transform:scale(3.4);opacity:0;filter:brightness(1.9)}
  12% {transform:scale(3.4);opacity:1;filter:brightness(1.9)}
  34% {transform:scale(3.4);opacity:1;filter:brightness(1.9)}
  70% {transform:scale(1.18);filter:brightness(1.15)}
  100%{transform:scale(1);opacity:1;filter:brightness(1)}}
@keyframes lvhalo{
  0%{box-shadow:0 0 0 0 rgba(255,196,107,.85)}
  100%{box-shadow:0 0 0 20px rgba(255,196,107,0)}}

/* ---- a market cell that is winning ---- */
.nxgrid.live .nxo{flex-direction:column;gap:1px;line-height:1.1}
.nxgrid.live .nxo b{font-family:var(--mono);font-weight:800;font-size:clamp(8px,.82vw,17px);
  color:#8CA6B4;letter-spacing:-.02em}
.nxgrid.live .nxo i{font-style:normal;font-family:var(--mono);font-weight:800;
  font-size:clamp(9px,.95vw,20px);color:var(--on-deep)}
.nxgrid.live .nxo[data-win="true"]{background:rgba(0,226,122,.15);
  box-shadow:inset 0 0 0 1px rgba(0,226,122,.5)}
.nxgrid.live .nxo[data-win="true"] b{color:#6BFFB0}
.nxgrid.live .nxo[data-win="true"] b::before{content:"\2713 ";font-size:.85em;opacity:.85}
.nxgrid.live .nxo[data-ft="true"]{background:rgba(0,226,122,.3);
  box-shadow:inset 0 0 0 1px var(--wall-accent,#00E27A)}
.nxgrid.live .nxo[data-ft="true"] b{color:#EAFFF3}
.nxgrid.live .nxgrp.one .nxo b{font-size:clamp(9px,.95vw,20px);color:#6BFFB0}

/* ---- the flash: the moment something is achieved ---- */
.lvflash{position:absolute;left:0;right:0;bottom:0;z-index:6;display:flex;align-items:center;gap:12px;
  padding:9px 16px;background:linear-gradient(90deg,rgba(0,226,122,.95),rgba(0,140,80,.92) 60%,rgba(0,140,80,0));
  color:#02170D;transform:translateX(-102%);pointer-events:none}
.lvflash[data-on="true"]{animation:lvslide 4.2s cubic-bezier(.2,.9,.25,1) 1 both}
.lvflash b{font-family:var(--disp);font-weight:800;font-size:clamp(11px,1.1vw,20px);letter-spacing:.1em;
  background:#02170D;color:#6BFFB0;padding:3px 10px;border-radius:6px;white-space:nowrap}
.lvflash span{font-family:var(--mono);font-weight:700;font-size:clamp(9px,.9vw,16px);letter-spacing:.09em;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@keyframes lvslide{
  0%{transform:translateX(-102%)}
  9%{transform:translateX(0)}
  86%{transform:translateX(0);opacity:1}
  100%{transform:translateX(0);opacity:0}}
@media (prefers-reduced-motion:reduce){
  .lvbadge,.lvbadge.up{animation:none;transform:none;opacity:1}
  .nxfix.live .nxfh .tag i{animation:none}
  .lvflash[data-on="true"]{animation:none;transform:none;opacity:1}}
/* ==========================================================================
   BETWEEN ROUNDS — big enough to read from across the shop.
   Two header bands (group names, then column heads) and ten equal rows. The
   fixture column and the odds panel share the same band heights, so the
   rows line up however the panel changes.
   ========================================================================== */
.nx{flex:1;display:flex;flex-direction:column;min-height:0;background:var(--wall-bg,#07141C);color:var(--on-deep);
  --chip:clamp(7px,.72vw,15px);     /* 1UP and the early-goal badges, one size */
  --gh:clamp(26px,3.4vh,46px);      /* group-name band */
  --hh:clamp(22px,2.9vh,40px);      /* column-head band */
  --od:clamp(13px,1.42vw,30px);     /* the odds themselves */
  --tm:clamp(12px,1.28vw,27px)}     /* club codes */
.nxbody{flex:1;display:flex;min-height:0;gap:0}

/* ---- the fixture column: fixed, never rotates ---- */
.nxfix{flex:0 0 clamp(220px,20.5vw,400px);display:flex;flex-direction:column;min-height:0;
  overflow:hidden;background:var(--wall-panel,#0B2231);border-right:3px solid var(--wall-accent,#00E27A)}
.nxfh{height:var(--gh);flex:none;background:rgba(0,0,0,.3)}
.nxfh2{height:var(--hh);flex:none;display:flex;align-items:center;justify-content:center;
  background:rgba(0,0,0,.22);font-family:var(--disp);font-weight:800;
  font-size:clamp(10px,.85vw,17px);letter-spacing:.14em;color:#9FB6C2}
.nxfrows{flex:1;display:flex;flex-direction:column;min-height:0;overflow:hidden}
.nxfrow:last-child{border-bottom:0}
.nxfrow{flex:1;min-height:0;display:flex;align-items:center;gap:clamp(4px,.5vw,11px);
  padding:0 clamp(6px,.7vw,15px);border-bottom:1px solid rgba(255,255,255,.07)}
.nxfrow:nth-child(even){background:rgba(255,255,255,.035)}
.nxfrow .n{flex:none;width:clamp(14px,1.5vw,32px);text-align:center;font-family:var(--mono);
  font-weight:800;font-size:clamp(11px,1.1vw,23px);color:#7C96A4}
.nxfrow .crest{flex:none;width:clamp(15px,1.5vw,32px);height:auto}
.nxfrow b{font-family:var(--mono);font-weight:800;font-size:var(--tm);letter-spacing:.01em;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.nxfrow .h{flex:1;text-align:right}
.nxfrow .a{flex:1;text-align:left}
.nxfrow .v{flex:none;font-family:var(--mono);font-size:clamp(8px,.72vw,14px);color:#5C7A8A}

/* ---- the rotating odds panel ---- */
.nxpanel{flex:1;display:flex;min-width:0;min-height:0}
.nxgrid{flex:1;display:flex;flex-direction:column;min-width:0;min-height:0}
.nxgroups,.nxhead,.nxrow{display:grid;grid-template-columns:var(--nxt);gap:0}
.nxgroups{height:var(--gh);flex:none}
.nxhead{height:var(--hh);flex:none}
.nxrows{flex:1;display:flex;flex-direction:column;min-height:0;overflow:hidden}
.nxrow:last-child{border-bottom:0}
.nxrow{flex:1;min-height:0;border-bottom:1px solid rgba(255,255,255,.07)}
.nxrow:nth-child(even){background:rgba(255,255,255,.035)}
.nxgroups .nxgrp{display:flex;align-items:center;justify-content:center;
  background:var(--wall-band-deep,#0F5B34);border-right:1px solid rgba(0,0,0,.35)}
.nxgroups .nxgrp.tint{background:#4A2A6B}
.nxgroups b{font-family:var(--disp);font-weight:800;font-size:clamp(9px,.88vw,19px);
  letter-spacing:.09em;color:var(--on-strong);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding:0 4px}
.nxhead .nxgrp{display:grid;grid-auto-flow:column;grid-auto-columns:1fr;align-items:center;
  background:var(--wall-band-deeper,#0C4A2B);border-right:1px solid rgba(0,0,0,.35)}
.nxhead .nxgrp.tint{background:#3D2259}
.nxhead .nxgrp span{text-align:center;font-family:var(--mono);font-weight:800;
  font-size:clamp(8px,.8vw,16px);letter-spacing:.05em;color:var(--wall-band-ink,#BFE9D2)}
.nxrow .nxgrp{display:grid;grid-auto-flow:column;grid-auto-columns:1fr;align-items:center;
  border-right:1px solid rgba(255,255,255,.07)}
.nxrow .nxgrp.tint{background:rgba(122,74,175,.18)}
.nxo{display:flex;align-items:center;justify-content:center;font-family:var(--mono);
  font-weight:800;font-size:var(--od);color:var(--on-deep);min-width:0;overflow:hidden;padding:0 2px}
.nxo.lock{color:#5C7A8A}
.nxo.lock svg{width:clamp(11px,1.05vw,22px);height:auto;fill:currentColor;opacity:.65}
.nxgrid.tight{--od:clamp(11px,1.2vw,25px)}
.nxgrid.nxcs{--od:clamp(14px,1.62vw,36px)}
.nxgrid.nxcs .nxo{font-variant-numeric:tabular-nums;letter-spacing:-.02em}
.nxgrid.nxcs .nxhead .nxgrp span{font-size:clamp(7px,.72vw,14px)}

/* ---- round specials ----
   Same palette as every other panel: the green group band, the darker head
   band under it, and the odds on the panel's own dark ground, so the slide
   does not read as a different product. */
.nxrs{flex:1;display:flex;flex-direction:column;min-height:0;background:var(--wall-bg,#07141C)}
.rshead{flex:none;display:flex;align-items:center;gap:clamp(7px,1vw,18px);
  padding:0 clamp(8px,1vw,18px);height:var(--gh);background:var(--wall-band-deep,#0F5B34);
  border-bottom:1px solid rgba(0,0,0,.35)}
.rshead .pill{font-family:var(--disp);font-weight:800;font-size:clamp(7px,.7vw,14px);
  letter-spacing:.12em;background:rgba(0,226,122,.22);color:#6BFFB0;
  border:1px solid rgba(0,226,122,.5);border-radius:4px;padding:2px 9px;white-space:nowrap}
.rshead b{flex:1;text-align:center;font-family:var(--disp);font-weight:800;
  font-size:clamp(10px,1.05vw,23px);letter-spacing:.11em;color:var(--on-strong)}
.rsbox{display:flex;flex-direction:column;min-height:0}
.rsline{display:grid;grid-auto-flow:column;grid-auto-columns:1fr}
.rsline.lab{background:var(--wall-band-deeper,#0C4A2B)}
.rsline.odds{background:transparent;border-bottom:1px solid rgba(255,255,255,.07)}
.rsline.odds:nth-of-type(4n){background:rgba(255,255,255,.035)}
.rsc{display:flex;align-items:center;justify-content:center;padding:clamp(2px,.5vh,7px) 2px;
  border-right:1px solid rgba(255,255,255,.07);font-family:var(--mono);font-weight:800;
  font-size:clamp(9px,1vw,21px);color:var(--on-deep);min-width:0;overflow:hidden}
.rsline.lab .rsc{color:var(--wall-band-ink,#BFE9D2);font-size:clamp(8px,.82vw,16px);letter-spacing:.04em;
  border-right-color:rgba(0,0,0,.3)}
.rsline.odds .rsc svg{width:clamp(10px,.95vw,19px);fill:#5C7A8A;opacity:.65}
.rsc b{font-weight:800}

/* ---- the league table strip ---- */
.nxtab{flex:0 0 clamp(150px,15.5vw,300px);display:flex;flex-direction:column;min-height:0;
  overflow:hidden;background:#0A1D28;border-left:1px solid #143343}
.nxtrow:last-child{border-bottom:0}
.nxtrow{flex:1;min-height:0;display:flex;align-items:center;gap:clamp(3px,.45vw,9px);
  padding:0 clamp(5px,.65vw,13px);border-bottom:1px solid rgba(255,255,255,.055)}
.nxtrow:nth-child(even){background:rgba(255,255,255,.03)}
.nxtrow .p{flex:none;width:clamp(13px,1.35vw,28px);text-align:right;font-family:var(--mono);
  font-size:clamp(9px,.88vw,18px);color:#7C96A4}
.nxtrow .t{flex:1;min-width:0;font-family:var(--mono);font-weight:800;
  font-size:clamp(10px,1vw,21px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.nxtrow .pt{flex:none;font-family:var(--mono);font-weight:800;
  font-size:clamp(10px,1vw,21px);color:#6BFFB0;min-width:clamp(14px,1.4vw,28px);text-align:right}
.nxfm{flex:none;display:flex;gap:clamp(1px,.2vw,4px)}
.nxfm i{width:clamp(11px,1.05vw,22px);height:clamp(11px,1.05vw,22px);border-radius:3px;
  font-style:normal;font-family:var(--mono);font-size:clamp(6px,.6vw,12px);font-weight:800;
  line-height:clamp(11px,1.05vw,22px);text-align:center;color:#04202E}
.nxfm i.w{background:#00E27A}.nxfm i.d{background:#E6A62A}.nxfm i.l{background:#FF6B6B}
.nxfm i.n{background:rgba(255,255,255,.08);color:#5C7A8A}
.nxempty{flex:1;display:flex;align-items:center;justify-content:center;padding:16px;text-align:center;
  font-family:var(--disp);font-size:clamp(10px,.9vw,15px);color:#7C96A4}

/* ---- winner celebration ---- */
.celeb{position:absolute;inset:0;z-index:40;display:none;align-items:center;justify-content:center;
  overflow:hidden;background:radial-gradient(circle at 50% 45%,rgba(0,40,26,.93),rgba(2,10,16,.97))}
.celeb[data-on="true"]{display:flex;animation:cfade .5s ease both}
.celeb[data-kind="freebet"]{background:radial-gradient(circle at 50% 45%,rgba(56,38,0,.93),rgba(2,10,16,.97))}
@keyframes cfade{from{opacity:0}to{opacity:1}}
.cbox{position:relative;z-index:2;text-align:center;padding:22px 34px;border-radius:16px;
  background:rgba(0,19,28,.82);border:2px solid var(--wall-accent,#00E27A);box-shadow:0 0 60px rgba(0,226,122,.35);
  animation:cpop .8s cubic-bezier(.2,1.5,.4,1) both}
.celeb[data-kind="freebet"] .cbox{border-color:#FFC46B;box-shadow:0 0 60px rgba(255,196,107,.35)}
@keyframes cpop{0%{transform:scale(.55) translateY(18px);opacity:0}
  60%{transform:scale(1.06) translateY(0);opacity:1}100%{transform:scale(1)}}
.ctop{display:flex;align-items:center;justify-content:center;gap:12px}
.cico{font-size:clamp(26px,3.4vw,50px);line-height:1;animation:cspin 2.6s ease-in-out infinite}
@keyframes cspin{0%,100%{transform:rotate(-9deg) scale(1)}50%{transform:rotate(9deg) scale(1.12)}}
.ctitle{font-family:var(--disp);font-weight:800;font-size:clamp(15px,2vw,30px);letter-spacing:.14em;
  color:#6BFFB0}
.celeb[data-kind="freebet"] .ctitle{color:#FFD98F}
.camt{font-family:var(--mono);font-weight:800;font-size:clamp(26px,4.4vw,64px);color:var(--on-strong);
  letter-spacing:.02em;margin:6px 0 10px;text-shadow:0 0 26px rgba(0,226,122,.55)}
.celeb[data-kind="freebet"] .camt{text-shadow:0 0 26px rgba(255,196,107,.55)}
.ccode{font-family:var(--mono);font-size:clamp(10px,1.1vw,14px);letter-spacing:.2em;color:#9FB6C2}
.ccode b{color:var(--on-strong);font-size:1.5em;letter-spacing:.1em;display:block;margin-top:3px}
.cfoot{margin-top:12px;font-family:var(--disp);font-size:clamp(10px,1vw,13px);color:#9FB6C2;
  letter-spacing:.05em;max-width:34ch;margin-left:auto;margin-right:auto;line-height:1.5}
.cbits{position:absolute;inset:0;z-index:1;pointer-events:none}
.cbits i{position:absolute;top:-18px;width:8px;height:13px;border-radius:2px;background:#00E27A;
  opacity:0;animation-name:cfall;animation-timing-function:linear;animation-iteration-count:infinite}
.cbits i:nth-child(3n){background:#FFC46B;width:7px;height:7px;border-radius:50%}
.cbits i:nth-child(4n){background:#7FD4FF}
.cbits i:nth-child(5n){background:var(--plate);width:5px;height:5px}
@keyframes cfall{0%{transform:translateY(0) rotate(0);opacity:0}
  8%{opacity:1}100%{transform:translateY(105vh) rotate(560deg);opacity:.9}}
@media (prefers-reduced-motion:reduce){
  .cbits{display:none}
  .celeb[data-on="true"],.cbox{animation:none}
  .cico{animation:none}}

/* ---- the footer ticker: last round rolling past ---- */
.jpwin{display:flex;flex-direction:column;justify-content:center;gap:1px;flex:none;
  padding:5px 14px;border-radius:8px;background:linear-gradient(135deg,#8A5A0B,#C9871A);
  color:#1A1000;min-width:clamp(150px,15vw,230px)}
.jpwin.empty{background:linear-gradient(135deg,#12313F,#1B4A5E);color:#BBD3DE}
.jpwin .k{font-family:var(--disp);font-size:clamp(7px,.62vw,9.5px);font-weight:700;
  letter-spacing:.16em;text-transform:uppercase;opacity:.85}
.jpwin b{font-family:var(--mono);font-weight:800;font-size:clamp(12px,1.25vw,20px);line-height:1.05}
.jpwin .v{font-family:var(--mono);font-size:clamp(7px,.6vw,9.5px);letter-spacing:.07em;opacity:.9}
.tick{flex:1;display:flex;align-items:center;gap:12px;min-width:0}
/* The round label is set as large as the footer can already carry — it
   matches the score boxes rolling beside it, which are what set the strip's
   height, so it reads from across the shop without the footer growing. */
.tklab{flex:none;font-family:var(--mono);font-size:clamp(13px,1.45vw,26px);letter-spacing:.1em;
  color:var(--wall-accent,#00E27A);font-weight:700;line-height:1.05;white-space:nowrap}
.tkwrap{flex:1;min-width:0;overflow:hidden;-webkit-mask-image:linear-gradient(90deg,transparent,#000 3%,#000 97%,transparent)}
.tkrail{display:flex;width:max-content;animation-name:tkroll;animation-timing-function:linear;
  animation-iteration-count:infinite}
@keyframes tkroll{from{transform:translateX(0)}to{transform:translateX(-50%)}}
.tkit{display:flex;align-items:center;gap:8px;padding:0 clamp(10px,1.4vw,26px);
  border-right:1px solid rgba(255,255,255,.08);white-space:nowrap}
.tkit i{font-style:normal;font-family:var(--mono);font-size:clamp(8px,.75vw,14px);color:#5C7A8A}
.tkit .tm{position:relative;font-family:var(--mono);font-weight:800;
  font-size:clamp(12px,1.3vw,24px);color:var(--on-deep)}
.tkit .tm em,.tkeg em{font-style:normal;font-family:var(--mono);font-weight:800;
  font-size:clamp(8px,.78vw,15px);letter-spacing:.04em;line-height:1;padding:2.5px 5px;
  border-radius:4px;white-space:nowrap}
.tkit .tm em{margin-left:6px;background:linear-gradient(180deg,#FFD066,#F0A81E);
  color:#231400;border:1px solid #FFDF9A}
.tkit .sc{font-family:var(--mono);font-weight:800;font-size:clamp(13px,1.45vw,27px);color:#6BFFB0;
  background:#00131C;border:1.5px solid #1D4256;border-radius:6px;padding:1px clamp(7px,.7vw,13px)}
.tkeg{display:flex;gap:3px}
.tkeg em{background:linear-gradient(180deg,#7FD4FF,#2E9BD6);color:#04202E;border:1px solid #B4E6FF}
.tkeg em[data-ft="true"]{background:rgba(127,212,255,.2);color:#9FD8F2;
  border:1px solid rgba(127,212,255,.35)}
.tkempty{flex:1;font-family:var(--mono);font-size:clamp(8px,.72vw,11px);letter-spacing:.09em;color:#7C96A4}
@media (prefers-reduced-motion:reduce){.tkrail{animation:none}}

/* ==========================================================================
   TIER-1 TYPE AND TOUCH FLOOR (cashier upgrade, slice 4).
   Measured on the live counter at 1366x768: 63 pieces of text under 11px (the PRINT / CLEAR /
   CHECK / PLACE labels were 8px) and the most-used small controls under 24px (the + beside
   every fixture was 21px). A counter is read at arm's length and pressed in a hurry.
   Two rules, both a FLOOR so nothing gets smaller and big screens still scale:
     TYPE   no text under 11px         -> font-size:max(11px, ...)
     TOUCH  a control is at least 36px to hit, even where it is drawn smaller: an invisible
            ring around it (inset -7px) takes the press, so no layout moves.
   ========================================================================== */
/* 12px WHERE IT FITS (15 November 2026, Austin: "go with your recommendation"). The floor above is 11px and stays 11px on a counter under 1200px wide and
   on the dense number boards (a Spin 2 Win cell, a Keno ball, a Jetranger box: hundreds of labels with no room for more). But the words a cashier reads
   all day, at arm's length, on the counters most shops have (1280 wide and up) are the top bar, the jackpot line, the week tabs, the round bar, the
   headings over the columns, the buttons under the slip and the notes in a dialog. Those take --floor, which is 12px there. Each rule that follows keeps
   its own compensation (the week button gives back in padding what its label takes), so no row and no button grows. */
/* THE TOP BAR waits for a wider counter (--floor-top, 12px from 1360 wide): at 1280 it has no air, and 12px on its labels pushed the fourth league
   button under the arrow beside it. Measured, not guessed: everything else changed by a pixel at most. */
:root{--floor:11px;--floor-top:11px}
@media (min-width:1200px){:root{--floor:12px}}
@media (min-width:1360px){:root{--floor-top:12px}}
.act i{font-size:max(var(--floor),.78rem)}
.icobtn{font-size:max(var(--floor-top),.72rem);padding:5px 4px;gap:0}
.nextg,.bal,.cash{font-size:max(var(--floor-top),.78rem)}
.nextg .lbl,.bal i{font-size:max(var(--floor-top),.78rem)}
/* "Betting closes in" stays at 11px: at 12px it took three lines where it took two when a long game name (Colour Colour, Spin 2 Win Pro) is on the strip (QA on #901) */
.nextg .lbl{font-size:max(11px,.78rem)}
.cash{font-size:max(var(--floor-top),.74rem)}
.jack{font-size:max(var(--floor),.78rem)}
.jack b{font-size:max(12px,.9rem)}
:root{--wkfs:max(var(--floor),.76rem)}
.wk span,.roundbar .rlab,.roundbar .rmeta{font-size:max(var(--floor),.76rem)}
.wk span{font-size:var(--wkfs);line-height:.96}
/* the bigger WEEK label gives back what it took, so the market pills and the rows stay where they were */
.wk{padding:calc(.42rem - (var(--wkfs) - .64rem) * .5) calc(.85rem - (var(--wkfs) - .64rem) * 1.75)}
.rsbar .t{font-size:max(var(--floor),.76rem);line-height:1;white-space:nowrap;letter-spacing:.04em}
.grphead .g{font-size:max(var(--floor),.78rem)}
.frow .fx .sep{font-size:max(var(--floor),.72rem)}
body .colhead .c,body .colhead .fx{font-size:max(var(--floor),.78rem)}
body .colhead .c{padding-top:calc(.32rem - (max(var(--floor),.78rem) - .76rem) * .6);padding-bottom:calc(.32rem - (max(var(--floor),.78rem) - .76rem) * .6)}
.jack #jpw1,.jack #jpw2,.jack #jpw3{font-size:max(var(--floor),.78rem)}
.fbin input{font-size:max(var(--floor),.74rem)}
.fbin input::placeholder{font-size:10px;letter-spacing:.02em}
.upsw{font-size:max(var(--floor),.74rem);line-height:1}
.rlink{font-size:max(var(--floor),.78rem)}
.vbtn{font-size:max(var(--floor),.68rem);padding:0 max(2px,calc(.85rem - (max(var(--floor),.68rem) - .68rem) * 2.9));letter-spacing:.02em}
.fx .plus{width:1.7rem;height:1.7rem;flex:0 0 1.7rem}

/* the invisible ring that makes a small control easy to hit; it takes clicks but draws nothing */
.fx .plus,.icobtn,.gdrawb,.go,.fbq,.rlink,.upsw,.mpill,.vbtn,.rsbar,.wk,#lvHide,#lvNext{position:relative}
.fx .plus::before,.gdrawb::before,.fbq::before,.rlink::before,.upsw::before{
  content:"";position:absolute;inset:-7px;border-radius:inherit}
/* the top bar's buttons sit 8px apart, so their ring is narrower sideways: two rings must never
   overlap (a press just outside one button would land on its neighbour) */
.go::before{content:"";position:absolute;inset:-5px;border-radius:inherit}
.icobtn::before{content:"";position:absolute;inset:-6px -3px;border-radius:inherit}
.mpill::before,.vbtn::before,.rsbar::before,.wk::before,#lvHide::before,#lvNext::before{content:"";position:absolute;inset:-4px -3px;border-radius:inherit}
.upsw::before{inset:-9px -7px}

/* the rest of the floor: the games drawn inside the counter keep their small type in their own
   rules (the S2W prices were 9px), so these say `body` first to be heard over them */
body .grphead .g .inf{font-size:max(var(--floor),.8rem)}
html body .fx.rcfx .form i,html body .fx.rcfx .form u,html body .rcph i,html body .rcph b,html body .rccell .l{font-size:max(11px,.78rem)}
html body .fx.rcfx .rcname b .fav{font-size:max(10px,.7rem)}
html body .kn-strip .kn-sb .kn-c small,html body .kn-c small,html body .pillodd small,html body .pillodd.kn-lb small{font-size:max(11px,.78rem)}
body .cc-cap,body .cc-facts,body .cc-facts b,body .cc-nm i,body .jr-cap,body .jr-nm i,body .jr-fl,body .jr-fl.mid,body .jr-fl.big{font-size:max(11px,.8rem)}
body .cc-ball{font-size:max(11px,.8rem)}
body .s2w-c i,body .s2w-sh,body .s2w-sh span,body .s2w-dot{font-size:max(11px,.8rem)}
html body .lvbadge,html body .lvbadge.up,html body .lvbadge.eg,html body .tkit .tm em,html body .tkeg em{font-size:max(10px,.7rem)}
/* the small badges that sit beside a number (1UP, EG, GOALS, a round tag) are allowed 10px: they
   are read as a colour and a word beside a bigger figure, and 11px would not fit their chip */
html body .lvbadge,html body .lvbadge.up,html body .lvbadge.eg,html body .nxfrow .lv,html body .rsg b,html body .rsg i,html body .rsg em,html body .rsg.big b,html body .rsg.big i,html body .nxfix.live .nxfh .tag,html body .pv .pvh .tag{font-size:max(10px,.7rem)}
html body :is(.lvbadge,.lvbadge.up,.lvbadge.eg,.nxfrow .tmw .lvbadge,.nxfrow .lvbg .lvbadge,.nxfrow .tmw .upset .lvbadge,.nxfrow .lv){font-size:max(10px,.7rem)}

/* the two buttons of the "a round is playing" board, which have no class of their own */
/* on a 1024-wide counter the group heads (WINNER, DOUBLE CHANCE, O/U 2.5 + EG) have no room for 11px:
   10px there, rather than a head that wraps to two lines and pushes every row down */
@media (max-width:1199px){
  .grphead .g,body .grphead .g,.upsw,body .colhead .c,body .colhead .fx{font-size:max(10px,.74rem)}
  :root{--wkfs:max(10px,.72rem)}
  .icobtn,.nextg,.bal,.cash,.nextg .lbl,.bal i,.jack,.roundbar .rlab,.roundbar .rmeta,.vbtn{font-size:max(10px,.72rem)}
  .grphead .g{white-space:nowrap;gap:.25rem}
  .upsw{margin-left:.4rem}
  .upsw.eg{margin-left:.3rem}
}

/* ===== slice 5: a calmer top bar =====
   Six boxed buttons, three pills and a clock all shouted at once. The tools
   rest flat and only a hover or the open state draws a box; the money
   (cashier, balance) is set apart from the tools by one hairline each, so the
   eye finds "who am I / how much" and "where do I go" as two groups. Colour
   goes through tokens, so dark follows. Nothing here changes a size, only
   what is painted (the hairline is drawn inside the existing gap), so no control moves. */
.top .icobtn{background:none;border-color:transparent;box-shadow:none}
.top .icobtn:hover,.top .icobtn:focus-visible,.top .icobtn[aria-expanded="true"],.top .icobtn[aria-pressed="true"]{
  background:linear-gradient(180deg,var(--key-top) 0%,var(--key-bot-hi) 100%);border-color:var(--line2);box-shadow:var(--edge)}
.top .icobtn#balRefresh{border-color:transparent}
.top .bal{position:relative}
.top .bal::before{content:"";position:absolute;left:-.32rem;top:18%;bottom:18%;width:1px;background:var(--line2)}
/* the league pills keep their box below 1200px: they are clipped there, and a flat
   pill lets the clipped label run into its neighbour's crest */
@media (min-width:1200px){
  .top .lgb:not([aria-pressed="true"]){background:none;box-shadow:none;border-color:transparent}
  .top .lgb:not([aria-pressed="true"]):hover,.top .lgb:not([aria-pressed="true"]):focus-visible{background:linear-gradient(180deg,var(--key-top) 0%,var(--key-bot-hi) 100%);border-color:var(--line2)}
}

/* ===== slice 6: the slip says "placed" ===== */
.cplaced{margin:.9rem .6rem;padding:.9rem .8rem;border:1px solid var(--line2);border-radius:var(--r2);text-align:center;
  background:var(--panel2);color:var(--ink2);font-size:max(var(--floor),.78rem);line-height:1.4}
.cplaced[hidden]{display:none}
.cplaced .cp-t{font-family:var(--disp);font-weight:800;font-size:1rem;color:var(--acc3);margin-bottom:.35rem}
.cplaced .cp-c{font-size:1.05rem;font-weight:800;color:var(--ink);margin-bottom:.35rem;word-break:break-all}
.cplaced .cp-c .mono+.mono{margin-left:.5rem}
.cplaced .cp-b{margin-top:.6rem;padding:.45rem .9rem;border:1px solid var(--line2);border-radius:var(--r1);font-weight:700;
  color:var(--ink2);background:linear-gradient(180deg,var(--key-top) 0%,var(--key-bot) 100%);box-shadow:var(--edge);position:relative}
.cplaced .cp-b::before{content:"";position:absolute;inset:-4px -3px}
.cplaced .cp-b:hover{color:var(--acc3);border-color:var(--acc3)}

/* The PRINT key's cream label sat on gold at 1.7:1 (it needs 4.5:1 at this size).
   Dark brown on the same gold reads at 5:1 or better, light and dark alike, and
   the key stays the same colour. */
.act.print{background:linear-gradient(180deg,#E4B94F 0%,#CFA032 48%,#BC8E22 100%);color:#2B1B00}

/* FIND A GAME (tier-1 speed): the search box at the head of the games drawer. */
.gsearch{grid-column:1/-1;width:100%;box-sizing:border-box;margin-bottom:6px;padding:9px 12px;
  font:inherit;font-size:max(var(--floor),.9rem);color:var(--ink);background:var(--plate);
  border:1px solid var(--line2);border-radius:var(--r2)}
.gsearch::placeholder{color:var(--ink3)}
.gnone{overflow-wrap:anywhere;word-break:break-word;min-width:0}
/* CONNECTION BANNER (tier-1). Its own row under the top bar, so it covers no jackpot
   figure or tab and nothing taps through it. Solid red with white text, like the toast,
   so it reads the same in light and dark. */
.connbar{flex:0 0 auto;display:flex;align-items:center;justify-content:center;gap:12px;
  padding:6px 12px;background:var(--red2);color:var(--on-strong);
  font-size:max(var(--floor),.84rem);font-weight:600}
.connbar[hidden]{display:none}
.connbar button{position:relative;flex:none;padding:6px 14px;border-radius:var(--r1);
  background:var(--on-strong);color:var(--red2);font-weight:800;font-size:max(var(--floor),.8rem)}
.connbar button::before{content:"";position:absolute;inset:-6px -2px}
.connbar button:disabled{opacity:.6}

/* LIST STATES (tier-1): still asking, nothing there, could not ask. One look for
   all three so a lost line never passes for an empty list. Failed is red text on
   the page's own plate, not a toast - it stays until the list loads. */
.lstate{display:flex;flex-direction:column;align-items:center;gap:6px;padding:2rem 1.2rem;
  color:var(--ink3);font-size:max(var(--floor),.88rem);text-align:center;line-height:1.5}
.lstate b{color:var(--ink);font-weight:700}
.lstate.fail{color:var(--ink2)}
.lstate.fail b{color:var(--red2)}
.lstate .lsretry{position:relative;margin-top:6px;padding:7px 16px;border-radius:var(--r1);
  background:var(--red2);color:var(--on-strong);font-weight:800;font-size:max(var(--floor),.8rem)}
.lstate .lsretry::before{content:"";position:absolute;inset:-6px -2px}
.lspin{width:14px;height:14px;border-radius:50%;border:2px solid var(--line2);border-top-color:var(--ink3);
  animation:lsspin .8s linear infinite}
@keyframes lsspin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){.lspin{animation:none}}

/* The one line beside the placed-panel buttons that says why a button is missing. */
.cp-note{font-size:max(var(--floor),.8rem);color:var(--ink3);align-self:center}

/* ===== the slip's selection list, COMPACT (Austin, 12 November 2026: "the height per row on ours is a lot; manage it so we get more information with minimal scrolling").
   One short row per selection with B and X SIDE BY SIDE (they stacked, which made every row double height), and the Min/Max totals panel under the list
   tightened so it stops squeezing the list into two rows. Spacing only: no colour, so the light and dark tokens still apply. ===== */
.ctab{padding:.42rem .5rem;min-height:32px}
table.seltab th,table.grptab th,table.mmtab th{padding:.28rem .55rem}
table.seltab td{padding:.18rem .55rem;line-height:1.2}
table.seltab td.x{width:1%;white-space:nowrap;text-align:right;padding:.14rem .4rem}
table.seltab .bnk,table.seltab .delx{display:inline-block;vertical-align:middle;width:max(24px,1.75rem);height:max(24px,1.5rem);line-height:1;padding:0;margin:0}
table.seltab .bnk{margin-right:.25rem}
table.grptab td{padding:.28rem .5rem}
table.grptab td.stk{padding:.2rem .45rem}
table.grptab input{padding:.22rem .5rem}
table.mmtab td{padding:.26rem .6rem;line-height:1.2}
table.mmtab{table-layout:fixed}
table.mmtab td:first-child,table.mmtab th:first-child{width:26%}
table.mmtab td+td{overflow-wrap:break-word}
.crow{padding:6px 10px}
.crow input{padding:.4rem .6rem}
table.mmtab td{font-size:.84rem}
table.mmtab td.stk2,table.mmtab tr.tot td{font-size:.86rem}

/* ==========================================================================
   STAGE 4: EVERY WINDOW WEARS THE SAME HEAD (cashier tier-1, 16 November 2026)
   Measured before this: the close button was 11 by 17 pixels on the small windows and 14 by 27 at its largest, in five places and four sizes; a tag in a
   window's head ("NO SHIFT OPEN", "PHONE ACCOUNTS") ran under it; the small windows' heads were 38px or 44px tall depending on whether they had a
   tag; their headings were 11px; and a third button at a window's foot sat alone in half a row.
   ONE CLOSE BUTTON: 36px square at least, in the head's top right corner, lit under the pointer in the head's own ink. It is laid out here for all five
   heads, so a new window gets it by using one of them.
   ========================================================================== */
.pv .pvh .x,.mhead .x,.rswrap .rsh .x,.tdhead .x,.modal h3 .x{
  width:max(2.7rem,36px);height:max(2.7rem,36px);padding:0;display:grid;place-items:center;flex:0 0 auto;
  font-size:1.5rem;line-height:1;font-weight:400;border-radius:var(--r2);transition:background .12s var(--ease),color .12s var(--ease)}
.pv .pvh .x,.mhead .x,.rswrap .rsh .x{position:absolute;top:.3rem;right:.35rem}
.tdhead .x,.modal h3 .x{margin:-.45rem -.6rem -.45rem auto}
.pv .pvh .x:hover,.mhead .x:hover,.rswrap .rsh .x:hover,.tdhead .x:hover,.modal h3 .x:hover{background:color-mix(in srgb,currentColor 14%,transparent)}
.pv .pvh .x:focus-visible,.mhead .x:focus-visible,.rswrap .rsh .x:focus-visible,.tdhead .x:focus-visible,.modal h3 .x:focus-visible{outline-offset:-3px}
/* the small windows' head: one height with or without a tag, room kept for the close button so a tag stops before it, and a heading at the 12px floor */
.pv .pvh{min-height:max(3.3rem,44px);padding-top:.5rem;padding-bottom:.5rem;padding-right:max(3.4rem,46px)}
.pv .pvh h4,.modal h3{font-size:max(.9rem,12px)}      /* 12px on a 1024-wide counter too, where a rem is 12px and .9rem was 10.8 */
/* THE HEADING IS NEVER THE ONE CUT. It keeps to one line, with a little less air between its letters than it had at 11px; a tag too long for the room
   left is the one shortened, with an ellipsis. The small windows are three rem wider (30, from 27) so that the longest pair, "Customer cash desk" and
   "phone accounts", sits on one line at 1024 wide as well. */
.pv{width:min(30rem,95vw)}
.pv .pvh h4{letter-spacing:.07em;white-space:nowrap;flex:0 0 auto}
.pv .pvh .tag{white-space:nowrap;flex:0 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;letter-spacing:.06em}
.mhead{padding-left:max(3.4rem,46px);padding-right:max(3.4rem,46px)}
/* a third button at the foot takes the whole row, not half of one */
.pv .pvcta button:last-child:nth-child(odd){grid-column:1/-1}

/* ==========================================================================
   STAGE 5: THE LAYOUT AT THE FOUR SHOP SIZES (cashier tier-1, 16 November 2026)
   Every board was opened at 1024x768, 1280x720, 1366x768 and 1920x1080 and measured. What that found, and nothing else, is put right here.
   ========================================================================== */
/* THE CLOCK'S LABEL IS TWO LINES, as it is written ("Betting / closes in", "Match / in play"). At 1024 and 1280 wide the second line broke
   again and the label stood three lines tall beside a one-line clock. */
.nextg .lbl{white-space:nowrap}
/* THE STRIP OF GAMES (fitLeagues in index2.html says when it is tight). A name is whole or it is not shown: the game on the board keeps its
   name, the others keep their picture, each still a button wide enough to press. */
.lgb .lgn{min-width:0;overflow:hidden;text-overflow:ellipsis}
.leagues[data-tight="true"] .lgb[data-ico="true"]:not([aria-pressed="true"]) .lgn{display:none}
.leagues[data-tight="true"] .lgb[data-ico="true"]:not([aria-pressed="true"]){flex:0 0 auto;justify-content:center;min-width:max(2.8rem,34px);padding-left:.5rem;padding-right:.5rem}
.leagues[data-tight="true"] .lgb[data-ico="true"]:not([aria-pressed="true"]) .lfcnt{margin-left:0}
/* A LITTLE LESS AIR BETWEEN THE BAR'S PARTS BELOW 1360 WIDE: at 1280 the four names were one pixel short of fitting. */
@media (max-width:1359px){
  .top{gap:.45rem}
}
/* AT 1024 WIDE the word "Cashier" before the cashier's name goes (the name stays, and the hover text still says "This cashier"): with it the game
   on the board could not keep its whole name while live football was open ("LIVE E"). */
@media (max-width:1199px){
  .top{gap:.4rem;padding-left:.5rem;padding-right:.5rem}
  .top .cash>span{display:none}
}


/* a jackpot still under its floor says how much the real pot holds (paintJackpot): small, in the text's own colour, so it follows light and dark. The word
   JACKPOT is dropped from the three plates while any is filling (the bar's own label already says it): at 1024 wide the strip had no spare room and the
   note cut the bronze figure off (QA on #1029). */
.jack .jpfill{font-style:normal;font-size:max(var(--floor),.7rem);font-weight:600;letter-spacing:0;opacity:.8;white-space:nowrap}
