.hl-stage{position:relative;isolation:isolate}
.app #hl-outcome{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);z-index:4;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;width:210px;max-width:calc(100% - 32px);height:auto;min-height:134px;margin:0;padding:18px 16px;border:1px solid #ffffff24;border-radius:20px;color:#fff;background:linear-gradient(145deg,#303137f5,#24252bf5);box-shadow:0 14px 36px #0006,inset 0 1px #ffffff08;pointer-events:none;animation:gn-arrive .28s ease-out}
.app #hl-outcome[hidden]{display:none!important}
#hl-outcome .gn-label{color:#c6c6cf;font-size:12px;line-height:1.2;font-weight:700}
#hl-outcome .gn-factor{font-size:40px;line-height:1.08;letter-spacing:-1.4px;color:#fff;font-weight:950;white-space:nowrap}
#hl-outcome .gn-amount{font-size:23px;line-height:1.1;color:#fff;white-space:nowrap}
#hl-outcome[data-result=lost] .gn-amount{font-size:38px;letter-spacing:-1px}
.pk-canvas-wrap canvas{object-fit:fill;object-position:center;flex:none}
@media(max-height:590px){.app #hl-outcome{width:185px;min-height:116px;padding:14px;border-radius:17px}#hl-outcome .gn-factor{font-size:34px}#hl-outcome .gn-amount{font-size:21px}#hl-outcome[data-result=lost] .gn-amount{font-size:32px}}
@media(prefers-reduced-motion:reduce){.app #hl-outcome{animation:none}}
.app-reduced-motion #hl-outcome{animation:none}
/* Reset legacy active-round rules which removed the panel padding and border. */
.app #content .gf-root[data-fit-game=stairs] .st-panel.cr-panel{box-sizing:border-box;width:100%;height:170px!important;min-height:170px;margin:0!important;padding:9px!important;border:1px solid #ffffff0c!important;border-radius:18px;background:#202124!important;display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:36px 48px 39px;gap:6px;align-content:center}
.app #content .gf-root[data-fit-game=stairs] .st-panel>.rf-currency{grid-column:1;grid-row:1}
.app #content .gf-root[data-fit-game=stairs] .st-panel>#rf-coins,.app #content .gf-root[data-fit-game=stairs] .st-panel>#sg-gift-pick{grid-column:2;grid-row:1}
.app #content .gf-root[data-fit-game=stairs] .st-panel>.st-difficulty{grid-column:1/-1;grid-row:2}
.app #content .gf-root[data-fit-game=stairs] .st-panel>.st-play-actions{grid-column:1/-1;grid-row:3}
.app #content .gf-root[data-fit-game=stairs] .st-panel:has(#st-selector:not([hidden])){display:flex!important;justify-content:center}
.app #content .gf-root[data-fit-game=stairs] :is(.st-selector,.st-play-actions){box-sizing:border-box;width:100%!important;max-width:none!important;margin:0!important;flex-shrink:0}
.app #content .gf-root[data-fit-game=stairs] .st-selector{height:60px}
.app #content .gf-root[data-fit-game=stairs] .st-panel:has(#st-pending:not([hidden])){height:auto!important;display:flex!important}
.app .gf-root[data-fit-game=blackjack] .ext-controls:has(#ext-start[hidden]){gap:8px}
.app .gf-root[data-fit-game=blackjack] .ext-controls :is(#ext-action,#ext-cashout){height:66px;min-height:54px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:4px;padding:9px;border-radius:15px;font-size:12px;font-weight:800;box-shadow:inset 0 1px #ffffff12,0 4px 12px #0002;transition:filter .15s,transform .15s}
.app .gf-root[data-fit-game=blackjack] #ext-action{background:linear-gradient(135deg,#ff9e3c,#f17d18);border:1px solid #ffb96a;color:#241609}
.app .gf-root[data-fit-game=blackjack] #ext-cashout{background:linear-gradient(135deg,#393330,#2c2a2b);border:1px solid #d98a4b66;color:#ffe0c3}
.bj-action-icon{display:grid;place-items:center;width:23px;height:23px;line-height:1}
.bj-action-icon svg{display:block;width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.app .gf-root[data-fit-game=blackjack] #ext-double{display:flex;align-items:center;justify-content:center;gap:8px;height:38px;min-height:38px;border-radius:12px;background:linear-gradient(110deg,#443528,#302b28);border:1px solid #bd85534d;color:#ffd3aa;font-size:12px;font-weight:800}
.bj-double-icon{display:grid;place-items:center;width:23px;height:23px;border-radius:50%;background:#ffad5122;border:1px solid #ffaa5255;color:#ffc684;font-size:11px;font-weight:900}
.app .gf-root[data-fit-game=blackjack] :is(#ext-action,#ext-cashout,#ext-double):disabled{opacity:.42;filter:saturate(.5);box-shadow:none}
.app .gf-root[data-fit-game=blackjack] :is(#ext-action,#ext-cashout,#ext-double):not(:disabled):active{transform:scale(.98)}
@media(max-height:590px){.app .gf-root[data-fit-game=blackjack] .ext-controls :is(#ext-action,#ext-cashout){height:54px;min-height:54px;gap:2px;padding:5px}.app .gf-root[data-fit-game=blackjack] #ext-double{height:32px;min-height:32px}}
@media(max-height:430px) and (min-width:650px){
 .app #content .gf-root[data-fit-game=stairs] .gf-layout{grid-template-rows:minmax(0,1fr)}
 .app #content .gf-root[data-fit-game=stairs] .gf-controls{min-height:0;padding:0!important;border:0;background:none}
 .app #content .gf-root[data-fit-game=stairs] .st-panel.cr-panel{height:148px!important;min-height:148px;padding:6px!important;grid-template-rows:32px 40px 32px;gap:4px}
 .app #content .gf-root[data-fit-game=stairs] .st-selector{height:48px}
 .app #content .gf-root[data-fit-game=stairs] .st-position button{height:23px;min-height:23px}
 .app #content .gf-root[data-fit-game=stairs] .st-range input{height:20px;min-height:20px}
 .app #content .gf-root[data-fit-game=stairs] .st-play-actions .cr-action{min-height:30px!important;height:30px;padding:4px!important}
 .app #content .gf-root[data-fit-game=stairs] .st-levels button{min-height:24px;height:24px}
 .app #content .gf-root[data-fit-game=stairs] .st-field{min-height:75px;flex:1 1 0}
 .app #content .gf-root[data-fit-game=stairs] .gf-main{gap:3px}
}

/* Shared server results, newest first; each pill opens the existing proof dialog. */
.app .gf-root[data-fit-game=wheel] #wh-recent{display:flex!important;flex:0 0 28px;height:28px;min-height:28px;gap:5px;align-items:center;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;margin:0;padding:0;overscroll-behavior-x:contain}
.app .gf-root[data-fit-game=wheel] #wh-recent::-webkit-scrollbar{display:none}
.app .gf-root[data-fit-game=wheel] #wh-recent .wh-dot{display:inline-flex;flex:0 0 auto;align-items:center;justify-content:center;min-width:48px;width:auto;height:25px;min-height:25px;margin:0;padding:4px 9px;border:1px solid #ffffff1a;border-radius:8px;font-size:11px;line-height:1;font-weight:850;font-variant-numeric:tabular-nums;box-shadow:inset 0 1px #ffffff08;background:#292a30}
.app .gf-root[data-fit-game=wheel] #wh-recent .wh-blue{color:#a9b8ff;border-color:#748aff40;background:#647aff16}
.app .gf-root[data-fit-game=wheel] #wh-recent .wh-green{color:#80dcbc;border-color:#52d3a640;background:#45ce9916}
.app .gf-root[data-fit-game=wheel] #wh-recent .wh-purple{color:#c8a4f8;border-color:#b17ee940;background:#a16bd916}
.app .gf-root[data-fit-game=wheel] #wh-recent .wh-gold{color:#ffd08a;border-color:#ffb15355;background:#ffa83c1c}
.app .gf-root[data-fit-game=wheel] #wh-recent .ac-note{font-size:10px;color:#898b96;white-space:nowrap}

/* Keep the decimal separator clear at large result sizes in every game. */
.app :is(#mn-outcome,#pk-outcome,#hl-outcome,#st-outcome) .gn-factor{letter-spacing:0;font-kerning:normal}
.gn-factor .gn-decimal{display:inline-block;margin-right:.09em;margin-left:.015em}
