/* Largo slot-style poker console. Scope to cash mode; preserve original controls. */
/* The felt takes the space formerly occupied by the game header and status bar. */
html body.largo-cash-playing #s-game#s-game > .header,
html body.largo-cash-playing #s-game#s-game > #pot-strip,
html body.largo-cash-playing #s-game#s-game > .adaptive-drawer-bar,
html body.largo-cash-playing #s-game#s-game .game-area > .g-felt-corner,
html body.largo-cash-playing #s-game#s-game .game-area > .zoom-ctrl { display:none!important; }
html body.largo-cash-playing #s-game#s-game #g-reaction-panel { z-index:501!important; }
html body.largo-cash-playing #s-game#s-game #g-reaction-panel:not(.floating-win) { top:0!important; }

/* Same back control as the slots, over the game rather than inside the felt. */
#s-game #lc-back {display:none}
body.largo-cash-playing #s-game #lc-back {
 display:flex;align-items:center;justify-content:center;position:fixed;top:12px;left:12px;z-index:502;
 box-sizing:border-box;width:189px;height:60px;border:3px solid #d2aa5b;border-radius:15px;
 background:#10151e;color:#fff;text-decoration:none;font:700 24px/1 Arial,sans-serif;touch-action:manipulation;
}
body.largo-cash-playing #s-game #lc-back:focus-visible {outline:3px solid #8ff7ec;outline-offset:3px}
@media(max-width:620px){body.largo-cash-playing #s-game #lc-back{width:110px;height:46px;font-size:17px;top:8px;left:8px}}
@media(max-height:500px) and (orientation:landscape){body.largo-cash-playing #s-game #lc-back{width:110px;height:46px;font-size:17px;top:8px;left:8px}}

#s-game #lc-last-hand-button{display:none}
body.largo-cash-playing #s-game #lc-last-hand-button{
 display:flex;align-items:center;justify-content:center;position:fixed;top:12px;right:12px;z-index:502;
 box-sizing:border-box;min-width:195px;height:54px;padding:0 18px;border:2px solid #d2aa5b;border-radius:14px;
 background:#101b20;color:#f9e5ae;font:700 16px/1 Arial,sans-serif;letter-spacing:.035em;
 cursor:pointer;touch-action:manipulation;box-shadow:0 4px 16px #0009;
}
body.largo-cash-playing #s-game #lc-last-hand-button:disabled{opacity:.45;cursor:default}
body.largo-cash-playing #s-game #lc-last-hand-button:focus-visible{outline:3px solid #8ff7ec;outline-offset:3px}
@media(max-width:620px), (max-height:500px) and (orientation:landscape){
 body.largo-cash-playing #s-game #lc-last-hand-button{top:8px;right:8px;min-width:0;height:46px;padding:0 10px;font-size:11px;border-radius:10px}
}
#lc-last-hand-dialog{
 box-sizing:border-box;width:min(660px,calc(100vw - 24px));max-height:min(760px,calc(100dvh - 24px));
 margin:auto;padding:24px;border:2px solid #d5b76d;border-radius:18px;
 background:linear-gradient(150deg,#203a3b,#111b22 68%);color:#f8f1de;
 box-shadow:0 20px 80px #000d,0 0 35px #d1a85040;font:16px/1.35 Arial,sans-serif;overflow:auto;
}
#lc-last-hand-dialog::backdrop{background:#030709d9}
#lc-last-hand-dialog .lc-last-head{display:flex;justify-content:space-between;align-items:start;gap:16px;border-bottom:1px solid #b69a6170;padding-bottom:14px}
#lc-last-hand-dialog .lc-eyebrow{font-size:11px;letter-spacing:.18em;color:#deb975}
#lc-last-hand-dialog h2{margin:6px 0 0;font-size:28px;color:#fff7df}
#lc-last-hand-dialog #lc-last-hand-close{flex:none;width:40px;height:40px;border:1px solid #c5ab73;border-radius:10px;background:#23393a;color:#f7e8c4;font-size:29px;line-height:1;cursor:pointer}
#lc-last-hand-dialog #lc-last-hand-close:focus-visible{outline:3px solid #8ff7ec;outline-offset:2px}
#lc-last-hand-dialog .lc-history-result{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:10px;margin-top:18px;font-size:20px}
#lc-last-hand-dialog .lc-history-result strong{color:#ffe79d}
#lc-last-hand-dialog .lc-history-result span{font-weight:700;color:#fff}
#lc-last-hand-dialog .lc-history-explanation{margin:10px 0 19px;color:#bdcfd1}
#lc-last-hand-dialog .lc-history-section{margin-top:16px}
#lc-last-hand-dialog .lc-history-section h3{margin:0 0 10px;font-size:13px;letter-spacing:.07em;text-transform:uppercase;color:#d6ba7d}
#lc-last-hand-dialog .lc-history-cards{display:flex;flex-wrap:wrap;gap:6px}
#lc-last-hand-dialog .lc-history-card{display:grid;place-items:center;min-width:39px;height:56px;padding:0 3px;border:1px solid #ddd;border-radius:5px;background:#fff;color:#15191b;box-shadow:0 2px 5px #0007;font-weight:700;font-size:22px}
#lc-last-hand-dialog .lc-history-card.red{color:#c52a26}
#lc-last-hand-dialog .lc-history-card.unknown{background:#57272a;color:#edc46d;border-color:#b58b58}
#lc-last-hand-dialog .lc-history-player{display:flex;align-items:center;gap:14px;padding:12px 8px;border-top:1px solid #ffffff25}
#lc-last-hand-dialog .lc-history-player.winner{border:1px solid #e0ba69;border-radius:10px;background:#d7b25c1e}
#lc-last-hand-dialog .lc-history-player>div:first-child{display:flex;flex-direction:column;gap:3px;flex:1;min-width:110px}
#lc-last-hand-dialog .lc-history-player strong{color:#fff;font-size:17px}
#lc-last-hand-dialog .lc-history-player span:not(.lc-history-card){color:#c3d2d3;font-size:13px}
#lc-last-hand-dialog .lc-history-player>b{margin-left:auto;color:#ffe08b;font-size:20px;white-space:nowrap}
@media(max-width:520px){
 #lc-last-hand-dialog{padding:16px}
 #lc-last-hand-dialog h2{font-size:23px}
 #lc-last-hand-dialog .lc-history-result{font-size:17px}
 #lc-last-hand-dialog .lc-history-player{flex-wrap:wrap}
 #lc-last-hand-dialog .lc-history-card{min-width:31px;height:45px;font-size:18px}
}

/* Bet markers follow their player toward the felt centre, independently of
   the PokerTH seat's internal bet strip. */
#s-game #lc-bet-layer {display:none}
body.largo-cash-playing #s-game #lc-bet-layer {display:block;position:absolute;inset:0;z-index:6;pointer-events:none}
body.largo-cash-playing #s-game .lc-table-bet {
 position:absolute;transform:translate(-50%,-50%) scale(var(--bet-scale,1));display:inline-flex;align-items:center;gap:5px;
 color:#fff2cb;font:700 16.8px/1 Arial,sans-serif;text-shadow:0 2px 3px #000,0 0 8px #000;
 white-space:nowrap;
}
body.largo-cash-playing #s-game .lc-bet-chips {
 position:relative;display:block;flex:none;width:var(--chips-w);height:var(--chips-h);
}
body.largo-cash-playing #s-game .lc-bet-chip-sheet {
 position:absolute;display:block;left:0;top:0;transform-origin:top left;
}
body.largo-cash-playing #s-game .lc-bet-pile {
 position:absolute;display:block;bottom:0;width:79.2px;
}
body.largo-cash-playing #s-game .lc-bet-pile::before {
 content:'';position:absolute;z-index:0;left:5.2px;bottom:0;width:68.8px;height:16px;
 border-radius:50%;background:radial-gradient(ellipse at center,rgba(0,0,0,.7) 0%,rgba(0,0,0,.35) 42%,transparent 78%);
}
body.largo-cash-playing #s-game .lc-bet-chip {
 position:absolute;display:block;width:79.2px;height:40px;
 background:url('/poker/pucks/largo-bet-chip-noir.png') center/100% 100% no-repeat;
}
body.largo-cash-playing #s-game .lc-bet-amount {
 display:block;flex:none;font-variant-numeric:tabular-nums;
}
body.largo-cash-playing #s-game .seat .seat-bet {visibility:hidden!important}
body.largo-cash-playing #s-game .seat .seat-bet-socle {background:transparent;border-color:transparent}

