/* Block GT — sekcja „Graj w aplikacji” + tryb aplikacji (PWA / Electron / TWA).
   Osobny plik, żeby nie ruszać css/block-gt.css. Mobile-first. */

.bgt-apps__grid {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.15rem;
}
@media (min-width: 760px) {
  .bgt-apps__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.bgt-appcard {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.1rem 1rem 1.15rem;
}
.bgt-appcard__head {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.bgt-appcard__ico {
  flex: none;
  width: 2.6rem;
  height: 2.6rem;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(61, 255, 240, 0.08);
  color: var(--neon);
}
.bgt-appcard__ico svg { width: 1.45rem; height: 1.45rem; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.bgt-appcard h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 1rem;
  letter-spacing: 0.03em;
}
.bgt-appcard p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}
.bgt-appcard__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: auto;
  padding-top: 0.35rem;
}
.bgt-appcard__actions .btn { flex: 1 1 11rem; }
.bgt-appcard__note { font-size: 0.82rem !important; opacity: 0.85; }
.bgt-appcard [hidden] { display: none !important; }
.bgt-appcard__actions:has(> [hidden]:only-child) { display: none; }

.bgt-store--soon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  flex: 1 1 11rem;
  min-height: 2.75rem;
  padding: 0.55rem 1rem;
  border-radius: 12px;
  border: 1px dashed rgba(138, 160, 192, 0.5);
  color: var(--muted);
  font: 600 0.88rem/1.15 var(--font);
  cursor: default;
  user-select: none;
}
.bgt-store--soon svg { width: 1.2rem; height: 1.2rem; flex: none; fill: currentColor; }

.bgt-apps__legal { margin-top: 1rem; max-width: 46rem; font-size: 0.82rem; color: var(--muted); line-height: 1.55; }
.bgt-apps__legal a { color: var(--neon); }

/* ---- tryb aplikacji: tylko gra, na całe okno (ta sama strona i ta sama logika, bez „obudowy” serwisu) ---- */
html.bgt-appmode,
html.bgt-appmode body { overflow: hidden; background: #070b14; }
html.bgt-appmode .bg-grid,
html.bgt-appmode .site-header,
html.bgt-appmode .game-hero,
html.bgt-appmode .bgt-below,
html.bgt-appmode main > section:not(.bgt-shell),
html.bgt-appmode .site-footer { display: none !important; }
html.bgt-appmode .bgt-shell { padding: 0; }
html.bgt-appmode .bgt-shell .container { width: 100%; max-width: none; margin: 0; }
html.bgt-appmode .bgt-app {
  max-width: none;
  max-height: none;
  min-height: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  aspect-ratio: auto;
  border-radius: 0;
  border: 0;
  box-shadow: none;
}

/* ---- 2026-10-29: instrukcja instalacji na iPhonie (okno <dialog>, mobile-first) ---- */
.bgt-ios-sheet {
  width: min(26rem, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  margin: auto auto max(16px, env(safe-area-inset-bottom));
  padding: 1.2rem 1.1rem 1.1rem;
  border: 1px solid var(--line, rgba(138, 160, 192, 0.35));
  border-radius: 18px;
  background: #0d1424;
  color: var(--ink, #e8f1ff);
  font-family: var(--font, system-ui, sans-serif);
  overflow: auto;
}
@media (min-width: 760px) { .bgt-ios-sheet { margin: auto; } }
.bgt-ios-sheet::backdrop { background: rgba(3, 6, 12, 0.7); }
.bgt-ios-sheet h2 { margin: 0 0 0.9rem; font: 700 1.08rem/1.25 var(--display, inherit); letter-spacing: 0.02em; }
.bgt-ios-sheet ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
.bgt-ios-sheet li { display: flex; align-items: center; gap: 0.75rem; font-size: 0.95rem; line-height: 1.45; }
.bgt-ios-sheet li b { color: var(--neon, #3dfff0); font-weight: 700; }
.bgt-ios-sheet__ico {
  flex: none; width: 2.6rem; height: 2.6rem; display: grid; place-items: center;
  border-radius: 12px; border: 1px solid var(--line, rgba(138, 160, 192, 0.35)); background: rgba(61, 255, 240, 0.08); color: var(--neon, #3dfff0);
}
.bgt-ios-sheet__ico svg { width: 1.4rem; height: 1.4rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.bgt-ios-sheet__ico--txt { font: 700 0.78rem/1 var(--font, system-ui); }
.bgt-ios-sheet__note { margin: 0.9rem 0 0; font-size: 0.82rem; color: var(--muted, #8aa0c0); line-height: 1.5; }
.bgt-ios-sheet form { margin-top: 1rem; display: flex; }
.bgt-ios-sheet form .btn { flex: 1; min-height: 44px; }
