:root{
  --bg:#0f0e0d;--bg2:#151412;--card:#1c1a18;--card2:#22201d;--line:#272320;--line2:#272320;--tx:#f0ebe3;--dim:#a39a8e;
  --red:#c63b2d;--blk:#1a1a1a;--grn:#1f8a4c;--felt:#17653f;--felt2:#12522f;
  --gold:#e8b931;--gold2:#f6d56a;--ok:#34d27b;--bad:#ef5350;--acc:#1f6b45;
  --r:3px;--h:28px;
}
html[data-theme=midnight]{--bg:#0b0d10;--bg2:#101318;--card:#161a20;--card2:#1c2129;--line:#232831;--line2:#232831;--dim:#9aa2ad;--cb:#0f1216;--ct:#1a1f26;--well:#07090c;--th:#181c22}
#bShare,#bGear{width:22px;height:22px;padding:0;display:inline-flex;align-items:center;justify-content:center;background:transparent;border:1px solid #4a443c;border-radius:2px;color:#a39a8e;cursor:pointer}
#bShare:hover,#bGear:hover,#bGear.on{color:var(--tx);border-color:#7a7168}
body:not(.m) #bGear,body:not(.m) #bShare{position:relative;top:-2px}   /* 22px gear centred on the 18px title line, layout unchanged */
#bXlsx{width:18px;height:18px;padding:0;display:inline-flex;align-items:center;justify-content:center;background:transparent;border:none;color:#908880;cursor:pointer;flex:none;margin-right:-4px}
#bXlsx:hover{color:#ccc4bc}
body.m #bXlsx,body.m #bXlsx svg{width:13px;height:13px}   /* phone header is 13px high: icon must fit */
body:not(.m) .phd{overflow:visible}
body:not(.m) #bXlsx{position:relative;top:1px}   /* desktop: icon 1px lower, header must not clip it */
#gearPop{position:absolute;right:0;top:21px;z-index:50;box-sizing:content-box;width:130px;background:var(--card2);border:1px solid #3a352f;border-radius:2px;padding:7px;box-shadow:0 6px 18px rgba(0,0,0,.5);text-transform:none;letter-spacing:0;font-weight:400;text-align:left}
#gearPop .gl{font-size:9.5px;font-weight:700;letter-spacing:.09em;text-transform:uppercase;color:#bdb5a9;margin:0 0 4px;line-height:1.2}
#gearPop .sw{display:flex;gap:5px;margin-bottom:8px}
#gearPop .sw button{flex:none;width:22px;min-width:0;height:16px;padding:0;border:1px solid #4a443c;border-radius:2px;cursor:pointer}
#gearPop .sw button.on{outline:var(--lw,1px) solid #74f2aa;outline-offset:1px}   /* 11-25: 1 screen px (was 2 px) */
#gearPop .th{display:flex;gap:4px;margin-bottom:8px}
#gearPop .th button{flex:1;min-width:0;height:18px;padding:0;font-size:10.5px;background:#2e2a26;color:#ccc8c1;border:1px solid transparent;border-radius:2px;cursor:pointer}
#gearPop .th button.on{border-color:#74f2aa;background:#3a3630;color:#74f2aa}
#gearPop #bResetSet{display:block;width:100%;min-width:0;box-sizing:border-box;height:19px;padding:0;margin:0;font-size:10.5px;background:#2e2a26;color:#a09888;border:1px solid #3a352f;border-radius:2px;cursor:pointer}
#gearPop #bResetSet.arm{background:#6b2620;color:#f0ebe3}
#gearPop .gsep{border-top:1px solid #3a352f;margin:0 0 7px}
#gearPop .snd{display:flex;align-items:center;gap:7px;height:16px;margin-bottom:8px}
#gearPop .snd input[type=checkbox]{margin:0;width:14px;height:14px;flex:none;cursor:pointer}
#sVol{flex:1;min-width:0;height:16px;margin:0;padding:0;-webkit-appearance:none;appearance:none;background:transparent;cursor:pointer}
#sVol:disabled{opacity:.35;cursor:default}
#gearPop .sndc.off{opacity:.35}
body:not(.m) #pStat{padding-top:1px!important}
body:not(.m) #pStat>.grp.ptl{display:flex;gap:0;padding:0;margin:-1px -2px 4px!important}
body.m[data-tab=res] .rsw{gap:0}   /* Stats / Numbers: folder tabs, the open one is one piece with the panel under it */
#pStat .ptl .svb,body.m[data-tab=res] .rsw button{flex:1;display:block;width:auto;min-width:0;height:auto;margin:0;padding:3px 0;font:inherit;font-weight:700;letter-spacing:.09em;text-transform:uppercase;line-height:17px;color:#7d756a;background:var(--well,#0a0908)!important;border:0;border-radius:3px 3px 0 0;box-shadow:inset 0 2px 4px rgba(0,0,0,.9)!important;cursor:pointer}
#pStat .ptl .svb.on,body.m[data-tab=res] .rsw button.on{color:#f0ebe3;background:none!important;box-shadow:none!important}
#pStat .ptl .svb,body.m[data-tab=res] .rsw button{position:relative}
#pStat .ptl .svb:not(.on):first-child,body.m[data-tab=res] .rsw button:not(.on):first-child{border-radius:3px 0 0 0}
#pStat .ptl .svb:not(.on):last-child,body.m[data-tab=res] .rsw button:not(.on):last-child{border-radius:0 3px 0 0}
#pStat .ptl .svb:not(.on)::after,body.m[data-tab=res] .rsw button:not(.on)::after{content:"";position:absolute;top:0;width:6px;height:6px;pointer-events:none}
#pStat .ptl .svb:not(.on):first-child::after,body.m[data-tab=res] .rsw button:not(.on):first-child::after{right:-6px;background:radial-gradient(circle at 100% 100%,transparent 5.5px,var(--well,#0a0908) 6px)}
#pStat .ptl .svb:not(.on):last-child::after,body.m[data-tab=res] .rsw button:not(.on):last-child::after{left:-6px;background:radial-gradient(circle at 0 100%,transparent 5.5px,var(--well,#0a0908) 6px)}   /* the open tab gets a round top corner in the middle too: the sunk part wraps around it */
#pStat .ptl .svb:not(.on):hover,body.m[data-tab=res] .rsw button:not(.on):hover{color:#b5ada1}
body.m[data-tab=res] .rsw button{height:27px;padding:0;font-size:13px;line-height:27px}
body[data-sv=num] #pStat>:not(.ptl):not(#pNum){display:none!important}
body:not([data-sv=num]) #pNum{display:none!important}
#pNum .grp:first-child{margin-top:-1px}
#pNum #nLast{margin-bottom:1px}
#pNum .nl{display:flex;gap:3px;margin:0 0 2px}
#pNum .nl2{flex-wrap:wrap}
#pNum .nl2 .nb{flex:0 0 calc(10% - 2.7px)}
#pNum .nb{flex:1;min-width:0;display:flex;flex-direction:column;align-items:center}
#pNum .nb i{display:block;width:100%;height:15px;line-height:15px;text-align:center;font-style:normal;font-size:10.5px;font-weight:700;color:#d6d2cc;border-radius:2px}
#pNum .nb i.red{background:var(--red)}
#pNum .nb i.black{background:var(--blk)}
#pNum .nb i.green{background:var(--grn)}
#pNum .nb i.e{background:rgba(0,0,0,.18);box-shadow:inset 0 1px 1px rgba(0,0,0,.35)}
#pNum .nb small{font-size:9.5px;line-height:10px;color:var(--dim)}
body.m #pNum .nb small{font-size:10.5px;line-height:11px}
#pNum .grp{margin:3px 0 1px}
#pNum .nl{margin-bottom:1px}
#pNum .row{height:13.5px;white-space:nowrap}
#pNum .row>span{flex:none;margin-right:6px}
#pNum .row>b{min-width:0;overflow:hidden;text-overflow:ellipsis}
#pNum .rr{color:#74f2aa;text-shadow:0 0 6px rgba(116,242,170,.35)}
#pNum .grp.hc{display:flex;justify-content:space-between}
#pNum .grp.hc>span:last-child{text-align:right}
#pNum .hcrow .nb{flex:1 1 0}
#pNum .hcs{display:block}
#nHC{position:relative;padding-bottom:3px;margin-bottom:0!important}
#nHC::after{content:"";position:absolute;left:0;right:0;bottom:0;height:2px;border-radius:1px;background:linear-gradient(90deg,#5aa9e6 0%,rgba(90,169,230,0) 50%,rgba(232,120,58,0) 50%,#e8783a 100%);opacity:.8}
#pNum .grp.hc .hcC{color:#8cc4ee}
#pNum .grp.hc .hcH{color:#f0a070}
#pNum .gs{text-transform:none;letter-spacing:0;font-weight:400;color:var(--dim)}
#pNum .nh{font-style:normal;font-size:11px;color:var(--dim);line-height:16px}
body.m #pNum{grid-column:1/-1}
body.m #pNum .row{height:15px}
#gearPop .sndc{margin-bottom:8px}
#gearPop .sr{display:flex;align-items:center;gap:4px}
#gearPop .sr+.sr{margin-top:4px}
#gearPop .sr>span{flex:none;width:58px;font-size:10.5px;color:#a09888;white-space:nowrap}
#gearPop .sr .th{flex:1;margin:0}
#sVol::-webkit-slider-runnable-track{height:3px;border-radius:2px;background:linear-gradient(#74f2aa,#74f2aa) 0 0/var(--v,50%) 100% no-repeat,#3a352f}
#sVol::-webkit-slider-thumb{-webkit-appearance:none;width:10px;height:10px;margin-top:-3.5px;border:0;border-radius:50%;background:#d6d2cc}
#sVol::-moz-range-track{height:3px;border-radius:2px;background:#3a352f}
#sVol::-moz-range-progress{height:3px;border-radius:2px;background:#74f2aa}
#sVol::-moz-range-thumb{width:10px;height:10px;border:0;border-radius:50%;background:#d6d2cc}
*{box-sizing:border-box}
body{margin:0;background-attachment:fixed;background:radial-gradient(ellipse 175% 175% at 50% 10%,rgba(var(--fr,18,82,47),.5) 0%,rgba(var(--fr,18,82,47),.28) 30%,rgba(var(--fr,18,82,47),.1) 60%,transparent 85%),var(--bg);color:var(--tx);font:13px/1.35 "Inter",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;font-variant-numeric:tabular-nums;overflow:hidden;background-attachment:fixed}
html,body{height:100%}
.wrap{position:absolute;left:0;top:0;transform-origin:0 0;display:grid;grid-template-columns:var(--slot,160px) minmax(0,1fr) var(--slot,160px);gap:8px;padding:0 8px 8px;overflow:hidden}
.inner{grid-column:2;grid-row:1;display:flex;flex-direction:column;min-width:0;min-height:0}
.inner>header,.inner>.spinbar{display:grid;grid-template-columns:auto minmax(0,1fr);gap:16px;align-items:center;width:100%;padding:5px}
.sideSlot{margin-top:6px;text-align:center;line-height:1.6;color:#5e574e}
header.hd{padding:4px 0 4px;display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.brand h1{margin:0;font-size:16px;letter-spacing:.2px;font-weight:700}
.brand h1 span{color:#c8bfb2}
.brand h1 a{color:inherit;text-decoration:none;cursor:pointer}
.brand h1 a:hover{color:#f0ebe3}
.brand h1{font-family:"Sora",system-ui,sans-serif;font-weight:600;font-size:17px;letter-spacing:0}
body:not(.m) header.hd{padding:4px 0 2px 8px}
body:not(.m) .brand h1{line-height:1.2}
.brand h1 .slogan{vertical-align:baseline;margin-left:14px;font-family:"Sora",system-ui,sans-serif;font-style:normal;font-weight:400;font-size:13px;letter-spacing:0;color:var(--dim)}
body.m .brand h1{display:flex;align-items:baseline;white-space:nowrap;width:100%}
body.m .brand{flex:1;min-width:0;padding-right:5px}
body.m .brand h1>a{flex:none}
body.m .brand h1 .slogan{flex:1 1 0;min-width:0;display:flex;justify-content:flex-start;margin:0;padding-left:6px;font-size:11px}
body.m .brand h1 .slogan>span{flex:none;color:inherit;transform:scaleX(.82);transform-origin:left center}
@media (max-width:380px){
  body.m .brand h1 .slogan>span{transform:scaleX(.7)}
  }   /* phone: slogan at the right end of the title row */   /* grey slogan after the title (desktop) */   /* the name is the home link (people click logos to reset a page) */
.brand p{display:none}
.foot{flex:none;text-align:center;font-size:11px;line-height:1.3;color:#7a7166;padding:4px 0 0}
.foot b{color:#a39a8e}
.slot{border:1px dashed var(--line);border-radius:6px;color:#5e574e;text-align:center;font-size:11px;display:flex;align-items:center;justify-content:center;background:rgba(255,255,255,.015)}
.card{background:linear-gradient(0deg,var(--cb,#121110),var(--ct,#1f1d1a));border:1px solid var(--line2);border-radius:var(--r);padding:8px;box-shadow:0 3px 10px rgba(0,0,0,.2)}
.card h2{font-size:13px;margin:0 2px 4px;text-transform:uppercase;letter-spacing:.09em;color:var(--dim);font-weight:700;text-align:center}

/* spin panel */
.spinbar{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:10px;align-items:center;width:100%;padding:5px}
.tc{display:flex;align-items:center;gap:5px}
.spcol{display:flex;flex-direction:column;gap:5px}
.tl{line-height:1.2}
#num{flex:none;width:42px;height:42px;border-radius:0;display:flex;align-items:center;justify-content:center;font-size:20px;font-weight:800;background:var(--grn);border:2px solid transparent;border-radius:3px;box-shadow:inset 0 3px 8px rgba(0,0,0,.8),inset 0 0 0 1px rgba(0,0,0,.45),0 1px 0 rgba(255,240,220,.07)}
#num.red{background:var(--red)}
#num.black{background:var(--blk)}
#num.green{background:var(--grn)}
body #num.red,body #num.black,body #num.green{background-image:radial-gradient(circle at 50% 50%,rgba(255,212,135,.20) 0%,rgba(255,212,135,.07) 32%,rgba(255,212,135,0) 58%);text-shadow:0 0 7px rgba(240,235,227,.32),0 1px 1px rgba(0,0,0,.35)}   /* soft lamp behind the winning number, light stays inside the box */
.ctl{display:flex;gap:5px;flex-wrap:wrap;align-items:center}
.ctl>*{margin:0}
.hist{display:flex;gap:4px;flex-wrap:nowrap;overflow:hidden;min-width:0;align-self:center;justify-content:flex-start;flex-direction:row}
.hist span{flex:none;min-width:22px;text-align:center;padding:1px 3px;border-radius:4px;font-size:11.5px;font-weight:600}
.hist .red{background:var(--red)}
.hist .black{background:var(--blk);border:1px solid #3a352f}
.hist .green{background:var(--grn)}
button,select,input[type=text],input[type=number]{height:var(--h);line-height:1;font-family:inherit;vertical-align:middle}
button{display:inline-flex;align-items:center;justify-content:center;background:var(--acc);color:#d9d6d0;border:0;border-radius:2px;padding:0 11px;font-size:12.5px;font-weight:600;cursor:pointer}
button:hover{filter:brightness(1.12)}
button.gold{background:linear-gradient(180deg,#2aa05c,#1f8a4c);color:#f0ebe3}
button.sec{background:#2e2a26;color:#ccc8c1}   /* button labels 15 % quieter, like the status values */
button.sec.stop,button.stop{background:#c0392b;color:#f0ebe3}
button:disabled{opacity:.4;cursor:default}
button.gold:disabled{background:#3d3833;color:#a39a8e;opacity:1}
select,input[type=number],input[type=text]{background-color:var(--well,#0a0908);color:var(--tx);border:1px solid transparent;border-radius:3px;box-shadow:inset 0 1px 2px rgba(0,0,0,.85),0 1px 0 rgba(255,240,220,.07);padding:0 6px;font-size:12.5px}
input[type=number],input[type=text]{width:78px}
select{max-width:100%}
#sStrat{max-width:none}
.sh2{margin-top:8px}
.plist .pre{height:19px;font-size:11.5px}
.plist .pre .tipl{cursor:pointer}
.plist .pgrp{margin:4px 0 1px}
.plist .pre.ok{color:#4c9955}
.plist .pre.no{color:#5e584f;cursor:not-allowed;opacity:1;text-shadow:none}
.plist .pre.no:hover{color:#5e584f}   /* 11-26: plain grey, no engraved shadow */
.plist .pre.on{color:#8ff59a}
.sdesc .sdn{height:15px;line-height:15px;margin:0 0 2px;font-size:12.5px;font-weight:700;color:var(--tx);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sdesc .sdt{height:2.6em;overflow:hidden}
body:not(.m) .side .presets{gap:1px}
body:not(.m) .side .pre{height:18px}
body:not(.m) .plist .pre{height:16px}
body:not(.m) .plist>.pgrp{margin-top:2px}
body:not(.m) .presets>.pgrp{margin:3px 0 1px;padding-top:2px}
body:not(.m) .sh2{margin-top:4px}
body:not(.m) .side .infoRow{padding-top:3px}   /* progression list under the bets: green = works with the bets on the table, red = 1:1 bets only (not selectable), lit = chosen */
#sStrat option.ok{color:#5fbf6a}
#sStrat option.no{color:#e0554a}
.limc{display:grid;grid-template-columns:1fr 1fr;gap:4px 10px;margin:0 0 4px}
.limc label{display:flex;justify-content:space-between;align-items:center;gap:4px;font-size:10.5px;color:#a39a8e}
.limc input{width:56px;height:22px;font-size:11px}
.modal{position:absolute;inset:0;z-index:100;display:flex;align-items:center;justify-content:center;background:rgba(8,7,6,.78)}
.modal[hidden]{display:none}
.mcbox{width:780px;max-width:94%;max-height:92%;overflow:auto;background:var(--card);border:1px solid #4a443c;padding:12px 14px}
.mch{display:flex;justify-content:space-between;align-items:center;margin-bottom:4px;font-size:14px}
.mcbar{height:6px;background:#0d0c0b;margin:8px 0}
.mcbar i{display:block;height:100%;background:linear-gradient(90deg,#1f8a4c,#34d27b)}
.kpis{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin:8px 0}
.kpi{background:var(--bg2);border:1px solid var(--line);padding:6px 8px}
.kpi small{display:block;color:#a39a8e;font-size:9.5px;text-transform:uppercase;letter-spacing:.06em;margin-bottom:2px}
.kpi b{font-size:15px}
.kpi em{display:block;font-style:normal;color:#a39a8e;font-size:10.5px;margin-top:1px}
.hb{display:flex;align-items:center;gap:6px;font-size:10.5px;margin:1px 0}
.hb .l{width:170px;text-align:right;color:#a39a8e;white-space:nowrap}
.hb i{display:block;height:11px}
.hb .v{color:#a39a8e;width:50px}
#bn,#mcN{width:92px}
.selU{position:relative;display:inline-flex;flex:none}
.selU>.u{position:absolute;top:0;bottom:0;right:21px;transform:translateY(-1px);width:32px;display:flex;align-items:center;justify-content:flex-end;font-size:12.5px;color:#ccc8c1;pointer-events:none}
#mcN+.u{transform:translateY(-2px)}   /* 11-26: number at the left, unit word in one column next to the arrow */
.ctl .cnt{white-space:nowrap}
#bBulk,#bMC{width:112px}
.grp{margin:6px 0 3px;font-size:10px;font-weight:700;letter-spacing:.09em;text-transform:uppercase;color:#bdb5a9}   /* group headers: same tone as the Bets groups */
.grp.first{margin-top:2px}
input:disabled,select:disabled{opacity:.4}
.pc{display:flex;align-items:center;justify-content:flex-end;gap:6px;width:146px;flex:none}
.pc input[type=checkbox]{margin:0;width:15px;height:15px;flex:none}
.pc select,.pc input[type=text],.pc input[type=number]{width:124px;max-width:124px}
.fld select,.fld input[type=number],.fld input[type=text]{width:146px;max-width:146px;height:23px;flex:none}
select.full{width:100%;max-width:none;height:24px;margin:0 0 3px}
.cnt{color:var(--dim);font-size:11.5px}
.cnt b{color:var(--tx)}

/* strategy sidebar */
.presets{display:flex;flex-direction:column;gap:2px}
.side{padding:6px;overflow:auto;min-height:0;display:flex;flex-direction:column}
body:not(.m) #num{width:59px;height:59px;font-size:30px;letter-spacing:-.5px}
body:not(.m) #bSpin,body:not(.m) #bAuto,body:not(.m) #bReset,body:not(.m) #bClear{font-size:13.5px}
body:not(.m) #spd{font-size:13px;padding:0 16px 0 6px;background-position:right 3px center}   /* top bar: the winning number fills its box, button labels a step bigger */
body:not(.m) #bSpin,body:not(.m) #bAuto,body:not(.m) #spd,body:not(.m) #bReset,body:not(.m) #bClear{width:80px;max-width:80px;flex:none;padding:0 6px;white-space:nowrap}
body:not(.m) #spd{width:96px;max-width:96px;height:27.82px;margin:-1px 0;padding:0 18px 0 7px;position:relative;top:-.1px;background-position:right 4px center}   /* "100 spins/s" clear of the arrow */   /* top bar: all controls the same width */
body:not(.m) .side{padding-left:2px;padding-right:2px;padding-bottom:2px;padding-top:0}
body:not(.m) .presets>.pgrp{position:relative}
body:not(.m) .presets>.pgrp{border-top:1px solid var(--line2);padding-top:3px;margin:5px 0 2px;line-height:1.35}
body:not(.m) .presets>.pgrp:first-child{margin-top:0}   /* same as Settings: hairline, 3 px, 7 px between blocks (5 + 2 px gap) */
body:not(.m) .presets>.pgrp::before{content:"";position:absolute;left:-4px;right:0;top:0;height:64px;background:linear-gradient(180deg,rgba(255,240,220,.045),rgba(255,240,220,0));pointer-events:none}   /* Bets groups: same hairline + top fade as the Settings blocks */
body:not(.m) .side .pgrp{padding-left:4px}   /* Bets buttons 2 px from the panel edge like the progress table; group titles keep a small inset */
.col{display:flex;flex-direction:column;min-height:0}
.col>.card.sec{flex:1;min-height:0;display:flex;flex-direction:column}
.col2{min-height:0;display:flex;flex-direction:column}
.col2>.card{flex:1;min-height:0;overflow:auto}
body:not(.m) .col2>.card{display:flex;flex-direction:column}
body:not(.m) .col2>.card{padding:0 2px 2px}
body:not(.m) .card h2,body:not(.m) .sh{margin-bottom:3px}   /* panel titles: 3 px above and below */   /* Settings: frames (fields, buttons, boxes) 2 px from the edge like Bets and the table; texts keep a 4 px inset */
body:not(.m) .col2 .grp,body:not(.m) .col2 .fld,body:not(.m) .col2 label.opt,body:not(.m) .col2 .bank,body:not(.m) .col2 .st{padding-left:4px}
#pSet .grp.sub{font-size:9.5px;color:#9a9286;letter-spacing:.06em}
body:not(.m) .col2 .row{padding:0 4px}
body:not(.m) #bCsv{height:21px;position:relative;top:-2px}
body:not(.m) #bn,body:not(.m) #mcN,body:not(.m) #iSeed{height:21px}
body:not(.m) #bn,body:not(.m) #mcN{width:104px;max-width:104px;flex:none}   /* number boxes the same height as the Settings fields above */
body:not(.m) #bBulk,body:not(.m) #bMC,body:not(.m) #bCsv{width:112px;flex:none;height:21px}
body:not(.m) #pStat .ctl{margin-top:4px!important}
body:not(.m) #pStat .grp+.ctl{margin-top:2px!important}
body:not(.m) #pStat #csvRow{margin-top:6px!important}
body:not(.m) #bulkRes:empty{display:none}   /* Tests: the first row (Quick test) 2 px higher, Download CSV stays where it was */
#iBank,#iEvery{-moz-appearance:textfield;appearance:textfield}
#iBank::-webkit-inner-spin-button,#iBank::-webkit-outer-spin-button,#iEvery::-webkit-inner-spin-button,#iEvery::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
select,input.hasSug{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5'%3E%3Cpath d='M0 0h8L4 5z' fill='%23a39a8e'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 5px center;padding-right:22px}
select{-webkit-appearance:none;-moz-appearance:none;appearance:none}
select,input{color-scheme:dark}
select:focus,input:focus,button:focus{outline:none}
input[type=text]:focus,input[type=number]:focus{border-color:transparent;background-color:#12100e}
button:focus-visible{box-shadow:0 0 0 1px #5a5248}
option{background:#0e0d0c;color:#f0ebe3}
option:checked{background:#2a2622 linear-gradient(#2a2622,#2a2622);color:#c9dd6a}   /* no browser-blue: own warm focus edge, dark native lists */   /* one filled triangle everywhere: selects and fields with suggestions */
.sugW{position:relative}
.sug{display:none;position:absolute;right:0;top:100%;margin-top:1px;width:var(--sw,146px);z-index:30;background:#0e0d0c;border:1px solid var(--line);box-shadow:0 6px 16px rgba(0,0,0,.5)}
.sug.on{display:block}
.sug b{display:flex;justify-content:space-between;gap:6px;height:18px;line-height:18px;padding:0 6px;font-weight:400;font-size:12.5px;color:var(--tx);cursor:pointer}
.sug b:hover{background:#2a2622}
.sug.up{top:auto;bottom:100%;margin:0 0 1px}
.selBox{right:auto;margin:0;overflow-y:auto}
.sug em{display:block;padding:5px 6px 2px;font-style:normal;font-size:10px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#8f8579}
.sug b.cur{color:var(--tx)}
.sug b.cur{background-image:linear-gradient(90deg,rgba(52,210,123,.40),rgba(52,210,123,0) 100%)}   /* chosen value: the same green fade as the Bets/Strategies rows */
.sug i{font-style:normal;color:#8f8579}   /* short form (10k, 1M, 20%) at the right edge */   /* Bank: suggestions under the field while editing */   /* Tests: the same 4 px between all rows; the quick-test result line only when there is one */
body:not(.m) .seedL{width:85px;flex:none;padding-left:4px;box-sizing:border-box;color:var(--dim);font-size:12px}
body:not(.m) #iSeed{width:76px;max-width:76px;flex:none}   /* Seed: label in the action column, the number under 100 / 10 000, the switch after it */   /* actions in one column on the left, their number and word after them */   /* Tests: compact number boxes, the two buttons equally wide, all buttons 26 px */   /* same height as the Bets buttons: the same 2 px gap to the panel bottom as the chart */   /* Settings panel: compact settings on top, the status part spreads down to the panel bottom */
body:not(.m) #pSet .fld{height:21px;margin-bottom:2px}
body:not(.m) #pSet .fld select,body:not(.m) #pSet .fld input[type=number],body:not(.m) #pSet .fld input[type=text]{height:21px}
body:not(.m) #pSet .grp{margin:5px 0 2px}
body:not(.m) #pSet>.grp{border-top:0;padding-top:1px;margin-top:6px}
body:not(.m) #pSet>.grp.first{margin-top:0}   /* settings: plain labels like the Bets/Strategies groups, no extra panels */
body:not(.m) #pSet>.grp,body:not(.m) #pStat{position:relative}
body:not(.m) #pSet>.grp::before,body:not(.m) #pStat::before{content:"";position:absolute;left:-4px;right:0;top:0;height:64px;background:linear-gradient(180deg,rgba(255,240,220,.045),rgba(255,240,220,0));pointer-events:none}   /* each block: a faint light at the top, fading down (like the chart) */   /* Game / Money / Betting / Progression: four blocks, the same hairline as above Status */
body:not(.m) #pStat{margin-top:7px;border-top:0;padding-top:4px;display:flex;flex-direction:column;flex:0 1 auto;min-height:0}
body:not(.m) #pStat>*{flex:none}
body:not(.m) #pStat{flex:1 1 auto}
body:not(.m) #pStat>.tgrp{margin-top:auto}   /* tests block sits at the panel bottom, in line with the left buttons */
body:not(.m) #pStat .row{flex:0 1 15px;min-height:12px;height:auto}
body:not(.m) #pSet{flex:none}
body:not(.m) .col2>.card{overflow:hidden}   /* never a scrollbar: when the settings grow (profit lock, long description) the status rows give a few px each   /* status block sits at the panel bottom, a hairline and free space part it from the settings */
.sh{font-size:13px;text-transform:uppercase;letter-spacing:.09em;color:var(--dim);font-weight:700;text-align:center;margin:0 2px 4px}
body:not(.m) .sh2{margin-top:0}
/* clean panels: every panel is exactly ONE background layer (base + top light in the same paint), no overlays, no hairlines, no frames */
body:not(.m) .side,body:not(.m) .col2>.card{background:none;box-shadow:none}
body:not(.m) .pblock,body:not(.m) #pStat{background:linear-gradient(180deg,rgba(255,240,220,.036) 0px,rgba(255,240,220,.0203) 16px,rgba(255,240,220,.009) 32px,rgba(255,240,220,.00225) 48px,rgba(255,240,220,0) 64px),linear-gradient(0deg,var(--cb,#121110),var(--ct,#1f1d1a));background-repeat:no-repeat;border-radius:3px;margin-left:-2px;margin-right:-2px;padding-left:2px;padding-right:2px}
body:not(.m) .pblock{position:relative;padding-top:5px}
body:not(.m) #pStat::before{content:none}
body:not(.m) .pblock+.pblock{margin-top:0}
/* no card frames: the panels are separated by the page background only, so there is no double edge anywhere */
body:not(.m) .main .card{border:0}
body:not(.m) .side .presets>.pgrp{border-top:0;padding-top:1px;margin:6px 0 2px}
body:not(.m) .side .presets>.pgrp::before{content:none}
body.m .pblock{display:contents}
/* panels fill height instead of ending at last element */
body:not(.m) .side .pblock:first-of-type{padding-bottom:24px}
body:not(.m) .side .pblock:nth-of-type(2){flex:1;min-height:0;overflow:auto}
body:not(.m) .col2 .pblock{flex:none;height:454.6px}   /* 11-26: 15 px less so the last Numbers row (Zero drought) fits */
body:not(.m) #pSet>.grp::before{content:none}   /* no per-group light: the Settings panel stays one calm surface */
body:not(.m) #pStat{margin-top:0;flex:1 1 auto}   /* Stats: top fixed under Settings, background stretches down to the panel bottom */
body:not(.m) .col2>.card{overflow:hidden}
.pgrp{margin:5px 0 1px;font-size:10px;line-height:1.2;color:#bdb5a9;font-weight:700;text-transform:uppercase;letter-spacing:.09em}
.pgrp.hl{color:#ece6dc}
.pbody{display:flex;flex-direction:column;gap:2px}
.pstep{display:flex;gap:2px;align-items:stretch}
.pstep .pre{flex:1}
.pstep #evN{width:64px;max-width:64px;height:22px;flex:none}
body:not(.m) .pstep #evN{height:20px}   /* desktop: same height as the Settings fields */
.pstep .sb{width:22px;height:22px;padding:0;background:#1a1816;border:1px solid #211e1b;color:#a39a8e;border-radius:1px;font-size:13px;font-weight:400}
.pstep .sb:hover{color:#f0ebe3;border-color:#4a443c;filter:none}
.pstep .nn{width:22px;text-align:center;line-height:22px;color:#d6cec2;font-size:12px;font-weight:700}
#presets .pre .nm{display:inline-block;min-width:6.4em}
.pre{display:flex;align-items:center;height:22px;justify-content:flex-start;white-space:nowrap;text-align:left;background:none;border:1px solid transparent;color:var(--dim);padding:0 7px;border-radius:1px;font-weight:400;font-size:12px}
.pre small{display:none}
.pre .pay{margin-left:5px;font-weight:600;color:#c8bfb2}
.pre.on .pay,.pre:hover .pay{color:inherit}   /* payout: no brackets, a bit brighter */
.pre:hover{color:var(--tx);filter:none}
.pre.on{color:#f0ebe3;font-weight:700}
.side .pre{background-origin:border-box}
.side .pre.on{color:#ebdecc;font-weight:400}
.side .plist .pre.on{color:#c4f5cc}
.side .pre.on{box-shadow:none;position:relative;background-clip:padding-box}
.side .pre.on::before{content:none}   /* 11-25: no side bar, the green fill + green text mark the choice */
body:not(.m) .side .pre{margin-left:-2px;padding-left:9px}   /* 11-25: row fill starts at the block edge, text stays where it was */   /* bar as a pseudo element: Chrome drew the inset shadows of a scaled page as bright lines at the row top and bottom */
body.m .side .plist .pre.on{box-shadow:none}
body.m .side .plist .pre.on::before{left:auto;right:0}
@media (hover:hover){
  .side .pre:not(.no):hover{background-image:linear-gradient(90deg,rgba(52,210,123,.13),rgba(52,210,123,0) 100%)}
  }
.side .pre.on,.side .pre.on:hover{background-image:linear-gradient(90deg,rgba(52,210,123,.40),rgba(52,210,123,0) 100%)}
.side .pre,.side .pre:hover,.side .pre.on,body.m .side .plist .pre.on{background-repeat:no-repeat}   /* Chrome: a fractional row height repeated the glow tile as a bright 1px line at the row bottom */
@media (hover:hover){
  body.m .side .plist .pre:not(.no):hover{background-image:linear-gradient(270deg,rgba(52,210,123,.13),rgba(52,210,123,0) 100%)}
  }
body.m .side .plist .pre.on,body.m .side .plist .pre.on:hover{background-image:linear-gradient(270deg,rgba(52,210,123,.40),rgba(52,210,123,0) 100%)}   /* 11-26: selected = same fade length as hover, only brighter */
.main{display:grid;grid-template-columns:230px minmax(0,1fr) 290px;gap:3px;margin-top:3px;align-items:stretch;flex:1;min-height:0;grid-template-rows:minmax(0,1fr)}
.card.sec{margin-top:3px}

/* table */
.tw{overflow-x:auto;padding:0}
.table{position:relative;display:grid;grid-template-columns:repeat(14,35px);grid-template-rows:repeat(3,35px) 34px 27px;gap:0;width:max-content;margin:0;padding:6px;background:transparent;border-radius:0;border:1px solid transparent}
.f{--ln:rgba(214,210,204,.62);display:flex;align-items:center;justify-content:center;border:0;border-radius:0;box-shadow:inset calc(-1*var(--lw,1px)) calc(-1*var(--lw,1px)) 0 var(--ln);font-weight:500;cursor:pointer;user-select:none;font-size:15.2px;background:transparent;color:#d6d2cc}
.f.red{background:var(--red)}
.f.black{background:var(--blk)}
.f.grn{background:var(--grn)}
.f.bl,.zw .f{box-shadow:inset calc(-1*var(--lw,1px)) calc(-1*var(--lw,1px)) 0 var(--ln),inset var(--lw,1px) 0 0 var(--ln)}
.f.bt{box-shadow:inset calc(-1*var(--lw,1px)) calc(-1*var(--lw,1px)) 0 var(--ln),inset 0 var(--lw,1px) 0 var(--ln)}
.f.bl.bt,.zw .f:first-child{box-shadow:inset calc(-1*var(--lw,1px)) calc(-1*var(--lw,1px)) 0 var(--ln),inset var(--lw,1px) var(--lw,1px) 0 var(--ln)}
.f.bl.hit,.f.bt.hit,.f.bl.bt.hit,.zw .f.hit,.zw .f.hit:first-child{box-shadow:inset 0 0 0 1.5px #f0ebe3,0 0 8px rgba(240,235,227,.7)}   /* the winning 0 (edge cells) lights up like the other numbers */
.f.hov{filter:brightness(1.5)}
.f.hov:not(.red):not(.black):not(.grn){background:rgba(255,255,255,.2)}
.f.hit{box-shadow:inset 0 0 0 1.5px #f0ebe3,0 0 8px rgba(240,235,227,.7)}
.lt{text-shadow:0 0 3px rgba(0,0,0,.85)}
.zw{grid-column:1;grid-row:1 / span 3;display:flex;flex-direction:column;gap:0}
.zw .f{flex:1}
.hs{position:absolute;z-index:2;cursor:pointer;border-radius:0;transform:translate(-50%,-50%)}
.chip.ghost{opacity:.45;display:none}   /* 11-25: split/corner hover = ghost chip where the bet will land (no box) */
@font-face{font-family:"Inter";src:url(fonts/inter-var.woff2) format("woff2");font-weight:100 900;font-style:normal;font-display:swap}
@font-face{font-family:"Inter";src:url(fonts/inter-ext.woff2) format("woff2");font-weight:100 900;font-style:normal;font-display:swap;unicode-range:U+0100-0151,U+0154-0177,U+0179-02BA,U+1E00-1E9F,U+1EF2-1EFF}
@font-face{font-family:"InterChip";src:url(fonts/inter-ext.woff2) format("woff2");font-weight:100 900;font-display:swap;ascent-override:86.38%;descent-override:13.62%;line-gap-override:0%;unicode-range:U+0100-0151,U+0154-0177,U+0179-02BA,U+1E00-1E9F,U+1EF2-1EFF}
@font-face{font-family:"Inter Tight";src:url(fonts/intertight-ext.woff2) format("woff2");font-weight:100 900;font-style:normal;font-display:swap;unicode-range:U+0100-0151,U+0154-0177,U+0179-02BA,U+1E00-1E9F,U+1EF2-1EFF}
@font-face{font-family:"Sora";src:url(fonts/sora-ext.woff2) format("woff2");font-weight:400 600;font-style:normal;font-display:swap;unicode-range:U+0100-0151,U+0154-0177,U+0179-02BA,U+1E00-1E9F,U+1EF2-1EFF}   /* 11-28: Latin Extended (Polish ą ę ł ś ż …) from Google Fonts latin-ext subsets, loaded only when a page uses those letters */
@font-face{font-family:"Inter";src:url(fonts/inter-cyr.woff2) format("woff2");font-weight:100 900;font-style:normal;font-display:swap;unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:"InterChip";src:url(fonts/inter-cyr.woff2) format("woff2");font-weight:100 900;font-display:swap;ascent-override:86.38%;descent-override:13.62%;line-gap-override:0%;unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:"Inter Tight";src:url(fonts/intertight-cyr.woff2) format("woff2");font-weight:100 900;font-style:normal;font-display:swap;unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:"Sora";src:url(fonts/intertight-cyr.woff2) format("woff2");font-weight:400 600;font-style:normal;font-display:swap;unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}   /* 11-28: Cyrillic (Ukrainian) from Inter / Inter Tight subsets, loaded only when a page has Cyrillic letters; Sora itself has none */
@font-face{font-family:"Sora";src:url(fonts/sora-var.woff2) format("woff2");font-weight:400 600;font-style:normal;font-display:swap}   /* 11-27: title font self-hosted (was Google Fonts, ~0.8 s render block on phones) */
@font-face{font-family:"Inter Tight";src:url(fonts/intertight-var.woff2) format("woff2");font-weight:100 900;font-style:normal;font-display:swap}
@font-face{font-family:"InterChip";src:url(fonts/inter-var.woff2) format("woff2");font-weight:100 900;font-display:swap;ascent-override:86.38%;descent-override:13.62%;line-gap-override:0%}   /* 11-25: one self-hosted font (Inter, OFL) for the whole page on every device; InterChip = same file, ascent/descent set so chip digits sit in the exact middle of the line box */
#prog table,#pStat{font-family:"Inter Tight","Inter",system-ui,sans-serif}
#pStat .svb{font-family:"Inter",system-ui,sans-serif}   /* 11-25: tables and stats use Inter Tight (same design, ~7% narrower) so numbers fit; the Stats/Numbers buttons stay Inter */
.chip{position:absolute;z-index:3;transform:translate(-50%,-50%);pointer-events:none;display:flex;align-items:center;justify-content:center;width:16px;height:16px;border-radius:50%;background:#d6ef5a;box-shadow:0 0 0 1px rgba(10,9,8,.85),0 1px 3px rgba(0,0,0,.55);color:#0f0e0d;font-family:"InterChip",system-ui,sans-serif;font-size:8.8px;font-weight:700;line-height:1;white-space:nowrap;font-style:normal;letter-spacing:-.3px;text-indent:.3px;box-sizing:border-box}   /* text-indent offsets the trailing letter-spacing; centring comes from the InterChip font metrics */
.chip.up{animation:chipPulse 3.6s ease-in-out infinite}   /* chip 1.8 s, 0.7 s fade, 0.4 s the number underneath, 0.7 s back */   /* ~45 fps: 24 slices x 7 steps over 3.6 s, cosine shape kept by the keyframes */   /* chips sitting right on a number fade slowly so the number shows through */
@keyframes chipPulse{0%,50%{opacity:1}
69.4%,80.6%{opacity:.1}
100%{opacity:1}
}
#table>.f[data-id=n0]{position:relative;background:var(--ln)!important;box-shadow:none!important;clip-path:polygon(calc(42% - 3px) 0,100% 0,100% 100%,calc(42% - 3px) 100%,0 50%)}
#table>.f[data-id=n0]::before{content:"";position:absolute;inset:var(--lw,1px);background:var(--grn);clip-path:polygon(calc(42% - 3px) 0,100% 0,100% 100%,calc(42% - 3px) 100%,0 50%)}
#table>.f[data-id=n0].hit{background:#f0ebe3!important}
#table>.f[data-id=n0].hit::before{inset:1.5px}
#table>.f[data-id=n0] .lt{position:relative;left:4px}
.zw .f{position:relative;background:var(--ln)!important;box-shadow:none!important}
.zw .f::before{content:"";position:absolute;inset:var(--lw,1px);background:var(--grn)}
.zw .f:first-child,.zw .f:first-child::before{clip-path:polygon(6.5px 0,100% 0,100% 100%,6.5px 100%,0 50%)}
.zw .f:first-child::before{bottom:0}
.zw .f:last-child,.zw .f:last-child::before{clip-path:polygon(6.5px 0,100% 0,100% 100%,6.5px 100%,0 50%)}
.zw .f.hit{background:#f0ebe3!important;box-shadow:none!important}
.zw .f.hit::before{inset:1.5px}
.zw .f:first-child.hit::before{bottom:.75px}
.zw .f:last-child.hit::before{top:.75px}
.zw .f .lt{position:relative;left:2px}   /* 11-25: American 00/0 = each own pointed zero, same angle (half depth) */
.f .dia{display:block;width:3.2em;height:1.25em}   /* 11-25: pointed zero, red/black diamonds, lighter numbers */
.chip{width:24px;height:24px;padding-top:0;font-size:9.5px;font-weight:700;background:radial-gradient(circle,var(--c) 0 55%,rgba(255,255,255,.45) 56% 60%,var(--c) 61% 68%,transparent 69%),repeating-conic-gradient(var(--c) 0 22.5deg,var(--s) 22.5deg 45deg);box-shadow:0 0 0 1px rgba(10,9,8,.6),0 2px 3px rgba(0,0,0,.6)}
.chip.up{animation:none}
.rc .chip{width:19px;height:19px;font-size:8.3px}
.sc .chip{width:18px;height:18px;font-size:8.3px}   /* 11-25: real casino chips, colour by value, no blinking: the chip covers the number like on live tables */
html body #pTable.card{box-shadow:none!important}   /* 11-25: green felt block without the pressed-in edge and frame line */
body:not(.m) #plqs .plq{box-shadow:none!important}
html body:not(.m) #plqs .plq:first-child,html body:not(.m) #plqs .plq:last-child{border-radius:0}   /* 11-25 web: flat stake strip like the phone */
html body:not(.m) #pProg{margin-top:0;border-top-left-radius:0;border-top-right-radius:0}
html body:not(.m) #pTable{border-bottom-left-radius:0;border-bottom-right-radius:0}   /* 11-25 web: no gap under the stake strip, the felt runs straight into the steps table */
/* racetrack */
#rack .rc{background:none!important;outline:none!important;box-shadow:none!important;pointer-events:none}
#rack .rc>svg{position:absolute;overflow:visible;pointer-events:none}
#rack .rc>span{position:relative}
#rack .rc path{pointer-events:visiblePainted;stroke:rgba(214,210,204,.62);stroke-width:var(--lw,1px);vector-effect:non-scaling-stroke}
#rack .rc.red path{fill:var(--red)}
#rack .rc.black path{fill:var(--blk)}
#rack .rc.green path{fill:var(--grn)}
#rack .rc.cov,#rack .rc.hit{z-index:1}
#rack .rc.cov path{stroke:#c9dd6a;stroke-width:2px}
#rack .rc.hit path{stroke:#f0ebe3;stroke-width:1.5px;filter:drop-shadow(0 0 3px rgba(240,235,227,.7))}
#rack .rc.hov{filter:brightness(1.5)}
#rack path.rband{fill:var(--ft,#16613c)}   /* 11-25: stadium racetrack, pockets are SVG shapes (rounded ends like live tables) */
.tr{display:flex;justify-content:center;margin-top:3px}
.tipl{cursor:help}
html[data-tips=off] .help{display:none!important}
html[data-tips=off] .tipl{cursor:inherit}
html[data-tips=off] .plist .pre .tipl{cursor:pointer}   /* 11-25: Tooltips Off = no ? boxes, no help cursor */   /* no dotted line: the ? cursor shows the explanation (11-25) */
#tipPop{position:fixed;z-index:60;max-width:280px;background:#b8b4ad;border:1px solid #a6a198;pointer-events:none;border-radius:2px;padding:7px 10px;font-size:12.5px;line-height:1.4;color:#1f1c19;white-space:pre-line;box-shadow:0 6px 18px rgba(0,0,0,.05);text-transform:none;letter-spacing:0;font-weight:400;text-shadow:none}
body:not(.m) #pStat>.grp.ptl{font-size:13px;line-height:17px;letter-spacing:.09em;color:var(--dim);text-align:center;padding-left:0;padding-top:0;margin-top:1px;margin-bottom:1px}
.card#pTable{border-color:transparent;box-shadow:inset 0 1px 1px rgba(0,0,0,.25),inset 0 0 0 1px rgba(0,0,0,.12),0 1px 0 rgba(255,240,220,.07)}   /* table block pressed into the page, like the checkboxes and fields */
.help{display:inline-flex;align-items:center;justify-content:center;width:16px;height:16px;border:1px solid #4a443c;border-radius:2px;font-size:10px;color:#a39a8e;cursor:help}
.rtbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:0 0 2px;font-size:11.5px;color:var(--dim)}
.rtbar select{height:22px;font-size:11.5px}
#lastRnd{flex-basis:100%;white-space:nowrap}
#lastV{font-weight:600}
#lastV.pos{color:var(--ok)}
#lastV.neg{color:var(--bad)}/* result of the last round under the stake */
body.m .rtbar{position:relative}
body.m #totStake,body.m #lastRnd{position:absolute;left:63%;right:0;height:11px!important;line-height:11px!important;font-size:11px;text-align:left!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.m #totStake{top:2px}
body.m #lastRnd{top:13px}
body.m .rtbar:has(#oRack:checked){min-height:26px!important}   /* fixed left start: big numbers grow to the right, nothing jumps; racetrack on: bar taller so the lines clear it */   /* phone: stake and last round as two small lines in the bar corner, the table does not move */
.rtbar label{display:flex;align-items:center;gap:5px;cursor:pointer}
#nbWrap{display:inline-flex;align-items:center;gap:4px}
.rtbar{flex-wrap:wrap;row-gap:4px}
.rtbar>label:first-child{flex-basis:100%}
body:not(.m) #nbWrap{flex-basis:100%;display:flex;align-items:center;gap:6px}
#tblBrk{flex-basis:100%;height:0}   /* desktop: Racetrack / Neighbours / Stake + ? on three rows */
#pTable{position:relative}
body:not(.m) #rackWrap{padding-top:7px}   /* same space above the racetrack as below the table */
body:not(.m) .rtbar{position:absolute;left:8px;top:6px;z-index:5;max-width:24%}
#plqs{display:none}
body.m #plqs{display:flex;justify-content:center;margin:3px auto 0}
body.m #plqs .plq{flex:0 0 100px}
body.m #totStake,body.m #lastRnd{display:none!important}   /* phone: the same two values under the table */
body:not(.m) #plqs{position:absolute;left:50%;bottom:0;z-index:5;display:flex;align-items:center}
body:not(.m) .rtbar{display:none}
.plq{flex:1;min-width:0;padding:1px 8px 2px;position:relative;top:3px;line-height:1.1;text-align:center}
.plq small{display:block;font-size:8px;font-weight:700;letter-spacing:.09em;text-transform:uppercase;color:#a39a8e}
.plq b{display:block;font-size:12px;font-weight:700;color:#f0ebe3;white-space:nowrap;overflow:hidden}
.plq b.pos{color:var(--ok)}
.plq b.neg{color:var(--bad)}
.plq b.dim{color:#8f8579}   /* desktop: stake + last round = two printed plaques, centred under the table */
#rtTop{display:none}
body.m .rtbar>label{display:none}
body.m #bRT{flex:none}
body:not(.m) #rtTop{position:absolute;left:3px;top:3px;z-index:5;display:flex;align-items:center;gap:6px;font-size:11.5px;color:var(--dim)}
body:not(.m) .rtbar>label{display:none}
#bRT{width:22px;height:18px;padding:0;background:#1c1a18;border:1px solid #3a352f;color:#a39a8e}
#bRT.on{background:#3a352f;color:#ccff00}
body:not(.m) #rtTop #nbWrap{flex-basis:auto;gap:3px;font-size:10.5px}
body:not(.m) #rtTop #sNb{height:17px;width:38px;padding:0 3px;font-size:11.5px;position:relative;top:-2.5px}
body.m #sNb{height:18px!important;line-height:16px;padding-top:0;padding-bottom:0}   /* 11-25: web 1 px lower height + 1 px up; phone = RT button height */
#table .f:not(.red):not(.black):not(.grn),.finals button,#rack .rband{background:var(--ft,#16613c)}   /* desktop: the table itself is solid felt, only the background around it fades */
body:not(.m) #pTable{padding-top:0!important}
#pTable{background:radial-gradient(ellipse var(--frx,56%) var(--fry,120%) at var(--fx,50%) var(--fy,50%),var(--g0,#1b5c3b) 0%,var(--g1,#174f33) 14%,var(--g2,#14432b) 28%,var(--g3,#103824) 42%,var(--g4,#0e2e1e) 56%,var(--g5,#0b2518) 70%,var(--g6,#091d13) 85%,var(--g7,#07170f) 100%)!important}
body:not(.m) #pTable .tr{margin-top:5px}
body:not(.m) #pTable #rackWrap{padding-top:3px}
body:not(.m) #pTable .finals{margin:4px auto 0;flex-wrap:nowrap;visibility:hidden}
body:not(.m) #pTable .finals button{flex:1 1 0;min-width:0;padding:0}   /* +2 px between racetrack and Final buttons; racetrack 2 px higher, table stays */   /* table panel: 5 px between all rows */
body:not(.m) #pTable #edgeBox{top:4px;bottom:auto;right:6px;max-width:none}
body:not(.m) #edgeBox .edgeN{display:inline}
body:not(.m) #edgeBox .ebr{display:none}
body:not(.m) #pTable .rtbar #lastRnd{flex-basis:auto}
body:not(.m) #pTable.nar .rtbar{flex-wrap:nowrap;max-width:none;white-space:nowrap}   /* top strip: RT + Neighbours left, house edge one line right; bottom: stake and last round on one line */   /* desktop: racetrack = an icon button top left of the felt, Neighbours next to it while on */
body:not(.m) #pTable.nar .rtbar{top:auto;bottom:6px}   /* narrow window: both texts under the table */   /* desktop: controls sit in the corner, racetrack rises beside them */   /* row 1: Racetrack, row 2: Neighbours + stake + ? */   /* text and select on one centre line */
#rack{position:relative;margin:1px auto}
.rc{position:absolute;width:26.5px;height:23px;transform:translate(-50%,-50%);display:flex;align-items:center;justify-content:center;border:0;border-radius:0;outline:var(--lw,1px) solid rgba(214,210,204,.62);outline-offset:calc(-.5*var(--lw,1px));font-size:12px;font-weight:500;color:#d6d2cc;cursor:pointer;user-select:none}
.rc.red{background:var(--red)}
.rc.black{background:var(--blk)}
.rc.green{background:var(--grn)}
.rc:hover{filter:brightness(1.35)}
.rc.cov{box-shadow:inset 0 0 0 2px #c9dd6a}   /* covered by a bet: ring, the number keeps its true colour */
.rc.hit,.rc.hit.cov{box-shadow:0 0 0 1.5px #f0ebe3 inset,0 0 6px rgba(240,235,227,.7)}
.chip>b{display:inline-block;font-weight:inherit;color:inherit;transform:scaleX(.78)}   /* centring comes from the InterChip font metrics (11-25) */   /* narrow digits: 100k fits inside the chip */
.sc .chip{position:static;transform:none;display:inline-flex;margin-left:5px;vertical-align:middle;width:18px;height:18px;font-size:8.3px}   /* 11-25: sector chips 18 px (was 14) */
.rc .chip{left:50%;top:50%;transform:translate(-50%,-50%)}   /* same chip as on the table, centred, breathing */
.sc{position:absolute;transform:translate(-50%,-50%);height:19px;padding:0 8px;font-size:9px;border-radius:2px;background:transparent;border:0;color:#f0ebe3;font-weight:600;letter-spacing:.06em;white-space:nowrap}
.sc{cursor:pointer}
.sc:hover,.sc.hov{background:transparent;filter:none}   /* 11-25: no hover box on sector names, hand cursor only (the numbers light up) */
.sc.rev{display:inline-flex;flex-direction:row-reverse;align-items:center}
.sc.rev .chip{margin:0 5px 0 0}   /* BAS: chip on the outer (left) side where its triangle is high */
.sc.on{background:transparent;color:#c9dd6a}
.finals{display:flex;gap:3px;flex-wrap:wrap;justify-content:center;margin:2px 0 0}
.finals button{height:18px;padding:0 7px;font-size:10.5px;font-weight:500;border-radius:0;background:transparent;border:var(--lw,1px) solid rgba(214,210,204,.62);color:#f0ebe3;letter-spacing:.04em}   /* light hairline frame, almost white grey */
.finals button:hover{background:rgba(255,255,255,.16);filter:none}
/* settings */
label.opt{display:flex;align-items:center;gap:6px;height:23px;margin:0 0 3px;cursor:pointer;font-size:12px;color:var(--dim)}
.fld{display:flex;justify-content:space-between;align-items:center;gap:8px;height:23px;margin:0 0 3px;font-size:12px;color:var(--dim);white-space:nowrap}
.sdesc{background:rgba(255,240,220,.065);border:1px solid #2d2a25;padding:1px 7px 4px;font-size:10.5px;color:#c4bcb0;margin:-1px 0 5px;line-height:1.3;box-sizing:border-box;height:calc(2.6em + 24px);overflow:hidden}
body.m .sdesc{height:auto;min-height:calc(2.6em + 24px)}   /* the strategy name + always 2 lines of text: switching the progression moves nothing */
hr{border:0;border-top:1px solid var(--line);margin:6px 0}
.row{display:flex;justify-content:space-between;align-items:center;height:15px;font-size:12px;color:var(--dim)}
.row b{color:#ccc8c1;font-weight:600}   /* status values 15 % quieter: the coloured ones and the bank stand out */
.row b.vp{color:#34d27b}
.row b.vn{color:#ef5350}
.row b.vr{color:#e88a85}
#tEv{color:#a39a8e}
#tBank{font-size:12.5px;font-weight:700}   /* key numbers: profit green/red, risk light red, labels a bit dimmer */
.bank{font-size:21px;font-weight:700;letter-spacing:.3px;line-height:1.1}
.bank.up{color:var(--ok)}
.bank.down{color:var(--bad)}
.bank>.cur,#mBank>.cur{font-size:.75em;opacity:.55;margin-right:.22em;font-weight:600}   /* 11-28 bank symbol only: never shrink a progression row marked .cur */
#plqs .plq small::after{content:", " var(--cur)}   /* 11-28 symbol in the label, numbers stay bare */
.bar{height:6px;box-sizing:border-box;background:var(--well,#0a0908);border-radius:3px;margin:3px 0;padding:1px;box-shadow:inset 0 1px 2px rgba(0,0,0,.85),0 1px 0 rgba(255,240,220,.07)}
.bar i{display:block;max-width:100%;height:100%;border-radius:2px;background:linear-gradient(180deg,#21944f 0%,#68da99 40%,#b0e6c6 50%,#68da99 60%,#21944f 100%);box-shadow:0 0 5px 1px rgba(80,230,140,.36)}
.st{margin:2px 0;font-weight:600;font-size:12px}
.st.win{color:var(--ok)}
.st.bust{color:var(--bad)}

/* progression table */
#prog{margin-top:2px;flex:1;min-height:0;display:flex;flex-direction:column}
#prog table{border-collapse:collapse;width:100%;table-layout:fixed;font-size:11.5px;font-variant-numeric:tabular-nums}
#prog th,#prog td{padding:0 7px;line-height:calc(var(--rh,16px) - 1px);text-align:left;border-bottom:1px solid var(--line);white-space:nowrap}
#prog th{overflow:hidden;text-overflow:ellipsis;color:var(--dim);font-weight:600;position:sticky;top:0;background:var(--th,#1d1b18);z-index:1;font-size:10.5px}
#prog td{color:#cfc8bd}   /* table numbers a little quieter (current step row stays bright) */
#prog td:first-child,#prog th:first-child{text-align:left}
body:not(.m) #prog td:first-child,body:not(.m) #prog th:first-child{padding-left:4px}
#prog td:last-child,#prog th:last-child{text-align:right;padding-right:6px}
body:not(.m) #prog th.ch,body:not(.m) #prog td.ch{text-align:right}   /* Times (this run): at the right edge */
/* deepest step reached in this run: flat light red row; sticks to the bottom of the table while it is below the visible rows */
#prog tr.deep td{position:sticky;bottom:0;z-index:1}
body:not(.m) .pscroll{overflow:hidden;scroll-snap-type:none}   /* desktop: rows are moved by translateY in whole device pixels (native scroll rounds to design px: 1 px wobble) */
body:not(.m) #prog th{position:relative;z-index:2}
body:not(.m) #prog tr.deep td{position:relative;bottom:auto;z-index:1}
#prog tr.deep td{background:linear-gradient(rgba(224,96,90,0.18),rgba(224,96,90,0.18)),var(--th,#1d1b18)}   /* 11-25: flat, no fade (same as the current step row) */
#prog tr.end td{color:var(--bad);font-weight:600}
#prog tr.cur td{color:var(--tx);font-weight:400}   /* current row: background/colour only; every number keeps the same size and weight */
#prog tr[data-i]{cursor:pointer}
body.fast #prog tr[data-i]{cursor:default}
#prog tr.bm:not(.dim) td{background:linear-gradient(rgba(var(--bmf,52,210,123),.2),rgba(var(--bmf,52,210,123),.2)),var(--th,#1d1b18)}
#prog tr.bm.dim td{box-shadow:none;background-image:linear-gradient(rgba(var(--bml,116,242,170),.32),rgba(var(--bml,116,242,170),.32)),linear-gradient(rgba(var(--bml,116,242,170),.32),rgba(var(--bml,116,242,170),.32));background-repeat:no-repeat;background-position:0 -9px,0 -9px;background-size:100% var(--lw,1px)}   /* 12-03: outline as background lines, not inset box-shadow (Chrome drew seams between the cells); the top line is the row border above (coloured below), the row's own top layer is moved out */
#prog tr.bm.dim td:first-child{background-image:linear-gradient(rgba(var(--bml,116,242,170),.32),rgba(var(--bml,116,242,170),.32)),linear-gradient(rgba(var(--bml,116,242,170),.32),rgba(var(--bml,116,242,170),.32)),linear-gradient(rgba(var(--bml,116,242,170),.32),rgba(var(--bml,116,242,170),.32));background-position:0 -9px,0 -9px,0 0;background-size:100% var(--lw,1px),100% var(--lw,1px),var(--lw,1px) 100%}
#prog tr.bm.dim td:last-child{background-image:linear-gradient(rgba(var(--bml,116,242,170),.32),rgba(var(--bml,116,242,170),.32)),linear-gradient(rgba(var(--bml,116,242,170),.32),rgba(var(--bml,116,242,170),.32)),linear-gradient(rgba(var(--bml,116,242,170),.32),rgba(var(--bml,116,242,170),.32));background-position:0 -9px,0 -9px,100% 0;background-size:100% var(--lw,1px),100% var(--lw,1px),var(--lw,1px) 100%}
#prog tr:has(+tr.bm.dim) td,#prog tr.bm.dim td{border-bottom-color:rgba(var(--bml,116,242,170),.32)!important}   /* 12-03: the outline top and bottom lines are the row borders (above it and its own): steady while the table redraws, no line inside the row */
#prog tr.pin td{position:relative;z-index:1;background-color:var(--th,#1d1b18)}   /* pinned rows cover the rows under them */   /* bookmark: green row = the table shows it, dim green frame = the table shows the run */
body.pvh #chips .chip,body.pvh #rack .chip{opacity:.45}   /* 11-26 step preview: hover = ghost chips, click = pinned row */
#prog tr.cur td{background:linear-gradient(rgba(200,190,175,0.155),rgba(200,190,175,0.155)),var(--th,#1d1b18)}   /* 11-25: flat, no fade */
body.m #prog tr.cur td:first-child::after{content:none}
#prog .pos{color:var(--ok)}
#prog .neg{color:var(--bad)}
#prog .wrn{color:#c9a24a;cursor:help}
#prog .phd>.wrn{color:#e8b54a;display:inline-flex;align-items:center;overflow:visible;flex:none}
#prog .phd>.wrn svg{width:13px;height:13px;display:block}
body:not(.m) #prog .phd>.wrn{margin-right:5.18px;top:4px}
body.m:not(.tab) #prog .phd>.wrn{margin-right:12px}   /* phone: sign 12 px off the right edge */
body.m.tab #prog .phd>.wrn{margin-right:6.5px;top:-1px}
html body.m.tab #prog .phd>.wrn svg{width:16px;height:16px}   /* tablet: sign 16 px */
body:not(.m) #prog .phd>.wrn svg{width:16.83px;height:16.83px}   /* web: filled warning sign, easy to read */   /* web: warning sign bigger, brighter, off the edge */
.phd>.wmid{flex:0 1 auto;margin-left:auto;white-space:nowrap;min-width:0;max-width:55%;overflow:hidden;text-overflow:ellipsis}   /* warning: right end of the header line */
#prog .phd>.wrn.crit{color:var(--bad);animation:limitFaultPulse 1s ease-in-out infinite}
@keyframes limitFaultPulse{0%,100%{opacity:1}50%{opacity:.25}}
body.limitLock .hist .hint{color:var(--bad)}
body.limitLock #sLim{border-color:var(--bad)}
@media (prefers-reduced-motion:reduce){#prog .phd>.wrn.crit{animation:none}}
#edgeBox{position:absolute;right:8px;bottom:6px;z-index:5;text-align:right;line-height:1.35;font-size:11px;color:#7a7166;max-width:24%}
#edgeBox b{color:#a39a8e}
#edgeBox .edgeN{display:block;white-space:normal}
body.m #edgeBox{display:none}   /* table panel, bottom right corner (mirror of the Racetrack controls) */
body:not(.m) #pProg{background:linear-gradient(180deg,rgba(255,240,220,.036) 0px,rgba(255,240,220,.0203) 16px,rgba(255,240,220,.009) 32px,rgba(255,240,220,.00225) 48px,rgba(255,240,220,0) 64px),linear-gradient(0deg,var(--cb,#121110),var(--ct,#1f1d1a));background-repeat:no-repeat;border-radius:3px}   /* the header strip above the progress table: same faint top light as the blocks, the table itself untouched */
.pwrap{flex:1;min-height:0;border:none;border-radius:0;overflow:hidden}   /* no frame: only the row lines, edge to edge */   /* fixed frame: bottom stays put, the chart sits under it */
.pscroll{position:relative;overflow:auto;height:100%;scroll-snap-type:y mandatory}           /* height snapped to whole rows by snapProg(): never a half row */
#prog tr[data-i]{scroll-snap-align:start}
#prog th,#prog td{height:var(--rh,16px);box-sizing:border-box}   /* --rh: 16 design px rounded to whole screen pixels (set in fitApp): every row the same height, no wobble while scrolling */


/* ---------- phone layout (body.m, set by JS under 760px width) ---------- */
.mtabs,.mSlot,#mBank{display:none}
body.m{overflow:auto;height:auto}
body.m .wrap{position:static;transform:none!important;width:auto!important;height:auto!important;display:block;padding:0 1px 101px;overflow:clip}
body.m .wrap{display:flex;flex-direction:column;min-height:100dvh;box-sizing:border-box}
body.m .wrap>*,body.m .inner>*{flex:none}
body.m .wrap>.inner{flex:1 0 auto}
body.m .inner>.main{flex:1 0 auto;display:flex;flex-direction:column}
body.m .inner>.main>*{flex:none}
body.m[data-tab=bets] .side,body.m[data-tab=table] .col,body.m[data-tab=res]:not([data-res=sum]) .col,body.m[data-tab=set] .col2,body.m[data-tab=res][data-res=sum] .col2{flex:1 0 auto;display:flex!important;flex-direction:column}
body.m[data-tab=bets] .side{display:grid!important}
body.m .col>#pTable{flex:none}
body.m #pProg,body.m .col2>.card{flex:1 0 auto}   /* phone: the open panel reaches down to the bottom bar */
body.m .sideSlot,body.m .brand p{display:none}
body.m header.hd{padding:2px 0 2px 5px;height:20px;box-sizing:border-box;flex-wrap:nowrap;position:sticky;top:0;z-index:21;background:var(--bg)}
body.m .brand h1{font-size:12.5px;line-height:16px}
body.m .spinbar{grid-template-columns:1fr;gap:4px;padding:5px 6px;position:sticky!important;top:20px;z-index:20}   /* !important: the inline position:relative made top:20px push the bar 20 px down over the table */
body.m .tc{gap:8px}
body.m #num{width:42px;height:42px;font-size:18px}
body.m .ctl{gap:4px}
body.m .ctl button{padding:0 9px}
body.m #mBank{display:block;font-size:15px;font-weight:700;margin-left:auto;white-space:nowrap}
body.m #mBank.up{color:var(--ok)}
body.m #mBank.down{color:var(--bad)}
body.m .hist{justify-content:flex-start}
body.m .main{display:block;margin-top:2px}
body.m[data-tab=bets] .main,body.m[data-tab=set] .main,body.m[data-tab=res] .main{margin-top:0}
body.m[data-tab=res] .main{background:linear-gradient(0deg,var(--cb,#121110),var(--ct,#1f1d1a))}
body.m .main>*,body.m .col>.card,body.m #pSet,body.m #pStat,body.m .col2 h2{display:none}
body.m[data-tab=table] .col,body.m[data-tab=table] #pTable,body.m[data-tab=table] #pProg{display:block}
body.m[data-tab=table] #pProg{margin-top:0}   /* 11-25: the steps table starts right under the stake strip */
body.m .rtbar{flex-wrap:wrap}
body.m .rtbar>label:first-child,body.m #nbWrap{flex-basis:auto}
body.m #nbWrap{margin-left:auto}
body.m .rtbar{flex-wrap:nowrap;gap:8px;min-height:24px}
body.m #totStake{order:9;flex:1 1 auto;min-width:0;margin-left:auto;text-align:right;height:16px;line-height:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.m #nbWrap{margin-left:0;flex:none}
body.m .rtbar>label,body.m #tblHelp{flex:none}
body.m #tblBrk{display:none}
.rsw{display:none}
body.m[data-tab=res] .rsw{display:flex;gap:2px;margin:2px 0 0}
.rsw button{flex:1;height:23px;font-weight:400;background:#1a1816;color:var(--dim);border:1px solid #211e1b}
.rsw button.on{color:#f0ebe3;font-weight:700;background:#3a352f}
body.m[data-tab=res][data-res=sum] #pProg,body.m[data-tab=res]:not([data-res=sum]) .col2{display:none!important}   /* phone Results: Steps (progression table) or Summary (status), no scrolling */
body.m[data-tab=bets] .side{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:8px;align-content:start}
body.m .side .infoRow{grid-column:1/-1}
body.m .side .pgrp{letter-spacing:.03em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.m .side .pre{overflow:hidden;text-overflow:ellipsis}
body.m .plist .pgrp{text-align:right}
body.m .plist .pre{justify-content:flex-end;text-align:right}   /* phone Bets tab: bets on the left, progressions on the right (right column aligned to the right edge) */
body.m[data-tab=set] .col2,body.m[data-tab=set] .col2>.card,body.m[data-tab=set] #pSet,body.m[data-tab=set] .col2 h2{display:block}
body.m[data-tab=res] .col,body.m[data-tab=res] #pProg,body.m[data-tab=res] .col2,body.m[data-tab=res] .col2>.card,body.m[data-tab=res] #pStat{display:block}
body.m .card.sec{margin-top:0}
body.m[data-tab=res] .col2{margin-top:0}
body.m[data-tab=table] #pProg,body.m[data-tab=res]:not([data-res=sum]) #pProg{display:flex;flex-direction:column}
body.m .pwrap{flex:1 1 auto;min-height:0;position:relative}
body.m .pwrap>.pscroll{position:absolute;inset:0;height:auto;overflow-x:hidden;scroll-snap-type:none}
body.m #prog tr.deep td{position:relative;bottom:auto}
body.m #prog table{font-size:clamp(10.5px,2.85vw,12.5px)}   /* 11-25: bigger phone steps text, as big as the 9 columns allow at this width */
/* 11-26: phone column widths are set per column in buildProgDom (columns can be hidden) */
body.m #prog th{font-size:clamp(10px,2.6vw,11.5px);white-space:nowrap;vertical-align:bottom;line-height:1.15}
body.m #prog th,body.m #prog td{padding:0 3px}
body.m #prog th:last-child,body.m #prog td:last-child{padding-right:10px}
body.m #prog th.ch,body.m #prog td.ch{padding-left:3px;text-align:right}
@media (max-width:392px){
  body.m #prog th,body.m #prog td,body.m #prog th.ch,body.m #prog td.ch{padding:0 1px}
  body.m #prog th:last-child,body.m #prog td:last-child{padding-right:2px}
  }   /* 11-25 Inter: phone columns sized by the widest real value (Martingale, bank 1000), narrow phones get 1 px cell padding so nothing touches */   /* 11-25: Chance right-aligned next to Times; its spare width goes to the money columns */
body.m .mcbox{max-width:100%;width:100%;padding:10px 8px}
body.m .kpis{grid-template-columns:1fr 1fr}
body.m .hb .l{width:118px;font-size:9.5px}
body.m #prog{display:flex;flex-direction:column}
body.m .fld select,body.m .fld input[type=number],body.m .fld input[type=text]{width:150px;max-width:150px}
body.m #pSet .fld{margin-bottom:2px;height:21px}
body.m #pSet .grp{margin:2px 0 0}
body.m #pSet .sdesc{margin-bottom:2px;padding-top:2px;padding-bottom:2px;min-height:0}
body.m #pSet .sdesc .sdt{height:27px}
body.m #pSet .grp.first{margin-top:0}
body.m .side{padding:0 6px 2px}
body.m .side .sh{grid-column:1;grid-row:1;text-align:left;margin:2px 0 1px}
body.m .side .sh2{grid-column:2;text-align:right;margin:2px 0 1px}
body.m .side #presets{grid-column:1;grid-row:2}
body.m .side #progList{grid-column:2;grid-row:2}
body.m .side .infoRow{grid-row:3}
body.m .col2 h2{font-size:0;height:0;margin:0;overflow:visible;z-index:2}
body.m .col2 h2>span{top:-8px!important}
body.m #bGear{width:22px;height:22px}
body.m #bGear svg{width:15px;height:15px}
body.m #bGear,body.m #bShare{width:18px;height:18px;position:relative;top:2px}
body.m #bGear svg,body.m #bShare svg{width:12px;height:12px}   /* phone: icons clear of the buttons above and the Wheel select below */
body.m #gearPop{top:25px}
body.m #pSet .grp.first{height:15px;line-height:15px;margin-top:0}
body.m .infoRow{padding-top:3px}
body.m .spinbar{padding:2px 6px}
body.m[data-tab=table] .spinbar,body.m[data-tab=bets] .spinbar,body.m[data-tab=set] .spinbar,body.m[data-tab=res] .spinbar{padding-bottom:0}
body.m[data-tab=table] .main{margin-top:0}
body.m #pTable{border-radius:0}   /* 11-25: phone felt starts right under the buttons, square edges */
body.m .tc{row-gap:1px!important}
body.m #num{width:50px!important;height:50px!important;font-size:33px!important}
body.m .tc{grid-template-columns:50px calc(50% - 28px) minmax(0,1fr)!important;column-gap:8px!important}
body.m .tc .ctl{margin-top:1px!important}
body.m .presets>.pgrp:first-child{margin-top:0}
body.m .pre{height:17px}
body.m .pstep .pre{flex:none}
body.m .pstep{gap:8px}
body.m .pgrp{margin:2px 0 0}
body.m .presets{gap:1px}
body.m[data-tab=res] .col2>.card{padding-top:2px}
body.m[data-tab=res][data-res=sum] .col2>.card{margin:0 6px}   /* Results: sides in line with the buttons */
body.m[data-tab=res] #pStat{display:grid;grid-template-columns:auto 1fr;column-gap:8px;align-items:center}
body.m #pStat>*{grid-column:1/-1}
body.m #pStat>.grp:first-child{grid-column:1;margin:0}
body.m #pStat>.bank{grid-column:1/-1;justify-self:start;font-size:21px;line-height:1.2;margin-top:2px}
body.m #pStat>.grp.ptl{display:none}
body.m #pStat>.bar{height:3px;margin:1px 0 2px}
body.m[data-tab=res] #pProg:has(.pempty){display:none}
.pwE{position:relative}
.pwE tr.ghost td{color:transparent}
.pwE .phint{position:absolute;left:0;right:0;top:calc(var(--rh,16px) + 2px);bottom:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;pointer-events:none;text-align:center;padding:0 12px}
.pwE .phb{display:flex;flex-direction:column;align-items:center;gap:4px;padding:3px 8px}
.pwE .pscroll{--hw:0px;--hh:0px;--hy:50%;--m:linear-gradient(90deg,#000 calc(50% - var(--hw)/2 - 20%),transparent calc(50% - var(--hw)/2),transparent calc(50% + var(--hw)/2),#000 calc(50% + var(--hw)/2 + 20%)),linear-gradient(180deg,#000 calc(var(--hy) - var(--hh)/2),transparent calc(var(--hy) - var(--hh)/2),transparent calc(var(--hy) + var(--hh)/2),#000 calc(var(--hy) + var(--hh)/2));-webkit-mask-image:var(--m);mask-image:var(--m);-webkit-mask-composite:source-over;mask-composite:add}   /* 11-25: the lines fade out around the hint text, no painted backdrop */
.pwE .phint b{font-size:12.5px;font-weight:400;color:#a39a8e}   /* 11-25: one message on a soft faded backdrop, no boxes */
.pwE .phint span{font-size:11px;color:#7d756a}   /* empty steps panel hint */
body.m #pStat .ctl{margin-top:2px!important}
body.m #pStat .ctl button,body.m #pStat .ctl select,body.m #pStat .ctl input{height:22px}
body.m #pStat .grp{margin:3px 0 1px}
body.m #pStat .row{margin-bottom:1px}
@media (max-height:700px){
  body.m .pre{height:15px}
  body.m #pSet .fld{height:19px;margin-bottom:2px}
  body.m #pSet .grp{margin:2px 0 0}
  body.m #pSet .sdesc{min-height:0}
  body.m #pStat .row{height:13px}
  }   /* short phones: panels fit above the tab bar, no scrolling */
@media (max-height:660px){
  body.m .pre{height:14px}
  body.m .side .pgrp{margin-top:3px}
  body.m #pStat .row{height:12px}
  body.m #pStat .grp{margin:2px 0 0}
  body.m #pSet .fld{height:19px;margin-bottom:2px}
  body.m #pSet .grp,body.m #pSet .grp.first{height:11px;line-height:11px}
  body.m #pSet .sdesc .sdn{height:15px;line-height:15px}
  body.m #pSet .grp{margin:0}
  body.m .col2 h2{margin-bottom:0}
  body.m #pStat .bar{margin:2px 0}
  body.m #pStat .st{margin:1px 0}
  body.m .col2>.card{padding-bottom:0}
  }
body.m[data-tab=table] #pTable{position:sticky;top:calc(20px + var(--sbH,0px));z-index:19}
body.m .foot{padding:0 4px;position:fixed;left:0;right:0;bottom:84px;height:16px;line-height:16px;z-index:50;background:var(--cb,#121110);border-top:1px solid var(--line);box-sizing:border-box}
body.m .tr{justify-content:center}
.tr .tw,#rackWrap .tw{position:relative;overflow:hidden;margin:0 auto}
body:not(.m) .tr .tw,body:not(.m) #rackWrap .tw{overflow:visible}   /* scaled drawing: the outer 1 px lines sit on the wrapper edge, hidden overflow cut them off */
.tw>.table,.tw>#rack{position:absolute;left:0;top:1px;margin:0;transform-origin:0 0}
body.m #pTable{padding:1px 4px 0!important}   /* 11-25: no green slit under the stake strip */
body.m .rtbar{min-height:20px!important;margin:0}
body.m .tr{margin-top:-4px}
body.m .modal{position:fixed}
body.m .mtabs{display:flex;gap:3px;box-sizing:border-box;padding:3px;position:fixed;left:0;right:0;bottom:50px;height:34px;z-index:50;background:var(--cb,#121110);border-top:1px solid var(--line)}
body.m .mtabs button{flex:1;height:28px;background:#2a2622 linear-gradient(180deg,rgba(255,255,255,.06),rgba(0,0,0,.14));border-radius:2px;color:#a39a8e;font-size:16px;font-weight:600;display:inline-flex;align-items:center;justify-content:center;gap:4px;box-shadow:inset 0 1px 0 rgba(255,255,255,.07),0 1px 0 rgba(0,0,0,.35),0 1px 2px rgba(0,0,0,.25)}
body.m .mtabs svg{width:13px;height:13px;flex:none}
.mtabs button{text-transform:uppercase;letter-spacing:.8px;font-size:11px}   /* phone tabs: capitals like the panel titles */
#bSpin,#bAuto,#bReset,#bClear{text-transform:uppercase;letter-spacing:.6px}   /* top buttons: capitals, web and phone */
body.m .mtabs button.on{background:#22201d;color:#c9dd6a}
body.m .mSlot{display:flex;position:fixed;left:0;right:0;bottom:0;height:50px;z-index:50;background:var(--bg);border-radius:0;border-left:0;border-right:0;border-bottom:0}
/* phone pickers: our own list instead of the phone's native select popup */
.pk{position:fixed;inset:0;z-index:200;background:rgba(8,7,6,.72);display:flex;align-items:flex-end}
.pk[hidden]{display:none}
.pkb{width:100%;max-height:70vh;overflow:auto;background:var(--card);border-top:1px solid #4a443c;padding:6px 0 10px}
.pkb .pg{padding:9px 14px 3px;font-size:10px;font-weight:700;letter-spacing:.09em;text-transform:uppercase;color:#a39a8e}
.pkb .po{display:flex;align-items:center;width:100%;height:42px;padding:0 14px;background:transparent;border:0;border-bottom:1px solid #2a2723;border-radius:0;color:var(--tx);font-size:14px;font-weight:400;text-align:left;justify-content:flex-start}
.pkb .po.on{color:#c9dd6a;background:#3a352f;font-weight:600}
#pTable{background:radial-gradient(ellipse 56% 120% at 50% 50%,var(--ft,#17653f) 0%,var(--g1,#135a37) 45%,rgba(var(--fr,18,82,47),.35) 75%,transparent 100%),linear-gradient(180deg,var(--card),var(--bg2))}   /* felt under racetrack + table, fades to the sides */
body.m #pTable{background:radial-gradient(ellipse 80% 115% at 50% 55%,var(--ft,#17653f) 0%,var(--g1,#135a37) 50%,rgba(var(--fr,18,82,47),.4) 80%,rgba(var(--fr,18,82,47),.12) 100%),linear-gradient(180deg,var(--card),var(--bg2))}   /* phone: felt reaches the sides */
.phd{display:flex;align-items:flex-start;gap:12px;margin:-8px 0 3px;height:16px;line-height:16px;overflow:hidden}
.phd>*{font-size:11.5px;line-height:16px;height:16px}   /* description and warning: same font size and line, the left text never moves */
.phd>.cnt{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.phd>.edgeN{flex:none;margin-left:0}
.edgeN{margin-left:auto;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0;font-size:11px;color:#7a7166}
.edgeN b{color:#a39a8e}
.edgeT{margin-left:8px}   /* 11-26: no dots, a gap between House edge and the note */
body:not(.m) .foot{display:none}
body.m .edgeN{display:none}
#hist{align-self:stretch}
.spinbar{position:relative}
#statBar{position:absolute;left:max(calc(50% - 150px),498px);top:19px;transform:translateY(-50%);white-space:nowrap;z-index:1;pointer-events:none}
.tc .spcol{flex:1}
body.m .ctl{flex-wrap:wrap}
#cTime{margin-left:12px;white-space:nowrap}
#statBar{font-size:11px;line-height:13px;text-align:center}
#statBar #cTime{display:block;margin-left:0}   /* desktop: stats in 2 centered rows inside the button row height */
.inner>.spinbar{grid-template-columns:minmax(0,1fr)}
.tc,.spcol,.ctl{min-width:0}
.ctl{flex-wrap:nowrap}
.infoRow{margin-top:auto;padding-top:8px;display:flex;gap:2px;position:sticky;bottom:0;z-index:5;background:var(--cb,#121110)}
.side{overflow:visible}
body:not(.m) .wrap{overflow:clip}
body:not(.m) .side .infoRow{bottom:var(--stkB,0px)}
body.m .side .infoRow{position:fixed;left:7px;right:7px;bottom:100px;padding:3px 0 2px}
body.m[data-tab=bets] .side{padding-bottom:34px}   /* How it works / Strategies stay visible at the bottom, also when the page scrolls (phone: above the tab bar) */
.infoBtn{display:flex;align-items:center;justify-content:center;flex:1;min-width:0;height:22px;padding:0 7px;background:transparent;border:1px solid #211e1b;border-radius:1px;color:var(--dim);font-size:12px;font-weight:400;text-decoration:none;white-space:nowrap;cursor:pointer}
.infoBtn:hover{color:var(--tx);border-color:#4a443c;filter:none}
body:not(.m) .infoRow .infoBtn{padding:0 5px;height:17.6px}   /* same height as Download CSV */
body:not(.m) .infoRow .infoBtn{border:0;border-radius:2px}
body:not(.m) .side .pblock:nth-of-type(2){border-bottom-left-radius:0;border-bottom-right-radius:0}
body:not(.m) .side .infoRow{margin:0 -2px -2px;padding:3px 2px 2px;background:var(--cb,#121110);border-radius:0 0 3px 3px}   /* buttons look like Download CSV and sit on the Strategies panel, panel bottom = chart panel bottom */
body:not(.m) .infoRow .infoBtn,body:not(.m) #pStat #bCsv,body:not(.m) #pStat #bBulk,body:not(.m) #pStat #bMC,body:not(.m) #pTest #bCsv,body:not(.m) #pTest #bBulk,body:not(.m) #pTest #bMC{text-transform:uppercase;font-size:10px;letter-spacing:.02em;line-height:11px;padding-bottom:2px}   /* text 1 px higher: capitals look centred */   /* bottom + Tests buttons in capitals: no descenders cut at 17.6px */
body:not(.m) .infoBtn{background-color:#2e2a26;color:#ccc8c1;font-weight:500;font-size:12.5px}
body:not(.m) #bBulk,body:not(.m) #bMC,body:not(.m) #bCsv{font-size:12.5px;white-space:nowrap}
body:not(.m) #pStat .row.rowAlt{background:rgba(255,240,220,.03);margin:0 -4px;padding:0 8px}
body:not(.m) #pNum .row{flex:none;height:15px;line-height:15px}   /* 9 record rows fit above Tests */
body.m #pStat .row.rowAlt{background:rgba(255,240,220,.03);margin:0 -4px;padding:0 4px}
body.m[data-tab=res] #pStat>.row{align-self:stretch;height:auto;max-height:none}
body.m[data-tab=res] #pStat>.row>*{line-height:15px;max-height:15px}   /* 11-27: phone/tablet Stats rows fill their whole grid track (no dark gap), so light and dark zebra bands are equally tall; track size and text place unchanged */
body.m[data-tab=res] .rsw{margin:0 7px;gap:0}
body.m[data-tab=res] .main{margin-top:0;gap:0}
body.m[data-tab=res] .col2>.card{padding-top:0}
body.m[data-tab=res] #pStat,body.m[data-tab=res] #pStat>.bank{margin-top:0;padding-top:0}
body.m[data-tab=res] #pProg>div:first-child{margin-top:0}   /* both buttons equal width ("How it works" / "Strategies Guide") */
.info{font-size:12.5px;line-height:1.5;color:#c8bfb2}
.info h3{margin:12px 0 3px;font-size:10.5px;font-weight:700;letter-spacing:.09em;text-transform:uppercase;color:#a39a8e}
.info p{margin:0 0 6px}
.info b{color:var(--tx)}
.info .imis{margin:2px 0 4px;padding:2px 0 10px 12px;border-left:2px solid #1f6b45;border-bottom:1px solid #2d2a25}
.info .imis h3{margin-top:4px}
.info .ilead{font-size:14px;line-height:1.45;color:var(--tx)}
.info .ifeat{list-style:none;margin:0 0 4px;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:4px 18px}
.info .ifeat li{margin:0;padding-left:10px;position:relative}
.info .ifeat li::before{content:"";position:absolute;left:0;top:.62em;width:4px;height:4px;background:#1f6b45}
.info .ifeat b{display:block;font-size:12px}
body.m .info .ifeat{grid-template-columns:1fr}
.info .ifoot{margin-top:12px;padding-top:8px;border-top:1px solid #2d2a25;font-size:11.5px;color:#a39a8e}
.info .ifoot p{margin:0 0 3px}
.info .ifoot a{color:#d6d2cc}   /* How it works: mission lead, two-column feature list, quiet footer */
input[type=checkbox]{appearance:none;-webkit-appearance:none;width:15px;height:15px;margin:0;flex:none;border-radius:3px;box-sizing:border-box;background:var(--well,#0a0908);border:0;box-shadow:inset 0 1px 2px rgba(0,0,0,.85),0 1px 0 rgba(255,240,220,.07);cursor:pointer;display:inline-grid;place-content:center;vertical-align:middle}
input[type=checkbox]{position:relative;transition:background .15s,box-shadow .15s}
input[type=checkbox]:checked::before{content:"";position:absolute;inset:2.5px;border-radius:1.5px;background:radial-gradient(circle at 50% 50%,#b0e6c6 0%,#b0e6c6 15%,#68da99 55%,#34c977 85%,#21944f 100%);box-shadow:none;filter:brightness(.7)}
@media(hover:hover){
  input[type=checkbox]:hover:not(:disabled){background:#14120f}
  }   /* no sticky hover on touch screens: unchecked boxes immediately return to the dark off colour */
input[type=checkbox]:disabled{opacity:.4;cursor:default}
#chWrap{flex:none;height:110px;background:linear-gradient(180deg,rgba(255,240,220,.045),rgba(255,240,220,0) 64px);position:relative;margin-top:3px;border:0}   /* no frame, like the steps table */
#chart{position:absolute;inset:0;width:100%;height:100%;display:block}
/* phone polish: nothing wraps awkwardly */
body.m .ctl{flex-wrap:nowrap}
body.m .ctl button{padding:0 7px;font-size:12px}
body.m .infoBtn{background-color:#2e2a26;color:#ccc8c1;font-weight:500}
button.sec{font-weight:500}   /* grey buttons: a bit thinner text, calmer next to Spin */
body.m #spd{width:86px;flex:none;font-size:12px;padding:0 4px}
body.m .spcol .tl{white-space:nowrap}
body.m .phd>.cnt{flex:1;white-space:normal}
body.m #pProg{padding-top:0!important}
body.m .phd{margin:0 0 1px;height:13px;line-height:12px}
body.m .phd>*{font-size:11px;line-height:12px;height:13px}
body.m #hist{display:none}
body.m #statBar{display:none}
body:not(.m) #mStats{display:none}
body.m #cTime{display:none!important}
body.m #nbWrap,body.m .rtbar label{white-space:nowrap}
body.m .rtbar{gap:8px}
body.m .finals{flex-wrap:nowrap;gap:2px;margin-top:3px}
body.m .finals button{flex:1;min-width:0;padding:0;font-size:10px;height:18px;white-space:nowrap}   /* 11-25: 2 px lower, the 2 px go to the gap above (no longer touches the racetrack); table does not move */
body.m .foot{white-space:nowrap;font-size:10.5px}
.hist .hint{font-style:normal;color:#8f8579;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;align-self:center}

/* phone top bar: number + bank + counters left, real time under them, profit chart right; buttons full width below */
body.m .tc{display:grid;grid-template-columns:56px 132px minmax(0,1fr);grid-template-areas:"num bank ch" "num tl ch" "tm tm ch" "ctl ctl ctl";column-gap:8px;row-gap:3px;align-items:center}
body.m .spcol{display:contents}
body.m #num{grid-area:num;width:56px;height:56px;font-size:28px}
body.m #mBank{grid-area:bank;align-self:end;justify-self:start;max-width:100%;overflow:hidden;font-size:23.3px;line-height:26px;margin:0}
body.m .tc .tl{grid-area:tl;align-self:start;text-align:left;font-size:11px;line-height:13px;white-space:nowrap;margin:0}
body.m #mStats{grid-area:tm;display:flex!important;flex-direction:row;flex-wrap:nowrap;align-items:center;gap:3px;margin:0 0 0 -3px;font-size:9.5px;line-height:10px;height:20px;white-space:pre;color:var(--dim);transform:translateY(2px)}
body.m #chWrap.mCh{grid-area:ch;align-self:stretch;height:auto;min-height:74px;margin:0;border:1px solid var(--line);background:linear-gradient(180deg,rgba(255,240,220,.04),rgba(255,240,220,0))}
body.m .tc .ctl{grid-area:ctl;flex-wrap:nowrap;gap:3px;margin-top:3px!important}
body.m .tc .ctl>button,body.m .tc .ctl>select{flex:1 1 0;min-width:0;height:28px;padding:0 2px;font-size:12px}
body.m #bSpin{flex-grow:1}
body.m .tc .ctl>#spd{flex:0 0 82px;width:82px;max-width:82px;font-size:11px;padding:0 14px 0 4px;background-position:right 2px center}
body.m .tc #hist{display:none}
body.m .tc{grid-template-columns:48px minmax(0,1fr)!important;grid-template-areas:"tl tl" "tm tm" "num ch" "bank bank" "ctl ctl"}
body.m #num{width:48px!important;height:48px!important}
body.m #chWrap.mCh{min-height:44px;align-self:center}
body.m #mBank{font-size:21px;line-height:23px}
body.m #mBank{justify-self:center;text-align:center}
body.m .tc .tl{text-align:center;line-height:12px}
body.m #mStats{grid-template-columns:auto auto auto auto;column-gap:6px;justify-content:center;transform:none;margin:0;height:auto;font-size:11px;line-height:12px}
body.m .tc{row-gap:2px}
body.m #num{width:53px!important;height:53px!important;font-size:34px!important;align-self:start;margin:1px 0 0 -3px}
body.m .tc{column-gap:2px!important;grid-template-columns:50px minmax(0,1fr)!important;grid-template-areas:"num tm" "num ch" "num bank" "ctl ctl"}
body.m #mStats{margin-top:-2px}
body.m #chWrap.mCh{align-self:stretch;height:34px;min-height:0;margin:1px -4px -1px 0}
body.m #mBank{transform:translateX(-26px)}
body.m .tc .ctl>button,body.m .tc .ctl>select{height:25px}
body.m #mBank{font-size:18px;line-height:18px}
body.m .tc .ctl{margin-top:1px!important}   /* phone: lower top zone, so Results + Tests fit above the tab bar */
/* buttons stand out of the panel (fields and checkboxes are pressed in): light top edge, soft shadow under; pressed = sinks in */
button.sec,button.gold,button.stop,.infoBtn{box-shadow:inset 0 1px 0 rgba(255,255,255,.07),0 1px 0 rgba(0,0,0,.35),0 1px 2px rgba(0,0,0,.25);transition:box-shadow .08s,transform .08s}
button.sec,button.stop,.infoBtn{background-image:linear-gradient(180deg,rgba(255,255,255,.06),rgba(0,0,0,.14))}
.infoBtn{background-color:#26231f;border-color:transparent}
.infoBtn:hover{border-color:transparent;background-color:#2e2a26}
button.sec:active:not(:disabled),button.gold:active:not(:disabled),button.stop:active:not(:disabled),.infoBtn:active{box-shadow:inset 0 2px 4px rgba(0,0,0,.75),0 1px 0 rgba(255,240,220,.06);background-image:none;transform:translateY(1px)}
button.gold:disabled,button.sec:disabled{box-shadow:none}
/* small toggles (racetrack, settings menu, table ?) : raised like the buttons; on = pressed in with a lit LED icon */
#bRT,#bGear,#bShare,#rtTop .help{border-color:transparent!important;background:#2a2622 linear-gradient(180deg,rgba(255,255,255,.06),rgba(0,0,0,.14));box-shadow:inset 0 1px 0 rgba(255,255,255,.07),0 1px 0 rgba(0,0,0,.35),0 1px 2px rgba(0,0,0,.25);color:#a39a8e}
#bRT,#bGear,#bShare,#rtTop .help,.infoBtn{box-shadow:inset 0 1px 0 rgba(255,255,255,.07),0 1px 0 rgba(0,0,0,.35),0 1px 2px rgba(0,0,0,.25)}   /* the 4 icon buttons: flatter, small shadow */
#bRT:hover,#bGear:hover,#bShare:hover,#rtTop .help:hover{color:var(--tx)}
#bRT.on,#bGear.on{background:var(--well,#0a0908);box-shadow:inset 0 1px 3px rgba(0,0,0,.9),0 1px 0 rgba(255,240,220,.07);color:#74f2aa}
#bRT.on svg,#bGear.on svg{filter:drop-shadow(0 0 2px rgba(80,230,140,.6))}
#bRT:not(.on),#bGear:not(.on),#bShare,#bXlsx{color:#0d0c0b}
#bRT:not(.on):hover,#bGear:not(.on):hover,#bShare:hover,#bXlsx:hover{color:#000}
#bRT:not(.on) svg,#bGear:not(.on) svg,#bShare svg,#bXlsx svg{filter:drop-shadow(0 1px 0 rgba(255,240,220,.16))}
#bRT svg *{stroke-width:1.5}
#bShare svg *{stroke-width:2.57}
#bGear svg *{stroke-width:2.4}
#bXlsx svg *{stroke-width:2}   /* engraving lines 1.5 px on screen */
body:not(.m) #bRT,body:not(.m) #bXlsx{width:22px;height:22px;padding:0;display:inline-flex;align-items:center;justify-content:center}
body:not(.m) #bRT svg,body:not(.m) #bShare svg,body:not(.m) #bGear svg,body:not(.m) #bXlsx svg{width:14px;height:14px}
body:not(.m) #bRT svg *{stroke-width:1.71}
body:not(.m) #bGear svg *,body:not(.m) #bXlsx svg *{stroke-width:2.57}
body:not(.m) #prog .phd{height:18px}
body:not(.m) #chWrap{height:102px}   /* the header grew 8 px for the Export button: the chart gives them back, so the table keeps its size */
body:not(.m) #prog .phd>*{position:relative;top:4px}
body:not(.m) #prog .phd>#bXlsx{margin:0 0 0 -2.5px;top:1.18px;left:3.5px}
html body:not(.m) #prog .phd>#bXlsx svg{width:16.35px;height:16.35px;flex:none}   /* web: export icon 2 screen px bigger */   /* Export 3 px from the panel top and left like the other icon buttons; the header text stays centred on it */   /* web: all icon buttons 22x22, icon 14px, lines 1.5px (Settings buttons are the model) */
#bRT:not(.on),#bGear:not(.on),#bShare,#bXlsx{background-color:#322e29}   /* icon buttons 20% lighter: the engraving stands out */
#bXlsx{background:#2a2622 linear-gradient(180deg,rgba(255,255,255,.06),rgba(0,0,0,.14));box-shadow:inset 0 1px 0 rgba(255,255,255,.07),0 1px 0 rgba(0,0,0,.35),0 1px 2px rgba(0,0,0,.25);border-radius:2px}   /* icon buttons: engraved dark icon on the raised button (11-23) */
#bRT:not(.on),#bGear:not(.on),#bShare,#bXlsx{background-color:#3a3530!important;color:#ccc8c1}
#bRT:not(.on):hover,#bGear:not(.on):hover,#bShare:hover,#bXlsx:hover{color:#f0ebe3}
#bRT:not(.on) svg,#bGear:not(.on) svg,#bShare svg,#bXlsx svg{filter:drop-shadow(0 1px 0 rgba(0,0,0,.5))}   /* 11-25: icon buttons lighter, light cream icons instead of engraved dark */
body:not(.m) #bRT svg *{stroke-width:1.14!important}
body:not(.m) #bGear svg *,body:not(.m) #bShare svg *,body:not(.m) #bXlsx svg *{stroke-width:1.71!important}
html body.m #bRT svg *{stroke-width:1.33!important}
html body.m #bXlsx svg *,html body.m #bShare svg *,html body.m #bGear svg *{stroke-width:2!important}   /* 11-25: icon lines 1 px on screen (were 1.5) */
/* desktop STAKE / WIN / NET: one slim strip pressed into the felt, label and value on one line */
body:not(.m) #plqs .plq{display:flex;align-items:baseline;justify-content:center;gap:5px;top:1px;padding:2px 6px 4px;background:var(--well,#0a0908);box-shadow:inset 0 2px 2px -2px rgba(0,0,0,.95),0 1px 0 rgba(255,240,220,.09)}
body:not(.m) #plqs{padding:0!important}
body:not(.m) #plqs .plq:first-child{border-radius:3px 0 0 3px}
body:not(.m) #plqs .plq:last-child{border-radius:0 3px 3px 0}
body:not(.m) #plqs .plq b{overflow:visible}
body:not(.m) #plqs .plq{justify-content:flex-start;padding-left:18px;padding-right:4px}
body:not(.m) #plqs .plq small{flex:none;width:auto;min-width:34px;text-align:right}
body:not(.m) #plqs .plq b{white-space:nowrap}
body:not(.m) #plqs .plq b:not(.pos):not(.neg){color:#d6d2cc}
body:not(.m) #plqs .plq small{display:inline;color:#7f7b76;letter-spacing:.08em}
body:not(.m) #plqs .plq b{display:inline}
/* desktop spin history: one pressed-in rail, numbers written into it (no tiles), coloured like an LED board */
body:not(.m) #hist{background:var(--well,#0a0908);border-radius:3px;padding:0 5px;gap:2px;height:26px;box-sizing:border-box;align-items:center;margin:0;box-shadow:inset 0 1px 3px rgba(0,0,0,.9),0 1px 0 rgba(255,240,220,.07)}   /* right edge: the same 6 px gap as after Clear table (card padding 10 − 4) */
body:not(.m) .hist span{background:none!important;border:0;box-shadow:none;min-width:28px;padding:1px 2px;font-size:15.6px;line-height:1.2}
body:not(.m) .hist span:not(.hint){-webkit-background-clip:text!important;background-clip:text!important;color:transparent!important}
body:not(.m) .hist .red{background-image:linear-gradient(180deg,#ae3f35 24%,#ff7a6a 50%,#ae3f35 76%)!important;filter:drop-shadow(0 0 2px rgba(239,90,76,.28))}
body:not(.m) .hist .black{background-image:linear-gradient(180deg,#948f88 24%,#f0ebe3 50%,#948f88 76%)!important;filter:drop-shadow(0 0 2px rgba(240,235,227,.14))}
body:not(.m) .hist .green{background-image:linear-gradient(180deg,#37925f 24%,#7df0b0 50%,#37925f 76%)!important;filter:drop-shadow(0 0 2px rgba(80,230,140,.28))}
body:not(.m) .hist .hint{padding:0 2px}
.dsep{font-style:normal;font-size:.8em;color:#7f7b76;position:relative;top:-1px}
body:not(.m) #num{border:0;background-clip:border-box;box-shadow:inset 0 0 2px rgba(0,0,0,.6),inset 0 -1px 0 rgba(255,255,255,.08),0 1px 0 rgba(255,240,220,.09);border-radius:4px}   /* top in line with the buttons; dark grey frame */
/* phone: the same material language as the desktop (11-16) */
body.m #num{border:0!important;border-radius:4px;background-clip:border-box;box-shadow:inset 0 0 2px rgba(0,0,0,.6),inset 0 -1px 0 rgba(255,255,255,.08),0 1px 0 rgba(255,240,220,.09)}
body.m #plqs{margin:5px 6px 0!important}
body.m #plqs .plq{flex:1 1 0!important;display:flex;align-items:baseline;justify-content:center;gap:5px;padding:4px 4px 3px;background:var(--well,#0a0908);box-shadow:inset 0 2px 2px -2px rgba(0,0,0,.95),0 1px 0 rgba(255,240,220,.09);top:0}
body.m #plqs .plq:first-child{border-radius:3px 0 0 3px}
body.m #plqs .plq:last-child{border-radius:0 3px 3px 0}
body.m #plqs .plq small{display:inline;color:#7f7b76;letter-spacing:.08em}
body.m #plqs .plq b{display:inline;overflow:visible}
body.m #plqs .plq b:not(.pos):not(.neg){color:#d6d2cc}
body.m .mtabs button{transition:background .1s}
body.m .mtabs button.on{background:var(--well,#0a0908);color:#89ff98;box-shadow:inset 0 2px 4px rgba(0,0,0,.9),inset 0 -1px 0 rgba(255,240,220,.05)}
.rsw button{border-color:transparent;background:#2a2622 linear-gradient(180deg,rgba(255,255,255,.06),rgba(0,0,0,.14));box-shadow:inset 0 1px 0 rgba(255,255,255,.07),0 1px 0 rgba(0,0,0,.35),0 1px 2px rgba(0,0,0,.25)}
.rsw button.on{background:var(--well,#0a0908);color:#ebdecc;font-weight:400;box-shadow:inset 0 2px 4px rgba(0,0,0,.9),0 1px 0 rgba(255,240,220,.07)}
body.m #mStats span:nth-child(even){font-weight:700;color:var(--tx)}
body.m #mStats{flex-direction:column;align-items:center;gap:2px}
body.m #mStats .msr{display:flex;flex-wrap:nowrap;justify-content:center;gap:3px}
body.m #mStats{flex-direction:row;justify-content:center;gap:8px}   /* phone: Spins and Time on one line */   /* phone: stats in 2 centered rows */   /* phone: time values bold like the other counters */
body.m #pStat .ctl input[type=checkbox]{height:22px;width:22px;flex:none}   /* phone: Seed checkbox stays square */
body.m .seedL{width:86px;flex:none}
body.m #iSeed{width:92px;max-width:92px;flex:none}   /* phone: Seed field under the 100 / 10 000 selects, checkbox right before it */
/* checkboxes as big as the fields next to them (21 px desktop, 22 px phone), field takes the rest of the row */
body:not(.m) .pc input[type=checkbox],body:not(.m) #oSeed{width:19px;height:19px}
body:not(.m) #pTest #oSeed{width:17.65px;height:17.65px}   /* Seed checkbox = Seed field height, top and bottom on one line */
body:not(.m) #pTest .seedL{width:89.36px;flex:none}   /* checkbox right edge = button right edge, field = select column above */
body:not(.m) #pTest .seedRow{position:relative;top:-1px}
body.m .pc input[type=checkbox]{width:19px;height:19px}
body.m #pSet .fld select,body.m #pSet .fld input[type=text],body.m #pSet .fld input[type=number]{height:19px!important}
.pc>select,.pc>input:not([type=checkbox]){flex:1;min-width:0;width:auto!important;max-width:none!important}
body.m .pc{width:150px}
input[type=checkbox]:checked::before{inset:3px}
body.m #plqs{margin-top:-3px!important}
body.m #plqs .plq{height:22px;box-sizing:border-box;padding-top:0;padding-bottom:0;align-items:center}
body.m #plqs .plq small{position:relative;top:1px}   /* phone: strip fills the space under the table, text in the middle */
body.m #plqs .plq b{font-size:14.5px}
html body.m #plqs .plq:first-child,html body.m #plqs .plq:last-child{border-radius:0}
html body.m #bRT,html body.m #bXlsx,html body.m #bShare,html body.m #bGear{width:18px;height:18px;padding:0;display:inline-flex;align-items:center;justify-content:center}
html body.m #bRT svg,html body.m #bXlsx svg,html body.m #bShare svg,html body.m #bGear svg{width:12px;height:12px}
html body.m #bRT svg *{stroke-width:2}
html body.m #bXlsx svg *,html body.m #bShare svg *,html body.m #bGear svg *{stroke-width:3}   /* phone: all icon buttons 18x18, icon 12px, lines 1.5px */
html body.m #prog .phd{height:15px;overflow:visible}
html body.m #prog .phd>*{position:relative;top:.8px}
html body.m #prog .phd>#bXlsx{top:-1.95px;margin-left:-2px;left:2.5px}
html body.m:not(.tab) #prog .phd>#bXlsx svg{width:14px;height:14px}   /* phone: export icon 13 px */
#prog .phd{gap:8px}   /* phone: Export 3 px from the panel top/left, 3 px above the table, text centred on it */
html body.m .tc .ctl>#spd{flex:0 0 86px;width:86px;max-width:86px;height:26px;margin:0 -1px -1px;position:relative;top:0;align-self:flex-start}   /* phone: speed box 1 px larger on every side, like the web */   /* phone: square outer corners, the strip reaches the screen edges (width set in JS) */   /* phone: bigger values in the stake strip */
body.fast .hist span{filter:none!important}   /* fast Auto: no glow filter on the history digits (repainted 25x a second) */
body:not(.m) .ctl:has(#bCsv){margin-bottom:-4px}
body:not(.m) #csvN{position:relative;top:-3px}   /* Download CSV as close to the bottom as How it works */

/* Settings: only the group headings give up 2 px each, so the extra Loop row fits without squeezing the fields */
body:not(.m) #pSet>.grp{margin-top:3px}
body:not(.m) #pSet .sdesc{margin-bottom:4px}
#fLoop.off,#fZero.off{opacity:.5}
#fSl.na,#fPw.na{opacity:.5}
#fLoop.off span:first-child{cursor:default}
/* phone: no panel edges or divider lines; backgrounds and shadows stay */
body.m .card,body.m .spinbar,body.m .side{border:0}
body.m #chWrap.mCh{border:0}
body.m .foot,body.m #mTabs,body.m .slot.mSlot{border:0}
body.m .side,body.m .col2>.card,body.m #pProg{background:linear-gradient(180deg,rgba(255,240,220,.058) 0px,rgba(255,240,220,.032) 16px,rgba(255,240,220,.015) 32px,rgba(255,240,220,.0035) 48px,rgba(255,240,220,0) 64px),linear-gradient(0deg,var(--cb,#121110),var(--ct,#1f1d1a));background-repeat:no-repeat;box-shadow:none}
body.m.tab .side,body.m.tab .col2>.card{zoom:1.5}
body.m.tab #prog table{font-size:14.25px}
body.m.tab #prog th{font-size:13.5px}
body.m.tab #pProg .phd{height:19.5px;line-height:18px}
body.m.tab #pProg .phd>*{font-size:16.5px;line-height:18px;height:19.5px}
body.m.tab #prog .phd>*{top:-.5px}
body.m.tab #prog .phd>#bXlsx{top:-.9px;left:2px}
html body.m.tab #prog .phd>#bXlsx svg{width:18px;height:18px}   /* tablet: export icon 2 px bigger, 1 px higher */   /* 11-25 tablet: header text + Export button centred in the bar (strip bottom .. column titles) */   /* tablet: Bets, Settings, Stats and the steps table 1.5x the phone size; buttons and tabs unchanged */

/* Tests: its own block under Stats / Numbers, it does not belong to either tab */
body:not(.m) #pStat{border-bottom-left-radius:0;border-bottom-right-radius:0;padding-bottom:6px}
body:not(.m) #pTest{position:relative;flex:none;display:flex;flex-direction:column;margin:0 -2px -2px;padding:3px 2px 4px;border-radius:0 0 3px 3px;background:linear-gradient(180deg,rgba(255,240,220,.036) 0px,rgba(255,240,220,.0203) 16px,rgba(255,240,220,.009) 32px,rgba(255,240,220,.00225) 48px,rgba(255,240,220,0) 64px),linear-gradient(0deg,var(--cb,#121110),var(--ct,#1f1d1a));background-repeat:no-repeat}
body:not(.m) #pTest>*{flex:none}
body:not(.m) #pTest>.grp.tgrp{margin:0 0 1.36px!important;padding:0;font-size:13px;line-height:17px;letter-spacing:.09em;color:var(--dim);text-align:center}
body:not(.m) #pTest .ctl{margin-top:3.36px!important}
body:not(.m) #pTest .grp+.ctl{margin-top:2px!important}
body:not(.m) #pTest #csvRow{margin-top:5.36px!important}   /* 4 row gaps 3.36 px each: TESTS top = chart top, title 3 px from panel top like the others */
body:not(.m) #pTest .ctl button,body:not(.m) #pTest .ctl select,body:not(.m) #pTest .ctl input[type=text],body:not(.m) #pTest .ctl input[type=number]{height:17.65px;line-height:15px}
body.m #pTest{display:none}
body.m[data-tab=res] #pTest{display:block;margin:5px 0 0;padding:4px 0 0;background:linear-gradient(180deg,rgba(255,240,220,.045),rgba(255,240,220,0) 40px)}
body.m #pTest .ctl{margin-top:2px!important}
body.m #pTest .ctl button,body.m #pTest .ctl select,body.m #pTest .ctl input{height:20px}
body.m #pTest .ctl input[type=checkbox]{height:20px;width:20px;flex:none}
body.m #pTest #bBulk,body.m #pTest #bMC,body.m #pTest #bCsv{width:112px;flex:none;text-transform:uppercase;font-size:10px;letter-spacing:.02em;padding-bottom:2px}   /* phone Tests: capitals and one width like the web */
body.m .infoRow .infoBtn{text-transform:uppercase;font-size:13px;letter-spacing:.02em;padding-bottom:2px}   /* phone bottom buttons in capitals like the web */
body.m #pTest .seedL{width:88px}
body.m select{pointer-events:none}
/* 11-25: phone dropdown lists = same 12.5px / 21px rows as the field lists (was 10px / 17px) */   /* the phone's own picker never opens; taps are handled by our list */   /* checkbox right edge = button right edge, field under the selects */
body.m #pTest .seedRow,body.m #pTest #csvRow{margin-top:4px!important}   /* equal row gaps: the checkbox no longer touches Download CSV */
body.m #pTest .grp{margin:3px 0 1px}
body.m[data-tab=res] .col2>.card{padding-left:2px!important;padding-right:2px!important}
body.m[data-tab=res] #pStat .row,body.m[data-tab=res] #pStat .row.rowAlt{margin:0 -2px;padding:0 4px}
body.m[data-tab=res] #pStat,body.m[data-tab=res] #pTest{padding-left:3px!important;padding-right:3px!important}   /* phone Results: text off the screen edges */
body.m[data-tab=res] #pStat .grp,body.m[data-tab=res] #pTest .grp{padding-left:2px}   /* phone Results: content as wide as the Stats / Numbers tabs */
body.m[data-tab=res] .rsw{margin:0!important}
body.m[data-tab=res] .col2>.card{margin:0!important}
body.m[data-tab=res] .rsw button{border-radius:0!important}
body.m[data-tab=res] .rsw button.on{background:none!important}
body.m[data-tab=res] .col2>.card{background:none!important;border-color:transparent;border-top:0;border-radius:0;box-shadow:none}   /* phone Results: the open tab and the panel under it are one piece, like on the web */
body.m .wrap{padding-left:0!important;padding-right:0!important}
body.m .tc .ctl{margin-left:-6px!important;margin-right:-6px!important}
body.m .tc .ctl>:first-child{border-top-left-radius:0!important;border-bottom-left-radius:0!important}
body.m .tc .ctl>:last-child{border-top-right-radius:0!important;border-bottom-right-radius:0!important}   /* phone: top buttons, Results tabs and panel reach the screen edges, outer corners square */
body.m .mtabs{padding-left:0!important;padding-right:0!important}
body.m .mtabs button:first-child{border-top-left-radius:0;border-bottom-left-radius:0}
body.m .mtabs button:last-child{border-top-right-radius:0;border-bottom-right-radius:0}   /* phone bottom tabs reach the screen edges too */
body.m .side .infoRow{left:0!important;right:0!important}
body.m .infoBtn{height:25px}
body.m .infoRow .infoBtn:first-child{border-top-left-radius:0;border-bottom-left-radius:0}
body.m .infoRow .infoBtn:last-child{border-top-right-radius:0;border-bottom-right-radius:0}   /* phone: How it works / Strategies Guide edge to edge, 3px taller */
body:not(.m) #pSet .fld{height:var(--fh,19px)!important;margin-bottom:0!important}
body:not(.m) #pSet .fld+.fld{margin-top:var(--fg,2px)!important}
body:not(.m) #pSet>.fld+.grp:not(.first),body:not(.m) #pSet>.fld+div>.grp:first-child:not(.first),body:not(.m) #pSet>div+.grp:not(.first),body:not(.m) #pSet>div>.fld+.grp:not(.first),body:not(.m) #pSet>div+div>.grp:first-child:not(.first){margin-top:var(--sg28,9px)!important}   /* group heading 28 px under the last row top, like before: every row starts on the same sub-pixel phase */   /* 11-26: 19 + 2 px, both whole screen pixels at any page scale: every gap between the fields strictly equal */
body:not(.m) #pSet .fld select,body:not(.m) #pSet .fld input[type=number],body:not(.m) #pSet .fld input[type=text]{height:var(--fh,19px)!important}
body:not(.m) #pSet>.grp:not(.first),body:not(.m) #fPw>.grp,body:not(.m) #fSl>.grp{margin-top:7px!important;padding-top:1px}   /* 11-25: same 7 px group gap as the Bets panel */   /* settings a bit tighter: room for Records in the Numbers tab */
body:not(.m) #statBar #cTime{margin-top:3px}
body:not(.m) #statBar{top:17.5px}   /* desktop: Spins row 3px higher, times stay where they were */
body:not(.m)[data-sv=num] #bulkRes{display:none}   /* desktop Numbers tab: the Quick test text would push Tests over the last Records row (it shows on the Stats tab) */
#shareTip{position:absolute;right:56px;top:-1px;z-index:51;padding:2px 7px;font-size:11px;font-weight:600;letter-spacing:0;text-transform:none;color:#74f2aa;background:var(--well,#0a0908);border-radius:2px;box-shadow:inset 0 1px 3px rgba(0,0,0,.9);white-space:nowrap;pointer-events:none}
button:not(.svb):not(:has(svg)),select{padding-top:2px!important}
body.m[data-tab=res] .rsw button{padding-top:0!important}
.infoBtn{padding-top:2px!important}
body:not(.m) #bn,body:not(.m) #mcN{padding-top:0!important}
body:not(.m) #pSet .grp{height:var(--sg15,15px);margin-bottom:var(--sg2,2px)!important;box-sizing:border-box}
body:not(.m) #pSet .pc input[type=checkbox]{width:var(--fh,19px);height:var(--fh,19px)}
body:not(.m) #pSet .fld select,body:not(.m) #pSet .fld input:not([type=checkbox]){border-width:var(--lw,1px)!important;padding-top:var(--fpt,2px)!important;padding-bottom:var(--fpb,2px)!important;line-height:normal}
body:not(.m) #pSet .fld select,body:not(.m) #pSet .fld input:not([type=checkbox]){font-size:13.5px}
body:not(.m) #pSet .fld>span:first-child{padding-left:4px}
body.m #bSpin,body.m #bAuto,body.m #bReset,body.m #bClear,body.m:not(.tab) #pTest button{padding-top:0!important}
body.m.tab #iEvery{padding-top:1px!important}
body.m #pSet .fld>span:first-child{padding-left:4px}
body.m:not(.tab) .foot{height:12px;line-height:12px}
body.m:not(.tab) .wrap{padding-bottom:97px}
body.m:not(.tab) .side .infoRow{bottom:96px}
body.m:not(.tab)[data-tab=res] #pTest{margin-top:0}
body.m:not(.tab) #sNb{padding-top:0!important;padding-bottom:2px!important}
html body.m .tc .ctl>#spd{font-size:12.5px;padding-top:0!important;flex:0 0 90px;width:90px;max-width:90px}
#bAuto.sec:not(.stop){background-color:#1f4a6e;color:#f0ebe3}
#bClear.sec{background-color:#5a4622;color:#f0ebe3}
#bReset.sec{background-color:#5a2624;color:#f0ebe3}   /* 11-25: buttons by meaning: Auto blue, Clear brass, Reset wine; Stop stays bright red */
body.m #mStats span:nth-child(odd){text-transform:uppercase;font-size:10px;letter-spacing:.09em}   /* 11-25 phone: stat labels in capitals like the web */   /* 11-25 phone: RT +- text 2 px higher */
body.m .mtabs button{padding-top:0!important;padding-bottom:2px!important}
html[lang=es] body.m .mtabs button,html[lang=fr] body.m .mtabs button,html[lang=it] body.m .mtabs button,html[lang=pt] body.m .mtabs button,html[lang=uk] body.m .mtabs button,html[lang=nl] body.m .mtabs button,html[lang=pl] body.m .mtabs button,html[lang=sv] body.m .mtabs button,html[lang=lv] body.m .mtabs button{padding-left:0!important;padding-right:0!important}   /* 11-27: ES/FR tabs: no side padding, the free space is shared equally (flex:1 1 auto below) */
html body.m #bSpin,html body.m #bAuto,html body.m #bReset,html body.m #bClear{font-size:14px}
body.m .mtabs button.on{box-shadow:inset 0 1px 2px rgba(0,0,0,.9),0 1px 0 rgba(0,0,0,.35)}   /* 11-25 phone tabs: text 2 px higher (phone renders it low) */   /* 11-25 phone: no dark 5 px gap under the last Stats/Numbers row (it looked like a taller row) */   /* 11-25 phone: House edge strip 12 px (1 px above + below the text), 4 px back to the panels */   /* 11-25 phone + tablet: top buttons and Tests buttons text centred, Bet every N in line, row names 4 px in */   /* 11-25: Settings row names 4 px in from the group titles, like Bets/Strategies */   /* 11-25: Settings: whole-pixel group titles, checkboxes = field height, text in every field on the same line */
body:not(.m) #statBar{text-transform:uppercase;font-size:10px;letter-spacing:.09em}
body:not(.m) #statBar b{font-size:11px;letter-spacing:0;text-transform:none}   /* 11-25: stat labels in capitals like panel titles, values unchanged */   /* 11-25: "every spin" text 1 px higher (web) */   /* 11-25: after the font change all button + dropdown text 1 px lower (2 px top padding, centred = 1 px) */
body:not(.m) .side .pre{display:block!important;line-height:var(--blh,normal)!important;overflow:hidden;height:var(--bh,18px)!important;padding-top:var(--bpt,0px)!important;padding-bottom:var(--bpb,0px)!important}
body:not(.m) .side .plist .pre{line-height:var(--slh,normal)!important;height:var(--sh,16px)!important;padding-top:var(--spt,0px)!important;padding-bottom:var(--spb,0px)!important}
body:not(.m) .side .pbody{gap:var(--lbg,2px)!important}
body:not(.m) .side .presets{gap:var(--lg1,1px)!important}
body:not(.m) .side .presets.plist{gap:var(--sg,1px)!important}
body:not(.m) .side .presets>.pgrp{height:var(--pgh,14.5px)!important;box-sizing:border-box;margin:var(--pgm,6px) 0 var(--pgb,2px)!important;line-height:1.2}
body:not(.m) .side .presets>.pgrp:first-child{margin-top:0!important}   /* 11-26: left panel rows on whole screen pixels, text in the exact middle */
.hdnav{display:flex;align-items:center;gap:20px;padding-right:2px}
.hdnav a{display:inline-flex;align-items:center;gap:6px;font-size:10.5px;font-weight:600;letter-spacing:.09em;text-transform:uppercase;color:var(--dim);text-decoration:none;cursor:pointer}
.hdnav a:hover{color:#e4ddd2}
.hdnav #nAbout span,.hdnav #nGuide span{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}   /* 11-26: About / Guide = icons only, the text stays for Google and screen readers */
html body.m.tab .mtabs button{padding-bottom:0!important}
@media (pointer:fine){
  html body.m .mtabs button{padding-bottom:0!important}
  }   /* 11-26: tab text 1 px lower on tablets and desktop browsers (Kaspars phone draws text lower, it keeps the raised text) */
html body.m.tab #pNum .rk.n{padding-top:2px}
@media (pointer:fine){
  html body.m #pNum .rk.n{padding-top:2px}
  }   /* 11-26: record tile digits 1 px lower on tablets and desktop browsers (centred box: 2 px pad = 1 px move) */
html[lang=de] #mTabs button{letter-spacing:.4px}
@media (max-width:389px){
  html[lang=es] body.m .brand h1,html[lang=es] body.m .brand h1 .slogan{letter-spacing:-.2px}
  }   /* 11-26: Spanish title + slogan fit 360 px phones */
@media (max-width:389px){
  html[lang=de] #mTabs button{font-size:14.5px}
  }   /* 11-26: German phone tabs (Tisch, Wetten, Optionen, Ergebnis) fit 390 px */
html[lang=es] #mTabs button,html[lang=fr] #mTabs button,html[lang=it] #mTabs button,html[lang=pt] #mTabs button,html[lang=uk] #mTabs button,html[lang=nl] #mTabs button,html[lang=pl] #mTabs button,html[lang=sv] #mTabs button,html[lang=lv] #mTabs button{letter-spacing:.4px;font-size:15px;flex:1 1 auto}
@media (max-width:389px){
  html[lang=es] #mTabs button,html[lang=fr] #mTabs button,html[lang=it] #mTabs button,html[lang=pt] #mTabs button,html[lang=uk] #mTabs button,html[lang=nl] #mTabs button,html[lang=pl] #mTabs button,html[lang=sv] #mTabs button,html[lang=lv] #mTabs button{font-size:14px}
  }   /* 11-27: Spanish + French phone tabs (Resultados, Résultats, Réglages) fit with air at 360-430 px, like German */
html body:not(.m) .hdnav{padding-right:var(--nvP,8px);gap:var(--nvS,18px)}   /* 11-26: right edge gap = the title left gap (8 px), icons 2 px closer */
/* 11-26 header icons = one system on web, phone, tablet: 12 px grid, 1.2 stroke, ~10 px tall; EN caps as tall as the icons, chevron in the same line */
html .hdnav #nAbout svg,html .hdnav #nGuide svg{width:12px;height:12px;transform:none}
html #langBtn{font-size:13.5px;font-weight:500;letter-spacing:.04em;gap:5px}html #langBtn{height:auto;min-height:0;padding:0;line-height:1.2}   /* 11-27: the language button no longer sets the header height (buttons default to 28 px) */
html #langBtn svg{flex:none}
html body:not(.m) .hdnav #nAbout svg{width:var(--nvA,14.4px);height:var(--nvA,14.4px)}
html body:not(.m) .hdnav #nGuide svg{width:var(--nvG,15.2px);height:var(--nvG,15.2px)}
html body:not(.m) .hdnav #nAbout svg,html body:not(.m) .hdnav #nGuide svg{stroke-width:1}
html body:not(.m) .hdnav #nAbout svg circle:last-child{stroke-width:1.3}
html body:not(.m) .hdnav #nAbout,html body:not(.m) .hdnav #nGuide{color:#8f8579}
html body:not(.m) .hdnav #nAbout:hover,html body:not(.m) .hdnav #nGuide:hover{color:#e4ddd2}   /* 11-26: web: book + info 16 px, thin 1.0 lines, a little darker */
html body:not(.m) #langBtn{font-size:var(--nvF,12.5px)}
html #langBtn svg{width:var(--nvTw,8px);height:var(--nvTh,5px)}   /* web: EN 1 px bigger, cap top kept (baseline stays, caps grow .73 px up, so .73 px down) */
html body.m .hdnav{padding-right:var(--nvP,5px);gap:var(--nvS,16px)}
html body.m #langBtn{font-size:var(--nvF,10.5px)}
html body.m .hdnav #nAbout svg{width:var(--nvA,12px);height:var(--nvA,12px)}
html body.m .hdnav #nGuide svg{width:var(--nvG,12px);height:var(--nvG,12px)}   /* phone + tablet: right gap = title left gap (5 px) */
.hdnav .lang{position:relative;display:inline-flex}
#langBtn{display:inline-flex;align-items:center;gap:5px;padding:0;background:none;border:0;font:inherit;font-size:10.5px;font-weight:600;letter-spacing:.09em;color:var(--dim);cursor:pointer}
#langBtn:hover,#nLang.on #langBtn{color:#e4ddd2}
.langL{display:none;position:absolute;right:-6px;top:100%;margin-top:6px;min-width:96px;z-index:60;background:#0e0d0c;border:1px solid var(--line);box-shadow:0 6px 16px rgba(0,0,0,.5);flex-direction:column}
#nLang.on .langL{display:flex}
.hdnav .langL a{display:block;height:18px;line-height:18px;padding:0 8px;font-size:12.5px;font-weight:400;letter-spacing:0;text-transform:none;color:var(--tx)}
.hdnav .langL a:hover{background:#2a2622;color:var(--tx)}
.hdnav .langL a{display:flex!important;align-items:center;gap:7px}
:is(.langL,#langBtn) .fl{flex:none;width:14px;height:10px;border-radius:1px;box-shadow:0 0 0 1px rgba(0,0,0,.45);background-size:100% 100%}
:is(.langL,#langBtn) .fl-de{background:linear-gradient(#1a1a1a 0 33.4%,#c63b2d 33.4% 66.7%,#e8b931 66.7%)}
:is(.langL,#langBtn) .fl-fr{background:linear-gradient(90deg,#243a7a 0 33.4%,#f0ebe3 33.4% 66.7%,#c63b2d 66.7%)}:is(.langL,#langBtn) .fl-es{background:linear-gradient(#c63b2d 0 25%,#e8b931 25% 75%,#c63b2d 75%)}
:is(.langL,#langBtn) .fl-pt{background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 10'%3E%3Crect width='14' height='10' fill='%231f8a4c'/%3E%3Cpath d='M7 1.2L12.6 5L7 8.8L1.4 5z' fill='%23e8b931'/%3E%3Ccircle cx='7' cy='5' r='2' fill='%23243a7a'/%3E%3C/svg%3E") center/100% 100%}
:is(.langL,#langBtn) .fl-uk{background:linear-gradient(#2f6fd1 0 50%,#e8b931 50%)}
.fl-ru{background:linear-gradient(#f4f4f4 0 33.4%,#1c57a7 33.4% 66.7%,#d52b1e 66.7%)}
:is(.langL,#langBtn) .fl-nl{background:linear-gradient(#c63b2d 0 33.4%,#f0ebe3 33.4% 66.7%,#243a7a 66.7%)}
:is(.langL,#langBtn) .fl-pl{background:linear-gradient(#f0ebe3 0 50%,#c63b2d 50%)}
:is(.langL,#langBtn) .fl-sv{background:linear-gradient(90deg,transparent 0 31%,#e8b931 31% 47%,transparent 47%),linear-gradient(#2f6fd1 0 40%,#e8b931 40% 60%,#2f6fd1 60%)}
:is(.langL,#langBtn) .fl-lv{background:linear-gradient(#8e2a2a 0 40%,#f0ebe3 40% 60%,#8e2a2a 60%)}
.fl-ro{background:linear-gradient(90deg,#2b4a8c 0 33.4%,#d9b43c 33.4% 66.6%,#b8392d 66.6%)}
.fl-tr{background:radial-gradient(circle at 47% 50%,#c8102e 0 24%,transparent 25%),radial-gradient(circle at 38% 50%,#f4f4f4 0 31%,transparent 32%),#c8102e}   /* 12-03 Turkish: red with a white crescent */
:is(.langL,#langBtn) .fl-it{background:linear-gradient(90deg,#1f8a4c 0 33.4%,#f0ebe3 33.4% 66.7%,#c63b2d 66.7%)}
:is(.langL,#langBtn) .fl-en{background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 10'%3E%3Crect width='14' height='10' fill='%23243a7a'/%3E%3Cpath d='M0 0L14 10M14 0L0 10' stroke='%23f0ebe3' stroke-width='2'/%3E%3Cpath d='M0 0L14 10M14 0L0 10' stroke='%23c63b2d' stroke-width='.8'/%3E%3Cpath d='M7 0V10M0 5H14' stroke='%23f0ebe3' stroke-width='3.2'/%3E%3Cpath d='M7 0V10M0 5H14' stroke='%23c63b2d' stroke-width='1.8'/%3E%3C/svg%3E")}   /* 11-26: small flat flags in the language list (no pure white) */
.hdnav .langL a.cur{background-image:linear-gradient(90deg,rgba(52,210,123,.40),rgba(52,210,123,0) 100%)}   /* 11-26: language list = our dropdown list style, chosen = green fade */
.hdnav svg{flex:none;display:block}
body:not(.m) .side .infoRow{display:none}
body:not(.m) .side .pblock:nth-of-type(2){margin-bottom:-2px}   /* 11-26: About / Guide live in the header (desktop); the phone keeps its buttons in Bets */
body.m .side .infoRow{display:none!important}
body.m .hdnav{flex:none;gap:16px;padding-right:6px}
body.m .hdnav a{font-size:11px}   /* 11-26 phone/tablet: About / Guide in the header too (the Bets buttons are gone) */
body.m header.hd{height:auto!important;padding:1px 0 0 5px!important;align-items:center}
body.m .brand h1{display:block!important;white-space:nowrap;line-height:12px}
body.m .brand h1 .slogan{display:block!important;margin:0!important;padding:0!important;font-size:10.5px;line-height:13px}
body.m .brand h1 .slogan>span{transform:none!important}   /* phone: slogan under the name, readable */
@media (max-width:389px){
  body.m .hdnav a span{display:none}
  body.m .hdnav{gap:14px}
  body.m .hdnav svg{transform:scale(1.25)}
  }   /* narrow phones: icons only */
body.m:not(.tab) #pTest .ctl,body.m:not(.tab) #pTest .ctl button,body.m:not(.tab) #pTest .ctl select,body.m:not(.tab) #pTest .ctl input{height:19px!important}
body.m:not(.tab) #pTest .ctl input[type=checkbox]{width:19px!important}
body.m:not(.tab) #pTest>.grp.tgrp{margin-top:2px!important}   /* 11-26: Results fits 414x736 (Tests rows 1 px lower) */
body.m:not(.tab) .side .pre{padding-top:1px!important;padding-bottom:1px!important}
body.m.tab .side .pre{padding-top:.75px!important;padding-bottom:1.75px!important}   /* measured on Kaspars phone + tablet 11-26 */   /* 11-26: phone/tablet Bets + Strategies rows: text in the middle on the device (phones draw text ~1.5 px lower than headless) */
body.m .side .pbody .pre{margin-left:-6px;padding-left:13px!important}
body.m .side .plist .pre{margin-right:-6px;padding-right:13px!important}   /* 11-26: phone/tablet active row fill from the screen edge (Bets left, Strategies right), text stays */
html body .wrap .side .pbody .pre{box-sizing:border-box!important;height:var(--qbH,18px)!important;line-height:0!important;padding-top:var(--qbPT,0px)!important;padding-bottom:0!important;border-top-width:0!important;border-bottom-width:0!important;align-items:flex-start!important;overflow:visible}
html body .wrap .side .presets.plist .pre{box-sizing:border-box!important;height:var(--qsH,16px)!important;line-height:0!important;padding-top:var(--qsPT,0px)!important;padding-bottom:0!important;border-top-width:0!important;border-bottom-width:0!important;align-items:flex-start!important;overflow:visible}
html body .wrap .side .pbody .pre *,html body .wrap .side .presets.plist .pre *{line-height:inherit!important;vertical-align:baseline}   /* 11-26: 1 px above the tallest letter, 1 px under the g/j/y tail (fitRowText) */
body:not(.m) .side .plist .pre,body:not(.m) #pSet .fld select,body:not(.m) #pSet .fld input:not([type=checkbox]),body:not(.m) #pTest .ctl span,body:not(.m) #pTest #csvN{font-size:12px!important}   /* 11-26: one text size (12 px) for every row in both side panels */
html body .wrap .side .pbody .pre,html body .wrap .side .presets.plist .pre{display:block!important;padding-top:0!important}
html body .wrap .side .pbody .pre::before,html body .wrap .side .presets.plist .pre::before{content:"";display:block;height:0}
html body .wrap .side .pbody .pre::before{margin-top:var(--qbTY,0px)}
html body .wrap .side .presets.plist .pre::before{margin-top:var(--qsTY,0px)}
body.m .side .plist .pre{text-align:right}
body.m .side .pbody .pre,body.m .side .presets.plist .pre{position:relative}
body.m .side .pbody .pre::after,body.m .side .presets.plist .pre::after{content:"";position:absolute;left:0;right:0;top:-1px;height:1px;pointer-events:none;background:inherit}   /* mobile only: extend the row and its active/hover fill 1 px upward with the exact same background rendering as the row */
body.m .side #presets>.pgrp{margin-top:0;margin-bottom:0}
body.m .side #presets>.pgrp+.pbody{margin-top:2px}
body.m .side .presets.plist{gap:2px}
body.m .side .presets.plist>.pgrp{margin-top:0;margin-bottom:0}
body.m .side .presets.plist>.pgrp:not(:first-child){margin-top:-1px}
body.m .side .presets.plist>.pgrp+.pre{margin-top:1px}   /* after the 1 px upward fill, exactly 1 visible px remains between rows and titles */
body.m .side .pbody .pre.on,body.m .side .pbody .pre.on:hover,body.m .side .presets.plist .pre.on,body.m .side .presets.plist .pre.on:hover{z-index:0;background-image:none}
body.m .side .pbody .pre.on::after{height:calc(100% + 1px);z-index:-1;background-image:linear-gradient(90deg,rgba(52,210,123,.40),rgba(52,210,123,0) 100%)}
body.m .side .presets.plist .pre.on::after{height:calc(100% + 1px);z-index:-1;background-image:linear-gradient(270deg,rgba(52,210,123,.40),rgba(52,210,123,0) 100%)}   /* Chrome: one continuous fill for the active row and its top extension, so the top edge cannot break into separate strips */
#presets .pre .nm{min-width:var(--nmW,6.4em)!important}
input[type=checkbox]:checked::before{inset:calc(2*var(--lw,1px))!important}   /* 11-26: the green light fills the box with exactly 1 screen px on every side */
body:not(.m) #pSet #sRn{padding-top:0!important;padding-bottom:calc(2 * var(--lw,1px) - var(--fpt,0px))!important}   /* 11-26: Shuffle bets text 1 screen px higher (Kaspars) */
body.m:not(.tab) #sRn{padding-top:0!important}   /* 11-26: phone Shuffle bets text 1 px higher */
body.m .side .pre,body.m .side .plist .pre,body.m #pSet .fld>span:first-child,body.m #pSet .fld select,body.m #pSet .fld input:not([type=checkbox]),body.m #pStat .row,body.m #pTest .ctl span,body.m #pTest .ctl label,body.m #pTest #csvN,body.m #evN{font-size:12px!important}   /* 11-26: phone + tablet: one text size (12 px) like the web */
#gearPop button{border-width:var(--lw,1px)!important}
#gearPop .sw button.on{outline-width:var(--lw,1px)!important}   /* 11-26: gear menu active frames 1 screen px */
#gearPop .th button,#gearPop #sndW button,#gearPop #sndB button{border-color:transparent!important;background:#2e2a26!important;color:#a39a8e!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.07),0 1px 0 rgba(0,0,0,.35),0 1px 2px rgba(0,0,0,.25)!important}
#gearPop .th button.on,#gearPop #sndW button.on,#gearPop #sndB button.on{background:var(--well,#0a0908)!important;color:#74f2aa!important;box-shadow:inset 0 1px 2px rgba(0,0,0,.85),0 1px 0 rgba(255,240,220,.06)!important}
#gearPop .sw button{position:relative}
#gearPop .sw button.on{outline:none!important}
#gearPop .sw button.on::after{content:"";position:absolute;left:calc(-1 * var(--lw,1px));right:calc(-1 * var(--lw,1px));bottom:calc(-4 * var(--lw,1px));height:var(--lw,1px);background:#74f2aa}   /* 11-26: gear menu: the chosen option is pressed in with green text (no frame); chosen colour = thin cream line 2 px under it */
#gearPop{border:0!important}
#gearPop .th button,#gearPop #sndW button,#gearPop #sndB button{box-shadow:none!important;background:#2a2622!important}
#gearPop .th button.on,#gearPop #sndW button.on,#gearPop #sndB button.on{background:var(--well,#0a0908)!important;box-shadow:inset 0 1px 1px rgba(0,0,0,.55)!important}   /* 11-26: gear menu without its edge line, flatter buttons */
#gearPop{background:#2a2724!important}
#gearPop .th button:not(.on),#gearPop #sndW button:not(.on),#gearPop #sndB button:not(.on){box-shadow:inset 0 1px 0 rgba(255,255,255,.028),0 1px 0 rgba(0,0,0,.14),0 1px 2px rgba(0,0,0,.1)!important}   /* 11-26: lighter gear box, buttons 40% of the old relief */
#gearPop .snd input[type=checkbox]{width:calc(15 * var(--lw,1px))!important;height:calc(15 * var(--lw,1px))!important}
#gearPop .snd input[type=checkbox]:checked::before{inset:var(--lw,1px)!important}   /* 11-26: sound box 15 screen px, light 1 px inside */
#gearPop #bResetSet{border-color:transparent!important;background:#2a2622!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.028),0 1px 0 rgba(0,0,0,.14),0 1px 2px rgba(0,0,0,.1)!important}   /* 11-26: Reset settings in the same style as the other gear buttons, no edge line */
select,input.hasSug{color:#ccc8c1}   /* dropdown values: exactly 15% less bright than #f0ebe3; labels, arrows and option lists unchanged */

/* 11-26: the 4 icon buttons (RT, Export, Share, Settings) = plain icons, no button look; on = green LED glow */
html body #bRT#bRT,html body #bXlsx,html body #bShare,html body #bGear#bGear,html body #bRT#bRT:hover,html body #bGear#bGear:hover,html body #bXlsx:hover,html body #bShare:hover,html body #bGear:hover,html body #bRT:active,html body #bXlsx:active,html body #bShare:active,html body #bGear:active,html body #bRT.on,html body #bGear.on{background:transparent!important;border-color:transparent!important;box-shadow:none!important;transform:none!important}
html body #bRT:not(.on),html body #bGear:not(.on),html body #bShare,html body #bXlsx{color:#ccc8c1}
html body #bRT:not(.on):hover,html body #bGear:not(.on):hover,html body #bShare:hover,html body #bXlsx:hover{color:#f0ebe3}
html body #bRT:not(.on) svg,html body #bGear:not(.on) svg,html body #bShare svg,html body #bXlsx svg{filter:none}
html body #bRT.on,html body #bGear.on{color:#74f2aa}
html body:not(.m) #bRT{position:relative;left:0;top:-3.3px}
html body:not(.m) #bRT#bRT svg{width:16.35px;height:16.35px;flex:none}   /* web: racetrack icon 2 screen px bigger */
html body.m #bRT{position:relative;left:1px;top:1px}
html body.m.tab #bRT{left:1px;top:1.33px}
html body.m #bRT#bRT svg{width:18px;height:18px;flex:none}   /* phone + tablet: racetrack icon 18 px */   /* tablet draws 1.5x: same 6 screen px as the phone */
html body #bRT.on svg,html body #bGear.on svg{filter:drop-shadow(0 0 2px rgba(80,230,140,.8)) drop-shadow(0 0 4px rgba(80,230,140,.45))}

/* 11-26: number tiles square, 15 per row everywhere: LAST 30 = 2 rows, COLD 7 + empty slot + HOT 7 */
#pNum .nl{display:grid!important;grid-template-columns:repeat(15,minmax(0,26px));gap:3px}
#pNum .nl.hcrow{grid-template-columns:repeat(7,minmax(0,26px)) minmax(calc((100% - 42px)/15),1fr) repeat(7,minmax(0,26px))}   /* tiles max 26px; Cold at the left, Hot at the right edge */
body.m.tab #pNum .nl,body.m.tab #pNum .nl.hcrow{grid-template-columns:repeat(15,22px);justify-content:center}
body.m:not(.tab) #pNum .nl,body.m:not(.tab) #pNum .nl.hcrow{grid-template-columns:repeat(15,minmax(0,26px));justify-content:center}   /* phone: fills a narrow phone, centred when wider */
body.m:not(.tab) #pNum>.grp:first-child,body.m:not(.tab) #pNum>.grp.hc{width:auto;max-width:432px;margin-left:auto;margin-right:auto;box-sizing:border-box;padding-left:0;padding-right:0}
body.m:not(.tab) #pNum,body.m:not(.tab) #pTest{width:auto;max-width:432px;margin-left:auto;margin-right:auto}
body.m.tab #pNum,body.m.tab #pTest,body.m.tab #pSet{width:auto;max-width:372px;margin-left:auto;margin-right:auto}   /* 11-28 tablet: Settings block as wide as Results, label close to its field */   /* the whole Numbers column = the tile block width, centred */
body.m.tab #pNum>.grp:first-child,body.m.tab #pNum>.grp.hc{width:auto;max-width:372px;margin-left:auto;margin-right:auto;box-sizing:border-box;padding-left:0;padding-right:0}   /* tablet: smaller tiles, centred */
#pNum .nl .nb{min-width:0;flex:none}
#pNum .nb i.red,#pNum .nb i.black,#pNum .nb i.green{box-shadow:inset 0 1px 1px rgba(0,0,0,.3),inset 0 -1px 0 rgba(255,240,220,.05)}
#pNum .nb i{height:auto!important;aspect-ratio:1/1;display:flex!important;align-items:center;justify-content:center;line-height:1!important}

/* 11-26: Records = what | how long | rare odds, in aligned columns */
#pNum .rgr,#rCur,#rCol,#rEO,#rLH,#rDz,#rCl,#rSame,#rDr,#rNz{display:inline-grid;grid-template-columns:48px 62px 40px;column-gap:4px;align-items:center;justify-content:end}
#pNum .grp.rhd{display:flex;align-items:baseline;justify-content:space-between}
#pNum .rhd .rgr span{font-size:10px;font-weight:400;color:var(--dim);text-transform:none;letter-spacing:normal}
#pNum .rhd .rgr .rw{text-align:left;justify-content:flex-start}
#pNum .rhd .rgr .ro{text-align:left}
#pNum .ro{text-align:left!important}   /* Chance: straight left edge, title on it */
#pNum .rhd .rgr .rn{text-align:right}
#pNum .rw{text-align:left;display:flex;align-items:center}
#pNum .rn{text-align:right}
#pNum .ro{text-align:right;font-weight:400}
#pNum .rk{display:inline-flex;align-items:center;justify-content:center;width:13px;height:13px;border-radius:2px;font-style:normal;box-shadow:inset 0 1px 1px rgba(0,0,0,.3),inset 0 -1px 0 rgba(255,240,220,.05)}
#pNum .rk.red{background:var(--red)}
#pNum .rk.black{background:var(--blk);box-shadow:inset 0 0 0 1px rgba(214,210,204,.4)}
#pNum .rk.green{background:var(--grn)}
#pNum .rk.n{width:auto;min-width:16px;padding:0 2px;font-size:10.5px;font-weight:700;color:#d6d2cc;box-sizing:border-box}
#tipPop.lt{padding-top:4px;padding-bottom:4px}
#tipPop *{text-shadow:none}   /* phone/tablet list tips: less top and bottom */
body.m .side .pre,body.m .side .tipl{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}   /* hold for the tip: no browser text menu */
body:not(.m) .tc .ctl{position:relative;top:1.18px}   /* web: Spin row (buttons + speed) 1 screen px lower */
html body.m .tc .ctl{gap:1px}   /* phone + tablet: 1 px between the Spin row buttons */
html body.m.tab #prog th:last-child{padding-right:8px;padding-left:5px}   /* tablet: Times header text 2 px to the right, cell width unchanged */
html body.m #mTabs{gap:1px}   /* phone + tablet: 1 px between the bottom tabs */
html body.m .tc .ctl>#spd{box-shadow:none;border:0;border-radius:0}
html body.m .tc .ctl>#spd{flex:0 0 92px;width:92px;max-width:92px;height:25px;margin:0 -2px;z-index:0;padding:0 17px 0 7px!important;background-position:right 5px center}   /* text and arrow 3 px nearer the centre */
html body.m .tc .ctl>button{position:relative;z-index:1}   /* the speed field runs 1 px under AUTO and RESET: no corner gaps */   /* phone + tablet: flat speed field, reaching right up to AUTO and RESET */
html body.m:not(.tab) #pNum>.grp:first-child{margin-top:1px}   /* phone: LAST 30 2 px higher */
html body.m:not(.tab) #pTest{padding-top:2px}   /* phone: TESTS 2 px higher */
html body.m:not(.tab) #pNum>.grp.hc{margin-top:2px}   /* phone: COLD/HOT 1 px less space above */
html body.m:not(.tab) #pNum .rgr,html body.m:not(.tab) #rCur,html body.m:not(.tab) #rCol,html body.m:not(.tab) #rEO,html body.m:not(.tab) #rLH,html body.m:not(.tab) #rDz,html body.m:not(.tab) #rCl,html body.m:not(.tab) #rSame,html body.m:not(.tab) #rDr,html body.m:not(.tab) #rNz{grid-template-columns:57px 62px 36px}   /* phone: What stays, Chance 4 px right of the original */
html body.m:not(.tab)[data-tab=res] .col2>.card{padding-bottom:3px}
html body.m:not(.tab) #pNum .row{height:14px;line-height:14px}   /* phone: 1 px lower rows pay for the Droughts title */
html body.m:not(.tab) #pNum>.grp.rhd{margin-top:1px}   /* phone: Records + Droughts titles 2 px less space above */   /* phone: Results 5 px less at the bottom */

   /* 11-26: Download CSV under Monte Carlo, Seed on the same row at the right */

/* 11-26 phone + tablet: Tests in two rows: Quick test | Seed, Monte Carlo | Download, a thin wall between (layout only, markup unchanged) */
body.m[data-tab=res] #pTest{display:grid;grid-template-columns:auto 1px auto;justify-content:start;align-items:center;column-gap:7px}
body.m #pTest>*{grid-column:1/-1}
body.m #pTest>.ctl:not(.seedRow):not(#csvRow){grid-column:1;width:max-content}
body.m #pTest>.seedRow{grid-column:3;grid-row:2;justify-self:start}
body.m #pTest>#csvRow{grid-column:3;grid-row:3;justify-self:start}
body.m #pTest>#bulkRes{grid-row:4}
body.m #pTest>.tgrp{grid-row:1}
body.m[data-tab=res] #pTest::after{content:"";grid-column:2;grid-row:2/4;align-self:stretch;width:1px;margin:6px 0 2px;background:rgba(255,240,220,.12)}
body.m #pTest #bCsv{flex:none;width:auto!important;max-width:none!important;min-width:0;padding:0 8px;white-space:nowrap}
body.m #pTest .seedRow .seedL{width:auto;padding-left:0;padding-right:4px}
body.m:not(.tab) #pTest #iSeed{flex:none;width:75px;max-width:75px}
body.m.tab #pTest #iSeed{flex:none;width:74px;max-width:74px}   /* seed field ends on the Download button right edge */
body.m #pTest #bBulk,body.m #pTest #bMC{width:92px!important;max-width:92px!important;flex:none!important}   /* phone + tablet: Quick test / Monte Carlo just wide enough for their text */
#csvRow #csvN{flex:none;min-width:0;text-align:left;font-variant-numeric:tabular-nums}   /* fixed slot: a growing count never moves anything */
#bCsv{flex:none;white-space:nowrap}
html body:not(.m) #pTest #bBulk,html body:not(.m) #pTest #bMC{width:84px;padding-left:0;padding-right:0}
html body:not(.m) #pTest #bCsv{width:132px;padding-left:0;padding-right:0}   /* 11-26: Quick test / Monte Carlo just wide enough, Download fits DOWNLOAD SPINS CSV */
/* 11-26 web: Tests in a grid: Quick test | Seed on one row, Monte Carlo, Download under it (layout only, markup unchanged) */
html body:not(.m) #pTest{display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:6px;align-items:center}
html body:not(.m) #pTest #bn,html body:not(.m) #pTest #mcN{width:90px}
html body:not(.m) #pTest .seedRow{gap:4px}
html body:not(.m) #pTest #iSeed{padding-left:4px;padding-right:4px}
html body:not(.m) #pTest>*{grid-column:1/-1}
html body:not(.m) #pTest>.ctl:not(.seedRow){grid-column:1}
html body:not(.m) #pTest>.seedRow{grid-column:2;grid-row:2;margin-top:2px!important;top:0;min-width:0}
html body:not(.m) #pTest .seedL{width:auto;padding-left:0;padding-right:0}
html body:not(.m) #pTest #iSeed{flex:1 1 auto;width:auto;min-width:0;max-width:none}
html body:not(.m) #pSet .fld select,html body:not(.m) #pSet .fld input[type=number],html body:not(.m) #pSet .fld input[type=text]{width:154px;max-width:154px}
html body:not(.m) #pSet .pc{width:154px}   /* 11-26: Settings fields 8 px wider: "Online standard (10k)" fits */
html body:not(.m) #pTest #csvN{margin-left:6px}   /* count starts where the select text starts */
html body:not(.m) #pStat>.row>span:first-child,html body:not(.m) #pNum .row>span:first-child{padding-left:4px}   /* 11-26: row names 4 px in from their group title, like Settings */
html body:not(.m) #pNum .rgr,html body:not(.m) #rCur,html body:not(.m) #rCol,html body:not(.m) #rEO,html body:not(.m) #rLH,html body:not(.m) #rDz,html body:not(.m) #rCl,html body:not(.m) #rSame,html body:not(.m) #rDr,html body:not(.m) #rNz{grid-template-columns:53px 57px 40px}   /* 11-26: Chance column 5 px right */
html body:not(.m) #pNum .rhd .rgr{margin-right:4px}   /* What / Chance / Times / Spins titles over their values (rows have 4 px more right padding) */
   /* 11-26: Download CSV as wide as Monte Carlo + its list, with the round count on it */
/* 11-27: speed box 1 screen px bigger left, right and down; top edge, text and arrow stay (var(--lw) = 1 screen px) */
html body:not(.m) #spd{width:calc(96px + 2*var(--lw,1px));max-width:calc(96px + 2*var(--lw,1px));margin-left:calc(-1*var(--lw,1px));margin-right:calc(-1*var(--lw,1px));height:calc(27.82px + var(--lw,1px));margin-bottom:calc(-1px - var(--lw,1px));padding-left:calc(7px + var(--lw,1px));padding-right:calc(18px + var(--lw,1px));padding-bottom:var(--lw,1px);background-position:right calc(4px + var(--lw,1px)) center}
/* 11-27: all dropdown fields (selects + fields with a suggestion list) a little shallower: softer inner shadow */
html body select,html body input.hasSug{box-shadow:inset 0 1px 1px rgba(0,0,0,.55),0 1px 0 rgba(255,240,220,.06)!important}
/* 11-27: French title + slogan fit 360 px phones */
@media (max-width:389px){html[lang=fr] body.m .brand h1{zoom:.9}}
/* 11-27: ONE top panel from the page top: header (title + 3 icons) and spin bar share a single background, border and shadow drawn by .spinbar::before (reaches up --hdH = header height); header and bar themselves are see-through, nothing moves */
.inner>header.hd{background:none!important;box-shadow:none}
.inner>.spinbar{background:none;border-color:transparent;box-shadow:none}
.inner>.spinbar::before{content:"";position:absolute;z-index:-1;left:-1px;right:-1px;bottom:-1px;top:calc(-1px - var(--hdH,0px));background:linear-gradient(0deg,var(--cb,#121110),var(--ct,#1f1d1a));border:1px solid transparent;background-origin:border-box;border-radius:0 0 var(--r) var(--r);box-shadow:0 3px 10px rgba(0,0,0,.2);pointer-events:none}
body.m .inner>.spinbar::before{border-width:0;left:0;right:0;bottom:0;top:calc(0px - var(--hdH,0px))}
body:not(.m) .inner>header.hd{margin-bottom:-5px;position:relative;z-index:3}   /* 11-27: web: title as close to the buttons as to the panel top (ink gap ~equal), the page moves up */
body:not(.m) #prog .phd{position:relative}
body:not(.m) #prog .phd>.cnt{position:absolute;left:30px;right:30px;top:4px;text-align:center}   /* 11-27: web: strategy line centred on the panel, same 30 px kept free on both sides (export icon left, warning sign right, shown or not) */
body.m #prog .phd{position:relative}
body.m #prog .phd>.cnt{position:absolute;left:32px;right:32px;top:0;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.m.tab #prog .phd>.cnt{left:30px;right:30px}   /* 11-27: phone/tablet: strategy line centred like the web; free space both sides = export icon (left) / warning sign (right) + gap */
#prog .phd>.cnt.lft{position:static!important;text-align:left!important}   /* 11-27: a line too long to centre (long names on 360 px phones) stays left as before, never cut */
/* 11-27: phone + tablet: bank number sits ON the chart (bottom centre), no own row; chart bottom = winning-number box bottom; block ~10 px lower */
html body.m .tc{grid-template-areas:"num tm" "num ch" "ctl ctl";grid-template-rows:auto 1fr auto}
html body.m #chWrap.mCh{grid-area:ch;align-self:stretch;height:auto;min-height:0;margin:1px -4px 0 0}
html body.m #mBank{grid-area:ch;align-self:end;justify-self:center;transform:none;position:relative;z-index:1;pointer-events:none;padding:0 10px;margin:0 0 -1px;background:radial-gradient(closest-side,color-mix(in srgb,var(--cb,#121110) 88%,transparent) 55%,transparent)}
html body.m .tc{grid-template-areas:"tm tm" "num ch" "ctl ctl";grid-template-columns:39px minmax(0,1fr)!important}
html body.m #num{width:42px!important;height:42px!important;font-size:27px!important;align-self:start;margin:1px 0 0 -5px}   /* 11-28: box 1 px from the screen left edge (was 3, measured) */   /* 11-27: winning-number box = chart height (42 px), stats row over both; tablet slogan under the name like the phone */
html body.m #mBank{grid-area:2/1/3/3}   /* 11-27: bank centred on the SCREEN (whole row), not on the chart */
html body.m #mBank{align-self:center;margin:0;padding:0 8px;border-radius:6px;background:color-mix(in srgb,var(--cb,#121110) 72%,transparent);box-shadow:0 0 8px 5px color-mix(in srgb,var(--cb,#121110) 72%,transparent)}   /* 11-27: bank in the middle of the chart on a soft faded patch that dims the chart under it */
html body.m #mBank{box-shadow:none;border-radius:0;overflow:visible;padding:11px 32px;margin:-11px -24px;background:radial-gradient(closest-side,color-mix(in srgb,var(--cb,#121110) 74%,transparent) 35%,color-mix(in srgb,var(--cb,#121110) 40%,transparent) 68%,transparent)}   /* 11-27: softer fade, ~20 % wider to the sides (padding + equal negative margin: the number does not move, its size fit is untouched) */
/* 11-27: phone/tablet: RT icon sits in the empty corner under the zero (placeRT), the bar above the table shows only while the racetrack is on (Neighbours) */
body.m #pTable{position:relative}
body.m #bRT.rtC{position:absolute;z-index:6;margin:0}
body.m .rtbar:not(:has(#oRack:checked)){display:none!important}
body.m .rtbar{display:none!important}
body.m #nbWrap.nbC{position:absolute;z-index:6;margin:0;display:block}
body.m #nbWrap.nbC select{width:100%!important;min-width:0!important;height:18px;padding:0!important;background-image:none!important;text-align:center;text-align-last:center;font-size:11px}   /* 11-27: phone/tablet: Neighbours box right above the RT icon in the corner under the zero (no bar above the table at all) */
body:not(.m) #pTable{position:relative}
body:not(.m) #bRT.rtC{position:absolute;z-index:6;margin:0}
body:not(.m) #nbWrap.nbC{position:absolute;z-index:6;margin:0;display:block}
body:not(.m) #nbWrap.nbC[style*="none"]{display:none!important}   /* 11-27 web: RT icon in the felt bottom-left corner (3 px), Neighbours right above it */
/* 11-27 web: steps header = "Martingale   Win 48.6%   House edge 2.70%"; the table's house-edge corner text is gone; the warning sits before the header icons */
.phd .hsep{display:inline-block;width:18px}
body:not(.m) #edgeBox{display:none!important}
#hdDisc{display:none}
body:not(.m) #hdDisc{display:inline;font-size:11px;color:var(--dim);white-space:nowrap;margin-right:6px}
#nbWrap.nbC select{width:34px!important;min-width:0!important;height:18px!important;padding:0!important;background-image:none!important;text-align:center;text-align-last:center;font-size:11px;line-height:18px}   /* 11-27 web: compact Neighbours box like the phone; its list opens upwards */
#nbWrap.nbC select{width:42px!important;padding:0 14px 0 5px!important;text-align:left;text-align-last:left;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5'%3E%3Cpath d='M0 0h8L4 5z' fill='%23a39a8e'/%3E%3C/svg%3E")!important;background-repeat:no-repeat!important;background-position:right 4px center!important}   /* 11-27 web: Neighbours text left, room for the arrow */
html body #bRT svg{overflow:visible}   /* 11-27: the racetrack stroke touches the viewBox edge: no clipped sides */
#nbWrap.nbC select{padding:0 14px 0 5px!important;line-height:16px!important;background-position:right 4px top calc(50% + 1px)!important}   /* 11-27 web: Neighbours text 1 px up, arrow 1 px down */
html body.m #nbWrap.nbC select{width:42px!important;height:18px!important;font-size:11px}   /* 11-27: phone + tablet: RT in the felt bottom-left corner (3 px) and the same Neighbours box as the web */
html body.m #nbWrap.nbC select{padding:0 14px 0 5px!important;line-height:16px!important;text-align:left;text-align-last:left;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5'%3E%3Cpath d='M0 0h8L4 5z' fill='%23a39a8e'/%3E%3C/svg%3E")!important;background-repeat:no-repeat!important;background-position:right 4px top calc(50% + 1px)!important}
html body.m:not(.tab) #nbWrap.nbC select{width:32px!important;padding:0 11px 0 3px!important;background-position:right 3px top calc(50% + 1px)!important}   /* phone: narrow enough to stay left of the dozens row */
html body.m.tab #bRT.on svg{filter:drop-shadow(0 0 2px rgba(80,230,140,.8)) drop-shadow(0 0 4px rgba(80,230,140,.45)) brightness(.61)}   /* 11-27 tablet: RT on-state 39 % less bright */
html body.m #plqs .plq{box-shadow:inset 0 2px 2px -2px rgba(0,0,0,.95)}   /* 11-27 phone/tablet: no light 1 px edge under the Stake strip (the steps table starts right under it) */
/* 11-27 phone + tablet: one Stake / Win / Net strip, black band to the screen edges, fading out at both ends; RT icon sits on its left end */
html body.m #plqs{position:relative;isolation:isolate}
html body.m #plqs::before{content:"";position:absolute;z-index:-1;top:0;bottom:0;left:50%;width:100vw;transform:translateX(-50%);background:linear-gradient(90deg,transparent 0,var(--well,#0a0908) 48px,var(--well,#0a0908) calc(100% - 48px),transparent 100%);pointer-events:none}
html body.m #plqs .plq{background:transparent!important;box-shadow:none!important}
html body.m:not(.tab) #plqs{box-sizing:border-box;padding:0 9px 0 28px}
html body.m:not(.tab) #plqs .plq b{font-family:"Inter Tight","Inter",system-ui,sans-serif;font-size:13.5px}   /* 11-27 phone: Stake / Win / Net stay between the RT icon and the table edge, compact font */
@media (max-width:389px){ html body.m:not(.tab) #plqs .plq b{font-size:12.5px} }   /* 360 px phones: long German labels + 4-digit values still fit */
html body.m:not(.tab) #plqs{padding:0 28px 0 9px}   /* phone: Stake / Win / Net between the table left edge and the RT icon (right) */
.selBox b{white-space:nowrap}
html body.m:not(.tab) #plqs .plq b{font-size:13px;letter-spacing:-.2px}
@media (max-width:389px){ html body.m:not(.tab) #plqs .plq b{font-size:12px} }   /* 11-27 phone: Stake / Win / Net a bit more compact */
html body.m:not(.tab) #plqs .plq{min-width:0;overflow:hidden;white-space:nowrap}
html body.m:not(.tab) #plqs{padding:0 33px 0 4px}   /* 11-27 phone: Stake / Win / Net 5 px further left, same widths */
html body.m:not(.tab) #plqs .plq{gap:3px}   /* 11-27 phone: label 2 px closer to its value */
/* 11-27 phone: Stake / Win / Net as three columns, small label above the value (tablet + web keep one line) */
html body.m:not(.tab) #plqs .plq{flex-direction:column;align-items:center;justify-content:center;gap:0;height:auto;padding:3px 0 3px}
html body.m:not(.tab) #plqs .plq small{line-height:10px}
html body.m:not(.tab) #plqs .plq b{font-family:inherit;font-size:14.5px;letter-spacing:0;line-height:17px;margin-left:0!important}
@media (max-width:389px){ html body.m:not(.tab) #plqs .plq b{font-size:14px} }
html body.m:not(.tab) #plqs .plq{padding:2px 0 2px}
html body.m:not(.tab) #plqs .plq small{line-height:9px}
html body.m:not(.tab) #plqs .plq b{line-height:16px}
/* 11-27 web: spin bar = winning number left; SPINS / TIME line, one joined button strip and the hint, all centred on the panel axis */
body:not(.m) .tc .spcol{padding-top:15px;gap:4px}
body:not(.m) #statBar{left:50%!important;top:13px!important;transform:translate(-50%,-50%)!important;line-height:13px}
body:not(.m) #statBar #cTime{display:inline;margin-left:12px}
body:not(.m) .tc .ctl{justify-content:center;gap:1px;padding-right:78px}
body:not(.m) .tc .ctl>button{flex:0 0 92px;width:92px;max-width:92px;border-radius:0}
body:not(.m) .tc .ctl>#spd{flex:0 0 104px;width:104px;max-width:104px;border-radius:0}
body:not(.m) .tc .ctl>:first-child{border-radius:3px 0 0 3px}
body:not(.m) .tc .ctl>:last-child{border-radius:0 3px 3px 0}
body:not(.m) #hist{justify-content:center;text-align:center}
html body:not(.m) #bSpin,html body:not(.m) #bAuto,html body:not(.m) #bReset,html body:not(.m) #bClear{width:92px;max-width:92px;flex:0 0 92px}
html body:not(.m) #spd{width:104px;max-width:104px;flex:0 0 104px}   /* 11-27 web: a little wider joined buttons */
html body:not(.m) .tc{align-items:stretch}
html body:not(.m) #num{align-self:stretch;height:auto!important;width:73px!important;margin-top:0;margin-bottom:0;font-size:36px}   /* 11-27 web: winning number box from the SPINS line down to the hint strip bottom */
/* 11-27 web: no header row: title left of the button strip, slogan right of it, warning + 3 icons on the SPINS line (right) */
html body:not(.m) .inner>header.hd{height:0;min-height:0;padding:0!important;margin:0!important;overflow:visible}
html body:not(.m) header.hd .brand,html body:not(.m) header.hd .brand h1{position:static}
html body:not(.m) header.hd .brand h1>a{position:absolute;right:calc(50% + 254px);top:36px;transform:translateY(-50%);white-space:nowrap}
html body:not(.m) header.hd .brand h1 .slogan{position:absolute;left:calc(50% + 254px);top:36px;transform:translateY(-50%);margin:0;white-space:nowrap}
html body:not(.m) header.hd .hdnav{position:absolute;right:8px;top:13px;transform:translateY(-50%)}
/* 11-27 web: winning number box 30 % smaller and out of the flow; buttons, SPINS line and hint all centred on the screen axis */
html body:not(.m) .tc{position:relative}
html body:not(.m) #num{position:absolute;left:0;top:50%;transform:translateY(-50%);width:51px!important;height:51px!important;font-size:25px;align-self:auto}
html body:not(.m) .tc .ctl{padding-right:0}
html body:not(.m) #hist{margin-left:56px;padding-right:61px}
html body:not(.m) #num{top:15px;bottom:0;transform:none;height:auto!important;width:auto!important;aspect-ratio:1/1;font-size:28px}   /* 11-27 web: winning box from the button top down to the hint bottom, square */
html body:not(.m) #hist{margin-left:63px;margin-right:63px;padding-right:0}   /* the dark hint strip itself is centred on the screen: same gap left (box) and right */
html body:not(.m) #hist{padding-right:5px}   /* hint text optically on the axis */
html body:not(.m) .main{grid-template-columns:290px minmax(0,1fr) 290px}   /* 11-27 web: equal side panels, so the table sits on the screen axis under the centred buttons */
html body:not(.m) #hist{margin-right:0;padding-right:68px}   /* 11-27 web: history strip again to the panel right edge; its content stays on the page axis */
html body:not(.m) #statBar b{font-size:13px}   /* 11-27 web: SPINS / TIME values 2 px bigger */
html body:not(.m) #hist:not(:has(.hint)){justify-content:flex-start;padding-right:0}   /* 11-27 web: history numbers start at the left, right after the winning box, as before; only the empty-history hint is centred on the page */
html body:not(.m) #statBar{top:11px!important}   /* 11-27 web: SPINS / TIME line 2 px higher, off the buttons */
html .pstep #evN{width:44px;max-width:44px}   /* 11-27: 2-12 only: a 2-digit box */
html body #bRT.on svg,html body #bGear.on svg,html body.m.tab #bRT.on svg{filter:drop-shadow(0 0 2px rgba(80,230,140,.68)) drop-shadow(0 0 4px rgba(80,230,140,.38))}   /* 11-27: one glow for every lit icon on every device: the web glow 15 % weaker */
/* 11-27: every glow 10 % weaker again */
html body #bRT.on svg,html body #bGear.on svg,html body.m.tab #bRT.on svg{filter:drop-shadow(0 0 2px rgba(80,230,140,.61)) drop-shadow(0 0 4px rgba(80,230,140,.34))}
html body:not(.m) .hist .green{filter:drop-shadow(0 0 2px rgba(80,230,140,.25))}
html #pNum .rr{text-shadow:0 0 6px rgba(116,242,170,.315)}
#gearPop .th button:not(.on),#gearPop #sndW button:not(.on),#gearPop #sndB button:not(.on){background:#332f2b!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.035)!important}   /* 11-27: off buttons drawn exactly in their box (no drop shadow below, face a little lighter than the panel): on and off now share the same top and bottom */
#gearPop .sw button{border-color:transparent!important;box-shadow:inset 0 1px 1.5px rgba(0,0,0,.45),inset 0 -1px 0 rgba(255,240,220,.04)!important;background-clip:border-box!important}   /* 11-27: colour swatches without the grey frame, very lightly pressed in */
#gearPop .sw button{box-shadow:inset 0 1px 1px rgba(0,0,0,.25)!important}   /* 11-27: swatch dent softer */
#gearPop .sw button{box-shadow:inset 0 var(--lw,1px) 0 rgba(0,0,0,.25)!important}   /* 11-27: swatch dent = one crisp screen px, no blur */
#gearPop .sw button{box-shadow:none!important;border-top-color:rgba(0,0,0,.25)!important}   /* 11-27: the dent line in the top border itself (1 screen px higher than the inset shadow, which starts under the border) */
/* 11-27: the gear menu follows the theme: Casino keeps its warm greys, Midnight gets the same steps in its blue-grey */
html[data-theme=midnight] #gearPop{background:#272b32!important}
html[data-theme=midnight] #gearPop .th button:not(.on),html[data-theme=midnight] #gearPop #sndW button:not(.on),html[data-theme=midnight] #gearPop #sndB button:not(.on){background:#31353c!important}
html[data-theme=midnight] #gearPop #bResetSet{background:#262a31!important}
   /* 11-27 web: digits 0.8 px lower = optically centred in the row (row height unchanged) */
body:not(.m) #prog td{padding-top:calc(2 * var(--dS,0px));line-height:calc(var(--rh,16px) - 1px - 2 * var(--dS,0px))}   /* 11-27 web: digits exactly 1 SCREEN px lower (whole pixels, same in every cell); replaces the 1.6 px try */
/* 11-27 web: bank in the middle of the button strip (where speed was), slot wide enough for 100000000.00 */
#wBank{display:none}
html body:not(.m) .tc .ctl>#wBank{display:flex;align-items:center;justify-content:center;flex:0 0 288px;width:288px;min-width:288px;max-width:288px;overflow:hidden;font-size:23px;white-space:nowrap;padding:0 14px}   /* fixed for +/-1kkk in every currency and notation: bank changes never move the buttons */
html body:not(.m) header.hd .brand h1>a{right:calc(50% + var(--hsL,254px))}
html body:not(.m) header.hd .brand h1 .slogan{left:calc(50% + var(--hsR,254px))}   /* 11-27 web: title and slogan follow the wider button strip (bank in the middle) */
html body:not(.m) .tc .ctl>#wBank{align-self:stretch;margin:0 4px;padding:0 14px;transform:none;background:var(--well,#0a0908);border-radius:3px;box-shadow:inset 0 1px 3px rgba(0,0,0,.9),0 1px 0 rgba(255,240,220,.07)}   /* 11-27 web: bank in our black dent (same well as the history strip) */
/* 11-27 web: speed lives on the AUTO button: its right part is a transparent select (arrow), the small label shows the speed; AUTO text moves left */
#spdL{display:none}
html body .tc .ctl{position:relative}
html body .tc .ctl>#bAuto{padding-right:32px!important}
html body .tc .ctl>#spd{position:absolute!important;margin:0!important;flex:none;width:32px!important;max-width:32px!important;padding:0!important;z-index:2!important;color:transparent;background-color:transparent!important;border:0!important;border-left:1px solid rgba(0,0,0,.35)!important;box-shadow:none!important;border-radius:0 3px 3px 0;cursor:pointer;background-position:right 4px center}
html body .tc .ctl>#spd option{color:var(--tx,#e8e2d8);background:#24211e}
html body .tc .ctl>#spdL{display:flex;align-items:center;justify-content:center;position:absolute;width:21px;z-index:3;pointer-events:none;font-size:10.5px;font-weight:600;color:rgba(240,235,227,.8);white-space:nowrap}
html body .tc .ctl>#spd{background-color:rgba(0,0,0,.22)!important}   /* 11-27 web: speed part of AUTO in a deeper blue */
html body .tc .ctl>#spdL{color:rgba(240,235,227,.85)}   /* speedometer icon instead of "25/s" */
html body:not(.m) .tc .ctl{padding-right:var(--ctlShift,0px)!important}   /* 11-27 web: AUTO is wider than RESET, so the strip moves left until the bank sits on the page axis */
html body.m .tc .ctl>#spd{flex:none!important;height:auto;top:0}   /* 11-27 phone/tablet: speed on AUTO as on the web; the 4 buttons share the row */
html body.m .tc .ctl>button{flex:1 1 25%!important;min-width:0}   /* phone/tablet: 4 equal buttons (AUTO with its speed part counts as one) */
html body.m #mBank{font-size:23px;line-height:23px}   /* 11-27 phone: bank on the chart bigger (was 18 px) */
html body.m.tab #mBank{font-size:26px;line-height:26px}   /* 11-27 tablet: bank on the chart bigger (21 -> 26 px) */
html body:not(.m) #hdDisc{position:absolute;left:8px;top:13px;transform:translateY(-50%);margin:0}   /* 11-27 web: warning on the left end of the top line (mirror of the icons) */
html #pStat .row>b{white-space:nowrap}   /* 11-27: STATS values never wrap to a second line (fitStat shrinks long ones) */
html #pStat .row>span{flex-shrink:0;white-space:nowrap}   /* 11-27: STATS labels keep their width, the value shrinks instead */
html body.m #pTest>.seedRow,html body.m #pTest>#csvRow{position:relative;top:-1px}   /* 11-27 phone/tablet: Seed and Download CSV exactly opposite Quick test / Monte Carlo (were 1 px lower) */
html body.m[data-tab=res] #pTest{background:none}   /* 11-27 phone/tablet: TESTS in the same colour as every other panel, no top line */
/* 11-27 phone/tablet: TESTS sits at the bottom of the Results panel (as on the web), the free space stays between STATS and TESTS */
html body.m[data-tab=res] .card:has(>#pTest){display:flex;flex-direction:column}
html body.m[data-tab=res] .card:has(>#pTest)>*{flex:none;width:100%}
html body.m[data-tab=res] #pTest{margin-top:auto!important}
html body:not(.m) header.hd .hdnav{right:5px}   /* 11-27 web: the 3 icons together 3 px to the right (was 8 px), gaps unchanged */
html body:not(.m) #hdDisc{top:10px;font-size:12px}   /* 11-27 web: warning 3 px nearer the top edge, 1 px bigger (11 -> 12 px) */
/* 11-27 web: every top button stands alone (1 px gap) with all 4 corners slightly rounded; AUTO is the one split button: rounded outer corners, straight split to its speed part */
html body:not(.m) .tc .ctl>button{border-radius:3px!important}
html body:not(.m) .tc .ctl>#bAuto{border-radius:3px!important}   /* its right corners hide under the speed part, which carries the same rounding */
html body:not(.m) .tc .ctl>#spd{border-radius:0 3px 3px 0!important;background-color:rgba(0,0,0,.34)!important;border-left-color:rgba(0,0,0,.5)!important}   /* speed part a bit more distinct: deeper blue, clearer split line */
/* 11-27 web: title and slogan sit on the history strip: their text baseline = the button bottom edge (measured: 8.6 / 9.2 px lower) */
html body:not(.m) header.hd .brand h1>a{top:42.1px}   /* 3 screen px gap from the letter tails to the history strip */
html body:not(.m) header.hd .brand h1 .slogan{top:42.7px}
/* 11-27 web: the closed Stats / Numbers tab keeps its black well, but its top depth line is the shallow one of our dropdowns */
html body:not(.m) #pStat .ptl .svb:not(.on){box-shadow:inset 0 1px 1px rgba(0,0,0,.55)!important}
html body:not(.m) #pSet select,html body:not(.m) #pSet input[type=text],html body:not(.m) #pSet input[type=number]{box-shadow:inset 0 1px 1px rgba(0,0,0,.55),0 1px 0 rgba(255,240,220,.06)!important}   /* 11-27 web: every Settings field the same shallow dent, on or off (the on/off fields kept the old deep one) */
html body.m:not(.tab) .hdnav{position:relative;top:-2px}   /* 11-27 phone: the 3 header icons 2 px higher */
#gearPop .th button:not(.on),#gearPop #sndW button:not(.on),#gearPop #sndB button:not(.on),#gearPop #bResetSet:not(.arm){background-color:#2e2a26!important;background-image:linear-gradient(180deg,rgba(255,255,255,.06),rgba(0,0,0,.14))!important;background-origin:border-box!important;background-repeat:no-repeat!important;color:#ccc8c1!important;font-weight:500;box-shadow:inset 0 1px 0 rgba(255,255,255,.07),0 1px 0 rgba(0,0,0,.35),0 1px 2px rgba(0,0,0,.25)!important}
html[data-theme=midnight] #gearPop .th button:not(.on),html[data-theme=midnight] #gearPop #sndW button:not(.on),html[data-theme=midnight] #gearPop #sndB button:not(.on),html[data-theme=midnight] #gearPop #bResetSet:not(.arm){background-color:#31353c!important}
#gearPop .th button.on,#gearPop #sndW button.on,#gearPop #sndB button.on{font-weight:500}   /* 11-28: gear menu buttons raised like the TESTS buttons (same face, gradient, relief, text); chosen one stays pressed in with green text */
body.m .hdnav .langL{min-width:150px}
body.m .hdnav .langL a{height:40px;line-height:40px;padding:0 14px;font-size:15px;gap:10px}
body.m :is(.langL,#langBtn) .fl{width:20px;height:14px}   /* 11-28: phone + tablet: open language list for fingers (40 px rows, 15 px text, bigger flags); the EN button unchanged */
body:not(.m) #pNum .grp.hc{align-items:flex-start}
body:not(.m) #pNum .grp.hc>span{display:flex;flex-direction:column;align-items:flex-start}
body:not(.m) #pNum .grp.hc>span:last-child{flex-direction:column-reverse;align-items:flex-end}   /* 11-28: web: COLD at the left wall, HOT at the right wall on one line, each explanation on the line below (all languages) */
html body:not(.m) #pTable{background:none!important;overflow:visible!important;border-color:transparent!important}
html body:not(.m) #pTable::before{content:"";position:absolute;left:-400px;right:-400px;top:-100%;bottom:-100%;z-index:-2;pointer-events:none;background:radial-gradient(ellipse calc(var(--frx,600px) * 1.38) calc(var(--fry,146px) * 1.71) at calc(var(--fx,50%) + 400px) calc(var(--fy,0px) + 28.333%),var(--g0,#1b5c3b) 0%,var(--g1,#174f33) 15.4%,var(--g2,#14432b) 30.8%,var(--g3,#103824) 46.2%,color-mix(in srgb,var(--g4,#0e2e1e) 60%,transparent) 61.6%,color-mix(in srgb,var(--g5,#0b2518) 30%,transparent) 77%,transparent 93.5%)}   /* 12-03: outer stops fade out, no dark rim against the page background */   /* 11-28 web: the block has NO background at all (no edge); the felt glow is its own layer, bigger than the block, under the side panels: same shape (centre 15% above --fy, same radii and stops) */
html body:not(.m) #plqs{background:linear-gradient(90deg,transparent calc(var(--qe,40px) - 1px),color-mix(in srgb,var(--well,#0a0908) 50%,transparent) calc(var(--qe,40px) - 1px),color-mix(in srgb,var(--well,#0a0908) 50%,transparent) var(--qe,40px),var(--well,#0a0908) var(--qe,40px),var(--well,#0a0908) calc(100% - var(--qf,40px)),color-mix(in srgb,var(--well,#0a0908) 50%,transparent) calc(100% - var(--qf,40px)),color-mix(in srgb,var(--well,#0a0908) 50%,transparent) calc(100% - var(--qf,40px) + 1px),transparent calc(100% - var(--qf,40px) + 1px))}   /* 11-28 Kaspars: +1 half-tone pixel added outside, left and right only */
html body:not(.m) #plqs{background-repeat:no-repeat;background-position:0 var(--qt,0px);background-size:100% calc(100% - var(--qt,0px))}
html body:not(.m) #plqs .plq{background:transparent!important}   /* 11-28 web: one strip under the whole table, solid black between the 1:1 row ends (5 px inside), soft fade to the table edges */

html body:not(.m) #table{padding-top:0!important;margin-top:-.5px}   /* 11-28 web: about 3 screen px between the top panel and the table (was ~12 on 2560) */
html body:not(.m) #table .chip{margin-top:-6px}   /* 11-28 web: compensate for the removed top padding; chips stay centred on their bets */
html body:not(.m) #rackWrap{margin-bottom:11.5px}   /* 11-28 web: 6 px between the Finals row and the table when the racetrack is on (the table itself keeps no top space, so its size and the 3 px top gap never change) */
#prog .phd .cnt b{color:#d6d2cc}   /* 11-28: strategy name above the steps table calmer (was --tx #f0ebe3), every language */

html #fSel .pc>#sSel{flex:1;min-width:0}html #fSel .pc>#iSelN{flex:none;width:36px!important;max-width:36px!important;padding-left:6px;padding-right:0}   /* Bet selection: rule fills the row, N short; 6 px gap like checkbox -> field */
body:not(.m) #pSet #fSel{margin-top:var(--fg,2px)!important}   /* Bet selection: same row gap as the other fields (it follows the hidden strategy box, so .fld+.fld does not reach it); Stats below gives the room */
.hdnav #nRec span{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
html .hdnav #nRec svg{width:12px;height:12px;transform:none}
html body:not(.m) .hdnav #nRec svg{width:var(--nvG,15.2px);height:var(--nvG,15.2px);stroke-width:1}
html body:not(.m) .hdnav #nRec{color:#8f8579}
html body:not(.m) .hdnav #nRec:hover{color:#e4ddd2}
html body.m .hdnav #nRec svg{width:var(--nvG,12px);height:var(--nvG,12px)}   /* 12-03: trophy = Global records, same look as the Guide book */
#pNum .rhd .glob{display:inline-flex;align-items:center;margin-left:5px;color:#8f8579;vertical-align:-1px}
#pNum .rhd .glob:hover{color:var(--grn,#4ecb86)}   /* 12-03: small trophy next to Records opens the global table */
#grToast{position:fixed;left:50%;bottom:22px;transform:translate(-50%,20px);opacity:0;pointer-events:none;z-index:99;background:#14261b;border:1px solid #2f6b47;color:#e8f5ec;padding:7px 14px;border-radius:3px;font-size:13px;font-weight:600;text-decoration:none;box-shadow:0 6px 18px rgba(0,0,0,.55);transition:opacity .25s,transform .25s;white-space:nowrap}
#grToast.on{opacity:1;transform:translate(-50%,0);pointer-events:auto}   /* 12-03: new global record note, links to /records */
body:not(.m) #pNum{display:flex;flex-direction:column;flex:1 1 auto;min-height:0}body:not(.m) #pNum>*{flex:none}
body:not(.m) #pNum>.row{flex:0 1 15px;height:auto;min-height:11.5px;line-height:1;align-items:center}   /* 12-03: on short windows (1080p) the Numbers rows give up to 3.5 px each so Zero drought stays above Tests; on tall ones they stay 15 px */
html body.nohov .hdnav a,html body.nohov .hdnav a:hover,html body.nohov #langBtn,html body.nohov #langBtn:hover{color:var(--dim)}
html body.nohov:not(.m) .hdnav #nAbout,html body.nohov:not(.m) .hdnav #nGuide,html body.nohov:not(.m) .hdnav #nRec{color:#8f8579}   /* 12-03: after coming back to the page, the top icons do not stay light until the pointer moves */

#langBtn #langF{width:16px;height:11px;margin-right:1px}   /* 12-04: flag of the current language on the button */