@keyframes largoWinnerConfetti {
  0% {transform:translate(0,0) rotate(0deg);opacity:1}
  38% {transform:translate(var(--lc-mid-x),var(--lc-mid-y)) rotate(170deg);opacity:1}
  100% {transform:translate(var(--lc-end-x),var(--lc-end-y)) rotate(var(--lc-spin));opacity:0}
}
.lc-winner-confetti {
  position:fixed;width:8px;height:12px;border-radius:2px;z-index:10060;
  pointer-events:none;animation:largoWinnerConfetti 1.15s ease-out forwards;
}

/* Larger reaction picker with finger-sized cells and enough room to scroll. */
html body.largo-cash-playing #s-game#s-game #g-reaction-panel {
 box-sizing:border-box!important;width:min(520px,calc(100vw - 16px))!important;
 height:min(500px,65dvh)!important;max-height:min(500px,65dvh)!important;
 display:flex;flex-direction:column;overflow:hidden;padding:12px!important;
 border:2px solid #d4b477;border-radius:15px;background:#16272a;box-shadow:0 16px 45px #000c;
}
html body.largo-cash-playing #s-game#s-game #g-reaction-panel:not(.floating-win) {left:8px!important;right:auto!important;top:8px!important}
html body.largo-cash-playing #s-game#s-game #g-reaction-panel .react-panel-title {flex:none;min-height:44px;margin-bottom:8px;font-size:13px}
html body.largo-cash-playing #s-game#s-game #g-reaction-panel .react-grid {
 grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:7px!important;width:100%!important;
 max-width:none!important;max-height:none!important;min-height:0!important;margin:0!important;overflow-y:auto!important;
 flex:1 1 auto!important;align-content:start;-webkit-overflow-scrolling:touch;
}
html body.largo-cash-playing #s-game#s-game #g-reaction-panel .react-btn {
 min-width:54px;min-height:54px;font-size:36px!important;touch-action:manipulation;
}
html body.largo-cash-playing #s-game#s-game #g-reaction-panel .react-panel-title button {min-width:40px;min-height:40px;font-size:20px}
@media(max-width:620px){
 html body.largo-cash-playing #s-game#s-game #g-reaction-panel .react-grid{grid-template-columns:repeat(5,minmax(0,1fr))!important}
 html body.largo-cash-playing #s-game#s-game #g-reaction-panel .react-btn{min-width:0;min-height:54px}
}

