@import url("site-integration-v3.css?v=20260901-r3000");
@import url("site-integration-v5.css?v=20260901-r3000");

/* R3000: Puzzlownia korzysta z tego samego topbara co dashboard. */
body.pz-game-page>[data-shell-top],body.pz-launch-page>[data-shell-top]{position:relative;z-index:950}
.pz-dashboard-top{z-index:950}
.pz-dashboard-top .profile-chip{max-width:190px}
.pz-dashboard-top .profile-chip>span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* Stary lokalny pasek zostaje w DOM tylko jako zerowy wiersz siatki, żeby nie naruszać silników gier. */
body.pz-game-page .pz-top{height:0!important;min-height:0!important;max-height:0!important;padding:0!important;margin:0!important;border:0!important;overflow:hidden!important;opacity:0!important;visibility:hidden!important;pointer-events:none!important}

@media (min-width:821px) and (min-height:621px){
  body.pz-game-page .pz-game-shell{height:min(800px,calc(100dvh - 72px))!important;min-height:min(620px,calc(100dvh - 72px))!important;max-height:800px!important}
}
@media (orientation:landscape) and (max-height:620px){
  body.pz-game-page .topbar__inner{min-height:48px!important;height:48px!important;gap:8px}
  body.pz-game-page .topbar .brand__mark{width:30px!important;flex-basis:30px!important}
  body.pz-game-page .topbar .brand__name{font-size:11px}
  body.pz-game-page .topbar .nav{display:none!important}
  body.pz-game-page .topbar .theme-btn,body.pz-game-page .topbar .profile-chip{min-height:34px!important;padding:5px 8px!important;font-size:10px}
  body.pz-game-page .topbar.has-global-count .topbar__inner{min-height:48px!important;padding-bottom:0!important}
  body.pz-game-page .topbar .global-count{display:none!important}
  body.pz-game-page .pz-game-shell{height:calc(100dvh - 48px)!important;min-height:0!important;max-height:none!important;grid-template-rows:0 minmax(0,1fr)!important}
  body.pz-game-page .pz-game-head{display:none!important}
}
@media(max-width:820px){
  .pz-dashboard-top .profile-chip>span:last-child{display:none}
}

/* Po ukończeniu Układania gra przechodzi w tryb swobodnego demontażu, więc mata nadal przechwytuje gesty. */
body.pz-game-page.pz-uk-freeplay .pz-uk-stage{touch-action:none!important}
