/* THE SHOP SCREEN STYLESHEET
   Taken verbatim from the prototype's own TV stylesheet
   (_design-reference/cashier-terminal.html, const TV_CSS).
   Two mechanical changes, no colour or size altered:
     1. its page-level html,body and * rules are dropped, because this
        sheet loads beside cashier-ui.css rather than in its own window;
     2. its :root token block is scoped to #tvOverlay,.tv so the wall's
        green accent cannot leak into the cashier terminal behind it.
   Nothing else is edited, except that the wall's own colours and typeface now read --wall-* tokens (look/, api/look.go), each
   with the prototype's value as its fallback, so a shop whose agent chose no look sees exactly what it always did. */
#tvOverlay,.tv{--hdbar:clamp(30px,5.4vh,64px);--mono:"JetBrains Mono","IBM Plex Mono",ui-monospace,monospace;--disp:var(--wall-font,"Sora","Archivo",Arial,sans-serif);
  --acc3:var(--wall-accent,#00E27A)}
.tv{display:flex;flex-direction:column;height:100vh;background:var(--wall-bg,#06121A);color:var(--on-deep,#EAF3F7);
  font-family:var(--wall-font,"Sora","Manrope",Arial,sans-serif)}
/* The inline fallback strips the html/body rule, so anything that would
   otherwise inherit the cashier terminal's dark ink states its own colour here. */
.tvmain,.tvmulti,.tvcell,.tvcell .nx{color:var(--on-deep,#EAF3F7)}
/* One clock on a single-league wall: it lives in the header now, so the copy
   on the fixture column stands down. Multi view keeps its own — four boards,
   four different minutes. The round-specials goal count follows the same rule. */
.tvmain>.lvpanel .nxfix.live .nxfh .clk,
.tvmain>.lvpanel .nxfix.live .nxfh .rsg{display:none}
.tvrs{display:flex;align-items:center;flex:none}
.tvrs:empty{display:none}
/* Multi view: the shared wall header steps out, every cell carries its own */
/* Multi view: each cell is complete in itself, so the shared header and the
   shared footer both step out and hand their room to the four screens. */
.tv[data-multi="true"] .tvhead,.tv[data-multi="true"] .tvfoot{display:none}
/* the count and the clock live in the cell header, not twice over */
.tvcell .nxfix.live .nxfh .rsg,.tvcell .nxfix.live .nxfh .clk{display:none}
.tvcell{display:flex;flex-direction:column}
.cellbody{flex:1;min-height:0;display:flex;position:relative}
.cellbody>.nx,.cellbody>.lvpanel{flex:1;min-height:0}
.cellhd{position:relative;flex:none;display:flex;align-items:center;gap:clamp(4px,.8vh,10px);
  padding:clamp(2px,.5vh,7px) clamp(5px,.8vh,11px);background:var(--wall-panel,#0A1D28);
  border-bottom:2px solid var(--acc3);overflow:hidden;white-space:nowrap}
.cellhd .cbrand{font-family:var(--disp);font-weight:800;letter-spacing:.06em;
  font-size:clamp(7px,1.15vh,13px);color:var(--on-deep,#EAF3F7);text-transform:uppercase;flex:none;
  max-width:22%;overflow:hidden;text-overflow:ellipsis}
.cellhd .cjp{display:flex;gap:clamp(3px,.5vh,7px);min-width:0;overflow:hidden;flex:none}
.cellhd .jppanel{min-height:0;gap:clamp(3px,.6vh,8px);border-radius:5px;
  padding:clamp(1px,.3vh,4px) clamp(4px,.8vh,10px)}
.cellhd .jppanel em{font-size:clamp(6px,.95vh,11px);letter-spacing:.06em}
.cellhd .jppanel b{font-size:clamp(7px,1.1vh,13px)}
.cellhd .cmeta{display:flex;gap:clamp(4px,.7vh,10px);margin-left:auto;flex:none}
.cellhd .cmeta span{display:flex;flex-direction:column;align-items:center;line-height:1}
.cellhd .cmeta i{font-style:normal;font-family:var(--mono);font-size:clamp(4px,.62vh,7px);
  letter-spacing:.12em;color:var(--wall-dim,#7C96A4)}
.cellhd .cmeta b{font-family:var(--mono);font-weight:800;font-size:clamp(6px,1vh,12px);
  color:var(--on-deep,#EAF3F7);margin-top:1px}
.cellhd .cclk{font-family:var(--mono);font-weight:800;font-size:clamp(11px,2vh,26px);
  color:#FFE14D;letter-spacing:.02em;flex:none;padding-left:clamp(3px,.5vh,8px)}
/* the same in a multi-view cell: the minute sits in the middle of its header */
.cellhd .cclk[data-live="true"]{color:var(--acc3);position:absolute;left:50%;top:50%;
  transform:translate(-50%,-50%);padding:0;pointer-events:none}
.cellhd .rsg{flex:none}

/* Multi view is the single-league board, four times over. Same fixture
   column, same green market bands, same badges — only the sizes come down,
   and they come down from the cell's own height so all four match. */
.tvcell .nx{--gh:clamp(12px,1.9vh,24px);--hh:clamp(9px,1.4vh,18px);
  --od:clamp(7px,1.05vh,12px);--tm:clamp(7px,1.1vh,12px);--chip:clamp(5px,.8vh,9px)}
.tvcell .nxfix.live{flex:0 0 41%}
.tvcell .nxfrow{padding:0 clamp(3px,.5vh,7px);gap:clamp(2px,.4vh,5px)}
.tvcell .nxfrow .n{width:clamp(9px,1.4vh,16px);font-size:clamp(6px,.95vh,10px)}
.tvcell .nxfrow .crest{width:clamp(10px,1.6vh,17px)}
.tvcell .nxfrow .sc{font-size:clamp(8px,1.35vh,15px);min-width:clamp(32px,4.4vh,52px);
  padding:0 clamp(2px,.4vh,5px);border-width:1px}
.tvcell .nxfrow .lvbg.l{width:clamp(17px,2.6vh,27px)}
.tvcell .nxfrow .lvbg.r{width:clamp(36px,5.4vh,56px)}
/* the chip sits tight above the club so ten rows always clear a short cell */
.tvcell .nxfrow .tmw{gap:0}
.tvcell .nxfrow .tmw .lvbadge,.tvcell .nxfrow .lvbg .lvbadge{
  padding:0 3px;line-height:1.15;animation-name:lvlandsm}
@keyframes lvlandsm{
  0%  {transform:scale(1.9);opacity:0;filter:brightness(1.9)}
  12% {transform:scale(1.9);opacity:1;filter:brightness(1.9)}
  34% {transform:scale(1.9);opacity:1;filter:brightness(1.9)}
  70% {transform:scale(1.12);filter:brightness(1.15)}
  100%{transform:scale(1);opacity:1;filter:brightness(1)}}
.tvcell .nxfrow .lvpips{left:clamp(3px,.5vh,7px);right:clamp(3px,.5vh,7px);bottom:1px}
.tvcell .nxfrow .lvpips .bar{height:3px}
.tvcell .nxfix.live .nxfh{padding:0 clamp(4px,.6vh,9px);gap:clamp(4px,.6vh,9px)}
.tvcell .nxfix.live .nxfh .tag{font-size:clamp(6px,.95vh,10px)}
.tvcell .nxfix.live .nxfh .tag i{width:5px;height:5px}
.tvcell .nxfix.live .nxfh .clk{font-size:clamp(8px,1.3vh,14px)}
.tvcell .rsg{gap:3px}
.tvcell .rsg b{font-size:clamp(5px,.8vh,9px)}
.tvcell .rsg em{font-size:clamp(8px,1.25vh,13px);min-width:clamp(18px,2.6vh,30px);
  padding:0 3px;border-width:1px}
.tvcell .rsg i{font-size:clamp(4px,.65vh,8px);padding:1px 3px}
.tvcell .nxgroups b{font-size:clamp(6px,1vh,11px);letter-spacing:.04em;padding:0 2px}
.tvcell .nxhead .nxgrp span{font-size:clamp(5px,.85vh,9px);letter-spacing:0}
.tvcell .nxgrid.live .nxo b{font-size:clamp(5px,.85vh,9px)}
.tvcell .nxgrid.live .nxo i{font-size:clamp(7px,1.1vh,12px)}
.tvcell .nxgrid.live .nxgrp.one .nxo b{font-size:clamp(7px,1.1vh,12px)}
.tvcell .nxo{padding:0 1px}
.tvcell .nxfh2{font-size:clamp(6px,.95vh,10px)}
.tvcell .lvflash{padding:4px 8px;gap:7px}
.tvcell .lvflash b{font-size:clamp(8px,1.2vh,12px);padding:2px 6px}
.tvcell .lvflash span{font-size:clamp(7px,1vh,10px)}
/* the between-rounds screen inside a cell: same shape, smaller type */
.tvcell .nxfix{flex:0 0 33%}
.tvcell .nxtab{flex:0 0 26%}
.tvcell .nxtrow{gap:clamp(2px,.4vh,5px);padding:0 clamp(3px,.5vh,7px)}
.tvcell .nxtrow .p{width:clamp(9px,1.5vh,16px);font-size:clamp(5px,.85vh,9px)}
.tvcell .nxtrow .t{font-size:clamp(6px,1vh,11px)}
.tvcell .nxtrow .pt{font-size:clamp(6px,1vh,11px);min-width:clamp(9px,1.5vh,16px)}
.tvcell .nxfm{gap:1px}
.tvcell .nxfm i{width:clamp(6px,1.1vh,12px);height:clamp(6px,1.1vh,12px);
  line-height:clamp(6px,1.1vh,12px);font-size:clamp(4px,.7vh,8px);border-radius:2px}
.tvcell .nxgrid.nxcs{--od:clamp(7px,1.2vh,14px)}
.tvcell .rshead{height:var(--gh)}
.tvcell .rshead b{font-size:clamp(6px,1vh,11px);letter-spacing:.05em}
.tvcell .rshead .pill{font-size:clamp(4px,.72vh,8px);padding:1px 5px}
.tvcell .rsc{font-size:clamp(6px,1vh,11px);padding:clamp(1px,.25vh,4px) 1px}
.tvcell .rsline.lab .rsc{font-size:clamp(5px,.8vh,9px)}
.tvcell .nxempty{font-size:clamp(7px,1.1vh,12px);padding:10px}
/* --- game tabs --- */
.tvtabs{display:flex;align-items:stretch;gap:0;background:var(--wall-bg-deep,#040E14);border-bottom:1px solid var(--wall-panel-2,#12303F);overflow:hidden}
.tvtab{flex:1;padding:clamp(8px,1.1vh,14px) 6px;border:0;background:transparent;color:var(--wall-dim,#7C96A4);cursor:pointer;
  font-family:var(--disp);font-weight:700;font-size:clamp(10px,1.05vw,15px);letter-spacing:.12em;
  text-transform:uppercase;border-bottom:3px solid transparent;white-space:nowrap;
  text-overflow:ellipsis;overflow:hidden}
.tvtab:hover{color:#BBD3DE;background:rgba(255,255,255,.04)}
.tvtab[data-on="true"]{color:var(--on-strong,#FFFFFF);background:linear-gradient(180deg,var(--wall-accent-wash,rgba(0,226,122,.16)),var(--wall-accent-wash2,rgba(0,226,122,.03)));
  border-bottom-color:var(--acc3)}
.tvtab i{font-style:normal;display:block;font-size:.66em;letter-spacing:.14em;color:var(--wall-dim,#5C7A8A)}
/* --- jackpot + round bar --- */
/* everything in the header sits on one centre line */
.tvhead{position:relative;display:flex;align-items:center;gap:clamp(8px,1.1vw,20px);
  padding:clamp(6px,.9vh,12px) clamp(10px,1.2vw,22px);
  background:var(--wall-panel,#0A1D28);border-bottom:3px solid var(--acc3);flex-wrap:nowrap;overflow:hidden}
.tvbrand{display:flex;align-items:center;font-weight:800;font-size:clamp(13px,1.5vw,30px);
  letter-spacing:.02em;white-space:nowrap;color:var(--on-deep,#EAF3F7)}
.tvbrand span{color:var(--acc3)}
/* The pots sit in the middle of the header: an automatic margin on BOTH
   sides splits the spare room evenly, so they float centred between the
   round-specials counter on the left and the clock on the right. The padding
   is the smallest gap they are ever allowed to leave on either side. */
.tvjp{display:flex;align-items:center;gap:clamp(6px,.8vw,14px);white-space:nowrap;min-width:0;
  margin-left:auto;margin-right:auto;padding:0 clamp(10px,1.6vw,36px)}
/* While the scores are running the pots step aside — the header carries the
   round-specials count, the season, the week and the match minute instead. */
.tvhead[data-mode="live"] .tvjp{display:none}
.tvhead[data-mode="live"] .tvrw{margin-left:auto}
/* the pots as big panels, the way a wall screen shows them */
.jppanel{display:flex;align-items:center;gap:clamp(7px,1vw,20px);border-radius:8px;
  min-height:var(--hdbar);padding:0 clamp(9px,1.2vw,26px);
  background:linear-gradient(100deg,#8A5A0B,#E6A62A)}
/* a shade brighter than the first cut, so the dark label reads on the metal as
   well as it does on gold (it sat at about 1.6:1 on the old bronze) */
.jppanel[data-t="silver"]{background:linear-gradient(100deg,#66727D,#B4BFC8)}
.jppanel[data-t="bronze"]{background:linear-gradient(100deg,#93501F,#C97A38)}
.jppanel em{font-style:normal;font-family:var(--disp);font-weight:800;
  font-size:clamp(9px,1.05vw,24px);letter-spacing:.1em;color:#1A1000}
.jppanel b{font-family:var(--mono);font-weight:800;font-size:clamp(11px,1.35vw,32px);color:var(--on-strong,#FFFFFF);
  text-shadow:0 1px 2px rgba(0,0,0,.35)}
.tvrw{display:flex;align-items:center;gap:clamp(7px,.9vw,16px);white-space:nowrap}
.tvjp:empty{padding:0}
.tvjp:empty+.tvrw{margin-left:auto}
.tvrwl{display:flex;align-items:center;gap:clamp(4px,.5vw,10px)}
.tvrw .k{font-family:var(--mono);font-size:clamp(8px,.78vw,15px);letter-spacing:.16em;color:#9FB6C2}
.tvrw .ph{max-width:clamp(52px,6vw,120px);white-space:normal;line-height:1.2;text-align:right}
.tvrw .ph[data-live="true"]{max-width:none;color:var(--acc3);font-weight:800;
  font-size:clamp(11px,1.35vw,28px);letter-spacing:.14em;padding-right:clamp(4px,.6vw,12px)}
.tvrw .v{font-family:var(--mono);font-weight:800;font-size:clamp(12px,1.35vw,28px);color:var(--on-deep,#EAF3F7);
  background:var(--wall-bg-deep,#00131C);border:1.5px solid var(--wall-line,#1D4256);border-radius:7px;padding:1px clamp(7px,.9vw,18px)}
.tvtime{font-family:var(--mono);font-weight:800;font-size:clamp(22px,3.4vw,68px);line-height:1.05;
  color:#FFE14D;letter-spacing:.03em;padding:0 clamp(6px,.7vw,14px)}
/* The match minute stands in the middle of the wall, dead centre of the
   header, with the brand and the goal count to its left and the season and
   week to its right. Taking it out of the flow is what makes it centre on
   the screen rather than on whatever room the two sides happen to leave. */
.tvtime[data-live="true"]{color:var(--acc3);position:absolute;left:50%;top:50%;
  transform:translate(-50%,-50%);pointer-events:none}
/* --- the board fills the rest --- */
.tvmain{flex:1;display:flex;flex-direction:column;min-height:0;position:relative}
.tvmain .lvpanel{position:static;display:flex;flex:1;min-height:0;background:var(--wall-bg,#07141C)}
/* multi view: every league at once */
.tvmulti{flex:1;display:grid;grid-template-columns:1fr 1fr;grid-template-rows:1fr 1fr;gap:8px;
  padding:8px;min-height:0;background:var(--wall-bg,#07141C)}
.tvcell{display:flex;flex-direction:column;min-height:0;border:1px solid #143343;border-radius:8px;
  overflow:hidden;position:relative}
.tvcell .lvpanel{position:static;display:flex;flex:1;min-height:0}
/* --- the winners ticker --- */
.tvfoot{padding:clamp(4px,.7vh,9px) clamp(9px,1.1vw,18px);background:var(--wall-bg-deep,#040E14);border-top:1px solid var(--wall-panel-2,#12303F);
  display:flex;gap:clamp(9px,1.2vw,20px);align-items:stretch;flex:none;overflow:hidden;
  font-family:var(--mono);font-size:clamp(8px,.78vw,12px);letter-spacing:.11em;color:var(--wall-dim,#7C96A4)}
@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}