/* Stronger emergency glow at the edge of the whole screen. */
body.largo-cash-playing #s-game.urgent::after {box-shadow:inset 0 0 95px 26px rgba(255,63,38,.65)!important}

html body.largo-cash-playing #s-game#s-game #largo-game-controls {
 position:fixed!important; inset:auto auto 0 0!important; width:1440px!important; max-width:none!important;
 box-sizing:border-box!important; transform:scale(var(--lc-console-scale,1))!important; transform-origin:bottom left!important; zoom:1!important; margin:0!important;
 display:flex!important; flex-direction:column!important; align-items:stretch!important; gap:0!important;
 padding:12px 24px 16px!important;
 border:2px solid #d4b477!important; border-bottom:0!important; border-radius:22px 22px 0 0!important;
 background:linear-gradient(112deg,#47301f 0%,#213c3c 44%,#142b30 100%)!important;
 box-shadow:0 -8px 35px #0009,inset 0 0 0 3px #ffffff12,inset 0 1px 0 #fff0c4!important;
 z-index:400!important; overflow:visible!important; min-height:0!important;
 font-family:Arial,system-ui,sans-serif!important;
}
body.largo-cash-playing #s-game {padding-bottom:0!important}
html body.largo-cash-playing #s-game#s-game #largo-game-controls #largo-cash-bar {
 position:absolute!important;left:24px;top:12px;display:flex;align-items:center;gap:10px;flex-wrap:nowrap!important;
 width:560px;height:36px;box-sizing:border-box;padding:0!important;margin:0;
 border:0;background:none;
 color:#d2e8e3;font:12px Arial,sans-serif;
}
html body.largo-cash-playing #s-game#s-game #largo-game-controls #lc-table-message {flex:1;font-size:12px;line-height:1.2;color:#e7cb8b;text-align:left}
html body.largo-cash-playing #s-game#s-game #largo-game-controls #largo-cash-bar button {min-height:36px;padding:7px 17px!important;border-radius:9px;border:1px solid #b7caaf;font-size:11px!important;letter-spacing:.06em;background:linear-gradient(#3c6464,#17393d);color:#e6f3e8;white-space:nowrap}
html body.largo-cash-playing #s-game#s-game #largo-game-controls #lc-topup {background:linear-gradient(#fff0a9,#cb9242)!important;color:#403022!important;border-color:#fff0ae!important}
html body.largo-cash-playing #s-game#s-game #largo-game-controls #largo-cash-bar #react-toggle-btn {
 flex:0 0 36px!important;width:36px!important;min-width:36px!important;height:36px!important;min-height:36px!important;
 padding:0!important;border-radius:50%!important;border-color:#a5d5c7!important;
 background:linear-gradient(#33665f,#164346)!important;color:#fff7db!important;font-size:21px!important;letter-spacing:0!important;
}
html body.largo-cash-playing #s-game#s-game #largo-game-controls #largo-cash-bar button:disabled {opacity:.48}
html body.largo-cash-playing #s-game#s-game #largo-game-controls .action-wrap,html body.largo-cash-playing #s-game#s-game #largo-game-controls #g-actions {width:100%!important;max-width:none!important;margin:0!important;min-width:0!important}
html body.largo-cash-playing #s-game#s-game #largo-game-controls .action-grid {
 display:grid!important;grid-template-columns:560px minmax(0,1fr)!important;
 grid-template-rows:36px 48px 44px!important;grid-template-areas:'. actions' 'amount actions' 'options actions'!important;
 gap:10px 28px!important;padding:0!important;margin:0!important;max-width:none!important;width:100%!important;
 border:0!important;border-radius:0!important;background:none!important;box-shadow:none!important;min-height:0!important;
}
html body.largo-cash-playing #s-game#s-game #largo-game-controls .bet-row {grid-area:amount!important;display:flex!important;align-items:center!important;gap:14px!important;min-width:0}
html body.largo-cash-playing #s-game#s-game #largo-game-controls .bet-row::before {content:'СТАВКА';color:#d1d6bb;font-size:11px;font-weight:bold;letter-spacing:.12em}
html body.largo-cash-playing #s-game#s-game #largo-game-controls .bet-row .raise-amt-field {flex:0 0 112px!important;width:112px!important;height:48px!important;min-height:48px!important;padding:5px 12px!important;border-radius:9px!important;border:1px solid #d9bc80!important;background:#09272e!important;color:#d4fbff!important;font:700 26px Arial,sans-serif!important;box-shadow:inset 0 2px 9px #0006!important;text-align:center!important}
html body.largo-cash-playing #s-game#s-game #largo-game-controls .bet-row .raise-slider {flex:1 1 70px!important;min-width:50px!important;width:auto!important;height:32px!important;accent-color:#5adbcf!important;touch-action:pan-y}
html body.largo-cash-playing #s-game#s-game #largo-game-controls .mid-row {grid-area:options!important;display:flex!important;align-items:stretch!important;gap:8px!important;min-width:0!important}
html body.largo-cash-playing #s-game#s-game #largo-game-controls .pct-row {display:flex!important;gap:6px!important;flex:1 1 auto!important;width:auto!important;min-width:0!important}
html body.largo-cash-playing #s-game#s-game #largo-game-controls .pct-row .btn-pct {flex:1 1 0!important;width:auto!important;min-width:0!important;height:44px!important;min-height:44px!important;border:1px solid #819e95!important;border-radius:8px!important;background:linear-gradient(#3d635b,#1c3b3a)!important;color:#edf6da!important;padding:0 6px!important;font:700 15px Arial,sans-serif!important}
html body.largo-cash-playing #s-game#s-game #largo-game-controls .pct-row .pct-p {font-size:15px!important;line-height:1!important}
html body.largo-cash-playing #s-game#s-game #largo-game-controls .mid-row > .btn-allin {flex:0 0 85px!important;width:auto!important;min-width:85px!important;height:44px!important;min-height:44px!important;max-height:none!important;border:1px solid #ecc986!important;border-radius:9px!important;background:linear-gradient(#bf8038,#704016)!important;color:#fff3cf!important;font:700 15px Arial,sans-serif!important;padding:0 9px!important;box-shadow:inset 0 1px 0 #ffefa14d!important}
html body.largo-cash-playing #s-game#s-game #largo-game-controls .mode-sel-wrap {flex:0 0 116px!important;min-width:116px!important;width:116px!important;height:44px!important;margin:0!important}
html body.largo-cash-playing #s-game#s-game #largo-game-controls .mode-sel-wrap select {width:100%!important;height:44px!important;min-height:44px!important;padding:6px 26px 6px 10px!important;background:#14373c!important;color:#e3f2e9!important;border:1px solid #7ca69a!important;border-radius:9px!important;font:13px Arial,sans-serif!important}
html body.largo-cash-playing #s-game#s-game #largo-game-controls .act-buttons-row {grid-area:actions!important;display:grid!important;height:100%!important;min-height:0!important;margin:0!important;padding:0!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;align-items:stretch!important;gap:14px!important;width:100%!important;min-width:0!important}
html body.largo-cash-playing #s-game#s-game #largo-game-controls .act-buttons-row .btn-action {
 display:flex!important;flex-direction:column!important;justify-content:center!important;align-items:center!important;gap:5px!important;
 width:100%!important;min-width:0!important;min-height:102px!important;height:100%!important;max-height:none!important;
 padding:12px 8px!important;border:2px solid #dbc38e!important;border-radius:17px!important;
 font:700 34px/1.05 Arial,sans-serif!important;letter-spacing:.01em!important;color:#fff9e6!important;
 box-shadow:inset 0 0 0 3px #ffffff17,inset 0 2px 0 #ffffff42,0 4px 0 #0005!important;text-shadow:0 2px 2px #0007!important;
}
html body.largo-cash-playing #s-game#s-game #largo-game-controls .act-buttons-row .btn-fold {background:linear-gradient(150deg,#b56a54,#7b322a)!important}
html body.largo-cash-playing #s-game#s-game #largo-game-controls .act-buttons-row .btn-call,html body.largo-cash-playing #s-game#s-game #largo-game-controls .act-buttons-row .btn-check {background:linear-gradient(150deg,#479693,#165159)!important}
html body.largo-cash-playing #s-game#s-game #largo-game-controls .act-buttons-row .btn-raise {background:linear-gradient(150deg,#8eae68,#3e6950)!important}
html body.largo-cash-playing #s-game#s-game #largo-game-controls .act-buttons-row .btn-action > b,html body.largo-cash-playing #s-game#s-game #largo-game-controls .act-buttons-row .raise-btn-amt {font:700 29px/1.05 Arial,sans-serif!important;color:#ffedb5!important}
html body.largo-cash-playing #s-game#s-game #largo-game-controls .act-key {display:none!important}
html body.largo-cash-playing #s-game#s-game #largo-game-controls button:focus-visible,html body.largo-cash-playing #s-game#s-game #largo-game-controls input:focus-visible,html body.largo-cash-playing #s-game#s-game #largo-game-controls select:focus-visible {outline:3px solid #8ff7ec!important;outline-offset:3px!important}
html body.largo-cash-playing #s-game#s-game #largo-game-controls .btn-action.prearmed {outline:3px solid #ffdf70!important;outline-offset:2px!important}
html body.largo-cash-playing #s-game#s-game #largo-game-controls.my-turn-active .action-grid {border-color:transparent!important;box-shadow:none!important}
html body.largo-cash-playing #s-game#s-game #largo-game-controls.my-turn-active .action-grid::after {
 border:0!important;box-shadow:0 0 30px 11px rgba(255,213,74,.7)!important;
}
html body.largo-cash-playing #s-game#s-game #largo-game-controls .mode-auto select {border:2px solid #f1cd66!important}
html body.largo-cash-playing #s-game#s-game #largo-game-controls .btn-action:disabled,html body.largo-cash-playing #s-game#s-game #largo-game-controls .btn-pct:disabled {opacity:.45!important}
html body.largo-cash-playing #s-game#s-game #largo-game-controls .no-action .act-buttons-row,html body.largo-cash-playing #s-game#s-game #largo-game-controls .no-action .bet-row,html body.largo-cash-playing #s-game#s-game #largo-game-controls .no-action .pct-row {opacity:1}
html body.largo-cash-playing #s-game#s-game #largo-game-controls .waiting-panel,html body.largo-cash-playing #s-game#s-game #largo-game-controls .waiting-msg {padding:20px;background:none!important;border:0!important;color:#e0e9d5;font-size:18px}
/* The existing touch keypad still opens over the same controls. */
html body.largo-cash-playing #s-game#s-game #largo-game-controls .action-grid.kp-open {padding-top:46px!important;grid-template-columns:1fr!important;grid-template-rows:auto!important;grid-template-areas:none!important}
html body.largo-cash-playing #s-game#s-game #largo-game-controls .action-grid.kp-open > .bet-keypad {grid-column:1!important;grid-row:1!important;width:min(560px,100%)!important;justify-self:center}
html body.largo-cash-playing #s-game#s-game #largo-game-controls .action-grid.kp-open-float {position:relative!important}
html body.largo-cash-playing #s-game#s-game #largo-game-controls .action-grid.kp-open-float > .bet-keypad {bottom:calc(100% + 16px)!important;z-index:500}

