.arcade-game .game-wrapper{position:relative}.arcade-game .main-column{min-height:145px}.arcade-game .game-viewport{background:#101c2c}.arcade-game #gameCanvas{border:0;border-radius:0;box-shadow:none}.arcade-game .ui-bar{padding:8px 10px;gap:6px}.arcade-game .hud{justify-content:space-between;gap:5px;font-size:10px}.arcade-game .hud .pill{display:inline-flex!important;font-size:10px}.arcade-game .hud .pill-label{font-size:9px}.arcade-game .controls{justify-content:space-between;gap:6px}.arcade-game .controls button{flex:1;min-height:35px}.arcade-game .controls input{width:72px}.arcade-game .controls label{font-size:10px}.arcade-game .message{font-size:10px;min-height:26px}.arcade-game .arcade-rules{color:#8da8b5;font:9px/1.4 system-ui}.arcade-game .arcade-rules summary{cursor:pointer}.arcade-game .arcade-rules p{margin:5px 0}.arcade-game .arcade-time{position:absolute;right:10px;top:8px;color:#b0b9d3;font:10px system-ui;pointer-events:none}.arcade-game .game-unlock{bottom:120px}.arcade-game .game-outcome{top:50px;padding:7px 12px}.arcade-game .game-outcome strong{font-size:20px}.arcade-game #arcadeFinish{background:#273c4c;color:#becbd6;flex:0 1 auto;font-weight:400;font-size:10px}.arcade-game #arcadeFinish[hidden]{display:none}.arcade-game .hud .pill:nth-child(4){display:inline-flex}.arcade-game .arcade-login{font:11px system-ui;color:#c9d9e9}.arcade-game .sidebar{max-height:calc(100% - 16px)}
.games-enhanced>header .games-menu-toggle{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:flex;align-items:center;gap:7px;min-height:36px;padding:7px 13px;border:1px solid #7296a653;border-radius:9px;background:#263941;color:#e0ede9;font:600 12px system-ui;cursor:pointer}.games-menu-toggle[aria-expanded=true]{background:#35515a}.games-menu-toggle small{font-size:10px;color:#9cb8bc}.games-menu{position:absolute;z-index:70;top:calc(100% - 3px);left:50%;transform:translateX(-50%);width:270px;max-height:calc(100dvh - 70px);overflow:auto;padding:7px;background:#182830fa;border:1px solid #5b77826b;border-radius:11px;box-shadow:0 12px 35px #0008}.games-menu[hidden]{display:none!important}.games-enhanced .games-menu :is(#gameToggle,#rouletteToggle,#blackjackToggle,#slotToggle,#debugToggle,#plinkoToggle,#cargoToggle,#roverToggle,#pinballToggle,#billiardsToggle){position:static!important;transform:none!important;display:flex!important;align-items:center;gap:9px;width:100%;min-height:38px;margin:0;padding:9px 10px;text-align:left;opacity:1;pointer-events:auto;background:transparent;border:0;border-radius:7px;color:#d7e4e8;font:12px system-ui;cursor:pointer}.games-enhanced .games-menu button:hover,.games-enhanced .games-menu button:focus-visible{background:#36505a;outline:0}.games-menu .menu-divider{height:1px;margin:5px;background:#ffffff16}.games-menu .game-menu-icon{width:23px;text-align:center;font-size:18px}.games-menu-open>header{z-index:70}.games-menu-toggle:focus-visible{outline:2px solid #b4e5d6;outline-offset:3px}
.games-enhanced #arcadePanel{left:auto;right:16px;width:360px;max-width:calc(100% - 32px);height:min(475px,calc(100dvh - 88px));padding:8px}.games-enhanced #arcadePanel[data-game=cargo]{width:350px;height:min(450px,calc(100dvh - 88px))}.games-enhanced #arcadePanel .game-panel-header{font-size:12px}.games-enhanced #arcadePanel .game-panel-close{min-width:26px;min-height:26px}.games-enhanced #arcadePanel .game-panel-body{margin-top:2px}
@media(max-width:768px){.games-enhanced>header .games-menu-toggle{position:static;transform:none;margin:0 8px 0 auto;flex:none}.games-enhanced>header h1{margin-right:0}.games-enhanced #userInfo{max-width:100px;margin-left:0}.games-menu{left:auto;right:8px;transform:none;width:min(280px,calc(100vw - 16px))}.games-enhanced #arcadePanel.open,.games-enhanced #arcadePanel[data-game=cargo].open{position:fixed;left:50%;right:auto;top:auto;bottom:max(8px,env(safe-area-inset-bottom));transform:translateX(-50%);width:min(370px,calc(100vw - 16px));max-width:calc(100vw - 16px);height:min(520px,calc(100dvh - 74px));min-height:0}.games-enhanced #arcadePanel[data-game=cargo].open{height:min(500px,calc(100dvh - 74px))}}
@media(max-height:480px){.games-enhanced #arcadePanel.open,.games-enhanced #arcadePanel[data-game=cargo].open{position:fixed;left:50%;right:auto;top:64px;bottom:8px;transform:translateX(-50%);width:min(550px,calc(100vw - 16px));max-width:calc(100vw - 16px);height:auto;min-height:0}}
@media(max-height:420px) and (min-width:430px){.arcade-game .game-layout{display:grid;grid-template-columns:minmax(0,1fr) 185px;min-height:0}.arcade-game .main-column{min-height:0}.arcade-game .ui-bar{min-width:0;display:flex;flex-direction:column;justify-content:center;gap:8px;border-top:0;border-left:1px solid #314d52;padding:8px}.arcade-game .hud{justify-content:flex-start;gap:6px 9px}.arcade-game .controls{width:100%;gap:7px}.arcade-game .controls button{min-height:34px}.arcade-game .message{display:block;font-size:9px}.arcade-game .arcade-rules{display:none}}
@media(max-width:270px){.arcade-game .hud .pill:last-child{display:none!important}.arcade-game .controls{flex-wrap:wrap}.arcade-game .controls input{width:60px}}
@media(max-width:768px){.games-enhanced .games-menu #debugToggle{display:none!important}}
.arcade-game .game-layout{align-items:stretch}.arcade-game .main-column{max-width:none;margin:0}.arcade-game .ui-bar{align-self:stretch;width:100%}

/* Show the original icon row whenever it fits between the brand and profile. */
.games-menu{--game-icon-size:40px;--game-icon-gap:0px}
.games-enhanced>header .games-menu-toggle[hidden]{display:none!important}
.games-enhanced>header:not(.games-inline) .games-menu button{justify-content:flex-start!important}
.games-enhanced>header.games-inline .games-menu{display:flex;align-items:center;gap:var(--game-icon-gap);top:50%;transform:translateY(-50%);width:max-content;max-height:none;overflow:visible;padding:0;background:none;border:0;border-radius:0;box-shadow:none}
.games-enhanced>header.games-inline .games-menu button{justify-content:center!important;flex:0 0 var(--game-icon-size);width:var(--game-icon-size)!important;min-width:0!important;height:36px;padding:0!important;border-radius:6px}
.games-enhanced>header.games-inline .game-menu-icon{width:auto;font-size:20px}
.games-enhanced>header.games-inline .games-menu button>span:not(.game-menu-icon),.games-enhanced>header.games-inline .menu-divider{display:none}
.games-enhanced>header.games-inline #debugToggle{font-size:0!important;opacity:0}
.games-enhanced>header.games-inline #debugToggle:hover,.games-enhanced>header.games-inline #debugToggle:focus-visible{opacity:1}
.games-enhanced>header.games-inline #debugToggle .game-menu-icon{font-size:19px}
.games-enhanced>header.games-inline .games-menu button:focus-visible{outline:2px solid #b4e5d6;outline-offset:1px}
@media(max-width:768px){.games-menu{--game-icon-size:34px;--game-icon-gap:2px}.games-enhanced>header.games-inline h1{margin-right:auto}.games-enhanced>header.games-inline .games-menu{right:auto}.games-enhanced>header.games-inline .game-menu-icon{font-size:20px}}



.games-enhanced #arcadePanel[data-game=rover]{left:0;right:0;width:100%;max-width:100%;height:min(clamp(360px,55vh,540px),calc(100dvh - 88px));padding:.75rem;transform:none}
@media(max-width:768px){.games-enhanced #arcadePanel[data-game=rover].open{position:fixed;left:8px;right:8px;top:max(66px,env(safe-area-inset-top));bottom:max(8px,env(safe-area-inset-bottom));width:auto;max-width:none;height:auto;min-height:0;transform:none;padding:9px}}
@media(max-height:480px){.games-enhanced #arcadePanel[data-game=rover].open{position:fixed;left:8px;right:8px;top:64px;bottom:8px;width:auto;max-width:none;height:auto;min-height:0;transform:none;padding:6px}}

.games-enhanced #arcadePanel[data-game=pinball]{width:min(860px,calc(100vw - 32px));height:min(800px,calc(100dvh - 88px))}
@media(max-width:768px){.games-enhanced #arcadePanel[data-game=pinball].open{width:min(440px,calc(100vw - 16px));height:min(750px,calc(100dvh - 74px))}}
@media(max-height:480px){.games-enhanced #arcadePanel[data-game=pinball].open{width:min(570px,calc(100vw - 16px));height:auto}}

.games-enhanced #arcadePanel[data-game=billiards].open{width:min(920px,calc(100% - 24px));height:min(610px,calc(100% - 26px),calc(100dvh - 82px));max-width:none}
@media(max-width:768px),(max-height:480px){.games-enhanced #arcadePanel[data-game=billiards].open{position:fixed;left:6px;right:6px;top:max(62px,env(safe-area-inset-top));bottom:max(6px,env(safe-area-inset-bottom));width:auto;height:auto;max-width:none;transform:none;padding:5px}}
