/* Moon Shot - BNBG Black Gold specifics (linked after skin-bnbg.css; everything scoped to html[data-skin="bnbg"]).
   Visual only: coins stay play coins; no currency wording is added or changed here. */
html[data-skin="bnbg"] #fade{background:#0A0A0A}
html[data-skin="bnbg"] #flash{mix-blend-mode:screen}
/* ---------- crest chip (skin switch) ---------- */
html[data-skin="bnbg"] .skin-chip{border-radius:50%;border:1px solid var(--bnbg-line);background:radial-gradient(circle at 50% 30%,#232221 0,#0C0C0C 72%);box-shadow:inset 0 1px 0 rgba(255,240,183,.12),0 6px 16px rgba(0,0,0,.55),0 0 0 1px rgba(212,175,55,.18),0 0 14px rgba(212,175,55,.22)}
html[data-skin="bnbg"] .skin-chip img{width:26px;height:26px;filter:drop-shadow(0 0 5px rgba(212,175,55,.35))}
html[data-skin="bnbg"] .skin-chip:active{transform:translateY(1px);box-shadow:inset 0 2px 6px rgba(0,0,0,.6)}
html[data-skin="bnbg"] .skin-chip:hover{border-color:var(--bnbg-line-strong)}
/* ---------- top bar ---------- */
html[data-skin="bnbg"] .brand{color:transparent;background:var(--bnbg-metal);-webkit-background-clip:text;background-clip:text;font-weight:600;font-size:19px;letter-spacing:.2em;text-shadow:none;margin-right:12px}
html[data-skin="bnbg"] .brand span{color:transparent;-webkit-text-fill-color:var(--bnbg-label);font-weight:500}
html[data-skin="bnbg"] .pill{font-size:15px}
html[data-skin="bnbg"] #p-coins span{color:var(--bnbg-gold-hi);font-weight:500;font-variant-numeric:tabular-nums}
html[data-skin="bnbg"] #p-net.pos,html[data-skin="bnbg"] #p-coins .net.pos{color:var(--bnbg-ok)}
html[data-skin="bnbg"] #p-net.neg,html[data-skin="bnbg"] #p-coins .net.neg{color:var(--bnbg-red)}
html[data-skin="bnbg"] .ibtn.gold{font-size:19px}
/* ---------- splash ---------- */
html[data-skin="bnbg"] #scr-splash{background:radial-gradient(ellipse at 50% 50%,rgba(10,10,10,0) 30%,rgba(10,10,10,.6) 75%,rgba(10,10,10,.92))}
html[data-skin="bnbg"] #scr-splash .bnbg-mark.lg{margin:-4vh 0 22px}
html[data-skin="bnbg"] .logo{font-size:clamp(50px,15vw,96px);line-height:.95}
html[data-skin="bnbg"] .logo span{display:block;font-size:.3em;letter-spacing:.62em;margin:.55em 0 0 .62em;-webkit-text-fill-color:var(--bnbg-gold-hi)}
html[data-skin="bnbg"] .tagl{font-size:clamp(13px,3.6vw,17px);letter-spacing:.24em;text-transform:uppercase}
html[data-skin="bnbg"] .tagl b{color:var(--bnbg-label);font-weight:400;letter-spacing:.14em;font-size:.82em;margin-top:8px}
html[data-skin="bnbg"] #splash-go{background:var(--bnbg-fill) padding-box,linear-gradient(158deg,#FFF3C8,#B8913A 50%,#F1D27A) border-box;color:var(--bnbg-ink);font-weight:600;font-size:18px;letter-spacing:.22em;padding:14px 44px;margin-top:26px}
html[data-skin="bnbg"] .disclaim{color:var(--bnbg-muted);text-shadow:none;font-weight:400;letter-spacing:.04em;margin-top:18px}
html[data-skin="bnbg"] .ver{color:var(--bnbg-muted-2);opacity:.8}
/* phone sideways: a smaller wordmark stack on a soft dark scrim, so nothing collides or sits on the rocket's porthole */
@media (max-height:500px) and (orientation:landscape){
  html[data-skin="bnbg"] #scr-splash{padding-top:calc(4vh + var(--sat));padding-bottom:calc(3vh + var(--sab))}
  html[data-skin="bnbg"] #scr-splash:before{content:'';position:absolute;left:50%;top:50%;width:min(78vw,620px);height:92vh;transform:translate(-50%,-50%);background:radial-gradient(closest-side,rgba(10,10,10,.62),rgba(10,10,10,0));pointer-events:none;z-index:-1}
  html[data-skin="bnbg"] .logo{font-size:clamp(38px,12vh,54px)}
  html[data-skin="bnbg"] .logo span{margin-top:.35em}
  html[data-skin="bnbg"] #scr-splash .bnbg-mark.lg{margin:0 0 6px;transform:scale(.8)}
  html[data-skin="bnbg"] .tagl{font-size:12px;letter-spacing:.2em}
  html[data-skin="bnbg"] .tagl b{margin-top:4px}
  html[data-skin="bnbg"] #splash-go{padding:10px 36px;margin-top:12px;font-size:15px}
  html[data-skin="bnbg"] .disclaim{margin-top:8px}
}
/* ---------- readout ---------- */
html[data-skin="bnbg"] #readout:before{background:radial-gradient(closest-side,rgba(5,5,4,.62),rgba(5,5,4,0))}
html[data-skin="bnbg"] #mult{font-weight:500;letter-spacing:-.01em;text-shadow:0 2px 0 rgba(0,0,0,.55),0 0 30px color-mix(in srgb,var(--mc) 32%,transparent)}
html[data-skin="bnbg"] #mult small{font-size:.42em;margin-left:.06em;color:var(--bnbg-label)}
html[data-skin="bnbg"] #mult.hi{color:transparent;background:var(--bnbg-metal);-webkit-background-clip:text;background-clip:text;text-shadow:none;filter:drop-shadow(0 0 18px rgba(241,210,122,.45))}
html[data-skin="bnbg"] #mult.glint{animation:bnbg-glint .9s ease-out}
@keyframes bnbg-glint{0%{filter:brightness(1.35) drop-shadow(0 0 22px rgba(255,243,200,.6))}100%{filter:none}}
html[data-skin="bnbg"] #status{font-weight:500;font-size:12px;letter-spacing:.26em;color:var(--bnbg-label);text-shadow:0 1px 6px rgba(0,0,0,.8)}
html[data-skin="bnbg"] #status.good{color:var(--bnbg-gold-hi)}
html[data-skin="bnbg"] #status.bad{color:var(--bnbg-red)}
html[data-skin="bnbg"] #cbar{height:3px;border:0;border-radius:2px;background:rgba(183,157,98,.22)}
html[data-skin="bnbg"] #cbar i{background:linear-gradient(90deg,#A67C2D,#F1D27A 70%,#FFF3C8);box-shadow:0 0 8px rgba(241,210,122,.6)}
/* ---------- history strip ---------- */
html[data-skin="bnbg"] .hc.hi{background:var(--bnbg-fill);color:var(--bnbg-ink);border-color:transparent}
html[data-skin="bnbg"] .hc.mine{outline:0;box-shadow:inset 0 0 0 1px rgba(241,210,122,.55),inset 0 1px 3px rgba(0,0,0,.6)}
/* ---------- bet panel ---------- */
html[data-skin="bnbg"] .lbl{font-weight:500;letter-spacing:.18em;color:var(--bnbg-label)}
html[data-skin="bnbg"] .lbl .pc{color:var(--bnbg-muted);opacity:1;letter-spacing:.12em;font-weight:400}
html[data-skin="bnbg"] .sbtn{border-radius:var(--bnbg-r-sm);border:1px solid var(--bnbg-line-soft);background:linear-gradient(180deg,#1B1A19,#0C0C0B);box-shadow:inset 0 1px 0 rgba(255,240,210,.08);color:var(--bnbg-gold-hi);font-weight:400}
html[data-skin="bnbg"] .sbtn:active{transform:translateY(1px);box-shadow:inset 0 2px 6px rgba(0,0,0,.6);border-color:var(--bnbg-gold)}
html[data-skin="bnbg"] .amt{border-radius:var(--bnbg-r-sm)}
html[data-skin="bnbg"] :is(#bet-in,#auto-in){background:none;border:0;min-height:0;box-shadow:none;border-radius:0;font-weight:500;font-variant-numeric:tabular-nums;color:var(--bnbg-gold-hi)}
html[data-skin="bnbg"] .amt:focus-within{border-color:var(--bnbg-gold);box-shadow:0 0 0 3px rgba(212,175,55,.2)}
html[data-skin="bnbg"] .amt b{color:var(--bnbg-label);font-weight:400}
html[data-skin="bnbg"] .chips button{font-size:12.5px}
html[data-skin="bnbg"] #act{border-radius:18px;font-weight:500}
html[data-skin="bnbg"] #act b{font-weight:600;letter-spacing:.13em}
html[data-skin="bnbg"] #act.pulse{animation:bnbg-breathe-l 2.6s ease-in-out infinite}
@keyframes bnbg-breathe-l{0%,100%{box-shadow:inset 0 1px 0 rgba(255,240,183,.16),0 10px 26px rgba(0,0,0,.55),0 0 14px rgba(212,175,55,.14)}50%{box-shadow:inset 0 1px 0 rgba(255,240,183,.2),0 10px 26px rgba(0,0,0,.55),0 0 30px rgba(241,210,122,.36)}}
/* CANCEL BET is not a loss: the standard black-lacquer secondary (no classic pink) */
html[data-skin="bnbg"] #act.pink{background:var(--bnbg-lacquer) padding-box,var(--bnbg-rim) border-box;color:var(--bnbg-btn-text)}
html[data-skin="bnbg"] #act.pink small{color:var(--bnbg-muted);opacity:1}
/* the label always sits above the sheen pass (::after), so CASH OUT never washes out */
html[data-skin="bnbg"] #act>*{position:relative;z-index:1}
html[data-skin="bnbg"] #act.cash{animation:bnbg-cash 1.6s ease-in-out infinite}
html[data-skin="bnbg"] #act.cash:after{animation:bnbg-sheen 1.6s ease-in-out infinite;background-image:linear-gradient(105deg,transparent 42%,rgba(255,248,230,.32) 50%,transparent 58%);mix-blend-mode:soft-light}
@keyframes bnbg-cash{0%,100%{box-shadow:inset 0 1px 0 rgba(255,255,255,.55),0 10px 28px rgba(0,0,0,.55),0 0 18px rgba(212,175,55,.28)}50%{box-shadow:inset 0 1px 0 rgba(255,255,255,.6),0 10px 28px rgba(0,0,0,.55),0 0 38px rgba(241,210,122,.55)}}
/* LAUNCHING (disabled gold): the brand's off face with a soft gold rim, never a dimmed (mustard) gold slab */
html[data-skin="bnbg"] #act.gold[disabled]{opacity:1;background:linear-gradient(var(--bnbg-off-face),var(--bnbg-off-face)) padding-box,linear-gradient(158deg,rgba(255,240,183,.45),rgba(163,123,53,.45) 55%,rgba(229,197,118,.45)) border-box;color:var(--bnbg-off-text);text-shadow:none;box-shadow:inset 0 1px 0 rgba(255,240,183,.08)}
html[data-skin="bnbg"] #act.gold[disabled] b{color:var(--bnbg-gold-pale)}
html[data-skin="bnbg"] #act.gold[disabled]:after{display:none}
html[data-skin="bnbg"] .btn.result{background:linear-gradient(180deg,#1A1918,#0C0C0B) padding-box,linear-gradient(var(--bnbg-line),var(--bnbg-line)) border-box;box-shadow:none;color:var(--bnbg-text)}
html[data-skin="bnbg"] .btn.result.win b{color:var(--bnbg-gold-hi)}
html[data-skin="bnbg"] .btn.result.lose b{color:var(--bnbg-red)}
html[data-skin="bnbg"] .fine .pm{color:var(--bnbg-label);font-weight:400;letter-spacing:.04em}
html[data-skin="bnbg"] .hashlink{color:var(--bnbg-gold-hi);font-weight:400;text-decoration-color:rgba(183,157,98,.6)}
/* desktop side panel + stats cards */
html[data-skin="bnbg"] .side h3{color:var(--bnbg-label);font-weight:500;font-size:11px;letter-spacing:var(--bnbg-track-wide)}
html[data-skin="bnbg"] .stat small{color:var(--bnbg-muted);opacity:1;font-weight:400;letter-spacing:.12em}
html[data-skin="bnbg"] .stat b{font-weight:500;color:var(--bnbg-text);font-variant-numeric:tabular-nums}
html[data-skin="bnbg"] :is(.stat b,.brow span).pos{color:var(--bnbg-ok)}
html[data-skin="bnbg"] :is(.stat b,.brow span).neg{color:var(--bnbg-red)}
html[data-skin="bnbg"] .brow.head{background:none;border:0;color:var(--bnbg-label);opacity:1;letter-spacing:.14em}
html[data-skin="bnbg"] .empty{color:var(--bnbg-muted);opacity:1}
/* ---------- banners + floating text ---------- */
html[data-skin="bnbg"] #banner.good{color:var(--bnbg-gold-bright);text-shadow:0 0 26px rgba(241,210,122,.5)}
html[data-skin="bnbg"] #banner.bad{color:var(--bnbg-red);text-shadow:0 0 24px rgba(255,107,128,.35)}
html[data-skin="bnbg"] #banner.sm{font-size:clamp(22px,6vw,38px);color:var(--bnbg-text)}
html[data-skin="bnbg"] #banner:after{content:'';position:absolute;inset:0;pointer-events:none;background:linear-gradient(100deg,transparent 35%,rgba(255,250,240,.14) 50%,transparent 65%) no-repeat;background-size:260% 100%;background-position:130% 0}
html[data-skin="bnbg"] #banner.sw:after{animation:bnbg-sheen 1.15s ease-out .12s both}
/* +coins rises below the banner band, in cream, so it never overprints the gold banner word */
html[data-skin="bnbg"] .float{color:var(--bnbg-text);font-weight:500;font-size:24px;letter-spacing:.06em;margin-top:40px;text-shadow:0 2px 10px rgba(0,0,0,.85),0 0 14px rgba(241,210,122,.3)}
/* ---------- cards ---------- */
html[data-skin="bnbg"] .card .btn.sm{padding:6px 16px;letter-spacing:.05em}
html[data-skin="bnbg"] .card p b{color:var(--bnbg-gold-hi);font-weight:500}
html[data-skin="bnbg"] .step i{background:transparent;border:1px solid var(--bnbg-champagne);box-shadow:none;color:var(--bnbg-gold-hi);font-weight:500;font-size:15px}
html[data-skin="bnbg"] .step b{color:var(--bnbg-gold-hi);font-weight:500}
html[data-skin="bnbg"] .mono.ok{border-color:rgba(34,217,154,.55)}
html[data-skin="bnbg"] .mono.no{border-color:rgba(255,107,128,.6)}
html[data-skin="bnbg"] .kv>span,html[data-skin="bnbg"] .field label{color:var(--bnbg-label);opacity:1;font-weight:500;letter-spacing:.14em}
html[data-skin="bnbg"] .inp{font-family:var(--mono);border-radius:var(--bnbg-r-sm);box-shadow:inset 0 1px 4px rgba(0,0,0,.7)}
html[data-skin="bnbg"] .verdict{border:1px solid;box-shadow:none;font-weight:500;background:rgba(10,10,10,.6)}
html[data-skin="bnbg"] .verdict.ok{border-color:rgba(34,217,154,.6);color:#7EEBC4;background:rgba(34,217,154,.07);box-shadow:none}
html[data-skin="bnbg"] .verdict.no{border-color:rgba(255,107,128,.6);color:#FFB3BF;background:rgba(255,107,128,.07);box-shadow:none}
html[data-skin="bnbg"] .card .hc{display:inline-block}
html[data-skin="bnbg"] .seg.skin button{padding:0 14px;gap:0}
html[data-skin="bnbg"] #nogl b{color:var(--bnbg-gold-hi)}
/* readout while the table is paused: a quiet label instead of two display-size dashes */
html[data-skin="bnbg"] #mult small.pz{font-size:.3em;letter-spacing:.32em;margin:0 0 0 .32em;color:var(--bnbg-muted);vertical-align:middle}
/* ---------- narrow phones ---------- */
@media (max-width:420px){html[data-skin="bnbg"] #banner{letter-spacing:.08em;font-size:clamp(24px,7.4vw,40px)}}
@media (max-width:379px){
  html[data-skin="bnbg"] .lbl{letter-spacing:.1em}
  /* a 34px round crest (44px tap target via ::before), not an egg */
  html[data-skin="bnbg"] #hud .skin-chip{height:34px;align-self:center}
  html[data-skin="bnbg"] #hud .skin-chip::before{inset:-5px}
}
/* below 350px Plex numerals run wider than Fredoka: 40px icon buttons on a 44px pitch (::before keeps 44px taps) */
@media (max-width:349px){html[data-skin="bnbg"] #hud{gap:4px}html[data-skin="bnbg"] #hud .ibtn{width:40px;height:40px;position:relative}html[data-skin="bnbg"] #hud .ibtn::before{content:'';position:absolute;inset:-2px}}
/* ---------- skin transition band ---------- */
html[data-skin="bnbg"] #toast{font-size:13.5px;letter-spacing:.06em}
@media (prefers-reduced-motion:reduce){html[data-skin="bnbg"] :is(#act.pulse,#act.cash,#act.cash:after,#banner.sw:after,#mult.glint){animation:none}}

/* ===== Leather (kit v1.2 section 19, black since v1.2 - owner: "black leather cool vibe"): every panel / plate / card / pill is stitched TRUE-BLACK leather, kit tokens.
   Buttons stay gold / black lacquer. Small text inside leather uses the kit's lifted tokens (WCAG AA on the grain). ===== */
html[data-skin="bnbg"] .btn.gold>*{position:relative;z-index:1}   /* labels above the sheen pass (::after) */
html[data-skin="bnbg"] #panel{--bnbg-l-rim:6px;--bnbg-l-rimc:var(--bnbg-leather-rim);--bnbg-l-inset:9px;--bnbg-l-stitch:var(--bnbg-stitch-c);--bnbg-l-drop:0 -18px 40px rgba(0,0,0,.55);--bnbg-l-sr:13px 13px 0 0}
html[data-skin="bnbg"] :is(#chartbox,#nogl){--bnbg-l-rim:4px;--bnbg-l-rimc:var(--bnbg-leather-rim);--bnbg-l-inset:6px;--bnbg-l-stitch:var(--bnbg-stitch-c);--bnbg-l-drop:0 14px 34px rgba(0,0,0,.6);--bnbg-l-sr:8px}
html[data-skin="bnbg"] #hist{--bnbg-l-rim:3px;--bnbg-l-rimc:var(--bnbg-leather-rim-sm);--bnbg-l-inset:4px;--bnbg-l-stitch:var(--bnbg-stitch-c-sm);--bnbg-l-drop:0 8px 20px rgba(0,0,0,.5);--bnbg-l-sr:999px}
html[data-skin="bnbg"] :is(#panel,#chartbox,#nogl,#hist){background:var(--bnbg-leather);border:1px solid var(--bnbg-leather-edge);
  box-shadow:inset 0 0 0 var(--bnbg-l-rim) var(--bnbg-l-rimc),var(--bnbg-leather-hi),var(--bnbg-l-drop);outline:0;color:var(--bnbg-text);-webkit-backdrop-filter:none;backdrop-filter:none;
  --bnbg-eyebrow:#D4B46A;--bnbg-label:#DCCDA4;--bnbg-muted:#D2C8B2;--bnbg-muted-2:#CFC5AE}
html[data-skin="bnbg"]{--bnbg-leather-sm:var(--bnbg-leather)}   /* ONE shared grain tile (160px, 0.95, .42) on every leather surface, pills and chips too */
html[data-skin="bnbg"] #hist{position:relative}
/* the stitch: a dashed BORDER on ::after with its own concentric radius (as the BNBG world), not the kit's outline (Safari < 16.4 draws outlines square); #banner's ::after is its sheen, so its stitch is ::before */
html[data-skin="bnbg"] .pill{--bnbg-l-sr:999px;position:relative}
html[data-skin="bnbg"] :is(#toast,#banner){--bnbg-l-sr:8px}
html[data-skin="bnbg"] :is(#toast,#banner),html[data-skin="bnbg"] .pill:not(:focus-visible){outline:0}
html[data-skin="bnbg"] :is(#panel,#chartbox,#nogl,#hist,.pill,#toast,.cardwrap)::after,
html[data-skin="bnbg"] #banner::before{content:'';position:absolute;inset:calc(var(--bnbg-l-inset) - 1px);border:1px dashed var(--bnbg-l-stitch);border-radius:var(--bnbg-l-sr,8px);pointer-events:none;z-index:3}
/* bet panel: a leather sheet docked at the bottom (phone; 16px side padding keeps controls clear of the stitch) or a stitched side panel */
html[data-skin="bnbg"] #panel{border-bottom:0;border-radius:22px 22px 0 0;padding-top:14px}
@media (max-width:699px){html[data-skin="bnbg"] #panel{padding-left:calc(16px + var(--sal));padding-right:calc(16px + var(--sar));padding-bottom:calc(15px + var(--sab))}}
/* desktop / sideways: the panel never scrolls, its .pscroll wrapper does INSIDE the stitch (rows fade out before it). Classic: .pscroll is display:contents */
@media (min-width:900px) and (min-aspect-ratio:21/20){html[data-skin="bnbg"] #panel{--ps-p:10px 18px;--ps-x:6px;--ps-t:9px;--ps-b:18px;--bnbg-l-sr:11px;--bnbg-l-drop:0 30px 70px rgba(0,0,0,.65)}}
@media (max-height:500px) and (orientation:landscape){html[data-skin="bnbg"] #panel{--ps-p:6px 13px;--ps-x:4px;--ps-t:7px;--ps-b:16px;--bnbg-l-sr:14px;--bnbg-l-rim:4px;--bnbg-l-inset:6px}}
@media (min-width:900px) and (min-aspect-ratio:21/20),(max-height:500px) and (orientation:landscape){
  html[data-skin="bnbg"] #panel{border-bottom:1px solid var(--bnbg-leather-edge);border-radius:var(--bnbg-r-lg);padding:var(--ps-p);overflow:hidden;display:flex;flex-direction:column}
  html[data-skin="bnbg"] #panel .pscroll{display:block;flex:1 1 auto;min-height:0;overflow:auto;margin:0 calc(var(--ps-x) * -1);padding:var(--ps-t) var(--ps-x) var(--ps-b);scrollbar-width:thin;scrollbar-color:rgba(161,124,52,.75) transparent;
    -webkit-mask-image:linear-gradient(transparent,#000 var(--ps-t),#000 calc(100% - var(--ps-b)),transparent);mask-image:linear-gradient(transparent,#000 var(--ps-t),#000 calc(100% - var(--ps-b)),transparent)}
}
/* the BET / AUTO CASH OUT compartments, stat tiles, bet rows: recessed wells pressed into the hide (leather on leather would vanish) */
html[data-skin="bnbg"] :is(#panel .box,.stat,.brow:not(.head),.step,.mono,.formula){
  background:linear-gradient(180deg,rgba(4,4,4,.6),rgba(12,12,11,.48));border:1px solid rgba(138,107,31,.45);   /* softer than --bnbg-well-line: tiles, not controls */
  box-shadow:inset 0 2px 6px rgba(0,0,0,.6),0 1px 0 rgba(255,240,210,.06)}
html[data-skin="bnbg"] #panel .box{border-radius:var(--bnbg-r)}
html[data-skin="bnbg"] .brow:not(.head):hover{border-color:var(--bnbg-leather-edge-hi)}
html[data-skin="bnbg"] :is(.mono,.formula){background:rgba(6,6,6,.8)}
html[data-skin="bnbg"] .formula{color:var(--bnbg-gold-pale)}
html[data-skin="bnbg"] .mono{color:var(--bnbg-text-2);font-weight:500}
html[data-skin="bnbg"] #panel .amt{background:var(--bnbg-well);border:1px solid var(--bnbg-well-line);outline:0;box-shadow:inset 0 1px 4px rgba(0,0,0,.75),0 1px 0 rgba(255,240,210,.06)}
html[data-skin="bnbg"] #panel .amt:focus-within{border-color:var(--bnbg-gold);box-shadow:inset 0 1px 4px rgba(0,0,0,.75),0 0 0 3px rgba(212,175,55,.2)}
html[data-skin="bnbg"] .lbl>span:first-child,html[data-skin="bnbg"] .side h3,html[data-skin="bnbg"] .card h3{color:var(--bnbg-eyebrow)}
html[data-skin="bnbg"] .stat b{font-family:var(--bnbg-num-light);font-weight:400;font-size:19px}
html[data-skin="bnbg"] .fine .pm{color:var(--bnbg-label)}
/* chart housing: the plot sits inside the stitch (the canvas resizes to its box) */
html[data-skin="bnbg"] #chartbox{border-radius:var(--bnbg-r)}
html[data-skin="bnbg"] #chart{left:8px;top:7px;width:calc(100% - 16px);height:calc(100% - 14px)}
/* short charts (phone sideways, short / narrow phones): the small leather size, so the plot keeps its height and labels */
@media (max-height:500px) and (orientation:landscape),(max-height:760px) and (max-width:899px),(max-width:379px){
  html[data-skin="bnbg"] #chartbox{--bnbg-l-rim:3px;--bnbg-l-inset:4px;--bnbg-l-sr:6px;border-radius:var(--bnbg-r-sm)}
  html[data-skin="bnbg"] #chart{left:5px;top:4px;width:calc(100% - 10px);height:calc(100% - 8px)}
}
/* round-history strip: a stitched leather band that holds only whole chips (overflow wraps to a hidden 2nd row) */
html[data-skin="bnbg"] #hist{--hch:28px;align-self:flex-start;max-width:100%;flex-wrap:wrap;row-gap:20px;--hp:8px;height:calc(var(--hch) + 2 * var(--hp) + 2px);min-height:0;padding:var(--hp) 11px;margin-bottom:4px;border-radius:999px;-webkit-mask-image:none;mask-image:none}
html[data-skin="bnbg"] #hist .hc{height:var(--hch);min-height:0;display:inline-flex;align-items:center}
html[data-skin="bnbg"] .hc{font-weight:500;letter-spacing:.02em;border:1px solid var(--bnbg-well-line);box-shadow:inset 0 1px 3px rgba(0,0,0,.6);text-shadow:none;background:rgba(7,7,7,.74);color:#F0B3A8;border-radius:999px}
html[data-skin="bnbg"] .hc.mid{color:var(--bnbg-text);background:rgba(7,7,7,.74)}
html[data-skin="bnbg"] .hc.ghost{background:none;border-color:transparent;box-shadow:none;color:var(--bnbg-muted);opacity:1;font-style:italic;font-family:var(--bnbg-serif);font-size:14px}
@media (min-width:900px) and (min-aspect-ratio:21/20),(min-width:700px) and (min-height:900px) and (max-aspect-ratio:21/20){html[data-skin="bnbg"] #hist{--hch:34px;--hp:9px;padding:var(--hp) 12px}}
@media (max-height:500px) and (orientation:landscape){html[data-skin="bnbg"] #hist{--hch:24px;--hp:7px;padding:var(--hp) 10px;margin-bottom:2px}}
html[data-skin="bnbg"] .brow.head{color:var(--bnbg-label)}
html[data-skin="bnbg"] .brow span:nth-child(1){color:var(--bnbg-muted);opacity:1}
html[data-skin="bnbg"] #nogl{border-radius:var(--bnbg-r);padding:14px 16px;font-weight:400;color:var(--bnbg-text-2)}
/* result banner: a leather plate (fit to its words) instead of a full-width band; the 2nd line is the gold-italic serif */
html[data-skin="bnbg"] #banner{width:fit-content;max-width:calc(100% - 24px);margin:0 auto;padding:.36em .9em .42em;font-family:var(--bnbg-serif);font-weight:400;font-size:clamp(26px,7.6vw,50px);letter-spacing:.04em;overflow:hidden;border-radius:var(--bnbg-r)}
html[data-skin="bnbg"] #banner small{display:block;font-family:var(--bnbg-serif);font-style:italic;font-weight:400;color:var(--bnbg-gold-italic);letter-spacing:.01em;font-size:.46em;text-transform:none;margin-top:8px}
html[data-skin="bnbg"] #banner:not(.bad):not(.sm){color:var(--bnbg-text);text-shadow:0 0 22px rgba(241,210,122,.28)}
html[data-skin="bnbg"] #banner.bad small{color:var(--bnbg-text-2)}
html[data-skin="bnbg"] #banner:after{border-radius:inherit}
/* card titles on leather: Georgia caps, cream, with the gold-italic serif second line where the card has one (data-l2) */
html[data-skin="bnbg"] .card h2{font-size:clamp(21px,6.6vw,25px);letter-spacing:.07em;text-transform:uppercase;margin-bottom:10px}   /* narrow phones: the title stays clear of the corner close stud */
html[data-skin="bnbg"] .card h2[data-l2]::after{content:attr(data-l2);display:block;margin-top:4px;font-family:var(--bnbg-serif);font-style:italic;font-weight:400;font-size:.8em;letter-spacing:.01em;text-transform:none;color:var(--bnbg-gold-italic)}
html[data-skin="bnbg"] .step{font-weight:400;color:var(--bnbg-text-2);border-radius:var(--bnbg-r)}
html[data-skin="bnbg"] .demo{border:1px solid var(--bnbg-well-line);box-shadow:inset 0 2px 8px rgba(0,0,0,.7);background:rgba(5,5,5,.72)}
html[data-skin="bnbg"] .card .big-coin{filter:drop-shadow(0 8px 16px rgba(0,0,0,.55))}
/* cards: the stitched frame is the NON-scrolling .cardwrap; the .card inside is a transparent scroller within the stitch (keeps its class for the kit's text tokens) */
html[data-skin="bnbg"] .cardwrap{--bnbg-l-rim:6px;--bnbg-l-rimc:var(--bnbg-leather-rim);--bnbg-l-inset:9px;--bnbg-l-stitch:var(--bnbg-stitch-c);--bnbg-l-sr:11px;
  background:var(--bnbg-leather);border:1px solid var(--bnbg-leather-edge);border-radius:var(--bnbg-r-lg);box-shadow:inset 0 0 0 var(--bnbg-l-rim) var(--bnbg-l-rimc),var(--bnbg-leather-hi),0 30px 80px rgba(0,0,0,.72);padding:11px;color:var(--bnbg-text)}
html[data-skin="bnbg"] .cardwrap>.card{background:none;border:0;border-radius:9px;box-shadow:none;outline:0;padding:9px 8px 10px;
  -webkit-mask-image:linear-gradient(transparent,#000 8px);mask-image:linear-gradient(transparent,#000 8px)}html[data-skin="bnbg"] .cardwrap>.card:not(:has(.row.sticky)){padding-bottom:18px;-webkit-mask-image:linear-gradient(transparent,#000 8px,#000 calc(100% - 16px),transparent);mask-image:linear-gradient(transparent,#000 8px,#000 calc(100% - 16px),transparent)}
/* the round close button stays on the corner as a riveted stud: a dark leather collar + edge ring, so the corner reads deliberate */
html[data-skin="bnbg"] .cardwrap>.x{box-shadow:0 0 0 4px var(--bnbg-leather-rim),0 0 0 5px var(--bnbg-leather-edge),0 8px 18px rgba(0,0,0,.6)}
/* sticky card footer: a shelf pinned inside the stitch - content fades out under it, a hairline marks its edge and 14px of solid hide keep any cut row well clear of the button */
html[data-skin="bnbg"] .card .row.sticky{bottom:-10px;margin:8px -8px -10px;padding:38px 0 10px;border-radius:0 0 9px 9px;background:var(--bnbg-leather-grain) 0 0/160px 160px repeat,var(--bnbg-leather-deep);-webkit-mask-image:linear-gradient(transparent,#000 12px);mask-image:linear-gradient(transparent,#000 12px)}   /* a 12px solid lip above the hairline: a half-hidden button fades, never shows a hard cap */
html[data-skin="bnbg"] .card .row.sticky::before{content:'';position:absolute;left:10px;right:10px;top:24px;border-top:1px solid rgba(201,169,95,.22);pointer-events:none}
html[data-skin="bnbg"] .card .row{gap:10px}
html[data-skin="bnbg"] :is(#banner,.card h2){font-variant-numeric:lining-nums}
/* v1.2.1 black + gold: neutral knob, an inactive (auto off) amount in grey not dimmed-olive gold, a desaturated scrim (the gold button no longer bleeds brown through), neutral disabled label; narrow rows */html[data-skin="bnbg"]{--bnbg-off-text:#B4B1A9}html[data-skin="bnbg"] .tog i,html[data-skin="bnbg"] .tog:not(:has(i)):after{background:linear-gradient(180deg,#8C8C89,#545452)}html[data-skin="bnbg"] #panel .amt.off{opacity:1;border-color:rgba(138,107,31,.45)}html[data-skin="bnbg"] #panel .amt.off :is(input,b,span){color:#ACA9A2}html[data-skin="bnbg"] #modal{-webkit-backdrop-filter:blur(6px) saturate(.25) brightness(.8);backdrop-filter:blur(6px) saturate(.25) brightness(.8)}html[data-skin="bnbg"] .brow span{white-space:nowrap}@media (max-width:380px){html[data-skin="bnbg"] .brow{font-size:12px;column-gap:5px}html[data-skin="bnbg"] .seg.skin{max-width:100%;box-sizing:border-box}html[data-skin="bnbg"] .seg.skin button{padding:0 10px}}
