.bb-app{--bb-bg:#0c111b;--bb-panel:#141925;--bb-border:#2b3041;--bb-muted:#939fb5;--bb-green:#b8ff28;--bb-purple:#bd7dff;color:#f6f5ff;font:500 14px/1.4 Inter,Arial,sans-serif;max-width:1440px;margin:0 auto 30px}.bb-app *{box-sizing:border-box}.bb-app [hidden]{display:none!important}.bb-app button,.bb-app input,.bb-app select{font:inherit}.bb-app button{cursor:pointer}.bb-app button:disabled{cursor:default;opacity:.45}.bb-app button:focus-visible,.bb-app a:focus-visible,.bb-app input:focus-visible,.bb-app select:focus-visible{outline:2px solid var(--bb-green);outline-offset:4px}.bb-page-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 17px;color:var(--bb-muted);font-size:13px}.bb-page-heading a{color:#b9c3d2;text-decoration:none}.bb-demo-note{display:flex;align-items:center;gap:8px}.bb-demo-note i{width:6px;height:6px;background:var(--bb-green);border-radius:50%}.bb-game{overflow:hidden;border:1px solid var(--bb-border);border-radius:24px;background:var(--bb-bg);box-shadow:0 18px 75px #0003}.bb-header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:24px 30px 0;position:relative;z-index:2}.bb-brand{display:flex;align-items:center;gap:14px}.bb-brand h1{font-size:27px;font-weight:950;line-height:1;margin:0 0 6px;letter-spacing:-1px;font-style:italic}.bb-brand h1 b{color:var(--bb-green)}.bb-brand>div>span{font-size:9px;letter-spacing:2.3px;color:var(--bb-muted);font-weight:700}.bb-brand-orbit{position:relative;width:43px;height:43px;border:3px solid #b57bff;border-bottom-color:transparent;border-radius:50%;transform:rotate(-32deg);box-shadow:inset 0 0 12px #9c62ff44,0 0 18px #9c62ff44}.bb-brand-orbit i{position:absolute;width:13px;height:13px;border-radius:50%;background:radial-gradient(circle at 30% 25%,#fffbd6,#ffd550 55%,#d47510);bottom:-3px;right:1px;box-shadow:0 0 14px #ffc04877}.bb-header-actions{display:flex;gap:8px}.bb-icon-button{display:grid;place-items:center;width:36px;height:36px;border:1px solid #33384b;border-radius:11px;background:#1a1d2acc;color:#c8cbdc;font-size:20px;font-weight:700;transition:background .2s,color .2s}.bb-icon-button:hover{background:#2b2540;color:white}.bb-app svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.bb-playfield{display:grid;grid-template-columns:90px 1fr;position:relative;padding:0 26px;background:radial-gradient(ellipse at 57% 46%,#51217c4a 0,#31205220 40%,transparent 70%)}.bb-history{padding-top:32px;z-index:1}.bb-eyebrow{color:var(--bb-muted);font-size:10px;font-weight:700;letter-spacing:1.4px;text-transform:uppercase}.bb-history ol{list-style:none;margin:15px 0 0;padding:0;display:flex;flex-direction:column;gap:8px}.bb-history li:not(.bb-history-empty){padding:7px 4px;text-align:center;border:1px solid #3d5551;background:#16332c88;border-radius:8px;color:#b4e6d4;font-weight:800;font-size:12px;font-variant-numeric:tabular-nums;animation:bb-history-in .25s ease-out}.bb-history li.bb-history-zero{background:#212331;color:#8d94aa;border-color:#363a4c}.bb-history li.bb-history-high{background:#51387377;color:#e1c4ff;border-color:#8c61bd;box-shadow:0 0 15px #a565fb17}.bb-history-empty{font-size:11px;line-height:1.6;color:#6d7891;padding-right:9px;margin-top:12px}.bb-arena{position:relative;height:470px;min-width:0}.bb-arena canvas{width:100%;height:100%;display:block}.bb-idle-hint{position:absolute;bottom:1%;left:5%;right:5%;text-align:center;color:#9187a5;font-size:12px;pointer-events:none}.bb-result{position:absolute;top:5%;left:50%;transform:translateX(-50%);display:flex;gap:10px;align-items:baseline;white-space:nowrap;padding:8px 20px;border:1px solid #b8ff2840;background:linear-gradient(135deg,#263e25ed,#192a25f2);border-radius:14px;box-shadow:0 8px 30px #0003;animation:bb-result-in .25s ease-out;pointer-events:none}.bb-result>span{font-size:11px;color:#c4d6b9}.bb-result strong{color:var(--bb-green);font-size:24px;font-weight:900;letter-spacing:-.5px}.bb-result small{color:#b1c3a7;font-size:11px}.bb-result.is-loss{background:#1c1e2dee;border-color:#4b405e}.bb-result.is-loss strong{color:#b9b3c9}.bb-round-strip{border-top:1px solid #26243588;border-bottom:1px solid #26243588;display:flex;align-items:center;justify-content:space-between;gap:14px;padding:10px 26px;font-size:12px;color:#a6a5b8;background:#14131e55;min-height:42px}.bb-round-strip #bb-status.is-error{color:#ff8f9f}.bb-round-strip button{border:0;background:transparent;color:#a5a4b8;display:flex;align-items:center;gap:5px;font-size:11px;white-space:nowrap}.bb-round-strip button span{font-size:20px;line-height:1}.bb-round-strip button[aria-pressed=true]{color:var(--bb-green)}.bb-controls{padding:20px 24px;display:grid;grid-template-columns:minmax(125px,1.15fr) minmax(110px,1fr) minmax(105px,.9fr) minmax(135px,1.1fr) minmax(160px,1.2fr) 48px;gap:12px;align-items:stretch;background:#101520}.bb-controls small,.bb-controls label>span,.bb-controls .bb-bet>label,.bb-balance>span{font-size:10px;letter-spacing:.2px;color:var(--bb-muted);display:block;font-weight:500;margin-bottom:5px}.bb-mode-button{display:flex;align-items:center;gap:10px;padding:10px 12px;background:#231a34;border:1px solid #664b8688;border-radius:12px;color:#eee6ff;text-align:left}.bb-mode-button>span:nth-child(2){flex:1}.bb-mode-button strong{font-size:13px;font-weight:800}.bb-mode-button .bb-mode-symbol{font-size:24px;color:#ca99ff}.bb-mode-button b{color:#b38cdd}.bb-balance{padding:7px 4px}.bb-balance strong{font-size:19px;line-height:1.2;letter-spacing:-.3px;font-variant-numeric:tabular-nums;white-space:nowrap}.bb-balance small{display:inline;margin-left:4px;font-size:9px}.bb-difficulty{padding:7px 0;min-width:0}.bb-difficulty select{max-width:100%;width:100%;border:0;background:transparent;color:#f0eff7;padding:0 16px 0 0;font-size:14px;font-weight:750;min-height:25px}.bb-app select option{background:#171c28;color:white}.bb-bet{min-width:0;padding-top:6px}.bb-bet>div{display:flex;align-items:center;border:1px solid #35394b;border-radius:9px;overflow:hidden;background:#0b101b}.bb-bet input{width:100%;min-width:20px;text-align:center;font-size:15px;font-weight:800;appearance:none;border:0;outline-offset:-2px!important;background:transparent;color:white;padding:7px 2px;font-variant-numeric:tabular-nums}.bb-bet button{border:0;background:#1d2333;color:#b0b9cf;min-width:28px;align-self:stretch;font-size:12px}.bb-launch{display:flex;align-items:center;justify-content:center;gap:12px;border:1px solid #c8ff62;border-radius:13px;background:linear-gradient(140deg,#d2ff57,#a7f31b);box-shadow:0 5px 22px #9bf32023;color:#152704;min-height:64px;padding:10px 12px;transition:filter .2s,transform .15s}.bb-launch:not(:disabled):hover{filter:brightness(1.1);transform:translateY(-1px)}.bb-launch svg{width:23px;height:23px;fill:currentColor;stroke-width:0}.bb-launch strong{display:block;font-size:16px;font-weight:850}.bb-launch small{color:#405611;font-size:10px;margin:2px 0 0}.bb-launch:disabled{opacity:.65!important}.bb-auto-button{border:1px solid #343b50;border-radius:12px;background:#1a2030;color:#c0c6d7;display:grid;place-content:center;position:relative}.bb-auto-button.is-active{color:var(--bb-green);border-color:#8bc729;background:#23351b}.bb-auto-button small{font-weight:800;color:var(--bb-green);margin:0}.bb-footer{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:0 24px 17px;background:#101520;font-size:10px;color:#818da4}.bb-footer button{border:0;background:transparent;color:#b5bdd0;font-size:10px;text-decoration:underline;text-underline-offset:3px;white-space:nowrap}.bb-dialog{border:1px solid #484155;border-radius:23px;padding:26px;background:linear-gradient(145deg,#1b1729,#101722);color:#f5f2fc;width:min(1000px,calc(100vw - 32px));max-height:calc(100dvh - 40px);overflow:auto;box-shadow:0 30px 100px #0008}.bb-dialog::backdrop{background:#040710b8;backdrop-filter:blur(9px)}.bb-dialog header{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:24px}.bb-dialog header h2{font-size:25px;font-weight:850;letter-spacing:-.6px;margin:4px 0 0}.bb-dialog header .bb-icon-button{flex-shrink:0}.bb-mode-options{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(160px,100%),1fr));gap:12px}.bb-mode-card{border:1px solid #3e3b51;background:#191c2a;color:white;border-radius:16px;padding:20px 14px 14px;display:flex;align-items:center;text-align:center;flex-direction:column;transition:border .2s,transform .2s,background .2s}.bb-mode-card:hover{transform:translateY(-3px);border-color:#a17bcb}.bb-mode-card[aria-pressed=true]{border-color:#b8ff28;background:linear-gradient(155deg,#303c27,#1b2330);box-shadow:0 0 0 1px #b8ff2844}.bb-mode-card>strong{font-size:16px;margin:16px 0 10px;font-weight:800}.bb-mode-card>span:not(.bb-mode-art){color:#a8afc3;font-size:11px;line-height:1.65;flex:1}.bb-mode-card>small{border-top:1px solid #414257;padding:13px 0 0;margin-top:16px;font-size:10px;width:100%;color:#a1a9bd}.bb-mode-card>small b{color:var(--bb-green);font-size:16px;display:block;margin-top:3px}.bb-mode-art{width:72px;height:72px;border:3px solid #bd8aff;border-right-color:transparent;border-radius:50%;box-shadow:inset 0 0 16px #b276ff30,0 0 15px #b276ff30;position:relative;display:block}.bb-mode-art i{position:absolute;left:16px;top:22px;width:15px;height:15px;background:radial-gradient(circle at 30% 30%,#fff7cd,#ffcf42 50%,#be6f1a);border-radius:50%;box-shadow:0 0 12px #ffc64866}.bb-mode-art b{position:absolute;right:0;bottom:16px;color:#fff1ad;font-size:20px;font-weight:900;text-shadow:0 2px 6px #000}.bb-art-mega i,.bb-art-megawin i{background:radial-gradient(circle at 30% 30%,white,#6aedff 50%,#358bdd);box-shadow:22px -7px 0 -1px #f0ba47,20px 18px 0 -1px #dd77f8}.bb-art-win:after,.bb-art-megawin:after{content:'';position:absolute;bottom:-6px;left:-2px;width:72px;height:5px;border-radius:4px;background:var(--bb-green);box-shadow:0 0 13px #b8ff2877}.bb-art-multi i{width:10px;height:10px;top:15px;left:15px;box-shadow:16px -6px #72f3e5,29px 7px #d180fa,3px 16px #76c5ff,20px 25px #ff94c8,35px 27px #ffc957,-4px 34px #d8ff7b}.bb-art-multi b{top:-18px;left:-17px;right:auto}.bb-dialog-note{margin:20px 0 0;font-size:11px;color:#a7abc0;line-height:1.8}.bb-help-dialog,.bb-auto-dialog{max-width:600px}.bb-help-dialog ol{padding-left:22px;margin:0 0 20px}.bb-help-dialog li{padding-left:7px;margin:14px 0;line-height:1.65;color:#d4d6e3}.bb-help-dialog p,.bb-auto-dialog p{font-size:13px;color:#a1a9bd;line-height:1.75}.bb-dialog-primary{border:0;border-radius:12px;background:var(--bb-green);color:#182505;font-weight:800;padding:13px 24px;margin-top:14px;min-height:45px}.bb-auto-dialog select{display:block;width:100%;padding:12px;border:1px solid #454459;border-radius:10px;background:#1b2030;color:white;margin-top:10px}.bb-app:fullscreen{background:#080c15;overflow:auto;padding:20px;width:100%;max-width:none}.bb-app:fullscreen .bb-game{max-width:1600px;margin:auto}.bb-app:fullscreen .bb-page-heading{max-width:1600px;margin-left:auto;margin-right:auto}.bb-app:fullscreen .bb-arena{height:clamp(400px,60vh,800px)}
@keyframes bb-history-in{from{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:translateY(0)}}@keyframes bb-result-in{from{opacity:0;margin-top:-8px}to{opacity:1;margin-top:0}}
@media(max-width:1200px){.bb-controls{grid-template-columns:1.1fr 1fr 1fr 1.2fr;gap:14px}.bb-launch{grid-column:span 3}.bb-auto-button{min-height:55px}.bb-balance strong{font-size:18px}.bb-launch{min-height:55px}.bb-arena{height:420px}}
@media(max-width:650px){.bb-page-heading{font-size:11px;margin-bottom:12px;gap:5px}.bb-page-heading a{font-size:12px}.bb-game{border-radius:19px}.bb-header{padding:19px 16px 8px}.bb-brand{gap:10px}.bb-brand h1{font-size:22px}.bb-brand>div>span{font-size:7px;letter-spacing:1.7px}.bb-brand-orbit{width:34px;height:34px}.bb-header-actions{gap:5px}.bb-icon-button{width:31px;height:31px;font-size:18px;border-radius:9px}.bb-fullscreen{display:none}.bb-playfield{display:flex;flex-direction:column-reverse;padding:0 12px}.bb-arena{height:365px;width:100%}.bb-history{padding:6px 0 12px;display:flex;gap:10px;align-items:center;min-height:46px}.bb-history .bb-eyebrow{font-size:8px}.bb-history ol{margin:0;flex-direction:row;overflow:hidden;gap:6px;flex:1}.bb-history li:not(.bb-history-empty){font-size:10px;padding:5px 8px;min-width:46px}.bb-history-empty{font-size:10px;margin:0;padding:0}.bb-idle-hint{font-size:10px;bottom:1%}.bb-result{top:8%;padding:7px 12px;gap:7px}.bb-result strong{font-size:20px}.bb-result>span,.bb-result small{font-size:9px}.bb-round-strip{padding:9px 15px;font-size:10px}.bb-round-strip button{font-size:10px}.bb-controls{grid-template-columns:1fr 1fr;padding:14px;gap:12px}.bb-mode-button{padding:9px 10px}.bb-mode-button strong{font-size:13px}.bb-balance{padding:4px 7px}.bb-balance strong{font-size:22px}.bb-balance small{font-size:10px}.bb-difficulty{padding:4px 2px}.bb-difficulty select{border:1px solid #34394b;background:#151c29;border-radius:9px;padding:7px 10px;height:36px;font-size:14px}.bb-bet{padding:4px 0}.bb-controls .bb-bet>label,.bb-controls label>span,.bb-controls small,.bb-balance>span{font-size:10px}.bb-launch{grid-column:auto;min-height:57px}.bb-auto-button{min-height:57px;grid-column:auto;display:flex;align-items:center;justify-content:center;gap:8px}.bb-auto-button:after{content:'Авто';font-size:13px;font-weight:750}.bb-app[data-locale=en] .bb-auto-button:after{content:'Auto'}.bb-auto-button.is-active:after{content:'Стоп'}.bb-app[data-locale=en] .bb-auto-button.is-active:after{content:'Stop'}.bb-footer{padding:0 14px 14px;align-items:flex-start;flex-direction:column;gap:10px;font-size:9px}.bb-footer button{font-size:10px}.bb-dialog{padding:20px 16px;border-radius:20px;max-height:calc(100dvh - 24px)}.bb-dialog header{margin-bottom:18px}.bb-dialog header h2{font-size:22px}.bb-mode-options{grid-template-columns:1fr 1fr;gap:9px}.bb-mode-card{padding:20px 12px 12px}.bb-mode-card>strong{font-size:15px}.bb-mode-card>span:not(.bb-mode-art){font-size:11px}.bb-dialog-note{font-size:10px}.bb-help-dialog li{font-size:13px}.bb-auto-dialog label{font-size:13px}}
@media(prefers-reduced-motion:reduce){.bb-app *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
.bb-app .bb-launch,.bb-app .bb-launch strong,.bb-app .bb-launch small,.bb-app .bb-launch svg{color:#152300}.bb-app .bb-launch svg{fill:currentColor}.bb-app .bb-dialog-primary{color:#152300}

/* Keep the publisher as prominent as the game title. */
.bb-app .bb-auto-dialog input[type=number]{display:block;width:100%;padding:14px 16px;border:1px solid #454459;border-radius:12px;background:#101520;color:#fff;margin-top:10px;font-size:24px;font-weight:800}
.bb-app .bb-auto-presets{display:flex;gap:8px;margin-top:12px}
.bb-app .bb-auto-presets button{flex:1;padding:10px 4px;border:1px solid #393f52;border-radius:10px;background:#1b2030;color:#f5f2fc;font-weight:750}
.bb-app .bb-auto-presets button:hover:not(:disabled){border-color:var(--bb-green);color:var(--bb-green)}
.bb-app .bb-auto-unlimited{display:flex;align-items:center;gap:12px;padding:16px;margin-top:20px;border:1px solid #393f52;border-radius:12px;background:#151b28;cursor:pointer}
.bb-app .bb-auto-unlimited:has(input:checked){border-color:var(--bb-green);background:#23351b}
.bb-app .bb-auto-unlimited input{width:20px;height:20px;flex-shrink:0;accent-color:var(--bb-green)}
.bb-app .bb-auto-unlimited strong{display:block;font-size:16px}.bb-app .bb-auto-unlimited small{display:block;color:#a1a9bd;margin-top:4px;font-size:12px}
.bb-app .bb-auto-dialog input:disabled{opacity:.4}
.bb-app .bb-auto-dialog .bb-dialog-primary{width:100%}
.bb-app .bb-auto-button.is-active svg{display:none}.bb-app #bb-auto-stop-label{font-size:11px;font-weight:800}.bb-app #bb-auto-open.is-active:after{content:none}
.bb-app .bb-header{display:grid;grid-template-columns:auto 1fr auto;gap:20px}
.bb-app .bb-brand h1{margin:0}
.bb-app .bb-publisher{display:flex;justify-content:flex-start;align-items:baseline;gap:10px;white-space:nowrap}
.bb-app .bb-publisher>span{font-size:16px;font-weight:800;color:#f2e7ff}
.bb-app .bb-publisher>strong{font-size:32px;font-weight:900;letter-spacing:-.6px;line-height:1.15;color:#c3ff65}
@media(max-width:1100px){.bb-app .bb-header{grid-template-columns:1fr auto;gap:15px}.bb-app .bb-publisher{grid-column:1/-1;grid-row:2;justify-content:flex-start;padding:8px 0 10px}.bb-app .bb-header-actions{grid-column:2;grid-row:1}.bb-app .bb-publisher>strong{font-size:30px}}
@media(max-width:650px){.bb-app .bb-header{gap:12px}.bb-app .bb-publisher{justify-content:center;padding:7px 0 12px}.bb-app .bb-publisher>strong{font-size:28px}.bb-app .bb-publisher>span{font-size:14px}}
@media(max-width:420px){.bb-app .bb-brand-orbit{display:none}.bb-app .bb-header{padding-left:12px;padding-right:12px;gap:8px}.bb-app .bb-brand h1{font-size:22px}}

/* Prominent, colour-coded multipliers; scroll older results without growing the arena. */
/* Compact history: multiplier, completion time and a quiet latest-result highlight. */
.bb-app .bb-playfield{grid-template-columns:160px minmax(0,1fr)}
.bb-app .bb-history{height:470px;padding-top:28px;min-width:0}
.bb-app .bb-history-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:0 10px;color:var(--bb-muted)}
.bb-app .bb-history-heading .bb-eyebrow{font-size:12px}

.bb-app .bb-history ol{max-height:calc(100% - 44px);padding:4px 6px 8px 0;gap:7px;overflow-y:auto;overflow-x:hidden;scrollbar-width:none}
.bb-app .bb-history ol::-webkit-scrollbar{display:none;width:0;height:0}
.bb-app .bb-history li:not(.bb-history-empty){--bb-history-color:#85e5ae;--bb-history-tint:#85e5ae10;flex-shrink:0;display:grid;grid-template-columns:6px minmax(0,1fr);align-items:center;justify-content:normal;column-gap:12px;row-gap:5px;min-height:70px;padding:12px 10px;border:0;border-radius:12px;background:transparent;color:var(--bb-history-color);font-size:30px;line-height:1.1;font-weight:900;letter-spacing:-.7px;box-shadow:none;white-space:nowrap;text-align:left}
.bb-app .bb-history li:not(.bb-history-empty):before{content:'';width:5px;height:5px;border-radius:50%;background:var(--bb-history-color);grid-column:1;grid-row:1/3}
.bb-app .bb-history li strong{grid-column:2;font:inherit;font-variant-numeric:tabular-nums}
.bb-app .bb-history li time{grid-column:2;font-size:11px;font-weight:500;letter-spacing:0;color:#9ba7c1;line-height:1.25}
.bb-app .bb-history li.bb-history-zero{--bb-history-color:#9294a8;--bb-history-tint:#9294a810}
.bb-app .bb-history li.bb-history-blue{--bb-history-color:#58b9ff;--bb-history-tint:#58b9ff10}
.bb-app .bb-history li.bb-history-purple{--bb-history-color:#dd91ff;--bb-history-tint:#dd91ff10}
.bb-app .bb-history li.bb-history-gold{--bb-history-color:#ffda61;--bb-history-tint:#ffda6112}
.bb-app .bb-history li.bb-history-latest{background:var(--bb-history-tint)}
.bb-app .bb-history li.bb-history-long{font-size:23px}
@media(max-width:1200px){.bb-app .bb-history{height:420px}}
@media(max-width:650px){.bb-app .bb-history{height:auto;min-height:80px;padding:8px 0 12px;gap:10px}.bb-app .bb-history-heading{flex-direction:column;align-items:flex-start;gap:5px;padding:0}.bb-app .bb-history-heading .bb-eyebrow{font-size:10px}.bb-app .bb-history ol{max-height:none;padding:5px 0;gap:7px;overflow-x:auto;overflow-y:hidden}.bb-app .bb-history li:not(.bb-history-empty){min-width:114px;min-height:64px;font-size:25px;padding:9px 10px;column-gap:8px;border-radius:10px}.bb-app .bb-history li.bb-history-long{font-size:21px}.bb-app .bb-history-empty{white-space:nowrap}}

@media(max-width:650px){.bb-app .bb-controls{grid-template-columns:repeat(2,minmax(0,1fr))}.bb-app .bb-balance{min-width:0}.bb-app .bb-balance small{display:block;margin:3px 0 0}}
@media(max-width:360px){.bb-app .bb-balance{padding-left:0;padding-right:0}.bb-app .bb-balance strong{font-size:18px}.bb-app .bb-mode-symbol,.bb-app .bb-launch>svg{display:none}.bb-app .bb-mode-button{min-width:0;padding-left:8px;padding-right:8px}}

.bb-app .bb-mode-button{background:linear-gradient(135deg,#493064,#30233f);border:1px solid #a275cb;box-shadow:inset 0 1px 0 #ffffff14,0 3px 0 #18121f;transition:background .18s,border-color .18s,transform .18s;min-width:0}
.bb-app .bb-mode-button>span:nth-child(2){min-width:0}
.bb-app .bb-mode-button small{font-size:14px;font-weight:800;color:#f8f3ff;line-height:1.25;letter-spacing:0;margin-bottom:5px}
.bb-app .bb-mode-button strong{font-size:12px;font-weight:600;color:#cbb8df;line-height:1.25}
.bb-app .bb-mode-button .bb-mode-symbol,.bb-app .bb-mode-button>b{color:#dfbdff}
.bb-app .bb-mode-button:hover:not(:disabled){background:linear-gradient(135deg,#5b3b7b,#3e2b53);border-color:#d4a4ff}
.bb-app .bb-mode-button:active:not(:disabled){transform:translateY(2px);box-shadow:inset 0 1px 0 #ffffff14}
@media(max-width:650px){.bb-app .bb-mode-button small{font-size:13px}.bb-app .bb-mode-button strong{font-size:11px}}
.bb-app .bb-launch{box-shadow:inset 0 1px 0 #f1ffb3,0 4px 0 #5f8d10,0 7px 22px #9bf32023;gap:10px}
.bb-app .bb-launch strong{line-height:1.2;min-width:0}
.bb-app .bb-launch svg{flex-shrink:0}
.bb-app .bb-launch:active:not(:disabled){transform:translateY(3px);box-shadow:inset 0 1px 0 #f1ffb3,0 1px 0 #5f8d10}
@media(max-width:650px){.bb-app .bb-launch strong{font-size:14px}.bb-app .bb-launch{gap:7px}}
/* Approved single-row control panel. Reflow depends on game width, not viewport. */
.bb-app .bb-game{container-type:inline-size}
.bb-app .bb-controls.bb-controls-compact{height:76px;padding:11px 10px;display:grid;grid-template-columns:minmax(100px,1fr) minmax(88px,.86fr) minmax(112px,1.15fr) minmax(106px,.95fr) minmax(131px,1.25fr) 45px;gap:7px;align-items:stretch;border-top:1px solid #2b3242;border-bottom:1px solid #2b3242;background:#11151f}
.bb-app .bb-controls-compact .bb-balance{min-width:0;padding:0;display:flex;flex-direction:column;justify-content:center;gap:5px}
.bb-app .bb-controls-compact .bb-balance>span{font-size:11px;line-height:1.2;letter-spacing:0;margin:0;color:#9ba5bb}
.bb-app .bb-balance-heading{display:flex;align-items:center;justify-content:space-between;gap:6px}
.bb-app .bb-round-actions{display:flex;align-items:center;gap:14px;margin-left:auto;flex-shrink:0}
.bb-app .bb-round-strip #bb-status{min-width:0;overflow-wrap:anywhere}
.bb-app #bb-wallet-mode{display:inline-flex;align-items:center;justify-content:center;min-height:32px;padding:7px 16px;border:1px solid #685080;border-radius:8px;background:#272035;color:#e4ceff;font-size:12px;font-weight:800;line-height:1.2;text-decoration:none;white-space:nowrap;transition:background .15s,border-color .15s}
.bb-app #bb-wallet-mode:hover:not([aria-disabled=true]){background:#39304a;border-color:#b38cdd;color:#fff}
.bb-app #bb-wallet-mode[aria-disabled=true]{opacity:.45;cursor:default}
.bb-app .bb-controls-compact .bb-balance strong{font-size:18px;line-height:1.2;font-weight:800;letter-spacing:-.5px;overflow:hidden;text-overflow:ellipsis}
.bb-app .bb-controls-compact .bb-mode-button{padding:6px 8px;gap:4px;background:#272035;border:0;border-radius:8px;box-shadow:none;min-width:0;justify-content:space-between}
.bb-app .bb-controls-compact .bb-mode-button>span{min-width:0}
.bb-app .bb-controls-compact .bb-mode-button small{font-size:11px;font-weight:400;color:#c3acd9;line-height:1.2;letter-spacing:0;margin:0 0 5px;white-space:nowrap}
.bb-app .bb-controls-compact .bb-mode-button strong{font-size:12px;line-height:1.3;font-weight:700;color:#edeaf7;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.bb-app .bb-controls-compact .bb-mode-button>b{flex-shrink:0;font-size:14px}
.bb-app .bb-controls-compact .bb-mode-button:hover:not(:disabled){background:#352943}
.bb-app .bb-controls-compact .bb-difficulty{padding:6px 8px;border-radius:8px;background:#1c2130;display:flex;flex-direction:column;justify-content:center;gap:5px;min-width:0}
.bb-app .bb-controls-compact .bb-difficulty>span{font-size:11px;font-weight:400;line-height:1.2;letter-spacing:0;color:#9ba5bb;margin:0}
.bb-app .bb-controls-compact .bb-difficulty select{min-width:0;width:100%;min-height:0;height:auto;border:0;border-radius:0;padding:0;background:transparent;color:#edeaf7;font-size:12px;line-height:1.3;font-weight:700}
.bb-app .bb-controls-compact .bb-bet{padding:4px;border:1px solid #303747;border-radius:8px;background:#0c1019;display:flex;flex-direction:column;justify-content:center;gap:3px;min-width:0;align-self:center;min-height:46px}
.bb-app .bb-controls-compact .bb-bet>label{padding-left:3px;font-size:10px;line-height:1.2;font-weight:400;letter-spacing:0;color:#9ba5bb;margin:0}
.bb-app .bb-controls-compact .bb-bet>div{display:grid;grid-template-columns:24px minmax(0,1fr) 24px;gap:3px;align-items:center;border:0;border-radius:0;overflow:visible;background:transparent}
.bb-app .bb-controls-compact .bb-bet input{width:100%;min-width:0;padding:0;border:0;background:transparent;font-size:16px;line-height:24px;font-weight:800;text-align:center}
.bb-app .bb-controls-compact .bb-bet button{height:24px;min-width:0;align-self:auto;padding:0;border:0;border-radius:5px;background:#222a3b;color:#bcc7dc;font-size:12px;line-height:24px}
.bb-app .bb-controls-compact .bb-launch{grid-column:auto;min-height:0;padding:0 8px;gap:0;border:0;border-radius:9px;background:#b8fa32;box-shadow:none;white-space:nowrap}
.bb-app .bb-controls-compact .bb-launch strong{font-size:13px;line-height:1.2;font-weight:800}
.bb-app .bb-controls-compact .bb-launch:hover:not(:disabled){background:#c8ff61;filter:none;transform:none}
.bb-app .bb-controls-compact .bb-launch:active:not(:disabled){transform:translateY(1px);box-shadow:none}
.bb-app .bb-controls-compact .bb-auto-button{grid-column:auto;min-height:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;padding:4px 2px;border:1px solid #3a4458;border-radius:9px;background:#1c2332;color:#bcc9df;font-size:11px;line-height:1.2;font-weight:600}
.bb-app #bb-auto-open:after{content:none}
.bb-app .bb-controls-compact .bb-auto-button.is-active{background:#273821;border-color:#85b333;color:#b8fa32}
.bb-app .bb-controls-compact .bb-auto-button.is-active .bb-auto-idle-label{display:none}
.bb-app .bb-controls-compact .bb-auto-button small{font-size:11px;line-height:1.2;margin:0;max-width:100%;overflow-wrap:anywhere}
@container(max-width:729px){
 .bb-app .bb-controls.bb-controls-compact{height:auto;min-height:190px;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;padding:10px}
 .bb-app .bb-controls-compact .bb-balance{grid-column:span 3;min-height:44px}
 .bb-app .bb-controls-compact .bb-mode-button{grid-column:span 3;min-height:44px}
 .bb-app .bb-controls-compact .bb-difficulty{grid-column:span 3;min-height:48px}
 .bb-app .bb-controls-compact .bb-bet{grid-column:span 3;min-height:48px}
 .bb-app .bb-controls-compact .bb-launch{grid-column:span 4;min-height:44px}
 .bb-app .bb-controls-compact .bb-auto-button{grid-column:span 2;min-height:44px;flex-direction:row;gap:7px}
 .bb-app .bb-controls-compact .bb-difficulty select{font-size:13px}
}
.bb-app .bb-sound-control{position:relative}
.bb-app .bb-settings-dialog{width:360px;max-width:calc(100vw - 32px);max-height:calc(100dvh - 32px);margin:0;padding:18px 20px;border:1px solid #34353e;border-radius:18px;background:#1b1d22;box-shadow:0 18px 60px #0007;scrollbar-width:thin;scrollbar-color:#55535f transparent}
.bb-app .bb-settings-dialog::backdrop{background:#07090f55;backdrop-filter:none}
.bb-app .bb-settings-dialog header{margin:0 0 16px;gap:12px;align-items:center}
.bb-app .bb-settings-dialog header strong{font-size:16px;font-weight:850;letter-spacing:-.3px}
.bb-app .bb-settings-dialog header small{display:block;color:#a3a4b0;font-size:11px;margin-top:3px}
.bb-app .bb-settings-dialog .bb-icon-button{background:transparent;border:0;width:32px;height:32px;font-size:24px}
.bb-app .bb-menu-row{display:flex;align-items:center;gap:12px;min-height:46px;width:100%;padding:9px 2px;border:0;border-radius:7px;background:transparent;color:#f3f3f7;text-align:left;font-size:14px;font-weight:500;margin:0;line-height:1.4}
.bb-app button.bb-menu-row:hover{background:#ffffff08}
.bb-app .bb-menu-row>svg{width:20px;height:20px;flex-shrink:0;stroke-width:1.5}
.bb-app .bb-menu-row>span:first-of-type{flex:1;min-width:0}
.bb-app .bb-menu-chevron{color:#777b8a;font-size:23px}
.bb-app .bb-menu-switch{cursor:pointer}
.bb-app .bb-menu-switch input{appearance:none;width:36px;height:22px;flex-shrink:0;border:0;border-radius:20px;background:#383a43;position:relative;margin:0;cursor:pointer;transition:background .15s}
.bb-app .bb-menu-switch input:before{content:'';position:absolute;width:18px;height:18px;left:2px;top:2px;border-radius:50%;background:#fff;box-shadow:0 1px 4px #0004;transition:transform .15s}
.bb-app .bb-menu-switch input:checked{background:#9bea22}
.bb-app .bb-menu-switch input:checked:before{transform:translateX(14px)}
.bb-app .bb-menu-volume{padding:2px 2px 4px 34px;margin:0}
.bb-app .bb-menu-volume label{font-size:11px;color:#a3a4b0}
.bb-app .bb-settings-dialog .bb-volume-row input{height:18px}
.bb-app .bb-settings-dialog .bb-volume-row output{color:#d0d4df;font-size:11px}
.bb-app .bb-effect-settings{padding:0 2px 8px 34px;color:#a3a4b0;font-size:12px}
.bb-app .bb-effect-settings summary{cursor:pointer;min-height:32px;padding:5px 0}
.bb-app .bb-effect-settings[open] summary{margin-bottom:12px;color:#e6e3ef}
.bb-app .bb-settings-dialog hr{border:0;border-top:1px solid #303238;margin:12px 0}
.bb-app .bb-menu-brand{display:flex;align-items:center;gap:10px;border-top:1px solid #303238;margin-top:12px;padding-top:18px;font-size:12px;color:#90939f}
.bb-app .bb-menu-brand strong{font-size:15px;color:#b8ff28;font-weight:850}
.bb-app .bb-info-dialog{max-width:600px;background:#1b1d22;border-color:#34353e;border-radius:18px}
.bb-app .bb-info-dialog header h2{font-size:22px}
.bb-app .bb-info-dialog p{color:#a9aab6;font-size:13px;line-height:1.65;margin:12px 0}
.bb-app .bb-rule-values{display:flex;flex-direction:column;gap:12px;margin:22px 0}
.bb-app .bb-rule-values>div{display:flex;align-items:center;justify-content:space-between;gap:16px;background:#2b2c34;padding:16px;border-radius:9px}
.bb-app .bb-rule-values dt{font-size:14px;font-weight:600;flex:1}
.bb-app .bb-rule-values dd{margin:0;font-size:17px;font-weight:800;white-space:nowrap}
.bb-app .bb-round-history-list{list-style:none;margin:20px 0 0;padding:0}
.bb-app .bb-round-history-list>li{padding:16px 0;border-top:1px solid #34353e}
.bb-app .bb-round-history-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:14px}
.bb-app .bb-round-history-heading time{color:#9ca1b1;font-size:12px}
.bb-app .bb-round-history-list dl{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:12px 0 0}
.bb-app .bb-round-history-list dt{font-size:11px;color:#9ca1b1}
.bb-app .bb-round-history-list dd{margin:5px 0 0;font-size:14px;font-weight:750;overflow-wrap:anywhere}
.bb-app .bb-round-history-empty{color:#a9aab6;font-size:14px}
@media(max-width:360px){.bb-app .bb-settings-dialog{padding:16px}.bb-app .bb-menu-row{font-size:13px;gap:10px}.bb-app .bb-rule-values>div{padding:12px;gap:10px}.bb-app .bb-rule-values dt{font-size:12px}.bb-app .bb-rule-values dd{font-size:15px}}
.bb-app .bb-sound-panel{position:absolute;right:0;top:calc(100% + 12px);width:300px;max-width:calc(100vw - 64px);padding:18px;background:#161a28;border:1px solid #454055;border-radius:16px;box-shadow:0 16px 50px #0008;color:#f4f0ff;z-index:10;text-align:left}
.bb-app .bb-sound-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px;gap:10px}
.bb-app .bb-sound-heading strong{font-size:16px;font-weight:800;color:#f4f0ff}
.bb-app .bb-sound-heading button{width:30px;height:30px;border:0;border-radius:8px;background:#292d40;color:#d8d3e4;font-size:22px;line-height:1}
.bb-app .bb-volume-row{display:grid;grid-template-columns:1fr auto;align-items:center;gap:7px 10px;margin-bottom:12px}
.bb-app .bb-volume-row label{color:#e2dced;font-size:12px;margin:0}
.bb-app .bb-volume-row output{color:#c3ff65;font-size:12px;font-weight:800;font-variant-numeric:tabular-nums}
.bb-app .bb-volume-row input{grid-column:1/-1;width:100%;min-width:0;height:18px;margin:0;padding:0;accent-color:#b8ff28;cursor:pointer}
.bb-app .bb-volume-master{border-bottom:1px solid #373448;padding-bottom:14px;margin-bottom:14px}
.bb-app .bb-volume-master label{font-weight:800}
.bb-app .bb-sound-mute{width:100%;padding:10px;border:1px solid #585266;border-radius:9px;background:#252536;color:#f4f0ff;font-size:12px;font-weight:700}
.bb-app .bb-sound-mute[aria-pressed=true]{background:#b8ff28;color:#152300;border-color:#b8ff28}
.bb-app .bb-sound-panel p{font-size:11px;color:#ada5bc;line-height:1.5;margin:10px 0 0}
@media(max-width:650px){.bb-app .bb-sound-panel{right:-3px;padding:15px}.bb-app .bb-volume-row{margin-bottom:10px}.bb-app .bb-volume-row input{height:24px}}

/* Center the playing area in the whole game, with equal space on both sides.
   Container queries also cover the site sidebar and fullscreen resizing. */
.bb-app .bb-playfield{--bb-field-height:clamp(360px,40cqw,560px);display:grid;grid-template-columns:160px minmax(0,1fr) 160px;gap:0 16px;padding:0 24px;background:radial-gradient(ellipse at 50% 46%,#51217c4a 0,#31205220 40%,transparent 70%)}
.bb-app .bb-arena{grid-column:2;grid-row:1;width:100%;height:var(--bb-field-height);min-width:0}
.bb-app:fullscreen .bb-arena{height:var(--bb-field-height)}
.bb-app .bb-history{grid-column:1;grid-row:1;height:var(--bb-field-height);min-width:0;display:block;padding:28px 0 0}
.bb-app .bb-history-heading{flex-direction:row;align-items:center;padding:0 10px}
.bb-app .bb-history ol{flex-direction:column;max-height:calc(100% - 44px);margin:15px 0 0;padding:4px 6px 8px 0;overflow-y:auto;overflow-x:hidden}
.bb-app .bb-header{grid-template-columns:auto minmax(0,1fr) auto;gap:20px;padding:24px 24px 0}
.bb-app .bb-brand{min-width:0}
.bb-app .bb-brand h1{white-space:nowrap}
.bb-app .bb-publisher{grid-column:2;grid-row:1;justify-content:flex-start;padding:0}
.bb-app .bb-header-actions{grid-column:3;grid-row:1}
.bb-app .bb-idle-hint{bottom:8px;line-height:1.3}
/* On compact screens, history leads into the arena rather than separating it
   from the controls. Keep the physical field in one uniformly scaled canvas. */
@container(max-width:900px){
 .bb-app .bb-playfield{--bb-field-height:clamp(280px,100cqw,760px);grid-template-columns:minmax(0,1fr);gap:0;padding:0 12px}
 .bb-app .bb-arena{grid-column:1;grid-row:2}
 .bb-app .bb-history{grid-column:1;grid-row:1;display:block;height:52px;min-height:0;padding:8px 0}
 .bb-app .bb-history-heading{display:none}
 .bb-app .bb-history ol{flex-direction:row;max-height:none;height:36px;margin:0;padding:0;gap:6px;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain}
 .bb-app .bb-history li:not(.bb-history-empty){display:flex;align-items:center;justify-content:center;min-width:68px;min-height:36px;padding:6px 10px;border:1px solid color-mix(in srgb,var(--bb-history-color) 55%,transparent);border-radius:9px;background:var(--bb-history-tint);font-size:18px;letter-spacing:-.4px}
 .bb-app .bb-history li:not(.bb-history-empty):before,.bb-app .bb-history li time{display:none}
 .bb-app .bb-history li.bb-history-latest{border-color:var(--bb-history-color)}
 .bb-app .bb-history li.bb-history-long{font-size:17px}
 .bb-app .bb-history-empty{display:flex;align-items:center;white-space:nowrap;margin:0;padding:0;font-size:11px}
 .bb-app .bb-header{grid-template-columns:minmax(0,1fr) auto;gap:4px 12px;padding:16px 16px 10px}
 .bb-app .bb-brand{gap:9px}
 .bb-app .bb-brand h1{font-size:26px}
 .bb-app .bb-brand-orbit{width:34px;height:34px}
 .bb-app .bb-header-actions{grid-column:2;grid-row:1/3;align-self:center}
 .bb-app .bb-icon-button{width:40px;height:40px;border-radius:12px}
 .bb-app .bb-publisher{grid-column:1;grid-row:2;justify-content:flex-start;gap:6px;padding:0 0 0 43px}
 .bb-app .bb-publisher>strong{font-size:18px;letter-spacing:-.3px}
 .bb-app .bb-publisher>span{font-size:10px}
 .bb-app .bb-round-strip{padding:8px 12px;gap:8px;min-height:46px;font-size:11px;flex-wrap:wrap}
 .bb-app .bb-round-actions{gap:10px}
 .bb-app #bb-wallet-mode,.bb-app #bb-turbo{min-height:36px}
 .bb-app .bb-controls.bb-controls-compact{height:auto;min-height:0;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;padding:10px;grid-template-rows:52px 52px}
 .bb-app .bb-controls-compact .bb-mode-button{grid-column:1/3;grid-row:1;min-height:0;padding:7px 10px}
 .bb-app .bb-controls-compact .bb-difficulty{grid-column:3/5;grid-row:1;min-height:0;padding:7px 10px}
 .bb-app .bb-controls-compact .bb-balance{grid-column:5/7;grid-row:1;min-height:0;padding:0 6px}
 .bb-app .bb-controls-compact .bb-bet{grid-column:1/3;grid-row:2;min-height:52px;align-self:stretch}
 .bb-app .bb-controls-compact .bb-launch{grid-column:3/6;grid-row:2;min-height:0}
 .bb-app .bb-controls-compact .bb-auto-button{grid-column:6;grid-row:2;min-height:0}
 .bb-app .bb-controls-compact .bb-launch strong{font-size:15px}
 .bb-app .bb-controls-compact .bb-difficulty select,.bb-app .bb-controls-compact .bb-mode-button strong{font-size:13px}
 .bb-app .bb-controls-compact .bb-bet>div{grid-template-columns:32px minmax(0,1fr) 32px}
 .bb-app .bb-controls-compact .bb-bet button{height:30px;line-height:30px}
 .bb-app .bb-idle-hint{font-size:10px}
}
@container(max-width:540px){
 .bb-app .bb-controls.bb-controls-compact{grid-template-columns:repeat(6,minmax(0,1fr));grid-template-rows:46px 54px 48px;gap:6px;padding:8px}
 .bb-app .bb-controls-compact .bb-mode-button{grid-column:1/4;grid-row:1}
 .bb-app .bb-controls-compact .bb-difficulty{grid-column:4/7;grid-row:1}
 .bb-app .bb-controls-compact .bb-balance{grid-column:1/4;grid-row:2;padding:0 4px}
 .bb-app .bb-controls-compact .bb-balance strong{font-size:clamp(14px,4.4cqw,20px);letter-spacing:-.4px}
 .bb-app .bb-controls-compact .bb-bet{grid-column:4/7;grid-row:2;min-height:0}
 .bb-app .bb-controls-compact .bb-launch{grid-column:1/6;grid-row:3}
 .bb-app .bb-controls-compact .bb-auto-button{grid-column:6;grid-row:3;font-size:12px;flex-direction:column;gap:2px}
 .bb-app .bb-fullscreen{display:none}
 .bb-app .bb-game{border-radius:16px}
}
@container(max-width:420px){
 .bb-app .bb-playfield{padding:0 8px}
 .bb-app .bb-header{padding:12px 10px 8px;gap:3px 8px}
 .bb-app .bb-brand-orbit{display:none}
 .bb-app .bb-brand h1{font-size:24px}
 .bb-app .bb-publisher{padding:0}
 .bb-app .bb-publisher>strong{font-size:17px}
 .bb-app .bb-header-actions{gap:5px}
 .bb-app .bb-round-strip{padding:6px 10px;font-size:10px}
 .bb-app .bb-round-strip #bb-status{flex-basis:100%}
 .bb-app .bb-history li:not(.bb-history-empty){font-size:16px;min-width:62px;padding:5px 8px}
}

/* Use the same compact card layout for every available mode. */
.bb-mode-card{min-width:0}
.bb-mode-art{flex-shrink:0}
@media(max-width:650px){
 .bb-mode-options{grid-template-columns:minmax(0,1fr);grid-auto-rows:1fr;gap:12px}
 .bb-mode-card{display:grid;grid-template-columns:72px minmax(0,1fr);gap:0 16px;padding:18px 16px;text-align:left;align-items:center}
 .bb-mode-card .bb-mode-art{grid-column:1;grid-row:1/4;align-self:center}
 .bb-mode-card>strong{grid-column:2;margin:0 0 6px}
 .bb-mode-card>span:not(.bb-mode-art){grid-column:2}
 .bb-mode-card>small{grid-column:2;padding:8px 0 0;margin-top:10px}
 .bb-mode-card>small b{display:inline-block;margin:0 0 0 6px}
 .bb-mode-card .bb-art-multi b{top:-12px;left:-8px;font-size:18px}
}

/* Mode selection is contained within the game, including its dimmed backdrop. */
#bb-modes-dialog{position:fixed;inset:auto;margin:0;max-width:none;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#60516e transparent;box-shadow:0 10px 30px #0005}
#bb-modes-dialog::backdrop{clip-path:inset(var(--bb-modal-clip,0px) round 24px);backdrop-filter:blur(5px)}
#bb-modes-dialog header{position:sticky;top:-26px;background:#191825;z-index:1;padding:8px 0}
@media(max-width:650px){#bb-modes-dialog header{top:-20px}}
