/* V133 — pełny ekran minigier + poprawny powrót z fullscreen na macOS/Safari */
.game-shell:fullscreen,.game-shell:-webkit-full-screen,.game-shell.jmc-fs-active{
  width:100vw!important;height:100vh!important;height:100dvh!important;max-width:none!important;margin:0!important;padding:8px!important;border:0!important;border-radius:0!important;background:#03080e!important;box-shadow:none!important;display:flex!important;flex-direction:column!important;gap:8px!important
}
.game-shell:fullscreen .canvas-wrap,.game-shell:-webkit-full-screen .canvas-wrap,.game-shell.jmc-fs-active .canvas-wrap{
  flex:1 1 auto!important;width:100%!important;height:auto!important;min-height:0!important;max-height:none!important;aspect-ratio:auto!important;border-radius:8px!important;display:flex!important;align-items:center!important;justify-content:center!important;overflow:hidden!important;background:#02070d!important
}
.game-shell:fullscreen .canvas-wrap canvas,.game-shell:-webkit-full-screen .canvas-wrap canvas,.game-shell.jmc-fs-active .canvas-wrap canvas{flex:0 0 auto!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important}
.game-shell:fullscreen .game-meta,.game-shell:-webkit-full-screen .game-meta,.game-shell.jmc-fs-active .game-meta{flex:0 0 auto!important;margin:0!important;padding:0 2px!important}
.game-shell:fullscreen .mobile-controls,.game-shell:-webkit-full-screen .mobile-controls,.game-shell.jmc-fs-active .mobile-controls{flex:0 0 auto!important;margin:0!important}
.game-shell:fullscreen .game-tip,.game-shell:-webkit-full-screen .game-tip,.game-shell.jmc-fs-active .game-tip{display:none!important}
.game-shell:fullscreen .jmc-fullscreen-btn,.game-shell:-webkit-full-screen .jmc-fullscreen-btn,.game-shell.jmc-fs-active .jmc-fullscreen-btn{border-color:rgba(255,255,255,.28)!important}
/* Safari na Macu potrafił po wyjściu zachować kwadratowy box z trybu fullscreen. */
.game-shell.jmc-fs-restoring{width:auto!important;height:auto!important;min-height:0!important;max-width:none!important;display:block!important}
.game-shell.jmc-fs-restoring .canvas-wrap{width:100%!important;height:auto!important;max-height:none!important;display:block!important}
.game-shell.jmc-fs-restoring .canvas-wrap canvas{display:block!important;width:100%!important;height:100%!important;max-width:none!important;max-height:none!important}
@media(min-width:851px){.game-shell.jmc-fs-restoring .canvas-wrap{aspect-ratio:16/9!important;min-height:280px!important}}
@media(min-width:641px) and (max-width:850px){.game-shell.jmc-fs-restoring .canvas-wrap{aspect-ratio:4/3!important;min-height:280px!important}}
@media(max-width:640px){
  .game-shell:fullscreen,.game-shell:-webkit-full-screen,.game-shell.jmc-fs-active{padding:4px!important;gap:4px!important}
  .game-shell:fullscreen .game-meta>div:first-child,.game-shell:-webkit-full-screen .game-meta>div:first-child,.game-shell.jmc-fs-active .game-meta>div:first-child{display:none!important}
  .game-shell:fullscreen .game-meta-actions,.game-shell:-webkit-full-screen .game-meta-actions,.game-shell.jmc-fs-active .game-meta-actions{width:100%!important;display:flex!important;gap:5px!important;flex-wrap:wrap!important}
  .game-shell:fullscreen .game-meta-actions .btn,.game-shell:-webkit-full-screen .game-meta-actions .btn,.game-shell.jmc-fs-active .game-meta-actions .btn{flex:1 1 30%!important;min-width:0!important;padding:0 5px!important;font-size:.5rem!important}
  .game-shell.jmc-fs-restoring .canvas-wrap{aspect-ratio:540/760!important;min-height:0!important}
}