html body.largo-cash-playing #s-game#s-game #largo-game-controls .actions-preview .btn-action {opacity:.78!important}
html body.largo-cash-playing #s-game#s-game #largo-game-controls .actions-preview.no-action .btn-action {opacity:.65!important;filter:grayscale(.8)!important}
html body.largo-cash-playing #s-game#s-game #largo-game-controls .actions-preview .btn-action.prearmed {opacity:1!important;filter:none!important}
html body.largo-cash-playing #s-game#s-game #largo-game-controls .bet-row .raise-slider {appearance:none!important;-webkit-appearance:none!important;background:transparent!important;border:0!important;padding:0!important}
html body.largo-cash-playing #s-game#s-game #largo-game-controls .raise-slider::-webkit-slider-runnable-track {height:8px;background:#0b262d;border:1px solid #b0b190;border-radius:8px}
html body.largo-cash-playing #s-game#s-game #largo-game-controls .raise-slider::-webkit-slider-thumb {-webkit-appearance:none;width:24px;height:24px;margin-top:-9px;border:2px solid #eddeb2;border-radius:50%;background:linear-gradient(#9befd9,#32a898);box-shadow:0 2px 5px #0008}
html body.largo-cash-playing #s-game#s-game #largo-game-controls .raise-slider::-moz-range-track {height:8px;background:#0b262d;border:1px solid #b0b190;border-radius:8px}
html body.largo-cash-playing #s-game#s-game #largo-game-controls .raise-slider::-moz-range-thumb {width:22px;height:22px;border:2px solid #eddeb2;border-radius:50%;background:#5fd4bd}

