/* Free shares the fullscreen controller with Quick Play; only its layout differs. */
[data-plinko-free] [hidden]{display:none!important}
.plinko-expand,.plinko-close-expanded{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-width:44px;min-height:44px;border:1px solid #53517180;border-radius:10px;background:#111526;color:#f2eaff;cursor:pointer;touch-action:manipulation}
.plinko-expand{position:absolute;top:.4rem;right:3.5rem;width:44px;height:44px;padding:10px;z-index:2}
.plinko-expand svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.plinko-expand:focus-visible,.plinko-close-expanded:focus-visible{outline:3px solid #e5bdff;outline-offset:2px}
body.free-game-expanded-open{overflow:hidden}
.free-game-shell.free-game-expanded{position:fixed;inset:0;z-index:1000000;width:100%;max-width:none;height:100dvh;margin:0;padding:max(8px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));overflow:auto;background:#090c13;border-radius:0;display:grid;grid-template-columns:minmax(260px,320px) minmax(0,1fr);grid-template-rows:auto minmax(0,1fr);gap:12px;align-items:start}
.free-game-expanded .free-game-wallet{grid-column:1;grid-row:1}
.free-game-expanded .free-game-settings{grid-column:1;grid-row:2;align-self:start}
.free-game-expanded .free-game-stage{grid-column:2;grid-row:1 / 3;align-self:stretch;display:flex;flex-direction:column;min-width:0;min-height:320px;height:100%;padding:52px 8px 8px}
.free-game-expanded .free-game-board{flex:1 1 0;display:flex;align-items:center;justify-content:center;aspect-ratio:auto;min-height:180px;width:100%;max-width:none;margin:0;overflow:hidden}
.free-game-expanded .free-plinko-board{width:100%;height:100%;max-height:none;flex:initial}
.free-game-expanded .free-game-drop,.free-game-expanded .free-game-stage__top{flex-shrink:0;width:100%;max-width:none}
.free-game-expanded .plinko-sound{right:7rem;z-index:2}
.free-game-expanded .plinko-close-expanded{position:fixed;top:max(8px,env(safe-area-inset-top));right:max(12px,env(safe-area-inset-right));z-index:3;padding:0 12px}
.free-game-expanded .recent-results{display:none}
@media(max-width:759px){
 .free-game-shell.free-game-expanded{display:flex;flex-direction:column;gap:8px}
 .free-game-expanded>.free-game-stage{order:0;flex:none;width:100%;height:60dvh;min-height:320px}
 .free-game-expanded>.free-game-wallet{order:1;width:100%;flex:none;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr)}
 .free-game-expanded>.free-game-settings{order:2;width:100%;flex:none}
}

/* The same invisible launch target for both modes, independent of active balls. */
[data-plinko-game] .plinko-launch{position:absolute;z-index:1;width:44px;height:44px;min-width:44px;min-height:44px;transform:translate(-50%,-50%);padding:0;border:0;border-radius:50%;background:transparent;cursor:pointer;touch-action:manipulation}
[data-plinko-game] .plinko-launch:focus-visible{outline:2px solid #b58aff;outline-offset:0}
[data-plinko-game] .plinko-load-error{grid-column:1 / -1;margin:12px;padding:12px}
/* Quick mode omits the wallet and history, without a second board theme. */
.free-game-shell[data-mode="quick"]{grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto;width:100%}
[data-mode="quick"] .free-game-stage{grid-column:1;grid-row:1}
[data-mode="quick"] .free-game-settings{grid-column:1;grid-row:2;border-right:0}
@media(min-width:541px){[data-mode="quick"] .free-game-settings{grid-template-columns:1fr 1fr;align-items:start}}
.free-game-expanded[data-mode="quick"]{grid-template-rows:minmax(320px,1fr) auto}
.free-game-expanded[data-mode="quick"] .free-game-stage{grid-column:1;grid-row:1}
.free-game-expanded[data-mode="quick"] .free-game-settings{grid-column:1;grid-row:2}
