/* Starfall Quest - BNBG Black Gold specifics the shared kit (skin-bnbg.css) cannot know. Scoped: classic is untouched.
   Linked after skin-bnbg.css. Visual only: coins and gems stay play currency with no cash value. */
html[data-skin="bnbg"]{--sq-hair:rgba(183,157,98,.42);--sq-face:linear-gradient(170deg,rgba(33,32,30,.94),rgba(10,10,10,.94));--sq-metal:linear-gradient(180deg,#FFF3C8 0%,#F1D27A 26%,#D4AF37 55%,#A8862A 80%,#E8C76A 100%)}
/* desktop: the app column sits in a soft true-black vignette with a champagne hairline edge, not a hard texture cut on flat black */
html[data-skin="bnbg"] body{background:radial-gradient(ellipse 70% 90% at 50% 40%,#0E0E0D 0,#070707 55%,#030303 100%) fixed,#050505}
html[data-skin="bnbg"] #app{box-shadow:0 0 0 1px rgba(183,157,98,.16),0 0 60px 10px rgba(0,0,0,.85)}

/* crest switch: gold crest on an obsidian chip; pressed = gold ring */
html[data-skin="bnbg"] #hud:not(.tighter) .crest{width:34px;height:34px}
html[data-skin="bnbg"] .crest{border:1px solid var(--sq-hair);background:radial-gradient(circle at 50% 30%,#262421 0,#0B0B0A 74%);box-shadow:inset 0 1px 0 rgba(255,240,183,.12),0 6px 16px rgba(0,0,0,.55)}
html[data-skin="bnbg"] .crest[aria-pressed="true"]{border-color:#D4AF37;box-shadow:0 0 0 1px rgba(212,175,55,.28),0 0 16px rgba(241,210,122,.28),0 6px 16px rgba(0,0,0,.55)}
html[data-skin="bnbg"] .crest img{filter:drop-shadow(0 0 5px rgba(212,175,55,.3))}
html[data-skin="bnbg"] .crest:active{transform:translateY(1px);box-shadow:inset 0 2px 6px rgba(0,0,0,.6)}
html[data-skin="bnbg"] #hud{transition:transform .5s cubic-bezier(.22,1,.36,1),opacity .35s}
html[data-skin="bnbg"] .pill{border-radius:999px;gap:6px}
html[data-skin="bnbg"] .pill span{color:#F3EDE0;font-variant-numeric:tabular-nums}
html[data-skin="bnbg"] .pill.bump{animation:sq-glow .5s ease-out}
/* narrow phones (UI.fitHud steps): the value never touches the pill's end; the tightest step shrinks type, icons and round buttons */
html[data-skin="bnbg"] #hud.tight .pill{padding-right:11px}
html[data-skin="bnbg"] #hud.tightest .pill{gap:3px;padding:0 9px 0 5px;font-size:13px}
html[data-skin="bnbg"] #hud.tightest :is(.crest,.ibtn){width:30px;height:30px}
/* the daily badge dot sits clear of the PLAY button */
html[data-skin="bnbg"] #btn-daily .dot{top:-9px;right:8px;width:12px;height:12px;box-shadow:0 0 0 1px #0A0A0A,0 0 0 2.5px rgba(10,10,10,.6),0 0 8px rgba(246,224,138,.5)}
@keyframes sq-glow{0%{box-shadow:0 0 0 0 rgba(241,210,122,0)}35%{box-shadow:0 0 0 2px rgba(241,210,122,.45),0 0 18px rgba(241,210,122,.45)}100%{box-shadow:0 0 0 0 rgba(241,210,122,0)}}

/* splash */
html[data-skin="bnbg"] #scr-splash{background:radial-gradient(ellipse 90% 60% at 50% 32%,rgba(212,175,55,.13),transparent 62%),radial-gradient(ellipse 140% 90% at 50% 120%,rgba(0,0,0,.9),transparent 60%),url(assets/background.webp) center top/cover no-repeat,#0A0A0A}
html[data-skin="bnbg"] #splash-hero{animation:sq-float 5s ease-in-out infinite;filter:drop-shadow(0 18px 30px rgba(0,0,0,.6))}
@keyframes sq-float{0%,100%{transform:translateY(0)}50%{transform:translateY(-7px)}}
html[data-skin="bnbg"] .bnbg-mark.lg{margin:-6px 0 14px}
html[data-skin="bnbg"] .logo{font-size:clamp(40px,12.5vw,66px);line-height:1}
html[data-skin="bnbg"] .logo span{font-size:.3em;letter-spacing:.62em;margin-top:12px;padding-left:.62em}
html[data-skin="bnbg"] .tagl{font-size:clamp(13px,3.6vw,16px);letter-spacing:.32em;margin-top:28px;color:#C9B98F}
html[data-skin="bnbg"] .tagl b{color:#B5AB95;font-weight:400;letter-spacing:.22em;font-size:.82em;margin-top:8px}
html[data-skin="bnbg"] .ver{color:#8F8672;opacity:1;letter-spacing:.08em}

/* primary actions (PLAY, TAP TO PLAY, NEXT, CLAIM, GOT IT) are the champagne-gold face; small defaults stay lacquer */
html[data-skin="bnbg"] .btn:not(.sm):not(.grey):not(.blue):not(.pink):not(.gold):not([disabled]){background:var(--bnbg-fill) padding-box,linear-gradient(158deg,#FFF3C8,#B8913A 50%,#F1D27A) border-box;color:#1C1406;font-weight:600;text-shadow:0 1px 0 rgba(255,248,230,.35);box-shadow:inset 0 1px 0 rgba(255,255,255,.55),inset 0 -6px 14px rgba(120,84,20,.35),0 10px 28px rgba(0,0,0,.55),0 0 26px rgba(212,175,55,.28)}
html[data-skin="bnbg"] .btn{font-size:16px;letter-spacing:.14em}
html[data-skin="bnbg"] .btn.sm{font-size:13px;letter-spacing:.12em}
html[data-skin="bnbg"] .btn.pink{background:linear-gradient(180deg,#1A1914,#0C0C0A) padding-box,linear-gradient(158deg,rgba(255,240,183,.55),rgba(163,123,53,.55) 55%,rgba(229,197,118,.55)) border-box;color:var(--bnbg-text)}
html[data-skin="bnbg"] .btn .gl{filter:drop-shadow(0 1px 1px rgba(0,0,0,.4))}
/* gold fill is kept for the one primary action on a screen; price and secondary buttons (shop, +5 MOVES, refill) are black lacquer */
html[data-skin="bnbg"] .btn.gold.sm{background:linear-gradient(180deg,#25231C,#0D0E0B) padding-box,linear-gradient(158deg,#FFF0B7,#A37B35 50%,#E5C576) border-box;color:#F5DF9D;font-weight:500;text-shadow:none;box-shadow:inset 0 1px 0 rgba(255,240,183,.16),inset 0 -8px 16px rgba(0,0,0,.45),0 8px 20px rgba(0,0,0,.5)}
html[data-skin="bnbg"] .btn.gold.sm:after{background-image:linear-gradient(105deg,transparent 30%,rgba(255,240,183,.14) 48%,transparent 66%)}

/* map */
html[data-skin="bnbg"] #scr-map:before{background:linear-gradient(#050505 0,#050505 calc(46px + var(--sat)),rgba(5,5,5,.88) calc(70px + var(--sat)),rgba(5,5,5,0))}
html[data-skin="bnbg"] #map-bar{background:linear-gradient(rgba(5,5,5,0),rgba(5,5,5,.86) 55%)}

/* in-game HUD panels */
/* low / critical moves: the number keeps full strength (AA on the light grain) and breathes by a glow, not by fading */
html[data-skin="bnbg"] #g-moves.low b{color:#F1D27A;animation:sq-glow-low 1.6s ease-in-out infinite}
html[data-skin="bnbg"] #g-moves.crit b{color:#FF8A9A;font-weight:400;animation:sq-glow-crit 1s ease-in-out infinite}
@keyframes sq-glow-low{0%,100%{text-shadow:0 0 0 rgba(241,210,122,0)}50%{text-shadow:0 0 14px rgba(241,210,122,.6)}}
@keyframes sq-glow-crit{0%,100%{text-shadow:0 0 0 rgba(255,107,128,0)}50%{text-shadow:0 0 14px rgba(255,107,128,.8)}}
@keyframes sq-breathe{0%,100%{opacity:1}50%{opacity:.55}}
html[data-skin="bnbg"] #g-moves i{color:#E8C76A;font-weight:500}html[data-skin="bnbg"] #g-moves i.low{color:#FF8A9A}
html[data-skin="bnbg"] .goal.done span{background:var(--bnbg-fill);border-color:transparent;color:#1C1406}
html[data-skin="bnbg"] .goal.core canvas{background:radial-gradient(rgba(241,210,122,.22),transparent 70%);box-shadow:0 0 0 1px #D4AF37,0 0 10px rgba(212,175,55,.55)}
html[data-skin="bnbg"] .goal.hit{animation:sq-glow .4s ease-out}
html[data-skin="bnbg"] #sfill{background:linear-gradient(90deg,#A67C2D,#E8C771 70%,#FFF0B2);box-shadow:0 0 10px rgba(232,199,113,.45);transition-timing-function:cubic-bezier(.22,1,.36,1)}
html[data-skin="bnbg"] .smark{top:-9px;transition:transform .45s cubic-bezier(.22,1,.36,1),filter .3s;filter:saturate(.2) brightness(.55)}
html[data-skin="bnbg"] .smark.on{filter:drop-shadow(0 0 6px rgba(241,210,122,.6));transform:scale(1.12)}
html[data-skin="bnbg"] #g-meter{color:#C9B98F;font-weight:500;letter-spacing:.2em}
html[data-skin="bnbg"] #g-meter div span{background:linear-gradient(90deg,#6B551F,#A8862A)}
html[data-skin="bnbg"] #g-top{transition:transform .5s cubic-bezier(.22,1,.36,1),opacity .35s}
html[data-skin="bnbg"] .boost em{background:var(--bnbg-fill);color:#1C1406;border:1px solid rgba(0,0,0,.7);box-shadow:0 0 0 1px rgba(212,175,55,.35);font-weight:600}
html[data-skin="bnbg"] .boost em.buy{background:#0B0B09;color:#F1D27A;border:1px solid #B79D62}

/* cards + modals */
html[data-skin="bnbg"] .card{animation:sq-pop .42s cubic-bezier(.22,1,.36,1)}
@keyframes sq-pop{0%{transform:translateY(14px) scale(.98);opacity:0}100%{transform:none;opacity:1}}
html[data-skin="bnbg"] .card h3{margin:12px 0 8px}
html[data-skin="bnbg"] .card p{font-size:14px;line-height:1.45}
html[data-skin="bnbg"] .card a{color:#E8C76A!important}
html[data-skin="bnbg"] .gcap{font-weight:400;color:#EEE8D8;font-size:14px}
html[data-skin="bnbg"] .rules{font-weight:400;opacity:1}
html[data-skin="bnbg"] .diff i{background:#2B2925}html[data-skin="bnbg"] .diff i.on{background:#D4AF37}
html[data-skin="bnbg"] .shop .it{font-weight:400;color:#EEE8D8}
html[data-skin="bnbg"] .set{font-size:14px}
html[data-skin="bnbg"] .seg button{font-size:11.5px;padding:0 12px}
html[data-skin="bnbg"] .skinrow .seg{margin-left:auto}
html[data-skin="bnbg"] #intro .new{color:#C9B98F;font-size:12px;font-weight:500;letter-spacing:.4em;transform:none;animation:none;margin-bottom:4px;text-shadow:0 2px 12px rgba(0,0,0,.7)}

/* world intro + reward scene */
html[data-skin="bnbg"] #wintro{background:#050505}
html[data-skin="bnbg"] #wintro .w,html[data-skin="bnbg"] #wintro .c{color:#C9B98F;text-shadow:0 2px 10px rgba(0,0,0,.8);font-weight:500;letter-spacing:.4em;font-size:13px}
html[data-skin="bnbg"] :is(#wintro .n,#hm-final .a,#hm-final .c){color:transparent;background:var(--sq-metal);-webkit-background-clip:text;background-clip:text;text-shadow:none;filter:drop-shadow(0 4px 16px rgba(0,0,0,.75));font-weight:600;letter-spacing:.06em}
html[data-skin="bnbg"] #wintro .c b{color:#F1D27A;letter-spacing:.12em;font-size:20px;margin-top:8px}
html[data-skin="bnbg"] #hm-score{color:#C9B98F;font-weight:500;letter-spacing:.3em;font-size:12px}
html[data-skin="bnbg"] #hm-score b{color:#F3EDE0;font-weight:500;text-shadow:0 2px 12px rgba(0,0,0,.8);letter-spacing:.02em;margin-top:2px}
html[data-skin="bnbg"] #hm-score i{color:#E8C76A;text-shadow:none;letter-spacing:.06em;font-size:12.5px}
/* rarity + tap labels: a dark pill keeps them legible over any light (4.5:1+); the tap prompt breathes by brightness only,
   because hm.js drives its opacity to show and hide it (a CSS opacity animation would override that and keep it on screen) */
html[data-skin="bnbg"] #hm-rar{font-weight:500;letter-spacing:.6em;font-size:14px;padding:6px 16px 6px calc(16px + .6em)}
html[data-skin="bnbg"] #hm-rar:empty{display:none}
html[data-skin="bnbg"] #hm-tap{color:#E8D9B0;font-weight:500;letter-spacing:.4em;font-size:13px;padding:6px 16px 6px calc(16px + .4em);animation:sq-shine 2.2s ease-in-out infinite}
@keyframes sq-shine{0%,100%{filter:brightness(1)}50%{filter:brightness(.62)}}
html[data-skin="bnbg"] #hm-final .b{color:#C9B98F;font-weight:500;letter-spacing:.5em;font-size:14px;text-shadow:0 2px 12px rgba(0,0,0,.7)}
html[data-skin="bnbg"] #hm-final .d{color:#F1D27A;transform:none;font-weight:500;letter-spacing:.2em;font-size:clamp(16px,5vw,22px);text-shadow:0 2px 12px rgba(0,0,0,.7)}
html[data-skin="bnbg"] .rc{border:1px solid rgba(0,0,0,.8);border-radius:12px;box-shadow:0 14px 30px rgba(0,0,0,.6),inset 0 1px 0 rgba(255,255,255,.35)}
html[data-skin="bnbg"] .rc .in:before{background:linear-gradient(120deg,transparent 35%,rgba(255,240,183,.16) 48%,transparent 60%);animation-duration:3.6s}
html[data-skin="bnbg"] .rc b{color:#F3EDE0;font-weight:500;text-shadow:none}
html[data-skin="bnbg"] .rc small{color:#C9B98F;font-weight:500;letter-spacing:.12em;font-size:9.5px}
html[data-skin="bnbg"] .rc em{background:var(--bnbg-fill);color:#1C1406;border:1px solid rgba(0,0,0,.7);transform:none;box-shadow:0 0 12px rgba(212,175,55,.4);letter-spacing:.1em}
html[data-skin="bnbg"] .rc.COMMON{--f1:#EBD9A6;--f2:#B08D4A;--f3:#3A3326}html[data-skin="bnbg"] .rc.RARE{--f1:#F2F2EE;--f2:#A8ABB0;--f3:#5C5F64}
html[data-skin="bnbg"] .rc.EPIC{--f1:#F6E08A;--f2:#C9A040;--f3:#6B551F}html[data-skin="bnbg"] .rc.LEGENDARY{--f1:#FFF6D2;--f2:#F1D27A;--f3:#A8862A}
html[data-skin="bnbg"] .rc.MYTHIC{background:conic-gradient(from var(--a,0deg),#FFF3C8,#D4AF37,#6B551F,#F1D27A,#B79D62,#FFF3C8);animation-duration:6s}
html[data-skin="bnbg"] #flash{background:radial-gradient(circle at 50% 50%,#FFF6DA,#E8C76A 45%,transparent 75%)}
html[data-skin="bnbg"] #dim{background:#000}
@media (prefers-reduced-motion:reduce){html[data-skin="bnbg"] :is(#splash-hero,#g-moves.low b,#g-moves.crit b,.boost.sel,#hm-tap,.rc .in:before,.rc.MYTHIC){animation:none}}

/* ================= leather (kit v1.2 true black, after the BNBG world CR 126/127) =================
   Every panel, HUD box, pill, plate and card is stitched TRUE-BLACK leather (owner decision 2026-10-22): charcoal-grained hide
   (the kit's one shared data-URI tile, no filters), #4A3D22 antique-gold edge, near-black inner rim, soft top highlight, dashed gold stitch (::after, as the world's CSS
   draws it; cards carry it on their background so it stays put while they scroll). Buttons (gold primary, black lacquer
   secondary) are unchanged. Text on leather uses the kit's lifted tokens (eyebrow #D4B46A / label #DCCDA4 / muted #D2C8B2). */
html[data-skin="bnbg"] :is(.gp,#g-score,#map-world,#combo,#hm-rar,#hm-tap,.rc .in){--bnbg-eyebrow:#D4B46A;--bnbg-label:#DCCDA4;--bnbg-muted:#D2C8B2;--bnbg-muted-2:#CFC5AE;
  background:var(--bnbg-l-bg);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);color:var(--bnbg-text);-webkit-backdrop-filter:none;backdrop-filter:none}
html[data-skin="bnbg"] :is(.gp,#g-score,#map-world,#combo,#hm-rar,#hm-tap,.rc .in)::after{content:'';position:absolute;inset:var(--bnbg-l-inset);border:1px dashed var(--bnbg-l-stitch);border-radius:max(2px,calc(var(--bnbg-l-r) - var(--bnbg-l-inset)));pointer-events:none}
html[data-skin="bnbg"] :is(#g-level,#g-moves){position:relative}
/* sizes: HUD boxes + map banner = md; chips, score housing, reward card faces = sm */
html[data-skin="bnbg"] :is(.gp,#map-world){--bnbg-l-rim:4px;--bnbg-l-rimc:var(--bnbg-leather-rim);--bnbg-l-inset:6px;--bnbg-l-stitch:var(--bnbg-stitch-c);--bnbg-l-bg:var(--bnbg-leather);--bnbg-l-drop:0 14px 30px rgba(0,0,0,.6)}
html[data-skin="bnbg"] :is(#g-score,#combo,#hm-rar,#hm-tap,.rc .in){--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-bg:var(--bnbg-leather-sm);--bnbg-l-drop:0 8px 20px rgba(0,0,0,.5)}
html[data-skin="bnbg"] .gp{--bnbg-l-r:16px}html[data-skin="bnbg"] #map-world{--bnbg-l-r:14px}html[data-skin="bnbg"] .rc .in{--bnbg-l-r:9px}
html[data-skin="bnbg"] :is(#g-score,#combo,#hm-rar,#hm-tap){--bnbg-l-r:999px}

/* HUD pills (coins / gems / lives): kit leather chips, a touch taller; the icon is centred in the rounded end so it clears the stitch */
html[data-skin="bnbg"] .pill{height:34px;padding:0 13px 0 5px;font-weight:500}
html[data-skin="bnbg"] .pill canvas{width:22px;height:22px;margin:0}
html[data-skin="bnbg"] .pill small{color:var(--bnbg-label);opacity:1;font-weight:500;letter-spacing:.08em}
html[data-skin="bnbg"] #hud.tighter .pill{min-width:0}
html[data-skin="bnbg"] #hud.tightest .pill canvas{width:20px;height:20px;margin:0 0 0 1px}
/* last step on the narrowest phones (320px): a touch smaller still, so values never run under the stitch at the pill end */
html[data-skin="bnbg"] #hud.compact{gap:2px;padding-left:4px;padding-right:4px}html[data-skin="bnbg"] #hud.compact .pill{font-size:12px;gap:2px;padding:0 8px 0 4px}html[data-skin="bnbg"] #hud.compact .pill canvas{width:18px;height:18px}html[data-skin="bnbg"] #hud.compact .pill small{letter-spacing:.02em}
html[data-skin="bnbg"] #hud.compact .ibtn:last-child::before{right:-4px}
html[data-skin="bnbg"] .pill.bump{animation:sq-bump .5s ease-out}
@keyframes sq-bump{0%,100%{border-color:var(--bnbg-leather-edge)}35%{border-color:var(--bnbg-leather-edge-glow)}}
/* 44px touch targets: the 34px chips and round buttons keep their look, an invisible ::before (::after on the crest) takes the
   tap. Pills only grow vertically (they are already wider than 44px) so UI.fitHud's overflow test is not fooled; the last
   round button only reaches as far right as the HUD's own padding, so the HUD never scrolls sideways */
html[data-skin="bnbg"] #hud .pill::before{content:'';position:absolute;inset:-5px 0}
html[data-skin="bnbg"] #hud .ibtn{position:relative}
html[data-skin="bnbg"] #hud .ibtn::before{content:'';position:absolute;inset:-5px}
html[data-skin="bnbg"] #hud.tightest .ibtn::before{inset:-7px}
html[data-skin="bnbg"] #hud .ibtn:last-child::before{right:-6px}
html[data-skin="bnbg"] #hud .crest::after{inset:-5px}
html[data-skin="bnbg"] #hud.tightest .crest::after{inset:-7px}
html[data-skin="bnbg"] .tog::before{content:'';position:absolute;inset:-9px -4px}

/* LEVEL / GOAL / MOVES: md leather boxes. The three eyebrows share one line (9px from the top edge, as GOAL's), LEVEL and
   MOVES share one number size and baseline, and LEVEL's name sits under its number - the leather-target layout */
html[data-skin="bnbg"] .gp{border-radius:16px}
html[data-skin="bnbg"] #g-top{gap:7px;padding:6px 8px 0}
html[data-skin="bnbg"] :is(#g-level,#g-moves){justify-content:flex-start;gap:0;padding:9px 6px 10px}
html[data-skin="bnbg"] :is(#g-level,#g-moves) small{color:var(--bnbg-eyebrow);font-weight:500;letter-spacing:.2em;font-size:10px;line-height:12px;opacity:1;padding-left:.2em}
html[data-skin="bnbg"] :is(#g-level,#g-moves) b{font-family:var(--bnbg-num-light);font-weight:300;color:var(--bnbg-text);font-variant-numeric:tabular-nums lining-nums;letter-spacing:-.01em;font-size:34px;line-height:1;margin-top:6px}
html[data-skin="bnbg"] #g-level{width:84px;padding-left:calc(var(--bnbg-l-inset) + 3px);padding-right:calc(var(--bnbg-l-inset) + 3px)}
/* the level name: one line when it fits, else two (never an ellipsis); the inline size game.js sets for classic's wider box is overridden */
html[data-skin="bnbg"] #g-level i{color:var(--bnbg-text-2);opacity:1;font-size:10.5px!important;font-weight:400;max-width:100%;margin-top:4px;white-space:normal;text-overflow:clip;text-align:center;line-height:1.08;letter-spacing:-.005em;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;overflow-wrap:break-word}
@media (max-width:360px){html[data-skin="bnbg"] #g-level{width:80px}html[data-skin="bnbg"] #g-level i{font-size:10px!important;letter-spacing:0}}
html[data-skin="bnbg"] #g-moves i{font-size:11.5px;margin-top:4px}
html[data-skin="bnbg"] #g-goals{padding:21px 6px 9px;gap:6px}
html[data-skin="bnbg"] #g-goals:before{content:'GOAL';top:9px;left:0;right:0;text-align:center;background:none;border:0;border-radius:0;padding:0 0 0 .24em;color:var(--bnbg-eyebrow);font-weight:500;font-size:10px;letter-spacing:.24em;line-height:12px}
html[data-skin="bnbg"] .goal canvas{width:42px;height:42px}
html[data-skin="bnbg"] #g-goals.many .goal canvas{width:36px;height:36px}
/* goal counters: pressed into the hide (the grain shows through); done = the gold fill */
html[data-skin="bnbg"] .goal span{background:var(--bnbg-well);border:1px solid var(--bnbg-well-edge);box-shadow:var(--bnbg-well-sh);color:var(--bnbg-text);font-family:var(--bnbg-num-light);font-weight:400;font-variant-numeric:tabular-nums;letter-spacing:.01em}
html[data-skin="bnbg"] .goal.done span{background:var(--bnbg-fill);border-color:transparent;color:#1C1406;font-weight:600}
@media (min-height:760px){html[data-skin="bnbg"] #g-goals{min-height:88px}html[data-skin="bnbg"] .goal canvas{width:46px;height:46px}}
/* short phones (<= 700px tall): the HUD compacts to classic's height so the board keeps its cell size (board.js) */
@media (max-height:700px){html[data-skin="bnbg"] .gp{--bnbg-l-rim:3px;--bnbg-l-inset:4px;--bnbg-l-r:16px}html[data-skin="bnbg"] #g-top{padding-top:4px}
  html[data-skin="bnbg"] #g-goals{min-height:0;padding:19px 6px 6px}html[data-skin="bnbg"] #g-goals:before{top:7px}html[data-skin="bnbg"] .goal canvas{width:34px;height:34px}html[data-skin="bnbg"] .goal span{font-size:13px}
  html[data-skin="bnbg"] :is(#g-level,#g-moves){padding-top:7px;padding-bottom:6px}html[data-skin="bnbg"] :is(#g-level,#g-moves) b{font-size:28px;margin-top:3px}html[data-skin="bnbg"] :is(#g-level,#g-moves) i{margin-top:2px}}
@media (min-width:700px) and (min-height:900px){html[data-skin="bnbg"] #g-goals{min-height:104px}html[data-skin="bnbg"] .goal canvas{width:54px;height:54px}html[data-skin="bnbg"] :is(#g-level,#g-moves) b{font-size:42px;margin-top:8px}}

/* score: a stitched leather housing round the gold progress rail */
html[data-skin="bnbg"] #g-score{margin:8px 8px 0;padding:10px 14px 9px 12px;border-radius:999px}
html[data-skin="bnbg"] #g-score b{font-family:var(--bnbg-num-light);font-weight:400;color:var(--bnbg-gold-italic);font-variant-numeric:tabular-nums;font-size:15px;min-width:50px}
html[data-skin="bnbg"] #sbar,html[data-skin="bnbg"] #g-meter div{background:linear-gradient(180deg,rgba(4,4,4,.76),rgba(12,12,11,.64));border:1px solid var(--bnbg-well-line);box-shadow:inset 0 1px 2px rgba(0,0,0,.8),0 1px 0 rgba(255,240,210,.06)}
html[data-skin="bnbg"] #sbar{height:8px}
html[data-skin="bnbg"] #g-meter{color:var(--bnbg-eyebrow)}
@media (max-height:700px){html[data-skin="bnbg"] #g-score{margin-top:5px;padding:5px 12px 5px 10px}html[data-skin="bnbg"] #g-score b{font-size:14px}}
/* landscape phones (about 390px tall): the HUD compacts so the stitched board still fits above the fold, as classic's does */
@media (orientation:landscape) and (max-height:500px){
  html[data-skin="bnbg"] #g-top{padding-top:2px}
  html[data-skin="bnbg"] #g-goals{padding:18px 6px 5px}html[data-skin="bnbg"] .goal canvas{width:30px;height:30px}
  html[data-skin="bnbg"] :is(#g-level,#g-moves) b{font-size:24px;margin-top:2px}
  html[data-skin="bnbg"] #g-score{margin-top:3px;padding:5px 12px 5px 10px}html[data-skin="bnbg"] #g-score b{font-size:13px;line-height:16px}}

/* booster slots are BUTTONS, so they are not leather (kit: "Buttons are NOT leather"): the black lacquer face of the round HUD
   buttons (.ibtn) with its gold hairline, the gold count chip; selected = gold edge and a soft gold ring that breathes by opacity
   on its own layer (the face itself is never repainted per frame) */
html[data-skin="bnbg"] .boost{border-radius:16px;border:1px solid var(--bnbg-line);background:radial-gradient(circle at 50% 30%,#24221C 0,#0D0D0B 72%);box-shadow:inset 0 1px 0 rgba(255,240,183,.12),0 6px 16px rgba(0,0,0,.55);color:var(--bnbg-gold-hi)}
html[data-skin="bnbg"] .boost:hover{border-color:var(--bnbg-line-strong)}
html[data-skin="bnbg"] .boost:active{transform:translateY(1px);box-shadow:inset 0 2px 6px rgba(0,0,0,.6)}
html[data-skin="bnbg"] .boost.sel{border-color:var(--bnbg-gold);animation:none}
html[data-skin="bnbg"] #g-bot .boost.sel::before{content:'';position:absolute;inset:-1px;border-radius:inherit;pointer-events:none;box-shadow:0 0 0 2px rgba(232,199,106,.75),0 0 22px rgba(241,210,122,.45);animation:sq-ring 1.6s ease-in-out infinite;will-change:opacity}
@keyframes sq-ring{0%,100%{opacity:.45}50%{opacity:1}}
/* ... inside a card (pre-level picks) they are pressed into the hide, not leather on leather */
html[data-skin="bnbg"] .card .boost{background:var(--bnbg-well);border-color:var(--bnbg-well-edge);box-shadow:var(--bnbg-well-sh)}
html[data-skin="bnbg"] .card .boost::after{content:none}
html[data-skin="bnbg"] .card .boost.sel{border-color:#E8C76A;background:radial-gradient(circle at 50% 35%,rgba(212,175,55,.2),rgba(8,8,8,.5) 75%)}

/* map banner: a stitched leather plate - eyebrow "WORLD 4", the world's name in the serif, progress line under it */
html[data-skin="bnbg"] #map-world{border-radius:14px;padding:10px 24px 11px;font-family:var(--bnbg-serif);font-weight:400;font-size:19px;letter-spacing:.01em;color:var(--bnbg-text);line-height:1.15}
html[data-skin="bnbg"] #map-world .ey{display:block;font-family:var(--bnbg-font);color:var(--bnbg-eyebrow);font-weight:500;letter-spacing:.24em;font-size:10px;line-height:12px;margin-bottom:3px;padding-left:.24em}
html[data-skin="bnbg"] #map-world small{font-family:var(--bnbg-font);color:var(--bnbg-muted);opacity:1;font-weight:400;letter-spacing:.08em;font-size:11px;margin-top:4px}

/* praise banner (OUT OF MOVES / level intro): a centred md leather plate, serif gold title + eyebrow */
html[data-skin="bnbg"] #banner{left:0;right:0;margin:0 auto;width:min(86%,380px);padding:18px 18px 19px;font-family:var(--bnbg-serif);font-weight:400;font-size:clamp(24px,7.4vw,34px);line-height:1.1;letter-spacing:.04em;color:var(--bnbg-gold-italic)}
html[data-skin="bnbg"] #banner small{font-family:var(--bnbg-font);font-size:11px;color:var(--bnbg-eyebrow);letter-spacing:.26em;margin-top:9px;font-weight:500;-webkit-text-stroke:0}
html[data-skin="bnbg"] #combo{border-radius:999px;padding:5px 15px;color:var(--bnbg-gold-hi);text-shadow:none;font-weight:500;letter-spacing:.14em;font-size:13px}
html[data-skin="bnbg"] #toast{padding:12px 20px;font-weight:500;font-size:14px}

/* cards: kit leather; serif titles in sentence case (the strings come cased from the code, so names keep their capitals)
   with an optional gold-italic second line (.l2, BNBG only) */
html[data-skin="bnbg"] .card{padding:22px 20px 20px}
html[data-skin="bnbg"] .card .row.sticky{bottom:-20px;margin:8px -20px -20px;padding:12px 0 18px}
html[data-skin="bnbg"] .card h2{font-size:30px;letter-spacing:.005em;font-weight:400;margin:2px 0 10px}
html[data-skin="bnbg"] .card h2 .l2.bnbg-only{display:block!important;font-size:.8em;margin-top:2px}
/* digits inside serif titles: the light sans with lining figures ("Level 37", "Level 9") */
html[data-skin="bnbg"] #banner .num{font-family:var(--bnbg-num-light);font-weight:400;font-variant-numeric:lining-nums tabular-nums}
html[data-skin="bnbg"] :is(h2,#hm-title) .num{font-family:var(--bnbg-num-light);font-weight:300;font-style:normal;font-variant-numeric:lining-nums tabular-nums;letter-spacing:0;font-size:1.04em}
html[data-skin="bnbg"] .ribbon{border:0;padding:0 0 0 .28em;color:var(--bnbg-eyebrow);font-size:11px;letter-spacing:.28em;margin-bottom:4px}
html[data-skin="bnbg"] .goalrow{background:var(--bnbg-well);border:1px solid var(--bnbg-well-edge);border-radius:14px;box-shadow:var(--bnbg-well-sh)}
/* Star shop items: small stitched leather tiles laid on the card (sm recipe: 3px rim, stitch 4px in, radius 14) */
html[data-skin="bnbg"] .shop .it{position:relative;background:var(--bnbg-leather-sm);border:1px solid var(--bnbg-leather-edge);border-radius:14px;padding:9px 8px 11px;
  box-shadow:inset 0 0 0 3px var(--bnbg-leather-rim-sm),var(--bnbg-leather-hi),0 6px 14px rgba(0,0,0,.45)}
html[data-skin="bnbg"] .shop .it::after{content:'';position:absolute;inset:4px;border:1px dashed var(--bnbg-stitch-c-sm);border-radius:10px;pointer-events:none}
html[data-skin="bnbg"] .goalrow .goal span{font-size:20px}
html[data-skin="bnbg"] .rules span{background:transparent;border:1px solid rgba(201,169,95,.4);border-radius:999px;color:var(--bnbg-label);padding:2px 10px;letter-spacing:.04em}
html[data-skin="bnbg"] .diff i{background:#2B2925}
html[data-skin="bnbg"] #intro canvas{background:linear-gradient(180deg,rgba(4,4,4,.66),rgba(12,12,11,.56));border:1px solid var(--bnbg-well-edge);border-radius:14px;box-shadow:var(--bnbg-well-sh)}
html[data-skin="bnbg"] #intro .new{color:var(--bnbg-eyebrow);text-shadow:none}
/* lives count: the leather cards' light cream number */
html[data-skin="bnbg"] .card p b[style*="font-size"]{display:inline-block;font-family:var(--bnbg-num-light);font-weight:300;color:var(--bnbg-text);font-size:40px!important;line-height:1.05;letter-spacing:-.01em;font-variant-numeric:tabular-nums lining-nums;margin:2px 0 4px}
/* fine print (settings / pause footer): full strength muted text and gold links (the inline opacity:.6 would drop to 3.2:1) */
html[data-skin="bnbg"] .card small[style*="opacity"]{opacity:1!important;color:var(--bnbg-muted);font-size:12px;line-height:1.5}
html[data-skin="bnbg"] .card small a{color:var(--bnbg-gold-hi)!important;text-decoration:underline;text-underline-offset:2px;text-decoration-color:rgba(241,210,122,.45)}

/* reward scene: the result plate - title (two lines, cream + gold italic), stars and score on one stitched leather plate;
   the rarity / tap labels are leather chips; the reward cards keep their rarity-metal frames around a stitched leather face */
html[data-skin="bnbg"] #hm-plate{display:flex;flex-direction:column;align-items:center;position:relative;isolation:isolate;width:min(320px,86%);padding:16px 16px 13px;margin-top:-4px}
html[data-skin="bnbg"] #hm-plate::before{content:'';position:absolute;inset:0;z-index:-1;border-radius:18px;background:var(--bnbg-leather);border:1px solid var(--bnbg-leather-edge);box-shadow:inset 0 0 0 5px var(--bnbg-leather-rim),var(--bnbg-leather-hi),0 24px 60px rgba(0,0,0,.7);transition:opacity .45s}
html[data-skin="bnbg"] #hm-plate::after{content:'';position:absolute;inset:8px;border:1px dashed var(--bnbg-stitch-c);border-radius:10px;pointer-events:none;transition:opacity .45s}
html[data-skin="bnbg"] #hm-plate.lite::before,html[data-skin="bnbg"] #hm-plate.lite::after{opacity:0}
html[data-skin="bnbg"] #hm-plate{--bnbg-eyebrow:#D4B46A}
html[data-skin="bnbg"] #hm-title{font-family:var(--bnbg-serif);font-weight:400;font-size:clamp(28px,8.2vw,36px);line-height:1.1;letter-spacing:.005em;color:var(--bnbg-text);background:none;-webkit-background-clip:border-box;background-clip:border-box;filter:none;text-shadow:none}
html[data-skin="bnbg"] #hm-title .t1,html[data-skin="bnbg"] #hm-title .l2{display:block}
html[data-skin="bnbg"] #hm-title .l2{font-style:italic;color:var(--bnbg-gold-italic)}
html[data-skin="bnbg"] #hm-title .ey{display:block;font-family:var(--bnbg-font);font-size:10.5px;font-weight:500;letter-spacing:.24em;line-height:12px;color:var(--bnbg-eyebrow);margin-bottom:6px;padding-left:.24em}
html[data-skin="bnbg"] #hm-stars{margin-top:6px;height:58px}
html[data-skin="bnbg"] #hm-stars canvas{width:50px;height:50px}html[data-skin="bnbg"] #hm-stars canvas:nth-child(2){width:62px;height:62px;margin-top:-8px}
html[data-skin="bnbg"] #hm-score{color:var(--bnbg-eyebrow);font-weight:500;letter-spacing:.26em;font-size:10.5px;padding-left:.26em;margin-top:4px}
html[data-skin="bnbg"] #hm-score b{font-family:var(--bnbg-num-light);font-weight:300;color:var(--bnbg-text);font-size:clamp(34px,10vw,44px);line-height:1.05;letter-spacing:-.01em;font-variant-numeric:tabular-nums lining-nums;text-shadow:none;margin:2px 0 0 -.26em}
html[data-skin="bnbg"] #hm-score i{color:var(--bnbg-gold-italic);text-shadow:none;letter-spacing:.06em;font-size:12px;font-weight:400;margin-left:-.26em}
@media (max-height:700px){html[data-skin="bnbg"] #hm-plate{padding:12px 14px 10px}html[data-skin="bnbg"] #hm-title{font-size:26px}html[data-skin="bnbg"] #hm-stars{height:46px;margin-top:2px}html[data-skin="bnbg"] #hm-stars canvas{width:40px;height:40px}html[data-skin="bnbg"] #hm-stars canvas:nth-child(2){width:50px;height:50px}html[data-skin="bnbg"] #hm-score b{font-size:30px}}
/* short screens (< 740px, hm.js .nosc): the score does not come back after the burst, so the plate folds it away and the chest shows */
html[data-skin="bnbg"] #hm-plate.nosc #hm-score{display:none}
/* landscape phones: the plate is one compact row - the title on one line, the stars beside it - so the 3D chest stays in view below it */
@media (max-height:500px){html[data-skin="bnbg"] #hm-plate{flex-direction:row;justify-content:center;gap:14px;width:auto;max-width:92%;padding:8px 22px 8px;margin-top:-10px}
  html[data-skin="bnbg"] #hm-plate::before{border-radius:16px;box-shadow:inset 0 0 0 4px var(--bnbg-leather-rim),var(--bnbg-leather-hi),0 16px 40px rgba(0,0,0,.6)}
  html[data-skin="bnbg"] #hm-plate::after{inset:6px}
  html[data-skin="bnbg"] #hm-title{font-size:22px;white-space:nowrap}html[data-skin="bnbg"] #hm-title .t1,html[data-skin="bnbg"] #hm-title .l2{display:inline}html[data-skin="bnbg"] #hm-title .ey{display:none}html[data-skin="bnbg"] #hm-title .l2{margin-left:.28em}
  html[data-skin="bnbg"] #hm-stars{height:36px;margin:0}html[data-skin="bnbg"] #hm-stars canvas{width:30px;height:30px}html[data-skin="bnbg"] #hm-stars canvas:nth-child(2){width:36px;height:36px;margin-top:-4px}
  html[data-skin="bnbg"] #hm-score{margin-top:0;font-size:9.5px}html[data-skin="bnbg"] #hm-score b{font-size:24px}html[data-skin="bnbg"] #hm-score i{font-size:10.5px;min-height:0}}
/* the reward cards settle a little lower so the stitched leather plinth's front edge stays in view above them */
html[data-skin="bnbg"] #hm-cards{top:calc(73.5% + min(18px, 2vh))}
html[data-skin="bnbg"] :is(#hm-rar,#hm-tap){left:50%;right:auto;translate:-50% 0;white-space:nowrap;border-radius:999px;text-shadow:none}
html[data-skin="bnbg"] .rc .in{border:1px solid rgba(0,0,0,.55);border-radius:9px;--bnbg-l-drop:inset 0 2px 8px rgba(0,0,0,.6)}
html[data-skin="bnbg"] .rc b{font-family:var(--bnbg-num-light);font-weight:300;font-size:21px;letter-spacing:-.01em;font-variant-numeric:tabular-nums lining-nums;color:var(--bnbg-text)}
/* labels: #E2C784 keeps 4.5:1 on the hide even in the collected state (hm.js dims the whole card to brightness .75) */
html[data-skin="bnbg"] .rc small{color:#E2C784;padding:0 6px}
html[data-skin="bnbg"] .rc small.long{letter-spacing:.04em;font-size:9px}
/* long values ("+1,500", "+10,000"; hm.js sets the class from the final value) stay at least 4px inside the stitch */
html[data-skin="bnbg"] .rc b.long{font-size:17px;letter-spacing:-.02em}
html[data-skin="bnbg"] .rc b.xlong{font-size:15px;letter-spacing:-.03em}
@media (prefers-reduced-motion:reduce){html[data-skin="bnbg"] .pill.bump{animation:none}html[data-skin="bnbg"] #g-bot .boost.sel::before{animation:none;opacity:1}}
/* the rarity label keeps its metal colour (champagne / gold read 3-3.8:1 on the lightest grain): its chip is the same hide, tanned darker */
html[data-skin="bnbg"] #hm-rar{--bnbg-l-bg:linear-gradient(rgba(6,6,6,.58),rgba(6,6,6,.58)),var(--bnbg-leather-sm)}
/* world intro: the leather cards' Georgia serif, engraved in metal */
html[data-skin="bnbg"] #wintro .n{font-family:var(--bnbg-serif);font-weight:400;letter-spacing:.05em}
/* landscape phones: cards scroll, and scrolled content must never paint over the stitch. The frame (rim + stitch) moves into a
   13px transparent BORDER (content stays 4px clear of the stitch), which a scroll container never paints its content over (content is clipped to the padding box);
   the hide is laid from the border edge, the antique-gold edge becomes a 1px outer ring, the rim an SVG ring like the stitch */
@media (max-height:500px){
  html[data-skin="bnbg"] .card{--bnbg-rim-svg:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100%25' height='100%25'%3E%3CclipPath id='c'%3E%3Crect width='100%25' height='100%25' rx='20'/%3E%3C/clipPath%3E%3Crect width='100%25' height='100%25' rx='20' fill='none' stroke='%230B0A09' stroke-width='12' clip-path='url(%23c)'/%3E%3C/svg%3E");
    border:13px solid transparent;padding:9px 7px 7px;
    background:var(--bnbg-l-st) 8px 8px/calc(100% - 16px) calc(100% - 16px) no-repeat,var(--bnbg-rim-svg) 0 0/100% 100% no-repeat,var(--bnbg-leather);
    background-origin:border-box;background-clip:border-box;
    box-shadow:0 0 0 1px var(--bnbg-leather-edge),0 30px 80px rgba(0,0,0,.72)}
  html[data-skin="bnbg"] .card .row.sticky{bottom:-7px;margin:8px -7px -7px;padding:10px 0 6px;border-radius:0;box-shadow:none;
    background:var(--bnbg-leather-grain) 0 100%/160px 160px repeat,linear-gradient(90deg,#121110,#0C0B0B)}}