html body.largo-cash-playing #s-game#s-game #largo-game-controls .action-grid.kp-open > .bet-row,
html body.largo-cash-playing #s-game#s-game #largo-game-controls .action-grid.kp-open > .mid-row,
html body.largo-cash-playing #s-game#s-game #largo-game-controls .action-grid.kp-open > .act-buttons-row {display:none!important}

/* LARGO_POKER_COMPACT_LANDSCAPE_V1: reserve the measured compact dock for the live table. */
@media (orientation:landscape) and (pointer:coarse), (orientation:landscape) and (max-height:600px) {
 html body.largo-cash-playing #s-game#s-game #largo-game-controls {
  width:100%!important;transform:none!important;display:grid!important;
  grid-template-columns:44px minmax(0,1fr)!important;align-items:center!important;
  gap:8px!important;padding:8px!important;border-radius:14px 14px 0 0!important;
 }
 html body.largo-cash-playing #s-game#s-game #largo-game-controls .lc-compact-menu {position:relative;min-width:0;align-self:center}
 html body.largo-cash-playing #s-game#s-game #largo-game-controls .lc-compact-menu > summary {
  list-style:none;display:flex;align-items:center;justify-content:center;
  width:44px;height:44px;box-sizing:border-box;cursor:pointer;border:1px solid #9dc6ba;
  border-radius:9px;color:#e6f3e8;background:linear-gradient(#3c6464,#17393d);font:700 24px Arial,sans-serif;
 }
 html body.largo-cash-playing #s-game#s-game #largo-game-controls:has(.lc-compact-menu[open]) {z-index:600!important}
 .lc-compact-menu > summary::-webkit-details-marker {display:none}
 .lc-compact-menu > summary:focus-visible {outline:3px solid #8ff7ec;outline-offset:2px}
 html body.largo-cash-playing #s-game#s-game #largo-game-controls .lc-compact-menu #largo-cash-bar {
  position:absolute!important;left:0!important;top:auto!important;bottom:calc(100% + 16px)!important;
  width:min(340px,calc(100vw - 20px))!important;height:auto!important;max-height:calc(100dvh - 90px);
  overflow:auto;display:flex;flex-wrap:wrap!important;gap:8px!important;padding:12px!important;
  border:1px solid #d4b477;border-radius:12px;background:#142f33;box-shadow:0 4px 24px #000b;
 }
 html body.largo-cash-playing #s-game#s-game #largo-game-controls .lc-compact-menu:not([open]) #largo-cash-bar {display:none!important}
 html body.largo-cash-playing #s-game#s-game #largo-game-controls .lc-compact-menu #largo-cash-bar button {
  min-height:44px!important;padding:8px 12px!important;font-size:12px!important;
 }
 html body.largo-cash-playing #s-game#s-game #largo-game-controls .lc-compact-menu #largo-cash-bar #react-toggle-btn {
  flex-basis:44px!important;width:44px!important;min-width:44px!important;height:44px!important;min-height:44px!important;
 }
 html body.largo-cash-playing #s-game#s-game #largo-game-controls #online-wallet {flex-basis:100%;font-size:13px;line-height:1.4}
 html body.largo-cash-playing #s-game#s-game #largo-game-controls .action-grid:not(.kp-open) {
  grid-template-columns:minmax(108px,.8fr) minmax(152px,1fr) minmax(180px,2fr)!important;
  grid-template-rows:44px!important;grid-template-areas:'amount options actions'!important;gap:6px!important;
 }
 html body.largo-cash-playing #s-game#s-game #largo-game-controls .bet-row {position:relative;gap:6px!important}
 html body.largo-cash-playing #s-game#s-game #largo-game-controls .bet-row::before {position:absolute;top:2px;left:3px;font-size:8px;letter-spacing:.04em;pointer-events:none}
 html body.largo-cash-playing #s-game#s-game #largo-game-controls .bet-row .raise-amt-field {
  flex:0 0 56px!important;width:56px!important;height:44px!important;min-height:44px!important;padding:10px 2px 0!important;font-size:18px!important;
 }
 html body.largo-cash-playing #s-game#s-game #largo-game-controls .bet-row .raise-slider {min-width:46px!important;height:44px!important;flex:1 1 46px!important}
 html body.largo-cash-playing #s-game#s-game #largo-game-controls .mid-row,
 html body.largo-cash-playing #s-game#s-game #largo-game-controls .pct-row {gap:4px!important}
 html body.largo-cash-playing #s-game#s-game #largo-game-controls .pct-row .btn-pct {
  height:44px!important;min-height:44px!important;font-size:12px!important;padding:0 2px!important;
 }
 html body.largo-cash-playing #s-game#s-game #largo-game-controls .pct-row .pct-p {font-size:12px!important}
 html body.largo-cash-playing #s-game#s-game #largo-game-controls .mid-row > .btn-allin {
  flex:0 0 48px!important;min-width:48px!important;height:44px!important;min-height:44px!important;font-size:11px!important;padding:0 2px!important;
 }
 html body.largo-cash-playing #s-game#s-game #largo-game-controls .act-buttons-row {gap:6px!important}
 html body.largo-cash-playing #s-game#s-game #largo-game-controls .act-buttons-row .btn-action {
  min-height:44px!important;height:44px!important;padding:2px 4px!important;gap:1px!important;border-radius:9px!important;font-size:18px!important;
 }
 html body.largo-cash-playing #s-game#s-game #largo-game-controls .act-buttons-row .btn-action > b,
 html body.largo-cash-playing #s-game#s-game #largo-game-controls .act-buttons-row .raise-btn-amt {font-size:13px!important}
}

