/* Give the games room before adding any decorative cabinet chrome. */
.cabinet { max-width:1700px; }
.cab-side { width:24px; }
.cab-body { min-width:0; }
.cab-screen { width:calc(100% - 24px); max-width:none; height:clamp(620px,82vh,1000px); margin:12px; aspect-ratio:auto; }
.cab-screen.loaded::after { display:none; }
.player-toolbar { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; padding:14px 16px 2px; }
#playerGameTitle { color:#e6f4ff; font-size:16px; font-weight:600; }
.player-tools { display:flex; align-items:center; gap:16px; }
.player-tools a { color:#b9d3e1; font-size:13px; text-decoration:none; }
.player-tools a:hover { color:#00d4ff; }
#expandGame { padding:10px 14px; min-height:44px; border:1px solid #00d4ff; background:rgba(0,212,255,.1); border-radius:3px; color:#b6f3ff; font:600 14px 'Barlow',sans-serif; cursor:pointer; }
.player-exit { display:none; position:absolute; top:max(10px,env(safe-area-inset-top)); right:max(10px,env(safe-area-inset-right)); z-index:20; align-items:center; justify-content:center; gap:10px; min-height:44px; padding:10px 14px; border:1px solid #5891a5; border-radius:4px; color:#e4f8ff; background:rgba(4,13,24,.94); font:500 14px 'Barlow',sans-serif; cursor:pointer; }
#expandGame:focus-visible,.player-exit:focus-visible,.player-tools a:focus-visible { outline:2px solid #00d4ff; outline-offset:3px; }
.arcade-expanded .cab-screen,.cab-screen:fullscreen { position:fixed; inset:0; z-index:9000; width:100vw; max-width:none; height:100vh; height:100dvh; margin:0; border:0; border-radius:0; aspect-ratio:auto; }
.arcade-expanded .player-exit,.cab-screen:fullscreen .player-exit { display:flex; }
/* Fixed-position fallback also works when native fullscreen is unavailable. */
.arcade-expanded .arcade-zone,.arcade-expanded .cabinet,.arcade-expanded .cab-body { transform:none!important; filter:none!important; perspective:none!important; contain:none!important; }
@media (max-width:1000px) {
  .cab-side { width:12px; }
  .cab-screen { width:calc(100% - 16px); margin:8px; height:auto; aspect-ratio:var(--game-aspect,960 / 780); }
}
@media (max-width:768px) {
  .cab-side { display:none; }
  .player-toolbar { padding:12px; }
  .player-tools { width:100%; justify-content:space-between; gap:8px; }
  #expandGame { display:none; }
}