/* Mobile controls keep native handlers and finger-sized targets. */
@media(max-width:600px) and (orientation:portrait){
 html body.largo-cash-playing #s-game#s-game #largo-game-controls{display:block!important;width:100%!important;left:0!important;right:0!important;bottom:0!important;padding:8px 8px max(8px,env(safe-area-inset-bottom))!important;transform:none!important;min-height:0!important;border-radius:14px 14px 0 0!important}
 html body.largo-cash-playing #s-game#s-game #largo-game-controls .action-grid:not(.kp-open){grid-template-columns:1fr!important;grid-template-rows:40px 40px 44px!important;grid-template-areas:'amount' 'options' 'actions'!important;gap:6px!important}
 html body.largo-cash-playing #s-game#s-game #largo-game-controls .bet-row{gap:10px!important}
 html body.largo-cash-playing #s-game#s-game #largo-game-controls .bet-row::before{font-size:10px!important}
 html body.largo-cash-playing #s-game#s-game #largo-game-controls .bet-row .raise-amt-field{width:70px!important;flex:0 0 70px!important;height:40px!important;min-height:40px!important;font-size:20px!important;padding:5px!important}
 html body.largo-cash-playing #s-game#s-game #largo-game-controls .mid-row{gap:5px!important}
 html body.largo-cash-playing #s-game#s-game #largo-game-controls .pct-row{gap:4px!important}
 html body.largo-cash-playing #s-game#s-game #largo-game-controls .pct-row .btn-pct{height:40px!important;min-height:40px!important;font-size:11px!important;padding:0 2px!important}
 html body.largo-cash-playing #s-game#s-game #largo-game-controls .pct-row .pct-p{font-size:11px!important}
 html body.largo-cash-playing #s-game#s-game #largo-game-controls .pct-amt{display:none!important}
 html body.largo-cash-playing #s-game#s-game #largo-game-controls .mid-row > .btn-allin{height:40px!important;min-height:40px!important;min-width:48px!important;flex:0 0 48px!important;font-size:11px!important;padding:0 3px!important}
 html body.largo-cash-playing #s-game#s-game #largo-game-controls .mode-sel-wrap{width:78px!important;min-width:78px!important;flex:0 0 78px!important;height:40px!important}
 html body.largo-cash-playing #s-game#s-game #largo-game-controls .mode-sel-wrap select{font-size:10px!important;min-height:40px!important;height:40px!important;padding:3px!important}
 html body.largo-cash-playing #s-game#s-game #largo-game-controls .act-buttons-row{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px!important}
 html body.largo-cash-playing #s-game#s-game #largo-game-controls .act-buttons-row .btn-action{min-height:44px!important;height:44px!important;padding:3px!important;font-size:16px!important;border-radius:9px!important;gap:2px!important}
 html body.largo-cash-playing #s-game#s-game #largo-game-controls .act-buttons-row .btn-action > b,html body.largo-cash-playing #s-game#s-game #largo-game-controls .act-buttons-row .raise-btn-amt{font-size:12px!important}
 html body.largo-cash-playing #s-game#s-game #largo-game-controls .lc-compact-menu{position:absolute;right:8px;top:-48px;left:auto;z-index:601}
 html body.largo-cash-playing #s-game#s-game #largo-game-controls .lc-compact-menu > summary{list-style:none;display:grid;place-items:center;width:40px;height:40px;border:1px solid #a3c6b9;border-radius:8px;background:#153538;color:#e6f3e8;font:24px Arial;cursor:pointer}
 html body.largo-cash-playing #s-game#s-game #largo-game-controls .lc-compact-menu > summary::-webkit-details-marker{display:none}
 html body.largo-cash-playing #s-game#s-game #largo-game-controls .lc-compact-menu:not([open]) #largo-cash-bar{display:none!important}
 html body.largo-cash-playing #s-game#s-game #largo-game-controls .lc-compact-menu #largo-cash-bar{position:absolute!important;left:auto!important;right:0!important;top:auto!important;bottom:calc(100% + 8px)!important;width:min(340px,calc(100vw - 16px))!important;height:auto!important;max-height:60dvh;overflow:auto;display:flex;flex-wrap:wrap!important;gap:8px!important;padding:12px!important;border:1px solid #d4b477;border-radius:12px;background:#142f33;box-shadow:0 4px 24px #000b}
 html body.largo-cash-playing #s-game#s-game #largo-game-controls .lc-compact-menu #largo-cash-bar button{min-height:44px!important;font-size:12px!important;padding:8px 12px!important}
 html body.largo-cash-playing #s-game#s-game #largo-game-controls .waiting-panel{padding:16px!important;font-size:14px!important}
}

/* Keep the native console inside Safari's visible portion of the authored canvas. */
@media(max-width:600px) and (orientation:portrait){
 html[data-largo-visible-poker-controls] body.largo-cash-playing #s-game#s-game #largo-game-controls{
  bottom:var(--largo-poker-visible-bottom,0px)!important;
  z-index:501!important;
 }
 html[data-largo-visible-poker-controls] body.largo-cash-playing #s-game#s-game #largo-game-controls .lc-compact-menu{
  top:calc(-1 * var(--largo-poker-menu-gap,48px))!important;
 }
 html[data-largo-visible-poker-controls] body.largo-cash-playing #s-game#s-game #lc-back,
 html[data-largo-visible-poker-controls] body.largo-cash-playing #s-game#s-game #lc-last-hand-button{
  top:calc(5px + var(--largo-poker-visible-top,0px))!important;
 }

 html[data-largo-visible-poker-controls] body.largo-cash-playing #online-status{
  top:calc(35px - var(--largo-poker-visible-bottom,0px))!important;
 }

 html[data-largo-visible-poker-controls] body.largo-cash-playing #online-wallet{
  top:calc(12px + var(--largo-poker-visible-top,0px))!important;
 }

 html[data-largo-visible-poker-controls] body.largo-cash-playing dialog:modal{
  top:var(--largo-poker-visible-top,0px)!important;bottom:var(--largo-poker-visible-bottom,0px)!important;
  margin:auto!important;max-height:min(760px,calc(var(--largo-poker-visible-height,100dvh) - 24px))!important;
 }

}

@media(max-width:600px) and (orientation:portrait){
 html[data-largo-visible-poker-controls] body.largo-cash-playing [data-largo-poker-header-anchor]{
  position:relative!important;
  left:calc(var(--largo-poker-header-x,0) * var(--largo-poker-visible-top,0px))!important;
  top:calc(var(--largo-poker-header-y,1) * var(--largo-poker-visible-top,0px))!important;
 }
}
